/* City RX Pharmacy website styles. One file for every page. Phone first.
   Look: navy, teal and cream, taken from the pharmacist's photos; serif headings.
   After changing this file, raise VERSION in tools/site-facts.mjs and run .\tools\build.ps1 */
:root {
  --navy: #0b1a33; --navy-2: #13294b; --teal: #0f766e; --teal-bright: #45d0c3; --teal-soft: #dff4f1;
  --cream: #f7f3ec; --ink: #16233a; --muted: #51607a; --line: #dde3ec; --white: #fff; --warn: #fff3b0;
  --radius: 14px; --shadow: 0 1px 2px rgba(11, 26, 51, .06), 0 8px 24px rgba(11, 26, 51, .07);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: Georgia, "Iowan Old Style", "Palatino Linotype", "Times New Roman", serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 17px/1.6 var(--font); color: var(--ink); background: var(--white); overflow-wrap: break-word; padding-bottom: 76px; }
img { max-width: 100%; height: auto; display: block; border-radius: var(--radius); }
a { color: var(--teal); }
a:focus-visible, button:focus-visible { outline: 3px solid #f2a900; outline-offset: 2px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.18; margin: 0 0 .5em; color: var(--navy); letter-spacing: -.005em; }
h1 { font-size: clamp(1.9rem, 6.4vw, 3rem); }
h2 { font-size: clamp(1.45rem, 4.6vw, 2rem); margin-top: 1.4em; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 18px; }
.small { font-size: .9rem; color: var(--muted); }
.skip { position: absolute; left: -999px; top: 0; background: var(--white); padding: 8px 12px; z-index: 50; }
.skip:focus { left: 8px; top: 8px; }
.ic { flex: none; }
a[href^="tel:"] { white-space: nowrap; }
.btn[href^="tel:"] { white-space: normal; }

/* draft marks: shown only while a fact is unconfirmed */
.draft { margin: 0; padding: 6px 16px; background: var(--warn); font-size: .85rem; text-align: center; }
mark.tbc { background: var(--warn); color: var(--ink); padding: 0 3px; border-radius: 3px; outline: 1px dashed #b48a00; }

/* header */
header.site { background: var(--white); border-bottom: 1px solid var(--line); }
.topbar { display: none; background: var(--navy); color: #d7deea; font-size: .86rem; }
.topbar .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 26px; padding-top: 8px; padding-bottom: 8px; }
.topbar span, .topbar a { display: inline-flex; align-items: center; gap: 6px; }
.topbar svg { width: 15px; height: 15px; color: var(--teal-bright); }
.topbar a { color: var(--white); font-weight: 700; text-decoration: none; margin-left: auto; }
.bar { display: flex; align-items: center; gap: 10px; padding-top: 12px; padding-bottom: 12px; }
.logo { display: flex; align-items: center; gap: 11px; min-width: 0; text-decoration: none; color: var(--navy); font-family: var(--serif); font-weight: 700; font-size: 1.28rem; line-height: 1.1; margin-right: auto; }
.logo small { display: block; font-family: var(--font); font-weight: 600; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--teal); margin-top: 4px; }
.rx { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 11px; background: var(--navy); color: var(--teal-bright); font-family: var(--serif); font-style: italic; font-weight: 700; font-size: 1.25rem; box-shadow: inset 0 -3px 0 var(--teal); }
.lang, .menu { font: inherit; font-size: .92rem; font-weight: 600; padding: 9px 14px; min-height: 44px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); color: var(--navy); text-decoration: none; display: inline-flex; align-items: center; cursor: pointer; }
.lang:hover, .menu:hover { border-color: var(--teal); }
#nav { display: flex; flex-wrap: wrap; gap: 4px 6px; padding-bottom: 10px; }
#nav a { padding: 10px 14px; border-radius: 8px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: .98rem; }
#nav a[aria-current="page"] { color: var(--teal); box-shadow: inset 0 -3px 0 var(--teal); border-radius: 0; }
#nav a:hover { background: var(--teal-soft); }
.js #nav { display: none; flex-direction: column; }
.js #nav.open { display: flex; }

