/* ==========================================================================
   NRS Media - redesign v2 stylesheet
   Same brand tokens as v1 (navy/blue/orange, Archivo) pushed to a bigger,
   more confident scale: full-bleed photography, pill buttons, and two
   deliberate card languages -
     ROUNDED  -> narrative / photo-led content (cards, quotes, CTA panels)
     SHARP    -> structured / data content (stats, benefit lists, challenges)
   Structure: tokens > base > layout > header > footer > components > pages
   > responsive. Desktop-first with breakpoints at 980px and 640px.
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  --navy: #14263D;
  --navy-deep: #0C1622;      /* new: deeper variant for select dark/textured sections */
  --blue: #1D4E89;
  --orange: #E8722A;
  --orange-hover: #CF5F1B;
  --heading: #16283C;
  --body: #4A5B6E;
  --bg: #F6F8FB;
  --white: #FFFFFF;
  --border: #E3E9F1;
  --muted-navy: #B9C6D6;
  --muted-navy-2: #8FA2B8;
  --muted-blue: #A8C0DE;
  --footer-input-bg: #1B3352;
  --footer-input-border: #35506F;
  --footer-divider: #24405F;
  --success-bg: #EAF6EF;
  --success-border: #BFE3CD;
  --success-text: #1E7A45;
  --footer-success: #7FCB9B;
  --input-border: #D4DCE6;

  --container: 1200px;
  --radius-card: 3px;         /* sharp corners everywhere except pill buttons */
  --radius-panel: 3px;
  --radius-btn: 999px;        /* pill, all buttons - the one deliberate rounded shape on the site */
  --radius-sharp: 3px;
  --shadow-card: 0 20px 44px rgba(14,25,41,0.14);
  --shadow-dropdown: 0 16px 40px rgba(22,40,60,0.14);
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; background: var(--bg); }

body {
  font-family: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--heading);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.5;
}

a { color: var(--blue); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--orange); }
img { max-width: 100%; display: block; }
h1, h2, h3 { margin: 0; }

:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 2px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -48px; background: var(--orange); color: #fff;
  padding: 10px 16px; border-radius: var(--radius-btn); font-weight: 700; z-index: 100;
  transition: top 0.2s;
}
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- Layout ---------- */
.page { min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); }
main { flex: 1; }
.container { max-width: var(--container); margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.section { padding: 96px 0; }
.section--tight { padding: 48px 0; }

/* ---------- Buttons: ONE shape, two variants, used everywhere ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 17px 32px; font-size: 16px; font-weight: 700; font-family: "Archivo", sans-serif;
  border-radius: var(--radius-btn); cursor: pointer; border: 1px solid transparent;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
  text-align: center; line-height: 1;
}
.btn--primary { background: var(--orange); color: #fff; }
.btn--primary:hover { background: var(--orange-hover); color: #fff; }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.4); }
.btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,0.08); color: #fff; }
.btn--ghost-ink { background: transparent; color: var(--navy); border-color: var(--border); }
.btn--ghost-ink:hover { border-color: var(--navy); background: rgba(20,38,61,0.04); }
.btn--sm { padding: 12px 22px; font-size: 14px; }
.btn:active { transform: scale(0.98); }

/* text-link (tertiary): arrow links inside cards / prose, never a button */
.link-arrow {
  font-size: 14px; font-weight: 700; color: var(--blue); display: inline-flex; gap: 6px; align-items: center;
}
a.link-arrow:hover { color: var(--orange); }
.link-arrow--underline { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header__inner { height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-header__logo img { height: 40px; width: auto; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav__item { position: relative; }
.nav__link {
  display: block; padding: 10px 14px; font-size: 14px; font-weight: 600; letter-spacing: 0.01em;
  color: var(--heading); cursor: pointer; background: none; border: none;
  border-bottom: 2px solid transparent; font-family: inherit;
}
.nav__link:hover { color: var(--orange); }
.nav__link[aria-current="page"], .nav__item--active > .nav__link { color: var(--blue); border-bottom-color: var(--orange); }
.nav__link--btn {
  margin-left: 12px; padding: 12px 24px; background: var(--orange); color: #fff; font-weight: 700;
  border-radius: var(--radius-btn); border-bottom: none;
}
.nav__link--btn:hover { background: var(--orange-hover); color: #fff; }

.dropdown {
  position: absolute; top: 100%; left: 0; min-width: 280px; background: var(--white);
  border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-dropdown);
  padding: 8px; display: none; flex-direction: column;
}
.nav__item:hover > .dropdown, .nav__item:focus-within > .dropdown, .dropdown.is-open { display: flex; }
.dropdown a { padding: 10px 12px; font-size: 14px; font-weight: 500; color: var(--heading); border-radius: 6px; }
.dropdown a:hover { background: #F0F4F9; color: var(--blue); }
.dropdown a[aria-current="page"] { background: #F0F4F9; color: var(--blue); font-weight: 700; }

.menu-btn { display: none; background: none; border: 1px solid var(--border); border-radius: var(--radius-sharp); padding: 8px 10px; cursor: pointer; color: var(--heading); }

/* ---------- Hero: full-bleed photo + navy gradient, every page ---------- */
.hero {
  position: relative; color: #fff; overflow: hidden; background: var(--navy);
  isolation: isolate;
}
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__scrim {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(115deg, rgba(12,22,34,0.94) 0%, rgba(20,38,61,0.86) 46%, rgba(20,38,61,0.62) 100%);
}
.hero__inner { position: relative; z-index: 2; padding-top: 96px; padding-bottom: 96px; }
.hero--tall .hero__inner { padding-top: 130px; padding-bottom: 108px; }

.kicker {
  font-size: 13px; font-weight: 800; letter-spacing: 0.2em; color: var(--orange);
  text-transform: uppercase; margin: 0 0 20px; font-family: "Archivo", sans-serif;
}
.kicker--blue { color: var(--blue); }
.kicker--on-ink { color: var(--heading); }

.hero h1 {
  font-family: "Archivo", sans-serif; font-weight: 900;
  font-size: clamp(38px, 5.6vw, 80px); letter-spacing: -0.03em; line-height: 0.98;
  max-width: 880px; text-wrap: balance;
}
.hero__lead {
  margin: 22px 0 0; font-size: 19px; line-height: 1.65; color: var(--muted-navy); max-width: 620px;
}
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 34px; }
.accent { color: var(--orange); }

/* Home hero: the biggest treatment on the site - wider max-width so it wraps
   to fewer lines (was capping at 880px and balancing to 4 lines even at
   moderate sizes), plus a smaller scale and tighter padding so the CTA
   buttons stay closer to the fold. */
/* The home headline is a full sentence covering both propositions (media
   revenue growth + agency acquisition), so it is set smaller than the short
   inner-page H1s - at 78px an 89-character sentence ran to six lines. */
.home-hero h1 { font-size: clamp(30px, 3.6vw, 56px); line-height: 1.08; max-width: 1000px; }
.home-hero .hero__inner { padding-top: 108px; padding-bottom: 76px; }

/* ---------- Ticker (marquee) ---------- */
.ticker {
  background: var(--navy); overflow: hidden; padding: 18px 0; border-top: 1px solid rgba(255,255,255,0.08);
}
.ticker__track {
  display: flex; width: max-content; gap: 0; animation: ticker-scroll 38s linear infinite;
}
.ticker__item {
  display: flex; align-items: center; gap: 28px; padding: 0 28px;
  font-family: "Archivo", sans-serif; font-size: 14px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted-navy); white-space: nowrap;
}
.ticker__item b { color: var(--orange); font-weight: 800; }
.ticker__dot { color: var(--orange); }
@keyframes ticker-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker__track { animation: none; overflow-x: auto; } }

/* ---------- Stats: bigger, dividers, on textured navy ---------- */
.stats { background: var(--navy-deep); color: #fff; position: relative; overflow: hidden; }
.stats::before {
  content: ""; position: absolute; inset: -20%; z-index: 0;
  background: radial-gradient(60% 80% at 85% 0%, rgba(29,78,137,0.55), transparent 60%),
              radial-gradient(50% 60% at 10% 100%, rgba(232,114,42,0.14), transparent 60%);
}
.stats__grid { position: relative; z-index: 1; padding: 56px 0; display: grid; grid-template-columns: repeat(4,1fr); }
.stat { text-align: left; padding: 0 clamp(14px, 2vw, 28px); border-left: 1px solid rgba(255,255,255,0.14); }
.stat:first-child { border-left: none; padding-left: 0; }
.stat__label { text-wrap: pretty; }

/* Four columns get cramped with long labels before the main tablet breakpoint - switch to 2 columns earlier. */
@media (max-width: 1180px) {
  .stats__grid { grid-template-columns: repeat(2,1fr); row-gap: 32px; }
  .stat:nth-child(2n+1) { border-left: none; padding-left: 0; }
  .stat:nth-child(n+3) { border-left: none; padding-left: 0; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.14); }
}
.stat__value { font-family: "Archivo", sans-serif; font-size: clamp(34px,4vw,52px); font-weight: 900; letter-spacing: -0.02em; }
.stat__label { font-size: 14px; font-weight: 500; color: var(--muted-blue); margin-top: 6px; line-height: 1.4; }

/* ---------- Intro / prose ---------- */
.intro { max-width: 900px; margin: 0 auto; text-align: center; }
.intro h2 { margin: 0 0 20px; font-size: clamp(28px,3.6vw,42px); font-weight: 900; letter-spacing: -0.02em; line-height: 1.15; text-wrap: balance; font-family: "Archivo", sans-serif; }
.intro p { margin: 0; font-size: 18px; line-height: 1.7; color: var(--body); }

.prose p { font-size: 17px; line-height: 1.7; color: var(--body); margin: 0 0 20px; }
.prose p:last-child { margin-bottom: 0; }
.prose .lead { font-size: 20px; font-weight: 600; color: var(--heading); }

.section-label {
  font-size: 13px; font-weight: 800; letter-spacing: 0.2em; color: var(--blue);
  text-transform: uppercase; margin-bottom: 28px; font-family: "Archivo", sans-serif;
}

h2.section-title {
  font-family: "Archivo", sans-serif; font-weight: 900; font-size: clamp(26px,3.2vw,36px);
  letter-spacing: -0.02em; line-height: 1.15; margin: 0 0 28px; text-wrap: balance; color: var(--heading);
}

/* ---------- ROUNDED family: photo cards, quotes, CTA panels ---------- */
.grid { display: grid; gap: 22px; }
.grid--3 { grid-template-columns: repeat(3,1fr); }
.grid--4 { grid-template-columns: repeat(4,1fr); gap: 16px; }

.card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-sharp);
  overflow: hidden; display: flex; flex-direction: column; transition: box-shadow 0.25s, transform 0.25s;
  color: inherit;
}
a.card:hover { box-shadow: var(--shadow-card); transform: translateY(-4px); color: inherit; }
.card__media { height: 190px; flex-shrink: 0; }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__body { padding: 26px 28px 30px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.card__word { font-size: 13px; font-weight: 800; letter-spacing: 0.2em; color: var(--orange); text-transform: uppercase; font-family: "Archivo", sans-serif; }
.card__copy { font-size: 18px; font-weight: 700; line-height: 1.4; color: var(--heading); font-family: "Archivo", sans-serif; }

.link-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-sharp);
  padding: 34px 30px; display: block; transition: box-shadow 0.25s, transform 0.25s; color: inherit;
}
.link-card:hover { box-shadow: var(--shadow-card); transform: translateY(-4px); color: inherit; }
.link-card__title { font-size: 21px; font-weight: 800; margin-bottom: 8px; color: var(--heading); font-family: "Archivo", sans-serif; }
.link-card__copy { font-size: 15px; line-height: 1.6; color: var(--body); }

