/* root2growth-2026 main.css. Tokens from the live site's stylesheet (oklch converted to hex, 29 Oct 2026). */

@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/Poppins-400.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/Poppins-500.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/Poppins-600.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/Poppins-700.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 800; font-display: swap; src: url('../fonts/Poppins-800.woff2') format('woff2'); }

:root {
  --rg-charcoal: #202020;
  --rg-offwhite: #F7F6F5;
  --rg-midgrey: #6E6E6E;
  --rg-lightgrey: #E2E2E2;
  --rg-orange: #F98D33;
  --rg-grad: linear-gradient(100deg, #D8582E 0%, #F98D33 38%, #FFB755 68%, #F3813F 100%);
  --rg-font: 'Poppins', ui-sans-serif, system-ui, sans-serif;
  --rg-ease: cubic-bezier(.22, 1, .36, 1);
  --rg-header-h: 80px;
}

/* Element resets go in Tailwind's base layer: unlayered, they beat every live.css utility (an unlayered `a { color: inherit }`
   turned the hero's white WhatsApp button text charcoal on charcoal; Jamie caught it 29 Oct 2026). */
@layer base {
  *, *::before, *::after { box-sizing: border-box; }
  html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--rg-header-h); }
  body { margin: 0; font-family: var(--rg-font); font-size: 16px; line-height: 1.6; color: var(--rg-charcoal); background: #fff; -webkit-font-smoothing: antialiased; }
  img { max-width: 100%; height: auto; display: block; }
  a { color: inherit; }
  :focus-visible { outline: 2px solid var(--rg-orange); outline-offset: 3px; }
}
body.rg-menu-open { overflow: hidden; }

.rg-wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 24px; }
@media (min-width: 1024px) { .rg-wrap { padding: 0 40px; } }

.rg-skip { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--rg-charcoal); color: #fff; padding: 12px 16px; }
.rg-skip:focus { left: 16px; top: 16px; }

.rg-eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: 12px; font-weight: 700; line-height: 1.2; margin: 0; }
.rg-h1 { font-weight: 800; font-size: clamp(2.25rem, 5vw, 4rem); line-height: 1.05; letter-spacing: -.02em; margin: 0 0 24px; }
.rg-section { padding: 80px 0; }

/* Buttons: square corners, spaced caps, as live. */
.rg-btn { display: inline-flex; align-items: center; justify-content: center; padding: 14px 24px; background: var(--rg-orange); color: var(--rg-charcoal); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; text-decoration: none; border: 1px solid transparent; transition: background-color .3s, color .3s, border-color .2s; }
.rg-btn:hover { background: var(--rg-charcoal); color: #fff; }
.rg-btn--line { background: transparent; border-color: var(--rg-lightgrey); padding: 14px 20px; }
.rg-btn--line:hover { background: transparent; color: var(--rg-charcoal); border-color: var(--rg-charcoal); }

/* Underline wipe on hover (live's .nav-link / .rule-wipe). */
.rg-nav__link, .rg-wipe { position: relative; text-decoration: none; }
.rg-nav__link::after, .rg-wipe::after { content: ""; position: absolute; left: 0; width: 100%; height: 2px; background: var(--rg-orange); transform: scaleX(0); transform-origin: 100%; transition: transform .4s var(--rg-ease); }
.rg-nav__link::after { bottom: -4px; }
.rg-wipe::after { bottom: -1px; transform-origin: 0; }
.rg-nav__link:hover::after, .rg-nav__link[aria-current]::after, .rg-wipe:hover::after, .rg-wipe:focus-visible::after { transform: scaleX(1); transform-origin: 0; }

/* Header */
.rg-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .95); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.rg-header__row { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 16px; padding-bottom: 16px; }
.rg-logo { display: inline-flex; flex-shrink: 0; }
.rg-logo img { height: 44px; width: auto; }
.rg-nav { display: none; align-items: center; gap: 28px; }
.rg-nav__link { font-size: 13px; font-weight: 500; letter-spacing: .02em; color: rgba(32, 32, 32, .8); transition: color .2s; }
.rg-nav__link:hover, .rg-nav__link[aria-current] { color: var(--rg-charcoal); }
.rg-header__actions { display: flex; align-items: center; gap: 12px; }
.rg-header__wa, .rg-header__cta { display: none; }
.rg-burger { display: inline-flex; justify-content: center; align-items: center; width: 44px; height: 44px; padding: 0; background: transparent; border: 1px solid var(--rg-lightgrey); color: var(--rg-charcoal); cursor: pointer; transition: border-color .2s; }
.rg-burger:hover { border-color: var(--rg-charcoal); }
.rg-burger[aria-expanded="true"] .rg-burger__icon--open, .rg-burger[aria-expanded="false"] .rg-burger__icon--close { display: none; }

