/* Economy Pharmacy - modern apothecary design system */
/* Fonts (self-hosted) */
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url(/assets/fonts/playfairdisplay_v40_nuFiD-vYSZviVYUb_rj3ij__anPXDTzYgA.woff2) format('woff2');
}
@font-face {
  font-family: 'Playfair Display';
  font-style: italic;
  font-weight: 400 900;
  font-display: swap;
  src: url(/assets/fonts/playfairdisplay_v40_nuFkD-vYSZviVYUb_rj3ij__anPXDTnogkk7.woff2) format('woff2');
}
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url(/assets/fonts/opensans_v44_memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTS-muw.woff2) format('woff2');
}
@font-face {
  font-family: 'Open Sans';
  font-style: italic;
  font-weight: 300 800;
  font-display: swap;
  src: url(/assets/fonts/opensans_v44_memtYaGs126MiZpBA-UFUIcVXSCEkx2cmqvXlWqWuU6F.woff2) format('woff2');
}

:root {
  --green: #5EA55F;          /* brand, Pantone 7740C */
  --green-deep: #3D7A42;
  --green-text: #2E5B33;     /* AA on paper */
  --green-wash: #EAF2E6;
  --green-line: #C9DCC4;
  --ink: #26231F;            /* warm near-black from brand #231F20 */
  --ink-soft: #4C463F;
  --paper: #FAF8F2;
  --cream: #F3EEE2;
  --card: #FFFEFA;
  --line: #E4DECF;
  --focus: #1D4ED8;
  --serif: 'Playfair Display', 'Didot', Georgia, serif;
  --sans: 'Open Sans', 'Avenir', 'Segoe UI', Arial, sans-serif;
  --wrap: 76rem;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(38, 35, 31, 0.05), 0 8px 24px -12px rgba(38, 35, 31, 0.18);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  text-wrap: pretty;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-text); text-underline-offset: 3px; }