/* ---------- SHARP family: data cards, used for structured/list content ---------- */
.data-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-sharp);
  padding: 26px 26px;
}
.data-card--navy { background: var(--navy); color: #fff; border-color: var(--navy); }
.data-card--index { display: flex; flex-direction: column; gap: 4px; }
.data-card__index { font-family: "Archivo", sans-serif; font-weight: 900; font-size: 15px; color: var(--orange); letter-spacing: 0.02em; }
.data-card--navy .data-card__index { color: var(--orange); }
.data-card__title { font-size: 13px; font-weight: 800; letter-spacing: 0.2em; color: var(--orange); text-transform: uppercase; margin: 10px 0 20px; font-family: "Archivo", sans-serif; }
.data-card--navy .data-card__title { color: var(--orange); }
.data-card ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 13px; }
.data-card li { display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 600; }
.data-card li svg { flex-shrink: 0; }

.challenge {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-sharp);
  padding: 26px 26px; font-size: 16px; font-weight: 700; line-height: 1.5; color: var(--heading);
  font-family: "Archivo", sans-serif; position: relative; padding-top: 40px;
}
.challenge::before {
  content: attr(data-n); position: absolute; top: 18px; left: 26px; font-size: 13px; font-weight: 800;
  color: var(--orange); font-family: "Archivo", sans-serif; letter-spacing: 0.05em;
}

.list-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }

.benefits { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.benefit {
  display: flex; align-items: center; gap: 14px; background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-sharp); padding: 22px 24px;
}
.benefit svg { flex-shrink: 0; }
.benefit__text { font-size: 15px; font-weight: 600; }

.logo-tile {
  height: 118px; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-sharp);
  padding: 16px; display: flex; align-items: center; justify-content: center;
}
.logo-tile img, .logo-tile svg { max-height: 78px; max-width: 100%; width: auto; object-fit: contain; }
/* Wide-format logos (e.g. a horizontal wordmark) read visually larger than the square ones
   at the same max-height, since they fill far more of the tile's width. Cap the width too so
   object-fit:contain scales them down to match the square logos' visual footprint. */
