/*
 * Red Rose Associates — main.css
 * Shared stylesheet for all pages.
 * Deployed at: paulnicholson.uk/redrose/assets/css/main.css
 *
 * Self-hosted fonts: see assets/fonts/FONTS-DOWNLOAD.txt
 * When fonts are self-hosted, add @font-face blocks here and remove
 * the Google Fonts <link> tags from HTML files.
 *
 * @font-face {
 *   font-family: 'Poppins';
 *   src: url('../fonts/poppins-v21-latin-600.woff2') format('woff2');
 *   font-weight: 600; font-style: normal; font-display: swap;
 * }
 */

/* ── RESET ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── DESIGN TOKENS ──────────────────────────────────────── */
:root {
  --red: #e4003b;
  --dark-red: #8b0c21;
  --black: #0f0f0f;
  --charcoal: #1e1e1e;
  --mid: #3a3a3a;
  --light: #f5f4f2;
  --white: #ffffff;
  --border: #e0ddd8;
  --nav-height: 72px;
}

/* ── SMOOTH SCROLL (respects motion preferences) ────────── */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* ── SKIP LINK ───────────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 9999;
  background: var(--red);
  color: var(--white);
  padding: 12px 20px;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border-radius: 0 0 4px 4px;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* ── FOCUS VISIBLE ───────────────────────────────────────── */
:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
}
a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ── BASE ────────────────────────────────────────────────── */
body {
  font-family: 'Roboto', sans-serif;
  font-weight: 300;
  color: var(--charcoal);
  background: var(--white);
  line-height: 1.7;
  font-size: 16px;
}

h1, h2, h3, h4, h5 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  line-height: 1.2;
}

/* ── SCROLL MARGIN FOR FIXED NAV ─────────────────────────── */
#home, #about, #services, #reach, #sectors, #experience, #team, #contact,
#main-content, [id] {
  scroll-margin-top: 90px;
}

/* ── NAV (fixed — main page) ─────────────────────────────── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
}

.site-nav {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  padding: 0 5vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
}

/* Sticky nav variant for sub-pages */
.site-header--sticky {
  position: sticky;
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.nav-logo img {
  height: 36px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--charcoal);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--red); }

.nav-cta {
  background: var(--red);
  color: var(--white) !important;
  padding: 10px 22px;
  border-radius: 2px;
  transition: background 0.2s !important;
}

.nav-cta:hover { background: var(--dark-red) !important; }

/* ── HAMBURGER BUTTON ────────────────────────────────────── */
.nav-burger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  color: var(--charcoal);
  border-radius: 4px;
  flex-shrink: 0;
}

.nav-burger svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ── NAV BACK LINK (sub-pages) ───────────────────────────── */
.nav-back {
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--charcoal);
  text-decoration: none;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s;
}

.nav-back:hover { color: var(--red); }
.nav-back svg {
  width: 16px; height: 16px;
  stroke: currentColor; fill: none; stroke-width: 2;
}

/* ── HERO ─────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px 5vw 80px;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(10,10,10,0.82) 0%, rgba(20,20,20,0.76) 40%, rgba(35,6,14,0.78) 100%),
    url('../images/hero-bg.jpg') center/cover no-repeat;
}

/* WebP support for hero background */
@supports (background-image: url('../images/hero-bg.webp')) {
  .hero {
    background-image:
      linear-gradient(135deg, rgba(10,10,10,0.82) 0%, rgba(20,20,20,0.76) 40%, rgba(35,6,14,0.78) 100%),
      url('../images/hero-bg.webp');
  }
}

.hero-accent {
  position: absolute;
  top: 0; right: 0;
  width: 42vw;
  height: 100%;
  background: linear-gradient(135deg, transparent 0%, rgba(228,0,59,0.25) 100%);
  pointer-events: none;
}

.hero-watermark {
  position: absolute;
  right: -2vw;
  top: 50%;
  transform: translateY(-50%);
  width: 42vw;
  max-width: 600px;
  opacity: 0.5;
  pointer-events: none;
}

.hero-line {
  position: absolute;
  left: 5vw;
  bottom: 0;
  width: 3px;
  height: 60px;
  background: var(--red);
}

