:root {
  --ink: #1d3236;
  --muted: #536a6c;
  --sea: #2f6e6a;
  --sea-deep: #23524f;
  --mist: #eaf2f0;
  --line: #d3e1de;
  --paper: #ffffff;
  --sun: #e3a93f;
  --serif: "Source Serif 4", Georgia, serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1120px;
  --radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 1.0625rem/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sea); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--sea-deep); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.18; letter-spacing: -0.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 1.95rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.i { width: 1.15em; height: 1.15em; flex: none; vertical-align: -0.2em; }

.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 50; border-radius: 6px; }
.skip:focus { left: 8px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  background: var(--sea); color: #fff; text-decoration: none; font-weight: 600;
  padding: .8em 1.3em; border-radius: 999px; border: 2px solid var(--sea);
  transition: background-color .15s, border-color .15s;
}
.btn:hover { background: var(--sea-deep); border-color: var(--sea-deep); color: #fff; text-decoration: none; }
.btn-ghost { background: transparent; color: var(--sea); }
.btn-ghost:hover { background: var(--mist); color: var(--sea-deep); }
.btn-small { padding: .5em 1em; font-size: .95rem; }

/* Header */
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.brand { text-decoration: none; color: var(--ink); display: flex; flex-direction: column; line-height: 1.15; }
.brand:hover { color: var(--ink); }
.brand-name { font-family: var(--serif); font-weight: 600; font-size: 1.45rem; }
.brand-sub { color: var(--sea); font-size: .88rem; font-weight: 500; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 24px; }
.site-nav ul a { color: var(--ink); text-decoration: none; font-weight: 500; padding: 6px 0; border-bottom: 2px solid transparent; }
.site-nav ul a:hover { color: var(--sea); }
.site-nav ul a[aria-current="page"] { border-bottom-color: var(--sun); }
.nav-toggle { display: none; }

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex; align-items: center; gap: 6px; background: none; border: 1px solid var(--line);
    border-radius: 999px; padding: 8px 14px; font: inherit; font-weight: 500; color: var(--ink); cursor: pointer;
  }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper);
    border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 20px;
  }
  .site-nav.open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .site-nav ul a[aria-current="page"] { border-bottom-color: var(--line); color: var(--sea); }
  .site-nav .btn { margin-top: 16px; }
}

