/* ═══════════════════════════════════════════════════════════════
   Richer Support — Final Design System
   Khaki-olive palette · Playfair Display headings · Bricolage body
   Apply after site-v5.css on every page.
═══════════════════════════════════════════════════════════════ */

/* ——— Design tokens ——— */
:root {
  --cream:           #F0EDE2;
  --paper:           #F7F4EA;
  --olive:           #6B6840;
  --olive-mid:       #585634;
  --sage:            #979768;
  --sage-deep:       #2C2B18;
  --sage-soft:       #B8B870;
  --sage-pale:       #DEDE9C;
  --ink:             #1C1D12;
  --ink-soft:        #4A4840;
  --hair:            rgba(105,104,64,0.14);
  --gold:            #7A7848;
  --gold-pale:       #A8A672;
  --gold-text:       #4A4828;
  --gold-text-deep:  #3D3C1C;
  --display:         'Playfair Display', serif;
  --serif:           'Playfair Display', serif;
  --body:            'Bricolage Grotesque', sans-serif;
  --sans:            'Bricolage Grotesque', sans-serif;
  --hand:            'Caveat', cursive;
}

/* ——— Base ——— */
body { background: var(--cream); color: var(--ink); font-family: var(--body); }

/* ——— Headings: khaki-olive ——— */
h1, h2, h3, .bio-name, .explain-statement, .page-title {
  font-family: 'Playfair Display', serif !important;
  color: var(--olive) !important;
  font-weight: 700;
  letter-spacing: -0.5px;
}

/* ——— Handwritten accent ——— */
.hand {
  font-family: 'Caveat', cursive;
  font-weight: 400;
  font-size: 1.05em;
  display: inline;
  font-style: italic;
  letter-spacing: 0;
}