.rg-mobile { border-top: 1px solid var(--rg-lightgrey); background: #fff; max-height: calc(100vh - var(--rg-header-h)); overflow-y: auto; padding: 8px 0 24px; }
.rg-mobile__link { display: block; padding: 14px 0; border-bottom: 1px solid var(--rg-lightgrey); font-size: 16px; font-weight: 500; text-decoration: none; }
.rg-mobile__link[aria-current] { color: var(--rg-orange); }
.rg-mobile__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 0; }

@media (min-width: 640px) { .rg-header__cta { display: inline-flex; } }
@media (min-width: 768px) { .rg-logo img { height: 48px; } }
@media (min-width: 1024px) { .rg-header__wa { display: inline-flex; } }
@media (min-width: 1280px) {
  .rg-nav { display: flex; }
  .rg-burger, .rg-mobile { display: none; }
}

/* Footer */
.rg-footer { background: var(--rg-charcoal); color: #fff; padding: 80px 0; line-height: 1.65; }   /* live body line-height; footer sits outside .rg-main */
.rg-footer__grid { display: grid; gap: 56px; }
.rg-footer__brand > a { display: inline-flex; align-items: center; }   /* live's logo link; keeps its line box under the logo */
.rg-footer__logo { height: 44px; width: auto; filter: brightness(0) invert(1); }
.rg-footer__tagline { margin: 28px 0 0; max-width: 24rem; font-size: 15px; line-height: 1.625; color: rgba(255, 255, 255, .6); }
.rg-footer__row { display: flex; align-items: center; gap: 12px; margin: 12px 0 0; font-size: 15px; color: rgba(255, 255, 255, .7); }
.rg-footer__tagline + .rg-footer__row { margin-top: 32px; }
.rg-footer__row svg { flex-shrink: 0; color: var(--rg-orange); }
.rg-footer__h { color: rgba(255, 255, 255, .55); } /* live .4 fails contrast; spec section 2 */
.rg-footer__h--gap { margin-top: 48px; }
.rg-footer__col ul { list-style: none; margin: 24px 0 0; padding: 0; font-size: 15px; color: rgba(255, 255, 255, .7); }
.rg-footer__col li + li { margin-top: 12px; }
.rg-footer__col a { display: inline-block; }
.rg-footer a:hover { color: #fff; }
.rg-footer__legal { display: flex; flex-direction: column; gap: 16px; margin-top: 64px; padding-top: 32px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 13px; color: rgba(255, 255, 255, .6); }
.rg-footer__legal p { margin: 0; }
.rg-footer__company { margin-top: 6px !important; }
.rg-footer__links { display: flex; flex-wrap: wrap; gap: 24px; }
.rg-footer__consent { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; }
/* No Cookie Policy page: Complianz prints its cookie link to /privacy/ next to the privacy link; show one. */
.cmplz-cookiebanner .cmplz-links a.cmplz-link.cookie-statement[href$="/privacy/"] { display: none; }

@media (min-width: 640px) { .rg-footer__legal { flex-direction: row; align-items: flex-start; justify-content: space-between; } .rg-footer__legal > * { flex: 1 1 0; min-width: 0; } }   /* tablet: halves, links wrap as live */
@media (min-width: 1024px) { .rg-footer__legal > div { flex: 1 1 auto; } .rg-footer__links { flex: none; flex-wrap: nowrap; } }   /* desktop: links one line, level with the copyright beside the company text */
@media (min-width: 768px) { .rg-footer__grid { grid-template-columns: 1fr 1fr; } .rg-footer__logo { height: 48px; } }
@media (min-width: 1024px) { .rg-footer { padding: 96px 0; } .rg-footer__grid { grid-template-columns: 1.3fr .9fr 1fr; } }

/* Body copy fills its column (house rule, no prose max-width). */
.rg-prose > * + * { margin-top: 1em; }

/* Ported page copy (live markup + live.css): live's body size, which the copy inherits. */
.rg-main { font-size: 17px; line-height: 1.65; }
@media (min-width: 1024px) { .rg-main { font-size: 18px; } }

/* Split-text heading groups (port.py): live's .mask-word right margin on the last word, so lines break where live's do. */
.rg-split { margin-right: .26em; }

/* FAQ items: native <details> in place of live's script accordion. */
.rg-main summary { list-style: none; line-height: 1.02; letter-spacing: -.02em; text-wrap: balance; }   /* live's question sits in an h3 (h1-h4 line-height 1.02); eyes 29 Oct: rows were 77px vs 66px */
.rg-main summary::-webkit-details-marker { display: none; }
.rg-main details[open] > summary svg { transform: rotate(180deg); }

/* Insights filter buttons: the pressed one is solid, as live. */
.rg-blog-filter button { border-color: var(--rg-lightgrey); color: var(--rg-midgrey); background: transparent; cursor: pointer; }
.rg-blog-filter button:hover { border-color: var(--rg-charcoal); color: var(--rg-charcoal); }
.rg-blog-filter button[aria-pressed="true"] { border-color: var(--rg-charcoal); background: var(--rg-charcoal); color: #fff; }

/* Kelly's design tweaks, 30 Oct 2026 (worklist section 39). Home hero ghost word: sits behind the H1, clear of the eyebrow,
   and from lg fades out before the photo column instead of a hard clip. Hero eyebrow: balanced lines, no orphaned
   "across the UK". Closing band: "LET'S TALK" watermark at half strength behind the heading. Outline buttons: 1px less
   padding each side so the border makes them the filled buttons' height (53px), arrows level. */
.ghost-type.top-\[6\%\] { top: 150px; }
.ghost-type.top-\[6\%\] ~ div .eyebrow { text-wrap: balance; }
@media (min-width: 1024px) {
  .ghost-type.top-\[6\%\] { top: 172px; -webkit-mask-image: linear-gradient(90deg, #000 35%, transparent 50%); mask-image: linear-gradient(90deg, #000 35%, transparent 50%); }
}
.ghost-type.text-charcoal\/\[0\.07\] { color: rgb(32 32 32 / .035); }
a.group.inline-flex.border.py-4 { padding-top: calc(1rem - 1px); padding-bottom: calc(1rem - 1px); }

/* Kelly's motion pass, 30 Oct 2026 (voice note 21:58Z, worklist section 40). Everything moving sits under
   prefers-reduced-motion: no-preference; .rg-off (main.js IntersectionObserver) pauses loops while off screen. */

/* 1. Hero seam: the photo fades in from the dark panel instead of starting on a hard edge (mobile: from the top).
   The photo column's solid charcoal overlay goes at lg so the panel's glow and grid run on into the photo. */
.lg\:\[perspective\:1600px\] > .absolute.inset-0 { -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%); mask-image: linear-gradient(180deg, transparent, #000 30%); }
@media (min-width: 1024px) {
  .lg\:\[perspective\:1600px\] > .absolute.inset-0 { -webkit-mask-image: linear-gradient(90deg, transparent, rgb(0 0 0 / .6) 22%, #000 48%); mask-image: linear-gradient(90deg, transparent, rgb(0 0 0 / .6) 22%, #000 48%); }
  .lg\:\[perspective\:1600px\] > .bg-gradient-to-r { display: none; }
}

/* 2. Hero glow: live's 760px radial at 16% primary, opacity .6. main.js moves --rg-gx/--rg-gy with the mouse as live
   (centre 50% 40%, 60% of the pointer offset); touch screens get a slow drift instead. */
@property --rg-gx { syntax: '<percentage>'; inherits: false; initial-value: 50%; }
@property --rg-gy { syntax: '<percentage>'; inherits: false; initial-value: 40%; }
div[style*="radial-gradient(760px"] { background: radial-gradient(760px circle at var(--rg-gx) var(--rg-gy), color-mix(in oklab, var(--color-primary) 16%, transparent), transparent 62%) !important; }
@keyframes rg-glow-drift { 0% { --rg-gx: 30%; --rg-gy: 30%; } 50% { --rg-gx: 45%; --rg-gy: 60%; } 100% { --rg-gx: 25%; --rg-gy: 50%; } }

/* 3, 5, 6. Ghost words loop: one copy's width (span + the 3.5rem gap, hence the padding) per cycle, so the seam never shows. */
@keyframes rg-ghost { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-33.3333%, 0, 0); } }

/* 4. Map: orange outline and fill with a glow, and a pulsing office pin. */
svg[aria-label^="Map of the United Kingdom"] path { stroke: var(--rg-orange); stroke-width: 1.6; filter: drop-shadow(0 0 4px rgb(249 141 51 / .9)) drop-shadow(0 0 16px rgb(249 141 51 / .55)); }
svg[aria-label^="Map of the United Kingdom"] stop:first-child { stop-color: rgb(249 141 51 / .28); }
svg[aria-label^="Map of the United Kingdom"] stop:last-child { stop-color: rgb(249 141 51 / .08); }
@keyframes rg-pin { 0% { transform: scale(.6); opacity: .5; } 100% { transform: scale(1.9); opacity: 0; } }

@media (prefers-reduced-motion: no-preference) {
  @media (hover: none) { div[style*="radial-gradient(760px"] { animation: rg-glow-drift 16s ease-in-out infinite alternate; } }
  .ghost-type.top-\[6\%\] > div, .ghost-type.text-\[16vw\] > div, .ghost-type.text-\[14vw\] > div { padding-right: 3.5rem; animation: rg-ghost 90s linear infinite; }
  .ghost-type.text-\[16vw\] > div { animation-duration: 75s; animation-direction: reverse; }
  .ghost-type.text-\[14vw\] > div { animation-duration: 60s; }
  svg[aria-label^="Map of the United Kingdom"] g > circle:first-child { transform-box: fill-box; transform-origin: center; animation: rg-pin 2.4s ease-out infinite; }
  .rg-off, .rg-off * { animation-play-state: paused !important; }
}
