/* CMS additions to the captured live stylesheet: nav state, light-header pages and the builder grid. Selectors are additive. */
.tyrone-contents { display: contents; }

.tyrone-primary-nav .tyrone-nav-current > a { border-bottom: 1px solid #fff; color: #fff; padding-bottom: 0.25rem; }

.tyrone-header-light .tyrone-header { color: #161616; }
.tyrone-header-light .tyrone-header-row { border-bottom-color: #d9d9d9; }
.tyrone-header-light .tyrone-logo-name { color: #161616; }
.tyrone-header-light .tyrone-logo-tag { color: #8a8a8a; }
.tyrone-header-light .tyrone-menu-toggle { color: #161616; }
.tyrone-header-light .tyrone-primary-nav a:hover { color: #5d5d5d; }
.tyrone-header-light .tyrone-primary-nav .tyrone-nav-current > a { border-bottom-color: #161616; color: #161616; }
.tyrone-header-light .tyrone-book-btn { background-color: #155eef; box-shadow: 0 18px 45px rgba(21, 94, 239, 0.24); }
.tyrone-header-light .tyrone-book-btn:hover { background-color: #004ee6; }

.tyrone-section { padding: 3rem 2rem; }
.tyrone-container { margin-inline: auto; max-width: 80rem; }
.tyrone-row { display: grid; gap: 1.25rem; grid-template-columns: repeat(12, minmax(0, 1fr)); }
.tyrone-col-1 { grid-column: span 1; } .tyrone-col-2 { grid-column: span 2; } .tyrone-col-3 { grid-column: span 3; } .tyrone-col-4 { grid-column: span 4; }
.tyrone-col-5 { grid-column: span 5; } .tyrone-col-6 { grid-column: span 6; } .tyrone-col-7 { grid-column: span 7; } .tyrone-col-8 { grid-column: span 8; }
.tyrone-col-9 { grid-column: span 9; } .tyrone-col-10 { grid-column: span 10; } .tyrone-col-11 { grid-column: span 11; } .tyrone-col-12 { grid-column: span 12; }
@media (min-width: 768px) { .tyrone-section { padding: 4rem 58px; } }
@media (max-width: 767px) { .tyrone-row > [class*="tyrone-col-"] { grid-column: span 12; } }

/* Service pages: the arrow after call-to-action links. It sits in CSS so the CMS link label stays only the words. */
.tyrone-cta-arrow::after { content: "\2197"; }

/* Core pages and presets: full-row link beside a separately editable label, styling for links added in policy text, and the two partner logos that need inverting on the light strip (keyed by file so a replacement logo is not inverted). */
.tyrone-stretched-link::after { content: ""; inset: 0; position: absolute; }
.tyrone-policy-body a { border-bottom: 1px solid #161616; color: #161616; }
img[src$="/partners/e-mcintyre-sons.png"], img[src$="/partners/exi-tite.png"] { filter: invert(1); }

/* Site behaviour and layout fixes (see tyrone.js). Page content must never rely on these animations to be visible. */
body { color: #161616; overflow-x: hidden; }
@supports (overflow-x: clip) { body { overflow-x: clip; } }

/* The old React site animated these on mount; CSS keeps them working with no script and never hides content for long. */
@media (prefers-reduced-motion: no-preference) {
  @keyframes tyrone-header-in { from { opacity: 0; transform: translate3d(0, -16px, 0); } }
  @keyframes tyrone-page-fade { from { opacity: 0; } }
  #cms-root:not([data-cms-mode="edit"]) > .tyrone-header { animation: tyrone-header-in 0.55s cubic-bezier(0.16, 1, 0.3, 1) backwards; }
  /* The home page was never wrapped in the old page fade. */
  body:not(.tyrone-home) #cms-root:not([data-cms-mode="edit"]) > :not(.tyrone-header, footer, .tyrone-widget) { animation: tyrone-page-fade 0.45s cubic-bezier(0.16, 1, 0.3, 1) backwards; }
}

.tyrone-reveal-armed { opacity: 0 !important; translate: 0 28px; transition: none !important; }
.tyrone-reveal-armed[data-reveal="left"] { translate: -28px 0; }
.tyrone-reveal-armed[data-reveal="right"] { translate: 28px 0; }
.tyrone-reveal-armed[data-reveal="scale"] { translate: 0 18px; scale: 0.96; }
.tyrone-reveal-play { transition: none !important; }
@media print { .tyrone-reveal-armed { opacity: 1 !important; translate: none; scale: none; } }

/* Visual editor: nothing moves by itself, and both hero slideshow images can be reached. */
#cms-root[data-cms-mode="edit"] :is(.nav-menu-item, .nav-dropdown-link, .service-card-reveal, .service-detail-card, .service-detail-row, .services-grid-reveal, .hero-text-reveal, .hero-text-reveal-soft) { animation: none !important; opacity: 1; transform: none; filter: none; }
#cms-root[data-cms-mode="edit"] :is(.hero-slideshow-image, .hero-bg-slide, .whatsapp-widget-trigger, .whatsapp-widget-ping) { animation: none !important; }
#cms-root[data-cms-mode="edit"] .hero-slideshow-image { transform: none; }
#cms-root[data-cms-mode="edit"] .hero-slideshow-image-two { clip-path: inset(0 0 0 50%); opacity: 0.95; }
#cms-root[data-cms-mode="edit"] .tyrone-edit-only { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 0.75rem; border-top: 1px dashed #bbb; padding-top: 0.75rem; font-size: 11px; }
#cms-root[data-cms-mode="edit"] [data-tyrone-method] { display: block; margin-bottom: 0.25rem; }

/* Focus: visible on every background. */
:where(a, button, summary, input, select, textarea, [tabindex]):focus-visible { outline: 2px solid #2f6df6; outline-offset: 2px; }
.tyrone-header :where(a, summary):focus-visible, footer :where(a):focus-visible { outline-color: #fff; }
.tyrone-header-light .tyrone-header-row :where(a, summary):focus-visible { outline-color: #161616; }
.tyrone-header-light .tyrone-menu-panel :where(a):focus-visible { outline-color: #fff; }

/* Light headers: the #8a8a8a logo tagline was 3.5:1 on white. */
.tyrone-header-light .tyrone-logo-tag { color: #5d5d5d; }

/* Header: 44px menu button without changing the row height; nav must not wrap between 1024px and 1200px. */
.tyrone-header-row > a:first-child, .tyrone-book-btn { flex-shrink: 0; white-space: nowrap; }
.tyrone-menu-toggle { align-items: center; display: flex; height: 44px; justify-content: center; margin: -10px -10px -10px 0; width: 44px; }
.tyrone-primary-nav a { white-space: nowrap; }
@media (min-width: 1024px) and (max-width: 1279px) {
  .tyrone-header-row { gap: 1rem; padding-inline: 1.25rem; }
  .tyrone-primary-nav > ul { gap: 0.875rem; }
  .tyrone-primary-nav a { letter-spacing: 0.06em; }
  .tyrone-header-row .tyrone-book-btn { padding-inline: 1rem; letter-spacing: 0.1em; }
}

/* Mobile menu panel: fits short screens; the page is locked while it is open. */
.tyrone-menu-panel { max-height: calc(100vh - 8rem); max-height: calc(100dvh - 8rem); overflow-y: auto; overscroll-behavior: contain; }
html.tyrone-menu-open { overflow: hidden; scrollbar-gutter: stable; }
html.tyrone-menu-open .tyrone-widget { display: none; }
#tyrone-mobile-nav a { position: relative; }
#tyrone-mobile-nav a::after { content: ""; inset: -8px 0; position: absolute; }
#tyrone-mobile-nav a[aria-current="page"] { color: #fff; font-weight: 800; }

/* Footer tap areas, added around the links without moving them. */
.tyrone-footer-socials a, .tyrone-footer-legal a, footer li a { position: relative; }
.tyrone-footer-socials a::after, .tyrone-footer-legal a::after, footer li a::after { content: ""; inset: -6px 0; position: absolute; }
.tyrone-footer-socials a::after { inset: -14px -8px; }
.tyrone-footer-legal a::after { inset: -10px -6px; }

/* Quick contact widget: the wide fixed box must not block clicks on the page beneath it, and fits short screens. */
.tyrone-widget { pointer-events: none; }
.tyrone-widget > * { pointer-events: auto; }
.tyrone-widget-panel { max-height: calc(100vh - 7.5rem); max-height: calc(100dvh - 7.5rem); overflow-y: auto; overscroll-behavior: contain; }
.tyrone-widget-call { position: relative; }
.tyrone-widget-call::after { content: ""; inset: -12px -8px; position: absolute; }
/* 16px stops iPhones zooming the page when a field is focused. */
@media (max-width: 767px) { .tyrone-widget :is(input, select, textarea) { font-size: 16px; } }

/* Insights blog and Our Work detail pages: CMS builder sections styled to match the old pages (see migration/). */
.tyrone-insights-hero .cms-builder-col-inner { max-width: 690px; }
.tyrone-insights-hero .cms-blog-archive-title { font-size: clamp(1.75rem, 7.5vw, 3rem); font-weight: 800; letter-spacing: 0.045em; line-height: 1.25; margin-bottom: 1.25rem; overflow-wrap: anywhere; text-transform: uppercase; }
.tyrone-insights-feed .cms-blog-feed { gap: 1.25rem; margin-top: 2.5rem; }
.tyrone-insights-feed .cms-blog-card { background: #fdfbf7; border: 1px solid #d6d2c7; }
.tyrone-insights-feed .cms-blog-card-media { aspect-ratio: auto; background: #eee8dc; border-radius: 0; height: 14rem; }
.tyrone-insights-feed .cms-blog-card-media:has(.cms-blog-noimage) { display: none; }
.tyrone-insights-feed .cms-blog-card-body { gap: 0; padding: 1.5rem; }
.tyrone-insights-feed .cms-blog-eyebrow { color: #80776c; font-size: 10px; font-weight: 900; letter-spacing: 0.16em; margin-bottom: 1.25rem; text-transform: uppercase; }
.tyrone-insights-feed .cms-blog-card-title { color: #161616; font-size: 1.5rem; font-weight: 900; letter-spacing: -0.04em; line-height: 1.25; max-width: 18ch; text-transform: uppercase; }
.tyrone-insights-feed .cms-blog-card-title a { color: inherit; }
.tyrone-insights-feed .cms-blog-card-excerpt { color: #4c4c4c; font-size: 0.875rem; font-weight: 500; line-height: 1.75rem; margin-top: 1.25rem; }
.tyrone-insights-feed .cms-blog-more { color: #161616; font-size: 0.875rem; font-weight: 700; margin-top: 1.25rem; order: 1; }
.tyrone-insights-feed .cms-blog-meta { border-top: 1px solid #d6d2c7; color: #80776c; display: flex; flex-wrap: wrap; font-size: 10px; font-weight: 900; gap: 0.75rem; letter-spacing: 0.12em; margin-top: 2rem; order: 2; padding-top: 1rem; text-transform: uppercase; width: 100%; }
.tyrone-insights-feed .cms-blog-meta a { color: inherit; }
.tyrone-insights-feed .cms-blog-meta .cms-blog-dot { display: none; }
.tyrone-insights-feed .cms-blog-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; order: 3; }
.tyrone-insights-feed .cms-blog-chips a { border: 1px solid #d6d2c7; border-radius: 0; color: #5f574f; font-size: 9px; font-weight: 900; letter-spacing: 0.1em; padding: 0.25rem 0.5rem; text-transform: uppercase; }
.tyrone-post-hero .cms-blog-post-title { font-size: clamp(1.75rem, 6vw, 3rem); font-weight: 800; letter-spacing: 0.04em; line-height: 1.25; margin-top: 1.5rem; overflow-wrap: anywhere; text-transform: uppercase; }
.tyrone-post-hero a { color: inherit; }
.tyrone-post-hero .cms-blog-crumbs, .tyrone-post-hero .cms-blog-meta { color: rgba(255, 255, 255, 0.72); font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.tyrone-post-hero .cms-blog-meta { margin-top: 1.25rem; }
.tyrone-post-body .cms-blog-body { color: #2e2e2e; font-size: 1.0625rem; }
@media (min-width: 768px) {
  .tyrone-insights-hero .cms-blog-archive-title { font-size: 4.5rem; }
  .tyrone-insights-feed .cms-blog-card-title { font-size: 1.875rem; }
}

.tyrone-work-hero { border-bottom: 1px solid #242424; }
.tyrone-work-hero .cms-w-heading { max-width: 48rem; }
.tyrone-work-hero .cms-w-text:last-child { max-width: 42rem; }
.tyrone-work-hero .cms-w-text:nth-child(2) > .cms-text { background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.15); border-radius: 999px; color: rgba(255, 255, 255, 0.74); display: inline-flex; font-size: 10px; font-weight: 800; letter-spacing: 0.18em; padding: 0.5rem 1rem; text-transform: uppercase; }
.tyrone-work-compare, .tyrone-work-case, .tyrone-work-gallery { border-bottom: 1px solid #e3e3e3; }
.tyrone-work-compare .cms-w-before-after { background: #fff; border: 1px solid #d9d2c4; box-shadow: 0 24px 40px rgba(27, 24, 18, 0.08); padding: 0.75rem; }
.tyrone-work-compare .cms-before-after { aspect-ratio: 5 / 4; }
.tyrone-work-case .cms-card { background: #faf8f3; border-color: #d8d8d8; padding: 1.5rem; }
.tyrone-work-case .cms-card-body { padding: 0; }
.tyrone-work-case .cms-card-title { color: #7d7468; font-size: 10px; font-weight: 800; letter-spacing: 0.18em; margin-bottom: 0.75rem; text-transform: uppercase; }
.tyrone-work-case .cms-card-text { color: #2e2e2e; font-size: 0.875rem; font-weight: 500; line-height: 1.75rem; }
.tyrone-work-gallery .cms-gallery-item { background: #111; border: 1px solid #d4d4d4; margin: 0; overflow: hidden; }
.tyrone-work-gallery .cms-gallery-link img { transition: transform 0.5s; }
.tyrone-work-gallery .cms-gallery-link:hover img { transform: scale(1.03); }
.tyrone-work-cta { border-top: 1px solid #e0e0e0; }
.tyrone-work-cta .tyrone-row { align-items: center; }
@media (min-width: 768px) {
  .tyrone-work-compare .cms-w-before-after { padding: 1rem; }
  .tyrone-work-compare .cms-before-after { aspect-ratio: 16 / 10; }
}
/* The old pages stack these two rows below 1024px, one breakpoint earlier than other builder sections. */
@media (min-width: 768px) and (max-width: 1023px) {
  .tyrone-work-compare .tyrone-row > [class*="tyrone-col-"], .tyrone-work-case .tyrone-row > :first-child { grid-column: span 12; }
  .tyrone-work-case .tyrone-row > :not(:first-child) { grid-column: span 4; }
}
@media (max-width: 767px) {
  .tyrone-work-cta .cms-buttons { justify-content: flex-start; }
}

/* CMS forms: selected, active and error states. The live React forms set these with state classes; the managed forms use forms.js state hooks. */
input[data-cms-invalid], textarea[data-cms-invalid], select[data-cms-invalid] { border-color: #b42318; }
[data-cms-form-card]:has(input:focus-visible) { outline: 2px solid #161616; outline-offset: 2px; }
.tyrone-upload:has(input[data-cms-invalid]) { border-color: #b42318; }
.tyrone-form-status.is-success { border-color: #b7d8c1; background-color: #eef8f1; color: #1f5f35; }
.tyrone-form-status.is-error { border-color: #e0b2ae; background-color: #fff3f2; color: #8a2c24; }
.tyrone-form-status.is-sending { border-color: #e0e0e0; color: #5d5d5d; }
.tyrone-form-status-plain.is-success { color: #2f5d2f; }
.tyrone-form-status-plain.is-error { color: #b42318; }

.tyrone-step-card.is-active { border-color: #fff; background-color: #fff; color: #161616; }
.tyrone-step-card.is-active .tyrone-step-short { color: #5d5d5d; }
.tyrone-step-card.is-active .tyrone-step-num, .tyrone-step-card.is-active .tyrone-step-title { color: #161616; }
.tyrone-step-card.is-complete .tyrone-step-num { color: #fff; }

.tyrone-card-dark:is(.is-selected, :has(input:checked)) { border-color: #161616; background-color: #161616; color: #fff; }
.tyrone-card-cream:is(.is-selected, :has(input:checked)) { border-color: #161616; background-color: #f6f3ec; }
.tyrone-card-cream:is(.is-selected, :has(input:checked)) .tyrone-card-box { border-color: #161616; background-color: #161616; color: #fff; }
.tyrone-card-service:is(.is-selected, :has(input:checked)), .tyrone-card-addon:is(.is-selected, :has(input:checked)) { border-color: #161616; }
.tyrone-card-service:is(.is-selected, :has(input:checked)) { box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.05); }
.tyrone-card-frequency:is(.is-selected, :has(input:checked)) { border-color: #161616; color: #161616; }
.tyrone-card-service .tyrone-card-dot-inner { display: none; }
.tyrone-card-service:is(.is-selected, :has(input:checked)) .tyrone-card-dot { border-color: #161616; background-color: #161616; }
.tyrone-card-service:is(.is-selected, :has(input:checked)) .tyrone-card-dot-inner { display: block; }
:is(.tyrone-card-service, .tyrone-card-addon):is(.is-selected, :has(input:checked)) .tyrone-card-chip { background-color: #161616; color: #fff; }
.tyrone-card-addon:is(.is-selected, :has(input:checked)) .tyrone-card-name { color: #161616; }
.tyrone-card-addon:is(.is-selected, :has(input:checked)) .tyrone-card-dot { border-color: #161616; background-color: #161616; color: #fff; }
.tyrone-card-tick { opacity: 0; }
.tyrone-card-addon:is(.is-selected, :has(input:checked)) .tyrone-card-tick { opacity: 1; }

/* Our Work: the card is one link, drawn over the card with the slider above it, and the slider handle as on the live site. */
.tyrone-stretched-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.tyrone-work-card .tyrone-work-slider { z-index: 2; }
:is(.tyrone-work-slider, .tyrone-work-compare) .cms-ba-handle { width: 2px; margin-left: -1px; background: rgba(255, 255, 255, 0.9); box-shadow: 0 0 18px rgba(255, 255, 255, 0.5); }
:is(.tyrone-work-slider, .tyrone-work-compare) .cms-ba-handle::after { content: "\2194"; display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; margin: -24px 0 0 -24px; border: 1px solid rgba(255, 255, 255, 0.7); background: rgba(0, 0, 0, 0.7); color: #fff; font-size: 10px; font-weight: 800; }
.tyrone-our-work-filter-active { background-color: #000; color: #fff; }

/* The old pages put the header offset on <main>, outside the first section. */
body.tyrone-page-cream { background-color: #f4f2ee; }
.tyrone-main-offset { margin-top: 124px; }
.tyrone-eot-hero { padding-top: 148px; }
@media (min-width: 768px) { .tyrone-main-offset { margin-top: 132px; } .tyrone-eot-hero { padding-top: 156px; } }
