/* Attune Acupuncture & Wellness - Draft 2 shared styles
   Brand tokens from the draft site: forest green, cream, sand, brass. */

@layer base {
  :root {
    --green: #203631;
    --green-dark: #182A26;
    --green-deepest: #14221F;
    --tan: #9B826F;
    --sand: #D8C7B5;
    --cream: #F3ECE5;
    --cream-light: #EFE7DC;
    --white-warm: #FDFBF7;
    --brass: #C2A661;
    --ink: #22252A;
    --ink-soft: #4B5158;
    --border: #DBD4CC;
    --max: 1140px;
  }

  html, body { scroll-behavior: smooth; overflow-x: clip; max-width: 100%; }

  body {
    font-family: 'Lato', Helvetica, Arial, sans-serif;
    color: var(--ink);
    background: var(--cream);
    line-height: 1.65;
    font-size: 17px;
  }

  .subpage-main { overflow-x: clip; }
  .subpage-main p,
  .subpage-main li,
  .subpage-main h1,
  .subpage-main h2,
  .subpage-main h3,
  .subpage-main h4 { overflow-wrap: break-word; }

  .subpage-main h1,
  .subpage-main h2,
  .subpage-main h3,
  .subpage-main h4,
  .subpage-main .serif {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 600;
    line-height: 1.2;
    color: var(--green);
  }

  .subpage-main a { color: var(--green); }
  img { max-width: 100%; }
}