.logo-tile--wide img { max-width: 100px; }

/* ---------- Split (text + image), used across inner pages ---------- */
/* Image column stretches to match the text column's height - never locked to its own
   aspect ratio on desktop, so a short image never leaves the taller text column looking
   unbalanced (and vice versa). Falls back to a fixed ratio once the columns stack on mobile. */
.split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 64px; align-items: stretch; }
.split__media { border-radius: var(--radius-card); overflow: hidden; min-height: 360px; }
.split__media img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Full-width photo band - a bold orange brand-colour wash over the whole photo, big
   statement text, matching the CTA panel's confidence rather than a subtle caption. */
.photo-band { position: relative; border-radius: var(--radius-panel); overflow: hidden; isolation: isolate; }
.photo-band img { width: 100%; height: 100%; object-fit: cover; display: block; aspect-ratio: 21/9; }
.photo-band__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(110deg, rgba(10,19,31,0.82) 0%, rgba(20,38,61,0.68) 48%, rgba(20,38,61,0.4) 100%);
}
.photo-band__caption { position: absolute; inset: 0; display: flex; align-items: center; padding: clamp(28px, 5vw, 56px); color: #fff; }
.photo-band__caption p {
  margin: 0; font-size: clamp(24px, 3.4vw, 40px); font-weight: 900; letter-spacing: -0.02em;
  line-height: 1.15; max-width: 640px; font-family: "Archivo", sans-serif; text-wrap: balance;
}

/* ---------- Testimonials ---------- */
.testimonials-band { background: var(--white); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.testimonials-band .section-label { text-align: center; margin-bottom: 40px; }
.quote {
  margin: 0; border: 1px solid var(--border); border-radius: var(--radius-sharp); padding: 34px 30px;
  display: flex; flex-direction: column; gap: 18px; background: var(--bg);
}
.quote--white { background: var(--white); }
.quote__mark { font-size: 48px; line-height: 0.6; color: var(--orange); font-weight: 900; font-family: "Archivo", sans-serif; }
.quote blockquote { margin: 0; font-size: 16.5px; line-height: 1.6; font-weight: 500; color: var(--heading); }
.quote figcaption { margin-top: auto; font-size: 13px; font-weight: 700; color: var(--body); }

/* ---------- CTA panels ---------- */
.cta-panel {
  position: relative; border-radius: var(--radius-panel); overflow: hidden; isolation: isolate;
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
  padding: clamp(32px, 6vw, 72px) clamp(24px, 5vw, 56px); color: #fff;
}
.cta-panel--photo .cta-panel__media { position: absolute; inset: 0; z-index: 0; }
.cta-panel--photo .cta-panel__media img { width: 100%; height: 100%; object-fit: cover; }
.cta-panel--photo .cta-panel__scrim {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(100deg, rgba(12,22,34,0.94) 10%, rgba(20,38,61,0.72) 100%);
}
.cta-panel--flat { background: var(--navy); }
.cta-panel--flat.cta-panel--blue { background: var(--blue); padding: clamp(32px, 5vw, 56px); }
.cta-panel > * { position: relative; z-index: 2; }
.cta-panel h2 { margin: 0; font-family: "Archivo", sans-serif; color: #fff; font-weight: 900; letter-spacing: -0.025em; max-width: 680px; line-height: 1.05; font-size: clamp(30px,4.4vw,54px); text-wrap: balance; }
.cta-panel p { margin: 0; color: #fff; font-weight: 800; letter-spacing: -0.01em; max-width: 620px; line-height: 1.3; font-size: 24px; font-family: "Archivo", sans-serif; }
.cta-panel .btn { white-space: nowrap; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.form-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 40px; }
.form-card__title { font-size: 22px; font-weight: 800; margin-bottom: 24px; font-family: "Archivo", sans-serif; }
.form-field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 700; color: var(--body); margin-bottom: 16px; }
.form-field input, .form-field textarea { padding: 13px 14px; border: 1px solid var(--input-border); border-radius: var(--radius-sharp); font-size: 15px; font-family: inherit; color: var(--heading); }
.form-field textarea { resize: vertical; }
.form-submit { width: 100%; border: none; padding: 16px; font-size: 15px; }
.form-error {
  margin-top: 18px; padding: 14px 16px; border-radius: var(--radius-sharp);
  background: #FDECEA; border: 1px solid #F5C2BC; color: #A32316;
  font-size: 15px; line-height: 1.6;
}
.form-error a { color: #A32316; text-decoration: underline; text-underline-offset: 3px; }
.form-success { margin-top: 16px; padding: 14px; background: var(--success-bg); border: 1px solid var(--success-border); color: var(--success-text); border-radius: var(--radius-sharp); font-size: 14px; font-weight: 600; text-align: center; }
.contact-info__title { font-size: 22px; font-weight: 800; margin-bottom: 24px; font-family: "Archivo", sans-serif; }
.contact-info p { margin: 0 0 28px; font-size: 16px; line-height: 1.7; color: var(--body); }
.contact-row { display: flex; gap: 12px; align-items: baseline; margin-bottom: 14px; }
.contact-row__label { font-size: 13px; font-weight: 800; letter-spacing: 0.1em; color: var(--blue); text-transform: uppercase; width: 72px; flex-shrink: 0; }
.social { display: flex; gap: 12px; flex-wrap: wrap; }
.social a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border: 1px solid var(--input-border); border-radius: var(--radius-btn); font-size: 14px; font-weight: 600; background: var(--white); color: var(--heading); }
.social a:hover { color: var(--orange); border-color: var(--orange); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #fff; }
.site-footer__inner { padding-top: 68px; padding-bottom: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px; align-items: start; }
.footer-logo { display: inline-block; }
.footer-logo img { height: 52px; width: auto; filter: brightness(0) invert(1); }
.footer-mission { margin: 20px 0 0; font-size: 14px; line-height: 1.6; color: var(--muted-navy-2); max-width: 280px; }
.footer-col__title { font-size: 12px; font-weight: 800; letter-spacing: 0.18em; color: var(--orange); text-transform: uppercase; margin-bottom: 16px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 14px; font-weight: 500; color: var(--muted-navy); }
.footer-links a:hover { color: #fff; }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--footer-divider); display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer-bottom__copy { font-size: 13px; color: var(--muted-navy-2); }
.footer-bottom__credit { font-size: 13px; color: var(--muted-navy-2); }
.footer-bottom__credit a { color: var(--muted-navy); font-weight: 600; }
.footer-bottom__credit a:hover { color: var(--orange); }
.footer-bottom__links { display: flex; gap: 20px; }
.footer-bottom__links a { font-size: 13px; color: var(--muted-navy-2); }
.footer-bottom__links a:hover { color: #fff; }

/* ---------- Office locations (contact page) ---------- */
.locations { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.location {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-card);
  padding: 28px 26px; display: flex; flex-direction: column; gap: 10px;
}
.location__country {
  margin: 0; font-size: 12px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--orange); display: flex; align-items: center; gap: 10px;
}
.location__hq {
  background: var(--orange); color: #fff; border-radius: var(--radius-btn);
  padding: 3px 10px; font-size: 11px; letter-spacing: 0.1em;
}
.location__city { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: -0.015em; color: var(--heading); }
.location__address { font-style: normal; display: flex; flex-direction: column; gap: 4px; font-size: 15px; line-height: 1.6; color: var(--body); }
.location__phone { margin-top: 4px; font-size: 15px; font-weight: 700; color: var(--heading); align-self: flex-start; }
.location__phone:hover { color: var(--orange); }

/* ---------- Legal / policy pages ---------- */
.policy { display: grid; grid-template-columns: 260px 1fr; gap: 56px; align-items: start; }
.policy__toc {
  position: sticky; top: 104px; background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-card); padding: 24px 22px; max-height: calc(100vh - 140px); overflow-y: auto;
}
.policy__toc-title {
  font-size: 12px; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--orange); margin-bottom: 14px;
}
.policy__toc ol { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 9px; }
.policy__toc li { font-size: 13px; line-height: 1.45; color: var(--body); }
.policy__toc a { color: var(--body); }
.policy__toc a:hover { color: var(--orange); }
.policy__body { max-width: 760px; }
.policy__updated { font-size: 14px; color: var(--body); margin: 0 0 32px; }
.policy__section { scroll-margin-top: 104px; margin-bottom: 40px; }
.policy__section h2 {
  font-size: 22px; font-weight: 800; letter-spacing: -0.01em; color: var(--heading); margin-bottom: 14px;
}
.policy__section p { font-size: 16px; line-height: 1.75; color: var(--body); margin: 0 0 16px; }
.policy__list { margin: 0 0 16px; padding-left: 22px; display: flex; flex-direction: column; gap: 10px; }
.policy__list li { font-size: 16px; line-height: 1.7; color: var(--body); }
.policy__contact {
  margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border);
  font-size: 16px; line-height: 1.7; color: var(--body);
}

/* ---------- Two-path chooser (home) ---------- */
.paths { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.path {
  display: flex; flex-direction: column; background: var(--white);
  border: 1px solid var(--border); border-radius: var(--radius-card); overflow: hidden;
  color: inherit; transition: box-shadow 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}
.path:hover { box-shadow: var(--shadow-card); transform: translateY(-4px); border-color: #CFDAE8; color: inherit; }
.path__media { display: block; aspect-ratio: 16/9; overflow: hidden; }
.path__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.path:hover .path__media img { transform: scale(1.04); }
.path__body { display: flex; flex-direction: column; gap: 12px; padding: 34px 32px 36px; }
.path__kicker {
  font-size: 12px; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; color: var(--orange);
}
.path__title { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; color: var(--heading); }
.path__copy { font-size: 16px; line-height: 1.7; color: var(--body); }
.path__meta {
  font-size: 13px; font-weight: 600; color: var(--muted-navy-2);
  padding-top: 12px; border-top: 1px solid var(--border);
}
.path .link-arrow { margin-top: 4px; }

/* ---------- Motion ----------
   All of this is progressive enhancement. The reveal start-state is scoped to
   .js-motion, which main.js adds to <html> only when it is safe to animate, so
   with JavaScript off (or prefers-reduced-motion set) every element renders in
   its final state and nothing is hidden. */
.js-motion [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
  will-change: opacity, transform;
}
.js-motion [data-reveal].is-visible { opacity: 1; transform: none; }
/* Children of a group stagger in sequence rather than all at once. */
.js-motion [data-reveal][data-reveal-i="1"] { transition-delay: 0.08s; }
.js-motion [data-reveal][data-reveal-i="2"] { transition-delay: 0.16s; }
.js-motion [data-reveal][data-reveal-i="3"] { transition-delay: 0.24s; }
.js-motion [data-reveal][data-reveal-i="4"] { transition-delay: 0.32s; }
.js-motion [data-reveal][data-reveal-i="5"] { transition-delay: 0.4s; }

/* Hero scrub. The custom properties are written by main.js on scroll; the hero
   sinks, fades and blurs as the page moves over it, and the photograph
   parallaxes at a slower rate. Defaults are inert. */
.hero__inner {
  transform: translate3d(0, var(--hero-sink, 0px), 0);
  opacity: var(--hero-fade, 1);
  filter: blur(var(--hero-blur, 0px));
}
.hero__media { transform: translate3d(0, var(--hero-parallax, 0px), 0); will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  .js-motion [data-reveal] { opacity: 1; transform: none; transition: none; }
  .hero__inner { transform: none; opacity: 1; filter: none; }
  .hero__media { transform: none; }
  .path:hover { transform: none; }
  .path:hover .path__media img { transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Other sectors we consider (what-we-buy) ---------- */
.other-sectors__title { margin: 56px 0 12px; font-size: 20px; font-weight: 800; letter-spacing: -0.01em; color: var(--heading); }
.other-sectors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 28px; }
.other-sector { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 22px 22px 24px; }
.other-sector__name { font-size: 16px; font-weight: 800; color: var(--heading); margin-bottom: 8px; }
.other-sector__copy { font-size: 14px; line-height: 1.6; color: var(--body); }

/* ---------- Cookie consent ----------
   Accept and Reject are deliberately identical buttons: same variant, same
   size, same weight, same row. Making reject quieter than accept invalidates
   the consent, so do not "tidy" one of them into a text link. */
.cc-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 200;
  background: var(--navy); color: #fff;
  border-top: 3px solid var(--orange);
  box-shadow: 0 -18px 40px rgba(12, 22, 34, 0.28);
  transform: translateY(100%); transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.cc-banner.is-in { transform: none; }
.cc-banner__inner {
  max-width: var(--container); margin: 0 auto; padding: 26px 24px;
  display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center;
}
.cc-banner__title { font-size: 18px; font-weight: 800; letter-spacing: -0.01em; margin-bottom: 8px; }
.cc-banner__body { margin: 0; font-size: 14px; line-height: 1.65; color: var(--muted-navy); max-width: 720px; }
.cc-banner__body a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.cc-banner__body a:hover { color: var(--orange); }
.cc-banner__actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
.cc-banner__actions .btn { padding: 13px 24px; font-size: 14px; white-space: nowrap; }
.cc-banner .btn--ghost-ink { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.45); }
.cc-banner .btn--ghost-ink:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); }

/* ---------- Preferences dialog ---------- */
html.cc-locked, html.cc-locked body { overflow: hidden; }
.cc-overlay {
  position: fixed; inset: 0; z-index: 300; background: rgba(12, 22, 34, 0.62);
  display: flex; align-items: center; justify-content: center; padding: 24px;
  overflow-y: auto;
}
.cc-modal {
  position: relative; background: var(--white); color: var(--heading);
  border-radius: var(--radius-panel); max-width: 620px; width: 100%;
  padding: 40px 38px 34px; box-shadow: var(--shadow-card); margin: auto;
}
.cc-modal__title { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 12px; }
.cc-modal__intro { margin: 0 0 24px; font-size: 15px; line-height: 1.7; color: var(--body); }
.cc-modal__close {
  position: absolute; top: 14px; right: 16px; background: none; border: none;
  font-size: 30px; line-height: 1; color: var(--body); cursor: pointer; padding: 4px 8px;
}
.cc-modal__close:hover { color: var(--orange); }
.cc-modal__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.cc-modal__actions .btn { padding: 13px 22px; font-size: 14px; }

.cc-cats { display: flex; flex-direction: column; gap: 4px; }
.cc-cat { padding: 18px 0; border-top: 1px solid var(--border); }
.cc-cat:last-child { border-bottom: 1px solid var(--border); }
.cc-cat__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.cc-cat__name { font-size: 16px; font-weight: 800; color: var(--heading); }
.cc-cat__always { font-size: 12px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue); }
.cc-cat__body { margin: 8px 0 0; font-size: 14px; line-height: 1.6; color: var(--body); max-width: 460px; }

/* Switch. The checkbox stays in the DOM and focusable - the visual is a sibling. */
.cc-switch { position: relative; display: inline-flex; flex-shrink: 0; cursor: pointer; }
.cc-switch input {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0;
  opacity: 0; cursor: pointer;
}
.cc-switch__ui {
  width: 48px; height: 28px; border-radius: 999px; background: #C9D4E1;
  transition: background 0.2s; display: block; position: relative;
}
.cc-switch__ui::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px;
  border-radius: 50%; background: #fff; transition: transform 0.2s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.22);
}
.cc-switch input:checked + .cc-switch__ui { background: var(--orange); }
.cc-switch input:checked + .cc-switch__ui::after { transform: translateX(20px); }
.cc-switch input:focus-visible + .cc-switch__ui { outline: 3px solid var(--orange); outline-offset: 2px; }