/* Hero */
.hero {
  position: relative; isolation: isolate; overflow: hidden; color: #fff;
  min-height: clamp(520px, 78vh, 760px); display: flex; align-items: center;
  padding: clamp(56px, 9vw, 112px) 0; background: #34484d;
}
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; z-index: -2; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(16,52,54,.84) 0%, rgba(16,52,54,.62) 42%, rgba(16,52,54,.18) 78%);
}
.hero-pause {
  position: absolute; right: 20px; bottom: 76px; z-index: 2; width: 40px; height: 40px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.55); background: rgba(16,52,54,.35); color: #fff; cursor: pointer;
  display: grid; place-items: center; padding: 0;
}
.hero-pause:hover { background: rgba(16,52,54,.6); }
.hero-pause svg { width: 18px; height: 18px; }
.hero-pause .i-play, .hero-pause[aria-pressed="true"] .i-pause { display: none; }
.hero-pause[aria-pressed="true"] .i-play { display: block; }
.hero-wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: clamp(36px, 6vw, 80px); fill: var(--mist); z-index: 1; pointer-events: none; }
.hero-inner { width: min(var(--wrap), 100% - 32px); }
.hero-text { max-width: 620px; }
.hero-place { color: #f3d08a; font-weight: 600; margin-bottom: .8em; }
.hero h1 { max-width: 18ch; color: #fff; }
.hero .lead { color: rgba(255,255,255,.9); }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 56ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 18px; }
.hero-note { font-size: .95rem; color: rgba(255,255,255,.82); max-width: 52ch; margin: 0; }
.btn-light { background: #fff; border-color: #fff; color: var(--sea-deep); }
.btn-light:hover { background: var(--mist); border-color: var(--mist); color: var(--sea-deep); }
.btn-outline-light { background: transparent; border-color: rgba(255,255,255,.85); color: #fff; }
.btn-outline-light:hover { background: rgba(255,255,255,.14); border-color: #fff; color: #fff; }
@media (max-width: 760px) {
  .hero { min-height: 0; }
  .hero-bg { object-position: 58% 50%; }
  .hero::before { background: linear-gradient(180deg, rgba(16,52,54,.6) 0%, rgba(16,52,54,.84) 100%); }
  .hero { padding-bottom: 96px; }
  .hero-pause { right: 14px; bottom: 52px; width: 36px; height: 36px; }
}

/* Sections */
.section { padding: clamp(48px, 8vw, 96px) 0; }
.band { background: var(--mist); padding: clamp(48px, 7vw, 88px) 0; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 24px; margin-bottom: 28px; }
.section-head h2 { margin: 0; }
.section-head p { margin: 0; color: var(--muted); }

.about-grid { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 32px 64px; align-items: center; }
.about-photo { margin: 0; }
.about-photo img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%;
  border-radius: var(--radius); box-shadow: 12px 12px 0 var(--paper), 12px 12px 0 1px var(--line);
}
@media (max-width: 760px) { .about-grid { grid-template-columns: 1fr; } .about-photo { max-width: 240px; } }

.prose { max-width: 68ch; }
.prose h2 { margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.4em; margin-bottom: .3em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.prose blockquote {
  margin: 1.5em 0; padding: .2em 0 .2em 1.2em; border-left: 3px solid var(--sun);
  font-family: var(--serif); font-size: 1.3rem; line-height: 1.45; color: var(--ink);
}

/* Services list */
.svc-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 48px; border-top: 1px solid var(--line); }
.svc-list li { border-bottom: 1px solid var(--line); }
.svc-list a { display: grid; gap: 4px; padding: 22px 32px 22px 0; text-decoration: none; color: var(--ink); position: relative; }
.svc-list a::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 9px; height: 9px;
  border-right: 2px solid var(--sea); border-top: 2px solid var(--sea); transform: translateY(-50%) rotate(45deg);
  transition: right .15s;
}
.svc-list a:hover::after { right: 0; }
.svc-name { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; color: var(--sea-deep); }
.svc-desc { color: var(--muted); }
@media (max-width: 760px) { .svc-list { grid-template-columns: 1fr; } }

/* Trees strip */
.trees img { width: 100%; height: clamp(180px, 26vw, 320px); object-fit: cover; object-position: center 40%; }

/* Steps (a real sequence) */
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.steps li { counter-increment: step; display: grid; gap: 6px; align-content: start; padding-top: 18px; border-top: 2px solid var(--sea); }
.steps li::before { content: counter(step); font-family: var(--serif); font-size: 2.2rem; line-height: 1; color: var(--sun); font-weight: 600; }
.step-title { font-weight: 600; font-size: 1.1rem; }
.steps-inline { grid-template-columns: 1fr; gap: 20px; margin: 1em 0 1.5em; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; gap: 24px; } }

/* Visit */
.visit-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 40px; align-items: center; }
.visit-line { display: flex; gap: 10px; align-items: baseline; margin-bottom: .7em; }
.visit-line .i { color: var(--sea); }
.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--paper); }
.map iframe { display: block; width: 100%; height: 320px; border: 0; }
.map-tall iframe { height: 100%; min-height: 420px; }
@media (max-width: 760px) { .visit-grid { grid-template-columns: 1fr; } }

/* Inner pages */
.page-head { background: var(--mist); padding: clamp(40px, 6vw, 72px) 0 clamp(32px, 5vw, 56px); }
.page-head h1 { max-width: 22ch; }
.page-head .lead { margin-bottom: 0; color: var(--ink); opacity: .85; }
.page-body { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 64px; padding: clamp(40px, 6vw, 72px) 0 clamp(56px, 8vw, 96px); align-items: start; }
@media (max-width: 900px) { .page-body { grid-template-columns: 1fr; gap: 40px; } }

.book-card {
  position: sticky; top: 100px; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; display: grid; gap: 10px; background: var(--paper);
}
.book-card p { margin: 0 0 6px; color: var(--muted); }
.book-title { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; color: var(--ink) !important; }
.book-card .btn { width: 100%; }
.book-meta { font-size: .93rem; margin-top: 8px !important; line-height: 1.8; }
@media (max-width: 900px) { .book-card { position: static; } }

.related { margin-top: 3em; padding-top: 1.5em; border-top: 1px solid var(--line); }
.related-title { font-weight: 600; }
.related ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.related a { display: inline-block; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-size: .95rem; }
.related a:hover { border-color: var(--sea); background: var(--mist); }

.inline-photo { margin: 2em 0 0; max-width: 220px; }
.inline-photo img { border-radius: var(--radius); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: stretch; }
.contact-methods { display: grid; gap: 12px; align-content: start; }
.contact-tile {
  display: flex; gap: 16px; align-items: center; padding: 18px 20px; border: 1px solid var(--line);
  border-radius: var(--radius); text-decoration: none; color: var(--ink);
}
.contact-tile:hover { border-color: var(--sea); background: var(--mist); color: var(--ink); }
.contact-tile .i { width: 28px; height: 28px; color: var(--sea); }
.contact-tile span { display: grid; word-break: break-word; }
.contact-tile strong { font-size: .9rem; color: var(--muted); font-weight: 500; }
.contact-details { margin-top: 24px; }
.contact-details h2 { font-size: 1.3rem; }
.hours { border-collapse: collapse; width: 100%; max-width: 360px; }
.hours th, .hours td { text-align: left; padding: 8px 0; border-bottom: 1px solid var(--line); font-weight: 400; }
.hours td { text-align: right; color: var(--muted); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } .map-tall iframe { min-height: 320px; } }

