/* =========================================================
   The Chase Dialysis Centre
   Palette grounded in the brand logo: navy + royal blue + red
   ========================================================= */
:root {
  --navy:   #12265f;   /* anchor: dark sections, headings */
  --navy-2: #0d1c48;   /* deeper navy for gradients */
  --blue:   #2350c6;   /* primary actions / links */
  --blue-7: #1b3f9e;   /* hover */
  --red:    #e01b22;   /* single brand accent */
  --red-7:  #bf141a;
  --ink:    #0f1c3f;   /* body text (navy-tinted, from brand) */
  --grey:   #5a6b85;   /* muted text */
  --line:   #e3e9f2;   /* hairlines / borders */
  --mist:   #eef3fb;   /* light alternating band */
  --mist-2: #e4ecf8;
  --paper:  #ffffff;
  --radius: 16px;
  --radius-sm: 11px;
  --shadow: 0 2px 6px rgba(18, 38, 95, .06), 0 18px 40px rgba(18, 38, 95, .07);
  --shadow-sm: 0 1px 3px rgba(18, 38, 95, .08);
  --maxw: 1180px;
  --font-head: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

.skip-link { position: absolute; left: -9999px; top: 0; z-index: 200; background: var(--navy); color: #fff; padding: .7rem 1.1rem; border-radius: 0 0 10px 0; font-family: var(--font-head); font-weight: 600; }
.skip-link:focus { left: 0; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--font-head); color: var(--navy); line-height: 1.12; margin: 0 0 .5rem; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1rem; }
.accent { color: var(--red); }

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-7); }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.lead { font-size: 1.15rem; color: var(--grey); max-width: 60ch; }
.muted { color: var(--grey); }
.center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.inline-form { display: inline; }

/* small section label — used sparingly, not above every heading */
.eyebrow {
  display: inline-block; font-family: var(--font-head); font-weight: 700;
  font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--blue); margin-bottom: .9rem;
}
.eyebrow::before { content: ""; display: inline-block; width: 26px; height: 2px; background: var(--red); vertical-align: middle; margin-right: .6rem; }

