/* =========================================================
   OLD BASING PHARMACY — Design System
   Palette:
     --green   #1F4D3A  deep bottle green (apothecary jar)
     --green-2 #163829  darker green (header/footer)
     --cream   #F6F1E4  paper background
     --paper   #FCFAF3  card surface
     --berry   #B23A48  CTA / booking accent
     --berry-2 #8F2C38  berry hover
     --ink     #1B2430  text
     --sage    #DDE7DD  soft panel
     --gold    #C9A66B  label / rule accent
     --line    #D9CFB7  hairline borders
   Type: Fraunces (display) / Inter (body) / IBM Plex Mono (utility)
   ========================================================= */

/* Font loading: fonts are now linked directly in each page's <head> via
   <link rel="preconnect"> + <link rel="stylesheet"> rather than @import here.
   @import blocks rendering until this whole CSS file is fetched AND parsed
   before the font request even starts; <link> tags let the browser discover
   and start fetching fonts in parallel with everything else, which is faster. */

:root {
  --green: #1F4D3A;
  --green-2: #163829;
  --cream: #F6F1E4;
  --paper: #FCFAF3;
  --berry: #B23A48;
  --berry-2: #8F2C38;
  --ink: #1B2430;
  --sage: #DDE7DD;
  --gold: #C9A66B;
  --line: #D9CFB7;

  --font-display: 'Fraunces', serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  --radius: 4px;
  --container: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

html {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  max-width: 100%;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  margin: 0 0 0.5em;
  color: var(--green-2);
}

p { margin: 0 0 1em; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--berry);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 16px;
  height: 1px;
  background: var(--berry);
  display: inline-block;
}

/* Focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--berry);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease, color .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--berry);
  color: #fff;
  box-shadow: 0 3px 0 var(--berry-2);
}
.btn-primary:hover { background: var(--berry-2); }
.btn-primary:active { transform: translateY(1px); box-shadow: 0 1px 0 var(--berry-2); }
.btn-outline {
  background: transparent;
  border-color: var(--green);
  color: var(--green-2);
}
.btn-outline:hover { background: var(--green); color: #fff; }
.btn-ghost {
  background: transparent;
  color: var(--green-2);
  padding: 13px 8px;
}
.btn-ghost:hover { color: var(--berry); }
.btn-sm { padding: 9px 18px; font-size: 13px; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}
.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-mark {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}
.brand-word {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: 0.01em;
  color: var(--green-2);
  line-height: 1.1;
}
.brand-word span {
  display: block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--berry);
  font-weight: 500;
  margin-top: 3px;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}
.main-nav a {
  white-space: nowrap;
  padding: 10px 11px;
  font-weight: 600;
  font-size: 14.5px;
  color: var(--ink);
  border-radius: 999px;
  transition: background .15s ease, color .15s ease;
}
.main-nav a:hover { background: var(--sage); }
.main-nav a.active { color: var(--berry); }
.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.header-tel {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14.5px;
  color: var(--green-2);
}
.header-tel svg { width: 16px; height: 16px; color: var(--berry); }

.nav-toggle {
  display: none;
  background: none;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
}
.nav-toggle svg { width: 20px; height: 20px; color: var(--green-2); }

.btn-short-label { display: none; }
.mobile-nav-tel { display: none; }

/* Nav collapses to the hamburger menu below this width. Raised from the
   original 880px once the nav grew to 6 items (needs ~1360px minimum to
   show comfortably in one row without squeezing) — verified via real
   measurement, not guessed. */
/* Nav collapses to the hamburger menu below this width (needs ~1360px
   minimum to show all 6 items comfortably in one row — see note above
   the sitemap-adjacent 1400 comment history). The hamburger sits inline
   with the logo, same row — now that the header "Book appointment"
   button is hidden on mobile too, there's enough room for this without
   the two-row layout we needed briefly in between. */
@media (max-width: 1400px) {
  .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--cream); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 8px 16px 16px; }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 10px; }
  .header-tel span.tel-text { display: none; }
  .nav-toggle { display: inline-flex; }
  .mobile-nav-tel {
    display: block;
    margin-top: 8px;
    padding: 14px 10px 4px;
    border-top: 1px solid var(--line);
    color: var(--berry);
    font-weight: 700;
  }
}

