:root {
  --navy: #173b55;
  --navy-2: #0d2f45;
  --teal: #0b6b68;
  --teal-dark: #075452;
  --green: #78bd66;
  --mint: #e9f6f2;
  --sky: #e9f2f7;
  --paper: #ffffff;
  --canvas: #f6f9f8;
  --ink: #17313e;
  --muted: #5d7078;
  --line: #dbe7e5;
  --warning: #fff5db;
  --shadow: 0 18px 55px rgba(25, 66, 79, 0.12);
  --serif: "Iowan Old Style", "Baskerville", "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 100;
  padding: .8rem 1rem;
  color: white;
  background: var(--navy);
  border-radius: .6rem;
}
.skip-link:focus { top: 1rem; }

.proposal-note { background: #e9f6f2; color: #173b55; border-bottom: 1px solid #cfe9e2; }
.proposal-note .container { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .75rem; padding: .45rem 0; font-size: .8rem; line-height: 1.4; }
.proposal-note strong { font-weight: 800; }
.proposal-note a { text-decoration: underline; text-underline-offset: 2px; }

.container { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.eyebrow {
  margin: 0 0 .8rem;
  color: var(--teal);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}
h1, h2, h3 { color: var(--navy-2); line-height: 1.12; }
h1, h2 { font-family: var(--serif); font-weight: 600; letter-spacing: -.025em; }
h1 { margin: 0; font-size: clamp(2.7rem, 6vw, 5.8rem); }
h2 { margin: 0 0 1rem; font-size: clamp(2.15rem, 4vw, 3.8rem); }
h3 { margin: 0 0 .65rem; font-size: 1.12rem; }
p { margin: 0 0 1rem; }
.lead { color: var(--muted); font-size: clamp(1.05rem, 1.6vw, 1.23rem); line-height: 1.65; }
.kicker { color: var(--teal); font-weight: 750; }

.topline { background: var(--navy-2); color: #e9f4f7; font-size: .9rem; }
.topline .container { min-height: 42px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.topline-links { display: flex; align-items: center; gap: 1.25rem; }
.topline a:hover { color: white; text-decoration: underline; }
.health-note { background: var(--mint); color: var(--teal-dark); border-bottom: 1px solid #cfe9e2; }
.health-note .container { display: flex; align-items: center; justify-content: center; gap: .65rem; min-height: 42px; text-align: center; font-size: .92rem; font-weight: 650; }
.health-dot { width: .55rem; height: .55rem; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px rgba(120,189,102,.14); flex: 0 0 auto; }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(14px); border-bottom: 1px solid rgba(219,231,229,.9); }
.nav-wrap { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .8rem; min-width: 230px; }
.brand-mark { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; border: 1px solid #d5e3e7; }
.brand-copy { line-height: 1.05; }
.brand-copy strong { display: block; color: var(--navy); font-family: var(--serif); font-size: 1.14rem; letter-spacing: -.01em; }
.brand-copy span { display: block; margin-top: .32rem; color: var(--teal); font-size: .69rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.desktop-nav { display: flex; align-items: center; gap: 1.4rem; }
.desktop-nav > a { position: relative; color: #3f5864; font-size: .9rem; font-weight: 700; }
.desktop-nav > a:not(.button):after { content: ""; position: absolute; left: 0; right: 100%; bottom: -.55rem; height: 2px; background: var(--green); transition: right .2s ease; }
.desktop-nav > a:hover:after, .desktop-nav > a[aria-current="page"]:after { right: 0; }
.desktop-nav > a[aria-current="page"] { color: var(--navy); }
.menu-button { display: none; align-items: center; justify-content: center; width: 46px; height: 46px; border: 1px solid var(--line); background: white; border-radius: 12px; color: var(--navy); cursor: pointer; }
.mobile-nav { display: none; padding: .7rem 20px 1.25rem; border-top: 1px solid var(--line); background: white; }
.mobile-nav.is-open { display: grid; }
.mobile-nav a { padding: .72rem 0; border-bottom: 1px solid #eef3f2; font-weight: 700; }

.button { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 48px; padding: .75rem 1.15rem; border-radius: 999px; border: 1px solid transparent; font-weight: 800; line-height: 1.1; cursor: pointer; transition: transform .18s ease, background .18s ease, box-shadow .18s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--teal); color: white; box-shadow: 0 10px 28px rgba(11,107,104,.2); }
.button-primary:hover { background: var(--teal-dark); }
.button-secondary { background: white; color: var(--navy); border-color: #cddcda; }
.button-light { background: white; color: var(--teal-dark); }
.button-small { min-height: 42px; padding: .65rem 1rem; font-size: .88rem; }
.text-link { display: inline-flex; align-items: center; gap: .35rem; color: var(--teal); font-weight: 800; }
.text-link:hover { text-decoration: underline; }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }

.hero { padding: 56px 0 34px; overflow: hidden; background: linear-gradient(180deg, #f9fcfb 0%, #fff 100%); }
.hero-shell { position: relative; display: grid; grid-template-columns: minmax(0, .95fr) minmax(420px, 1.05fr); align-items: center; gap: clamp(2rem, 5vw, 5rem); min-height: 590px; }
.hero-shell:before { content: ""; position: absolute; z-index: 0; width: 420px; height: 420px; left: -300px; top: -140px; border: 80px solid rgba(120,189,102,.08); border-radius: 50%; }
.hero-copy, .hero-visual { position: relative; z-index: 1; }
.hero h1 { max-width: 720px; }
.hero h1 em { color: var(--teal); font-style: normal; }
.hero .lead { max-width: 610px; margin-top: 1.4rem; }
.hero-visual { min-height: 530px; }
.hero-photo { width: 100%; height: 520px; object-fit: cover; object-position: 54% center; border-radius: 150px 28px 28px 28px; box-shadow: var(--shadow); }
.hero-card { position: absolute; left: -38px; bottom: 28px; width: min(330px, 78%); padding: 1.15rem 1.25rem; background: rgba(255,255,255,.96); border: 1px solid white; border-radius: 18px; box-shadow: 0 18px 45px rgba(20,57,72,.18); }
.hero-card strong { display: block; color: var(--navy); font-family: var(--serif); font-size: 1.25rem; }
.hero-card span { color: var(--muted); font-size: .9rem; }
.hero-card-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.hero-card .open-badge { color: var(--teal-dark); background: var(--mint); border-radius: 999px; padding: .25rem .55rem; font-size: .72rem; font-weight: 800; white-space: nowrap; }

.trust-strip { padding: 18px 0 0; }
.trust-grid { display: grid; grid-template-columns: repeat(4,1fr); background: var(--navy); color: white; border-radius: 18px; box-shadow: var(--shadow); }
.trust-item { display: flex; align-items: center; gap: .85rem; padding: 1.25rem 1.35rem; border-right: 1px solid rgba(255,255,255,.14); }
.trust-item:last-child { border-right: 0; }
.icon-tile { flex: 0 0 auto; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; color: var(--teal); background: var(--mint); }
.trust-item .icon-tile { color: white; background: rgba(255,255,255,.12); }
.icon { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.trust-item strong { display: block; font-size: .94rem; }
.trust-item span { display: block; color: #c8d8df; font-size: .78rem; line-height: 1.35; }

.section { padding: 96px 0; }
.section-soft { background: var(--canvas); }
.section-mint { background: var(--mint); }
.section-head { max-width: 680px; margin-bottom: 2.2rem; }
.section-head p { color: var(--muted); font-size: 1.05rem; }
.section-head-row { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 2.3rem; }
.section-head-row .section-head { margin: 0; }

.care-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; }
.care-card { min-height: 225px; padding: 1.55rem; display: flex; flex-direction: column; align-items: flex-start; background: white; border: 1px solid var(--line); border-radius: 20px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.care-card:hover { transform: translateY(-5px); border-color: #a8ceca; box-shadow: 0 18px 40px rgba(24,68,75,.1); }
.care-card h3 { margin-top: 1.2rem; }
.care-card p { color: var(--muted); font-size: .94rem; }
.care-card .text-link { margin-top: auto; font-size: .88rem; }

.split { display: grid; grid-template-columns: minmax(0,1.05fr) minmax(360px,.95fr); gap: clamp(2rem,6vw,6rem); align-items: center; }
.photo-panel { position: relative; }
.photo-panel img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 24px 110px 24px 24px; box-shadow: var(--shadow); }
.feature-list { display: grid; gap: 1rem; margin: 2rem 0 0; }
.feature { display: grid; grid-template-columns: 42px 1fr; gap: .85rem; align-items: start; }
.feature p { color: var(--muted); font-size: .94rem; }

.team-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1rem; }
.person-card { overflow: hidden; background: white; border: 1px solid var(--line); border-radius: 20px; }
.person-photo { height: 240px; width: 100%; object-fit: cover; object-position: center top; background: var(--sky); }
.person-body { padding: 1.2rem 1.2rem 1.35rem; }
.person-role { margin-bottom: .65rem; color: var(--teal); font-size: .8rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.person-body p { color: var(--muted); font-size: .9rem; }
.person-meta { display: inline-flex; margin-top: .25rem; color: var(--navy); font-size: .8rem; font-weight: 700; }

.cta-band { padding: 34px 0; background: var(--teal); color: white; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.cta-inner h2 { margin: 0; color: white; font-size: clamp(2rem,3.5vw,3.2rem); }
.cta-inner p { margin: .5rem 0 0; color: #d9f0ed; }

.page-hero { padding: 70px 0 64px; background: linear-gradient(120deg, var(--navy-2) 0%, #155b65 100%); color: white; overflow: hidden; }
.page-hero .container { position: relative; }
.page-hero .container:after { content: ""; position: absolute; width: 360px; height: 360px; right: -120px; top: -210px; border: 70px solid rgba(255,255,255,.08); border-radius: 50%; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: 1.2rem; color: #c7dfe4; font-size: .86rem; font-weight: 650; }
.breadcrumbs a:hover { color: white; text-decoration: underline; }
.page-hero h1 { max-width: 900px; color: white; font-size: clamp(2.7rem,5vw,5.1rem); }
.page-hero .lead { max-width: 760px; margin-top: 1.2rem; color: #d8e9ec; }

.article-grid { display: grid; grid-template-columns: minmax(0,1fr) 330px; gap: 5rem; align-items: start; }
.article { max-width: 760px; }
.article h2 { margin-top: 2.6rem; font-family: var(--serif); font-size: 2rem; }
.article h2:first-child { margin-top: 0; }
.article h3 { margin-top: 1.8rem; }
.article p, .article li { color: #48606a; }
.article ul { padding-left: 1.25rem; }
.article li { margin: .55rem 0; padding-left: .25rem; }
.article-callout { margin: 2rem 0; padding: 1.25rem 1.35rem; background: var(--mint); border-left: 4px solid var(--green); border-radius: 0 14px 14px 0; }
.article-callout strong { display: block; margin-bottom: .25rem; color: var(--navy); }
.side-card { position: sticky; top: 116px; padding: 1.5rem; background: var(--canvas); border: 1px solid var(--line); border-radius: 20px; }
.side-card h3 { font-family: var(--serif); font-size: 1.45rem; }
.side-card p { color: var(--muted); font-size: .92rem; }
.side-card .button { width: 100%; margin-top: .45rem; }
.side-card .button + .button { margin-top: .65rem; }
.mini-details { margin: 1.2rem 0; padding: 1rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.mini-details div { display: flex; justify-content: space-between; gap: 1rem; margin: .42rem 0; color: var(--muted); font-size: .85rem; }
.mini-details strong { color: var(--ink); }

.all-services { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; }
.service-card { display: flex; min-height: 210px; padding: 1.45rem; flex-direction: column; background: white; border: 1px solid var(--line); border-radius: 18px; }
.service-card .service-no { color: var(--green); font-family: var(--serif); font-size: 1.05rem; }
.service-card h3 { margin-top: 1rem; }
.service-card p { color: var(--muted); font-size: .91rem; }
.service-card .text-link { margin-top: auto; font-size: .86rem; }

.directory-list { display: grid; gap: 1rem; }
.directory-card { display: grid; grid-template-columns: 110px 1fr; gap: 1.4rem; padding: 1.5rem; background: white; border: 1px solid var(--line); border-radius: 20px; }
.directory-card.has-no-photo { grid-template-columns: 64px 1fr; }
.profile-photo { width: 110px; height: 130px; object-fit: cover; object-position: center top; border-radius: 14px; background: var(--sky); }
.initials { width: 64px; height: 64px; display: grid; place-items: center; color: white; background: var(--teal); border-radius: 18px; font-family: var(--serif); font-size: 1.35rem; }
.directory-card h3 { font-family: var(--serif); font-size: 1.7rem; }
.directory-role { color: var(--teal); font-size: .8rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.directory-card p { color: var(--muted); }
.language-tag { display: inline-flex; padding: .25rem .55rem; color: var(--navy); background: var(--sky); border-radius: 999px; font-size: .76rem; font-weight: 700; }

.fees-table { width: 100%; margin-top: 1rem; border-collapse: collapse; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; }
.fees-table th, .fees-table td { padding: .9rem 1rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.fees-table th { color: var(--navy); background: var(--canvas); font-size: .82rem; letter-spacing: .04em; text-transform: uppercase; }
.fees-table tr:last-child td { border-bottom: 0; }

.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 1.2rem; }
.contact-card { padding: 1.6rem; background: white; border: 1px solid var(--line); border-radius: 20px; }
.contact-card h3 { font-family: var(--serif); font-size: 1.55rem; }
.hours-row { display: flex; justify-content: space-between; gap: 2rem; padding: .55rem 0; border-bottom: 1px solid #e8efee; }
.hours-row:last-child { border-bottom: 0; }
.map-card { min-height: 480px; display: flex; flex-direction: column; justify-content: end; padding: 2rem; color: white; background: linear-gradient(135deg, rgba(13,47,69,.92), rgba(11,107,104,.82)), url('/assets/ssmc-hero.png') center/cover; border-radius: 24px; }
.map-card h2 { color: white; font-size: 2.65rem; }
.map-card p { color: #e1eff1; }
.emergency { margin-top: 1.2rem; padding: 1.4rem; background: var(--warning); border: 1px solid #efd799; border-radius: 18px; }
.emergency strong { color: #6b4a05; }

.site-footer { padding: 66px 0 26px; color: #d5e4e8; background: var(--navy-2); }
.footer-grid { display: grid; grid-template-columns: 1.3fr .75fr .85fr .9fr; gap: 3rem; }
.site-footer h3 { color: white; font-family: var(--serif); font-size: 1.2rem; }
.site-footer p, .site-footer a { color: #bfd1d7; font-size: .9rem; }
.site-footer a:hover { color: white; text-decoration: underline; }
.footer-links { display: grid; gap: .48rem; }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; margin-top: 3.3rem; padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,.12); color: #9fb4bc; font-size: .8rem; }
.mobile-actions { display: none; }

@media (max-width: 1040px) {
  .desktop-nav { display: none; }
  .menu-button { display: inline-flex; }
  .hero-shell { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .hero h1 { font-size: clamp(2.7rem, 5vw, 4.7rem); }
  .trust-grid { grid-template-columns: repeat(2,1fr); }
  .trust-item:nth-child(2) { border-right: 0; }
  .trust-item:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.14); }
  .team-grid { grid-template-columns: repeat(2,1fr); }
  .all-services { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 780px) {
  body { padding-bottom: 68px; }
  .container { width: min(100% - 28px, 680px); }
  .topline .container { justify-content: center; }
  .topline-address { display: none; }
  .brand-copy strong { font-size: 1rem; }
  .brand-copy span { font-size: .61rem; }
  .brand-mark { width: 48px; height: 48px; }
  .nav-wrap { min-height: 76px; }
  .hero { padding-top: 38px; }
  .hero-shell { display: flex; flex-direction: column; min-height: 0; }
  .hero-copy { width: 100%; }
  .hero-visual { width: 100%; min-height: 370px; }
  .hero-photo { height: 390px; border-radius: 90px 22px 22px 22px; }
  .hero-card { left: 14px; right: 14px; bottom: -18px; width: auto; }
  .trust-strip { padding-top: 48px; }
  .trust-grid, .care-grid, .team-grid, .all-services, .contact-grid { grid-template-columns: 1fr; }
  .trust-item { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.14); }
  .trust-item:nth-child(3) { border-bottom: 1px solid rgba(255,255,255,.14); }
  .trust-item:last-child { border-bottom: 0; }
  .section { padding: 68px 0; }
  .section-head-row, .cta-inner { align-items: flex-start; flex-direction: column; }
  .split, .article-grid { grid-template-columns: 1fr; gap: 2.8rem; }
  .photo-panel { order: -1; }
  .photo-panel img { border-radius: 20px 80px 20px 20px; }
  .article { max-width: none; }
  .side-card { position: static; }
  .page-hero { padding: 52px 0; }
  .directory-card { grid-template-columns: 84px 1fr; gap: 1rem; padding: 1.15rem; }
  .profile-photo { width: 84px; height: 105px; }
  .directory-card.has-no-photo { grid-template-columns: 54px 1fr; }
  .initials { width: 54px; height: 54px; border-radius: 14px; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; }
  .mobile-actions { position: fixed; z-index: 80; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: 1fr 1fr; min-height: 68px; background: white; border-top: 1px solid var(--line); box-shadow: 0 -8px 30px rgba(20,57,72,.11); }
  .mobile-actions a { display: flex; align-items: center; justify-content: center; gap: .45rem; color: var(--navy); font-size: .88rem; font-weight: 800; }
  .mobile-actions a:last-child { margin: 8px; color: white; background: var(--teal); border-radius: 999px; }
}

@media (max-width: 460px) {
  h1 { font-size: 2.6rem; }
  .brand-copy strong { max-width: 175px; }
  .brand-copy span { display: none; }
  .hero-photo { height: 330px; }
  .hero-visual { min-height: 330px; }
  .actions { flex-direction: column; }
  .actions .button { width: 100%; }
  .directory-card, .directory-card.has-no-photo { grid-template-columns: 1fr; }
  .profile-photo { width: 100%; height: 260px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *:before, *:after { transition: none !important; }
}
