/* ---------- Tokens ---------- */
:root {
  --indigo: #4744A3;        /* logo indigo: buttons, links, accents */
  --indigo-dark: #2F2C78;   /* headings, hover */
  --indigo-deep: #23215A;   /* footer */
  --mint: #ACDBD6;          /* logo mint */
  --mint-soft: #E6F3F1;     /* tinted sections */
  --cream: #FAF8F3;         /* page background */
  --paper: #FFFFFF;
  --ink: #22243B;           /* body text */
  --muted: #565A72;
  --line: #E2E0EF;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(35,33,90,.06), 0 8px 24px rgba(35,33,90,.08);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1160px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 400 1.1875rem/1.65 var(--sans); /* 19px */
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--indigo); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--indigo-dark); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--indigo); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; color: var(--indigo-dark); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.25rem, 1.6rem + 2.6vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 1.3rem + 1.1vw, 2.1rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 780px; }
.topbar-inner.wrap, .header-inner.wrap { max-width: 1440px; padding-left: 32px; padding-right: 32px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--indigo); color: #fff; padding: 10px 16px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }
.eyebrow { font-size: .85rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--indigo); margin-bottom: .6em; }
.lede { font-size: 1.25rem; color: var(--ink); max-width: 46ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 12px 26px; border-radius: 999px;
  background: var(--indigo); color: #fff; border: 2px solid var(--indigo);
  font-weight: 700; text-decoration: none; line-height: 1.2; text-align: center;
  transition: background .15s, border-color .15s, color .15s;
}
.btn:hover { background: var(--indigo-dark); border-color: var(--indigo-dark); color: #fff; }
.btn-outline { background: transparent; color: var(--indigo); }
.btn-outline:hover { background: var(--indigo); color: #fff; }
.btn-small { min-height: 44px; padding: 8px 18px; font-size: 1rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.6em 0 1em; }

/* ---------- Top bar & header ---------- */
.topbar { background: var(--indigo-deep); color: #E8E7F7; font-size: .95rem; }
.topbar-inner { display: flex; gap: 40px; justify-content: space-between; align-items: center; min-height: 46px; padding-top: 6px; padding-bottom: 6px; white-space: nowrap; }
.topbar-inner > * { flex: none; }
.topbar-inner > .is-dropped { display: none; }
.topbar a { color: #fff; font-weight: 700; text-decoration: none; }
.topbar a:hover { text-decoration: underline; }

.site-header { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 48px; min-height: 92px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: inherit; flex: none; }
.brand img { width: 56px; height: 56px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--serif); font-weight: 600; font-size: 1.4rem; color: var(--indigo-dark); }
.brand-tag { font-size: .85rem; color: var(--muted); }

.site-nav { display: flex; align-items: center; gap: 24px; flex: none; }
.site-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.site-nav li a { display: block; padding: 10px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; font-size: 1.02rem; white-space: nowrap; }
.nav-refill, .brand-name, .brand-tag { white-space: nowrap; }
.site-nav li a:hover { background: var(--mint-soft); color: var(--indigo-dark); }
.site-nav li a[aria-current="page"] { color: var(--indigo); font-weight: 700; box-shadow: inset 0 -3px 0 var(--mint); border-radius: 8px 8px 0 0; }
.nav-toggle { display: none; }

/* ---------- Home hero ---------- */
.hero {
  background:
    radial-gradient(900px 420px at 92% 10%, rgba(172,219,214,.45), transparent 60%),
    radial-gradient(700px 380px at 0% 100%, rgba(71,68,163,.08), transparent 60%),
    var(--cream);
  padding: clamp(48px, 7vw, 96px) 0;
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-call { color: var(--muted); }
.hero-note { font-size: .95rem; color: var(--muted); margin: -.4em 0 .8em; }
.topbar-sister a { font-weight: 400; text-decoration: underline; }
.hero-call a { font-weight: 700; font-size: 1.15rem; white-space: nowrap; }

.visit-card {
  background: var(--paper); border-radius: 20px; padding: 32px; box-shadow: var(--shadow);
  border-top: 6px solid var(--mint);
}
.visit-card h2 { font-size: 1.6rem; }
.visit-addr { font-size: 1.1rem; }
.hours { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; margin: 0 0 1.2em; }
.hours dt { font-weight: 700; }
.hours dd { margin: 0; white-space: nowrap; }
.visit-links { display: flex; flex-wrap: wrap; gap: 10px 20px; padding-top: 16px; border-top: 1px solid var(--line); font-weight: 700; }

/* ---------- Notice strip ---------- */
.notice { background: var(--mint); }
.notice-inner { display: flex; align-items: center; gap: 16px; padding-top: 18px; padding-bottom: 18px; }
.notice p { margin: 0; flex: 1; }
.notice a { color: var(--indigo-deep); font-weight: 700; white-space: nowrap; }
.notice-icon { width: 30px; height: 30px; flex: none; fill: none; stroke: var(--indigo-deep); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 7vw, 96px) 0; }
.section-tint { background: var(--mint-soft); }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head p { color: var(--muted); font-size: 1.15rem; }

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.card {
  display: flex; flex-direction: column; background: var(--paper); border-radius: var(--radius);
  padding: 32px 28px; box-shadow: var(--shadow); text-decoration: none; color: var(--ink);
  border: 1px solid transparent; transition: transform .15s, border-color .15s;
}
.card:hover { transform: translateY(-3px); border-color: var(--mint); color: var(--ink); }
.card p { flex: 1; }
.card-icon { width: 52px; height: 52px; margin-bottom: 18px; padding: 10px; border-radius: 12px; background: var(--mint-soft);
  fill: none; stroke: var(--indigo); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; box-sizing: content-box; }
.card-more { font-weight: 700; color: var(--indigo); }
.card-more::after { content: " →"; }

.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.split-photo { margin: 0; }
.split-photo img { border-radius: 20px; box-shadow: var(--shadow); aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; width: 100%; }

.app { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.app-img { max-width: 340px; margin: 0 auto; }
.badges { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.4em; }
.badges img { height: 52px; width: auto; }

/* ---------- Inner pages ---------- */
.page-hero {
  background:
    radial-gradient(700px 300px at 95% 0%, rgba(172,219,214,.5), transparent 65%),
    var(--cream);
  padding: clamp(44px, 6vw, 80px) 0 clamp(36px, 5vw, 64px);
  border-bottom: 1px solid var(--line);
}
.page-hero .lede { max-width: 60ch; }
.page-hero .actions { margin-bottom: 0; }

.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 5vw, 64px); align-items: start; }
.three-col { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.two-col h2:not(:first-child) { margin-top: 1.4em; }

.checks { list-style: none; padding: 0; margin: 0 0 1.2em; }
.checks li { position: relative; padding-left: 36px; margin-bottom: .7em; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .28em; width: 22px; height: 22px; border-radius: 50%;
  background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%2323215A' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 15px no-repeat;
}

.steps { list-style: none; counter-reset: step; padding: 0; margin: 0 0 1.5em; }
.steps li { counter-increment: step; position: relative; padding: 0 0 1.1em 56px; min-height: 40px; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: -.1em; width: 38px; height: 38px; border-radius: 50%;
  background: var(--indigo); color: #fff; font-weight: 700; display: grid; place-items: center; font-size: 1.05rem;
}
.steps li:not(:last-child)::after { content: ""; position: absolute; left: 18px; top: 40px; bottom: 4px; width: 2px; background: var(--line); }

.panel { background: var(--paper); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.panel :last-child { margin-bottom: 0; }
.panel-accent { border-left: 6px solid var(--mint); }
.note { color: var(--muted); font-style: italic; }

.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; }
.faq summary { cursor: pointer; padding: 18px 56px 18px 22px; font-weight: 700; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 1.6rem; color: var(--indigo); line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 22px 18px; margin: 0; }

.service-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.service { background: var(--paper); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); border-top: 5px solid var(--mint); }
.service h2 { font-size: 1.5rem; }
.service-links { display: flex; flex-wrap: wrap; gap: 8px 20px; font-weight: 700; margin: 0; }

.cta-band { background: var(--indigo); color: #fff; padding: clamp(44px, 6vw, 72px) 0; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { font-size: 1.2rem; margin: 0; }
.cta-band a { color: #fff; font-weight: 700; }

.prose h2 { font-size: 1.5rem; margin-top: 1.6em; }
.prose ul { padding-left: 1.2em; }

/* ---------- Footer ---------- */
.site-footer { background: var(--indigo-deep); color: #DCDBF2; padding: 64px 0 0; font-size: 1.02rem; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1.25fr 1.2fr; gap: 40px; }
.footer-lockup { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.footer-brand img { width: 72px; height: 72px; flex: none; background: #fff; border-radius: 50%; padding: 4px; }
.footer-name { font-family: var(--serif); font-size: 1.35rem; line-height: 1.2; color: #fff; margin: 0; }
.footer-h { font-family: var(--sans); font-size: .85rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--mint); margin-bottom: 1em; }
.footer-note { font-size: .92rem; color: #B9B7DE; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; border-top: 1px solid rgba(255,255,255,.12); margin-top: 48px; padding-top: 20px; padding-bottom: 24px; font-size: .92rem; color: #B9B7DE; }

.callbar { display: none; }

/* ---------- Responsive ---------- */
/* Compact header: the script at the bottom of the page adds .compact
   whenever the full navigation doesn't fit next to the logo, whatever
   the screen size or text zoom. Below 900px it is always compact. */
.site-header.compact .nav-toggle {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 8px 18px;
  background: var(--paper); border: 2px solid var(--line); border-radius: 999px; font: 700 1rem var(--sans); color: var(--indigo-dark); cursor: pointer;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px; position: relative; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.site-header.compact .site-nav {
  display: none; position: absolute; left: 0; right: 0; top: 100%;
  flex-direction: column; align-items: stretch; gap: 12px; padding: 12px 24px 24px;
  background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(35,33,90,.1);
}
.site-header.compact .site-nav.open { display: flex; }
.site-header.compact .site-nav ul { flex-direction: column; }
.site-header.compact .site-nav li a { padding: 14px 12px; font-size: 1.1rem; }
.site-header.compact .site-nav li a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--mint); border-radius: 0 8px 8px 0; }
.site-header.compact .nav-refill { align-self: flex-start; }

@media (max-width: 1140px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .hero-grid, .split, .app, .two-col, .three-col, .service-list { grid-template-columns: minmax(0, 1fr); }
  .cards { grid-template-columns: minmax(0, 1fr); }
  .split-photo img { max-height: 520px; }
  .app-img { max-width: 240px; }
}

@media (max-width: 640px) {
  body { font-size: 1.125rem; padding-bottom: 64px; }
  .wrap { padding: 0 16px; }
  .topbar-inner { justify-content: center; }
  .topbar-inner > span { display: none; }
  .header-inner { min-height: 72px; gap: 12px; }
  .brand img { width: 44px; height: 44px; }
  .brand-name { font-size: 1.15rem; }
  .brand-tag { display: none; }
  .nav-toggle-label { display: none; }
  .actions .btn { width: 100%; }
  .visit-card { padding: 24px; }
  .notice-inner { flex-wrap: wrap; }
  .notice-icon { display: none; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .callbar {
    display: grid; grid-template-columns: repeat(3, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    background: var(--indigo-deep); box-shadow: 0 -4px 16px rgba(0,0,0,.15); padding-bottom: env(safe-area-inset-bottom);
  }
  .callbar a { display: flex; align-items: center; justify-content: center; min-height: 60px; color: #fff; font-weight: 700; text-decoration: none; }
  .callbar a + a { border-left: 1px solid rgba(255,255,255,.15); }
  .callbar a:first-child { background: var(--indigo); }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
