/* Prescription Pharmacy — Whitney, TX
   Palette pulled from the existing star/RX badge logo. */
:root {
  --ink: #0c2340;
  --ink-soft: #3b4b62;
  --blue: #134c8f;
  --blue-deep: #0d3466;
  --blue-tint: #e8eff8;
  --star: #e0441e;
  --star-deep: #c23514;
  --paper: #faf7f1;
  --card: #ffffff;
  --line: #e4ddd0;
  --ok: #1f7a4d;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(12, 35, 64, .06), 0 8px 24px rgba(12, 35, 64, .08);
  --wrap: 1180px;
  --font-display: "Zilla Slab", Georgia, serif;
  --font-body: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.4rem, 5.2vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); font-weight: 700; }
h3 { font-size: 1.45rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5em;
  font: 700 .78rem/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase;
  color: var(--star-deep); margin-bottom: 1rem;
}
.eyebrow::before { content: "★"; font-size: .95em; }
.lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 60ch; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: #fff; padding: 8px 12px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .85em 1.35em; border-radius: 999px; border: 2px solid transparent;
  font: 700 .98rem/1 var(--font-body); text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-star { background: var(--star); color: #fff; box-shadow: 0 6px 16px rgba(224, 68, 30, .28); }
.btn-star:hover { background: var(--star-deep); }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-deep); }
.btn-ghost { border-color: currentColor; color: var(--blue); background: transparent; }
.btn-ghost:hover { background: var(--blue-tint); }
.btn svg { width: 1.1em; height: 1.1em; }