@layer components {
  .wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
  .wrap.wrap-wide { max-width: 1280px; }
  @media (max-width: 640px) {
    .wrap { padding: 0 16px; }
  }

  .btn {
    display: inline-block; background: var(--brass); color: var(--green-deepest) !important;
    font-weight: 700; padding: 10px 22px !important; border-radius: 999px;
    text-decoration: none; letter-spacing: 0.02em;
  }
  .btn:hover { background: var(--sand) !important; }
  .btn-outline {
    display: inline-block; border: 1.5px solid var(--cream); color: var(--cream) !important;
    padding: 10px 22px; border-radius: 999px; text-decoration: none; font-weight: 700;
  }
  .btn-outline:hover { border-color: var(--brass); color: var(--brass) !important; }
  .btn-green {
    display: inline-block; background: var(--green); color: var(--cream) !important;
    padding: 11px 24px; border-radius: 999px; text-decoration: none; font-weight: 700;
  }
  .btn-green:hover { background: var(--green-dark); }

  /* ---------- Hero ---------- */
  .hero {
    background: var(--green);
    color: var(--cream);
    padding: 72px 0 64px;
    border-bottom: 4px solid var(--brass);
  }
  .hero .eyebrow {
    color: var(--brass); text-transform: uppercase; letter-spacing: 0.24em;
    font-size: 0.8rem; font-weight: 700; margin-bottom: 16px;
  }
  .hero h1 { color: var(--cream); font-size: 2.9rem; max-width: 820px; }
  .hero h1 .sub {
    display: block; font-size: 1.45rem; font-weight: 500; color: var(--sand);
    margin-top: 12px; line-height: 1.35;
  }
  .hero .tagline { color: var(--sand); font-size: 1.15rem; max-width: 760px; margin-top: 18px; }
  .hero .hero-actions { margin-top: 28px; display: flex; gap: 14px; flex-wrap: wrap; }

  /* ---------- Trust band ---------- */
  .trust-band { padding: 30px 0 2px; }
  .trust-band .cards { margin: 0; }
  .trust-band .stat-value { font-size: 1.3rem; margin-bottom: 0; }

  /* ---------- Sections ---------- */
  .section { padding: 58px 0; }
  .section.alt { background: var(--white-warm); }
  .section.sand { background: var(--cream-light); }
  .section > .wrap > h2 { font-size: 2rem; margin-bottom: 18px; }
  .section p { margin-bottom: 14px; color: var(--ink-soft); max-width: 860px; }
  .section h3 { font-size: 1.35rem; margin: 26px 0 8px; }
  .section h4 { font-size: 1.12rem; margin: 20px 0 6px; }
  .section ul { margin: 6px 0 16px 0; list-style: none; }
  .section ul li {
    padding: 5px 0 5px 26px; position: relative; color: var(--ink-soft);
  }
  .section ul li::before {
    content: ""; position: absolute; left: 2px; top: 14px; width: 8px; height: 8px;
    border-radius: 50%; background: var(--brass);
  }

  /* ---------- Cards ---------- */
  .cards {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
    gap: 20px; margin: 22px 0 8px;
  }
  .cards.cards-5 {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
    gap: 16px;
  }
  @media (min-width: 1024px) {
    .cards.cards-5 {
      grid-template-columns: repeat(5, minmax(0, 1fr));
    }
    .cards.cards-5 .card {
      padding: 20px;
    }
  }
  .card {
    display: flex; flex-direction: column;
    background: var(--white-warm); border: 1px solid var(--border); border-radius: 14px;
    padding: 24px; box-shadow: 0 3px 12px rgba(20, 34, 31, 0.05);
  }
  .section.alt .card { background: var(--cream); }
  .card h3 { margin-top: 0; font-size: 1.25rem; }
  .card h3 a { text-decoration: none; color: var(--green); }
  .card h3 a:hover { color: var(--tan); }
  .card p { font-size: 0.97rem; }
  .card ul li { font-size: 0.97rem; }
  .card .more {
    margin-top: auto; padding-top: 10px; align-self: flex-start;
    font-weight: 700; color: var(--tan); text-decoration: none; font-size: 0.92rem;
  }
  .card .more:hover { color: var(--green); }

  .stat-cards .card { text-align: center; }
  .stat-cards .stat-value {
    font-family: 'Playfair Display', Georgia, serif; font-size: 1.7rem; color: var(--green);
    display: block; margin-bottom: 4px;
  }
  .stat-cards .stat-label { color: var(--tan); font-size: 0.92rem; letter-spacing: 0.04em; }

  /* ---------- Reviews ---------- */
  .reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 20px; margin-top: 22px; }
  .review {
    background: var(--white-warm); border: 1px solid var(--border); border-left: 4px solid var(--brass);
    border-radius: 12px; padding: 22px; font-size: 0.98rem; color: var(--ink-soft);
  }
  .review .stars { color: var(--brass); letter-spacing: 3px; margin-bottom: 8px; font-size: 0.9rem; }

  /* ---------- FAQ ---------- */
  .faq-item {
    background: var(--white-warm); border: 1px solid var(--border); border-radius: 12px;
    padding: 20px 24px; margin-bottom: 14px;
  }
  .section.alt .faq-item { background: var(--cream); }
  .faq-item h3 { margin: 0 0 6px; font-size: 1.15rem; }
  .faq-item p { margin-bottom: 8px; }
  .faq-item p:last-child { margin-bottom: 0; }

  .note-small { font-size: 0.88rem; color: var(--tan); }

  @media (max-width: 767px) {
    .hero { padding: 48px 0 42px; text-align: center; }
    .hero h1 { font-size: clamp(1.85rem, 6vw, 2.35rem); margin-left: auto; margin-right: auto; text-align: center; }
    .hero h1 .sub { font-size: 1.15rem; }
    .hero .eyebrow,
    .hero .tagline { margin-left: auto; margin-right: auto; text-align: center; }
    .hero .hero-actions { justify-content: center; align-items: center; }
    .hero .hero-actions .btn,
    .hero .hero-actions .btn-outline { text-align: center; }
    .section { padding: 40px 0; }
    .section > .wrap > h2 { font-size: 1.65rem; }
  }

  /* service card photos on services.html */
  .card img.svc-photo { display: block; width: 100%; aspect-ratio: 4 / 3; height: auto; object-fit: cover; border-radius: 10px; margin: 0 0 14px; }

  /* hero split layout, hero image, map embed */
  .hero-split { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 42px; align-items: center; }
  .hero-split .hero-img { display: block; width: 100%; height: 100%; max-height: 430px; object-fit: cover; border-radius: 14px; border: 3px solid var(--brass); }
  @media (max-width: 820px) {
    .hero-split { grid-template-columns: 1fr; gap: 28px; text-align: center; }
    .hero-split .hero-img { max-height: 300px; margin: 0 auto; }
    .hero-split .hero-actions { justify-content: center; }
  }
  .map-embed { border-radius: 14px; overflow: hidden; border: 1px solid var(--border); margin: 20px 0 24px; }
  .map-embed iframe { width: 100%; height: 380px; border: 0; display: block; }
  @media (max-width: 640px) {
    .map-embed iframe { height: 280px; }
  }
}