a:hover { color: var(--green-deep); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 2px; }
.utility-bar :focus-visible, .site-footer :focus-visible, .mobile-cta-bar :focus-visible, .cta-band :focus-visible, .hero :focus-visible { outline-color: #F6F3EA; }

h1, h2, h3 { font-family: var(--serif); line-height: 1.15; color: var(--ink); text-wrap: balance; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 700; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; font-family: var(--sans); }
h4 { font-size: 1.05rem; margin: 0 0 0.4em; }
p { margin: 0 0 1em; max-width: 68ch; }
ul, ol { padding-left: 1.4rem; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2rem); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 0.5rem; top: -4rem; z-index: 200; background: var(--ink); color: #FFFEFA; padding: 0.7rem 1.2rem; border-radius: 0 0 8px 8px; transition: top 0.15s; }
.skip-link:focus { top: 0; color: #FFFEFA; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--sans); font-weight: 600; font-size: 1rem; line-height: 1.2;
  padding: 0.8rem 1.4rem; border-radius: 999px; text-decoration: none;
  border: 2px solid transparent; min-height: 44px; cursor: pointer;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s, transform 0.15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--green-deep); color: #FFFEFA; }
.btn-primary:hover { background: var(--green-text); color: #FFFEFA; }
.btn-outline { border-color: var(--green-deep); color: var(--green-text); background: transparent; }
.btn-outline:hover { background: var(--green-wash); color: var(--green-text); }
.btn-ghost { color: var(--green-text); background: transparent; }
.btn-ghost:hover { background: var(--green-wash); color: var(--green-text); }
.btn-lg { font-size: 1.1rem; padding: 1rem 1.8rem; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--paper); border-bottom: 1px solid var(--line); }
.utility-bar { background: var(--ink); color: #F6F3EA; font-size: 0.9rem; }
.utility-inner { display: flex; flex-wrap: wrap; gap: 0.3rem 1.5rem; align-items: center; justify-content: center; padding-block: 0.45rem; }
.utility-phones { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.3rem 1.4rem; margin: 0; padding: 0; }
.utility-phones li { display: flex; flex-wrap: wrap; align-items: center; gap: 0.2rem 0.4rem; }
.utility-phones a { color: #F6F3EA; text-decoration: none; display: inline-flex; align-items: center; gap: 0.4rem; }
.utility-phones a:hover { color: #fff; text-decoration: underline; }
.utility-phones a > span { color: #BFD9B8; }
.open-status { display: inline-flex; align-items: center; gap: 0.35rem; margin-left: 0.5rem; font-size: 0.82rem; color: #CFC8B7; }
.open-status .dot { width: 8px; height: 8px; border-radius: 999px; background: #8B8577; display: inline-block; }
.open-status.is-open { color: #A8E0A0; }
.open-status.is-open .dot { background: #7ED381; }
.open-status.is-closed { color: #E0C7A0; }
.open-status.is-closed .dot { background: #D9A05B; }
.header-main { display: flex; align-items: center; gap: 1.5rem; padding-block: 0.8rem; }
.brand img { width: clamp(120px, 16vw, 170px); height: auto; }
.header-ctas { margin-left: auto; display: flex; gap: 0.6rem; align-items: center; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 2px solid var(--line); border-radius: 8px; padding: 0.5rem; color: var(--ink); min-width: 44px; min-height: 44px; }

/* Primary nav - large type per client request */
.site-nav { border-top: 1px solid var(--line); background: var(--card); }
.nav-list { list-style: none; display: flex; flex-wrap: wrap; gap: 0 1.9rem; margin: 0; padding: 0; }
.nav-list > li { display: flex; }
.nav-list > li > a, .sub-toggle {
  display: inline-flex; align-items: center; gap: 0.3rem;
  font-size: 1.125rem; font-weight: 600; line-height: 1.65; color: var(--ink); text-decoration: none;
  margin: 0; padding: 0.85rem 0.1rem; border: 0; background: none; font-family: var(--sans); cursor: pointer;
  border-bottom: 3px solid transparent;
}
.sub-toggle svg { flex: none; }
.nav-list > li > a:hover, .sub-toggle:hover { color: var(--green-text); border-bottom-color: var(--green-line); }
.nav-list > li > a[aria-current="page"] { color: var(--green-text); border-bottom-color: var(--green-deep); }
.has-sub { position: relative; }
.has-sub.is-section > .sub-toggle { color: var(--green-text); border-bottom-color: var(--green-deep); }
.sub-list {
  position: absolute; top: 100%; left: -0.75rem; min-width: 15.5rem; z-index: 110;
  list-style: none; margin: 0; padding: 0.5rem 0; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  display: none;
}
.has-sub.open .sub-list { display: block; }
.sub-list a { display: block; padding: 0.55rem 1.1rem; font-size: 1.05rem; font-weight: 600; text-decoration: none; color: var(--ink); }
.sub-list a:hover { background: var(--green-wash); color: var(--green-text); }
.sub-list a[aria-current="page"] { color: var(--green-text); box-shadow: inset 3px 0 0 var(--green-deep); }
.nav-drawer-ctas { display: none; }

@media (max-width: 1023px) {
  .header-ctas { display: none; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .site-nav { display: none; position: fixed; inset: 0; top: 0; overflow-y: auto; background: var(--paper); padding-top: 1rem; z-index: 150; border: 0; }
  body.nav-open .site-nav { display: block; }
  body.nav-open { overflow: hidden; }
  .nav-list { flex-direction: column; gap: 0; padding-top: 3.5rem; }
  .nav-list > li { display: block; border-bottom: 1px solid var(--line); }
  .nav-list > li > a, .sub-toggle { display: flex; width: 100%; padding: 1rem 0.2rem; font-size: 1.2rem; border-bottom: 0; }
  .sub-list { position: static; display: none; border: 0; box-shadow: none; background: var(--cream); border-radius: 8px; margin-bottom: 0.8rem; }
  .has-sub.open .sub-list { display: block; }
  .nav-drawer-ctas { display: flex; flex-direction: column; gap: 0.7rem; padding: 1.2rem 0 5.5rem; }
  body.nav-open .nav-toggle { position: fixed; top: 0.8rem; right: 1rem; z-index: 160; background: var(--paper); }
  body.nav-open .mobile-cta-bar { display: none; }
}

/* Mobile CTA bar */
.mobile-cta-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 90;
  display: none; grid-template-columns: 1fr 1fr 1fr;
  background: var(--ink); padding-bottom: env(safe-area-inset-bottom);
}
.mobile-cta-bar a {
  display: flex; flex-direction: column; align-items: center; gap: 0.15rem;
  color: #F6F3EA; text-decoration: none; font-size: 0.85rem; font-weight: 600;
  padding: 0.6rem 0.4rem; min-height: 44px;
}
.mobile-cta-bar a:hover, .mobile-cta-bar a:focus-visible { color: #fff; background: rgba(255, 255, 254, 0.08); }
@media (max-width: 767px) {
  .mobile-cta-bar { display: grid; }
  body { padding-bottom: 4.2rem; }
}

/* Hero */
.hero { position: relative; background: var(--ink); }
.hero-media img { width: 100%; height: clamp(26rem, 62vh, 38rem); object-fit: cover; opacity: 0.92; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to right, rgba(24, 22, 19, 0.82) 0%, rgba(24, 22, 19, 0.55) 45%, rgba(24, 22, 19, 0.15) 100%); }
.hero-content { position: absolute; inset: 0; display: flex; align-items: center; }
.hero-content .wrap { width: 100%; }
.hero-kicker { font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: #CFE3C6; margin-bottom: 0.6rem; }
.hero h1 { color: #FFFDF7; max-width: 22ch; margin-bottom: 0.6rem; }
.hero-sub { color: #EFEAD9; font-size: 1.15rem; max-width: 52ch; margin-bottom: 1.6rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.hero .btn-outline { border-color: #F6F3EA; color: #F6F3EA; }
.hero .btn-outline:hover { background: rgba(255, 255, 250, 0.14); color: #fff; }
@media (max-width: 640px) {
  .hero-media img { height: 30rem; }
  .hero-media::after { background: linear-gradient(to top, rgba(24, 22, 19, 0.88) 25%, rgba(24, 22, 19, 0.35) 75%); }
  .hero-content { align-items: flex-end; padding-bottom: 2rem; }
}

/* Sections */
.section { padding-block: clamp(3rem, 7vw, 5rem); }
.section-cream { background: var(--cream); }
.section-green { background: var(--green-wash); }
.section-ink { background: var(--ink); color: #F1EDE2; }
.section-ink h2, .section-ink h3 { color: #FFFDF7; }
.section-ink p { color: #E4DECF; }
.kicker { font-family: var(--serif); font-style: italic; font-size: 1.1rem; color: var(--green-text); margin: 0 0 0.4rem; }
.section-ink .kicker { color: #B7D3AC; }
.section-head { max-width: 46rem; margin-bottom: 2.2rem; }
.center { text-align: center; }
.center .section-head { margin-inline: auto; }
.center p { margin-inline: auto; }
.employment-form { width: 100%; min-height: 36rem; }
.employment-form iframe { width: 100%; border: 0; }

/* Cards */
.grid { display: grid; gap: 1.4rem; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-2-lg { grid-template-columns: 1fr 1fr; } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.7rem; box-shadow: var(--shadow); }
.card h3 { margin-top: 0.9rem; }
.card .icon-badge { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 999px; background: var(--green-wash); color: var(--green-text); }
.card p { margin-bottom: 0.6rem; }
.card-link { font-weight: 700; text-decoration: none; }
.card-link:hover { text-decoration: underline; }
.card-photo { overflow: hidden; padding: 0; }
.card-photo img { border-radius: var(--radius) var(--radius) 0 0; aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.card-photo .card-body { padding: 1.5rem 1.7rem 1.7rem; }

/* Split layout */
.split { display: grid; gap: 2.2rem; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 3.5rem; } .split.rev > .split-media { order: 2; } }
.split-media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; object-fit: cover; }
.framed { border: 1px solid var(--line); padding: 0.6rem; background: var(--card); border-radius: calc(var(--radius) + 4px); }
.flavorx-media { display: grid; gap: 1rem; justify-items: center; padding: 1.4rem 1.2rem; }
.flavorx-media img { box-shadow: none; }
.flavorx-media .flavorx-logo { width: auto; max-width: min(322px, 80%); }
.framed img { border-radius: calc(var(--radius) - 2px); }

/* Trust strip */
.trust-strip { border-block: 1px solid var(--line); background: var(--card); }
.trust-strip .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 2rem; padding-block: 1.6rem; }
@media (min-width: 900px) { .trust-strip .wrap { grid-template-columns: repeat(4, auto); justify-content: space-between; } }
.trust-item { display: flex; align-items: center; gap: 0.8rem; font-weight: 600; }
.trust-item .icon { color: var(--green-deep); flex-shrink: 0; }
.trust-item small { display: block; font-weight: 400; color: var(--ink-soft); }

/* Hours table */
.hours-table { width: 100%; border-collapse: collapse; max-width: 26rem; }
.hours-table caption { text-align: left; font-weight: 700; padding-bottom: 0.5rem; }
.hours-table th, .hours-table td { text-align: left; padding: 0.45rem 0; border-bottom: 1px dashed var(--line); font-weight: 400; }
.hours-table td { text-align: right; }

/* Definition rows */
.fact-list { list-style: none; padding: 0; margin: 0 0 1rem; }
.fact-list li { display: flex; gap: 0.7rem; align-items: flex-start; padding-block: 0.45rem; }
.fact-list .icon { color: var(--green-deep); margin-top: 0.2rem; flex-shrink: 0; }

/* Checklist */
.check-list { list-style: none; padding: 0; margin: 0 0 1.2rem; }
.check-list li { display: flex; gap: 0.65rem; align-items: flex-start; padding-block: 0.35rem; }
.check-list .icon { color: var(--green-deep); margin-top: 0.25rem; flex-shrink: 0; }

/* Service chips */
.chip-list { list-style: none; display: flex; flex-wrap: wrap; gap: 0.55rem; padding: 0; margin: 0; }
.chip-list li { background: var(--green-wash); border: 1px solid var(--green-line); color: var(--green-text); border-radius: 999px; padding: 0.35rem 0.9rem; font-size: 0.95rem; font-weight: 600; }

/* FAQ */
.faq-item { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); margin-bottom: 0.9rem; }
.faq-item summary { font-weight: 700; font-size: 1.1rem; padding: 1.05rem 1.3rem; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-family: var(--serif); font-size: 1.5rem; color: var(--green-deep); line-height: 1; }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item .faq-body { padding: 0 1.3rem 1.2rem; }

/* Forms */
.form-grid { display: grid; gap: 1.1rem; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .full { grid-column: 1 / -1; } }
label { font-weight: 600; display: block; margin-bottom: 0.3rem; }
.hint { font-weight: 400; color: var(--ink-soft); font-size: 0.92rem; }
input, select, textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  padding: 0.7rem 0.9rem; border: 1.5px solid #B9B2A2; border-radius: 8px; background: #fff;
  min-height: 44px;
}
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--focus); }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.4rem; margin: 0; }
legend { font-weight: 700; padding-inline: 0.4rem; }
.availability-table { width: 100%; border-collapse: collapse; }
.availability-table th, .availability-table td { padding: 0.45rem 0.5rem; text-align: left; border-bottom: 1px dashed var(--line); }
.availability-table input { min-height: 40px; }
.disclaimer { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.2rem; font-size: 0.95rem; }

/* Breadcrumbs */
.breadcrumbs { font-size: 0.95rem; padding-top: 1.4rem; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; padding: 0; margin: 0; }
.breadcrumbs li + li::before { content: "/"; margin-right: 0.4rem; color: var(--ink-soft); }
.breadcrumbs a { text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs [aria-current="page"] { color: var(--ink-soft); }

/* Page hero (interior) */
.page-head { padding-block: clamp(2rem, 5vw, 3.4rem) clamp(1.6rem, 4vw, 2.6rem); }
.page-head p.lede { font-size: 1.2rem; color: var(--ink-soft); max-width: 56ch; margin-bottom: 0; }
.page-head.centered { text-align: center; }
.page-head.centered p.lede { margin-inline: auto; }

/* CTA band */
.cta-band { background: var(--green-deep); }
.cta-band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.4rem; padding-block: 2.6rem; }
.cta-band h2 { color: #FFFDF7; margin: 0; font-size: clamp(1.5rem, 3vw, 2rem); }
.cta-band p { color: #EFF6E9; margin: 0.3rem 0 0; }
.cta-band .btn-primary { background: #FFFDF7; color: var(--green-text); }
.cta-band .btn-primary:hover { background: #fff; color: var(--green-deep); }
.cta-band .btn-outline { border-color: #F6F3EA; color: #FFFDF7; }
.cta-band .btn-outline:hover { background: rgba(255, 255, 250, 0.15); color: #fff; }

/* Footer */
.site-footer { background: var(--ink); color: #DDD6C6; margin-top: 0; }
.footer-grid { display: grid; gap: 2.4rem; padding-block: 3.2rem 1.6rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr 1fr; } }
.footer-brand p { color: #C9C2B1; font-size: 0.98rem; }
.footer-h { font-family: var(--serif); font-size: 1.15rem; color: #FFFDF7; margin-bottom: 0.7rem; }
.site-footer a { color: #E9E3D3; }
.site-footer a:hover { color: #fff; }
.footer-loc address { font-style: normal; margin-bottom: 0.5rem; }
.footer-loc p { margin-bottom: 0.5rem; }
.footer-hours { list-style: none; padding: 0; margin: 0; font-size: 0.9rem; color: #BDB5A3; }
.footer-hours li { display: flex; justify-content: space-between; align-items: baseline; gap: 0.5rem; max-width: 17rem; padding-block: 0.12rem; }
.footer-hours li span:first-child { flex: none; }
.footer-hours li span:last-child { white-space: nowrap; text-align: right; font-variant-numeric: tabular-nums; }
.footer-links ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.45rem; }
.footer-social { list-style: none; display: flex; gap: 1.1rem; padding: 0; margin: 1rem 0 0; }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.8rem; border-top: 1px solid #3E3A33; padding-block: 1.4rem; font-size: 0.92rem; }
.footer-legal p { margin: 0; color: #BDB5A3; }
.footer-legal ul { list-style: none; display: flex; gap: 1.6rem; margin: 0; padding: 0; }

/* Tables of location info */
.loc-meta { display: grid; gap: 0.4rem 1.6rem; margin-bottom: 1.4rem; }
.loc-meta a { font-weight: 600; }

/* Utility */
.mt-0 { margin-top: 0; }
.mb-2 { margin-bottom: 2rem; }
.note { font-size: 0.95rem; color: var(--ink-soft); }
.availability-callout { display: flex; align-items: center; gap: 0.6rem; background: var(--green-wash); color: var(--green-text); border: 1px solid var(--line); border-radius: 10px; padding: 0.8rem 1rem; font-size: 1.05rem; margin: 0 0 1.5rem; }
.availability-callout .icon { flex-shrink: 0; }
.divider-leaf { display: flex; align-items: center; gap: 1rem; color: var(--green-deep); margin-block: 0.4rem 1.4rem; }
.divider-leaf::before, .divider-leaf::after { content: ""; height: 1px; background: var(--line); flex: 1; }