/* Utility bar */
.topbar { background: var(--blue-deep); color: #dbe6f4; font-size: .88rem; }
.topbar .wrap { display: flex; flex-wrap: wrap; gap: 6px 24px; align-items: center; justify-content: space-between; padding: 8px 0; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { text-decoration: underline; }
.topbar-group { display: flex; flex-wrap: wrap; gap: 6px 22px; align-items: center; }
.topbar svg { width: 15px; height: 15px; vertical-align: -2px; margin-right: 6px; opacity: .85; }
.status { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; color: #fff; }
.status i { width: 8px; height: 8px; border-radius: 50%; background: #9aa8ba; }
.status.open i { background: #4ade80; box-shadow: 0 0 0 3px rgba(74, 222, 128, .25); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--paper); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 12px 0; }
.brand img { height: 58px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav > ul { display: flex; list-style: none; margin: 0; padding: 0; gap: 2px; }
.nav li { position: relative; }
.nav a, .nav .navbtn {
  display: block; padding: 10px 14px; border-radius: 10px; border: 0; background: none;
  color: var(--ink); font: 600 .97rem/1.2 var(--font-body); text-decoration: none; cursor: pointer;
}
.nav a:hover, .nav .navbtn:hover, .nav li:focus-within > .navbtn { background: var(--blue-tint); color: var(--blue); }
.nav a[aria-current="page"] { color: var(--blue); box-shadow: inset 0 -2px 0 var(--star); border-radius: 10px 10px 0 0; }
.navbtn::after { content: ""; display: inline-block; margin-left: 6px; border: 4px solid transparent; border-top-color: currentColor; vertical-align: -1px; }
.dropdown {
  position: absolute; top: 100%; left: 0; min-width: 220px; list-style: none; margin: 0; padding: 8px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: .15s ease;
}
.nav li:hover > .dropdown, .nav li:focus-within > .dropdown { opacity: 1; visibility: visible; transform: none; }
.dropdown a { font-weight: 500; }
.dropdown small { display: block; color: var(--ink-soft); font-weight: 400; font-size: .8rem; margin-top: 2px; }
.header-cta { display: flex; gap: 8px; align-items: center; }
.menu-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--ink); }
.menu-toggle svg { width: 28px; height: 28px; }

/* Hero */
.hero { position: relative; padding: 56px 0 72px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.02fr 1fr; gap: 56px; align-items: center; }
.hero h1 em { font-style: normal; color: var(--blue); position: relative; white-space: nowrap; }
.hero h1 em::after { content: ""; position: absolute; left: 0; right: 0; bottom: .06em; height: .14em; background: var(--star); opacity: .85; border-radius: 4px; z-index: -1; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 32px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.hero-facts div { font-size: .9rem; color: var(--ink-soft); }
.hero-facts strong { display: block; font: 700 1.6rem/1.1 var(--font-display); color: var(--ink); }
.hero-media { position: relative; }
.hero-media .photo { border-radius: 22px; overflow: hidden; aspect-ratio: 1024 / 731; box-shadow: var(--shadow); }
.hero-media .photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-badge { position: absolute; width: 132px; left: -38px; bottom: -30px; filter: drop-shadow(0 10px 18px rgba(12, 35, 64, .22)); transform: rotate(-8deg); }
.hero-card {
  position: absolute; right: -14px; bottom: -26px; background: #fff; border-radius: 14px; padding: 14px 18px;
  box-shadow: var(--shadow); font-size: .88rem; line-height: 1.4; max-width: 230px;
}
.hero-card strong { display: block; font-size: 1rem; color: var(--ink); }
.hero-card span { color: var(--ink-soft); }

/* Quick actions */
.actions { margin-top: -8px; position: relative; z-index: 2; }
.actions-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.action {
  display: flex; flex-direction: column; gap: 10px; padding: 20px; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--line); text-decoration: none; color: var(--ink);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.action:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.action .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--blue-tint); color: var(--blue); }
.action.hot .ico { background: #fde9e3; color: var(--star-deep); }
.action .ico svg { width: 22px; height: 22px; }
.action strong { font-size: 1.02rem; }
.action span { font-size: .86rem; color: var(--ink-soft); line-height: 1.45; }
.action .arrow { margin-top: auto; font-weight: 700; color: var(--blue); font-size: .88rem; }

/* Sections */
.section { padding: 96px 0; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 44px; }
.section-head p { max-width: 52ch; color: var(--ink-soft); margin: 0; }
.band-blue { background: var(--blue-deep); color: #fff; }
.band-blue .eyebrow { color: #ffb39f; }
.band-blue .lede, .band-blue p { color: #c9d7ea; }
.band-white { background: #fff; border-block: 1px solid var(--line); }

/* Offers */
.offers { display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; }
.offer { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 30px; border-radius: 20px; background: #fff; border: 1px solid var(--line); }
.offer .ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--blue-tint); color: var(--blue); margin-bottom: 12px; }
.offer .ico svg { width: 24px; height: 24px; }
.offer .tag { font-size: .76rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--star-deep); }
.offer h3 { margin: 4px 0 2px; font-size: 1.5rem; }
.offer p { color: var(--ink-soft); margin: 0 0 22px; font-weight: 600; }
.offer .btn { margin-top: auto; }
.offer.feature { background: var(--blue-deep); color: #fff; border: 0; position: relative; overflow: hidden; }
.offer.feature::after { content: "★"; position: absolute; right: -18px; bottom: -64px; font-size: 220px; line-height: 1; color: rgba(255, 255, 255, .06); pointer-events: none; }
.offer.feature .ico { background: rgba(255, 255, 255, .12); color: #fff; }
.offer.feature .tag { color: #ffb39f; }
.offer.feature h3 { font-size: 1.9rem; }
.offer.feature p { color: #c9d7ea; }

/* Service cards */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service {
  display: flex; flex-direction: column; background: var(--card); border-radius: 18px; overflow: hidden;
  border: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: .2s ease;
}
.service:hover { box-shadow: var(--shadow); transform: translateY(-4px); border-color: transparent; }
.service .pic { aspect-ratio: 16 / 10; overflow: hidden; }
.service .pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.service:hover .pic img { transform: scale(1.04); }
.service .body { padding: 26px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.service p { color: var(--ink-soft); font-size: .97rem; }
.service .more { margin-top: auto; font-weight: 700; color: var(--blue); }
.service .more::after { content: " →"; }

/* Split blocks */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split.flip > :first-child { order: 2; }
.team-photo { background: radial-gradient(60% 60% at 50% 55%, #fff 0%, var(--blue-tint) 100%); border-radius: 24px; padding: 28px 18px 0; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 28px 0; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.stat strong { display: block; font: 700 1.5rem/1.1 var(--font-display); color: var(--blue); }
.stat span { font-size: .85rem; color: var(--ink-soft); }
.rounded-photo { border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); }
.rounded-photo img { width: 100%; aspect-ratio: 4 / 3.2; object-fit: cover; }
.check-list { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 10px; }
.check-list li { padding-left: 32px; position: relative; }
.check-list li::before { content: ""; position: absolute; left: 0; top: .3em; width: 20px; height: 20px; border-radius: 50%; background: var(--star) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='white' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.5 10.5l3 3 6-7'/%3E%3C/svg%3E") center/100% no-repeat; }
.healthmart { display: inline-block; background: #fff; border-radius: 12px; padding: 10px 16px; border: 1px solid var(--line); }
.healthmart img { height: 54px; width: auto; }

/* Visit */
.visit-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 28px; align-items: stretch; }
.visit-card { background: #fff; color: var(--ink); border-radius: 20px; padding: 34px; }
.visit-card h3 { margin-bottom: .2em; }
.visit-row { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.visit-row:last-of-type { border-bottom: 0; }
.visit-row svg { flex: 0 0 22px; width: 22px; height: 22px; color: var(--star); margin-top: 3px; }
.visit-row a { color: var(--ink); font-weight: 600; text-decoration: none; }
.visit-row a:hover { color: var(--blue); }
.visit-row small { display: block; color: var(--ink-soft); font-size: .84rem; }
.hours { width: 100%; border-collapse: collapse; font-size: .95rem; }
.hours td { padding: 5px 0; }
.hours td:last-child { text-align: right; font-weight: 600; }
.hours tr.today td { color: var(--blue); font-weight: 700; }
.hours tr.today td:first-child::after { content: " · Today"; font-weight: 600; font-size: .8rem; color: var(--star-deep); }
.map { border-radius: 20px; overflow: hidden; min-height: 420px; background: #dfe6ef; }
.map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; filter: saturate(.85); }

/* Page hero (sub pages) */
.page-hero { position: relative; color: #fff; padding: 120px 0 64px; isolation: isolate; overflow: hidden; }
.page-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(13, 35, 70, .92) 0%, rgba(13, 52, 102, .72) 45%, rgba(13, 52, 102, .15) 100%); }
.page-hero .eyebrow { color: #ffb39f; }
.page-hero p { color: #d9e4f2; max-width: 56ch; font-size: 1.12rem; }
.crumbs { font-size: .85rem; color: #bcd0ea; margin-bottom: 18px; }
.crumbs a { color: #fff; }

/* Prose + side */
.content-grid { display: grid; grid-template-columns: 1fr 340px; gap: 56px; align-items: start; }
.prose h2 { font-size: 1.9rem; margin-top: 1.4em; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--ink-soft); }
.aside { position: sticky; top: 110px; display: grid; gap: 18px; }
.aside-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 26px; }
.aside-card.blue { background: var(--blue-deep); color: #fff; border: 0; }
.aside-card.blue p { color: #c9d7ea; }
.aside-card h3 { font-size: 1.25rem; }
.aside-card .btn { width: 100%; margin-top: 8px; }

.vaccine-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; list-style: none; padding: 0; margin: 24px 0 0; }
.vaccine-list li { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.vaccine-list strong { display: block; color: var(--ink); }
.vaccine-list span { font-size: .88rem; color: var(--ink-soft); }

.faq { display: grid; gap: 14px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 4px 22px; }
.faq summary { cursor: pointer; padding: 16px 0; font: 700 1.2rem/1.3 var(--font-display); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: "+"; color: var(--star); font-size: 1.5rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--ink-soft); }

.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: step; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 26px; position: relative; }
.steps li::before { content: counter(step, decimal-leading-zero); display: block; font: 700 1.9rem/1 var(--font-display); color: var(--star); margin-bottom: 14px; }
.steps h3 { font-size: 1.2rem; }
.steps p { color: var(--ink-soft); font-size: .95rem; margin: 0; }

/* Team */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.member { background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; }
.member img { width: 100%; aspect-ratio: 1; object-fit: cover; background: #eef0f3; }
.member .body { padding: 22px 24px 24px; }
.member h3 { margin: 0; font-size: 1.35rem; }
.member .role { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--star-deep); margin-bottom: 10px; }
.member p { color: var(--ink-soft); font-size: .95rem; margin: 0; }
.member details summary { cursor: pointer; font-weight: 700; color: var(--blue); margin-top: 12px; font-size: .92rem; list-style: none; }
.member details[open] summary { display: none; }
.member .clamp { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.member details[open] + .clamp, .member .clamp.open { display: block; -webkit-line-clamp: unset; }
.member.owner { grid-column: span 3; display: grid; grid-template-columns: 300px 1fr; }
.member.owner img { height: 100%; aspect-ratio: auto; }
.member.owner .body { padding: 36px; align-self: center; }

/* CTA band */
.cta-band { background: var(--star); color: #fff; border-radius: 24px; padding: 44px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; position: relative; overflow: hidden; }
.cta-band h2 { margin: 0; font-size: clamp(1.6rem, 3vw, 2.3rem); }
.cta-band p { margin: 6px 0 0; color: #ffe3da; }
.cta-band .btn-white { background: #fff; color: var(--star-deep); }
.cta-band .btn-outline { border-color: #fff; color: #fff; }

/* Footer */
.site-footer { background: var(--ink); color: #b8c4d4; padding: 72px 0 28px; font-size: .95rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.foot-brand img { width: 108px; margin-bottom: 18px; }
.site-footer h4 { color: #fff; font: 700 .8rem/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; margin-bottom: 18px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.site-footer a { color: #e3eaf3; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.social { display: inline-flex; align-items: center; gap: 10px; margin-top: 8px; }
.social svg { width: 22px; height: 22px; }
.foot-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .12); display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }

/* Responsive */
@media (max-width: 1080px) {
  .actions-grid { grid-template-columns: repeat(3, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .header-cta .btn-ghost { display: none; }
}
@media (max-width: 900px) {
  .menu-toggle { display: block; }
  .nav { position: fixed; inset: 0 0 0 auto; width: min(360px, 100%); background: var(--paper); flex-direction: column; align-items: stretch; padding: 84px 20px 24px; transform: translateX(100%); visibility: hidden; transition: transform .25s ease, visibility .25s; box-shadow: -20px 0 40px rgba(0, 0, 0, .12); overflow-y: auto; z-index: 60; }
  .nav.open { transform: none; visibility: visible; }
  .nav > ul { flex-direction: column; }
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 0 14px; background: none; }
  .navbtn::after { display: none; }
  .nav .navbtn { color: var(--ink-soft); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; pointer-events: none; padding-bottom: 4px; }
  .nav .close-nav { position: absolute; top: 18px; right: 18px; }
  .header-cta .btn-star span.long { display: none; }
  .hero .wrap, .split, .visit-grid, .content-grid { grid-template-columns: 1fr; gap: 40px; }
  .split.flip > :first-child { order: 0; }
  .hero-badge { width: 96px; left: -8px; bottom: -22px; }
  .hero-card { right: 10px; bottom: -22px; }
  .services-grid, .team-grid, .steps, .offers { grid-template-columns: 1fr 1fr; }
  .member.owner { grid-column: span 2; grid-template-columns: 1fr; }
  .member.owner img { aspect-ratio: 1; }
  .aside { position: static; }
  .section { padding: 72px 0; }
}
@media (min-width: 901px) { .close-nav { display: none; } }
@media (max-width: 620px) {
  body { font-size: 16px; }
  .brand img { height: 46px; }
  .actions-grid { grid-template-columns: 1fr 1fr; }
  .actions-grid .action:last-child { grid-column: span 2; }
  .services-grid, .team-grid, .steps, .vaccine-list, .stats, .offers { grid-template-columns: 1fr; }
  .member.owner { grid-column: auto; }
  .foot-grid { grid-template-columns: 1fr; }
  .topbar .hide-sm { display: none; }
  .cta-band { padding: 30px 24px; }
  .page-hero { padding: 84px 0 48px; }
  .visit-card { padding: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

.more-btn { background: none; border: 0; padding: 0; margin-top: 12px; font: 700 .92rem/1 var(--font-body); color: var(--blue); cursor: pointer; }
.more-btn:hover { text-decoration: underline; }

/* WordPress admin bar (logged-in editors only) */
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