@media (max-width: 480px) {
  .header-bar { padding: 14px 14px; gap: 10px; }
  .header-actions { gap: 8px; }
  .brand { gap: 8px; }
  .brand-mark { width: 34px; height: 34px; }
  .brand-word { font-size: 16px; }
  .brand-word span { font-size: 9px; }
  .btn-full-label { display: none; }
  .btn-short-label { display: inline; }
  .header-actions .btn-sm { padding: 10px 16px; }
  .header-tel { display: none; }
  .search-toggle { width: 34px; height: 34px; }
}

/* ---------- Header search ---------- */
.search-toggle {
  background: none;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--green-2);
  flex-shrink: 0;
  transition: background .15s ease, border-color .15s ease;
}
.search-toggle:hover { background: var(--sage); border-color: var(--green); }

/* ---------- Language dropdown (flag + chevron trigger) ---------- */
.lang-dropdown { position: relative; flex-shrink: 0; }
.lang-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 10px;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  background: none;
  cursor: pointer;
  color: var(--green-2);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .03em;
  transition: background .15s ease, border-color .15s ease;
}
.lang-trigger:hover { background: var(--sage); border-color: var(--green); }
.lang-trigger svg.flag { width: 18px; height: 13px; border-radius: 2px; flex-shrink: 0; }
.lang-trigger svg.chevron { width: 12px; height: 12px; color: var(--green); transition: transform .15s ease; }
.lang-dropdown.open .lang-trigger svg.chevron { transform: rotate(180deg); }
.lang-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 12px 24px rgba(22,56,41,0.14);
  min-width: 170px;
  padding: 6px;
  z-index: 90;
}
.lang-dropdown.open .lang-menu { display: block; }
.lang-current, .lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 10px;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 600;
}
.lang-current { color: var(--berry); cursor: default; }
.lang-option { color: var(--ink); }
.lang-option:hover { background: var(--sage); }
.lang-current svg.flag, .lang-option svg.flag { width: 22px; height: 16px; border-radius: 2px; flex-shrink: 0; }
.lang-current .check { margin-left: auto; width: 16px; height: 16px; color: var(--berry); }


.search-panel {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 16px 28px rgba(22,56,41,0.12);
  z-index: 60;
  padding: 20px 0 26px;
}
.search-panel.open { display: block; }
.search-panel-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 11px 18px;
}
.search-panel-inner:focus-within { border-color: var(--green); box-shadow: 0 0 0 3px rgba(31,77,58,0.12); }
.search-panel-icon { color: var(--green); flex-shrink: 0; }
.search-panel-input {
  flex: 1;
  border: none;
  background: none;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--ink);
  outline: none;
  min-width: 0;
}
.search-panel-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--green-2);
  padding: 4px;
  flex-shrink: 0;
  display: flex;
}
.search-panel-results {
  margin-top: 14px;
  max-height: 360px;
  overflow-y: auto;
}
.search-result-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 6px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}
.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover { color: var(--berry); }
.search-result-item svg { flex-shrink: 0; color: var(--berry); transition: transform .15s ease; }
.search-result-item:hover svg { transform: translateX(3px); }
.search-result-name { font-weight: 700; font-size: 14.5px; display: block; }
.search-result-cat {
  font-family: var(--font-mono);
  font-size: 10px;
  color: #7C8B81;
  text-transform: uppercase;
  letter-spacing: .04em;
  display: block;
  margin-top: 2px;
}
.search-empty { padding: 16px 6px; color: #6B7D73; font-size: 14px; }

/* ---------- Status chip ---------- */
.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 7px 10px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--green-2);
}
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #4C9A6A; flex-shrink: 0; }
.status-dot.closed { background: var(--berry); }
.status-dot.open { animation: pulse 2s infinite; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(76,154,106,0.4); }
  50% { box-shadow: 0 0 0 4px rgba(76,154,106,0); }
}

/* ---------- Hero ---------- */
.hero {
  padding: 64px 0 80px;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: start;
}
.hero h1 {
  font-size: clamp(34px, 4.6vw, 54px);
  margin-bottom: 20px;
}
.hero h1 em {
  font-style: normal;
  color: var(--berry);
}
.hero-sub {
  font-size: 18px;
  max-width: 46ch;
  color: #3C4A44;
}
.hero-cta-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 30px 0 26px;
  flex-wrap: wrap;
}
.hero-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-art {
  position: relative;
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 380px; margin: 0 auto; align-self: center; }
}

/* ---------- Shelf illustration (signature element base) ---------- */
.shelf-illustration { width: 100%; height: auto; }

