/* ============================================================
   Nova Pharmacy and Convenience - design system
   Inspired by Cunard Pharmacy (modern, calm, pharmacist-led)
   ============================================================ */

:root {
  --ink: #16302e;
  --pine: #0a847b;
  --pine-dark: #07746c;
  --pine-soft: #dff0ed;
  --sand: #f7f4ee;
  --sand-deep: #efe9dd;
  --amber: #8a5d28;
  --amber-deep: #7c5a28;
  --amber-soft: #f6ecdb;
  --white: #ffffff;
  --gray: #5a6b68;
  --gray-light: #667a76;
  --line: #e2e0d8;
  --shadow: 0 18px 50px -20px rgba(22, 48, 46, 0.25);
  --radius: 18px;
  --turquoise: #0ba197;
  --brand-ink: #0e3a36;
  --header-bg: rgba(255, 255, 255, 0.92);
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --font-display: "Fraunces", Georgia, serif;
}

:root[data-theme="dark"] {
  --ink: #d6eae6;
  --pine: #2ec4b8;
  --pine-dark: #4fd4c9;
  --pine-soft: #143d38;
  --sand: #16221f;
  --sand-deep: #1e2b28;
  --amber: #d9a95c;
  --amber-deep: #e8bc74;
  --amber-soft: #33291a;
  --white: #0f1a18;
  --gray: #9db5b0;
  --gray-light: #8aa39e;
  --line: #2a3835;
  --shadow: 0 18px 50px -20px rgba(0, 0, 0, 0.55);
  --turquoise: #2ec4b8;
  --brand-ink: #0a1412;
  --header-bg: rgba(15, 26, 24, 0.92);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

:focus-visible {
  outline: 3px solid var(--amber-deep);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--white); color: var(--pine-dark); font-weight: 600;
  padding: 10px 18px; border-radius: 10px; box-shadow: var(--shadow);
}
.skip-link:focus {
  left: 16px; top: 12px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }
a { color: var(--pine); text-decoration: none; }
a:hover { color: var(--pine-dark); }

.container { width: min(1120px, 92%); margin: 0 auto; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand { display: flex; align-items: center; gap: 12px; margin-left: -8px; }
.brand-name { font-family: var(--font-display); font-size: 1.55rem; font-weight: 600; color: var(--turquoise); line-height: 1.1; }

.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a { font-size: 0.92rem; font-weight: 500; color: var(--ink); letter-spacing: 0.02em; }
.nav-links a:hover { color: var(--pine); }
.nav-cta { display: flex; gap: 10px; margin-left: 14px; }
.nav-cta-mobile { display: none; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; }

@media (max-width: 1100px) {
  .nav-links { gap: 18px; }
  .nav-links a { font-size: 0.88rem; }
  .nav-cta .btn-sm { padding: 8px 14px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 13px 26px; border-radius: 999px;
  font-weight: 600; font-size: 0.95rem; border: 0; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  text-align: center;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--pine); color: var(--white); }
.btn-primary:hover { background: var(--pine-dark); color: var(--white); box-shadow: 0 12px 26px -12px rgba(20, 85, 90, 0.6); }
.btn-accent { background: var(--turquoise); color: var(--ink); }
.btn-accent:hover { background: #0ca297; color: var(--ink); }
.btn-ghost { background: transparent; color: var(--pine); border: 1.5px solid var(--pine); }
.btn-ghost:hover { background: var(--pine-soft); color: var(--pine-dark); }
.btn-sm { padding: 9px 18px; font-size: 0.85rem; }

/* ---------- Hero ---------- */
.hero { background: var(--sand); position: relative; overflow: hidden; }
.hero::after {
  content: ""; position: absolute; right: -140px; top: -140px; width: 460px; height: 460px;
  background: radial-gradient(circle, rgba(169, 123, 61, 0.16), transparent 65%);
  pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; padding: 84px 0 72px; }
.hero h1 {
  font-family: var(--font-display); font-weight: 500; font-size: clamp(2.3rem, 5vw, 3.6rem);
  line-height: 1.08; letter-spacing: -0.01em;
}
.hero h1 em { font-style: italic; color: var(--turquoise); }
.hero p.lede { margin: 22px 0 30px; font-size: 1.12rem; color: var(--gray); max-width: 52ch; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; background: var(--white);
  border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px;
  font-size: 0.84rem; font-weight: 500; color: var(--ink);
}
.chip svg { width: 16px; height: 16px; }

.hero-visual { position: relative; }
.hero-card {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 30px; border: 1px solid var(--line);
}
.hero-card .hc-label { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--amber-deep); }
.hero-card .hc-title { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; margin: 6px 0 4px; }
.hero-card .hc-line { color: var(--gray); font-size: 0.94rem; }
.hc-hours { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 14px; font-size: 0.88rem; color: var(--gray); display: grid; grid-template-columns: 1fr 1fr; gap: 4px 18px; }
.hc-hours b { color: var(--ink); font-weight: 600; }
.hc-hours-cols { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.hc-hours-cols .hc-hours { margin-top: 0; border-top: 0; padding-top: 0; font-size: 0.84rem; }
.hc-sub { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--amber-deep); margin-bottom: 8px; }
.open-status { margin-top: 12px; padding: 8px 12px; border-radius: 10px; font-size: 0.85rem; line-height: 1.4; }
.open-status.open { background: #e3efe7; color: var(--pine-dark); }
.open-status.closed { background: var(--sand); color: var(--gray); }
.open-status b { color: var(--ink); }
.hc-cta { margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; gap: 8px; }
.hc-cta-copy { margin: 0; font-size: 0.86rem; line-height: 1.45; color: var(--gray); text-align: center; }
.hc-cta-arrow { width: 18px; height: 18px; color: var(--amber-deep); }
.hc-cta .btn { width: 100%; justify-content: center; }
.hours-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 6px; }
.news-empty { color: var(--gray); }

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section-alt { background: var(--sand); }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head .kicker, .split-copy .kicker {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--pine);
}
.section-head h2 {
  font-family: var(--font-display); font-weight: 500; font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  line-height: 1.12; margin-top: 10px;
}
.section-head h2 em { font-style: italic; color: var(--turquoise); }
.section-head p { margin-top: 14px; color: var(--gray); font-size: 1.02rem; }

