@import url("/assets/fonts/fonts.css");

/* ============================================================
   Riverview Pharmacy — design system
   Style: minimalism + flat with subtle depth (trustworthy healthcare)
   Brand #5B87B3 (canonical accent), auto-darkened #3A6291 for AA text/buttons
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }

:root {
  --brand: #5B87B3;          /* canonical brand accent */
  --brand-dark: #3A6291;     /* white text AA 5.7:1 — buttons, links */
  --brand-darker: #2C4E76;   /* hover */
  --brand-tint: #ECF2F8;     /* soft section wash */
  --brand-tint-2: #DCE8F3;

  --ink: #1A2330;            /* body text ~15:1 on white */
  --ink-soft: #44535F;       /* secondary text 7.4:1 on white */
  --ink-muted: #5A6875;      /* tertiary, still >=4.5:1 */
  --line: #DBE3EC;
  --line-soft: #EAEFF4;

  --bg: #FFFFFF;
  --bg-alt: #F5F8FB;
  --footer-bg: #1E2A38;
  --footer-ink: #DDE5EE;
  --footer-muted: #A9B6C4;

  --ok: #1E7F4F;             /* open — 4.8:1 on white */
  --ok-dot: #2BB673;
  --closed: #C7002B;         /* closed — 6:1 on white (sourced red accent) */
  --closed-dot: #E23A57;

  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(26,35,48,.06), 0 1px 3px rgba(26,35,48,.05);
  --shadow: 0 4px 16px rgba(26,35,48,.08), 0 1px 3px rgba(26,35,48,.06);
  --shadow-lg: 0 18px 48px rgba(26,35,48,.14);
  --ring: 0 0 0 3px rgba(91,135,179,.35);

  --maxw: 1160px;
  --gut: clamp(1rem, 4vw, 2rem);
  --header-h: 76px;

  --font-head: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ---------- base ---------- */
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.18; margin: 0 0 .5em; font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); }
h2 { font-size: clamp(1.55rem, 3.4vw, 2.25rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.4rem); }
p { margin: 0 0 1rem; }
a { color: var(--brand-dark); text-underline-offset: 3px; }
a:hover { color: var(--brand-darker); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { margin: 0 0 1rem; padding-left: 1.25rem; }
strong { font-weight: 700; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); }
.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section--alt { background: var(--bg-alt); }
.section--tint { background: var(--brand-tint); }
.lead { font-size: 1.18rem; color: var(--ink-soft); max-width: 60ch; }
.eyebrow { font-family: var(--font-head); font-weight: 600; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--brand-dark); margin: 0 0 .6rem; display: inline-flex; align-items: center; gap: .5rem; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }
.muted { color: var(--ink-soft); }

.icon { flex: none; vertical-align: middle; }

/* ---------- skip link ---------- */
.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 2000;
  background: var(--brand-dark); color: #fff; padding: .7rem 1.1rem; border-radius: 8px;
  font-weight: 600; text-decoration: none; transition: top .15s ease;
}
.skip-link:focus { top: 1rem; color: #fff; }

/* ---------- focus ---------- */
:focus-visible { outline: 3px solid var(--brand-dark); outline-offset: 2px; border-radius: 4px; }
.topbar :focus-visible, .footer :focus-visible { outline-color: #fff; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-head); font-weight: 600; font-size: 1rem; line-height: 1;
  padding: .85rem 1.35rem; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--brand-dark); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--brand-darker); color: #fff; box-shadow: var(--shadow); }
