/* Harborlight Counseling: calm + flowing.
   Signature: a drifting fog field with a lamp-light that breathes
   (4s in, 4s out) and slowly follows the cursor. */

:root {
  --bg: #EDF1F1; --surface: #F8FAFA; --ink: #1C2B36; --ink-soft: #4A5965;
  --water: #2E5566; --link: #2E5566; --accent: #C98A2E; --line: #C8D1D3;
  --focus: #2E5566; --night: #14212B; --radius: 6px;
  --font-display: "Newsreader", Georgia, serif;
  --font-body: "Atkinson Hyperlegible", system-ui, sans-serif;
}
.site-header { background: transparent; border-bottom-color: transparent; position: absolute; left: 0; right: 0; top: 0; }
.js .site-nav.is-open { background: var(--surface); border-radius: var(--radius); padding-inline: 1rem; box-shadow: 0 20px 40px -20px rgba(20,33,43,.35); }
.brand .mark-light { fill: var(--accent); }
.brand .mark-line { stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.btn:hover { background: var(--water); }

/* ---------- Hero with fog canvas ---------- */
.hero { position: relative; padding-block: clamp(6.5rem, 10vw, 8rem) clamp(3rem, 6vw, 4.5rem); }
.hero__bg { position: absolute; inset: 0; overflow: hidden; }
.hero__bg canvas { width: 100%; height: 100%; }
.hero__bg::after { /* soft fade into the page */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 30%;
  background: linear-gradient(to bottom, rgba(237,241,241,0), var(--bg));
}
.hero .wrap { position: relative; }
.hero-grid { display: grid; gap: 3rem; align-items: center; }
.hero h1 { max-width: 12ch; }
.hero .lede { max-width: 34rem; color: var(--ink); }
.hero__hint { margin-top: 2.5rem; font-size: .9rem; color: var(--ink-soft); display: flex; align-items: center; gap: .6rem; }
.hero__hint::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); animation: breathe 8s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { transform: scale(.7); opacity: .6; } 50% { transform: scale(1.4); opacity: 1; } }
.hero-photo { width: 100%; aspect-ratio: 4 / 5; max-height: 32rem; object-fit: cover; object-position: 78% 60%; border-radius: var(--radius);
  box-shadow: 0 40px 80px -40px rgba(20, 33, 43, .55); }
@media (min-width: 56rem) {
  .hero-grid { grid-template-columns: 7fr 4fr; }
  .hero-photo { margin-bottom: -7rem; position: relative; z-index: 2; transform: rotate(1.5deg); align-self: end; }
}

/* ---------- Racing thoughts ---------- */
.thoughts { padding-block: clamp(5rem, 12vw, 11rem) clamp(4rem, 8vw, 6rem); }
.thoughts__kicker { font-family: var(--font-body); font-size: 1.05rem; color: var(--ink-soft); font-weight: 400; margin-bottom: 2.5rem; }
.thought-list { list-style: none; padding: 0; margin: 0; }
.thought-list li {
  font-family: var(--font-display); font-size: clamp(1.6rem, 3.8vw, 3rem); line-height: 1.15;
  letter-spacing: -0.01em; max-width: 20ch; margin-bottom: clamp(1.75rem, 4vw, 3rem);
}
.thought-list li:nth-child(2) { margin-left: clamp(1.5rem, 18vw, 18rem); }
.thought-list li:nth-child(3) { margin-left: clamp(.5rem, 6vw, 6rem); }
.thought-list li:nth-child(4) { margin-left: clamp(2.5rem, 28vw, 28rem); }
/* thoughts come into focus like fog clearing */
.js .thought-list .reveal { filter: blur(8px); transform: none; transition: opacity 1.4s ease, filter 1.4s ease; }
.js .thought-list .reveal.is-in { filter: none; }
.settle { font-size: 1.2rem; display: flex; gap: .75rem; align-items: center; margin-top: 1rem; }
.settle::before { content: ""; flex: none; width: 3rem; height: 2px; background: var(--accent); }