/* Footer "Cookie settings" trigger - the withdrawal route, on every page. */
.footer-bottom__links button.cc-link {
  background: none; border: none; padding: 0; font: inherit; cursor: pointer;
  font-size: 13px; color: var(--muted-navy-2);
}
.footer-bottom__links button.cc-link:hover { color: #fff; }

@media (max-width: 900px) {
  .cc-banner__inner { grid-template-columns: 1fr; gap: 20px; padding: 22px 18px; }
  .cc-banner__actions { justify-content: stretch; }
  .cc-banner__actions .btn { flex: 1 1 auto; }
  .cc-modal { padding: 34px 22px 26px; }
}

@media (prefers-reduced-motion: reduce) {
  .cc-banner { transition: none; }
  .cc-switch__ui, .cc-switch__ui::after { transition: none; }
}

/* ---------- Language toggle ----------
   One pill, one segment per locale, active segment filled. */
.nav__lang {
  display: inline-flex; align-items: stretch; margin-left: 14px;
  border: 1px solid var(--border); border-radius: var(--radius-btn); overflow: hidden;
  background: var(--white); flex-shrink: 0;
}
.nav__lang-opt {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; padding: 7px 10px; font-size: 12px; font-weight: 800;
  letter-spacing: 0.06em; color: var(--body); background: transparent;
  transition: background 0.2s, color 0.2s;
}
.nav__lang-opt abbr { text-decoration: none; border: none; cursor: inherit; }
a.nav__lang-opt:hover { background: #F0F4F9; color: var(--blue); }
.nav__lang-opt.is-active { background: var(--orange); color: #fff; cursor: default; }

/* ---------- Nav submenu toggle ----------
   Hidden on desktop, where hover opens the dropdown. */
.nav__toggle { display: none; }

/* ---------- Floating cookie settings button ----------
   The persistent way back into preferences once a choice has been made.
   consent.js adds .is-in only after a choice exists, so it never competes
   with the banner. */
.cc-fab {
  position: fixed; left: 20px; bottom: 20px; z-index: 190;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--navy); color: #fff; border: 2px solid var(--orange);
  display: none; align-items: center; justify-content: center; cursor: pointer;
  box-shadow: 0 8px 22px rgba(12, 22, 34, 0.3);
  opacity: 0; transform: translateY(10px) scale(0.9);
  transition: opacity 0.3s, transform 0.3s, background 0.2s;
  padding: 0;
}
.cc-fab.is-in { display: flex; opacity: 1; transform: none; }
/* The open mobile menu occupies the bottom-left corner, so the button
   steps aside rather than covering the language toggle. */
html.nav-is-open .cc-fab.is-in { opacity: 0; pointer-events: none; transform: translateY(10px) scale(0.9); }
.cc-fab:hover { background: var(--orange); }
.cc-fab svg { width: 24px; height: 24px; display: block; }
.cc-fab__label {
  position: absolute; left: 58px; white-space: nowrap;
  background: var(--navy); color: #fff; font-size: 13px; font-weight: 600;
  padding: 7px 12px; border-radius: var(--radius-sharp);
  opacity: 0; pointer-events: none; transition: opacity 0.2s;
}
.cc-fab:hover .cc-fab__label, .cc-fab:focus-visible .cc-fab__label { opacity: 1; }

@media (max-width: 900px) {
  /* ---------- Mobile nav: accordion ----------
     Submenus start CLOSED. Previously every child was force-expanded, which
     made the open menu ~1000px tall and pushed most items below a scroll. */
  .dropdown { display: none; }
  .nav__item--open > .dropdown { display: flex; }

  .nav__item--has-dropdown {
    display: flex; flex-wrap: wrap; align-items: center;
    border-bottom: 1px solid var(--border);
  }
  .nav__item--has-dropdown > .nav__link {
    flex: 1 1 auto; border-bottom: none;
  }
  .nav__item--has-dropdown > .dropdown { flex-basis: 100%; }

  /* The chevron is a real button, so the top-level link still navigates. */
  .nav__toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 46px; height: 46px; flex: 0 0 auto;
    background: none; border: none; cursor: pointer; color: var(--heading);
    padding: 0;
  }
  .nav__toggle svg { transition: transform 0.25s; }
  .nav__item--open > .nav__toggle svg { transform: rotate(180deg); }
  .nav__toggle:hover { color: var(--orange); }

  .nav__lang { margin: 14px 0 4px; align-self: flex-start; }
  .nav__lang-opt { min-width: 52px; padding: 9px 14px; font-size: 13px; }

  .cc-fab { left: 14px; bottom: 14px; width: 44px; height: 44px; }
  .cc-fab__label { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .cc-fab { transition: none; }
  .nav__toggle svg { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .section { padding: 64px 0; }
  .hero__inner, .hero--tall .hero__inner { padding-top: 76px; padding-bottom: 60px; }
  .home-hero .hero__inner { padding-top: 92px; padding-bottom: 68px; }
  .grid--3, .grid--4, .benefits, .list-cards { grid-template-columns: repeat(2,1fr); }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .split__media { aspect-ratio: 4/3; min-height: 0; }
  .split--media-first .split__media { order: -1; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .paths { grid-template-columns: 1fr; }
  .other-sectors { grid-template-columns: repeat(2, 1fr); }
  .path__title { font-size: 26px; }
  .policy { grid-template-columns: 1fr; gap: 32px; }
  .policy__toc { position: static; max-height: none; }
  .locations { grid-template-columns: repeat(2, 1fr); }

  .menu-btn { display: inline-flex; }
  .nav {
    display: none; position: absolute; top: 80px; left: 0; right: 0; flex-direction: column;
    align-items: stretch; gap: 0; background: var(--white); border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-dropdown); padding: 8px 16px 20px;
  }
  .nav.is-open { display: flex; }
  /* The acquisitions IA has three dropdowns, so the open menu is taller than a
     phone viewport. Cap it and let the menu itself scroll, keeping the
     "Sell Your Business" CTA reachable without scrolling the page. */
  .nav { max-height: calc(100vh - 80px); overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
  .nav__item { width: 100%; }
  .nav__link { padding: 14px 8px; border-bottom: 1px solid var(--border); }
  .nav__link[aria-current="page"] { border-bottom-color: var(--border); }
  /* Primary CTA first in the open mobile menu - the list below it scrolls. */
  .nav__link--btn { order: -1; margin: 4px 0 12px; border-bottom: none; text-align: center; }
  .dropdown { position: static; box-shadow: none; border: none; padding: 0 0 8px 12px; min-width: 0; }
  .dropdown a { padding: 10px 8px; }
}

@media (max-width: 640px) {
  .container { padding-left: 18px; padding-right: 18px; }
  .stats__grid { grid-template-columns: 1fr 1fr; }
  .grid--3, .grid--4, .benefits, .list-cards, .footer-grid, .locations, .other-sectors { grid-template-columns: 1fr; }
  .cta-panel { flex-direction: column; align-items: flex-start; text-align: left; padding: 40px 26px; }
  .cta-panel h2 { font-size: 28px; }
  .cta-panel p { font-size: 20px; }
  .form-card { padding: 26px 20px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .home-hero h1, .hero h1 { letter-spacing: -0.02em; }
  .ticker__track { animation-duration: 26s; }
  .photo-band img { aspect-ratio: 4/5; }
  .photo-band__caption { align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
  a.card:hover, .link-card:hover { transform: none; }
}