/* ---------- Buttons (pill) ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem; cursor: pointer;
  border: 0; font-family: var(--font-head); font-weight: 600; font-size: .98rem;
  padding: .8rem 1.5rem; border-radius: 999px; background: var(--blue); color: #fff;
  transition: transform .12s ease, background .15s ease, box-shadow .15s ease;
}
.btn:hover { background: var(--blue-7); color: #fff; transform: translateY(-1px); }
.btn.red { background: var(--red); }
.btn.red:hover { background: var(--red-7); }
.btn.outline { background: transparent; color: var(--navy); box-shadow: inset 0 0 0 1.6px var(--line); }
.btn.outline:hover { background: var(--mist); color: var(--navy); box-shadow: inset 0 0 0 1.6px var(--blue); }
.btn.on-dark { background: #fff; color: var(--navy); }
.btn.on-dark:hover { background: #eef3fb; color: var(--navy); }
.btn.ghost-dark { background: rgba(255,255,255,.1); color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.4); }
.btn.ghost-dark:hover { background: rgba(255,255,255,.18); color:#fff; }
.btn.small { padding: .5rem 1rem; font-size: .88rem; }
.btn.danger { background: var(--red); }
.btn.danger:hover { background: var(--red-7); }
.btn.block { width: 100%; justify-content: center; }

/* ---------- Utility bar ---------- */
.utility { background: var(--navy); color: #cdd8f3; font-size: .82rem; }
.utility .container { display: flex; justify-content: space-between; align-items: center; height: 38px; }
.utility a { color: #fff; }
.utility .u-right { display: flex; gap: 1.2rem; align-items: center; }
.u-btn { display: inline-flex; align-items: center; gap: .4rem; background: rgba(255, 255, 255, .16); color: #fff; padding: .3rem .95rem; border-radius: 999px; font-family: var(--font-head); font-weight: 600; font-size: .8rem; line-height: 1; transition: background .15s ease; }
.u-btn:hover { background: rgba(255, 255, 255, .32); color: #fff; text-decoration: none; }
.u-btn svg { opacity: .9; }

/* ---------- Header ---------- */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 60; }
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 1rem; }
.brand img { height: 46px; width: auto; display: block; }
.nav-links { display: flex; align-items: center; gap: .15rem; }
.nav-links a { color: var(--ink); font-weight: 500; padding: .55rem .8rem; border-radius: 8px; font-size: .96rem; }
.nav-links a:hover { background: var(--mist); color: var(--navy); }
.nav-links a.active { color: var(--blue); }
.nav-cta { display: flex; align-items: center; gap: .5rem; }
.nav-toggle { display: none; background: none; border: 0; font-size: 1.7rem; cursor: pointer; color: var(--navy); line-height: 1; }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(180deg, #fff 0%, var(--mist) 100%); padding: clamp(3rem, 6vw, 5.5rem) 0; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 3rem; align-items: center; }
.hero h1 { margin-bottom: 1.1rem; }
.hero .lead { font-size: 1.22rem; }
.hero .actions { margin-top: 1.8rem; display: flex; gap: .8rem; flex-wrap: wrap; }

/* Branded visual panel (stands in for photography) */
.visual {
  position: relative; border-radius: 22px; overflow: hidden; min-height: 360px;
  background: radial-gradient(120% 120% at 100% 0%, var(--blue) 0%, var(--navy) 55%, var(--navy-2) 100%);
  box-shadow: var(--shadow); display: flex; align-items: flex-end; padding: 1.6rem;
}
.visual svg.kidney { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .9; }
.visual .caption {
  position: relative; z-index: 2; color: #eaf1ff; font-family: var(--font-head);
  font-weight: 600; font-size: 1.05rem; background: rgba(13,28,72,.42);
  backdrop-filter: blur(2px); padding: .7rem 1rem; border-radius: 12px; max-width: 80%;
}
.visual .tag { position: absolute; top: 1.1rem; left: 1.1rem; z-index: 2; background: var(--red); color: #fff;
  font-family: var(--font-head); font-weight: 700; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase;
  padding: .35rem .7rem; border-radius: 999px; }
.visual.short { min-height: 300px; }

/* Real-photo panel */
.photo {
  position: relative; border-radius: 22px; overflow: hidden; min-height: 380px;
  box-shadow: var(--shadow); display: flex; align-items: flex-end; padding: 1.6rem;
  background-size: cover; background-position: center;
}
.photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13,28,72,0) 35%, rgba(13,28,72,.74) 100%); }
.photo.short { min-height: 320px; }
.photo .tag, .photo .caption { position: relative; z-index: 2; }
.photo .tag {
  position: absolute; top: 1.1rem; left: 1.1rem; background: var(--red); color: #fff;
  font-family: var(--font-head); font-weight: 700; font-size: .72rem; letter-spacing: .1em;
  text-transform: uppercase; padding: .35rem .7rem; border-radius: 999px;
}
.photo .caption {
  color: #fff; font-family: var(--font-head); font-weight: 600; font-size: 1.05rem;
  max-width: 88%; text-shadow: 0 1px 12px rgba(0,0,0,.45);
}

/* Warm cursor-following glow on cards */
.svc, .value, .news-card { position: relative; overflow: hidden; transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.svc::before, .value::before, .news-card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 0;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, -20%), rgba(35, 80, 198, .14), rgba(35, 80, 198, 0) 68%);
  opacity: 0; transition: opacity .3s ease;
}
.svc:hover::before, .value:hover::before, .news-card:hover::before { opacity: 1; }
.svc > *, .value > *, .news-card > * { position: relative; z-index: 1; }
.svc:hover, .news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #cdd9f0; }
.value:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
a.svc { color: inherit; }
a.svc:hover { text-decoration: none; }