.hero-content {
  position: relative;
  max-width: 820px;
}

.hero-eyebrow {
  font-family: 'Poppins', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 28px;
  display: block;
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 600;
  color: var(--white);
  margin-bottom: 32px;
  letter-spacing: -0.01em;
}

.hero h1 em {
  font-style: normal;
  color: var(--red);
}

.hero-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.65);
  max-width: 540px;
  margin-bottom: 48px;
  font-weight: 300;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  padding: 14px 32px;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  transition: background 0.2s;
}

.btn-primary:hover { background: var(--dark-red); }

.btn-ghost {
  display: inline-block;
  border: 1px solid rgba(255,255,255,0.3);
  color: rgba(255,255,255,0.8);
  padding: 14px 32px;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  transition: border-color 0.2s, color 0.2s;
}

.btn-ghost:hover { border-color: rgba(255,255,255,0.7); color: var(--white); }

.hero-stats {
  position: absolute;
  bottom: 60px;
  right: 5vw;
  display: flex;
  gap: 48px;
}

.hero-stat { text-align: right; }

.hero-stat-number {
  font-family: 'Poppins', sans-serif;
  font-size: 2rem;
  font-weight: 600;
  color: var(--white);
  display: block;
}

.hero-stat-label {
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ── SECTION SHARED ──────────────────────────────────────── */
section { padding: 96px 5vw; }

.section-label {
  font-family: 'Poppins', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 16px;
  display: block;
}

.section-title {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  color: var(--charcoal);
  margin-bottom: 24px;
}

.section-intro {
  font-size: 1.05rem;
  color: var(--mid);
  max-width: 640px;
  line-height: 1.8;
}

/* ── ABOUT ───────────────────────────────────────────────── */
#about { background: var(--white); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  margin-top: 64px;
}

.about-pillars { display: grid; gap: 0; }

.about-photo {
  width: 100%;
  height: 320px;
  object-fit: cover;
  object-position: center 40%;
  display: block;
  margin-top: 72px;
}

.pillar {
  padding: 28px 0;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.pillar:last-child { border-bottom: 1px solid var(--border); }

.pillar-number {
  font-family: 'Poppins', sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: var(--red);
  letter-spacing: 0.1em;
  min-width: 32px;
  padding-top: 4px;
}

.pillar h3 { font-size: 1rem; font-weight: 600; margin-bottom: 6px; color: var(--charcoal); }
.pillar p { font-size: 0.9rem; color: var(--mid); line-height: 1.7; }

.about-copy p { color: var(--mid); margin-bottom: 16px; font-size: 0.97rem; }

.about-copy .standout {
  font-family: 'Poppins', sans-serif;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--charcoal);
  border-left: 3px solid var(--red);
  padding-left: 20px;
  margin: 28px 0;
  line-height: 1.6;
}

/* ── SERVICES ────────────────────────────────────────────── */
#services { background: var(--light); }

.services-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 56px;
  flex-wrap: wrap;
  gap: 24px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--border);
}

.service-card {
  background: var(--white);
  padding: 48px 40px;
  transition: background 0.25s;
}

.service-card:hover { background: #fdf9fa; }

.service-card-featured { border-top: 3px solid var(--red); }

.service-icon {
  width: 44px;
  height: 44px;
  background: var(--red);
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-icon svg {
  width: 22px; height: 22px;
  stroke: white; fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card h3 { font-size: 1.15rem; margin-bottom: 16px; color: var(--charcoal); }
.service-card p { font-size: 0.9rem; color: var(--mid); line-height: 1.75; }

/* ── REACH ───────────────────────────────────────────────── */
#reach {
  background: var(--charcoal);
  padding: 100px 5vw;
}

.reach-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.reach-text .section-label { color: rgba(255,255,255,0.5); }

.reach-text .section-title { color: var(--white); }

.reach-text p {
  color: rgba(255,255,255,0.6);
  font-size: 1rem;
  line-height: 1.8;
  margin-top: 24px;
}

.reach-text p + p { margin-top: 16px; }

.reach-map {
  text-align: center;
}

.reach-map-img {
  max-width: 100%;
  max-height: 600px;
  object-fit: contain;
  display: block;
}


  100% { transform: translate(-50%,-50%) scale(4);   opacity: 0; }
}

.pin-label {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(228,0,59,0.93);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  padding: 4px 10px 4px 10px;
  border-radius: 2px;
  pointer-events: none;
  z-index: 5;
  line-height: 1.4;
  text-align: center;
}

.pin-label::before {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 4px solid transparent;
  border-bottom-color: rgba(228,0,59,0.93);
}

/* ── SECTORS ──────────────────────────────────────────────── */
#sectors { background: var(--charcoal); }
#sectors .section-title { color: var(--white); }
#sectors .section-intro { color: rgba(255,255,255,0.55); }

.sectors-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.08);
  margin-top: 56px;
}