.btn--outline { background: #fff; color: var(--brand-dark); border-color: var(--brand-dark); }
.btn--outline:hover { background: var(--brand-tint); color: var(--brand-darker); border-color: var(--brand-darker); }
.btn--ghost { background: transparent; color: var(--brand-dark); border-color: var(--line); }
.btn--ghost:hover { background: var(--brand-tint); border-color: var(--brand); color: var(--brand-darker); }
.btn--lg { padding: 1.02rem 1.7rem; font-size: 1.08rem; }
.btn--block { width: 100%; }
.btn--white { background: #fff; color: var(--brand-darker); }
.btn--white:hover { background: var(--brand-tint); color: var(--brand-darker); }
.btn .icon { width: 20px; height: 20px; }

/* ---------- top bar ---------- */
.topbar { background: var(--brand-dark); color: #fff; font-size: .92rem; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { color: #fff; text-decoration: underline; }
.topbar__inner { display: flex; align-items: center; gap: 1.25rem; min-height: 44px; flex-wrap: wrap; padding-block: .35rem; }
.topbar__item { display: inline-flex; align-items: center; gap: .45rem; }
.topbar__item .icon { width: 17px; height: 17px; opacity: .9; }
.topbar__spacer { margin-left: auto; }
.openflag { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; }
.openflag__dot { width: 10px; height: 10px; border-radius: 50%; background: #9fb4c8; flex: none; box-shadow: 0 0 0 3px rgba(255,255,255,.18); }
.openflag[data-open="true"] .openflag__dot { background: var(--ok-dot); }
.openflag[data-open="false"] .openflag__dot { background: var(--closed-dot); }
@media (max-width: 720px) {
  .topbar__hide-sm { display: none; }
  .topbar__inner { justify-content: space-between; gap: .75rem; }
}

/* ---------- header ---------- */
.header {
  position: sticky; top: 0; z-index: 900; background: rgba(255,255,255,.92);
  backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid var(--line-soft);
}
.header__inner { display: flex; align-items: center; gap: 1.5rem; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; flex: none; }
.brand img { height: 46px; width: auto; image-rendering: -webkit-optimize-contrast; }
.nav { display: flex; align-items: center; gap: .35rem; margin-left: .5rem; }
.nav a, .nav__btn {
  font-family: var(--font-head); font-weight: 600; font-size: .98rem; color: var(--ink);
  text-decoration: none; padding: .55rem .7rem; border-radius: 8px; background: none; border: 0; cursor: pointer;
  display: inline-flex; align-items: center; gap: .3rem;
}
.nav a:hover, .nav__btn:hover { background: var(--brand-tint); color: var(--brand-darker); }
.nav a[aria-current="page"] { color: var(--brand-darker); }
.nav a[aria-current="page"]::after { content: ""; display: block; }
.header__cta { margin-left: auto; display: flex; align-items: center; gap: .6rem; }
.header__cta .btn { padding: .6rem 1rem; font-size: .95rem; }
.portal-link { color: var(--brand-dark); font-weight: 600; font-family: var(--font-head); text-decoration: none; display: inline-flex; align-items: center; gap: .4rem; padding: .5rem .6rem; border-radius: 8px; }
.portal-link:hover { background: var(--brand-tint); color: var(--brand-darker); }
.portal-link .icon { width: 19px; height: 19px; }

/* dropdown */
.dropdown { position: relative; }
.dropdown__panel {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 290px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: .5rem; opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s; z-index: 950;
}
.dropdown[data-open="true"] .dropdown__panel { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown__panel a {
  display: flex; gap: .7rem; align-items: flex-start; padding: .65rem .7rem; border-radius: 9px;
  color: var(--ink); text-decoration: none;
}
.dropdown__panel a:hover { background: var(--brand-tint); }
.dropdown__panel .icon { width: 22px; height: 22px; color: var(--brand-dark); margin-top: 2px; }
.dropdown__panel b { font-family: var(--font-head); font-size: .96rem; display: block; }
.dropdown__panel span { font-size: .85rem; color: var(--ink-soft); line-height: 1.4; }
.dropdown__btn .icon { transition: transform .18s ease; width: 17px; height: 17px; }
.dropdown[data-open="true"] .dropdown__btn .icon { transform: rotate(180deg); }

.header__burger { margin-left: auto; display: none; align-items: center; justify-content: center; width: 48px; height: 48px; border: 1px solid var(--line); background: #fff; border-radius: 10px; color: var(--ink); cursor: pointer; }
.header__burger:hover { background: var(--brand-tint); }
.header__call { display: none; }

@media (max-width: 1023px) {
  .nav, .header__cta { display: none; }
  .header__burger { display: inline-flex; }
  .header__call { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 10px; color: var(--brand-dark); border: 1px solid var(--line); margin-left: auto; }
  .header__call + .header__burger { margin-left: .5rem; }
}

/* ---------- mobile drawer ---------- */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(20,28,40,.5); opacity: 0; visibility: hidden; transition: opacity .15s ease, visibility .15s; z-index: 1000; }
.drawer-backdrop[data-open="true"] { opacity: 1; visibility: visible; }
.drawer {
  position: fixed; top: 0; right: 0; height: 100dvh; width: min(100%, 400px); background: #fff;
  z-index: 1001; transform: translateX(100%); transition: transform .2s ease-out;
  display: flex; flex-direction: column; box-shadow: var(--shadow-lg); overflow-y: auto;
}
.drawer[data-open="true"] { transform: translateX(0); }
@media (prefers-reduced-motion: reduce) { .drawer { transition: none; } .drawer-backdrop { transition: none; } }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.25rem; border-bottom: 1px solid var(--line-soft); }
.drawer__head img { height: 40px; width: auto; }
.drawer__close { width: 46px; height: 46px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--ink); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.drawer__close:hover { background: var(--brand-tint); }
.drawer__body { padding: 1rem 1.25rem 1.5rem; display: flex; flex-direction: column; }
.drawer__cta { display: grid; gap: .6rem; margin-bottom: 1.25rem; }
.drawer__nav { display: flex; flex-direction: column; }
.drawer__nav a { display: flex; align-items: center; gap: .7rem; padding: .85rem .25rem; min-height: 48px; font-family: var(--font-head); font-weight: 600; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line-soft); }
.drawer__nav a:hover { color: var(--brand-darker); }
.drawer__nav .icon { width: 20px; height: 20px; color: var(--brand-dark); }
.drawer__sub { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-muted); margin: 1.1rem .25rem .2rem; font-family: var(--font-head); font-weight: 600; }
.drawer__contact { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--line-soft); font-size: .95rem; color: var(--ink-soft); display: grid; gap: .5rem; }
.drawer__contact a { display: inline-flex; gap: .5rem; align-items: center; }
body.no-scroll { overflow: hidden; }

/* ---------- hero ---------- */
.hero { background: linear-gradient(180deg, var(--brand-tint) 0%, #fff 100%); padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero h1 { margin-bottom: .4rem; }
.hero__tag { color: var(--brand-dark); }
.hero__sub { font-size: 1.18rem; color: var(--ink-soft); max-width: 52ch; margin-bottom: 1.5rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 1.5rem; }
.hero__call { display: inline-flex; align-items: center; gap: .55rem; font-family: var(--font-head); font-weight: 600; color: var(--ink); text-decoration: none; font-size: 1.05rem; }
.hero__call .icon { color: var(--brand-dark); }
.hero__call:hover { color: var(--brand-darker); }
.hero__chips { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.6rem; }
.chip { display: inline-flex; align-items: center; gap: .45rem; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: .5rem .9rem; font-size: .9rem; font-weight: 600; color: var(--ink); box-shadow: var(--shadow-sm); }
.chip .icon { width: 18px; height: 18px; color: var(--brand-dark); }
.hero__media { position: relative; }
.hero__media img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); aspect-ratio: 4/3; object-fit: cover; }
.hero__badge { position: absolute; left: -10px; bottom: 22px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: .85rem 1.05rem; display: flex; align-items: center; gap: .7rem; max-width: 230px; }
.hero__badge .icon { color: var(--brand-dark); width: 28px; height: 28px; }
.hero__badge b { font-family: var(--font-head); display: block; font-size: .98rem; }
.hero__badge span { font-size: .82rem; color: var(--ink-soft); }
@media (max-width: 880px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { order: -1; }
  .hero__media img { aspect-ratio: 16/10; }
  .hero__badge { left: 12px; }
}

/* ---------- service grid / cards ---------- */
.grid { display: grid; gap: 1.25rem; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid--3, .grid--4, .grid--2 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem;
  box-shadow: var(--shadow-sm); transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
  display: flex; flex-direction: column;
}
a.card { text-decoration: none; color: var(--ink); }
a.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); border-color: var(--brand-tint-2); }
.card__icon { width: 52px; height: 52px; border-radius: 13px; background: var(--brand-tint); color: var(--brand-dark); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 1rem; }
.card__icon .icon { width: 26px; height: 26px; }
.card h3 { margin-bottom: .4rem; }
.card p { color: var(--ink-soft); margin-bottom: 1rem; font-size: .98rem; }
.card__more { margin-top: auto; font-family: var(--font-head); font-weight: 600; color: var(--brand-dark); display: inline-flex; align-items: center; gap: .4rem; }
a.card:hover .card__more { gap: .6rem; color: var(--brand-darker); }
.card__more .icon { width: 18px; height: 18px; }