/* Service detail modal */
.modal { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; padding: 1.5rem; }
.modal.open { display: flex; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(13, 28, 72, .55); backdrop-filter: blur(3px); }
.modal-panel { position: relative; background: #fff; border-radius: 22px; max-width: 580px; width: 100%; padding: 2.6rem; box-shadow: 0 30px 80px rgba(13, 28, 72, .35); animation: modalpop .2s ease; }
@keyframes modalpop { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
.modal-close { position: absolute; top: 1.1rem; right: 1.1rem; background: var(--mist); border: 0; width: 38px; height: 38px; border-radius: 50%; cursor: pointer; font-size: 1.2rem; line-height: 1; color: var(--navy); display: grid; place-items: center; }
.modal-close:hover { background: var(--mist-2); }
.modal-panel .m-ic { width: 54px; height: 54px; border-radius: 14px; background: var(--mist); color: var(--blue); display: grid; place-items: center; margin-bottom: 1.1rem; }
.modal-panel h3 { font-size: 1.6rem; margin: 0 0 .3rem; }
.modal-panel .m-aud { display: inline-block; font-size: .74rem; font-weight: 600; font-family: var(--font-head); letter-spacing: .03em; color: var(--blue); background: var(--mist); padding: .2rem .6rem; border-radius: 999px; margin-bottom: 1rem; }
.modal-panel .m-desc { color: var(--grey); font-size: 1.02rem; margin-bottom: 1.6rem; }
.svc[data-long] { cursor: pointer; }
.svc .more { display: inline-block; margin-top: .9rem; font-family: var(--font-head); font-weight: 600; font-size: .9rem; color: var(--blue); }

/* Service filters */
.filters { display: flex; gap: .6rem; flex-wrap: wrap; margin-bottom: 1.8rem; }
.chip { font-family: var(--font-head); font-weight: 600; font-size: .9rem; padding: .5rem 1.1rem; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--navy); cursor: pointer; transition: all .15s ease; }
.chip:hover { border-color: var(--blue); }
.chip.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.svc[hidden] { display: none; }
.svc { position: relative; }
.svc .num { position: absolute; top: 1.3rem; right: 1.4rem; font-family: var(--font-head); font-weight: 800; font-size: .95rem; color: var(--mist-2); }
.svc .aud { display: inline-block; margin-top: .8rem; font-size: .74rem; font-weight: 600; font-family: var(--font-head); letter-spacing: .03em; color: var(--blue); background: var(--mist); padding: .2rem .6rem; border-radius: 999px; }

/* Education diagrams */
.diagram { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow-sm); }
.diagram svg { width: 100%; height: auto; display: block; }
.legend { display: flex; gap: 1.4rem; flex-wrap: wrap; margin-top: 1.1rem; font-size: .88rem; color: var(--grey); }
.legend .key { display: inline-flex; align-items: center; gap: .45rem; }
.legend .dot { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
.tip { display: flex; gap: .8rem; align-items: flex-start; margin-bottom: .9rem; }
.tip .ic { color: var(--blue); flex: 0 0 auto; margin-top: 2px; }
.tip strong { font-family: var(--font-head); color: var(--navy); display: block; font-size: .98rem; }
.tip span { color: var(--grey); font-size: .92rem; }
.edu-note { background: var(--mist); border-left: 3px solid var(--blue); border-radius: 10px; padding: 1rem 1.2rem; color: var(--grey); font-size: .92rem; }

/* Gallery strip */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.gallery .shot { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 220px; background-size: cover; background-position: center; box-shadow: var(--shadow-sm); }
.gallery .shot span { position: absolute; left: 0; right: 0; bottom: 0; padding: .8rem 1rem; color: #fff; font-family: var(--font-head); font-weight: 600; font-size: .9rem; background: linear-gradient(180deg, rgba(13,28,72,0), rgba(13,28,72,.75)); }
@media (max-width: 760px) { .gallery { grid-template-columns: 1fr; } }
.gallery .shot { cursor: zoom-in; transition: transform .22s ease, box-shadow .22s ease; }
.gallery .shot:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 300; display: none; align-items: center; justify-content: center; background: rgba(9, 16, 38, .93); padding: 2rem; }
.lightbox.open { display: flex; }
.lightbox .lb-img { max-width: 92vw; max-height: 82vh; border-radius: 12px; box-shadow: 0 24px 70px rgba(0, 0, 0, .55); animation: modalpop .2s ease; }
.lightbox .lb-cap { position: absolute; bottom: 1.6rem; left: 0; right: 0; text-align: center; color: #eaf1ff; font-family: var(--font-head); font-weight: 600; font-size: 1rem; }
.lightbox button { position: absolute; background: rgba(255, 255, 255, .14); border: 0; color: #fff; cursor: pointer; display: grid; place-items: center; border-radius: 50%; transition: background .15s ease; }
.lightbox button:hover { background: rgba(255, 255, 255, .3); }
.lightbox .lb-close { top: 1.2rem; right: 1.4rem; width: 46px; height: 46px; font-size: 1.5rem; }
.lightbox .lb-nav { top: 50%; transform: translateY(-50%); width: 54px; height: 54px; font-size: 1.8rem; }
.lightbox .lb-prev { left: 1.4rem; }
.lightbox .lb-next { right: 1.4rem; }
@media (max-width: 560px) { .lightbox .lb-nav { width: 42px; height: 42px; font-size: 1.4rem; } }

/* ---------- Trust strip ---------- */
.trust { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.trust-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; padding: 1.6rem 0; }
.trust-item { display: flex; gap: .7rem; align-items: flex-start; }
.trust-item .ic { color: var(--blue); flex: 0 0 auto; margin-top: 2px; }
.trust-item strong { display: block; font-family: var(--font-head); color: var(--navy); font-size: .98rem; }
.trust-item span { font-size: .86rem; color: var(--grey); }

/* ---------- Sections ---------- */
section { padding: clamp(3rem, 6vw, 5rem) 0; }
.band-mist { background: var(--mist); }
.band-navy { background: var(--navy); color: #dfe7fb; }
.band-navy h2, .band-navy h3 { color: #fff; }
.sec-head { max-width: 62ch; margin-bottom: 2.4rem; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Split (about / human side) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.split.reverse .split-media { order: 2; }
.split-text h2 { margin-bottom: 1rem; }

/* ---------- Services grid ---------- */
.cards { display: grid; gap: 1.3rem; }
.cards.c3 { grid-template-columns: repeat(3, 1fr); }
.cards.c2 { grid-template-columns: repeat(2, 1fr); }
.svc {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem; box-shadow: var(--shadow-sm); transition: box-shadow .18s ease, transform .18s ease;
}
.svc:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.svc .ic { width: 50px; height: 50px; border-radius: 13px; background: var(--mist); color: var(--blue);
  display: grid; place-items: center; margin-bottom: 1rem; }
.svc h3 { margin-bottom: .35rem; }
.svc p { margin: 0; color: var(--grey); font-size: .96rem; }

/* ---------- Values ---------- */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
.value {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem; position: relative; border-top: 3px solid var(--red);
}
.value .ic { color: var(--red); margin-bottom: .7rem; }
.value h3 { font-size: 1.08rem; margin-bottom: .3rem; }
.value p { margin: 0; color: var(--grey); font-size: .93rem; }

/* ---------- Journey (numbered — a real sequence) ---------- */
.journey { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.3rem; counter-reset: step; }
.step { position: relative; padding: 1.4rem; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius); }
.step .n { font-family: var(--font-head); font-weight: 800; font-size: 1.6rem; color: #fff; }
.step .n b { color: var(--red); }
.step h3 { font-size: 1.05rem; margin: .5rem 0 .3rem; }
.step p { margin: 0; color: #c3d0ef; font-size: .9rem; }

/* ---------- News cards ---------- */
.news-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow-sm); }
.news-card .date { color: var(--red); font-family: var(--font-head); font-weight: 600; font-size: .82rem; letter-spacing: .02em; }
.news-thumb { display: block; width: 100%; height: 170px; object-fit: cover; border-radius: 10px; margin-bottom: .9rem; }
.news-card h3 { margin: .35rem 0 .5rem; font-size: 1.12rem; }
.news-card h3 a { color: var(--navy); }
.news-card h3 a:hover { color: var(--blue); }
.news-card p { color: var(--grey); font-size: .94rem; }
.readmore { font-family: var(--font-head); font-weight: 600; font-size: .9rem; }

/* ---------- CTA band ---------- */
.cta {
  background: radial-gradient(130% 120% at 0% 0%, var(--blue) 0%, var(--navy) 60%, var(--navy-2) 100%);
  color: #fff; border-radius: 24px; padding: clamp(2.2rem, 5vw, 3.4rem); text-align: center;
  box-shadow: var(--shadow);
}
.cta h2 { color: #fff; }
.cta p { color: #cdd8f3; max-width: 54ch; margin: .5rem auto 1.6rem; }

/* ---------- Page header ---------- */
.page-head { background: var(--navy); color: #dfe7fb; padding: clamp(2.4rem, 5vw, 3.6rem) 0; }
.page-head h1 { color: #fff; margin: 0; }
.page-head p { color: #c3d0ef; margin: .5rem 0 0; max-width: 60ch; }
.page-head a { color: #bcd0ff; }
.crumb { font-size: .9rem; margin-bottom: .6rem; color: #9fb3e6; }

/* ---------- Forms ---------- */
.form-wrap { max-width: 660px; margin: 0 auto; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-family: var(--font-head); font-weight: 600; margin-bottom: .35rem; font-size: .92rem; color: var(--navy); }
.field input, .field select, .field textarea {
  width: 100%; padding: .7rem .85rem; border: 1.5px solid var(--line); border-radius: 10px;
  font: inherit; background: #fff; color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(35,80,198,.14);
}
.field textarea { min-height: 130px; resize: vertical; }
.field .hint { color: var(--grey); font-size: .82rem; margin-top: .3rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.checkbox { display: flex; align-items: center; gap: .5rem; }
.checkbox input { width: auto; }

/* ---------- Alerts ---------- */
.alert { padding: .9rem 1.1rem; border-radius: 11px; margin-bottom: 1.25rem; border: 1px solid; font-size: .95rem; }
.alert.success { background: #e9f8ef; border-color: #b9e6cb; color: #116a39; }
.alert.error { background: #fdecec; border-color: #f4c4c4; color: #a51d1d; }
.alert ul { margin: .3rem 0 0; padding-left: 1.1rem; }

/* ---------- Tables ---------- */
.table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.table th, .table td { text-align: left; padding: .85rem 1rem; border-bottom: 1px solid var(--line); font-size: .92rem; vertical-align: top; }
.table th { background: var(--mist); color: var(--navy); font-family: var(--font-head); font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; }
.table tr:last-child td { border-bottom: 0; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius); }
@media (max-width: 620px) { .table th, .table td { padding: .7rem .7rem; font-size: .86rem; } }

/* Visible keyboard focus for accessibility */
a:focus-visible, button:focus-visible, .btn:focus-visible, [tabindex]:focus-visible, .svc:focus-visible, .shot:focus-visible {
  outline: 3px solid rgba(35, 80, 198, .55); outline-offset: 2px; border-radius: 6px;
}

/* ---------- Badges ---------- */
.badge { display: inline-block; padding: .2rem .6rem; border-radius: 999px; font-size: .74rem; font-weight: 600; font-family: var(--font-head); }
.badge.requested, .badge.new { background: #fff1d6; color: #8a5a00; }
.badge.confirmed, .badge.published { background: #e4f6ea; color: #1b7a43; }
.badge.cancelled { background: #fde7e7; color: #a51d1d; }
.badge.completed, .badge.read { background: #e7eefb; color: #23468f; }
.badge.closed, .badge.draft { background: #eef1f6; color: #5a6b85; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-2); color: #b9c6ea; padding: 3rem 0 1.5rem; }
.site-footer a { color: #e3ebff; }
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1.3fr; gap: 2.4rem; }
.footer-brand { font-family: var(--font-head); font-weight: 800; font-size: 1.15rem; color: #fff; }
.footer-brand b { color: var(--red); }
.site-footer h4 { color: #fff; margin: 0 0 .7rem; font-size: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .4rem; font-size: .92rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.14); margin-top: 2rem; padding-top: 1.1rem; font-size: .84rem; color: #8ea0cf; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

/* ---------- Admin ---------- */
.admin-shell { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.admin-side { background: var(--navy-2); color: #c3d0ef; padding: 1.6rem 1.1rem; }
.admin-side .brand-txt { font-family: var(--font-head); font-weight: 800; color: #fff; font-size: 1.05rem; margin-bottom: 1.5rem; display: block; }
.admin-side .brand-txt b { color: var(--red); }
.admin-side nav a { display: block; color: #c3d0ef; padding: .62rem .85rem; border-radius: 9px; margin-bottom: .2rem; font-size: .95rem; }
.admin-side nav a:hover, .admin-side nav a.active { background: rgba(255,255,255,.12); color: #fff; }
.admin-main { padding: 2rem; background: var(--mist); }
.admin-main .topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; gap: 1rem; flex-wrap: wrap; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 2rem; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem; box-shadow: var(--shadow-sm); }
.stat .num { font-family: var(--font-head); font-size: 2rem; font-weight: 800; color: var(--blue); }
.stat .label { color: var(--grey); font-size: .86rem; }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .hero-grid, .split, .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .split.reverse .split-media { order: 0; }
  .trust-row { grid-template-columns: 1fr 1fr; }
  .cards.c3, .cards.c2, .values, .journey { grid-template-columns: 1fr 1fr; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .admin-shell { grid-template-columns: 1fr; }
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 76px; left: 0; right: 0; background: #fff;
    flex-direction: column; align-items: stretch; padding: .5rem 22px 1rem; border-bottom: 1px solid var(--line);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: .8rem .5rem; }
  .utility .container { font-size: .78rem; }
}
@media (max-width: 560px) {
  .trust-row, .cards.c3, .cards.c2, .values, .journey, .form-row { grid-template-columns: 1fr; }
  .utility .u-left { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
  .svc::before, .value::before, .news-card::before { display: none; }
}

/* ---------- Generic helpers (used by portal / contact / admin) ---------- */
.grid { display: grid; gap: 1.3rem; }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow-sm); }
.card h3 { margin-top: 0; }
.prose { max-width: 70ch; }
.prose p { margin: 0 0 1rem; color: var(--ink); }
.prose h2 { margin-top: 1.6rem; }
.btn.secondary { background: #fff; color: var(--navy); box-shadow: inset 0 0 0 1.6px var(--line); }
.btn.secondary:hover { background: var(--mist); color: var(--navy); }
.btn.ghost { background: transparent; color: var(--blue); padding-left: 0; }
.btn.ghost:hover { background: transparent; color: var(--blue-7); }
@media (max-width: 920px) { .grid.cols-2, .grid.cols-3 { grid-template-columns: 1fr; } }

/* ---------- Photo hero ---------- */
.hero-photo { position: relative; color: #fff; padding: clamp(4rem, 9vw, 7rem) 0; background-size: cover; background-position: center; }
.hero-inner { max-width: 660px; }
.hero-photo .eyebrow { color: #bcd0ff; }
.hero-photo h1 { color: #fff; font-size: clamp(2.6rem, 6vw, 4.1rem); margin-bottom: 1.1rem; }
.hero-photo .lead { color: #e2eaf8; font-size: 1.25rem; max-width: 54ch; }
.hero-photo .actions { margin-top: 1.9rem; display: flex; gap: .8rem; flex-wrap: wrap; }

/* ---------- Scroll reveals (only when JS is on) ---------- */
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1 !important; transform: none !important; } }

/* ---------- Portal calendar ---------- */
.cal { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow-sm); }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; gap: 1rem; }
.cal-head h3 { margin: 0; }
.cal-nav { display: flex; gap: .4rem; }
.cal-nav a { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 9px; border: 1px solid var(--line); color: var(--navy); font-weight: 700; }
.cal-nav a:hover { background: var(--mist); text-decoration: none; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: .4rem; }
.cal-dow { text-align: center; font-size: .72rem; font-weight: 700; font-family: var(--font-head); color: var(--grey); text-transform: uppercase; letter-spacing: .04em; padding-bottom: .3rem; }
.cal-day { min-height: 66px; border: 1px solid var(--line); border-radius: 10px; padding: .4rem; background: #fff; }
.cal-day.out { background: #fafbfe; }
.cal-day.out .dnum { color: #c3cadb; }
.cal-day.today { border-color: var(--blue); box-shadow: inset 0 0 0 2px rgba(35, 80, 198, .18); }
.cal-day .dnum { font-weight: 700; font-family: var(--font-head); color: var(--navy); font-size: .82rem; }
.cal-appt { margin-top: .25rem; font-size: .66rem; font-weight: 600; font-family: var(--font-head); padding: .12rem .34rem; border-radius: 6px; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-appt.confirmed { background: #e4f6ea; color: #1b7a43; }
.cal-appt.requested { background: #fff1d6; color: #8a5a00; }
.cal-appt.cancelled { background: #fde7e7; color: #a51d1d; text-decoration: line-through; }
.cal-appt.completed { background: #e7eefb; color: #23468f; }
.cal-legend { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1rem; font-size: .8rem; color: var(--grey); }
.cal-legend .key { display: inline-flex; align-items: center; gap: .4rem; }
.cal-legend .sw { width: 12px; height: 12px; border-radius: 4px; }
.live-badge { display: inline-flex; align-items: center; gap: .45rem; font-size: .8rem; color: var(--grey); font-family: var(--font-head); font-weight: 600; }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: #1f9d55; animation: livepulse 2.2s infinite; }
@keyframes livepulse { 0% { box-shadow: 0 0 0 0 rgba(31,157,85,.5); } 70% { box-shadow: 0 0 0 9px rgba(31,157,85,0); } 100% { box-shadow: 0 0 0 0 rgba(31,157,85,0); } }
.update-banner { display: none; align-items: center; justify-content: space-between; gap: 1rem; background: #eaf3ff; border: 1px solid #c3d9f7; color: #1b3f9e; padding: .8rem 1.1rem; border-radius: 11px; margin-bottom: 1.2rem; font-size: .92rem; }
.update-banner.show { display: flex; }
@media (max-width: 560px) { .cal-day { min-height: 52px; padding: .25rem; } .cal-appt { font-size: .58rem; } }
