/* Still Waters Family Healthcare — design system
   Identity: calm coastal blues (from the logo), wave motif, "runs deep" voice.
   Type: Fraunces (warm display serif) + Inter (clean UI/body). */

:root {
  /* brand blues, sampled to the logo gradient */
  --deep:   #0B4F8A;   /* deep ocean — primary */
  --blue:   #1C7FC4;   /* mid water */
  --sky:    #2CACE3;   /* bright cyan accent */
  --aqua:   #8FD3EF;   /* soft light */
  --mist:   #EAF4FB;   /* pale wash background */
  --ink:    #0A2233;   /* deep navy text */
  --muted:  #4C6675;   /* slate blue-grey text */
  --sand:   #F6F2EA;   /* warm neutral, balances the blue */
  --paper:  #ffffff;
  --star:   #F5A623;   /* rating gold */
  --line:   #DCE8F0;   /* hairlines */

  --grad: linear-gradient(135deg, var(--deep) 0%, var(--blue) 55%, var(--sky) 100%);
  --grad-soft: linear-gradient(160deg, #f4fafe 0%, var(--mist) 100%);

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  --container: 1160px;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 18px 50px -22px rgba(11,79,138,.35);
  --shadow-sm: 0 8px 24px -14px rgba(11,79,138,.35);
  --ease: cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 92px; }

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -.01em;
  color: var(--ink);
  margin: 0 0 .5em;
  font-optical-sizing: auto;
}
h1 { font-size: clamp(2.4rem, 5.2vw, 4rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1.1rem; }
a { color: var(--deep); text-decoration-color: rgba(28,127,196,.35); text-underline-offset: 3px; }

img { max-width: 100%; display: block; height: auto; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }

.eyebrow {
  font-family: var(--font-body);
  font-weight: 600; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--blue); margin: 0 0 .8rem; display: inline-flex; align-items: center; gap: .5rem;
}
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-head { max-width: 640px; margin-bottom: 3rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.lede { font-size: 1.18rem; color: var(--muted); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font-weight: 600; font-size: 1rem; line-height: 1;
  padding: 1rem 1.6rem; border-radius: 999px; cursor: pointer;
  border: 1.5px solid transparent; text-decoration: none;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 20px 40px -16px rgba(11,79,138,.55); }
.btn-ghost { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.55); }
.btn-ghost:hover { background: rgba(255,255,255,.24); }
.btn-outline { background: #fff; color: var(--deep); border-color: var(--line); }
.btn-outline:hover { border-color: var(--sky); transform: translateY(-2px); }

/* header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.82); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 1.5rem; height: 76px; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; margin-right: auto; }
.brand img { height: 52px; width: 52px; }
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 1.18rem; color: var(--deep); line-height: 1; }
.brand-name span { display: block; font-family: var(--font-body); font-weight: 500; font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--sky); margin-top: 4px; }
.nav-links { display: flex; align-items: center; gap: 1.4rem; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .96rem; transition: color .2s; }
.nav-links a:hover { color: var(--blue); }
.nav-cta { display: flex; align-items: center; gap: .8rem; }
.nav-phone { display: inline-flex; align-items: center; gap: .45rem; font-weight: 600; color: var(--deep); text-decoration: none; white-space: nowrap; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: .3s; border-radius: 2px; }

/* hero */
.hero { position: relative; background: var(--grad); color: #fff; overflow: hidden; }
.hero::after { /* faint concentric ripple */
  content: ""; position: absolute; right: -12%; top: -20%; width: 620px; height: 620px;
  background: radial-gradient(circle, rgba(255,255,255,.14) 0 1px, transparent 1px) ;
  border-radius: 50%; opacity: .25; pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3.5rem; align-items: center;
  padding: clamp(56px, 8vw, 104px) 0 clamp(96px, 11vw, 150px); position: relative; z-index: 2; }
.hero h1 { color: #fff; }
.hero h1 em { font-style: italic; color: var(--aqua); }
.hero .lede { color: rgba(255,255,255,.9); font-size: 1.22rem; max-width: 30ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }
.hero-trust { display: flex; gap: 1.8rem; margin-top: 2.4rem; flex-wrap: wrap; }
.hero-trust div { font-size: .92rem; color: rgba(255,255,255,.85); }
.hero-trust b { display: block; font-family: var(--font-display); font-size: 1.5rem; color: #fff; font-weight: 600; }
.stars { color: var(--star); letter-spacing: 2px; }

.hero-portrait { position: relative; }
.hero-portrait img { border-radius: 240px 240px var(--radius) var(--radius); box-shadow: var(--shadow);
  border: 6px solid rgba(255,255,255,.5); aspect-ratio: 4/5; object-fit: cover; object-position: top center; }
.hero-badge {
  position: absolute; left: -18px; bottom: 26px; background: #fff; color: var(--ink);
  border-radius: 16px; padding: .9rem 1.1rem; box-shadow: var(--shadow); display: flex; gap: .7rem; align-items: center;
  max-width: 230px;
}
.hero-badge b { font-family: var(--font-display); }
.hero-badge small { color: var(--muted); }

/* wave divider */
.wave { display: block; width: 100%; height: auto; margin: 0; line-height: 0; }
.wave svg { display: block; width: 100%; height: 70px; }

/* trust strip */
.strip { background: var(--sand); }
.strip-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; padding: 2.2rem 0; text-align: center; }
.strip-grid .item b { display: block; font-family: var(--font-display); font-size: 1.7rem; color: var(--deep); }
.strip-grid .item span { color: var(--muted); font-size: .92rem; }

/* welcome / intro */
.intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; }
.intro-media { border-radius: var(--radius); background: var(--grad-soft); padding: 2rem; position: relative; }
.pull { font-family: var(--font-display); font-size: 1.7rem; color: var(--deep); line-height: 1.25; }

/* services */
.services { background: var(--grad-soft); }
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.svc {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.7rem;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.svc:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: transparent; }
.svc-ic { width: 48px; height: 48px; border-radius: 12px; background: var(--mist); display: grid; place-items: center; margin-bottom: 1.1rem; }
.svc-ic svg { width: 26px; height: 26px; stroke: var(--blue); fill: none; stroke-width: 1.7; }
.svc h3 { margin-bottom: .4rem; }
.svc p { color: var(--muted); font-size: .96rem; margin: 0; }

/* provider */
.provider-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 3.5rem; align-items: center; }
.provider-photo img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4/5; object-fit: cover; object-position: top center; }
.cred { display: inline-flex; gap: .5rem; align-items: center; background: var(--mist); color: var(--deep);
  padding: .4rem .8rem; border-radius: 999px; font-weight: 600; font-size: .85rem; margin-bottom: 1rem; }