/* ---------- Section headers ---------- */
.section { padding: 76px 0; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.section-head h2 { font-size: clamp(26px, 3vw, 36px); margin-bottom: 8px; }
.section-head p { color: #4B5A54; max-width: 52ch; margin: 0; }

/* ---------- Tile grid (signature 3x3 services) ---------- */
.drawer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.drawer {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
  display: flex;
  flex-direction: column;
}
.drawer:hover {
  border-color: var(--green);
  box-shadow: 0 10px 24px rgba(31,77,58,0.12);
  transform: translateY(-3px);
}
.drawer-icon-panel {
  background: var(--tile-color, var(--green));
  aspect-ratio: 1 / 0.82;
  display: flex;
  align-items: center;
  justify-content: center;
}
.drawer-icon {
  width: 96px;
  height: 96px;
  color: #fff;
}
.drawer-label {
  padding: 16px 14px 18px;
  text-align: center;
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.drawer-label h3 {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  color: var(--green-2);
  margin: 0;
  transition: color .15s ease;
}
.drawer:hover .drawer-label h3 { color: var(--berry); }

/* coming-soon / disabled tile */
.drawer.is-disabled {
  cursor: default;
  pointer-events: none;
}
.drawer.is-disabled .drawer-icon-panel { opacity: 0.55; }
.drawer.is-disabled:hover {
  border-color: var(--line);
  box-shadow: none;
  transform: none;
}
.drawer-soon-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--berry);
  display: block;
  margin-top: 4px;
}

@media (max-width: 900px) {
  .drawer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .drawer-grid { grid-template-columns: 1fr; }
}

/* ---------- Announcement banner ---------- */
.announcement-banner {
  background: var(--berry);
}
.announcement-banner a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 24px;
  color: #fff;
  font-weight: 700;
  font-size: 17px;
  text-align: center;
  transition: background .15s ease;
}
.announcement-banner a:hover { background: var(--berry-2); }
.announcement-banner svg { width: 15px; height: 15px; flex-shrink: 0; transition: transform .15s ease; }
.announcement-banner a:hover svg { transform: translateX(3px); }

/* ---------- Popular Services ribbon ----------
   Single-slide carousel: one service shown at a time, ribbon
   background colour shifts to match. Full-height chevron arrows
   on desktop; swipe on touch devices. Data-driven from
   POPULAR_SERVICES in script.js — no HTML changes needed to
   add/remove a featured service. */
.popular-ribbon {
  --tile-color: #5B4B8A;
  position: relative;
  background: var(--tile-color);
  transition: background-color .3s ease;
  min-height: 132px;
  display: flex;
  align-items: stretch;
  overflow: hidden;
  touch-action: pan-y;
}
.popular-arrow {
  flex: 0 0 60px;
  border: none;
  background: rgba(255,255,255,0.08);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background .15s ease;
}
.popular-arrow:hover { background: rgba(255,255,255,0.2); }
.popular-arrow svg { width: 60%; height: 70%; }
.popular-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  padding: 22px 20px 30px;
  min-width: 0;
}
.popular-eyebrow-text {
  font-family: var(--font-mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(255,255,255,0.75);
}
.popular-label {
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(21px, 3vw, 29px);
  text-align: center;
  line-height: 1.15;
}
.popular-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 7px;
}
.popular-dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,0.4); border: none; cursor: pointer; padding: 0; }
.popular-dot.active { background: #fff; width: 22px; border-radius: 4px; }

@media (max-width: 700px) {
  .popular-arrow { flex: 0 0 36px; }
  .popular-ribbon { min-height: 150px; }
}

/* ---------- Trust strip ---------- */
.trust-strip {
  background: var(--green-2);
  color: #EDE8D6;
  padding: 34px 0;
}
.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: space-between;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  flex: 1 1 200px;
}
.trust-item svg { width: 22px; height: 22px; color: var(--gold); flex-shrink: 0; }

/* ---------- Location / hours panel ---------- */
.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 32px;
}
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.hours-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.hours-table td { padding: 7px 0; border-bottom: 1px dashed var(--line); }
.hours-table td:last-child { text-align: right; font-family: var(--font-mono); font-size: 13px; color: var(--green-2); }
.hours-table tr:last-child td { border-bottom: none; }
.hours-table tr.today td { color: var(--berry); font-weight: 700; }

.map-wrap {
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--line);
  height: 100%;
  min-height: 260px;
}
.map-wrap iframe { width: 100%; height: 100%; min-height: 260px; border: 0; }

