/* Auburndale Pharmacy — Lumistry design system implementation
   Concept: "The Apothecary Ledger" — heritage mortar-and-pestle brand,
   cream paper + near-black ink from the supplied palette, sepia brand accent
   derived from the vintage logo artwork. */

@font-face { font-family: 'Fraunces'; src: url('/fonts/fraunces-v38.woff2') format('woff2'); font-weight: 300 700; font-style: normal; font-display: swap; }
/* Fraunces: pin the optical-size axis to a moderate cut so large headings don't
   auto-scale into the extreme display letterforms (quirky F, etc.) */
h1, h2, h3, .bl-name, .hours-table caption, .testimonial blockquote, .step-num {
  font-optical-sizing: none;
  font-variation-settings: 'opsz' 9;
  font-feature-settings: 'liga' 0, 'clig' 0;
}
@font-face { font-family: 'Inter'; src: url('/fonts/inter-400.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('/fonts/inter-600.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  /* brand — per-pharmacy */
  --brand: #6B4423;
  --brand-dark: #4A2E16;
  --brand-tint: #F6EDDE;
  /* interface — warm neutrals re-tempered to the cream/ink brand palette */
  --ink: #140101;
  --ink-soft: #554A42;
  --line: #E8DFD0;
  --paper: #FFFDF8;
  --cream: #FEF6E5;
  --ok: #1E6B3C;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(20,1,1,.06), 0 8px 24px -12px rgba(20,1,1,.18);
  --shadow-rest: 0 1px 2px rgba(20,1,1,.04);
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --pad-section: clamp(3.5rem, 7vw, 5.5rem);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body { font-family: var(--font-body); font-size: 16px; line-height: 1.65; color: var(--ink); background: var(--paper); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); }
a:hover { color: var(--brand-dark); }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 3px; }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: 12px 20px; z-index: 200; border-radius: 0 0 8px 0; }
.skip-link:focus { left: 0; color: #fff; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.2; color: var(--ink); }
h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.2rem; }
.kicker { display: block; font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--brand); margin-bottom: .6rem; }
.sub { color: var(--ink-soft); max-width: 62ch; margin-top: .7rem; }
.section-head { margin-bottom: 2.2rem; }
.section-head.center { text-align: center; }
.section-head.center .sub { margin-left: auto; margin-right: auto; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--font-body); font-size: .93rem; font-weight: 600; padding: 11px 18px; min-height: 44px; min-width: 44px; border-radius: 999px; border: 2px solid transparent; cursor: pointer; text-decoration: none; transition: background .15s, color .15s, border-color .15s, transform .15s; }
.btn-lg { padding: 15px 26px; }
.btn-primary { background: var(--brand); color: #fff; border-color: var(--brand); }
.btn-primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
.btn-outline { background: transparent; color: var(--brand); border-color: var(--brand); }
.btn-outline:hover { background: var(--brand-tint); color: var(--brand-dark); }
.btn-ghost { background: transparent; color: var(--ink); border-color: transparent; }
.btn-ghost:hover { background: var(--brand-tint); }
.btn-inverse { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.btn-inverse:hover { background: #fff; border-color: #fff; color: var(--ink); }
.btn-outline-inverse { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn-outline-inverse:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn svg { flex: none; }

/* Topbar */
.topbar { background: var(--ink); color: #F4EBDD; font-size: .84rem; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; padding-top: 4px; padding-bottom: 4px; flex-wrap: wrap; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { text-decoration: underline; }
.topbar .tb-left, .topbar .tb-right { display: flex; align-items: center; gap: 18px; }
.topbar svg { vertical-align: -2px; margin-right: 5px; }
.open-now { display: inline-flex; align-items: center; gap: 7px; }
.open-dot { width: 8px; height: 8px; border-radius: 50%; background: #9d9488; flex: none; }
.open-now.is-open .open-dot { background: #4FC77A; }
.open-now.is-closed .open-dot { background: #E0A54B; }
@media (max-width: 700px) { .topbar .tb-left span.tb-addr { display: none; } }

/* Header */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,253,248,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 74px; }
.brand-lockup { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand-lockup img { width: 46px; height: 53px; }
.brand-lockup .bl-name { font-family: var(--font-display); font-weight: 600; font-size: 1.22rem; line-height: 1.1; }
.brand-lockup .bl-tag { font-size: .7rem; color: var(--ink-soft); letter-spacing: .06em; text-transform: uppercase; }
.main-nav { display: flex; align-items: center; gap: 6px; }
.main-nav > a, .nav-drop > button { display: inline-flex; align-items: center; gap: 5px; padding: 10px 13px; min-height: 44px; font-size: .95rem; font-weight: 600; color: var(--ink); text-decoration: none; background: none; border: none; border-radius: 8px; cursor: pointer; font-family: var(--font-body); }
.main-nav > a:hover, .nav-drop > button:hover { background: var(--brand-tint); color: var(--brand-dark); }
.main-nav > a[aria-current="page"] { color: var(--brand); }
.nav-drop { position: relative; }
.nav-drop-menu { position: absolute; top: calc(100% + 6px); left: 0; min-width: 250px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 8px; display: none; }
.nav-drop.open .nav-drop-menu { display: block; }
.nav-drop-menu a { display: block; padding: 10px 12px; font-size: .92rem; font-weight: 500; color: var(--ink); text-decoration: none; border-radius: 7px; }
.nav-drop-menu a:hover { background: var(--brand-tint); color: var(--brand-dark); }
.header-ctas { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; background: none; border: none; padding: 10px; min-width: 44px; min-height: 44px; cursor: pointer; color: var(--ink); border-radius: 8px; }
@media (max-width: 1023px) {
  .main-nav, .header-ctas { display: none; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
}

/* Mobile drawer */
.drawer-scrim { position: fixed; inset: 0; background: rgba(20,1,1,.45); z-index: 110; opacity: 0; pointer-events: none; transition: opacity .2s; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(340px, 88vw); background: var(--paper); z-index: 120; transform: translateX(100%); transition: transform .25s; display: flex; flex-direction: column; box-shadow: var(--shadow); }
body.drawer-open .drawer { transform: none; }
body.drawer-open .drawer-scrim { opacity: 1; pointer-events: auto; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.drawer-close { background: none; border: none; padding: 10px; min-width: 44px; min-height: 44px; cursor: pointer; color: var(--ink); border-radius: 8px; }
.drawer-nav { flex: 1; overflow-y: auto; padding: 12px 10px; }
.drawer-nav a { display: block; padding: 13px 14px; font-weight: 600; color: var(--ink); text-decoration: none; border-radius: 8px; min-height: 44px; }
.drawer-nav a:hover { background: var(--brand-tint); }
.drawer-nav .dn-sub { padding-left: 26px; font-weight: 500; font-size: .93rem; color: var(--ink-soft); }
.drawer-ctas { padding: 16px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.drawer-ctas .btn { width: 100%; }

/* Hero */
.hero { position: relative; color: #fff; background: var(--ink); }
.hero-media { position: absolute; inset: 0; overflow: hidden; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; opacity: .5; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(20,1,1,.82) 15%, rgba(20,1,1,.35) 75%); }
.hero-inner { position: relative; padding: clamp(4.5rem, 9vw, 7.5rem) 0; max-width: 640px; }
.hero .kicker { color: #EFD9AF; }
.hero h1 { color: #fff; }
.hero p { color: rgba(255,251,242,.9); margin-top: 1rem; max-width: 54ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.8rem; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 1.6rem; font-size: .9rem; color: rgba(255,251,242,.85); }
.hero-meta a { color: #fff; }
.page-hero { background: var(--cream); border-bottom: 1px solid var(--line); }
.page-hero .wrap { padding-top: clamp(2.6rem, 5vw, 4rem); padding-bottom: clamp(2.6rem, 5vw, 4rem); }
.breadcrumbs { font-size: .84rem; color: var(--ink-soft); margin-bottom: .9rem; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line); }
.breadcrumbs a { color: var(--ink-soft); text-decoration: none; }
.breadcrumbs a:hover { color: var(--brand); text-decoration: underline; }

/* Sections */
.section { padding: var(--pad-section) 0; }
.section.cream { background: var(--cream); }
.section.dark { background: var(--ink); color: #F4EBDD; }
.section.dark h2 { color: #fff; }

/* Cards & grids */
.grid { display: grid; gap: 22px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 1023px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 639px) { .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-rest); padding: 26px 24px; transition: box-shadow .18s, border-color .18s, transform .18s; }
a.card { text-decoration: none; color: inherit; display: block; }
.card:hover { border-color: var(--brand); box-shadow: var(--shadow); }
a.card:hover h3 { color: var(--brand-dark); }
.icon-chip { width: 46px; height: 46px; border-radius: 12px; background: var(--brand-tint); color: var(--brand); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.card h3 { margin-bottom: .45rem; }
.card p { font-size: .95rem; color: var(--ink-soft); }
.card .card-link { display: inline-block; margin-top: .8rem; font-size: .9rem; font-weight: 600; color: var(--brand); }

/* Split layouts */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.split .figure img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; object-fit: cover; }
.prose p + p { margin-top: 1rem; }
.prose ul { margin: 1rem 0 1rem 1.3rem; }
.prose li { margin-bottom: .4rem; }
.prose h2 { margin: 2rem 0 .8rem; }
.prose h3 { margin: 1.5rem 0 .6rem; }

/* Checklist */
.check-list { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 26px; margin: 1.2rem 0; }
@media (max-width: 560px) { .check-list { grid-template-columns: 1fr; } }
.check-list li { display: flex; gap: 10px; align-items: flex-start; padding: 4px 0; }
.check-list svg { flex: none; color: var(--ok); margin-top: 4px; }

/* Hours table */
.hours-table { width: 100%; border-collapse: collapse; }
.hours-table caption { text-align: left; font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; margin-bottom: .8rem; }
.hours-table th, .hours-table td { text-align: left; padding: 10px 6px; border-bottom: 1px solid var(--line); font-size: .95rem; }
.hours-table th { font-weight: 600; }
.hours-table td { color: var(--ink-soft); text-align: right; white-space: nowrap; }
.hours-table tr.today th, .hours-table tr.today td { color: var(--brand-dark); font-weight: 600; }

/* Trust band */
.trust-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
@media (max-width: 1023px) { .trust-band { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 639px) { .trust-band { grid-template-columns: 1fr; } }
.trust-item { display: flex; gap: 14px; align-items: flex-start; }
.trust-item .icon-chip { margin-bottom: 0; flex: none; }
.trust-item h3 { font-size: 1.05rem; margin-bottom: .2rem; }
.trust-item p { font-size: .9rem; color: var(--ink-soft); }
.section.dark .trust-item p { color: rgba(244,235,221,.75); }
.section.dark .icon-chip { background: rgba(254,246,229,.12); color: #EFD9AF; }

/* Testimonials */
.testimonials { position: relative; }
.testimonial-track { display: grid; }
.testimonial { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity .35s; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-rest); padding: clamp(1.6rem, 4vw, 2.6rem); max-width: 780px; margin: 0 auto; text-align: center; }
.testimonial.active { opacity: 1; visibility: visible; }
.testimonial blockquote { font-family: var(--font-display); font-size: clamp(1.05rem, 2vw, 1.3rem); line-height: 1.5; }
.testimonial cite { display: block; margin-top: 1.1rem; font-style: normal; font-size: .88rem; font-weight: 600; color: var(--ink-soft); }
.stars { color: #C98A2B; letter-spacing: 3px; margin-bottom: .9rem; font-size: 1rem; }
.testimonial-nav { display: flex; justify-content: center; gap: 10px; margin-top: 1.4rem; }
.testimonial-nav button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: #fff; cursor: pointer; color: var(--ink); display: inline-flex; align-items: center; justify-content: center; }
.testimonial-nav button:hover { border-color: var(--brand); color: var(--brand); }

/* Portal promo */
.portal-promo { background: var(--ink); color: #F4EBDD; border-radius: calc(var(--radius) + 6px); overflow: hidden; }
.portal-promo .split { align-items: center; gap: 0; }
.portal-copy { padding: clamp(2rem, 5vw, 3.6rem); }
.portal-copy h2 { color: #fff; }
.portal-copy p { color: rgba(244,235,221,.85); margin-top: .9rem; }
.portal-copy ul { list-style: none; margin: 1.2rem 0; display: grid; gap: 9px; }
.portal-copy li { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; }
.portal-copy li svg { flex: none; color: #EFD9AF; margin-top: 4px; }
.portal-figure { padding: clamp(1.5rem, 4vw, 2.5rem); display: flex; align-items: center; justify-content: center; }
.portal-figure img { max-width: 420px; width: 100%; }

/* Steps */
.steps { counter-reset: step; }
.step { position: relative; padding-left: 0; }
.step-num { width: 46px; height: 46px; border-radius: 50%; background: var(--brand-tint); color: var(--brand-dark); font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(1.6rem, 4vw, 3rem); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.info-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-rest); padding: 28px; }
.info-row { display: flex; gap: 14px; align-items: flex-start; padding: 13px 0; border-bottom: 1px solid var(--line); }
.info-row:last-child { border-bottom: none; }
.info-row .icon-chip { margin: 0; flex: none; width: 42px; height: 42px; }
.info-row h3 { font-size: 1rem; margin-bottom: .15rem; }
.info-row p, .info-row a { font-size: .95rem; color: var(--ink-soft); }
.info-row a { color: var(--brand); }
.map-frame { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-rest); }
.map-frame iframe { display: block; width: 100%; height: 460px; border: 0; }

/* CTA band */
.cta-band { background: var(--ink); color: #F4EBDD; }
.cta-band .wrap { padding-top: clamp(3rem, 6vw, 4.5rem); padding-bottom: clamp(3rem, 6vw, 4.5rem); display: grid; grid-template-columns: 1fr auto; gap: 26px; align-items: center; }
@media (max-width: 800px) { .cta-band .wrap { grid-template-columns: 1fr; } }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(244,235,221,.8); margin-top: .5rem; max-width: 52ch; }
.cta-band .cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Footer */
.site-footer { background: #0E0101; color: #D9CDBB; font-size: .92rem; }
.site-footer .wrap { padding-top: 3.5rem; padding-bottom: 2rem; }
.footer-grid { display: grid; grid-template-columns: 4fr 3fr 3fr 3fr; gap: 34px; padding-bottom: 2.4rem; border-bottom: 1px solid rgba(233,223,208,.15); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h3 { color: #fff; font-size: 1rem; font-family: var(--font-body); font-weight: 600; margin-bottom: 1rem; }
.site-footer a { color: #EFE4D1; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-brand img { width: 54px; height: 62px; margin-bottom: 14px; background: var(--cream); border-radius: 10px; padding: 5px; }
.footer-brand p { max-width: 34ch; color: #B7AB99; }
.footer-list { list-style: none; display: grid; gap: 9px; }
.footer-hours { list-style: none; display: grid; gap: 6px; }
.footer-hours li { display: flex; justify-content: space-between; gap: 12px; }
.footer-hours span:last-child { white-space: nowrap; color: #B7AB99; }
.footer-social { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; min-height: 44px; }
.footer-legal { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 1.4rem; color: #9D9080; font-size: .84rem; }
.footer-legal ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.footer-legal a { color: #B7AB99; }

/* Sticky mobile bottom bar */
.mobile-cta-bar { display: none; }
@media (max-width: 767px) {
  body { padding-bottom: 72px; }
  .mobile-cta-bar { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; background: rgba(255,253,248,.97); border-top: 1px solid var(--line); padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); }
}

/* Utility */
.mt-2 { margin-top: 1.4rem; } .mt-3 { margin-top: 2.2rem; }
.center { text-align: center; }
.badge-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 1.2rem; }
.badge { display: inline-flex; align-items: center; gap: 7px; background: var(--brand-tint); color: var(--brand-dark); font-size: .85rem; font-weight: 600; padding: 8px 14px; border-radius: 999px; }
.section.dark .badge { background: rgba(254,246,229,.12); color: #EFD9AF; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