/* ——— Hero: khaki cloth gradient ——— */
.hero { background: #797850 !important; color: var(--cream) !important; }
.hero::before {
  display: block !important;
  background:
    radial-gradient(80% 70% at 25% 25%, rgba(148,145,82,.30), transparent 68%),
    radial-gradient(60% 65% at 75% 70%, rgba(55,54,28,.35), transparent 70%),
    radial-gradient(50% 55% at 55% 45%, rgba(108,106,60,.22), transparent 66%),
    radial-gradient(45% 42% at 15% 75%, rgba(140,136,75,.26), transparent 62%),
    radial-gradient(35% 38% at 88% 20%, rgba(62,60,30,.28), transparent 60%) !important;
}
.hero::after { display: block !important; opacity: 0.30 !important; }
.hero h1, .hero .page-title { color: var(--cream) !important; }
.hero-sub { color: rgba(240,237,226,.86) !important; font-family: var(--sans) !important; font-size: 19px !important; line-height: 1.7 !important; }
.hero-quiet { color: rgba(240,237,226,.60) !important; }
.hero-topline { color: rgba(240,237,226,.70) !important; }
.hero-foot { margin-bottom: 16px !important; }
.hero-foot-inner { color: var(--cream) !important; }
.hero-foot-inner .dot { color: rgba(195,220,110,.85) !important; }
.hero h1 { font-size: 74px !important; line-height: 1.08 !important; letter-spacing: -2px !important; }
.hero-sub { padding-bottom: 40px !important; margin-top: 20px !important; }
.hero-grid { padding-top: 56px !important; }

/* ——— Nav: cream ——— */
nav { background: var(--cream) !important; border-bottom: 1px solid var(--hair) !important; }
nav .nav-logo .wordmark, nav .nav-logo .wordmark span { color: #585634 !important; }
nav .logo-desc { color: var(--ink-soft) !important; }
nav a, nav span, nav button, nav p { color: var(--ink) !important; }
nav .nav-links a, nav .nav-links a:visited { color: var(--ink) !important; }
nav .nav-links a:hover { color: var(--olive) !important; }
.nav-dd-btn { color: var(--ink-soft) !important; }
.nav-dd-btn:hover { color: var(--olive) !important; }
.dd-caret path { stroke: var(--ink-soft) !important; }
nav .nav-contact-stack, nav .nav-contact-stack a { color: var(--ink-soft) !important; }
nav .btn-gold {
  background: var(--cta) !important;
  color: var(--ink) !important;
  border-color: transparent !important;
}
nav .btn-gold:hover { background: var(--cta-deep) !important; }

/* ——— Section spacing ——— */
section.block { padding: 72px 0; }

/* ——— Support band: light linen ——— */
.support-band { background: var(--paper) !important; color: var(--ink) !important; }
.support-wrap h2 { color: var(--olive) !important; }
.support-intro { color: var(--ink-soft) !important; }
.support-list li { color: var(--ink) !important; border-color: rgba(105,104,64,.14) !important; }
.support-wrap .support-list li strong { color: var(--olive) !important; }
.support-wrap .support-list li .support-sub { color: var(--ink-soft) !important; }
.support-wrap .support-list li { border-color: rgba(105,104,64,.14) !important; }
.support-wrap .support-list li:first-child { border-top-color: rgba(105,104,64,.14) !important; }
.support-list-label { color: var(--sage) !important; }

/* ——— Explain: plain cream ——— */
.explain { background: var(--cream) !important; border-radius: 0 !important; margin: 0 !important; }

/* ——— Services: plain cream ——— */
.services { background: var(--cream) !important; border-radius: 0 !important; margin: 0 !important; }
.services.block { padding: 56px 0; }
.service-row .s-name { color: var(--olive) !important; }
.service-row .s-desc { color: var(--ink-soft) !important; }

/* ——— CTA band ——— */
.cta-band { background: var(--paper) !important; border-color: var(--hair) !important; color: var(--ink) !important; }
.cta-band h2 { color: var(--olive) !important; }
.cta-band p { color: var(--ink-soft) !important; }
.cta-note { color: var(--sage) !important; }
.btn-line-light { border-color: rgba(74,86,40,.3) !important; color: var(--olive) !important; }
.btn-line-light:hover { border-color: var(--olive) !important; background: rgba(74,86,40,.06) !important; }

/* ——— Booking band ——— */
.booking-band { background: var(--olive) !important; }
.booking-text h2 {
  font-family: 'Bricolage Grotesque', sans-serif !important;
  color: var(--cream) !important;
}

/* ——— Where we work: khaki band ——— */
section[data-screen-label="Where we work"] { background: #797850; }
section[data-screen-label="Where we work"] h2,
section[data-screen-label="Where we work"] .where-copy,
section[data-screen-label="Where we work"] .where-cities li,
section[data-screen-label="Where we work"] .where-cities a,
section[data-screen-label="Where we work"] .text-link { color: var(--cream) !important; }
section[data-screen-label="Where we work"] .where-cities a { border-bottom-color: rgba(240,237,226,.45) !important; }
section[data-screen-label="Where we work"] .where-cities li { border-bottom-color: rgba(240,237,226,.22) !important; }
section[data-screen-label="Where we work"] .tele-item { color: var(--cream) !important; }
section[data-screen-label="Where we work"] .map-label { fill: var(--cream) !important; }
section[data-screen-label="Where we work"] .map-land { fill: rgba(240,237,226,.18) !important; stroke: rgba(240,237,226,.55) !important; }
section[data-screen-label="Where we work"] .map-leader { stroke: rgba(240,237,226,.4) !important; }

/* ——— Footer: khaki ——— */
footer { background: #797850 !important; }
.footer-top .fhead {
  color: var(--cream) !important;
  font-size: 12px !important;
  letter-spacing: 2.8px !important;
  padding-bottom: 10px !important;
  border-bottom: 1px solid rgba(240,237,226,.3) !important;
  margin-bottom: 12px !important;
}
.footer-logo .logo-desc { color: var(--cream) !important; opacity: 0.75; }
.f-reg, .f-reg .num { color: var(--cream) !important; }

/* ——— Bio cards ——— */
.bio-card { background: var(--paper); border: 1px solid var(--hair); border-radius: 22px; padding: 28px 28px 30px; }
.bio-photo { width: 100%; aspect-ratio: 1/1; border-radius: 16px; overflow: hidden; margin-bottom: 22px; background: var(--olive); }
.bio-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bio-name { font-family: var(--display) !important; font-size: 25px !important; font-weight: 500 !important; line-height: 1.15; margin: 0 0 6px !important; color: var(--ink) !important; }
.bio-role { font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: 1.6px; text-transform: uppercase; color: var(--olive) !important; margin: 0 0 14px; }
.bio-reg { font-family: var(--serif); font-style: italic; font-size: 16.5px; line-height: 1.4; color: var(--ink-soft); margin: 0 0 22px; }
.bio-quals-label { display: block; font-family: var(--sans); font-size: 10.5px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 12px; }
.bio-quals ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.bio-quals li { font-family: var(--sans); font-size: 14px; line-height: 1.4; color: var(--ink); padding-left: 18px; position: relative; }
.bio-quals li::before { content: ""; position: absolute; left: 0; top: 8px; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }

/* ——— Prac cards ——— */
.prac-photo { background: var(--olive); }
.prac-role { color: var(--olive); }
.team-toggle button[aria-selected="true"] { background: var(--olive); color: var(--cream); }

/* ——— Text links ——— */
.text-link { text-decoration-color: var(--gold-text); }

/* ——— Page row borders ——— */
.page-row { border-bottom-color: var(--hair); }
.page-row:first-child { border-top-color: var(--hair); }

/* ——— Hide nav language selector (moved to footer) ——— */
nav .nav-lang, nav label[aria-label="Language"] { display: none !important; }

/* ——— Google Translate hide ——— */
.goog-te-banner-frame, .skiptranslate { display: none !important; }
body { top: 0 !important; }

/* ——— Scroll reveal ——— */
@media (prefers-reduced-motion: no-preference) {
  .rs-reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.7s cubic-bezier(.22,.68,0,.98), transform 0.7s cubic-bezier(.22,.68,0,.98);
  }
  .rs-reveal.rs-visible { opacity: 1; transform: none; }
}

/* ——— Hover: buttons ——— */
.btn { transition: all 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease !important; }
.btn:hover {
  box-shadow: 0 8px 28px rgba(0,0,0,.16), 0 2px 8px rgba(0,0,0,.08) !important;
  transform: translateY(-2px) !important;
}

/* ——— Hover: service rows ——— */
.service-row { transition: padding-left 0.22s ease, background 0.22s ease !important; }
.service-row:hover { padding-left: 14px !important; }

/* ——— Hover: bio / prac cards ——— */
.bio-card, .prac-card { transition: transform 0.24s ease, box-shadow 0.24s ease !important; }
.bio-card:hover, .prac-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 38px rgba(47,58,56,.11);
}

/* ——— 2-column region grid (location pages) ——— */
.region-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.region-item { padding: 22px 32px 22px 0; border-bottom: 1px solid var(--hair); }
.region-item:nth-child(odd) { border-right: 1px solid var(--hair); }
.region-item:nth-child(even) { padding-left: 32px; padding-right: 0; }
.region-item:last-child { border-bottom: none; }
.region-name { font-family: 'Playfair Display', serif; font-size: 19px; font-weight: 600; color: var(--olive); line-height: 1.2; margin-bottom: 7px; letter-spacing: -0.2px; }
.region-suburbs { font-family: 'Bricolage Grotesque', sans-serif; font-size: 14.5px; color: var(--ink-soft); line-height: 1.65; }
@media (max-width: 660px) {
  .region-grid { grid-template-columns: 1fr; }
  .region-item:nth-child(odd) { border-right: none; padding-right: 0; }
  .region-item:nth-child(even) { padding-left: 0; }
  .region-item:nth-last-child(-n+2) { border-bottom: 1px solid var(--hair); }
  .region-item:last-child { border-bottom: none; }
}

/* ——— FAQ accordion ——— */
.faq-acc summary { color: var(--ink); }
.faq-acc summary::after { color: var(--olive); }
.faq-acc summary:hover { color: var(--olive); }

/* ——— Footer language selector ——— */
.footer-lang-select {
  appearance: none;
  background: transparent;
  border: none;
  color: var(--cream);
  font-family: var(--sans);
  font-size: 13px;
  cursor: pointer;
  outline: none;
  opacity: 0.7;
}

/* ——— Booking band global layout ——— */
.booking-band {
  border-radius: 24px;
  padding: 56px 64px;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 56px;
  align-items: start;
}
.booking-text { display: flex; flex-direction: column; gap: 18px; }
.booking-text p { font-family: var(--body); font-size: 19px; line-height: 1.7; color: rgba(240,237,226,.85); margin: 0; }
.booking-contact {
  margin-top: 4px; padding-top: 18px;
  border-top: 1px solid rgba(240,237,226,.18);
  font-family: var(--body); font-size: 16px; color: rgba(240,237,226,.8);
  display: flex; flex-wrap: wrap; gap: 6px 22px; line-height: 1.6;
}
.booking-contact a { color: var(--cream) !important; font-weight: 600; text-decoration: underline; }
.booking-cal { background: white; border-radius: 16px; overflow: hidden; flex-shrink: 0; }
.booking-cal iframe { display: block; width: 100%; border: none; }
@media (max-width: 960px) { .booking-band { grid-template-columns: 1fr; padding: 40px 36px; } }

/* ——— Prac card layout (location pages + About Us) ——— */
.prac-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; align-items: start; }
.prac-card { background: var(--paper); border: 1px solid var(--hair); border-radius: 18px; padding: 18px 18px 20px; display: flex; flex-direction: column; }
.prac-photo { width: 100%; aspect-ratio: 1/1; border-radius: 12px; overflow: hidden; margin-bottom: 16px; background: var(--olive); }
.prac-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.prac-photo .avatar { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--cream); font-family: var(--display); font-size: 40px; font-weight: 500; line-height: 1; user-select: none; }
.prac-name { font-family: var(--display) !important; font-size: 19px !important; font-weight: 500 !important; line-height: 1.15; margin: 0 0 5px !important; color: var(--ink) !important; }
.prac-quals-label { display: block; font-family: var(--sans); font-size: 10px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--ink-soft); margin: 10px 0 10px; }
.prac-quals { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.prac-quals li { font-family: var(--sans); font-size: 13.5px; line-height: 1.4; color: var(--ink); padding-left: 16px; position: relative; }
.prac-quals li::before { content: ""; position: absolute; left: 0; top: 7px; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }
@media (max-width: 1100px) { .prac-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .prac-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .prac-grid { grid-template-columns: 1fr; } }

/* ═══════════════════════════════════════════════
   Mobile navigation (≤1020px)
   Vertical stacked drawer · each submenu expands directly
   BELOW its parent label · contact + CTA inside the drawer.
═══════════════════════════════════════════════ */
.nav-mobile-actions { display: none; }

@media (max-width: 1020px) {
  /* Stack label above submenu (override desktop .nav-links > .nav-dd flex-row) */
  .nav-links > .nav-dd { display: block !important; width: 100%; }

  /* Submenu flows full-width directly below the parent label */
  body.nav-mobile-open .nav-links .nav-dd-menu {
    position: static !important; transform: none !important; left: auto !important;
    width: 100% !important; padding: 0 !important;
  }
  body.nav-mobile-open .nav-links .nav-dd-card {
    width: 100% !important; padding: 2px 0 12px !important;
  }
  body.nav-mobile-open .nav-links .nav-dd-card a {
    padding: 11px 8px 11px 22px !important;   /* indent children under parent */
    color: var(--ink-soft) !important; white-space: normal !important;
  }
  /* caret flips when its section is open */
  .nav-links .nav-dd--open .dd-caret { transform: rotate(180deg); }

  /* Contact + CTA block, inside the drawer beneath the menu items */
  .nav-mobile-actions {
    display: flex; flex-direction: column; gap: 14px;
    margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--hair);
  }
  .nav-mobile-actions .btn { width: 100%; justify-content: center; text-align: center; font-size: 15px; }
  .nav-call {
    display: flex; align-items: center; justify-content: center; gap: 9px;
    padding: 13px 16px; border: 1.5px solid var(--olive); border-radius: 999px;
    font-family: var(--sans); font-weight: 600; font-size: 16px;
    color: var(--olive) !important; text-decoration: none;
  }
  .nav-call:hover { background: rgba(107,104,64,.07); }
  .nav-email {
    text-align: center; font-family: var(--sans); font-size: 14px;
    color: var(--ink-soft) !important; text-decoration: none;
  }
  .nav-email:hover { text-decoration: underline; }
}