/* ---------- Maya ---------- */
.maya { background: var(--surface); padding-block: clamp(4rem, 9vw, 7rem); }
.maya-grid { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 52rem) { .maya-grid { grid-template-columns: 5fr 6fr; gap: 5rem; } }
.portrait-stack { position: relative; max-width: 26rem; margin-right: 1.5rem; }
.portrait-stack::before { content: ""; position: absolute; inset: 2.25rem -1.5rem -1.5rem 2.25rem; background: var(--water); border-radius: var(--radius); }
.portrait-stack::after { content: ""; position: absolute; right: -0.6rem; top: 1rem; width: 18px; height: 18px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 10px rgba(201,138,46,.18); }
.portrait-stack img { position: relative; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.pull { font-family: var(--font-display); font-style: italic; font-size: clamp(1.6rem, 3.2vw, 2.4rem); line-height: 1.2; margin: 0 0 2rem; color: var(--water); }

/* ---------- Timeline on the horizon ---------- */
.timeline { list-style: none; padding: 0; margin: 2.5rem 0 0; display: grid; gap: 2.25rem; position: relative; }
.timeline::before { content: ""; position: absolute; background: var(--ink); left: 8px; top: 8px; bottom: 8px; width: 2px; }
.timeline li { position: relative; padding-left: 2.75rem; }
.timeline li::before { content: ""; position: absolute; left: 1px; top: .35rem; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); box-shadow: inset 0 0 0 2px var(--ink); }
.timeline li:first-child::before { background: var(--accent); box-shadow: 0 0 0 6px rgba(201,138,46,.2); animation: glow 8s ease-in-out infinite; }
@keyframes glow { 0%, 100% { box-shadow: 0 0 0 4px rgba(201,138,46,.25); } 50% { box-shadow: 0 0 0 18px rgba(201,138,46,.05); } }
.timeline h3 { margin-bottom: .3em; }
@media (min-width: 52rem) {
  .timeline { grid-template-columns: repeat(3, 1fr); gap: 3rem; }
  .timeline::before { left: 0; right: 0; top: 8px; bottom: auto; width: auto; height: 2px; }
  .timeline li { padding-left: 0; padding-top: 2.5rem; }
  .timeline li::before { left: 0; top: 0; }
}

/* ---------- Night harbor (dark CTA band) ---------- */
.night { position: relative; overflow: hidden; background: var(--night); color: #DCE4E5; padding-block: clamp(4.5rem, 10vw, 8rem); }
.night::before { content: ""; position: absolute; width: 60rem; height: 60rem; right: -25rem; top: -30rem;
  background: radial-gradient(circle, rgba(201,138,46,.35), rgba(201,138,46,0) 60%); pointer-events: none; }
.night .wrap { position: relative; }
.night h2 { color: #fff; font-size: clamp(2.2rem, 5vw, 3.8rem); }
.night a { color: #E8BE76; }
.night .btn { background: #F3EBDD; color: var(--night); }
.night .btn:hover { background: #fff; }
.night :focus-visible { outline-color: #E8BE76; }
.night-grid { display: grid; gap: 3rem; }
@media (min-width: 52rem) { .night-grid { grid-template-columns: 3fr 2fr; align-items: end; } }
.night-fee { border-top: 1px solid rgba(220,228,229,.25); padding-top: 1.5rem; }
.night-fee__amount { font-family: var(--font-display); font-size: clamp(3.5rem, 8vw, 5.5rem); line-height: 1; color: #fff; margin-bottom: .5rem; }

/* ---------- Inner-page hero ---------- */
.page-hero { padding-block: clamp(7.5rem, 12vw, 9.5rem) clamp(2.5rem, 5vw, 4rem); background: linear-gradient(180deg, #DDE6E7, var(--bg)); }
.page-hero h1 { max-width: 14ch; }

/* ---------- Services zigzag ---------- */
.feature { display: grid; gap: 2rem; align-items: center; padding-block: clamp(2.5rem, 6vw, 4.5rem); }
@media (min-width: 52rem) {
  .feature { grid-template-columns: 1fr 1fr; gap: 4.5rem; }
  .feature:nth-of-type(even) .feature__media { order: 2; }
}
.feature__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.feature__label { color: var(--accent); font-weight: 700; font-size: .95rem; margin-bottom: .5rem; }