/* Unified header & mobile menu styles matching index.html */
.svc-nav { position: relative; display: inline-flex; }
.svc-nav .svc-arrow { color: #C2A661; font-size: .72em; margin-left: 3px; }
.svc-menu {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%); min-width: 300px;
  background: #FDFBF7; border: 1px solid #DBD4CC; border-radius: 10px;
  box-shadow: 0 14px 34px rgba(20, 34, 31, .16); padding: 8px; z-index: 90;
  opacity: 0; visibility: hidden; transition: opacity .18s ease, visibility .18s;
}
.svc-menu::before { content: ""; position: absolute; top: -12px; left: 0; right: 0; height: 12px; }
.svc-nav:hover .svc-menu, .svc-nav:focus-within .svc-menu { opacity: 1; visibility: visible; }
.svc-menu a { display: block; padding: 8px 12px; border-radius: 6px; font-size: .92rem; font-weight: 600; color: #203631; text-decoration: none; white-space: nowrap; }
.svc-menu a:hover { background: #F3ECE5; }
.svc-menu a.all { border-top: 1px solid #DBD4CC; margin-top: 6px; padding-top: 10px; font-weight: 700; }
.svc-menu a.active { background: #203631; color: #F3ECE5; font-weight: 700; box-shadow: inset 3px 0 0 #C2A661; }
.svc-menu a.active:hover { background: #182A26; color: #FFFFFF; }
.svc-menu a.all.active { border-top-color: transparent; padding-top: 8px; }

@media (min-width: 1024px) and (max-width: 1279px) {
  .nav-links { gap: 0.85rem !important; }
  .nav-links > a, .nav-links .svc-nav > a { font-size: 14px !important; }
}
@media (min-width: 1280px) {
  .nav-links { gap: 1.5rem !important; }
}

@media (max-width: 767px) {
  .topbar-inner { flex-direction: column; align-items: center; gap: 3px; padding-top: 3px; padding-bottom: 3px; }
  .vet-line { text-align: center; line-height: 1.4; }
}
@media (max-width: 399px) {
  #site-header nav .container { padding-left: 12px; padding-right: 12px; }
  #site-header nav a[aria-label="Book Appointment"] { padding-left: 10px; padding-right: 10px; font-size: 11px; }
}
@media (max-width: 359px) {
  #site-header nav a[aria-label="Attune Acupuncture & Wellness home"] img { width: 32px; height: 32px; }
  #site-header nav a[aria-label="Attune Acupuncture & Wellness home"] span:first-child { font-size: 13.5px; letter-spacing: .09em; }
  #site-header nav a[aria-label="Attune Acupuncture & Wellness home"] span:last-child { font-size: 8.5px; }
  #site-header nav a[aria-label="Book Appointment"] { padding-left: 8px; padding-right: 8px; font-size: 10.5px; }
}
button[aria-label="Open menu"],
button[aria-label="Close menu"] {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
  position: relative;
  z-index: 2;
}
button[aria-label="Open menu"] svg,
button[aria-label="Close menu"] svg { pointer-events: none; }
.mobile-menu {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  top: var(--mm-top, 0px);
  z-index: 60;
  max-height: calc(100dvh - var(--mm-top, 0px));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: #F3ECE5;
  border-bottom: 1px solid #DBD4CC;
  box-shadow: 0 16px 34px rgba(20, 34, 31, .18);
  padding: 8px 20px 20px;
  flex-direction: column;
}
.mobile-menu.open { display: flex; }
@media (min-width: 1024px) { .mobile-menu { display: none !important; } }
.mm-link { padding: 11px 4px; font-weight: 600; color: #203631; text-decoration: none; border-bottom: 1px solid #DBD4CC; font-size: 1rem; }
.mm-link.active { font-weight: 700; background: #EFE7DC; border-left: 3px solid #C2A661; padding-left: 10px; }
.mm-svc-row { display: flex; align-items: center; border-bottom: 1px solid #DBD4CC; }
.mm-svc-row .mm-svc-link { flex: 1; border-bottom: 0; }
.mm-svc-toggle { min-width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; background: transparent; border: 0; color: #203631; cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; border-radius: 6px; }
.mm-svc-toggle:hover, .mm-svc-toggle:active { background: rgba(32, 54, 49, .08); }
.mm-svc-toggle svg { width: 18px; height: 18px; transition: transform .2s ease; pointer-events: none; }
.mm-svc-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.mm-sub { display: none; flex-direction: column; padding: 4px 0 6px 16px; border-bottom: 1px solid #DBD4CC; }
.mm-sub.open { display: flex; }
.mm-sublink { padding: 7px 4px; color: #4B5158; text-decoration: none; font-size: .93rem; }
.mm-sublink.active { font-weight: 700; color: #203631; background: #EFE7DC; border-left: 3px solid #C2A661; padding-left: 10px; border-radius: 4px; }
.mm-book { margin-top: 14px; background: #203631; color: #F3ECE5; text-align: center; padding: 12px; border-radius: 8px; font-weight: 700; text-decoration: none; }