/* Footer */
.site-footer { background: var(--ink); color: #d6e3e1; padding: 56px 0 24px; font-size: .97rem; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1.2fr; gap: 40px; }
.footer-brand { font-family: var(--serif); font-size: 1.3rem; color: #fff; font-weight: 600; }
.footer-head { color: #fff; font-weight: 600; margin-bottom: .4em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .35em; }
.crisis { font-size: .93rem; }
.footer-base { border-top: 1px solid rgba(255,255,255,.15); margin-top: 40px; padding-top: 20px; font-size: .88rem; }
.footer-base p { margin: 0; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }

/* Mobile quick-contact bar */
.mobile-bar { display: none; }
@media (max-width: 760px) {
  body { padding-bottom: 68px; }
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    background: var(--paper); border-top: 1px solid var(--line); padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); gap: 10px;
  }
  .mobile-bar a {
    display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px; border-radius: 999px;
    font-weight: 600; text-decoration: none; background: var(--sea); color: #fff;
  }
  .mobile-bar a + a { background: var(--mist); color: var(--sea-deep); }
}

/* Contact form */
.contact-side { display: grid; gap: 28px; align-content: start; }
.contact-side .contact-details { margin-top: 0; }
.contact-form { display: grid; gap: 14px; margin-top: 24px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); }
.contact-form h2 { font-size: 1.3rem; margin: 0; }
.form-note { color: var(--muted); font-size: .95rem; margin: 0; }
.contact-form label { display: grid; gap: 6px; font-weight: 500; }
.contact-form .opt { color: var(--muted); font-weight: 400; }
.contact-form input, .contact-form textarea {
  font: inherit; color: var(--ink); padding: 12px 14px; border: 1px solid #b9cdc9; border-radius: 10px; background: #fff; width: 100%;
}
.contact-form input:focus, .contact-form textarea:focus { outline: 3px solid var(--sun); outline-offset: 1px; border-color: var(--sea); }
.contact-form input[aria-invalid="true"], .contact-form textarea[aria-invalid="true"] { border-color: #b3412e; }
.contact-form .btn { justify-self: start; cursor: pointer; font: inherit; font-weight: 600; }
.contact-form .btn[disabled] { opacity: .6; cursor: wait; }
.hp { position: absolute; left: -9999px; }
.form-status { margin: 0; font-weight: 500; }
.form-status.ok { color: var(--sea-deep); }
.form-status.err { color: #b3412e; }

/* Services dropdown */
.has-sub { position: relative; display: flex; align-items: center; gap: 2px; }
.sub-toggle {
  background: none; border: 0; padding: 6px 4px; margin: 0; color: var(--ink); cursor: pointer;
  display: inline-flex; align-items: center; border-radius: 6px;
}
.sub-toggle svg { width: 12px; height: 12px; transition: transform .15s; }
.has-sub.open .sub-toggle svg { transform: rotate(180deg); }
.site-nav .sub {
  list-style: none; margin: 0; padding: 8px; position: absolute; top: 100%; left: -16px; min-width: 290px;
  display: none; flex-direction: column; gap: 0; background: var(--paper);
  border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 28px rgba(29,50,54,.12); z-index: 40;
}
/* invisible bridge so the menu doesn't close while the pointer crosses the gap */
.site-nav .sub::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.site-nav .sub { margin-top: 10px; }
.site-nav .sub a { display: block; padding: 10px 12px; border-radius: 8px; border-bottom: 0; font-weight: 500; white-space: nowrap; }
.site-nav .sub a:hover, .site-nav .sub a:focus-visible { background: var(--mist); color: var(--sea-deep); }
@media (min-width: 861px) {
  .has-sub:hover .sub, .has-sub:focus-within .sub, .has-sub.open .sub { display: flex; }
}
@media (max-width: 860px) {
  .has-sub { flex-wrap: wrap; }
  .has-sub > a { flex: 1; }
  .sub-toggle { padding: 14px 10px; border-bottom: 1px solid var(--line); border-radius: 0; align-self: stretch; }
  .sub-toggle svg { width: 16px; height: 16px; }
  .site-nav .sub {
    position: static; margin: 0; padding: 0 0 6px 14px; min-width: 0; width: 100%;
    border: 0; border-radius: 0; box-shadow: none; border-bottom: 1px solid var(--line);
  }
  .site-nav .sub::before { display: none; }
  .site-nav .sub a { padding: 10px 0; white-space: normal; color: var(--muted); }
  .has-sub.open .sub { display: flex; }
}
@media (min-width: 861px) { .site-nav > ul { align-items: center; } .site-nav > ul > li > a { display: inline-block; } }
