/*
Theme Name: Amaro Tax Solutions
Theme URI: https://amarotaxsolutions.com/
Author: 9 Letter Studios
Author URI: https://9letterstudios.com/
Description: Custom theme for Amaro Tax Solutions, a family-run tax and accounting firm in Fort Lauderdale, FL. Warm editorial design with forest green, gold and terracotta; Libre Baskerville + Public Sans; English/Spanish toggle; light/dark modes. No page-builder dependency.
Version: 1.1.2
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: amaro-tax-solutions
*/

/* ============================================================
   Design system ported from the approved homepage mockup.
   Light palette on :root; dark palette follows the OS setting,
   with an optional manual override via html[data-theme].
   ============================================================ */

    :root {
      color-scheme: light dark;
      --paper: #f8f7f2;
      --surface: #ffffff;
      --ink: #17221d;
      --muted: #53625a;
      --line: #d9ddd8;
      --forest: #184b3b;
      --forest-deep: #0e3328;
      --sage: #dfe9df;
      --terracotta: #c76343;
      --terracotta-dark: #9b432a;
      --gold: #dda855;
      --white: #fffef9;
      --shadow: 0 22px 55px rgba(21, 42, 32, 0.15);
      --max: 1180px;
    }

    @media (prefers-color-scheme: dark) {
      :root {
        --paper: #111713;
        --surface: #19221d;
        --ink: #f1f4ee;
        --muted: #b7c2ba;
        --line: #35423a;
        --forest: #27755c;
        --forest-deep: #0b2c22;
        --sage: #23372c;
        --terracotta: #e37a59;
        --terracotta-dark: #f19578;
        --gold: #efbd6e;
        --white: #fffef9;
        --shadow: 0 22px 55px rgba(0, 0, 0, 0.34);
      }
    }

    * { box-sizing: border-box; }
    html { scroll-behavior: smooth; }
    body {
      margin: 0;
      min-width: 320px;
      background: var(--paper);
      color: var(--ink);
      font-family: "Public Sans", sans-serif;
      line-height: 1.55;
      text-rendering: optimizeLegibility;
    }
    img { display: block; max-width: 100%; }
    a { color: inherit; }
    button, a { -webkit-tap-highlight-color: transparent; }
    button { font: inherit; }
    .skip {
      position: fixed;
      left: 12px;
      top: -60px;
      z-index: 50;
      padding: 10px 14px;
      background: var(--surface);
      border: 1px solid var(--line);
    }
    .skip:focus { top: 12px; }

    .notice {
      background: var(--forest-deep);
      color: var(--white);
      font-size: 0.79rem;
      letter-spacing: 0.02em;
    }
    .notice-inner {
      max-width: var(--max);
      margin: 0 auto;
      padding: 9px 24px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 18px;
    }
    .notice strong { color: #f1c983; font-weight: 600; }
    .notice a { text-decoration-thickness: 1px; text-underline-offset: 3px; }

    .site-nav {
      position: sticky;
      top: 0;
      z-index: 20;
      background: color-mix(in srgb, var(--paper) 92%, transparent);
      border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
      backdrop-filter: blur(12px);
    }
    .nav-inner {
      max-width: var(--max);
      margin: 0 auto;
      min-height: 72px;
      padding: 0 24px;
      display: flex;
      align-items: center;
      justify-content: flex-end;
      gap: 10px;
    }
    .nav-links { display: flex; align-items: center; gap: 26px; list-style: none; margin: 0; padding: 0; }
    .nav-links a {
      text-decoration: none;
      color: var(--muted);
      font-size: 0.9rem;
      font-weight: 600;
    }
    .nav-links a:hover, .nav-links a:focus-visible, .nav-links a[aria-current="page"] { color: var(--forest); }
    .nav-links a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--terracotta); text-decoration-thickness: 2px; text-underline-offset: 7px; }
    .language-btn, .menu-btn {
      border: 0;
      background: transparent;
      color: var(--ink);
      cursor: pointer;
      font-weight: 700;
    }
    .language-btn {
      padding: 10px 11px;
      margin-left: 14px;
      border-left: 1px solid var(--line);
    }
    .menu-btn {
      width: 44px;
      height: 44px;
      display: none;
      align-items: center;
      justify-content: center;
      border: 1px solid var(--line);
    }
    .nav-cta {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      margin-left: 6px;
      padding: 11px 16px;
      background: var(--terracotta);
      color: #fff;
      text-decoration: none;
      font-size: 0.88rem;
      font-weight: 700;
      border-radius: 4px;
    }
    .nav-cta:hover, .nav-cta:focus-visible { background: var(--terracotta-dark); }

    .hero {
      max-width: var(--max);
      margin: 0 auto;
      padding: clamp(52px, 8vw, 98px) 24px 74px;
      display: grid;
      grid-template-columns: minmax(0, 1.02fr) minmax(420px, 0.98fr);
      align-items: center;
      gap: clamp(48px, 7vw, 92px);
    }
    .eyebrow {
      margin: 0 0 17px;
      color: var(--terracotta-dark);
      font-size: 0.78rem;
      line-height: 1.2;
      text-transform: uppercase;
      letter-spacing: 0.14em;
      font-weight: 700;
    }
    .hero h1, .section-title, .contact-title {
      font-family: "Libre Baskerville", Georgia, serif;
      letter-spacing: -0.035em;
    }
    .hero h1 {
      margin: 0;
      max-width: 710px;
      font-size: clamp(2.5rem, 5.6vw, 4.75rem);
      line-height: 1.04;
      font-weight: 700;
    }
    .hero h1 em { color: var(--forest); font-style: normal; }
    .hero-copy {
      margin: 24px 0 0;
      max-width: 640px;
      color: var(--muted);
      font-size: clamp(1rem, 1.5vw, 1.15rem);
    }
    .hero-actions {
      margin-top: 31px;
      display: flex;
      flex-wrap: wrap;
      gap: 12px;
    }
    .btn {
      min-height: 49px;
      padding: 13px 19px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      border: 1px solid transparent;
      border-radius: 5px;
      font-size: 0.94rem;
      line-height: 1;
      font-weight: 700;
      text-decoration: none;
      cursor: pointer;
    }
    .btn-primary { background: var(--forest); color: var(--white); }
    .btn-primary:hover, .btn-primary:focus-visible { background: var(--forest-deep); }
    .btn-secondary { border-color: var(--line); background: var(--surface); }
    .btn-secondary:hover, .btn-secondary:focus-visible { border-color: var(--forest); color: var(--forest); }
    .mini-trust {
      list-style: none;
      padding: 0;
      margin: 30px 0 0;
      display: flex;
      flex-wrap: wrap;
      gap: 12px 22px;
      color: var(--muted);
      font-size: 0.84rem;
    }
    .mini-trust li { display: flex; align-items: center; gap: 8px; }
    .mini-trust svg { color: var(--terracotta); flex: 0 0 auto; }

    .hero-visual { position: relative; padding: 0 18px 24px 0; }
    .hero-image-wrap {
      position: relative;
      overflow: hidden;
      border-radius: 7px 56px 7px 7px;
      background: var(--sage);
      box-shadow: var(--shadow);
      aspect-ratio: 4 / 4.25;
    }
    .hero-image-wrap::after {
      content: "";
      position: absolute;
      inset: 0;
      box-shadow: inset 0 0 0 1px rgba(255,255,255,0.24);
      pointer-events: none;
    }
    .hero-image-wrap img { width: 100%; height: 100%; object-fit: cover; object-position: 50% center; }
    .experience-card {
      position: absolute;
      left: -34px;
      bottom: -8px;
      width: min(245px, 55%);
      padding: 18px 19px 19px;
      color: var(--white);
      background: var(--forest-deep);
      border-top: 4px solid var(--gold);
      box-shadow: 0 16px 36px rgba(15, 39, 31, 0.23);
    }
    .experience-card strong {
      display: block;
      margin-bottom: 2px;
      font-family: "Libre Baskerville", Georgia, serif;
      font-size: 1.65rem;
      line-height: 1.15;
    }
    .experience-card span { color: #d8e2dc; font-size: 0.82rem; line-height: 1.4; }

    .proof-bar {
      border-top: 1px solid var(--line);
      border-bottom: 1px solid var(--line);
      background: var(--surface);
    }
    .proof-inner {
      max-width: var(--max);
      margin: 0 auto;
      padding: 0 24px;
      display: grid;
      grid-template-columns: repeat(3, 1fr);
    }
    .proof-item {
      min-height: 120px;
      padding: 27px 28px;
      display: flex;
      align-items: flex-start;
      gap: 14px;
    }
    .proof-item + .proof-item { border-left: 1px solid var(--line); }
    .proof-icon {
      width: 38px;
      height: 38px;
      display: grid;
      place-items: center;
      color: var(--forest);
      background: var(--sage);
      border-radius: 50%;
      flex: 0 0 auto;
    }
    .proof-item strong { display: block; margin-bottom: 3px; font-size: 0.95rem; }
    .proof-item span { color: var(--muted); font-size: 0.82rem; }

    .section {
      max-width: var(--max);
      margin: 0 auto;
      padding: clamp(76px, 9vw, 112px) 24px;
    }
    .section-head {
      display: grid;
      grid-template-columns: minmax(0, 0.72fr) minmax(260px, 0.38fr);
      gap: 60px;
      align-items: end;
      margin-bottom: 46px;
    }
    .section-title {
      margin: 0;
      max-width: 740px;
      font-size: clamp(2rem, 4.2vw, 3.5rem);
      line-height: 1.1;
    }
    .section-head p:last-child {
      margin: 0;
      color: var(--muted);
      font-size: 0.98rem;
    }

    .services-list { border-top: 1px solid var(--line); }
    .service {
      display: grid;
      grid-template-columns: 62px minmax(230px, 0.65fr) minmax(280px, 0.8fr) 34px;
      gap: 24px;
      align-items: center;
      padding: 25px 4px;
      border-bottom: 1px solid var(--line);
      text-decoration: none;
    }
    .service:hover .service-arrow, .service:focus-visible .service-arrow { transform: translateX(6px); color: var(--terracotta); }
    .service-num { color: var(--terracotta-dark); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; }
    .service h3 { margin: 0; font-family: "Libre Baskerville", Georgia, serif; font-size: 1.28rem; }
    .service p { margin: 0; color: var(--muted); font-size: 0.9rem; }
    .service-arrow { color: var(--forest); transition: transform 160ms ease, color 160ms ease; }

    .approach-wrap { background: var(--forest-deep); color: var(--white); }
    .approach {
      max-width: var(--max);
      margin: 0 auto;
      padding: clamp(74px, 9vw, 108px) 24px;
      display: grid;
      grid-template-columns: minmax(280px, 0.75fr) minmax(0, 1.25fr);
      gap: clamp(50px, 8vw, 110px);
      align-items: start;
    }
    .approach .eyebrow { color: #efb895; }
    .approach .section-title { max-width: 470px; }
    .approach-intro { margin: 22px 0 0; max-width: 475px; color: #d1ded7; }
    .steps { border-top: 1px solid rgba(255,255,255,0.2); }
    .step {
      display: grid;
      grid-template-columns: 50px minmax(0, 1fr);
      gap: 18px;
      padding: 25px 0;
      border-bottom: 1px solid rgba(255,255,255,0.2);
    }
    .step-number {
      width: 34px;
      height: 34px;
      display: grid;
      place-items: center;
      border: 1px solid rgba(255,255,255,0.34);
      border-radius: 50%;
      color: #f3c58b;
      font-weight: 700;
      font-size: 0.82rem;
    }
    .step h3 { margin: 0 0 6px; font-size: 1.03rem; }
    .step p { margin: 0; color: #cbd8d2; font-size: 0.9rem; }

    .story {
      max-width: var(--max);
      margin: 0 auto;
      padding: clamp(78px, 10vw, 126px) 24px;
      display: grid;
      grid-template-columns: minmax(0, 1fr) minmax(300px, 0.65fr);
      gap: clamp(50px, 8vw, 100px);
      align-items: center;
    }
    .pullquote {
      position: relative;
      margin: 0;
      padding: 5px 0 4px 34px;
      border-left: 4px solid var(--terracotta);
      font-family: "Libre Baskerville", Georgia, serif;
      font-size: clamp(1.55rem, 3.1vw, 2.55rem);
      line-height: 1.28;
    }
    .story-copy p { margin: 0 0 18px; color: var(--muted); }
    .story-copy a { color: var(--forest); font-weight: 700; text-underline-offset: 4px; }

    .contact-wrap { padding: 0 24px 56px; }
    .contact {
      max-width: var(--max);
      margin: 0 auto;
      display: grid;
      grid-template-columns: minmax(0, 1fr) minmax(300px, 0.8fr);
      gap: 56px;
      padding: clamp(42px, 6vw, 70px);
      background: var(--sage);
      border-top: 5px solid var(--terracotta);
    }
    .contact-title { margin: 0; font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.1; }
    .contact-lead { margin: 18px 0 28px; max-width: 560px; color: var(--muted); }
    .contact-actions { display: flex; flex-wrap: wrap; gap: 12px; }
    .contact-details { display: grid; gap: 18px; align-content: start; }
    .detail { padding-bottom: 17px; border-bottom: 1px solid color-mix(in srgb, var(--forest) 25%, transparent); }
    .detail:last-child { border-bottom: 0; padding-bottom: 0; }
    .detail-label { display: block; margin-bottom: 4px; color: var(--terracotta-dark); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.12em; font-weight: 700; }
    .detail a { text-decoration: none; font-weight: 700; }
    .detail span:last-child { color: var(--muted); font-size: 0.92rem; }

    footer { background: var(--forest-deep); color: #d8e3dd; }
    .footer-inner {
      max-width: var(--max);
      margin: 0 auto;
      padding: 35px 24px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 24px;
      font-size: 0.78rem;
    }
    .footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
    .footer-links a { text-underline-offset: 3px; }


    .page-hero {
      max-width: var(--max);
      margin: 0 auto;
      padding: clamp(62px, 8vw, 100px) 24px clamp(58px, 7vw, 86px);
      display: grid;
      grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.48fr);
      gap: clamp(38px, 7vw, 92px);
      align-items: end;
      border-bottom: 1px solid var(--line);
    }
    .page-hero h1 {
      margin: 0;
      font-family: "Libre Baskerville", Georgia, serif;
      font-size: clamp(2.45rem, 5vw, 4.4rem);
      line-height: 1.05;
      letter-spacing: -0.04em;
    }
    .page-hero .lead { margin: 0; color: var(--muted); font-size: 1.04rem; }
    .page-hero .lead strong { color: var(--ink); }

    .service-detail-list { border-top: 1px solid var(--line); }
    .service-detail {
      display: grid;
      grid-template-columns: 74px minmax(220px, 0.62fr) minmax(260px, 1fr);
      gap: 28px;
      padding: 34px 4px;
      border-bottom: 1px solid var(--line);
      align-items: start;
    }
    .service-detail h2 { margin: 0; font-family: "Libre Baskerville", Georgia, serif; font-size: clamp(1.25rem, 2vw, 1.7rem); line-height: 1.3; }
    .service-detail p { margin: 0 0 14px; color: var(--muted); }
    .service-detail ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
    .service-detail li { position: relative; padding-left: 19px; font-size: 0.9rem; }
    .service-detail li::before { content: ""; position: absolute; left: 0; top: 0.68em; width: 7px; height: 2px; background: var(--terracotta); }

    .split-band { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
    .split-band-inner {
      max-width: var(--max);
      margin: 0 auto;
      padding: clamp(66px, 8vw, 98px) 24px;
      display: grid;
      grid-template-columns: minmax(250px, 0.7fr) minmax(0, 1.1fr);
      gap: clamp(44px, 8vw, 100px);
      align-items: start;
    }
    .split-band h2, .editorial-block h2, .review-promise h2 {
      margin: 0;
      font-family: "Libre Baskerville", Georgia, serif;
      font-size: clamp(1.9rem, 3.8vw, 3rem);
      line-height: 1.15;
      letter-spacing: -0.035em;
    }
    .split-copy { display: grid; gap: 19px; }
    .split-copy p { margin: 0; color: var(--muted); }

    .timeline { border-top: 1px solid var(--line); }
    .timeline-row { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 30px; padding: 25px 0; border-bottom: 1px solid var(--line); }
    .timeline-row strong { color: var(--terracotta-dark); font-size: 0.83rem; letter-spacing: 0.06em; text-transform: uppercase; }
    .timeline-row p { margin: 0; color: var(--muted); }

    .values-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
    .value { padding: 31px 28px; }
    .value + .value { border-left: 1px solid var(--line); }
    .value span { color: var(--terracotta-dark); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; }
    .value h3 { margin: 12px 0 9px; font-family: "Libre Baskerville", Georgia, serif; font-size: 1.26rem; }
    .value p { margin: 0; color: var(--muted); font-size: 0.9rem; }

    .review-promise {
      max-width: var(--max);
      margin: 0 auto;
      padding: clamp(70px, 9vw, 112px) 24px;
      display: grid;
      grid-template-columns: minmax(0, 0.85fr) minmax(300px, 0.72fr);
      gap: clamp(48px, 8vw, 110px);
      align-items: start;
    }
    .review-promise-copy { border-top: 1px solid var(--line); }
    .promise-row { padding: 22px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 42px 1fr; gap: 14px; }
    .promise-row strong { display: block; margin-bottom: 5px; }
    .promise-row p { margin: 0; color: var(--muted); font-size: 0.9rem; }
    .promise-mark { color: var(--forest); font-family: "Libre Baskerville", Georgia, serif; font-weight: 700; }
    .accreditation {
      margin-top: 34px;
      padding: 26px 28px;
      background: var(--forest-deep);
      color: var(--white);
      border-top: 4px solid var(--gold);
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 24px;
    }
    .accreditation strong { display: block; font-family: "Libre Baskerville", Georgia, serif; font-size: 1.35rem; }
    .accreditation span { color: #d3dfd8; font-size: 0.85rem; }
    .accreditation-badge { flex: 0 0 auto; font-size: 2rem; font-weight: 700; color: #f1c983; }

    .contact-page-grid {
      max-width: var(--max);
      margin: 0 auto;
      padding: clamp(68px, 8vw, 102px) 24px;
      display: grid;
      grid-template-columns: minmax(0, 0.95fr) minmax(310px, 0.72fr);
      gap: clamp(48px, 8vw, 104px);
    }
    .contact-methods { border-top: 1px solid var(--line); }
    .contact-method { display: grid; grid-template-columns: 105px minmax(0, 1fr); gap: 24px; padding: 24px 0; border-bottom: 1px solid var(--line); }
    .contact-method span:first-child { color: var(--terracotta-dark); font-size: 0.74rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; }
    .contact-method a { font-family: "Libre Baskerville", Georgia, serif; font-size: 1.18rem; font-weight: 700; text-decoration-thickness: 1px; text-underline-offset: 4px; }
    .contact-method small { display: block; margin-top: 5px; color: var(--muted); font-size: 0.82rem; }
    .visit-panel { padding: 34px; background: var(--sage); border-top: 5px solid var(--terracotta); }
    .visit-panel h2 { margin: 0 0 26px; font-family: "Libre Baskerville", Georgia, serif; font-size: 1.7rem; }
    .visit-panel dl { margin: 0; display: grid; gap: 20px; }
    .visit-panel dt { margin-bottom: 4px; color: var(--terracotta-dark); font-size: 0.73rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; }
    .visit-panel dd { margin: 0; color: var(--muted); }
    .visit-panel dd strong { color: var(--ink); }

    .faq-list { border-top: 1px solid var(--line); }
    .faq-item { border-bottom: 1px solid var(--line); }
    .faq-item button {
      width: 100%;
      padding: 21px 4px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 20px;
      border: 0;
      background: transparent;
      color: var(--ink);
      text-align: left;
      cursor: pointer;
      font-weight: 700;
    }
    .faq-item button svg { flex: 0 0 auto; transition: transform 160ms ease; }
    .faq-item button[aria-expanded="true"] svg { transform: rotate(45deg); }
    .faq-answer { padding: 0 52px 21px 4px; color: var(--muted); font-size: 0.92rem; }
    .faq-answer[hidden] { display: none; }

    .language-toast {
      position: fixed;
      right: 18px;
      bottom: 18px;
      z-index: 40;
      max-width: calc(100vw - 36px);
      padding: 12px 15px;
      background: var(--ink);
      color: var(--paper);
      border-radius: 4px;
      box-shadow: var(--shadow);
      opacity: 0;
      transform: translateY(14px);
      pointer-events: none;
      transition: 180ms ease;
      font-size: 0.86rem;
    }
    .language-toast.show { opacity: 1; transform: translateY(0); }

    :focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

    @media (max-width: 880px) {
      .nav-inner { justify-content: space-between; }
      .menu-btn { display: inline-flex; }
      .nav-links {
        position: absolute;
        left: 16px;
        right: 16px;
        top: 62px;
        display: none;
        padding: 12px;
        background: var(--surface);
        border: 1px solid var(--line);
        box-shadow: var(--shadow);
      }
      .nav-links.open { display: grid; }
      .nav-links a { padding: 11px 10px; }
      .language-btn { margin-left: auto; border-left: 0; }
      .nav-cta { margin-left: 0; }
      .hero { grid-template-columns: 1fr; padding-top: 52px; }
      .hero-copy { max-width: 700px; }
      .hero-visual { width: min(100%, 620px); margin: 2px auto 0; padding-left: 30px; }
      .experience-card { left: 0; }
      .section-head { grid-template-columns: 1fr; gap: 20px; }
      .approach, .story { grid-template-columns: 1fr; }
      .contact { grid-template-columns: 1fr; }
      .page-hero, .split-band-inner, .review-promise, .contact-page-grid { grid-template-columns: 1fr; }
      .service-detail { grid-template-columns: 56px minmax(0, 1fr); }
      .service-detail > div:last-child { grid-column: 2; }
      .values-grid { grid-template-columns: 1fr; }
      .value + .value { border-left: 0; border-top: 1px solid var(--line); }
    }

    @media (max-width: 660px) {
      .notice-inner { padding: 8px 17px; justify-content: center; text-align: center; }
      .notice-inner span:last-child { display: none; }
      .nav-inner { padding: 0 16px; min-height: 62px; }
      .nav-cta { display: none; }
      .hero { padding: 44px 18px 61px; gap: 46px; }
      .hero h1 { font-size: clamp(2.25rem, 12vw, 3.45rem); }
      .hero-actions .btn { flex: 1 1 180px; }
      .hero-visual { padding: 0 0 32px 19px; }
      .hero-image-wrap { aspect-ratio: 1 / 1.04; border-radius: 5px 38px 5px 5px; }
      .experience-card { width: 225px; bottom: 0; }
      .proof-inner { grid-template-columns: 1fr; }
      .proof-item { min-height: 0; padding: 20px 18px; }
      .proof-item + .proof-item { border-left: 0; border-top: 1px solid var(--line); }
      .section { padding: 72px 18px; }
      .services-list { border-top: 0; }
      .service {
        grid-template-columns: 40px minmax(0, 1fr) 26px;
        gap: 12px;
        padding: 20px 0;
      }
      .service p { grid-column: 2 / 4; padding-right: 8px; }
      .service-arrow { grid-column: 3; grid-row: 1; }
      .approach { padding: 72px 18px; }
      .story { padding: 74px 18px; }
      .pullquote { padding-left: 21px; }
      .contact-wrap { padding: 0 12px 30px; }
      .contact { padding: 42px 22px; gap: 40px; }
      .contact-actions .btn { width: 100%; }
      .footer-inner { padding: 30px 18px; align-items: flex-start; flex-direction: column; }
      .page-hero { padding: 54px 18px 58px; gap: 23px; }
      .section, .split-band-inner, .review-promise, .contact-page-grid { padding-left: 18px; padding-right: 18px; }
      .service-detail { grid-template-columns: 36px minmax(0, 1fr); gap: 13px; padding: 26px 0; }
      .service-detail > div:last-child { grid-column: 1 / -1; padding-left: 49px; }
      .timeline-row { grid-template-columns: 1fr; gap: 8px; }
      .accreditation { align-items: flex-start; padding: 24px 22px; }
      .contact-method { grid-template-columns: 1fr; gap: 6px; }
      .visit-panel { padding: 28px 22px; }
    }

    @media (prefers-reduced-motion: reduce) {
      html { scroll-behavior: auto; }
      *, *::before, *::after { transition-duration: 0.01ms !important; }
    }
  
/* ---------- WordPress adaptations ---------- */

/* Manual light/dark override (set by the header toggle, persisted in localStorage).
   Same palettes as the mockup; wins over the prefers-color-scheme block above. */
html[data-theme="light"] {
  color-scheme: light;
  --paper: #f8f7f2;
  --surface: #ffffff;
  --ink: #17221d;
  --muted: #53625a;
  --line: #d9ddd8;
  --forest: #184b3b;
  --forest-deep: #0e3328;
  --sage: #dfe9df;
  --terracotta: #c76343;
  --terracotta-dark: #9b432a;
  --gold: #dda855;
  --white: #fffef9;
  --shadow: 0 22px 55px rgba(21, 42, 32, 0.15);
}
html[data-theme="dark"] {
  color-scheme: dark;
  --paper: #111713;
  --surface: #19221d;
  --ink: #f1f4ee;
  --muted: #b7c2ba;
  --line: #35423a;
  --forest: #27755c;
  --forest-deep: #0b2c22;
  --sage: #23372c;
  --terracotta: #e37a59;
  --terracotta-dark: #f19578;
  --gold: #efbd6e;
  --white: #fffef9;
  --shadow: 0 22px 55px rgba(0, 0, 0, 0.34);
}

/* Theme (light/dark) toggle button — styled to match the language button. */
.theme-btn {
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-weight: 700;
  padding: 10px 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-left: 1px solid var(--line);
}
.theme-btn:hover, .theme-btn:focus-visible { color: var(--forest); }
.theme-btn .icon-moon { display: none; }
html[data-theme="dark"] .theme-btn .icon-sun { display: none; }
html[data-theme="dark"] .theme-btn .icon-moon { display: block; }
@media (prefers-color-scheme: dark) {
  html:not([data-theme]) .theme-btn .icon-sun { display: none; }
  html:not([data-theme]) .theme-btn .icon-moon { display: block; }
}

/* WordPress marks the current menu item with .current-menu-item;
   give it the same treatment as the mockup's aria-current link. */
.nav-links .current-menu-item > a,
.nav-links .current_page_item > a {
  color: var(--forest);
  text-decoration: underline;
  text-decoration-color: var(--terracotta);
  text-decoration-thickness: 2px;
  text-underline-offset: 7px;
}

/* Sample-review label shown until real client reviews are supplied. */
.sample-note {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--terracotta-dark);
}
.review-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.review-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 4px solid var(--gold);
  padding: 26px 26px 22px;
}
.review-card .stars { color: var(--gold); letter-spacing: 0.15em; font-size: 0.95rem; }
.review-card blockquote { margin: 14px 0 12px; font-family: "Libre Baskerville", Georgia, serif; font-size: 1.02rem; line-height: 1.5; }
.review-card cite { font-style: normal; color: var(--muted); font-size: 0.85rem; }
@media (max-width: 880px) { .review-cards { grid-template-columns: 1fr; } }

/* Generic WordPress content area (page.php / index.php fallback). */
.ats-content { max-width: var(--max); margin: 0 auto; padding: clamp(56px, 7vw, 88px) 24px; }
.ats-content h1, .ats-content h2 { font-family: "Libre Baskerville", Georgia, serif; letter-spacing: -0.03em; }
.ats-content p, .ats-content li { color: var(--muted); }