.sector-item {
  background: var(--charcoal);
  padding: 32px 28px;
  border-left: 3px solid transparent;
  transition: border-color 0.2s, background 0.2s;
}

.sector-item:hover { border-left-color: var(--red); background: rgba(255,255,255,0.04); }
.sector-item--link {
  display: block;
  text-decoration: none;
  cursor: pointer;
}
.sector-item--link h3::after {
  content: ' \2192';
  color: var(--red);
  opacity: 0;
  transition: opacity 0.2s;
}
.sector-item--link:hover h3::after { opacity: 1; }
.sector-item h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  line-height: 1.4;
}

/* ── EXPERIENCE ───────────────────────────────────────────── */
#experience { background: var(--white); }

.cases-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px;
  margin-top: 56px;
}

.case-item {
  padding: 0;
  background: var(--light);
  border-top: 3px solid var(--red);
}

.case-img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
}

.case-item-body { padding: 32px 36px 36px; }

.case-challenge,
.case-role,
.case-outcome {
  font-size: 0.95rem;
  color: var(--mid);
  line-height: 1.8;
  margin-bottom: 12px;
}

.case-outcome { }

/* ── TEAM ─────────────────────────────────────────────────── */
#team { background: var(--light); }

.team-intro-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 56px;
  flex-wrap: wrap;
  gap: 24px;
}

.team-intro-note {
  max-width: 380px;
  font-size: 0.95rem;
}

.team-partners {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-bottom: 64px;
}

.partner-card {
  background: var(--white);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.partner-photo {
  width: 100%;
  height: 440px;
  object-fit: cover;
  object-position: center 15%;
  display: block;
  filter: grayscale(100%);
}

.partner-info { padding: 32px; }

.partner-info h3 { font-size: 1.2rem; margin-bottom: 4px; }

.partner-role {
  font-size: 0.75rem;
  font-weight: 500;
  font-family: 'Poppins', sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 16px;
  display: block;
}

.partner-info p {
  font-size: 0.88rem;
  color: var(--mid);
  line-height: 1.75;
}

.team-section-label {
  font-family: 'Poppins', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 28px;
  display: block;
}

.associates-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 2px;
  background: var(--border);
}

.associates-grid-core {
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 32px;
}
@media (max-width: 640px) {
  .associates-grid-core { grid-template-columns: repeat(2, 1fr); }
}

.associate-card {
  background: var(--white);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.associate-photo {
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: center 40%;
  display: block;
  filter: grayscale(100%);
}

.associate-initials {
  width: 100%;
  height: 220px;
  background: var(--charcoal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Poppins', sans-serif;
  font-size: 1.6rem;
  font-weight: 600;
  color: rgba(255,255,255,0.25);
}

.associate-info { padding: 20px; flex: 1; }
.associate-info h4 { font-size: 0.9rem; margin-bottom: 8px; color: var(--charcoal); }


.associate-card--link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: opacity 0.2s;
}
.associate-card--link:hover { opacity: 0.85; }
.associate-card--link .associate-info h4 { color: var(--charcoal); }

.associate-tags { display: flex; flex-wrap: wrap; gap: 4px; }

.tag {
  font-size: 10px;
  background: var(--light);
  color: var(--mid);
  padding: 3px 8px;
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
}

/* ── CTA / CONTACT ───────────────────────────────────────── */
#contact {
  background: var(--red);
  padding: 96px 5vw;
}