/* buttons */
.btns { display: flex; flex-wrap: wrap; gap: 10px; margin: 1.2em 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 12px 22px; border-radius: 999px; font-weight: 700; font-size: 1.05rem; text-decoration: none; border: 2px solid var(--teal); text-align: center; transition: background .15s, border-color .15s; }
.btn svg { flex: none; }
.btn-call { background: var(--teal); color: var(--white); }
.btn-call:hover { background: #0b5d57; border-color: #0b5d57; }
.btn-line { background: var(--white); color: var(--navy); border-color: var(--navy); }
.btn-line:hover { background: var(--teal-soft); }

/* home hero: navy panel, white visit card */
.hero { background: var(--navy); background-image: radial-gradient(900px 420px at 110% -10%, rgba(69, 208, 195, .22), transparent 60%), linear-gradient(160deg, var(--navy), var(--navy-2)); color: #e7ecf4; padding: 34px 0 30px; }
.hero h1 { color: var(--white); }
.hero .lead { color: #d7deea; }
.hero mark.tbc { color: var(--ink); }
.hero-grid { display: grid; gap: 26px; }
.eyebrow, .kicker { text-transform: uppercase; letter-spacing: .14em; font-size: .76rem; font-weight: 700; margin: 0 0 .9em; }
.eyebrow { color: var(--teal-bright); }
.eyebrow::after { content: ""; display: block; width: 56px; height: 3px; background: var(--teal-bright); margin-top: 12px; border-radius: 2px; }
.kicker { color: var(--teal); margin-bottom: .5em; }
.kicker + h2, .kicker + h1 { margin-top: 0; }
.lead { font-size: 1.14rem; max-width: 40em; }
.hero .btn-call, .band .btn-call { background: var(--teal-bright); border-color: var(--teal-bright); color: var(--navy); }
.hero .btn-call:hover, .band .btn-call:hover { background: #7be3d8; border-color: #7be3d8; }
.btn-line.on-dark { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, .7); }
.btn-line.on-dark:hover { background: rgba(255, 255, 255, .12); }
.visit { background: var(--white); color: var(--ink); border-radius: var(--radius); padding: 20px 20px 16px; box-shadow: 0 18px 40px rgba(0, 0, 0, .28); border-top: 4px solid var(--teal-bright); }
.visit .hours caption { font-size: 1.15rem; }
.visit-addr { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0 0; font-size: .97rem; color: var(--muted); }
.visit-addr svg { color: var(--teal); margin-top: 3px; flex: none; }
.status { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 12px; padding: 6px 12px; border-radius: 999px; font-size: .9rem; font-weight: 700; background: #eef1f6; color: var(--muted); }
.status[hidden] { display: none; }
.status::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #9aa6b8; flex: none; }
.status.is-open { background: var(--teal-soft); color: #0b5d57; }
.status.is-open::before { background: #12a594; box-shadow: 0 0 0 4px rgba(18, 165, 148, .2); }

/* trust strip under the hero */
.trust { background: var(--cream); border-bottom: 1px solid #ebe4d6; }
.trust ul { list-style: none; margin: 0 auto; display: grid; gap: 12px; padding-top: 18px; padding-bottom: 18px; }
.trust li { display: flex; align-items: center; gap: 12px; font-weight: 600; color: var(--navy); font-size: .98rem; }
.trust .ic { color: var(--teal); width: 26px; height: 26px; }

/* sections */
.sec { padding-top: 34px; padding-bottom: 34px; }
.sec.top { padding-top: 34px; }
.sec.top > h1::before { content: ""; display: block; width: 56px; height: 3px; background: var(--teal); margin-bottom: 16px; border-radius: 2px; }
.sec > h2:first-child, .sec > .wrap > h2:first-child, .split h2:first-child { margin-top: 0; }
.tint { background: var(--cream); }
.cards { display: grid; gap: 14px; grid-template-columns: 1fr; margin-top: 1.2em; }
.card { display: block; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); background: var(--white); box-shadow: var(--shadow); transition: transform .15s, border-color .15s; }
.card:hover { border-color: var(--teal); transform: translateY(-2px); }
.card .ic, .svc article .ic { display: block; width: 46px; height: 46px; padding: 9px; border-radius: 12px; background: var(--teal-soft); color: var(--teal); margin-bottom: 14px; }
.card h3 { margin-bottom: .3em; color: var(--navy); }
.card p { margin: 0; color: var(--muted); font-size: .97rem; }
.svc-grid { display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); margin: 1.2em 0; }
.svc-card { display: flex; flex-direction: column; gap: 10px; padding: 16px 14px; background: var(--white); border: 1px solid #ebe4d6; border-radius: var(--radius); text-decoration: none; color: var(--navy); font-weight: 700; font-size: .98rem; line-height: 1.3; }
.svc-card .ic { color: var(--teal); }
.svc-card:hover { border-color: var(--teal); }
.more { font-weight: 700; }
.split { display: grid; gap: 26px; grid-template-columns: 1fr; }
.addr { font-size: 1.1rem; }
.big { font-family: var(--serif); font-size: 1.9rem; font-weight: 700; }
.big a { text-decoration: none; color: var(--navy); }
.svc { display: grid; gap: 14px; margin: 1.4em 0; }
.svc article { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; background: var(--white); box-shadow: var(--shadow); }
.svc h2 { margin: 0 0 .3em; font-size: 1.25rem; }
.svc p { margin: 0; color: var(--muted); }
.steps { list-style: none; counter-reset: step; padding: 0; display: grid; gap: 12px; margin: 0 0 1.4em; }
.steps li { counter-increment: step; position: relative; padding: 14px 16px 14px 62px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.steps li::before { content: counter(step); position: absolute; left: 14px; top: 12px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: var(--teal-bright); font-family: var(--serif); font-weight: 700; }
.note { background: var(--teal-soft); border-left: 5px solid var(--teal); border-radius: 10px; padding: 16px 18px; margin: 1.8em 0 1em; }
.note p { margin: .3em 0 0; }
.prose { max-width: 760px; }
.photos { display: grid; gap: 12px; margin: 1em 0; }
picture.meet { display: block; margin: 0 0 1.1em; }
picture.meet img { width: 100%; max-width: 440px; box-shadow: var(--shadow); }
[id] { scroll-margin-top: 16px; }

/* hours table */
.hours { width: 100%; border-collapse: collapse; }
.hours caption { text-align: left; font-family: var(--serif); font-weight: 700; font-size: 1.3rem; color: var(--navy); margin-bottom: .4em; }
.hours th, .hours td { text-align: left; padding: 9px 2px; border-bottom: 1px solid var(--line); font-weight: 400; }
.hours tr:last-child th, .hours tr:last-child td { border-bottom: 0; }
.hours td { text-align: right; }
.hours tr.today th, .hours tr.today td { font-weight: 800; color: var(--teal); }

/* call band and footer */
.band { background: var(--navy); background-image: linear-gradient(160deg, var(--navy), var(--navy-2)); color: #d7deea; padding: 40px 0; }
.band h2 { color: var(--white); margin-top: 0; }
.band mark.tbc { color: var(--ink); }
footer.site { background: var(--navy); color: #c3cddd; border-top: 4px solid var(--teal-bright); padding: 34px 0 30px; font-size: .95rem; }
footer.site a { color: var(--white); }
footer.site mark.tbc { color: var(--ink); }
.band + footer.site { border-top-color: rgba(255, 255, 255, .14); border-top-width: 1px; }
.fgrid { display: grid; gap: 22px; }
.fname { font-family: var(--serif); font-weight: 700; font-size: 1.3rem; color: var(--white); margin-bottom: .4em; }
.fhead { text-transform: uppercase; letter-spacing: .12em; font-size: .74rem; font-weight: 700; color: var(--teal-bright); margin-bottom: .6em; }
.flinks { display: grid; gap: 2px; }
.flinks a { padding: 5px 0; text-decoration: none; }
.flinks a:hover { text-decoration: underline; }
.fine { color: #93a1b8; margin: 22px 0 0; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .14); }

/* Call / Directions bar fixed to the bottom on phones */
.sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; gap: 8px; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); background: var(--white); border-top: 1px solid var(--line); box-shadow: 0 -4px 14px rgba(11, 26, 51, .1); }
.sticky .btn { flex: 1 1 0; min-width: 0; min-height: 48px; padding: 8px 10px; font-size: .95rem; }

/* very narrow phones (320 px) */
@media (max-width: 359px) {
  .bar { gap: 6px; }
  .logo { font-size: 1rem; gap: 8px; }
  .rx { width: 36px; height: 36px; font-size: 1.05rem; }
  .lang, .menu { padding: 8px 10px; font-size: .85rem; }
  .btn { padding: 12px 14px; font-size: 1rem; }
  .svc-grid { grid-template-columns: 1fr; }
}

@media (min-width: 720px) {
  body { font-size: 18px; padding-bottom: 0; }
  .sticky { display: none; }
  .menu { display: none; }
  .topbar { display: block; }
  .js #nav, #nav { display: flex; flex-direction: row; }
  .hero { padding: 64px 0 60px; }
  .hero-grid { grid-template-columns: 1.25fr .85fr; gap: 48px; align-items: center; }
  .trust ul { grid-template-columns: repeat(2, 1fr); padding-top: 22px; padding-bottom: 22px; }
  .sec { padding-top: 56px; padding-bottom: 56px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr 1fr; gap: 48px; }
  .svc { grid-template-columns: repeat(2, 1fr); }
  .svc-grid { grid-template-columns: repeat(4, 1fr); }
  .photos { grid-template-columns: repeat(2, 1fr); }
  picture.meet img { max-width: 900px; }
  .fgrid { grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
  .band { padding: 56px 0; }
}
@media (min-width: 1000px) {
  .cards { grid-template-columns: repeat(4, 1fr); }
  .trust ul { grid-template-columns: repeat(4, 1fr); }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .card, .btn { transition: none; } .card:hover { transform: none; } }

/* the logo (made by tools\make-logo.ps1) */
.logo img { height: 50px; width: auto; border-radius: 0; }
.flogo { height: 56px; width: auto; border-radius: 0; margin: 0 0 16px; }
footer.site .fname { font-size: 1.05rem; }
@media (max-width: 359px) { .logo img { height: 38px; } }
@media (min-width: 720px) { .logo img { height: 62px; } .flogo { height: 64px; } }

/* policy pages */
.prose h2 { font-size: 1.3rem; margin-top: 1.7em; }
.prose ul.plain { padding-left: 1.2em; display: grid; gap: .7em; margin: 0 0 1.2em; }
.prose .notice { background: var(--teal-soft); border-left: 5px solid var(--teal); border-radius: 10px; padding: 14px 16px; }
footer.site p + .fhead { margin-top: 1.6em; }