@media (max-width: 780px) {
  .info-grid { grid-template-columns: 1fr; }
}

/* ---------- CTA banner ---------- */
.cta-banner {
  background: var(--berry);
  color: #fff;
  border-radius: 8px;
  padding: 46px 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}
.cta-banner h2 { color: #fff; margin-bottom: 6px; font-size: 26px; }
.cta-banner p { color: rgba(255,255,255,0.85); margin: 0; }
.cta-banner .btn-primary { background: #fff; color: var(--berry-2); box-shadow: 0 3px 0 rgba(0,0,0,0.15); }
.cta-banner .btn-primary:hover { background: var(--cream); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--green-2);
  color: #C9D4CB;
  padding: 60px 0 28px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-brand .brand-word { color: #fff; }
.footer-brand p { font-size: 14px; margin-top: 14px; color: #A9BCB0; max-width: 32ch; }
.footer-col h4 {
  color: #fff;
  font-family: var(--font-body);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 16px;
}
.footer-col a, .footer-col p {
  display: block;
  font-size: 14px;
  color: #C9D4CB;
  margin-bottom: 10px;
}
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 22px;
  font-size: 12.5px;
  color: #849587;
  flex-wrap: wrap;
  gap: 10px;
}
@media (max-width: 820px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  padding: 52px 0 44px;
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { font-size: clamp(30px, 4vw, 44px); margin-bottom: 10px; }
.page-hero p { max-width: 60ch; color: #4B5A54; font-size: 17px; margin: 0; }
.breadcrumb {
  font-family: var(--font-mono);
  font-size: 12px;
  color: #6B7D73;
  margin-bottom: 16px;
  letter-spacing: .02em;
}
.breadcrumb a { color: var(--berry); }

/* ---------- Services A-Z page ---------- */
.az-layout, .group-list {
  max-width: 820px;
}

.az-search {
  display: flex;
  gap: 10px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.az-search input[type="text"] {
  flex: 1 1 260px;
  padding: 13px 18px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 15px;
  background: var(--paper);
  color: var(--ink);
}
.az-search input[type="text"]:focus { border-color: var(--green); outline: none; box-shadow: 0 0 0 3px rgba(31,77,58,0.12); }

.az-group { margin-bottom: 8px; scroll-margin-top: 90px; }
.az-group-letter {
  font-family: var(--font-display);
  font-size: 30px;
  color: var(--gold);
  border-bottom: 2px solid var(--line);
  padding-bottom: 10px;
  margin-bottom: 4px;
  margin-top: 40px;
}
.az-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 20px 4px;
  border-bottom: 1px solid var(--line);
}
.az-item-main h3 { font-size: 17px; margin-bottom: 4px; }
.az-item-main p { font-size: 14px; color: #57655F; margin: 0; }
.az-item-tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--green-2);
  background: var(--sage);
  padding: 3px 9px;
  border-radius: 999px;
  display: inline-block;
  margin-top: 6px;
}
.az-item-actions { flex-shrink: 0; }

/* ---------- Reusable info/prep callout box ---------- */
.info-box {
  background: var(--sage);
  border: 1.5px solid var(--green);
  border-radius: 8px;
  padding: 28px;
  margin-bottom: 44px;
}
.info-box h2 { font-size: 20px; margin-bottom: 10px; }
.info-box p { color: #3C4A44; margin: 0 0 12px; }
.info-box p:last-child { margin-bottom: 0; }
.info-box p.info-warning { color: var(--berry-2); font-weight: 600; }
.info-box p.info-note { font-size: 13.5px; color: #5C6E64; }

/* ---------- Pricing cards ---------- */
.price-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 24px; }
.price-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 22px 18px;
  text-align: center;
}
.price-card .amount { font-family: var(--font-display); font-size: 30px; font-weight: 700; color: var(--green-2); display: block; margin-bottom: 6px; }
.price-card .label { font-size: 13.5px; color: #4B5A54; line-height: 1.4; }
@media (max-width: 700px) { .price-cards { grid-template-columns: 1fr; } }

/* ---------- Included checklist ---------- */
.included-list { list-style: none; padding: 0; margin: 16px 0 0; }
.included-list li {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  color: #3C4A44;
  line-height: 1.5;
}
.included-list li:last-child { border-bottom: none; }
.included-list li svg { flex-shrink: 0; margin-top: 3px; color: var(--green); width: 18px; height: 18px; }

/* ---------- Page-specific sticky CTA (used on earwax-removal.html only) ---------- */
.page-sticky-cta { display: none; }
@media (max-width: 700px) {
  .earwax-cta-desktop { display: none; }
  .page-sticky-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 80;
    background: var(--paper); border-top: 1px solid var(--line);
    padding: 12px 16px;
    box-shadow: 0 -6px 18px rgba(22,56,41,0.10);
  }
  .page-sticky-cta-text { font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--green-2); flex: 1; min-width: 0; }
}

/* ---------- Price tags ---------- */
.price-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: 10px;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--sage);
  color: var(--green-2);
  font-family: var(--font-mono);
  font-size: 13.5px;
  font-weight: 700;
  vertical-align: middle;
  white-space: nowrap;
}
@media (max-width: 480px) {
  .price-tag { display: inline-flex; margin-left: 0; margin-right: 6px; width: fit-content; }
}
.az-empty { display: none; padding: 60px 0; text-align: center; color: #6B7D73; }
.az-empty.show { display: block; }

/* ---------- "What to expect" 3-step section ---------- */
.expect-section { padding: 60px 0 68px; border-top: 1px solid var(--line); }
.expect-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 30px; }
.expect-num {
  width: 44px; height: 44px; border-radius: 50%; background: var(--sage); color: var(--green-2);
  font-family: var(--font-display); font-weight: 700; font-size: 18px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.expect-step h3 { font-size: 17px; margin-bottom: 6px; }
.expect-step p { font-size: 14px; color: #57655F; margin: 0; }
@media (max-width: 780px) { .expect-grid { grid-template-columns: 1fr; gap: 24px; } }

/* ---------- Sticky mobile booking bar ---------- */
.mobile-book-bar {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 80;
  background: var(--paper); border-top: 1px solid var(--line);
  padding: 12px 16px; gap: 10px;
  box-shadow: 0 -6px 18px rgba(22,56,41,0.10);
}
@media (max-width: 700px) {
  .mobile-book-bar { display: flex; }
  body { padding-bottom: 78px; }
  /* The sticky bar above already gives mobile visitors a big, obvious
     "Book Appointment" button — no need to duplicate it in the header
     too, so it's hidden here. Desktop is untouched. */
  .header-actions > a.btn-primary { display: none; }
}
.mobile-book-bar .btn { flex: 1; min-width: 0; white-space: normal; text-align: center; padding-left: 12px; padding-right: 12px; }

@media (max-width: 780px) {
  .az-item { flex-direction: column; align-items: flex-start; gap: 10px; }
}

/* ---------- Blog ---------- */
.blog-list {
  max-width: 780px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.blog-card {
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
.blog-card:first-child { padding-top: 0; }
.blog-card-date {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--berry);
  text-transform: uppercase;
  letter-spacing: .05em;
  display: block;
  margin-bottom: 8px;
}
.blog-card h2 {
  font-size: 22px;
  margin-bottom: 8px;
}
.blog-card h2 a { color: inherit; }
.blog-card h2 a:hover { color: var(--berry); }
.blog-card p { color: #4B5A54; margin-bottom: 12px; }
.blog-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 14px;
  color: var(--berry);
}
.blog-card-link svg { width: 14px; height: 14px; transition: transform .15s ease; }
.blog-card-link:hover svg { transform: translateX(3px); }

.blog-empty-note {
  color: #6B7D73;
  font-size: 14.5px;
  padding-top: 20px;
}

/* ---------- Blog article ---------- */
.article {
  max-width: 700px;
}
.article-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--berry);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 14px;
}
.article h1 { margin-bottom: 6px; }
.article-byline { color: #6B7D73; font-size: 14px; margin-bottom: 36px; }
.article p { color: #3C4A44; font-size: 16.5px; margin-bottom: 22px; }
.article h2 { font-size: 22px; margin-top: 36px; margin-bottom: 14px; }
.article ul { margin: 0 0 22px; padding-left: 22px; color: #3C4A44; }
.article li { margin-bottom: 8px; font-size: 16.5px; }
.article-footer {
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

/* ---------- About page ---------- */
.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.value-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 26px;
}
.value-card svg { width: 30px; height: 30px; color: var(--berry); margin-bottom: 14px; }
.value-card h3 { font-size: 17px; margin-bottom: 6px; }
.value-card p { font-size: 14px; color: #57655F; margin: 0; }

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.team-card { text-align: left; }
.team-photo {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 6px;
  background: linear-gradient(155deg, var(--sage), var(--paper));
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.team-photo svg { width: 44%; height: 44%; color: var(--green); opacity: .55; }
.team-card h3 { font-size: 16px; margin-bottom: 2px; }
.team-card .role { font-family: var(--font-mono); font-size: 11.5px; color: var(--berry); text-transform: uppercase; letter-spacing: .05em; }

.timeline { border-left: 2px solid var(--line); padding-left: 28px; display: flex; flex-direction: column; gap: 30px; }
.timeline-item { position: relative; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -33.5px;
  top: 4px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--berry);
  border: 2px solid var(--cream);
}
.timeline-item .yr { font-family: var(--font-mono); font-size: 12px; color: var(--berry); margin-bottom: 4px; display: block; }

@media (max-width: 900px) {
  .value-grid { grid-template-columns: 1fr 1fr; }
  .team-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .value-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
}

/* ---------- Contact page ---------- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.form-field { margin-bottom: 20px; }
.form-field label {
  display: block;
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
}
.form-field .req { color: var(--berry); }
.form-field input, .form-field select, .form-field textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--line);
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 15px;
  background: var(--paper);
  color: var(--ink);
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  border-color: var(--green);
  outline: none;
  box-shadow: 0 0 0 3px rgba(31,77,58,0.12);
}

/* ---------- Service select: pill with leading icon ---------- */
.select-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 4px 22px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.select-wrap:focus-within { border-color: var(--green); box-shadow: 0 0 0 3px rgba(31,77,58,0.14); }
.select-wrap svg { color: var(--green); flex-shrink: 0; }
.select-wrap select {
  flex: 1;
  border: none;
  background-color: transparent;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M6 9l6 6 6-6' stroke='%23163829' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right center;
  background-size: 16px;
  -webkit-appearance: none;
  appearance: none;
  padding: 14px 32px 14px 10px;
  font-size: 16px;
  font-family: var(--font-body);
  color: var(--ink);
  cursor: pointer;
  outline: none;
}
.select-wrap select option { padding: 10px 14px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-note { font-size: 12.5px; color: #6B7D73; margin-top: -8px; }

/* ---------- Prescriptions page: urgent request box + large textarea ---------- */
.urgent-box {
  background: var(--sage);
  border: 1.5px solid var(--green);
  border-radius: 8px;
  padding: 28px;
  margin-bottom: 44px;
}
.urgent-box h2 { font-size: 20px; margin-bottom: 10px; }
.urgent-box p { color: #3C4A44; margin-bottom: 20px; max-width: 60ch; }
.urgent-box .btn { max-width: 100%; white-space: normal; text-align: center; }
.form-field textarea.medicines-field { min-height: 160px; resize: vertical; }
.form-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 32px;
  color: #7C8B81;
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.form-divider::before, .form-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}
.confirm-box {
  display: none;
  background: var(--sage);
  border: 1.5px solid var(--green);
  border-radius: 8px;
  padding: 22px;
  margin-top: 20px;
  align-items: flex-start;
  gap: 12px;
}
.confirm-box.show { display: flex; }
.confirm-box svg { width: 22px; height: 22px; color: var(--green); flex-shrink: 0; margin-top: 2px; }
.confirm-box h4 { margin-bottom: 4px; font-size: 15px; color: var(--green-2); }
.confirm-box p { margin: 0; font-size: 14px; color: #3C4A44; }

.contact-card { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact-card:last-child { border-bottom: none; }
.contact-card svg { width: 22px; height: 22px; color: var(--berry); flex-shrink: 0; margin-top: 2px; }
.contact-card h4 { font-size: 15px; margin-bottom: 3px; color: var(--green-2); }
.contact-card p { font-size: 14px; color: #4B5A54; margin: 0; }

/* ---------- Cal.com booking embed ---------- */
.cal-embed-wrap {
  border: 1.5px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  min-height: 650px;
  background: var(--paper);
}
.cal-embed-wrap > div {
  width: 100%;
  height: 100%;
  min-height: 650px;
  overflow: auto;
}

@media (max-width: 900px) {
  .contact-layout { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

/* ---------- Misc ---------- */
.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--berry);
  color: #fff;
  padding: 10px 16px;
  z-index: 100;
  border-radius: 0 0 6px 0;
}
.skip-link:focus { left: 0; top: 0; }