/* ---------- Service cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; transition: transform 0.18s ease, box-shadow 0.18s ease;
  display: flex; flex-direction: column; gap: 10px;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card .card-icon {
  width: 46px; height: 46px; border-radius: 13px; background: var(--pine-soft);
  display: flex; align-items: center; justify-content: center; margin-bottom: 6px;
}
.card .card-icon svg { width: 24px; height: 24px; stroke: var(--pine); }
.card h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.18rem; }
.card p { color: var(--gray); font-size: 0.93rem; flex: 1; }
.card .card-link { font-weight: 600; font-size: 0.9rem; color: var(--pine); }
.card .card-link:hover { color: var(--pine-dark); }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
.step { position: relative; padding: 30px 26px 26px; background: var(--white); border-radius: var(--radius); border: 1px solid var(--line); }
.step::before {
  counter-increment: step; content: "0" counter(step);
  font-family: var(--font-display); font-style: italic; font-size: 1.6rem; color: var(--amber);
}
.step h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.12rem; margin: 10px 0 6px; }
.step p { color: var(--gray); font-size: 0.93rem; }

/* ---------- Split / feature rows ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split-visual { border-radius: var(--radius); overflow: hidden; background: var(--pine-soft); min-height: 320px; display: flex; align-items: center; justify-content: center; }
.split-copy h2 { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.7rem, 3.2vw, 2.4rem); line-height: 1.14; }
.split-copy h1 em, .split-copy h2 em { font-style: italic; color: var(--turquoise); }
.split-copy p { margin: 16px 0 8px; color: var(--gray); }
.tick-list { list-style: none; margin: 18px 0 26px; display: grid; gap: 10px; }
.tick-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.97rem; }
.tick-list svg { width: 19px; height: 19px; flex: none; margin-top: 3px; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--pine) 0%, var(--pine-dark) 100%);
  color: var(--white); border-radius: var(--radius); padding: 48px 44px;
  display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
}
.cta-band h2 { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.5rem, 3vw, 2.1rem); }
.cta-band h2 em { font-style: italic; color: #e3bd8d; }
.cta-band p { color: #d6eae6; margin-top: 8px; max-width: 52ch; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin: 0 auto; }
.faq-item { border: 1px solid var(--line); border-radius: 14px; margin-bottom: 12px; overflow: hidden; background: var(--white); }
.faq-q {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  padding: 18px 22px; font-family: var(--font-body); font-weight: 600; font-size: 1rem; color: var(--ink);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-q::after { content: "+"; font-size: 1.4rem; font-weight: 400; color: var(--pine); transition: transform 0.2s; }
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.25s ease; }
.faq-a-inner { padding: 0 22px 20px; color: var(--gray); font-size: 0.95rem; }

/* ---------- Forms ---------- */
.form-page { background: var(--sand); padding: 64px 0 84px; }
.form-shell { display: grid; grid-template-columns: 1.6fr 1fr; gap: 34px; align-items: start; }
.form-card { background: var(--white); border-radius: var(--radius); border: 1px solid var(--line); padding: 34px; box-shadow: var(--shadow); }
.form-card h1 { font-family: var(--font-display); font-weight: 500; font-size: 2rem; }
.form-card h1 em { font-style: italic; color: var(--turquoise); }
.form-card .form-intro { color: var(--gray); margin: 10px 0 26px; font-size: 0.98rem; }