/* ═══════════════════════════════════════════════
   Accessibility — skip link, keyboard focus, contrast
═══════════════════════════════════════════════ */
.skip-link{
  position:absolute; left:8px; top:-56px; z-index:1000;
  background:#585634; color:#F0EDE2; padding:10px 16px;
  border-radius:0 0 8px 8px; font-family:var(--sans); font-size:14px;
  font-weight:600; text-decoration:none; transition:top .15s ease;
}
.skip-link:focus{ top:0; outline:3px solid #F0EDE2; outline-offset:2px; }

/* Visible keyboard focus everywhere (only shows on keyboard nav) */
:focus-visible{ outline:3px solid #2C2B18; outline-offset:2px; border-radius:2px; }
/* Light focus ring on the dark khaki/olive bands */
.hero :focus-visible,
footer :focus-visible,
.booking-band :focus-visible,
section[data-screen-label="Where we work"] :focus-visible{ outline-color:#F0EDE2; }
/* Restore a focus indicator on the language selects (they set outline:none) */
select:focus-visible,
.footer-lang-select:focus-visible{ outline:2px solid currentColor; outline-offset:2px; }

/* Contrast: footer dropdown hover was ~1.8:1 on khaki — lighten it */
.footer-top .nav-dd-card a:hover,
.footer-top .nav-dd-btn:hover{ color:#EDE7C4 !important; }
