/* Medicine Stop — public site styles. Colors and fonts come from CSS variables set in Admin → Design. */
:root { --main:#14315A; --accent:#B8322A; --ground:#FFFFFF; --head-font:'Bricolage Grotesque'; --body-font:'Figtree'; --base-size:16px;
  --ink:#14315A; --muted:#4A5D78; --body:#33445E; --line:#DCE3EC; --soft:#EEF2F7; --soft2:#F6F8FB; --ok:#1F6B3A; --okbg:#E3F2E8; --warnbg:#FFF1D6; --warn:#5C3900; --badbg:#FBE9E7; --bad:#8F241D; }
* { box-sizing: border-box; }
html { font-size: var(--base-size); }
body { margin: 0; background: var(--ground); color: var(--main); font-family: var(--body-font), system-ui, sans-serif; line-height: 1.5; }
a { color: var(--main); }
a:hover { color: var(--accent); }
img { max-width: 100%; max-height: 80vh; height: auto; object-fit: contain; }
h1, h2, h3, .display { font-family: var(--head-font), var(--body-font), sans-serif; font-weight: 800; line-height: 1.08; margin: 0; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.3rem; }
p { margin: 0; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 56px 0; }
.muted { color: var(--muted); }
.lead { font-size: 1.15rem; color: var(--body); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 20px; }
.grid-sm { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(180px, 100%), 1fr)); gap: 16px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px; border-radius: 999px; border: 2px solid var(--main); background: var(--main); color: #fff; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
.btn:hover { color: #fff; filter: brightness(1.08); }
.btn.alt { background: transparent; color: var(--main); }
.btn.alt:hover { background: var(--soft); color: var(--main); }
.btn.accent { background: var(--accent); border-color: var(--accent); }
.btn.light { background: #fff; color: var(--main); border-color: #fff; }
.btn.ghost-light { background: transparent; color: #fff; border-color: #fff; }
.btn.block { width: 100%; }
.btn.sm { min-height: 40px; padding: 8px 14px; font-size: .9rem; }
.chip { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border-radius: 999px; background: var(--soft); text-decoration: none; font-weight: 600; border: 2px solid transparent; color: var(--main); font: inherit; cursor: pointer; }
.chip[aria-pressed="true"], .chip.on, .chip:has(input:checked) { background: var(--main); color: #fff; }
.chip input[type=radio], .chip input[type=checkbox] { accent-color: #fff; }

/* forms */
label.f { display: flex; flex-direction: column; gap: 6px; font-weight: 600; }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=date], input[type=number], input[type=url], input[type=search], select, textarea {
  font: inherit; font-size: 1rem; padding: 12px 14px; border: 1px solid #B9C5D6; border-radius: 10px; background: #fff; color: var(--ink); width: 100%; }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus, .btn:focus-visible, a:focus-visible, button:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 55%, transparent); outline-offset: 2px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.check input { width: 22px; height: 22px; flex: 0 0 auto; margin: 0; }
.hp { position: absolute; left: -9999px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 24px; }
.note { padding: 12px 14px; border-radius: 12px; background: var(--soft); }
.note.warn { background: var(--warnbg); color: var(--warn); }
.note.bad { background: var(--badbg); color: var(--bad); }
.note.ok { background: var(--okbg); color: var(--ok); }
.placeholder { background: var(--soft); color: var(--muted); display: flex; align-items: center; justify-content: center; text-align: center; font-size: .9rem; }

/* header */
.bar { background: var(--accent); color: #fff; font-weight: 600; font-size: .95rem; position: relative; }
.bar .wrap { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; align-items: center; padding-top: 8px; padding-bottom: 8px; padding-right: 56px; }
.bar a { color: #fff; }
.bar button { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border: 0; background: transparent; color: #fff; font-size: 20px; cursor: pointer; }
.site-header { border-bottom: 1px solid var(--line); background: #fff; position: sticky; top: 0; z-index: 20; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--head-font), sans-serif; font-weight: 800; font-size: 1.45rem; }
.brand .mark { width: 40px; height: 40px; border-radius: 10px; background: var(--main); display: flex; align-items: center; justify-content: center; }
.brand img { height: 44px; width: 44px; flex-shrink: 0; object-fit: contain; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-weight: 600; }
.nav a { padding: 10px 12px; text-decoration: none; border-radius: 8px; }
.nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 5px; }
.menu-btn { display: none; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 10px; background: #fff; align-items: center; justify-content: center; cursor: pointer; }
@media (max-width: 960px) {
  .menu-btn { display: inline-flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 8px 16px 16px; }
  .nav.open { display: flex; }
  .nav a { padding: 14px 8px; border-bottom: 1px solid var(--soft); }
  .nav .btn { margin-top: 8px; }
}

/* hero */
.hero { background: var(--main); color: #fff; }
.hero .wrap { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; padding-top: 64px; padding-bottom: 80px; }
.hero .copy { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.hero .eyebrow { font-size: .85rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .85; }
.hero p.lead { color: #E3E9F2; }
.promo { flex: 1 1 360px; min-width: 0; background: #fff; color: var(--main); border-radius: 20px; padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.promo img, .promo .placeholder { height: 180px; width: 100%; object-fit: cover; border-radius: 12px; }
.promo .tag { align-self: flex-start; font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; background: var(--badbg); color: var(--bad); padding: 5px 10px; border-radius: 6px; }
.promo .slide { display: none; flex-direction: column; gap: 12px; }
.promo .slide.on { display: flex; }
.round { width: 44px; height: 44px; border-radius: 50%; border: 1px solid #B9C5D6; background: #fff; cursor: pointer; font-size: 1.2rem; color: var(--main); }

.quick { margin-top: -40px; position: relative; }
.quick .inner { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 12px; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.quick a { padding: 16px 10px; border-radius: 14px; background: var(--soft2); text-align: center; font-weight: 700; text-decoration: none; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.quick a small { font-weight: 500; color: var(--muted); }
.trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; list-style: none; padding: 0; margin: 24px 0 0; font-weight: 600; color: var(--body); }

.store-card { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; background: #fff; }
.store-card .ph { height: 150px; }
.store-card img.ph { width: 100%; object-fit: cover; }
.store-card .body { padding: 20px; display: flex; flex-direction: column; gap: 8px; flex-grow: 1; }
.store-card .actions { display: flex; gap: 8px; margin-top: auto; padding-top: 10px; }
.store-card .actions a { flex: 1; text-align: center; padding: 12px; border-radius: 10px; font-weight: 700; text-decoration: none; border: 2px solid var(--main); }
.store-card .actions a.fill { background: var(--main); color: #fff; }

table.cmp { width: 100%; border-collapse: collapse; }
table.cmp th, table.cmp td { padding: 14px 16px; text-align: left; border-top: 1px solid var(--line); }
table.cmp thead th { background: var(--main); color: #fff; border: 0; }
table.cmp td.us { color: var(--ok); font-weight: 700; }
.scroll-x { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; }

.store-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.store-btn { display: inline-flex; align-items: center; gap: 10px; padding: 8px 18px; min-height: 54px; background: #0B0B0C; color: #fff; border-radius: 12px; text-decoration: none; }
.store-btn:hover { color: #fff; }
.store-btn small { display: block; font-size: .7rem; line-height: 1; }
.store-btn strong { display: block; font-size: 1.1rem; line-height: 1.1; }

.members { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 24px 44px; list-style: none; padding: 0; margin: 0; }
.members img { max-height: 70px; max-width: 170px; object-fit: contain; }

footer.site { background: color-mix(in srgb, var(--main) 80%, #000); color: #DCE3EC; }
footer.site .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; padding-top: 44px; padding-bottom: 44px; }
footer.site a { color: #fff; }
footer.site nav { display: flex; flex-wrap: wrap; gap: 18px; font-weight: 600; }

/* location page */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; }
dl.hours { display: grid; grid-template-columns: 1fr auto; row-gap: 8px; margin: 0; }
dl.hours dd { margin: 0; text-align: right; color: var(--body); }
.team-card .ph, .team-card img { aspect-ratio: 4 / 5; width: 100%; border-radius: 16px; object-fit: cover; }

/* accordion */
details.acc { border: 1px solid var(--line); border-radius: 14px; background: #fff; }
details.acc summary { list-style: none; cursor: pointer; padding: 16px 18px; font-weight: 700; font-size: 1.05rem; display: flex; justify-content: space-between; gap: 12px; min-height: 56px; align-items: center; }
details.acc summary::-webkit-details-marker { display: none; }
details.acc summary::after { content: '+'; font-size: 1.4rem; }
details.acc[open] summary::after { content: '−'; }
details.acc .acc-body { padding: 0 18px 18px; display: flex; flex-direction: column; gap: 10px; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: 6px; }
.steps span { height: 6px; border-radius: 3px; background: var(--line); }
.steps span.on { background: var(--main); }
.step { display: none; }
.step.on { display: flex; flex-direction: column; gap: 14px; }

/* mobile bottom action bar */
.actionbar { display: none; }
@media (max-width: 720px) {
  .wrap { padding: 0 16px; }
  .section { padding: 40px 0; }
  .hero .wrap { padding-top: 36px; padding-bottom: 64px; }
  .actionbar { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; padding: 10px 12px calc(12px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); z-index: 30; }
  .actionbar a { text-align: center; padding: 12px 4px; border-radius: 12px; background: var(--main); color: #fff; font-weight: 700; text-decoration: none; }
  .actionbar a.accent { background: var(--accent); }
  body { padding-bottom: 76px; }
  .quick .inner { grid-template-columns: repeat(3, 1fr); }
  .quick a { padding: 12px 4px; font-size: .9rem; }
  .quick a small { display: none; }
}

/* provider PDF-like preview */
.owners-grid, .team-grid { display:grid;grid-template-columns:repeat(auto-fill,minmax(0,min(210px,100%)));gap:24px; }
.team-card { width:100%;max-width:210px;min-width:0; }
.team-location-group { border-top:1px solid var(--line);padding-top:24px; }
.team-location-group[hidden] { display:none !important; }

.paper { background: #fff; border: 1px solid #C9D3E0; box-shadow: 0 6px 24px rgba(20,49,90,.1); font-family: Georgia, serif; color: #1A1F2B; font-size: 13px; }