.fieldset { border: 0; margin-bottom: 28px; }
.fieldset-legend {
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--pine); margin-bottom: 16px; display: block;
}
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }

.field { margin-bottom: 16px; }
.field label { display: block; font-size: 0.88rem; font-weight: 600; margin-bottom: 6px; }
.field label .req { color: #c2402a; }
.field input[type="text"], .field input[type="tel"], .field input[type="email"], .field input[type="date"], .field input[type="password"], .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px;
  font-family: var(--font-body); font-size: 0.95rem; color: var(--ink); background: var(--white);
  transition: border-color 0.15s;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--pine); }
.field textarea { resize: vertical; min-height: 90px; }
.field .hint { font-size: 0.8rem; color: var(--gray-light); margin-top: 5px; }
.field .err { display: none; font-size: 0.8rem; color: #b23c28; margin-top: 5px; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #c2402a; }
.field.invalid .err { display: block; }

.check-field { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 16px; flex-wrap: wrap; }
.check-field input[type="checkbox"] { width: 19px; height: 19px; margin-top: 3px; accent-color: var(--pine); flex: none; }
.check-field label { font-size: 0.9rem; color: var(--ink); font-weight: 400; flex: 1; min-width: 0; cursor: pointer; line-height: 1.5; }
.check-field.invalid label { color: #b23c28; }
.check-field .err { display: none; width: 100%; font-size: 0.8rem; color: #b23c28; margin-top: 5px; padding-left: 31px; }
.check-field.invalid .err { display: block; }

.med-row { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; margin-bottom: 14px; align-items: start; }
.med-row.template { display: none !important; }
.med-row .rm { background: none; border: 0; color: var(--gray-light); cursor: pointer; font-size: 1.3rem; line-height: 1; grid-column: 2; grid-row: 1; padding-top: 10px; }
.med-row .rm:hover { color: #b23c28; }
.med-row input[type="text"] {
  width: 100%; min-width: 0; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px;
  font-family: var(--font-body); font-size: 0.95rem; color: var(--ink); background: var(--white);
  transition: border-color 0.15s; grid-column: 1;
}
.med-row input[type="text"]:focus { border-color: var(--pine); outline: none; }
.med-row input[type="text"]::placeholder { color: var(--gray-light); opacity: 1; }

.form-side { position: sticky; top: 96px; display: grid; gap: 18px; }
.side-card { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 24px; }
.side-card h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; margin-bottom: 10px; }
.side-card ul { list-style: none; display: grid; gap: 8px; }
.side-card ul li { font-size: 0.9rem; color: var(--gray); padding-left: 20px; position: relative; }
.side-card ul li::before { content: "✓"; position: absolute; left: 0; color: var(--pine); font-weight: 700; }
.side-note { background: var(--amber-soft); border: 1px solid #e6cfa8; color: #75552a; font-size: 0.88rem; }

.form-success, .form-error { display: none; border-radius: 12px; padding: 16px 18px; margin-bottom: 22px; font-size: 0.95rem; }
.form-success { background: var(--pine-soft); color: var(--pine-dark); border: 1px solid #c2ddd8; }
.form-error { background: #fdeae5; color: #8f2f1e; border: 1px solid #f0c8bd; }
.form-success.show, .form-error.show { display: block; }
.form-success.show { display: flex; align-items: flex-start; gap: 14px; scroll-margin-block: 28px; }
.form-success:focus-visible { outline: 3px solid var(--turquoise); outline-offset: 3px; }
.success-icon { display: grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 50%; background: var(--pine); color: var(--white); font-size: 1.1rem; font-weight: 700; line-height: 1; }
.success-content { min-width: 0; }
.success-title { margin: 0 0 6px; font-family: var(--font-display); font-size: 1.25rem; color: var(--pine-dark); }
.success-message, .success-reference { margin: 0; }
.success-reference { margin-top: 8px; font-size: .82rem; font-weight: 700; letter-spacing: .04em; }
.success-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }

/* ---------- Contact / hours ---------- */
.hours-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.hours-table td { padding: 9px 4px; border-bottom: 1px solid var(--line); }
.hours-table td:last-child { text-align: right; font-weight: 600; }
.contact-info { display: grid; gap: 14px; margin-top: 18px; }
.contact-info a { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.contact-info svg { width: 18px; height: 18px; }

.map-frame { border: 0; width: 100%; height: 340px; border-radius: var(--radius); }

/* ---------- Admin ---------- */
.admin-body { background: var(--sand); }
.admin-topbar { background: var(--brand-ink); color: #d6eae6; padding: 18px 0; }
.admin-topbar .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.admin-topbar h1 { font-family: var(--font-display); font-weight: 500; font-size: 1.3rem; }
.admin-controls { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 20px; }
.admin-controls select, .admin-controls button, .admin-controls input[type="text"], .admin-controls input[type="search"] { padding: 10px 16px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--white); font-size: 0.9rem; font-family: var(--font-body); cursor: pointer; }
.admin-topbar { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 20px; }
.tabbar { display: flex; gap: 8px; flex-wrap: wrap; }
.tab-btn { padding: 9px 18px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--white); font-family: var(--font-body); font-size: 0.9rem; font-weight: 600; cursor: pointer; color: var(--gray); }
.tab-btn:hover { border-color: var(--pine); color: var(--pine); }
.tab-btn.active { background: var(--pine); border-color: var(--pine); color: var(--white); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.pass-wrap { position: relative; }
.pass-wrap input { padding-right: 70px; }
.pass-toggle { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: var(--gray); font-size: 0.8rem; font-family: var(--font-body); cursor: pointer; padding: 4px 6px; }
.admin-login { max-width: 400px; margin: 80px auto; background: var(--white); border-radius: var(--radius); border: 1px solid var(--line); padding: 32px; box-shadow: var(--shadow); }
.admin-login h1 { font-family: var(--font-display); font-weight: 500; font-size: 1.4rem; margin-bottom: 18px; }
.stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-bottom: 22px; }
.stat-card { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.stat-card .n { font-family: var(--font-display); font-size: 1.7rem; color: var(--pine); }
.stat-card .l { font-size: 0.8rem; color: var(--gray); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
.sub-card { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px; margin-bottom: 14px; }
.sub-card .sub-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.sub-card .sub-type { font-weight: 700; color: var(--pine); }
.sub-card .sub-meta { font-size: 0.82rem; color: var(--gray); }
.sub-card pre { background: var(--sand); border-radius: 10px; padding: 14px; font-size: 0.85rem; white-space: pre-wrap; overflow-wrap: break-word; margin: 10px 0; color: var(--ink); }
.status-pill { padding: 4px 12px; border-radius: 999px; font-size: 0.75rem; font-weight: 700; }
.status-new { background: var(--amber-soft); color: #8c6a2c; }
.status-contacted { background: #e3edf7; color: #2b5b8f; }
.status-done { background: var(--pine-soft); color: var(--pine-dark); }
.printed-note { color: var(--amber-deep); font-weight: 700; }

/* ---------- Footer ---------- */
.site-footer { background: var(--brand-ink); color: #d6eae6; padding: 56px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.site-footer h4 { color: var(--white); font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; margin-bottom: 14px; }
.site-footer ul { list-style: none; display: grid; gap: 8px; }
.site-footer a { color: #d6eae6; font-size: 0.92rem; }
.site-footer a:hover { color: #7cd9cf; }
.site-footer p { font-size: 0.9rem; color: #a5c9c5; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.12); padding: 18px 0; font-size: 0.82rem; color: #8bb4ae; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; }
.theme-toggle { display: inline-flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, 0.08); color: #8bb4ae; border: 1px solid rgba(255, 255, 255, 0.22); border-radius: 999px; padding: 7px 16px; font-size: 0.8rem; font-family: var(--font-body); cursor: pointer; transition: background 0.15s ease, color 0.15s ease; }
.theme-toggle:hover { background: rgba(255, 255, 255, 0.16); color: #d6eae6; }

/* ---------- Small utility ---------- */
.center { text-align: center; }
.mt-32 { margin-top: 32px; }
.emergency-note { background: #3d2a2a; color: #f3d9d4; border-radius: 12px; padding: 14px 18px; font-size: 0.88rem; margin-top: 28px; }
.emergency-note b { color: #ffb3a6; }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .cards, .steps { grid-template-columns: 1fr 1fr; }
  .hero-grid, .split, .form-shell { grid-template-columns: 1fr; }
  .form-side { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1024px) {
  .nav-links {
    display: none; position: absolute; top: 74px; left: 0; right: 0; background: var(--white);
    flex-direction: column; padding: 20px 6% 26px; gap: 24px; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow); align-items: flex-start;
  }
  .nav-links.open { display: flex; }
  .nav-cta { display: none; }
  .nav-cta-mobile { display: flex; flex-direction: column; gap: 12px; align-self: stretch; margin-top: 12px; }
  .nav-cta-mobile .btn { display: block; width: 100%; }
  .nav-toggle { display: block; }
}
@media (max-width: 640px) {
  .cards, .steps { grid-template-columns: 1fr; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .hero-grid { padding: 56px 0 48px; }
  .section { padding: 60px 0; }
  .cta-band { padding: 34px 26px; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Alert / notice boxes ---------- */
.notice { border-radius: 12px; padding: 16px 18px; margin: 16px 0; font-size: 0.93rem; line-height: 1.55; }
.notice strong { display: block; margin-bottom: 4px; }
.notice-info { background: var(--pine-soft); border: 1px solid #c2ddd8; color: var(--pine-dark); }
.notice-warn { background: var(--amber-soft); border: 1px solid #e8d2ac; color: #75552a; }
.notice a { font-weight: 600; }

/* ---------- Insurance upload ---------- */
.upload-row { display: flex; gap: 14px; flex-wrap: wrap; }
.upload-box {
  flex: 1; min-width: 200px; border: 1.5px dashed var(--gray-light); border-radius: 12px;
  padding: 14px; text-align: center; cursor: pointer; background: var(--sand); transition: border-color .15s;
}
.upload-box:hover { border-color: var(--pine); }
.upload-box.has-file { border-style: solid; border-color: var(--pine); background: var(--pine-soft); }
.upload-box input[type="file"] { display: none; }
.upload-box .up-label { font-size: .88rem; font-weight: 600; color: var(--ink); }
.upload-box .up-hint { font-size: .78rem; color: var(--gray-light); margin-top: 4px; }
.upload-box .up-file { font-size: .8rem; color: var(--pine-dark); margin-top: 6px; display: none; word-break: break-all; }
.upload-box.has-file .up-file { display: block; }

.radio-field { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; margin-bottom: 12px; }
.radio-field .err { display: none; font-size: 0.8rem; color: #b23c28; margin-top: 5px; }
.radio-field.invalid .err { display: block; }
.radio-field.invalid .radio-option span { color: #b23c28; }
.radio-field input[type="radio"] { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--pine); }
.radio-field label { font-size: .92rem; }
.radio-field label b { color: var(--ink); }
.radio-field .radio-option { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.radio-field .radio-option span { line-height: 1.4; }
.insurance-fields { border-left: 3px solid var(--amber); padding-left: 14px; margin: 4px 0 14px; }

/* ---------- Front store ---------- */
.store-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.store-cat { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.store-cat h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; margin-bottom: 6px; }
.store-cat p { color: var(--gray); font-size: .9rem; margin-bottom: 16px; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { background: var(--sand); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; font-size: .8rem; font-weight: 500; color: var(--ink); }
.photo-slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 20px; }
.photo-slot {
  aspect-ratio: 4/3; border: 1.5px dashed var(--line); border-radius: 14px; background: var(--sand);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  color: var(--gray-light); font-size: .8rem; text-align: center; padding: 10px;
}
.photo-slot svg { width: 30px; height: 30px; stroke: var(--gray-light); }
.photo-slot img { width: 100%; height: 100%; object-fit: cover; border-radius: 14px; }

/* ---------- News / photos pages ---------- */
.news-item { display: grid; grid-template-columns: 130px 1fr; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--line); align-items: start; }
.news-date { font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--amber-deep); }
.news-item h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; margin: 4px 0 6px; }
.news-item p { color: var(--gray); font-size: .92rem; }
.photos-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.photo-tile { aspect-ratio: 4/3; border-radius: 14px; overflow: hidden; background: var(--sand); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; color: var(--gray-light); font-size: .8rem; text-align: center; padding: 8px; }
.photo-tile img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Students page ---------- */
.article { max-width: 780px; margin: 0 auto; }
.article h2 { font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; margin: 34px 0 12px; }
.article h2 em { font-style: italic; color: var(--turquoise); }
.article p, .article li { color: var(--gray); font-size: .98rem; }
.article ul { padding-left: 22px; margin: 10px 0; display: grid; gap: 8px; }
.article .notice { margin: 22px 0; }
.info-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 24px 0; }
.info-card { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.info-card h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; margin-bottom: 8px; }
.info-card h3 .step-num { color: var(--turquoise); }
.info-cards--4 { grid-template-columns: repeat(2, 1fr); }
.tick-notes li > div { min-width: 0; }
.tick-notes b { display: block; margin-bottom: 2px; }
.tick-notes span { color: var(--gray); font-size: 0.92rem; line-height: 1.55; }
.info-card p { font-size: .9rem; color: var(--gray); }
.med-warn { display: none; }
.photo-placeholder { margin: 0; color: var(--gray-light); font-size: .82rem; }
.news-list { display: grid; gap: 4px; }
.news-body p { line-height: 1.55; }

@media (max-width: 920px) {
  .store-grid, .photos-grid { grid-template-columns: 1fr 1fr; }
  .info-cards, .info-cards--4 { grid-template-columns: 1fr; }
  .news-item { grid-template-columns: 1fr; gap: 6px; }
  .need-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .store-grid, .photos-grid, .photo-slots { grid-template-columns: 1fr; }
  .need-grid { grid-template-columns: 1fr; }
}

/* ---------- "What brings you in?" need cards (front page) ---------- */
.need-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; max-width: 1000px; margin: 0 auto; }
.need-card {
  background: var(--white); border: 1.5px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px 22px; display: flex; flex-direction: column; gap: 8px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.need-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--pine); }
.need-card:focus-visible { outline: 3px solid var(--amber-deep); outline-offset: 2px; border-radius: var(--radius); }
.need-icon {
  width: 46px; height: 46px; border-radius: 13px; background: var(--pine-soft);
  display: flex; align-items: center; justify-content: center; margin-bottom: 6px;
}
.need-icon svg { width: 24px; height: 24px; stroke: var(--pine); }
.need-title { font-family: var(--font-display); font-weight: 600; font-size: 1.22rem; color: var(--ink); line-height: 1.2; }
.need-desc { color: var(--gray); font-size: 0.92rem; flex: 1; }
.need-cta { font-weight: 600; font-size: 0.9rem; color: var(--pine); }
.need-card:hover .need-cta { color: var(--pine-dark); }
.need-help { text-align: center; margin-top: 22px; font-size: 0.95rem; color: var(--gray); }
.need-help a { font-weight: 600; }

/* ---------- Medication reminder tool (/remind + /r) ---------- */
.field input[type="time"], .field input[type="number"] {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px;
  font-family: var(--font-body); font-size: 0.95rem; color: var(--ink); background: var(--white);
  transition: border-color 0.15s;
}
.field input[type="time"]:focus, .field input[type="number"]:focus { border-color: var(--pine); }

.time-row { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; }
.time-row .t-input { width: 170px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; font-family: var(--font-body); font-size: 0.95rem; color: var(--ink); }
.time-row .t-input:focus { border-color: var(--pine); outline: none; }
.rm-time { background: none; border: 0; color: var(--gray-light); cursor: pointer; font-size: 1.3rem; line-height: 1; padding: 4px; }
.rm-time:hover { color: #b23c28; }

.sub-fields { display: none; margin-top: 14px; }
.days-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.day-pill {
  display: inline-flex; align-items: center; gap: 7px; border: 1.5px solid var(--line);
  border-radius: 999px; padding: 8px 14px; font-size: 0.88rem; cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.day-pill input { accent-color: var(--pine); margin: 0; width: 15px; height: 15px; cursor: pointer; }
.day-pill.on { border-color: var(--pine); background: var(--pine-soft); }
.inline-num { display: flex; align-items: center; gap: 10px; font-size: 0.92rem; color: var(--gray); }
.inline-num input { width: 96px; }

.btn:disabled { opacity: 0.45; cursor: default; transform: none; box-shadow: none; }
.btn:disabled:hover { transform: none; background: var(--pine); }

.slip-card { text-align: center; }
.qr-img svg { width: 82%; height: auto; margin: 6px auto 2px; display: block; }
.slip-summary b { display: block; font-size: 1.06rem; line-height: 1.35; }
.slip-summary span { display: block; font-size: 0.88rem; color: var(--gray); margin-top: 3px; }
.slip-brand {
  font-family: var(--font-display); font-weight: 600; color: var(--turquoise);
  margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 1rem;
}
.how-list { list-style: decimal; padding-left: 20px; display: grid; gap: 8px; }
.how-list li { font-size: 0.9rem; color: var(--gray); }

.r-wrap { max-width: 560px; margin: 0 auto; padding: 30px 0 40px; }
.r-card h1 { text-align: center; }
.r-card .form-intro { text-align: center; }
.r-summary span { font-size: 0.95rem; }
.r-actions { display: grid; gap: 12px; margin-top: 22px; }
.r-main-btn { width: 100%; font-size: 1.05rem; padding: 16px 26px; }
.r-note { text-align: center; font-size: 0.84rem; color: var(--gray-light); margin-top: 18px; }
.r-brandline { text-align: center; font-size: 0.85rem; color: var(--gray-light); margin-top: 26px; }

@media print {
  body { background: #fff; }
  .no-print, .site-header, .site-footer { display: none !important; }
  .form-page { background: #fff; padding: 0; }
  .form-shell { display: block; }
  .side-card:not(.slip-card) { display: none; }
  .slip-card { border: 0; box-shadow: none; padding: 24px 0; }
  .qr-img svg { width: 66%; }
}

/* ---------- Reminder tool: presets & slip extras ---------- */
.preset-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 26px; }
.preset-label { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gray-light); margin-right: 2px; }
.preset-btn {
  border: 1.5px solid var(--line); background: var(--white); color: var(--ink);
  border-radius: 999px; padding: 8px 14px; font-size: 0.85rem; font-family: var(--font-body);
  font-weight: 600; cursor: pointer; transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.preset-btn:hover { border-color: var(--pine); background: var(--pine-soft); color: var(--pine-dark); }
.slip-hint { font-size: 0.9rem; color: var(--amber-deep); font-weight: 600; margin-top: 14px; }
.slip-phone { font-size: 0.8rem; color: var(--gray); margin-top: 8px; }
.count-note { font-size: 0.8rem; color: var(--gray-light); margin-top: 8px; }

/* ---------- Global: keep [hidden] hidden (author display rules can override UA) ---------- */
[hidden] { display: none !important; }

/* ---------- Dark mode polish ---------- */
:root[data-theme="dark"] .open-status.open { background: #14322c; color: #4fd4c9; }
:root[data-theme="dark"] .form-error { background: #3a211c; color: #f3b3a5; border-color: #5a322a; }
:root[data-theme="dark"] .side-note { border-color: #4a3b20; color: #d9b478; }
:root[data-theme="dark"] .form-success { border-color: #1e4a44; }
:root[data-theme="dark"] .form-success .success-title { color: var(--turquoise); }
:root[data-theme="dark"] .hero::after { opacity: 0.5; }
:root[data-theme="dark"] .status-new { color: #d9b478; }
:root[data-theme="dark"] .status-contacted { background: #16293c; color: #9cc4ee; }
