/* AlmaCare Telehealth: colors from the original site (dusty blue, warm off-white, sage), darkened where needed for readable contrast */
:root {
  --blue: #4c7891;        /* header, buttons (white text passes AA) */
  --blue-dk: #355a6f;
  --blue-lt: #8babbd;     /* original brand blue, decorative only */
  --blue-bg: #e7eff3;
  --sage: #c4cebc;
  --sage-bg: #eef1ea;
  --bg: #f4f1ee;
  --card: #ffffff;
  --ink: #26323a;
  --muted: #5a6670;
  --line: #dfe3e3;
  --warn-bg: #fbf3e0; --warn: #8a5a00;
  --red-bg: #fbe9ea; --red: #a3262f;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(38, 50, 58, .08);
  --serif: 'Marcellus', Georgia, serif;
  --sans: 'Nunito Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.65 var(--sans); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-dk); text-underline-offset: 3px; }
a:hover { color: var(--blue); }
h1, h2, h3, .h3 { font-family: var(--serif); font-weight: 400; line-height: 1.2; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3, .h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
svg { width: 1.1em; height: 1.1em; flex-shrink: 0; vertical-align: -.15em; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 32px); }
.center { text-align: center; }
.center img { margin-inline: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: #fff; padding: 8px 14px; border-radius: 8px; }
:focus-visible { outline: 3px solid #e2a33b; outline-offset: 2px; }

/* Top bar + header */
.topbar { background: var(--blue-dk); color: #fff; font-size: .85rem; }
.topbar-in { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; flex-wrap: wrap; }
.topbar a { color: #fff; text-decoration: none; font-weight: 700; }
.topbar-right { display: flex; gap: 18px; align-items: center; }
.site-header { background: var(--blue); position: sticky; top: 0; z-index: 50; box-shadow: 0 2px 14px rgba(0,0,0,.12); }
.header-in { display: flex; align-items: center; gap: 20px; min-height: 76px; }
.brand-logo { height: 54px; width: auto; }
.nav { margin-left: auto; }
.nav-list { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; align-items: center; }
.nav-link { display: inline-flex; align-items: center; gap: 4px; color: #fff; text-decoration: none; font: 700 .82rem var(--sans); letter-spacing: .06em; text-transform: uppercase; padding: 10px 12px; border-radius: 10px; background: none; border: 0; cursor: pointer; }
.nav-link:hover, .nav-link[aria-current] { background: rgba(255,255,255,.14); color: #fff; }
.has-menu { position: relative; }
.mega { display: none; position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%); background: #fff; border-radius: 14px; box-shadow: var(--shadow); padding: 10px; list-style: none; margin: 0; width: 560px; grid-template-columns: 1fr 1fr; gap: 2px; }
.has-menu.open .mega { display: grid; }
.mega a { display: block; padding: 9px 12px; border-radius: 8px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: .95rem; }
.mega a:hover { background: var(--blue-bg); }
.mega-all { grid-column: 1 / -1; border-top: 1px solid var(--line); margin-top: 4px; padding-top: 4px; }
.mega-all a { color: var(--blue-dk); }
.header-cta { display: flex; align-items: center; gap: 10px; }
.menu-btn { display: none; background: none; border: 0; color: #fff; padding: 8px; cursor: pointer; }
.menu-btn svg { width: 28px; height: 28px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 999px; font: 800 .95rem var(--sans); text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .15s, background .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-lg { padding: 15px 28px; font-size: 1.02rem; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dk); color: #fff; }
.btn-light { background: #fff; color: var(--blue-dk); }
.btn-light:hover { background: var(--sage-bg); color: var(--blue-dk); }
.btn-outline { border-color: var(--blue); color: var(--blue-dk); }
.btn-outline-light { border-color: rgba(255,255,255,.8); color: #fff; }
.btn-outline-light:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn-ghost { background: #fff; color: var(--blue-dk); border-color: var(--line); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 8px; }

/* Hero */
.hero { position: relative; color: #fff; background: #2a3a44 url('/assets/img/hero.webp') center / cover no-repeat; }
.hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(30,48,60,.88) 0%, rgba(30,48,60,.6) 60%, rgba(30,48,60,.25) 100%); }
.hero-in { position: relative; padding: clamp(60px, 9vw, 120px) 0; max-width: 760px; margin-left: max(16px, (100% - 1180px) / 2); }
.hero h1 { color: #fff; }
.hero h1 em { font-style: italic; color: #dbe8ee; }
.hero .lead { color: #eef3f5; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 720px; }
.eyebrow { display: inline-block; font: 800 .78rem var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--blue); margin-bottom: 10px; }
.eyebrow-light { color: #dbe8ee; }
.trust-row { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-weight: 700; font-size: .93rem; color: var(--blue-dk); }
.trust-row li { display: flex; align-items: center; gap: 7px; }
.trust-light { color: #fff; }

.page-hero { background: linear-gradient(180deg, var(--blue-bg), var(--bg)); padding: 46px 0 40px; }
.crumbs { font-size: .9rem; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--muted); }
.crumbs span { margin: 0 4px; opacity: .6; }

/* Sections */
.section { padding: clamp(52px, 7vw, 88px) 0; }
.section-sm { padding: 22px 0; }
.tint { background: var(--sage-bg); }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 36px; }
.section-head p { color: var(--muted); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.sub { color: var(--blue-dk); font-weight: 700; }
.sign { font-family: var(--serif); font-size: 1.2rem; color: var(--blue-dk); }
.photo-round img { border-radius: 200px 200px var(--radius) var(--radius); box-shadow: var(--shadow); width: 100%; object-fit: cover; aspect-ratio: 702 / 600; }

/* Cards */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.card { display: flex; flex-direction: column; background: var(--card); border-radius: var(--radius); padding: 24px; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); border: 1px solid transparent; transition: border-color .15s, transform .15s; }
.card:hover { border-color: var(--blue-lt); transform: translateY(-2px); color: var(--ink); }
.card p { color: var(--muted); font-size: .97rem; flex: 1; }
.card-link { color: var(--blue-dk); font-weight: 800; font-size: .92rem; display: inline-flex; gap: 6px; align-items: center; }
.ico { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--blue-bg); color: var(--blue-dk); margin-bottom: 14px; flex-shrink: 0; }
.ico svg { width: 24px; height: 24px; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; }
.feature { display: flex; gap: 16px; background: var(--card); padding: 22px; border-radius: var(--radius); box-shadow: var(--shadow); }
.feature h3 { font-size: 1.15rem; margin-bottom: .3em; }
.feature p { color: var(--muted); margin: 0; font-size: .97rem; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: none; }
.steps li { background: var(--card); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.num { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--blue); color: #fff; font: 1.3rem var(--serif); margin-bottom: 14px; }
.steps p { color: var(--muted); margin: 0; }

.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; background: var(--card); padding: 12px 16px; border-radius: 12px; }
.checks svg { color: var(--blue); width: 22px; height: 22px; margin-top: 2px; }
.no-list svg { color: var(--red); }
.dots { padding-left: 1.2em; margin: 0 0 1em; }
.dots li { margin: 3px 0; }
.panel { background: var(--card); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.cond-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; align-items: start; }
.muted-sm { color: var(--muted); font-size: .92rem; }
.prose p { color: #34414a; }
.legal h2 { font-size: 1.5rem; margin-top: 1.6em; }
.legal ul { padding-left: 1.2em; }
.legal li { margin: 6px 0; }

.note { display: flex; gap: 12px; align-items: flex-start; background: var(--warn-bg); color: #4d3b10; padding: 16px 18px; border-radius: 14px; margin-top: 16px; }
.note svg { color: var(--warn); width: 22px; height: 22px; margin-top: 3px; }
.note p { margin: 0; }
.note-red { background: var(--red-bg); color: #4a1418; }
.note-red svg { color: var(--red); }
.note-red a { color: var(--red); font-weight: 800; }

.area-chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; }
.area-chips li { display: inline-flex; gap: 6px; align-items: center; background: #fff; border-radius: 999px; padding: 7px 14px; font-weight: 700; font-size: .9rem; color: var(--blue-dk); }

/* FAQ */
.faq details { background: var(--card); border-radius: 14px; margin-bottom: 10px; box-shadow: 0 2px 10px rgba(38,50,58,.05); }
.faq summary { cursor: pointer; padding: 18px 50px 18px 20px; font-weight: 800; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--blue); font-weight: 400; }
.faq details[open] summary::after { content: '\2212'; }
.faq details > div { padding: 0 20px 6px; color: #34414a; }
.faq-group { font-size: 1.5rem; margin: 34px 0 14px; }
.faq-group:first-child { margin-top: 0; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.contact-card { background: var(--card); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); text-decoration: none; color: var(--ink); overflow-wrap: anywhere; }
.contact-card p { color: var(--muted); }
.contact-card:hover { color: var(--ink); outline: 2px solid var(--blue-lt); }
.hours { border-collapse: collapse; width: 100%; max-width: 460px; background: #fff; border-radius: 14px; overflow: hidden; }
.hours th, .hours td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.contact-list { list-style: none; padding: 0; margin: 0 0 1em; }
.contact-list li { display: flex; gap: 8px; align-items: center; margin: 6px 0; overflow-wrap: anywhere; }
.contact-list.big { font-size: 1.1rem; font-weight: 700; }

/* CTA band */
.cta-band { background: var(--blue-dk); color: #fff; padding: 48px 0; }
.cta-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin-bottom: .2em; }
.cta-band p { color: #dbe8ee; margin: 0; }

/* Footer */
.site-footer { background: #22323c; color: #c9d4da; padding: 56px 0 0; font-size: .95rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; }
.footer-logo { width: 170px; margin-bottom: 14px; }
.footer-h { font: 800 .8rem var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--blue-lt); margin: 0 0 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0 0 18px; }
.site-footer li { margin: 6px 0; }
.social { display: flex; gap: 10px; }
.social svg { width: 22px; height: 22px; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; border-top: 1px solid rgba(255,255,255,.12); margin-top: 28px; padding: 18px 0; font-size: .85rem; }
.footer-bottom p { margin: 0; }

/* Responsive */
@media (max-width: 1020px) {
  .menu-btn { display: block; }
  .nav { position: fixed; inset: 0 0 0 auto; width: min(340px, 88vw); background: var(--blue-dk); padding: 120px 18px 24px; transform: translateX(100%); transition: transform .25s; overflow-y: auto; z-index: 60; }
  .nav.open { transform: none; box-shadow: -10px 0 30px rgba(0,0,0,.3); }
  .nav-list { flex-direction: column; align-items: stretch; }
  .nav-link { width: 100%; font-size: .95rem; padding: 14px 12px; }
  .mega { position: static; transform: none; width: auto; box-shadow: none; grid-template-columns: 1fr; background: rgba(255,255,255,.08); }
  .mega a { color: #fff; }
  .mega a:hover { background: rgba(255,255,255,.1); }
  .mega-all a { color: #dbe8ee; }
  .menu-btn { position: relative; z-index: 70; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .split, .steps, .contact-grid { grid-template-columns: 1fr; }
  .header-in { min-height: 64px; gap: 10px; }
  .brand-logo { height: 42px; }
  .header-cta .btn { padding: 9px 14px; font-size: .82rem; }
  .hide-sm { display: none; }
  .topbar-in { justify-content: center; text-align: center; }
  .hero::before { background: rgba(30,48,60,.78); }
  .footer-grid { grid-template-columns: 1fr; }
  .btn-row .btn { flex: 1 1 100%; }
}
@media (max-width: 400px) { .brand-logo { height: 36px; } .header-cta .btn { padding: 8px 11px; font-size: .76rem; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