.cta-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 40px;
}

#contact h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); color: var(--white); max-width: 500px; }
#contact p { color: rgba(255,255,255,0.75); font-size: 1rem; margin-top: 12px; max-width: 480px; }

.cta-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.btn-white {
  display: inline-block;
  background: var(--white);
  color: var(--red);
  padding: 14px 32px;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  transition: background 0.2s;
}

.btn-white:hover { background: rgba(255,255,255,0.88); }

.btn-ghost-white {
  display: inline-block;
  border: 1px solid rgba(255,255,255,0.5);
  color: rgba(255,255,255,0.9);
  padding: 14px 32px;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  transition: border-color 0.2s;
}

.btn-ghost-white:hover { border-color: white; color: white; }

/* ── FOOTER ──────────────────────────────────────────────── */
footer { background: var(--black); padding: 56px 5vw 32px; }

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 48px;
  flex-wrap: wrap;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-logo { height: 28px; width: auto; opacity: 0.85; }

.footer-tagline { margin-top: 16px; font-size: 0.85rem; color: rgba(255,255,255,0.35); font-style: italic; }

.footer-links { display: flex; gap: 64px; flex-wrap: wrap; }

.footer-col h5 {
  font-family: 'Poppins', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  margin-bottom: 10px;
  transition: color 0.2s;
}

.footer-col a:hover { color: var(--white); }

