/*
 * Local Pharmacy theme — main stylesheet
 *
 * All styles live here. style.css in the theme root holds only the WordPress
 * theme header and a pointer to this file. This stylesheet is enqueued by
 * functions.php via wp_enqueue_style( 'local-pharmacy-main' ).
 *
 * Fonts (Geist + Newsreader) are loaded from Google Fonts via functions.php
 * rather than bundled, to keep the theme package small and standards-compliant.
 *
 * Section order matches the layout flow:
 *   :root tokens · base · container · topbar · header · hero · trust ·
 *   services · why · location · advice · reviews · cta · footer ·
 *   responsive overrides
 */

:root {
    /* brand */
    --green-900: #1c2d12;
    --green-800: #263d18;
    --green-700: #2d4a20;   /* logo green */
    --green-600: #3d6028;
    --green-500: #547f37;
    --green-200: #c9d5b5;
    --green-100: #e3e8d4;
    --green-50:  #f0f1e3;

    /* warm neutrals */
    --cream:     #f5f1e6;
    --cream-2:   #ebe5d3;
    --paper:     #fbfaf3;
    --ink:       #1a1d15;
    --ink-2:     #3a3d33;
    --ink-3:     #6b6e60;
    --ink-4:     #9c9e8e;
    --line:      #e0dac7;
    --line-2:    #ede8d8;

    /* accents */
    --terra:     #b5552b;
    --terra-soft:#e8c4a6;
    --gold:      #c19a3c;

    --radius:    14px;
    --radius-s:  8px;
    --shadow:    0 1px 0 rgba(28,45,18,0.04), 0 12px 32px -20px rgba(28,45,18,0.18);

    /* type — default to the "Apothecary" pairing (DM Sans + Fraunces).
       These can be overridden per-site by the Customizer's Typography setting,
       which injects an override block via wp_head before this stylesheet's
       defaults take effect. */
    --font-sans:   "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
    --font-serif:  "Fraunces", "Iowan Old Style", Georgia, serif;

    /* Slight per-pairing tweaks to body weight & letter-spacing live as
       variables so the body rule below picks them up cleanly. */
    --body-weight:      400;
    --body-tracking:    -0.005em;
    --headline-tracking: -0.022em;
    --serif-italic-weight: 500;
  }

  * { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; }
  body {
    font-family: var(--font-sans);
    font-weight: var(--body-weight);
    letter-spacing: var(--body-tracking);
    color: var(--ink);
    background: var(--paper);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    /* Fraunces benefits from contextual alternates and standard ligatures;
       DM Sans/Inter/Source Sans ignore the ones they don't have. */
    font-feature-settings: "kern", "liga", "calt";
  }
  .serif {
    font-family: var(--font-serif);
    font-weight: var(--serif-italic-weight);
    letter-spacing: -0.01em;
  }
  .psname {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: var(--serif-italic-weight);
    letter-spacing: -0.01em;
  }

  a { color: inherit; text-decoration: none; }
  img { max-width: 100%; display: block; }
  button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
  svg { display: block; }
  .screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 32px;
  }

  /* ===================== TOP BAR ===================== */
  .topbar {
    background: var(--green-900);
    color: #e9ecdd;
    font-size: 12.5px;
    letter-spacing: 0.02em;
  }
  .topbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 36px;
  }
  .tb-left, .tb-right {
    display: flex;
    align-items: center;
    gap: 24px;
  }
  .tb-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.85);
  }
  .tb-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: #7cbb4e;
    box-shadow: 0 0 0 3px rgba(124,187,78,0.25);
  }
  .tb-sep { color: rgba(255,255,255,0.25); }
  .tb-right a:hover { color: #fff; }

  /* ===================== HEADER ===================== */
  .header {
    background: var(--paper);
    border-bottom: 1px solid var(--line-2);
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: saturate(1.1) blur(6px);
  }
  .header .container {
    display: flex;
    align-items: center;
    height: 84px;
    gap: 40px;
  }
  .logo { flex-shrink: 0; display: block; }
  .logo img { height: 52px; width: auto; }

  .nav {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    justify-content: center;
  }
  .nav a {
    font-size: 14px;
    color: var(--ink-2);
    font-weight: 500;
    padding: 10px 14px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background 0.15s, color 0.15s;
  }
  .nav a:hover { background: var(--green-50); color: var(--green-800); }
  .nav .caret {
    width: 8px; height: 8px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
    margin-top: -3px;
    opacity: 0.5;
  }

  .header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--ink-2);
  }
  .language-switcher {
    display: inline-flex;
    align-items: center;
    position: relative;
    flex: 0 0 auto;
  }
  .language-switcher summary {
    min-width: 132px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--paper);
    color: var(--ink-2);
    padding: 9px 32px 9px 12px;
    font: inherit;
    font-size: 13px;
    font-weight: 500;
    outline: none;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    list-style: none;
    white-space: nowrap;
    position: relative;
  }
  .language-switcher summary::-webkit-details-marker { display: none; }
  .language-switcher summary:hover,
  .language-switcher summary:focus {
    border-color: var(--green-700);
    background: var(--green-50);
  }
  .language-switcher summary::after {
    content: "";
    position: absolute;
    right: 13px;
    top: 50%;
    width: 7px;
    height: 7px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: translateY(-65%) rotate(45deg);
    opacity: 0.75;
  }
  .language-options {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 164px;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--paper);
    box-shadow: 0 18px 40px -24px rgba(28,45,18,0.42);
    z-index: 100;
  }
  .language-options a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 10px;
    border-radius: 8px;
    font-size: 13px;
    color: var(--ink-2);
    white-space: nowrap;
  }
  .language-options a:hover,
  .language-options a.active {
    background: var(--green-50);
    color: var(--green-800);
  }
  .language-flag {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    flex: 0 0 18px;
    box-shadow: 0 0 0 1px rgba(255,255,255,0.35), 0 0 0 1px rgba(0,0,0,0.08) inset;
    overflow: hidden;
  }
  .flag-en {
    background:
      linear-gradient(90deg, transparent 43%, #fff 43% 57%, transparent 57%),
      linear-gradient(transparent 43%, #fff 43% 57%, transparent 57%),
      linear-gradient(90deg, transparent 47%, #c8102e 47% 53%, transparent 53%),
      linear-gradient(transparent 47%, #c8102e 47% 53%, transparent 53%),
      #012169;
  }
  .flag-uk {
    background: linear-gradient(#0057b7 0 50%, #ffd700 50%);
  }
  .topbar-language summary {
    min-width: 132px;
    padding: 5px 26px 5px 10px;
    border-color: rgba(255,255,255,0.18);
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.9);
    font-size: 12px;
  }
  .topbar-language summary:hover,
  .topbar-language summary:focus,
  .topbar-language[open] summary {
    border-color: rgba(255,255,255,0.35);
    background: rgba(255,255,255,0.14);
  }
  .topbar-language .language-options {
    background: var(--paper);
    border-color: var(--line);
    right: 0;
  }
  .mobile-language {
    display: none;
  }
  .icon-btn {
    width: 40px; height: 40px;
    border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    position: relative;
    transition: background 0.15s;
  }
  .icon-btn:hover { background: var(--green-50); color: var(--green-800); }
  .cart-badge {
    position: absolute;
    top: 4px; right: 4px;
    background: var(--terra);
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    border-radius: 999px;
    min-width: 16px; height: 16px;
    padding: 0 4px;
    display: flex; align-items: center; justify-content: center;
    border: 2px solid var(--paper);
  }
  .header .order-btn {
    margin-left: 8px;
    background: var(--green-700);
    color: #fff;
    padding: 10px 18px;
    border-radius: 999px;
    font-size: 13.5px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;       /* prevent the label wrapping to 2 lines at narrow desktop widths */
    flex-shrink: 0;
    transition: background 0.15s, transform 0.15s;
  }
  .header .order-btn:hover { background: var(--green-800); }

  body.search-overlay-open { overflow: hidden; }

  .search-overlay {
    position: fixed;
    inset: 0;
    z-index: 9990;
    background: rgba(251,250,243,0.96);
    backdrop-filter: blur(18px) saturate(1.05);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity 0.22s ease, visibility 0.22s ease, transform 0.22s ease;
  }
  .search-overlay.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }
  .search-overlay-panel {
    min-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 32px;
  }
  .search-overlay-inner {
    width: min(880px, 100%);
    transform: translateY(18px) scale(0.985);
    opacity: 0;
    transition: transform 0.28s ease, opacity 0.28s ease;
  }
  .search-overlay.is-open .search-overlay-inner {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
  .search-close {
    position: fixed;
    top: 28px;
    right: 32px;
    width: 48px;
    height: 48px;
    border: 1px solid var(--line);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--paper);
    color: var(--ink);
    box-shadow: var(--shadow);
    transition: background 0.15s, color 0.15s, transform 0.15s;
  }
  .search-close:hover,
  .search-close:focus-visible {
    background: var(--green-700);
    color: #fff;
    transform: translateY(-1px);
  }
  .search-overlay .section-eyebrow {
    justify-content: center;
    margin-bottom: 20px;
    color: var(--green-700);
  }
  .search-overlay-input {
    width: 100%;
    border: none;
    border-bottom: 2px solid var(--green-700);
    background: transparent;
    color: var(--ink);
    font-family: var(--font-serif);
    font-size: clamp(34px, 6vw, 78px);
    line-height: 1.04;
    font-weight: 600;
    text-align: center;
    outline: none;
    padding: 10px 12px 22px;
  }
  .search-overlay-input::placeholder {
    color: rgba(26,29,21,0.34);
  }
  .search-status {
    min-height: 24px;
    margin: 22px 0 18px;
    color: var(--ink-3);
    text-align: center;
    font-size: 14px;
  }
  .search-results {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    max-height: min(45vh, 430px);
    overflow: auto;
    padding: 4px;
  }
  .search-result-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255,255,255,0.48);
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-shadow: 0 1px 0 rgba(28,45,18,0.03);
    transition: border-color 0.15s, background 0.15s, transform 0.15s;
  }
  .search-result-card:hover,
  .search-result-card:focus-visible {
    border-color: var(--green-500);
    background: #fff;
    transform: translateY(-2px);
  }
  .search-result-type {
    width: fit-content;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 4px 9px;
    color: var(--green-700);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
  }
  .search-result-card strong {
    font-family: var(--font-serif);
    font-size: 23px;
    line-height: 1.15;
    color: var(--ink);
  }
  .search-result-card span:last-child,
  .search-empty {
    color: var(--ink-3);
    font-size: 14px;
    line-height: 1.5;
  }
  .search-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 26px;
    border: 1px dashed var(--line);
    border-radius: 8px;
  }

  /* ===================== HERO ===================== */
  .hero {
    background: var(--cream);
    position: relative;
    overflow: hidden;
  }
  .hero::before {
    content:"";
    position: absolute;
    inset: 0;
    background:
      radial-gradient(ellipse 60% 50% at 90% 30%, rgba(84,127,55,0.10), transparent 60%),
      radial-gradient(ellipse 40% 40% at 10% 90%, rgba(181,85,43,0.06), transparent 60%);
    pointer-events: none;
  }
  .hero-inner {
    padding: 72px 0 96px;
    position: relative;
  }
  .hero-grid {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: 64px;
    align-items: center;
  }
  .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(45,74,32,0.08);
    color: var(--green-800);
    border: 1px solid rgba(45,74,32,0.18);
    padding: 6px 14px 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }
  .eyebrow .dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: #65a23c;
    box-shadow: 0 0 0 3px rgba(101,162,60,0.25);
  }
  .hero h1 {
    margin-top: 22px;
    font-family: var(--font-serif);
    font-weight: 500;
    font-size: clamp(48px, 6.4vw, 80px);
    line-height: 1.02;
    letter-spacing: -0.025em;
    color: var(--ink);
  }
  .hero h1 em {
    font-style: italic;
    color: var(--green-700);
    font-weight: 500;
  }
  .hero h1 .ampersand {
    font-style: italic;
    color: var(--terra);
    font-weight: 400;
  }
  .lead {
    margin-top: 24px;
    font-size: 19px;
    color: var(--ink-2);
    max-width: 520px;
    line-height: 1.55;
  }
  .hero-ctas {
    margin-top: 30px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
  }
  .btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 22px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 500;
    transition: transform 0.15s, background 0.15s, box-shadow 0.15s, border-color 0.15s;
    border: 1.5px solid transparent;
    white-space: nowrap;
  }
  .btn svg { width: 16px; height: 16px; }
  .btn-primary {
    background: var(--green-700);
    color: #fff;
    box-shadow: 0 1px 0 rgba(255,255,255,0.15) inset, 0 8px 20px -10px rgba(45,74,32,0.6);
  }
  .btn-primary:hover { background: var(--green-800); transform: translateY(-1px); }
  .btn-ghost {
    background: transparent;
    color: var(--ink);
    border-color: rgba(26,29,21,0.18);
  }
  .btn-ghost:hover { border-color: var(--green-700); color: var(--green-700); background: rgba(45,74,32,0.04); }
  .btn-soft {
    background: #fff;
    color: var(--green-800);
    border-color: var(--line);
  }
  .btn-soft:hover { border-color: var(--green-700); color: var(--green-700); }

  /* hero stats inline */
  .hero-stats {
    margin-top: 44px;
    display: flex;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
  }
  .hero-stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
  }
  .hero-stat .num {
    font-family: var(--font-serif);
    font-size: 28px;
    font-weight: 500;
    color: var(--green-800);
    letter-spacing: -0.02em;
    line-height: 1;
  }
  .hero-stat .lbl {
    font-size: 12px;
    color: var(--ink-3);
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }
  .hero-stat-sep {
    width: 1px;
    height: 36px;
    background: rgba(26,29,21,0.12);
  }
  .hero-rating {
    display: flex; align-items: center; gap: 10px;
  }
  .stars-svg { display: inline-flex; gap: 1px; color: var(--gold); }
  .stars-svg svg { width: 13px; height: 13px; }

  /* hero image */
  .hero-visual {
    position: relative;
    aspect-ratio: 5/6;
    max-width: 540px;
    margin-left: auto;
  }
  .hero-photo {
    position: absolute;
    inset: 0;
    border-radius: 220px 220px 24px 24px;
    overflow: hidden;
    background:
      radial-gradient(ellipse 80% 70% at 30% 20%, rgba(255,255,255,0.4), transparent),
      linear-gradient(160deg, #d4dec3 0%, #a4b88a 45%, #6f8f55 100%);
    box-shadow: 0 30px 60px -30px rgba(28,45,18,0.4);
  }
  .hero-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .hours-card {
    position: absolute;
    left: -32px;
    bottom: 48px;
    background: var(--paper);
    border-radius: 12px;
    padding: 18px 22px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--shadow);
    border: 1px solid var(--line);
    min-width: 260px;
  }
  .hours-icon {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--green-50);
    color: var(--green-700);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
  }
  .hours-card .label {
    font-size: 11px; color: var(--ink-3);
    letter-spacing: 0.06em; text-transform: uppercase;
    display: flex; align-items: center; gap: 6px;
  }
  .hours-card .label .live {
    width: 6px; height: 6px; border-radius: 50%;
    background: #65a23c;
    box-shadow: 0 0 0 3px rgba(101,162,60,0.3);
  }
  .hours-card .time {
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 500;
    color: var(--ink);
    line-height: 1.1;
    margin: 4px 0 2px;
    letter-spacing: -0.01em;
  }
  .hours-card .sub {
    font-size: 12px; color: var(--ink-3);
  }

  .floating-badge {
    position: absolute;
    top: 32px;
    right: -8px;
    width: 96px; height: 96px;
    background: var(--green-700);
    color: var(--cream);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 13px;
    line-height: 1.2;
    padding: 14px;
    box-shadow: 0 16px 30px -16px rgba(28,45,18,0.5);
    transform: rotate(-6deg);
  }
  .floating-badge strong {
    display: block;
    font-style: normal;
    font-weight: 600;
    font-size: 18px;
    margin-bottom: 2px;
  }

  /* ===================== TRUST RIBBON ===================== */
  .trust {
    background: var(--green-900);
    color: #e9ecdd;
    padding: 18px 0;
    border-top: 1px solid rgba(255,255,255,0.06);
  }
  .trust .container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
  }
  .trust-item {
    display: flex;
    align-items: center;
    gap: 14px;
    border-left: 1px solid rgba(255,255,255,0.08);
    padding-left: 20px;
  }
  .trust-item:first-child { border-left: none; padding-left: 0; }
  .trust-icon {
    width: 32px; height: 32px;
    color: #b5cf95;
    flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
  }
  .trust-text .t1 {
    font-size: 13px;
    font-weight: 500;
    color: #fff;
    line-height: 1.2;
  }
  .trust-text .t2 {
    font-size: 11.5px;
    color: rgba(255,255,255,0.55);
    line-height: 1.4;
    margin-top: 2px;
  }

  /* ===================== SECTION ===================== */
  .section { padding: 96px 0; }
  .section.tight { padding: 72px 0; }

  .section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--green-700);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 500;
  }
  .section-eyebrow::before {
    content:"";
    width: 24px;
    height: 1px;
    background: var(--green-700);
  }
  .section-title {
    font-family: var(--font-serif);
    font-size: clamp(32px, 3.5vw, 44px);
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--ink);
    margin-top: 12px;
    max-width: 720px;
  }
  .section-title em { font-style: italic; color: var(--green-700); font-weight: 500; }
  .section-sub {
    margin-top: 12px;
    font-size: 16px;
    color: var(--ink-3);
    max-width: 560px;
  }
  .section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 32px;
    margin-bottom: 48px;
  }
  .section-head-right {
    flex-shrink: 0;
  }

  /* ===================== SERVICES ===================== */
  .services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
  }
  .service-card {
    background: var(--paper);
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    cursor: pointer;
    transition: background 0.2s;
    position: relative;
    min-height: 220px;
  }
  .service-card:hover { background: #fff; }
  .service-card:hover .service-arrow { transform: translateX(4px); color: var(--green-700); }

  .service-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .service-icon {
    width: 48px; height: 48px;
    border-radius: 12px;
    background: var(--green-50);
    color: var(--green-700);
    display: flex; align-items: center; justify-content: center;
  }
  .service-icon svg { width: 22px; height: 22px; }
  .service-tag {
    font-size: 10.5px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-3);
    padding: 4px 8px;
    border: 1px solid var(--line);
    border-radius: 4px;
  }
  .service-tag.same {
    color: var(--terra);
    border-color: var(--terra-soft);
    background: rgba(181,85,43,0.06);
  }
  .service-title {
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: var(--ink);
  }
  .service-desc {
    font-size: 14px;
    color: var(--ink-3);
    line-height: 1.5;
    flex: 1;
  }
  .service-arrow {
    color: var(--ink-3);
    font-size: 18px;
    transition: transform 0.2s, color 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
  }

  /* ===================== PRESCRIPTION QUICK-ORDER ===================== */
  .quick-order {
    background: var(--green-700);
    color: #fff;
    border-radius: 20px;
    padding: 48px;
    margin-top: 32px;
    position: relative;
    overflow: hidden;
  }
  .quick-order::before {
    content:"℞";
    position: absolute;
    font-family: var(--font-serif);
    font-size: 360px;
    color: rgba(255,255,255,0.05);
    right: -40px;
    top: -120px;
    line-height: 1;
    font-style: italic;
  }
  .qo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    position: relative;
  }
  .qo-left h3 {
    font-family: var(--font-serif);
    font-size: 36px;
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.02em;
  }
  .qo-left h3 em { font-style: italic; color: #d8e2c2; }
  .qo-left p {
    margin-top: 14px;
    color: rgba(255,255,255,0.78);
    font-size: 15px;
    max-width: 380px;
  }
  .qo-form {
    background: var(--paper);
    color: var(--ink);
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 20px 40px -20px rgba(0,0,0,0.3);
  }
  .qo-form-label {
    font-size: 12px;
    color: var(--ink-3);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 8px;
    display: block;
  }
  .qo-tabs {
    display: flex;
    gap: 4px;
    background: var(--cream);
    padding: 4px;
    border-radius: 10px;
    margin-bottom: 16px;
  }
  .qo-tab {
    flex: 1;
    padding: 10px;
    text-align: center;
    font-size: 13px;
    font-weight: 500;
    color: var(--ink-3);
    border-radius: 7px;
    cursor: pointer;
  }
  .qo-tab.active {
    background: var(--paper);
    color: var(--green-800);
    box-shadow: 0 1px 0 rgba(0,0,0,0.04), 0 4px 12px -6px rgba(0,0,0,0.08);
  }
  .qo-input {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 14px 16px;
    font: inherit;
    font-size: 14px;
    background: var(--paper);
    outline: none;
    transition: border-color 0.15s;
  }
  .qo-input:focus { border-color: var(--green-600); }
  .qo-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 10px;
  }
  .qo-submit {
    width: 100%;
    margin-top: 14px;
    background: var(--green-700);
    color: #fff;
    padding: 14px;
    border-radius: 10px;
    font-weight: 500;
    font-size: 14px;
    transition: background 0.15s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
  }
  .qo-submit:hover { background: var(--green-800); }

  .form-notice {
    margin-bottom: 16px;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 13.5px;
    border: 1px solid var(--line);
  }
  .form-notice.success {
    color: var(--green-800);
    background: var(--green-50);
    border-color: var(--green-200);
  }
  .form-notice.error {
    color: #7a2f18;
    background: rgba(181,85,43,0.08);
    border-color: var(--terra-soft);
  }

  .appointment-page {
    background: var(--cream);
  }
  .appointment-layout {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 56px;
    align-items: start;
  }
  .appointment-copy {
    position: sticky;
    top: 132px;
  }
  .appointment-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 32px;
    box-shadow: var(--shadow);
  }
  .appointment-form .qo-form-label {
    margin-top: 14px;
  }
  .appointment-form .qo-form-label:first-of-type {
    margin-top: 0;
  }

  /* ===================== WHY ===================== */
  .why {
    background: var(--cream);
  }
  .about-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 64px;
    align-items: center;
    margin-bottom: 76px;
  }
  .about-text {
    margin-top: 24px;
    display: grid;
    gap: 16px;
    color: var(--ink-2);
    font-size: 16px;
    line-height: 1.75;
    max-width: 650px;
  }
  .about-image {
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 4/5;
    background:
      radial-gradient(ellipse 70% 60% at 70% 30%, rgba(255,255,255,0.3), transparent 60%),
      linear-gradient(165deg, #c0d0a8 0%, #8da872 50%, #5d7942 100%);
    box-shadow: 0 30px 60px -30px rgba(28,45,18,0.4);
  }
  .about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .why-grid {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 64px;
    align-items: center;
  }
  .why-list {
    display: grid;
    gap: 20px;
    margin-top: 36px;
  }
  .why-item {
    display: grid;
    grid-template-columns: 56px 1fr auto;
    gap: 20px;
    align-items: center;
    padding: 22px 24px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 14px;
    transition: transform 0.2s, box-shadow 0.2s;
  }
  .why-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
  }
  .why-number {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 32px;
    color: var(--green-700);
    line-height: 1;
    letter-spacing: -0.02em;
  }
  .why-text .t1 {
    font-family: var(--font-serif);
    font-size: 20px;
    font-weight: 500;
    color: var(--ink);
    letter-spacing: -0.01em;
    margin-bottom: 4px;
  }
  .why-text .t2 {
    font-size: 13.5px;
    color: var(--ink-3);
    line-height: 1.55;
  }
  .why-item-arrow {
    color: var(--ink-4);
  }

  .why-visual {
    position: relative;
    aspect-ratio: 4/5;
  }
  .why-photo {
    position: absolute;
    inset: 0;
    border-radius: 18px;
    overflow: hidden;
    background:
      radial-gradient(ellipse 70% 60% at 70% 30%, rgba(255,255,255,0.3), transparent 60%),
      linear-gradient(165deg, #c0d0a8 0%, #8da872 50%, #5d7942 100%);
    box-shadow: 0 30px 60px -30px rgba(28,45,18,0.4);
  }
  .why-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
  /* ===================== LOCATION ===================== */
  .location {
    background: var(--cream);
  }
  .location-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 0;
    border-radius: 20px;
    overflow: hidden;
    background: var(--paper);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .location-info {
    padding: 48px;
  }
  .location-info h3 {
    font-family: var(--font-serif);
    font-size: 32px;
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-top: 12px;
  }
  .location-info h3 em { font-style: italic; color: var(--green-700); }
  .info-row {
    display: grid;
    grid-template-columns: 36px 1fr;
    gap: 14px;
    padding: 18px 0;
    border-bottom: 1px solid var(--line-2);
    align-items: flex-start;
  }
  .info-row:last-of-type { border-bottom: none; }
  .info-icon {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--green-50);
    color: var(--green-700);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
  }
  .info-icon svg { width: 16px; height: 16px; }
  .info-row .label {
    font-size: 11px;
    color: var(--ink-3);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 4px;
  }
  .info-row .value {
    font-size: 15px;
    color: var(--ink);
    line-height: 1.5;
  }
  .info-row .value strong {
    font-weight: 500;
    color: var(--ink);
  }
  .hours-grid {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 6px 24px;
    margin-top: 4px;
    font-size: 14px;
  }
  .hours-grid dt { color: var(--ink-3); }
  .hours-grid dd { color: var(--ink); }
  .hours-grid dd.closed { color: var(--terra); }
  .hours-grid dt.today, .hours-grid dd.today {
    font-weight: 500;
    color: var(--green-700);
  }
  .directions {
    margin-top: 28px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--green-700);
    color: #fff;
    padding: 14px 22px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.15s, transform 0.15s;
  }
  .directions:hover { background: var(--green-800); transform: translateY(-1px); }

  /* map */
  .map {
    position: relative;
    min-height: 540px;
    background: #e9ecdd;
    overflow: hidden;
  }
  .map-bg {
    position: absolute;
    inset: 0;
    background:
      linear-gradient(135deg, #e9ecdd 0%, #d8e0c8 100%);
  }
  .map-streets {
    position: absolute;
    inset: 0;
    opacity: 0.5;
  }
  .map-streets svg { width: 100%; height: 100%; }
  .map-river {
    position: absolute;
    inset: 0;
    pointer-events: none;
  }
  .map-pin-wrap {
    position: absolute;
    left: 50%; top: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
  }
  .map-pin-card {
    background: var(--paper);
    padding: 12px 16px 12px 14px;
    border-radius: 12px;
    box-shadow: 0 8px 24px -8px rgba(0,0,0,0.25);
    display: flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
    border: 1px solid var(--line);
  }
  .map-pin-card .logo-dot {
    width: 96px; height: 80px;
    border-radius: 10px;
    background: var(--paper);
    border: 1px solid var(--line);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    padding: 6px;
  }
  .map-pin-card .logo-dot img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
  }
  .map-pin-card .t1 {
    font-size: 13px;
    font-weight: 500;
    color: var(--ink);
  }
  .map-pin-card .t2 {
    font-size: 11px;
    color: var(--ink-3);
    margin-top: 1px;
  }
  .map-pin-marker {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 0; height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 16px solid var(--paper);
    filter: drop-shadow(0 4px 4px rgba(0,0,0,0.15));
  }
  .map-pin-pulse {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 16px; height: 16px;
    border-radius: 50%;
    background: var(--terra);
    box-shadow:
      0 0 0 6px rgba(181,85,43,0.2),
      0 0 0 14px rgba(181,85,43,0.1);
  }
  .map-label-street {
    position: absolute;
    font-family: var(--font-serif);
    font-style: italic;
    color: rgba(45,74,32,0.5);
    font-size: 12px;
    letter-spacing: 0.04em;
  }
  .map-label-street.s1 { left: 12%; top: 22%; transform: rotate(-8deg); }
  .map-label-street.s2 { right: 14%; top: 60%; transform: rotate(12deg); }
  .map-label-street.s3 { left: 28%; bottom: 14%; transform: rotate(-2deg); font-size: 14px; }
  .map-controls {
    position: absolute;
    right: 16px;
    top: 16px;
    background: var(--paper);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border: 1px solid var(--line);
  }
  .map-controls button {
    display: block;
    width: 34px; height: 34px;
    font-size: 16px;
    color: var(--ink-2);
    border-bottom: 1px solid var(--line-2);
  }
  .map-controls button:last-child { border-bottom: none; }
  .map-controls button:hover { background: var(--cream); }

  /* ===================== ADVICE ===================== */
  .advice-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
  .advice-card {
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    background: var(--paper);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
  }
  .advice-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
  }
  .advice-img {
    aspect-ratio: 16/10;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
  }
  .advice-img.a { background: linear-gradient(135deg, #e9d5b8, #c79e6f); }
  .advice-img.b { background: linear-gradient(135deg, #cfddc8, #88a87a); }
  .advice-img.c { background: linear-gradient(135deg, #e6cbd0, #b88896); }
  .advice-tag {
    position: absolute;
    top: 16px; left: 16px;
    background: rgba(251,250,243,0.95);
    color: var(--green-800);
    font-size: 11px;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 999px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }
  .advice-body {
    padding: 24px 22px 22px;
    flex: 1;
    display: flex;
    flex-direction: column;
  }
  .advice-meta {
    font-size: 12px;
    color: var(--ink-3);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .advice-meta::after { content:""; flex:1; height:1px; background: var(--line); }
  .advice-title {
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: var(--ink);
    margin-bottom: 12px;
  }
  .advice-excerpt {
    font-size: 13.5px;
    color: var(--ink-3);
    line-height: 1.55;
    margin-bottom: 18px;
    flex: 1;
  }
  .read-more {
    color: var(--green-700);
    font-size: 13px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }
  .read-more::after {
    content:"→";
    transition: transform 0.15s;
  }
  .advice-card:hover .read-more::after { transform: translateX(4px); }
  .advice-actions {
    margin-top: 36px;
    display: flex;
    justify-content: center;
  }

  /* ===================== SINGLE POST ===================== */
  .single-post-page {
    background: var(--paper);
  }
  .single-hero {
    padding: 72px 0 80px;
    background: var(--cream);
  }
  .single-article {
    max-width: 900px;
    margin: 0 auto;
  }
  .single-header {
    text-align: center;
    max-width: 780px;
    margin: 0 auto 34px;
  }
  .single-header .section-eyebrow {
    justify-content: center;
  }
  .single-title {
    margin-top: 14px;
    font-family: var(--font-serif);
    font-size: clamp(42px, 5.4vw, 68px);
    font-weight: 500;
    line-height: 1.04;
    letter-spacing: -0.025em;
    color: var(--ink);
  }
  .single-meta {
    margin-top: 16px;
    color: var(--ink-3);
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }
  .single-thumbnail {
    border-radius: 20px;
    overflow: hidden;
    margin: 36px auto 0;
    box-shadow: 0 30px 60px -36px rgba(28,45,18,0.45);
  }
  .single-thumbnail img {
    width: 100%;
    max-height: 520px;
    object-fit: cover;
  }
  .single-content {
    margin: 44px auto 0;
    max-width: 760px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 44px;
    font-size: 18px;
    line-height: 1.78;
    color: var(--ink-2);
  }
  .single-content > * + * {
    margin-top: 20px;
  }
  .single-content h2,
  .single-content h3 {
    font-family: var(--font-serif);
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: var(--ink);
  }
  .single-content h2 { font-size: 32px; }
  .single-content h3 { font-size: 26px; }
  .single-content ul,
  .single-content ol {
    padding-left: 1.25em;
  }
  .single-content a {
    color: var(--green-700);
    text-decoration: underline;
    text-underline-offset: 3px;
  }
  .single-footer {
    max-width: 760px;
    margin: 0 auto;
    padding: 24px 44px 0;
    color: var(--ink-3);
    font-size: 14px;
  }
  .single-related {
    background: var(--paper);
  }

  /* ===================== REVIEWS ===================== */
  .reviews {
    background: var(--green-900);
    color: #e9ecdd;
    position: relative;
    overflow: hidden;
  }
  .reviews::before {
    content:"\201C";
    position: absolute;
    font-family: var(--font-serif);
    font-size: 600px;
    color: rgba(255,255,255,0.025);
    line-height: 0.8;
    left: -20px;
    top: 0;
    pointer-events: none;
  }
  .reviews .section-eyebrow { color: #b5cf95; }
  .reviews .section-eyebrow::before { background: #b5cf95; }
  .reviews .section-title { color: #fff; }
  .reviews .section-title em { color: #d8e2c2; }
  .reviews .section-sub { color: rgba(255,255,255,0.6); }

  .reviews-summary {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-top: 36px;
    padding: 24px 28px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    max-width: 560px;
  }
  .rs-rating {
    font-family: var(--font-serif);
    font-size: 56px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.03em;
    color: #fff;
  }
  .rs-meta { flex: 1; }
  .rs-meta .stars-svg { color: #f1c84a; margin-bottom: 4px; }
  .rs-meta .stars-svg svg { width: 16px; height: 16px; }
  .rs-meta .t1 {
    font-size: 13px;
    color: rgba(255,255,255,0.85);
  }
  .rs-meta .t2 {
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    margin-top: 2px;
  }
  .rs-google {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: rgba(255,255,255,0.5);
  }

  .reviews-viewport {
    margin-top: 36px;
    overflow: hidden;
    position: relative;
  }
  .reviews-grid {
    display: flex;
    gap: 20px;
    width: max-content;
    transform: translate3d(var(--lp-review-offset, 0px), 0, 0);
    will-change: transform;
  }
  .review-card {
    width: calc((min(1240px, 100vw - 64px) - 40px) / 3);
    min-width: 300px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 14px;
    padding: 26px;
    position: relative;
    backdrop-filter: blur(10px);
  }
  .review-stars-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
  }
  .review-stars-row .stars-svg { color: #f1c84a; }
  .review-stars-row .stars-svg svg { width: 14px; height: 14px; }
  .review-stars-row .google-dot {
    width: 22px; height: 22px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    color: #d8e2c2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
  }
  .review-text {
    font-family: var(--font-serif);
    font-size: 18px;
    line-height: 1.45;
    color: #fff;
    letter-spacing: -0.01em;
    min-height: 100px;
  }
  .review-foot {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    gap: 12px;
  }
  .review-avatar {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fbcfb4, #e9a980);
    flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    color: rgba(0,0,0,0.4);
    font-weight: 600;
    font-size: 13px;
  }
  .review-avatar.b { background: linear-gradient(135deg, #b5cf95, #6f8f55); color: rgba(255,255,255,0.7); }
  .review-avatar.c { background: linear-gradient(135deg, #e9c4b4, #c79680); color: rgba(0,0,0,0.4); }
  .reviewer-name {
    font-size: 14px;
    font-weight: 500;
    color: #fff;
  }
  .review-when {
    font-size: 11.5px;
    color: rgba(255,255,255,0.5);
    margin-top: 1px;
  }

  /* ===================== CTA BANNER ===================== */
  .cta-banner {
    padding: 64px 0;
    background: var(--paper);
  }
  .cta-card {
    background: var(--cream);
    border-radius: 24px;
    padding: 56px 56px;
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 48px;
    align-items: center;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
  }
  .cta-card::before {
    content:"";
    position: absolute;
    top: -80px; right: -80px;
    width: 280px; height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(45,74,32,0.08), transparent 70%);
  }
  .cta-card h3 {
    font-family: var(--font-serif);
    font-size: 40px;
    font-weight: 500;
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: var(--ink);
  }
  .cta-card h3 em { font-style: italic; color: var(--green-700); }
  .cta-card p {
    margin-top: 12px;
    color: var(--ink-3);
    font-size: 15px;
    max-width: 420px;
  }
  .cta-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-end;
    position: relative;
  }
  .cta-phone {
    text-align: right;
  }
  .cta-phone .lbl {
    font-size: 11px;
    color: var(--ink-3);
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }
  .cta-phone .num {
    font-family: var(--font-serif);
    font-size: 36px;
    font-weight: 500;
    color: var(--green-800);
    letter-spacing: -0.02em;
    margin-top: 4px;
  }
  .cta-buttons {
    display: flex;
    gap: 10px;
    margin-top: 8px;
  }

  /* ===================== FOOTER ===================== */
  .footer {
    background: var(--green-900);
    color: rgba(255,255,255,0.75);
    padding: 72px 0 28px;
  }
  .footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr 1.3fr;
    gap: 48px;
    margin-bottom: 48px;
  }
  .footer-brand .logo img {
    height: 60px;
    filter: brightness(0) invert(1) opacity(0.9);
  }
  .footer-tagline {
    margin-top: 18px;
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 16px;
    line-height: 1.5;
    color: rgba(255,255,255,0.55);
    max-width: 280px;
  }
  .footer h4 {
    font-size: 12px;
    font-weight: 500;
    color: #fff;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 18px;
  }
  .footer ul { list-style: none; }
  .footer ul li { margin-bottom: 10px; }
  .footer ul a {
    font-size: 14px;
    color: rgba(255,255,255,0.6);
    transition: color 0.15s;
  }
  .footer ul a:hover { color: #fff; }
  .footer-widget :where(ul, ol),
  .footer-widget .wp-block-navigation__container {
    list-style: none;
    display: block;
    gap: 0;
  }
  .footer-widget :where(li, .wp-block-navigation-item) {
    margin-bottom: 10px;
  }
  .footer-widget :where(a, .wp-block-navigation-item__content) {
    font-size: 14px;
    color: rgba(255,255,255,0.6);
    transition: color 0.15s;
  }
  .footer-widget :where(a, .wp-block-navigation-item__content):hover {
    color: #fff;
  }
  .footer-admin-hint {
    font-size: 13px;
    line-height: 1.5;
    color: rgba(255,255,255,0.45);
  }

  .newsletter-text {
    font-size: 13px;
    color: rgba(255,255,255,0.55);
    margin-bottom: 14px;
    line-height: 1.5;
  }
  .newsletter-form {
    display: flex;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255,255,255,0.04);
  }
  .newsletter-form input {
    flex: 1;
    border: none;
    background: transparent;
    color: #fff;
    padding: 12px 18px;
    font: inherit;
    font-size: 13px;
    outline: none;
  }
  .newsletter-form input::placeholder { color: rgba(255,255,255,0.4); }
  .newsletter-form button {
    background: #fff;
    color: var(--green-900);
    padding: 0 22px;
    font-weight: 500;
    font-size: 13px;
    transition: background 0.15s;
  }
  .newsletter-form button:hover { background: var(--cream); }

  .social-row {
    display: flex;
    gap: 10px;
    margin-top: 22px;
  }
  .social-icon {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.8);
    display: flex; align-items: center; justify-content: center;
    transition: background 0.15s, color 0.15s;
  }
  .social-icon:hover { background: #fff; color: var(--green-900); }
  .social-icon svg { width: 16px; height: 16px; }

  /* PSI verify card */
  .psi-verify {
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 20px 24px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 14px;
    margin-bottom: 32px;
    max-width: 580px;
    transition: background 0.15s, border-color 0.15s, transform 0.15s;
  }
  .psi-verify:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.2);
    transform: translateY(-1px);
  }
  .psi-verify img {
    width: 96px;
    height: auto;
    flex-shrink: 0;
    background: #fff;
    border-radius: 4px;
    padding: 4px;
  }
  .psi-text { display: flex; flex-direction: column; gap: 4px; }
  .psi-t1 {
    font-family: var(--font-serif);
    font-size: 17px;
    font-weight: 500;
    color: #fff;
    line-height: 1.25;
    letter-spacing: -0.01em;
  }
  .psi-t2 {
    font-size: 12.5px;
    color: rgba(255,255,255,0.55);
    line-height: 1.5;
  }

  .footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: rgba(255,255,255,0.45);
    flex-wrap: wrap;
    gap: 16px;
  }
  .footer-bottom .links {
    display: flex;
    gap: 28px;
  }
  .footer-bottom .links .footer-widget,
  .footer-bottom .links .footer-widget :where(ul, ol),
  .footer-bottom .links .footer-widget .wp-block-navigation__container {
    display: contents;
  }
  .footer-bottom .links :where(li, .wp-block-navigation-item) {
    list-style: none;
    margin: 0;
  }
  .footer-bottom .links a:hover { color: #fff; }

  /* ====================== MOBILE MENU ====================== */
  /* The hamburger toggle and slide-down drawer are hidden by default on desktop;
     the breakpoint blocks below reveal them at ≤860px and hide the desktop nav. */
  .menu-toggle-input { display: none; }
  .menu-toggle {
    display: none;          /* shown only at ≤860px */
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    transition: background 0.15s ease;
    margin-left: -8px;      /* visually align with logo edge */
  }
  .menu-toggle:hover { background: var(--green-50); }
  .menu-toggle:focus-visible {
    outline: 2px solid var(--green-700);
    outline-offset: 2px;
  }
  .menu-toggle-bar {
    position: absolute;
    width: 22px;
    height: 2px;
    background: var(--ink-2);
    border-radius: 2px;
    transition: transform 0.22s ease, opacity 0.18s ease, top 0.22s ease;
  }
  .menu-toggle { position: relative; }
  .menu-toggle .menu-toggle-bar:nth-child(1) { top: 15px; }
  .menu-toggle .menu-toggle-bar:nth-child(2) { top: 21px; }
  .menu-toggle .menu-toggle-bar:nth-child(3) { top: 27px; }
  /* When open, animate to an X. The checkbox now lives outside `.container`,
     so we reach the label via the general sibling selector. */
  .menu-toggle-input:checked ~ .container .menu-toggle .menu-toggle-bar:nth-child(1) {
    top: 21px;
    transform: rotate(45deg);
  }
  .menu-toggle-input:checked ~ .container .menu-toggle .menu-toggle-bar:nth-child(2) {
    opacity: 0;
  }
  .menu-toggle-input:checked ~ .container .menu-toggle .menu-toggle-bar:nth-child(3) {
    top: 21px;
    transform: rotate(-45deg);
  }

  /* Drawer */
  .mobile-menu {
    display: none;          /* shown only at ≤860px */
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--paper);
    border-bottom: 1px solid var(--line-2);
    box-shadow: 0 24px 32px -20px rgba(28,45,18,0.25);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.32s ease;
    z-index: 60;            /* above hero/sticky-header content */
  }
  .menu-toggle-input:checked ~ .container ~ .mobile-menu {
    /* once open, allow drawer to scroll if its content is taller than viewport */
    max-height: calc(100vh - 100px);
    overflow-y: auto;
  }
  /* Backdrop dim under the drawer to make the focus shift unmistakable.
     Sits as a ::before on the drawer itself, sized to cover the viewport. */
  .mobile-menu::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(28, 45, 18, 0);
    pointer-events: none;
    transition: background 0.32s ease;
    z-index: -1;
  }
  .menu-toggle-input:checked ~ .container ~ .mobile-menu::before {
    background: rgba(28, 45, 18, 0.35);
  }
  .header .mobile-menu .container {
    padding: 8px 20px 24px;
    height: auto;             /* override `.header .container { height: 68px }` from the responsive block */
    display: block;
  }
  .mobile-nav { display: flex; flex-direction: column; }
  .mobile-nav a {
    display: block;
    padding: 16px 4px;
    font-size: 17px;
    color: var(--ink);
    font-weight: 500;
    border-bottom: 1px solid var(--line-2);
    transition: color 0.15s ease;
  }
  .mobile-nav a:last-child { border-bottom: none; }
  .mobile-nav a:hover,
  .mobile-nav a:focus-visible { color: var(--green-700); }

  .mobile-menu-contact { margin-top: 20px; }
  .mobile-menu-contact .mobile-language {
    display: flex;
    margin-bottom: 0;
  }
  .mobile-menu-contact .mobile-language summary {
    width: auto;
    min-width: 132px;
    padding: 9px 12px;
    border-radius: 10px;
    background: var(--cream);
  }
  .mobile-menu-contact .mobile-language .language-options {
    left: 0;
    right: auto;
  }
  .mobile-menu-phone {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--green-700);
    color: #fff;
    padding: 14px 22px;
    border-radius: 999px;
    font-size: 16px;
    font-weight: 500;
    width: 100%;
    justify-content: center;
  }
  .mobile-menu-secondary {
    display: flex;
    gap: 20px;
    margin-top: 14px;
    font-size: 13.5px;
    color: var(--ink-3);
    justify-content: center;
  }
  .mobile-menu-secondary a { color: inherit; }
  .mobile-menu-secondary a:hover { color: var(--green-700); }

  /* When the drawer is open, lock body scroll-ish (CSS-only approximation) */
  /* Note: real scroll lock needs JS; this just prevents the page from accidentally scrolling under the drawer at very small heights. */

  /* ====================== RESPONSIVE ====================== */
  @media (max-width: 1024px) {
    .container { padding: 0 24px; }
    .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
    .footer-grid > div:nth-child(5) { grid-column: span 3; }
    .cta-card { padding: 40px; }
  }

  @media (max-width: 860px) {
    .container { padding: 0 20px; }

    /* hide desktop nav, show hamburger + drawer */
    .nav { display: none; }
    .menu-toggle { display: inline-flex; }
    .mobile-menu { display: block; }
    .header { position: sticky; }     /* ensure drawer overlays cleanly */

    .header .container { height: 68px; gap: 12px; }
    .header .order-btn span { display: none; }
    .header .order-btn {
      padding: 10px 14px;
      font-size: 13px;
    }
    .header-actions { gap: 4px; }
    .search-overlay-panel {
      align-items: flex-start;
      padding: 88px 20px 34px;
    }
    .search-close {
      top: 18px;
      right: 20px;
      width: 44px;
      height: 44px;
    }
    .search-overlay-input {
      font-size: clamp(30px, 10vw, 52px);
      text-align: left;
      padding-left: 0;
      padding-right: 0;
    }
    .search-overlay .section-eyebrow,
    .search-status {
      text-align: left;
      justify-content: flex-start;
    }
    .search-results {
      grid-template-columns: 1fr;
      max-height: none;
      overflow: visible;
    }
    /* top bar slim */
    .tb-left { gap: 12px; }
    .tb-left .tb-sep, .tb-right .tb-sep { display: none; }
    .tb-right > a:not(:first-child) { display: none; }
    .topbar { font-size: 11.5px; }
    .topbar .container { height: 32px; }

    /* hero stacks */
    .hero-inner { padding: 48px 0 64px; }
    .hero-grid { grid-template-columns: 1fr; gap: 40px; }
    .hero h1 { font-size: clamp(40px, 8vw, 56px); }
    .lead { font-size: 17px; max-width: none; }
    .hero-ctas { gap: 10px; }
    .btn { padding: 12px 18px; font-size: 13.5px; }

    .hero-stats { gap: 20px; row-gap: 16px; margin-top: 32px; }
    .hero-stat .num { font-size: 24px; }
    .hero-stat-sep { display: none; }

    .hero-visual {
      max-width: 100%;
      margin: 0;
      aspect-ratio: 4/5;
    }
    .hero-photo {
      border-radius: 180px 180px 18px 18px;
    }
    .hours-card {
      left: 12px;
      right: auto;
      bottom: 16px;
      padding: 12px 16px;
      min-width: 0;
      gap: 12px;
    }
    .hours-card .time { font-size: 18px; }
    .floating-badge {
      width: 76px; height: 76px;
      font-size: 11px;
      top: 16px;
      right: 0;
      padding: 10px;
    }
    .floating-badge strong { font-size: 16px; }

    /* trust ribbon */
    .trust .container {
      grid-template-columns: 1fr;
      gap: 14px;
    }
    .trust-item {
      border-left: none;
      padding-left: 0;
      border-bottom: 1px solid rgba(255,255,255,0.06);
      padding-bottom: 14px;
    }
    .trust-item:last-child { border-bottom: none; padding-bottom: 0; }

    /* sections */
    .section { padding: 64px 0; }
    .section.tight { padding: 48px 0; }
    .section-head {
      flex-direction: column;
      align-items: flex-start;
      margin-bottom: 32px;
      gap: 16px;
    }
    .section-title { font-size: clamp(28px, 6vw, 36px); }
    .section-sub { font-size: 15px; }

    /* services */
    .services-grid { grid-template-columns: 1fr; }
    .service-card { min-height: 0; padding: 26px 22px; }

    /* quick order */
    .quick-order { padding: 32px 24px; border-radius: 16px; }
    .qo-grid { grid-template-columns: 1fr; gap: 28px; }
    .qo-left h3 { font-size: 28px; }
    .qo-form { padding: 20px; }
    .appointment-layout { grid-template-columns: 1fr; gap: 28px; }
    .appointment-copy { position: static; }
    .appointment-card { padding: 24px 20px; }
    .quick-order::before { font-size: 220px; right: -30px; top: -60px; }

    /* about / why */
    .about-grid { grid-template-columns: 1fr; gap: 32px; margin-bottom: 56px; }
    .about-image { aspect-ratio: 4/3; }
    .why-grid { grid-template-columns: 1fr; gap: 40px; }
    .why-item { padding: 18px 20px; gap: 14px; grid-template-columns: 44px 1fr auto; }
    .why-number { font-size: 26px; }
    .why-text .t1 { font-size: 17px; }
    .why-visual { aspect-ratio: 4/5; }

    /* location */
    .location-grid { grid-template-columns: 1fr; }
    .location-info { padding: 32px 24px; }
    .location-info h3 { font-size: 26px; }
    .map { min-height: 360px; }
    .map-pin-card .logo-dot { width: 72px; height: 60px; }

    /* advice */
    .advice-grid { grid-template-columns: 1fr; gap: 18px; }
    .advice-title { font-size: 20px; }
    .single-hero { padding: 54px 0 64px; }
    .single-header { text-align: left; }
    .single-header .section-eyebrow { justify-content: flex-start; }
    .single-content { padding: 28px 22px; font-size: 16px; }
    .single-footer { padding: 20px 22px 0; }

    /* reviews */
    .reviews-grid { gap: 16px; }
    .review-card { width: min(82vw, 360px); min-width: min(82vw, 360px); }
    .reviews-summary { padding: 20px; gap: 18px; }
    .rs-rating { font-size: 44px; }
    .review-text { font-size: 16px; min-height: 0; }

    /* cta card */
    .cta-banner { padding: 48px 0; }
    .cta-card {
      grid-template-columns: 1fr;
      padding: 32px 24px;
      gap: 24px;
      border-radius: 18px;
    }
    .cta-card h3 { font-size: 28px; }
    .cta-actions { align-items: flex-start; }
    .cta-phone { text-align: left; }
    .cta-phone .num { font-size: 28px; }
    .cta-buttons { width: 100%; }
    .cta-buttons .btn { flex: 1; justify-content: center; }

    /* footer */
    .footer { padding: 56px 0 24px; }
    .footer-grid {
      grid-template-columns: 1fr 1fr;
      gap: 32px 24px;
      margin-bottom: 32px;
    }
    .footer-brand { grid-column: 1 / -1; }
    .footer-grid > div:nth-child(5) { grid-column: 1 / -1; }
    .footer-bottom {
      flex-direction: column;
      align-items: flex-start;
      gap: 12px;
    }
    .footer-bottom .links { gap: 16px; flex-wrap: wrap; }
  }

  @media (max-width: 480px) {
    .container { padding: 0 16px; }
    .topbar .tb-right { display: none; }
    .topbar .container { justify-content: flex-start; }
    .hero-ctas { flex-direction: column; align-items: stretch; }
    .hero-ctas .btn { justify-content: center; }
    .floating-badge { width: 64px; height: 64px; font-size: 10px; }
    .floating-badge strong { font-size: 14px; }
    .qo-row { grid-template-columns: 1fr; }    /* DOB placeholder needs full width to read cleanly */
    .footer-grid { grid-template-columns: 1fr; }
    .footer-grid > div:nth-child(5) { grid-column: auto; }
    .footer-brand { grid-column: auto; }
  }

  /* keep legacy bp out to avoid conflict */