/* approach */
.approach { background: var(--deep); color: #fff; position: relative; }
.approach h2 { color: #fff; }
.appr-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 2.5rem; }
.appr .n { font-family: var(--font-display); font-size: 1.1rem; color: var(--aqua); display: block; margin-bottom: .4rem; }
.appr h3 { color: #fff; }
.appr p { color: rgba(255,255,255,.8); font-size: .98rem; margin: 0; }
.appr .item { border-top: 2px solid rgba(255,255,255,.2); padding-top: 1.1rem; }

/* reviews */
.rev-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
.rev { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.7rem; position: relative; }
.rev .stars { font-size: 1.05rem; margin-bottom: .7rem; }
.rev p { font-size: 1.02rem; color: var(--ink); font-style: italic; }
.rev cite { font-style: normal; font-weight: 600; color: var(--deep); }
.rev-head { text-align: center; }
.rating-big { display: inline-flex; align-items: center; gap: .8rem; background: var(--mist); border-radius: 999px; padding: .6rem 1.2rem; margin-top: .5rem; }
.rating-big b { font-family: var(--font-display); font-size: 1.6rem; color: var(--deep); }

/* CTA band */
.cta-band { background: var(--grad); color: #fff; border-radius: var(--radius); padding: clamp(2.5rem,5vw,4rem); text-align: center; box-shadow: var(--shadow); }
.cta-band h2 { color: #fff; }
.cta-band .lede { color: rgba(255,255,255,.9); }
.cta-band .hero-cta { justify-content: center; }

/* footer */
.footer { background: var(--ink); color: rgba(255,255,255,.78); padding: 4rem 0 2rem; font-size: .95rem; }
.footer a { color: rgba(255,255,255,.78); text-decoration: none; }
.footer a:hover { color: #fff; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2.5rem; margin-bottom: 2.5rem; }
.footer h4 { color: #fff; font-family: var(--font-body); font-weight: 600; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 1rem; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.foot-brand img { height: 64px; width: 64px; margin-bottom: 1rem; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.14); padding-top: 1.5rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .85rem; color: rgba(255,255,255,.55); }
.foot-contact li { display: flex; gap: .6rem; align-items: flex-start; }
.foot-contact svg { width: 18px; height: 18px; stroke: var(--sky); fill: none; stroke-width: 1.7; flex-shrink: 0; margin-top: 2px; }

/* utilities */
.skip { position: absolute; left: -999px; top: 0; background: #fff; padding: 10px 16px; z-index: 100; border-radius: 0 0 8px 0; }
.skip:focus { left: 0; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 4px; }

/* responsive */
@media (max-width: 940px) {
  .hero-grid, .intro-grid, .provider-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-portrait { max-width: 380px; }
  .svc-grid, .appr-grid { grid-template-columns: repeat(2, 1fr); }
  .strip-grid { grid-template-columns: repeat(2, 1fr); gap: 1.6rem 1rem; }
  .rev-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav-links, .nav-phone { display: none; }
  .nav-toggle { display: block; }
  .nav[data-open="true"] .nav-links {
    display: flex; position: absolute; top: 76px; left: 0; right: 0; flex-direction: column;
    background: #fff; padding: 1.2rem 24px; gap: 1rem; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-sm);
  }
  .svc-grid, .appr-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ============ sub-page components ============ */

/* page hero (compact gradient header) */
.page-hero { background: var(--grad); color: #fff; position: relative; overflow: hidden; }
.page-hero .container { padding-top: clamp(48px, 6vw, 78px); padding-bottom: clamp(70px, 8vw, 104px); position: relative; z-index: 2; }
.page-hero h1 { color: #fff; max-width: 16ch; }
.page-hero .lede { color: rgba(255,255,255,.9); max-width: 52ch; }
.page-hero .eyebrow { color: var(--aqua); }
.crumbs { font-size: .88rem; color: rgba(255,255,255,.75); margin-bottom: 1.2rem; }
.crumbs a { color: rgba(255,255,255,.9); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* generic media frame for images */
.media-frame { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--grad-soft); }
.media-frame img { width: 100%; height: 100%; object-fit: cover; }
.img-ph { /* placeholder while awaiting real/AI image */
  display: grid; place-items: center; text-align: center; color: var(--blue);
  background: var(--grad-soft); border: 2px dashed var(--aqua); border-radius: var(--radius);
  min-height: 280px; padding: 2rem; font-size: .9rem;
}
.img-ph svg { width: 40px; height: 40px; stroke: var(--sky); fill: none; stroke-width: 1.5; margin-bottom: .6rem; }

/* service detail rows */
.svc-detail { display: grid; gap: 2.5rem; }
.svc-row { display: grid; grid-template-columns: 64px 1fr; gap: 1.4rem; padding-bottom: 2.5rem; border-bottom: 1px solid var(--line); scroll-margin-top: 100px; }
.svc-row:last-child { border-bottom: 0; padding-bottom: 0; }
.svc-row .svc-ic { width: 64px; height: 64px; margin: 0; }
.svc-row .svc-ic svg { width: 32px; height: 32px; }
.svc-row h3 { font-size: 1.45rem; }
.svc-row p { color: var(--muted); margin-bottom: .6rem; }
.svc-row .tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .8rem; }
.svc-row .tags span { background: var(--mist); color: var(--deep); border-radius: 999px; padding: .3rem .8rem; font-size: .82rem; font-weight: 500; }

/* two-column content */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; }
.split.narrow { grid-template-columns: 1.15fr .85fr; }
.check-list { list-style: none; margin: 1.2rem 0 0; padding: 0; display: grid; gap: .9rem; }
.check-list li { display: flex; gap: .7rem; align-items: flex-start; color: var(--ink); }
.check-list svg { width: 22px; height: 22px; flex-shrink: 0; margin-top: 3px; stroke: var(--blue); fill: none; stroke-width: 2; }
.step-list { counter-reset: step; list-style: none; margin: 0; padding: 0; display: grid; gap: 1.4rem; }
.step-list li { display: grid; grid-template-columns: 40px 1fr; gap: 1rem; align-items: start; }
.step-list li::before { counter-increment: step; content: counter(step); width: 40px; height: 40px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; font-family: var(--font-display); font-weight: 600; }
.step-list h3 { margin-bottom: .2rem; font-size: 1.15rem; }
.step-list p { margin: 0; color: var(--muted); font-size: .97rem; }

/* FAQ */
.faq { max-width: 800px; margin-inline: auto; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: .9rem; background: #fff; transition: box-shadow .25s, border-color .25s; }
.faq details[open] { box-shadow: var(--shadow-sm); border-color: transparent; }
.faq summary { cursor: pointer; padding: 1.2rem 1.4rem; font-family: var(--font-display); font-size: 1.12rem; color: var(--deep); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; color: var(--sky); transition: transform .25s; line-height: 1; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .ans { padding: 0 1.4rem 1.3rem; color: var(--muted); }

/* contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 3rem; align-items: start; }
.info-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow-sm); }
.info-card .row { display: flex; gap: .9rem; align-items: flex-start; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.info-card .row:last-child { border-bottom: 0; }
.info-card .row:first-child { padding-top: 0; }
.info-card svg { width: 22px; height: 22px; stroke: var(--blue); fill: none; stroke-width: 1.7; flex-shrink: 0; margin-top: 2px; }
.info-card .row b { display: block; color: var(--ink); }
.info-card .row a { color: var(--deep); text-decoration: none; }
.map-embed { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--line); margin-top: 1.5rem; }
.map-embed iframe { display: block; width: 100%; height: 300px; border: 0; }

/* form */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow-sm); }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .4rem; color: var(--ink); }
.field input, .field textarea, .field select {
  width: 100%; padding: .85rem 1rem; border: 1.5px solid var(--line); border-radius: 10px;
  font-family: inherit; font-size: 1rem; color: var(--ink); background: #fff; transition: border-color .2s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--sky); }
.field textarea { min-height: 120px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-note { font-size: .85rem; color: var(--muted); background: var(--mist); border-radius: 10px; padding: .8rem 1rem; margin-bottom: 1.2rem; }
.btn-primary.full { width: 100%; justify-content: center; }

@media (max-width: 940px) {
  .split, .split.narrow, .contact-grid { grid-template-columns: 1fr; gap: 2.2rem; }
}
@media (max-width: 620px) {
  .svc-row { grid-template-columns: 1fr; gap: .8rem; }
  .form-row { grid-template-columns: 1fr; }
}