/* feature/trust row */
.features { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
@media (max-width: 800px){ .features { grid-template-columns: 1fr; } }
.feature { display: flex; gap: .9rem; }
.feature .card__icon { margin-bottom: 0; }
.feature h3 { font-size: 1.12rem; }
.feature p { color: var(--ink-soft); font-size: .96rem; margin: 0; }

/* ---------- hours table ---------- */
.hours { width: 100%; border-collapse: collapse; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: var(--shadow-sm); }
.hours tbody { width: 100%; }
.hours__row { border-bottom: 1px solid var(--line-soft); }
.hours__row:last-child { border-bottom: 0; }
.hours__row[data-today="true"] { background: var(--brand-tint); }
.hours__day { font-family: var(--font-head); font-weight: 600; text-align: left; padding: .85rem 1.15rem; }
.hours__val { color: var(--ink-soft); text-align: right; padding: .85rem 1.15rem; white-space: nowrap; }
.hours__row[data-closed="true"] .hours__val { color: var(--closed); font-weight: 600; }

/* ---------- info / contact ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
@media (max-width: 860px){ .split { grid-template-columns: 1fr; } }
.infolist { display: grid; gap: 1.1rem; margin: 0; padding: 0; }
.infolist > div { display: flex; gap: .9rem; align-items: flex-start; }
.infolist .card__icon { width: 46px; height: 46px; margin: 0; }
.infolist dt { font-family: var(--font-head); font-weight: 600; margin: 0 0 .1rem; }
.infolist dd { margin: 0; color: var(--ink-soft); }
.infolist a { font-weight: 600; }
.mapframe { width: 100%; aspect-ratio: 4/3; border: 0; border-radius: var(--radius); box-shadow: var(--shadow); }
.map-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.map-card iframe { display: block; width: 100%; aspect-ratio: 4/3; border: 0; }

/* ---------- breadcrumb ---------- */
.crumbs { font-size: .9rem; color: var(--ink-soft); padding-block: 1rem .25rem; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; padding: 0; margin: 0; }
.crumbs li { display: inline-flex; gap: .4rem; align-items: center; }
.crumbs a { color: var(--brand-dark); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs [aria-current="page"] { color: var(--ink-soft); }

/* ---------- page hero (interior) ---------- */
.pagehead { background: var(--brand-tint); padding-block: clamp(1.5rem, 4vw, 2.75rem) clamp(2rem,4vw,3rem); }
.pagehead h1 { margin-bottom: .5rem; }
.pagehead p { color: var(--ink-soft); font-size: 1.12rem; max-width: 62ch; margin: 0; }

/* service detail header image */
.svc-hero { position: relative; }
.svc-hero img { width: 100%; aspect-ratio: 21/9; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow); margin-bottom: 1.75rem; }
@media (max-width: 700px){ .svc-hero img { aspect-ratio: 16/10; } }

.prose { max-width: 72ch; }
.prose h2 { margin-top: 2rem; }
.prose ul { display: grid; gap: .5rem; }
.checklist { list-style: none; padding: 0; display: grid; gap: .7rem; }
.checklist li { display: flex; gap: .65rem; align-items: flex-start; }
.checklist .icon { color: var(--ok); width: 22px; height: 22px; flex: none; margin-top: 2px; }

/* callout / cta band */
.ctaband { background: var(--brand-dark); color: #fff; border-radius: var(--radius-lg); padding: clamp(2rem, 5vw, 3.25rem); text-align: center; box-shadow: var(--shadow); }
.ctaband h2 { color: #fff; }
.ctaband p { color: #e7eef6; max-width: 56ch; margin-inline: auto; font-size: 1.1rem; }
.ctaband .hero__cta { justify-content: center; margin-top: 1.5rem; margin-bottom: 0; }
.ctaband .btn--outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.ctaband .btn--outline:hover { background: rgba(255,255,255,.12); color:#fff; border-color: #fff; }

.aside-card { background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.aside-card h3 { font-size: 1.1rem; }
.aside-card .btn { margin-top: .5rem; }

/* ---------- FAQ accordion ---------- */
.faq { display: grid; gap: .75rem; max-width: 820px; margin-inline: auto; }
.faq__item { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; }
.faq__q { width: 100%; text-align: left; background: none; border: 0; cursor: pointer; padding: 1.1rem 1.25rem; font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; color: var(--ink); display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.faq__q:hover { color: var(--brand-darker); }
.faq__q .icon { color: var(--brand-dark); transition: transform .2s ease; flex: none; }
.faq__q[aria-expanded="true"] .icon { transform: rotate(180deg); }
.faq__a { padding: 0 1.25rem; max-height: 0; overflow: hidden; transition: max-height .25s ease, padding .25s ease; }
.faq__a > div { padding-bottom: 1.2rem; color: var(--ink-soft); }
.faq__item[data-open="true"] .faq__a { max-height: 600px; }
@media (prefers-reduced-motion: reduce){ .faq__a { transition: none; } }

/* portal feature list */
.featurelist { list-style: none; padding: 0; display: grid; gap: .85rem; }
.featurelist li { display: flex; gap: .7rem; align-items: flex-start; }
.featurelist .icon { color: var(--brand-dark); width: 22px; height: 22px; flex: none; margin-top: 2px; }

/* ---------- footer ---------- */
.footer { background: var(--footer-bg); color: var(--footer-ink); padding-block: 3rem 1.5rem; margin-top: 0; }
.footer a { color: var(--footer-ink); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2rem; }
@media (max-width: 900px){ .footer__grid { grid-template-columns: 1fr 1fr; gap: 1.75rem; } }
@media (max-width: 540px){ .footer__grid { grid-template-columns: 1fr; } }
.footer__logo { background: #fff; border-radius: 12px; padding: .6rem .8rem; display: inline-block; margin-bottom: 1rem; }
.footer__logo img { height: 44px; width: auto; }
.footer h2 { color: #fff; font-size: 1rem; margin-bottom: .9rem; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.footer a { text-decoration: none; }
.footer a:hover { text-decoration: underline; color: #fff; }
.footer__contact { display: grid; gap: .6rem; font-size: .95rem; }
.footer__contact div { display: flex; gap: .55rem; align-items: flex-start; }
.footer__contact .icon { width: 18px; height: 18px; color: #9fb8d4; margin-top: 3px; flex: none; }
.footer__social { display: flex; gap: .6rem; margin-top: .25rem; }
.footer__social a { width: 40px; height: 40px; border-radius: 10px; background: rgba(255,255,255,.08); display: inline-flex; align-items: center; justify-content: center; }
.footer__social a:hover { background: var(--brand); }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 2.25rem; padding-top: 1.25rem; display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; justify-content: space-between; align-items: center; font-size: .88rem; color: var(--footer-muted); }
.footer__bottom nav { display: flex; flex-wrap: wrap; gap: 1.1rem; }
.footer__bottom a { color: var(--footer-muted); text-decoration: none; }
.footer__bottom a:hover { color: #fff; text-decoration: underline; }

/* ---------- sticky bottom mobile CTA ---------- */
.mobile-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 800; display: none; gap: .6rem; padding: .6rem .8rem calc(.6rem + env(safe-area-inset-bottom)); background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-top: 1px solid var(--line); }
.mobile-cta .btn { flex: 1; }
@media (max-width: 1023px){ .mobile-cta { display: flex; } body { padding-bottom: 76px; } }
body.no-scroll .mobile-cta { display: none; }

/* ---------- cookie banner ---------- */
.cookie { position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 1200; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 1.1rem 1.25rem; max-width: 540px; margin-inline: auto; }
.cookie[hidden] { display: none; }
.cookie p { font-size: .92rem; color: var(--ink-soft); margin: 0 0 .85rem; }
.cookie a { font-weight: 600; }
.cookie__actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.cookie__actions .btn { padding: .6rem 1.05rem; font-size: .92rem; }
@media (max-width: 1023px){ .cookie { bottom: 84px; } }

/* utilities */
.stack > * + * { margin-top: 1rem; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.flow > * + * { margin-top: 1.5rem; }
.divider { height: 1px; background: var(--line); border: 0; margin-block: 2.5rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