.footer-bottom {
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-legal { font-size: 12px; color: rgba(255,255,255,0.3); }

.footer-linkedin {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-linkedin:hover { color: rgba(255,255,255,0.75); }
.footer-linkedin svg { width: 18px; height: 18px; fill: currentColor; }

/* ── SIMPLE FOOTER (sub-pages) ───────────────────────────── */
.footer-simple {
  background: var(--black);
  padding: 40px 5vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-simple img { height: 28px; opacity: 0.7; }
.footer-copy { font-size: 12px; color: rgba(255,255,255,0.3); }

/* ── PAGE HERO (sub-pages) ────────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--charcoal) 0%, #2a0a12 100%);
  padding: 80px 5vw 72px;
}

.page-hero .label {
  font-family: 'Poppins', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  display: block;
  margin-bottom: 20px;
}

.page-hero h1 { font-size: clamp(2rem, 4vw, 3rem); color: var(--white); margin-bottom: 20px; }
.page-hero p { font-size: 1.05rem; color: rgba(255,255,255,0.55); max-width: 560px; line-height: 1.8; }

/* ── CONTENT AREA (sub-pages) ────────────────────────────── */
.content { max-width: 760px; margin: 0 auto; padding: 80px 5vw; }

.intro-block {
  font-size: 1.1rem;
  color: var(--mid);
  line-height: 1.9;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 48px;
}

.intro-block p + p { margin-top: 20px; }

/* ── VALUES GRID (join-our-team) ─────────────────────────── */
.values-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 56px;
}

.value-item {
  padding: 28px;
  background: var(--light);
  border-top: 3px solid var(--red);
}

.value-item h4 { font-size: 1rem; margin-bottom: 10px; color: var(--charcoal); }
.value-item p { font-size: 0.9rem; color: var(--mid); line-height: 1.7; }

.cta-block {
  background: var(--charcoal);
  padding: 48px;
  margin-top: 16px;
}

.cta-block h3 { font-size: 1.4rem; color: var(--white); margin-bottom: 16px; }
.cta-block p { color: rgba(255,255,255,0.55); line-height: 1.8; margin-bottom: 28px; font-size: 0.97rem; }

.btn-red {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  padding: 14px 32px;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  transition: background 0.2s;
}

.btn-red:hover { background: var(--dark-red); }

/* ── PRIVACY POLICY ──────────────────────────────────────── */
.policy-notice {
  background: #fff8e1;
  border-left: 4px solid #f59e0b;
  padding: 16px 20px;
  margin-bottom: 40px;
  font-size: 0.95rem;
  color: var(--charcoal);
  line-height: 1.7;
}

.policy-section { margin-bottom: 48px; }

.policy-section h2 {
  font-size: 1.15rem;
  color: var(--charcoal);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.policy-section p { color: var(--mid); margin-bottom: 14px; font-size: 0.97rem; line-height: 1.85; }
.policy-section ul { margin: 12px 0 14px 20px; }
.policy-section li { color: var(--mid); font-size: 0.97rem; line-height: 1.85; margin-bottom: 8px; }
.policy-section strong { font-weight: 500; color: var(--charcoal); }
.policy-section a { color: var(--red); text-decoration: none; }
.policy-section a:hover { text-decoration: underline; }

.review-marker {
  display: inline-block;
  background: #fef3c7;
  color: #92400e;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  padding: 2px 8px;
  border-radius: 2px;
  margin-left: 8px;
  vertical-align: middle;
}

.contact-box {
  background: var(--light);
  border-top: 3px solid var(--red);
  padding: 32px;
  margin-bottom: 48px;
}

.contact-box h3 { font-size: 1rem; margin-bottom: 12px; }
.contact-box p { font-size: 0.95rem; color: var(--mid); }
.contact-box a { color: var(--red); text-decoration: none; }

/* ── 404 PAGE ─────────────────────────────────────────────── */
.page-404 {
  min-height: 100vh;
  background: var(--charcoal);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 5vw;
}

.page-404 img { height: 40px; margin-bottom: 48px; opacity: 0.8; }

.page-404-code {
  font-family: 'Poppins', sans-serif;
  font-size: 6rem;
  font-weight: 700;
  color: var(--red);
  line-height: 1;
  margin-bottom: 16px;
}

.page-404 h1 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--white);
  margin-bottom: 20px;
  font-weight: 600;
}

.page-404 p {
  color: rgba(255,255,255,0.55);
  font-size: 1rem;
  max-width: 400px;
  line-height: 1.7;
  margin-bottom: 40px;
}

.page-404 .btn-white { display: inline-block; }

/* ── MOBILE BREAKPOINTS ──────────────────────────────────── */
@media (max-width: 900px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: fixed;
    top: var(--nav-height);
    left: 0; right: 0;
    background: white;
    padding: 24px 5vw;
    border-bottom: 1px solid var(--border);
    gap: 16px;
    align-items: flex-start;
    z-index: 99;
  }

  .nav-links[aria-hidden="false"],
  .nav-links.open {
    display: flex;
  }

  /* Show Get in touch in mobile menu */
  .nav-links .nav-cta {
    display: inline-block;
    margin-top: 8px;
    color: var(--white) !important;
  }

  .nav-burger { display: flex; }

  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .services-grid { grid-template-columns: 1fr !important; }
  .sectors-grid { grid-template-columns: repeat(2, 1fr); }
  .cases-grid { grid-template-columns: 1fr; }
  .team-partners { grid-template-columns: 1fr; }
  .associates-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-stats { display: none; }
  .hero-watermark { opacity: 0.08; }

  /* Reach responsive: text first, map second */
  .reach-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .reach-map { order: 2; }
  .reach-text { order: 1; }

  .reach-map-img {
    width: 100%;
    height: auto;
  }
}

@media (max-width: 600px) {
  .sectors-grid { grid-template-columns: 1fr; }
  .associates-grid { grid-template-columns: repeat(2, 1fr); }
  section { padding: 64px 5vw; }
  .values-grid { grid-template-columns: 1fr; }
  .content { padding: 56px 6vw; }
}

/* Centre a lone last item in the 4-column associates grid */
.associates-grid .associate-card:last-child:nth-child(6n+1) {
  grid-column: 1 / -1;
  max-width: calc(25% - 1.5px);
  margin: 0 auto;
}

/* Mobile: override desktop orphan rule; span lone last card at half-row width */
@media (max-width: 860px) {
  .associates-grid .associate-card:last-child:nth-child(6n+1) {
    grid-column: auto;
    max-width: none;
    margin: 0;
  }
  .associates-grid .associate-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    max-width: calc(50% - 1px);
    margin: 0 auto;
  }
}
