/* ============================================================
   Summit Shores Counseling — site styles
   Palette sampled from the practice logo:
   summit (mountain slate) / shore (wave blue) on a warm shell ground.
   ============================================================ */

@font-face {
  font-family: "Young Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/young-serif-400.woff2") format("woff2");
}
@font-face {
  font-family: "Alegreya Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/alegreya-sans-400.woff2") format("woff2");
}
@font-face {
  font-family: "Alegreya Sans";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/alegreya-sans-400italic.woff2") format("woff2");
}
@font-face {
  font-family: "Alegreya Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/alegreya-sans-500.woff2") format("woff2");
}
@font-face {
  font-family: "Alegreya Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/alegreya-sans-700.woff2") format("woff2");
}

:root {
  --paper: #FFFFFF;
  --shell: #F8F7F3;
  --shell-deep: #EFEDE6;
  --ink: #22404F;
  --summit: #33566A;
  --summit-deep: #2A4757;
  --shore: #9CBCD2;
  --shore-tint: #E7EEF3;
  --shore-text: #3D6980;
  --mist: #56656E;
  --flag: #8A6226; /* placeholder/TODO markers only */
  --line: rgba(34, 64, 79, .16);
  --radius: 10px;
  --serif: "Young Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Alegreya Sans", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--shell);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.12; margin: 0; text-wrap: balance; }
p { margin: 0; }
a { color: var(--summit); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--summit-deep); }
:focus-visible { outline: 2px solid var(--summit); outline-offset: 3px; border-radius: 2px; }
.cta-band :focus-visible, footer.site :focus-visible { outline-color: var(--shore); }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.eyebrow {
  font-size: .76rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase;
  color: var(--shore-text); margin-bottom: 14px;
}
.measure { max-width: 62ch; }

.skip-link { position: absolute; left: -9999px; top: 0; background: #fff; padding: 10px 16px; z-index: 100; }
.skip-link:focus { left: 16px; }

/* Wave rule — section divider echoing the logo's waves */
.wave-rule { display: flex; justify-content: center; padding: 0; margin: 0; border: 0; }
.wave-rule svg { display: block; }

/* Placeholder conventions — fail loudly. Remove .todo blocks before launch. */
.todo {
  border: 2px dashed rgba(138, 98, 38, .55); border-radius: var(--radius);
  background: repeating-linear-gradient(-45deg, rgba(138,98,38,.05) 0 12px, transparent 12px 24px);
  padding: 20px 24px; color: var(--flag); font-weight: 500;
}
.todo strong { text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; display: block; margin-bottom: 6px; }
.ph-frame {
  border: 2px dashed rgba(138, 98, 38, .55); border-radius: var(--radius);
  background: repeating-linear-gradient(-45deg, rgba(138,98,38,.05) 0 12px, transparent 12px 24px);
  display: grid; place-items: center; text-align: center; padding: 24px;
  color: var(--flag); font-size: .85rem; font-weight: 500; letter-spacing: .02em;
}
.headshot {
  display: block; width: 100%; max-width: 340px; height: auto;
  border-radius: var(--radius); box-shadow: 0 12px 32px rgba(34, 64, 79, .16);
}

/* Buttons */
.btn {
  display: inline-block; font-family: var(--sans); font-weight: 700; font-size: .95rem;
  padding: 13px 26px; border-radius: 999px; text-decoration: none;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.btn-primary { background: var(--summit); color: #FFFFFF; }
.btn-primary:hover { background: var(--summit-deep); color: #FFFFFF; }
.btn-ghost { border: 1.5px solid var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--summit); color: var(--summit-deep); }
.btn-light { background: var(--shell); color: var(--ink); }
.btn-light:hover { background: #fff; color: var(--ink); }

/* ————— Header ————— */
header.site { background: var(--paper); border-bottom: 1px solid var(--line); }
.site-bar { display: flex; align-items: center; gap: 28px; padding: 14px 0; }
.brand-lockup { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-lockup img { width: 52px; height: 49px; display: block; }
.wordmark { text-decoration: none; color: var(--ink); line-height: 1.1; }
.wordmark .wm-name { font-family: var(--serif); font-size: 1.28rem; display: block; }
.wordmark .wm-sub { font-size: .62rem; font-weight: 700; letter-spacing: .34em; text-transform: uppercase; color: var(--shore-text); }
nav.primary { display: flex; gap: 22px; margin-left: auto; }
nav.primary a { color: var(--summit); text-decoration: none; font-size: .93rem; font-weight: 500; }
nav.primary a:hover { color: var(--summit-deep); text-decoration: underline; text-underline-offset: 5px; text-decoration-color: var(--shore); }
nav.primary a[aria-current="page"] { color: var(--ink); font-weight: 700; }
.site-cta { display: flex; gap: 10px; align-items: center; }
.site-cta .btn { padding: 9px 18px; font-size: .87rem; }
details.mobile-nav { display: none; position: relative; margin-left: auto; }
details.mobile-nav summary {
  list-style: none; cursor: pointer; font-weight: 700; font-size: .9rem;
  padding: 8px 14px; border: 1.5px solid var(--line); border-radius: 999px;
}
details.mobile-nav summary::-webkit-details-marker { display: none; }
details.mobile-nav[open] summary { border-color: var(--summit); color: var(--summit-deep); }
details.mobile-nav .sheet {
  position: absolute; right: 0; top: calc(100% + 10px); z-index: 30;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 14px 34px rgba(34,64,79,.14);
  display: grid; gap: 4px; padding: 12px; min-width: 210px;
}
details.mobile-nav .sheet a { text-decoration: none; color: var(--summit); font-weight: 500; padding: 8px 12px; border-radius: 6px; }
details.mobile-nav .sheet a:hover { background: var(--shore-tint); }

/* ————— Home hero — text/CTA left, brand mark right ————— */
.hero { background: linear-gradient(180deg, var(--paper) 0%, var(--paper) 46%, var(--shell) 100%); }
.hero-inner { padding: 72px 0 64px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.hero-brand { display: flex; flex-direction: column; align-items: center; gap: 26px; }
.hero-brand img { width: 400px; max-width: 100%; height: auto; }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink); background: var(--shore-tint);
  border: 1px solid rgba(51,86,106,.28); border-radius: 999px; padding: 6px 14px;
  margin: 0;
}
.badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--summit); }
.hero .tagline { font-family: var(--serif); font-size: 1.3rem; color: var(--shore-text); margin-bottom: 14px; }
.hero h1 { font-size: clamp(2.5rem, 6vw, 3.7rem); max-width: 16ch; }
.hero .lede { font-size: clamp(1.05rem, 1.7vw, 1.2rem); color: var(--summit-deep); margin-top: 22px; max-width: 54ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 34px; }
.hero-actions .aside { font-size: .95rem; color: var(--mist); }
.hero-actions .aside a { color: var(--summit); font-weight: 700; }
.hero .wave-rule { margin-top: 52px; }

/* ————— Interior page hero ————— */
.page-hero { background: linear-gradient(180deg, var(--paper) 0%, var(--shell) 100%); padding: 56px 0 48px; }
.page-hero h1 { font-size: clamp(2rem, 4.5vw, 2.9rem); max-width: 22ch; }
.page-hero .lede { font-size: 1.12rem; color: var(--summit-deep); margin-top: 18px; max-width: 60ch; }
.breadcrumbs { font-size: .82rem; color: var(--mist); margin-bottom: 20px; }
.breadcrumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumbs li + li::before { content: "\2192"; margin-right: 6px; color: var(--shore); }
.breadcrumbs a { color: var(--mist); }

/* ————— Trust band ————— */
.trust { background: var(--shore-tint); }

/* Wavy section seams (ocean line) — div bg = upper surface, path fill = lower surface */
.wave-sep { line-height: 0; }
.wave-sep svg { display: block; width: 100%; height: 26px; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; padding: 42px 0; }
.trust-item { text-align: center; }
.trust-icon { display: inline-flex; color: var(--summit); margin-bottom: 12px; }
.trust-item strong { display: block; color: var(--ink); font-size: 1.03rem; font-weight: 700; margin-bottom: 4px; }
.trust-item span { display: block; font-size: .95rem; color: #44545E; max-width: 26ch; margin: 0 auto; }

/* ————— Sections ————— */
section.block, article.block { padding: 76px 0; background: var(--paper); }
section.block.tint { background: var(--shell-deep); }
.section-head { margin-bottom: 40px; }
.section-head h2 { font-size: clamp(1.75rem, 3.4vw, 2.35rem); }
.section-head .sub { color: var(--mist); margin-top: 12px; max-width: 58ch; }
.more-link { display: inline-block; margin-top: 26px; font-weight: 700; }

/* Prose (interior page body copy) */
.prose { max-width: 66ch; }
.prose h2 { font-size: 1.55rem; margin: 44px 0 14px; }
.prose h3 { font-size: 1.2rem; margin: 32px 0 10px; }
.prose p { margin: 0 0 16px; }
.prose ul { margin: 0 0 16px; padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose .entity { color: var(--mist); font-size: .95rem; border-left: 3px solid var(--shore); padding-left: 16px; margin: 26px 0; }

/* Two-column layouts */
.split { display: grid; grid-template-columns: 340px 1fr; gap: 56px; align-items: start; }
.split.even { grid-template-columns: 1fr 1fr; }
.split .ph-frame { aspect-ratio: 4 / 5; }

/* Cards */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; display: flex; flex-direction: column; gap: 10px;
  transition: border-color .18s ease, transform .18s ease;
}
.card:hover { border-color: var(--summit); transform: translateY(-2px); }
.card h3 { font-size: 1.16rem; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover { color: var(--summit); }
.card p { font-size: .93rem; color: var(--mist); flex: 1; }
.card .focus-tag {
  align-self: flex-start; font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--shore-text); background: var(--shore-tint); border-radius: 4px; padding: 3px 8px;
}
.card .card-link { font-weight: 700; font-size: .9rem; text-decoration: none; }
.card .card-link:hover { text-decoration: underline; }

/* Approach pills */
.approaches { margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; }
.approaches li {
  list-style: none; font-size: .82rem; font-weight: 700; letter-spacing: .06em;
  background: var(--shore-tint); border: 1px solid rgba(61,105,128,.25);
  border-radius: 999px; padding: 5px 14px; color: var(--shore-text);
}

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; counter-reset: step; padding: 0; margin: 0; }
.steps li { list-style: none; counter-increment: step; position: relative; padding-top: 58px; }
.steps li::before {
  content: counter(step, decimal-leading-zero); position: absolute; top: 0; left: 0;
  font-family: var(--serif); font-size: 2rem; color: var(--shore-text);
}
.steps li::after {
  content: ""; position: absolute; top: 46px; left: 0; width: 44px; height: 2px;
  background: linear-gradient(90deg, var(--shore), transparent);
}
.steps h3 { font-size: 1.18rem; margin-bottom: 8px; }
.steps p { font-size: .95rem; color: var(--mist); }

/* FAQ accordion */
.faq-list { display: grid; gap: 12px; max-width: 760px; }
details.faq {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 0;
}
details.faq summary {
  cursor: pointer; list-style: none; font-weight: 700; font-size: 1.05rem;
  padding: 18px 52px 18px 22px; position: relative; color: var(--ink);
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
  font-family: var(--serif); font-size: 1.4rem; color: var(--shore-text);
}
details.faq[open] summary::after { content: "\2013"; }
details.faq .faq-a { padding: 0 22px 20px; color: var(--mist); max-width: 66ch; }
details.faq .faq-a p { margin: 0 0 12px; }
details.faq .faq-a p:last-child { margin-bottom: 0; }

/* Fees */
.fee-figure { font-family: var(--serif); font-size: clamp(2.2rem, 4.5vw, 3.1rem); font-variant-numeric: tabular-nums; }
.fee-meta { color: var(--mist); font-size: .95rem; margin-top: 6px; }
.notice {
  background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--shore);
  border-radius: var(--radius); padding: 20px 24px; margin: 28px 0; max-width: 66ch;
}
.notice p { margin: 0 0 10px; }
.notice p:last-child { margin-bottom: 0; }

/* Location */
address { font-style: normal; }
address .addr-name { font-family: var(--serif); font-size: 1.2rem; display: block; margin-bottom: 8px; }
address p { color: var(--summit-deep); }
.loc-links { margin-top: 22px; display: flex; gap: 22px; flex-wrap: wrap; font-weight: 700; }
.map-embed { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.map-embed iframe { display: block; width: 100%; height: 380px; border: 0; }

/* Contact CTA band */
.cta-band { background: linear-gradient(180deg, var(--ink) 0%, #182E3A 100%); color: #D7E2E9; padding: 84px 0; }
.cta-band .eyebrow { color: #9CBCD2; }
.cta-band h2 { color: #FFFFFF; font-size: clamp(1.9rem, 3.6vw, 2.5rem); }
.cta-band .sub { color: #A9BDC9; margin-top: 14px; max-width: 52ch; }
.cta-band .hero-actions { margin-top: 32px; }
.cta-band a { color: #C4D3DC; }
.cta-band .btn-light { color: var(--ink); }
.cta-band .aside { color: #A9BDC9; }
.emergency {
  margin-top: 44px; padding: 18px 22px; border: 1px solid rgba(215,226,233,.28); border-radius: var(--radius);
  font-size: .78rem; font-weight: 700; letter-spacing: .05em; color: #C4D3DC; max-width: 62ch;
}
.emergency.on-light { border-color: var(--line); color: var(--mist); background: var(--paper); }

/* ————— Footer ————— */
footer.site { background: #182E3A; color: #93A9B5; padding: 44px 0 56px; font-size: .88rem; }
.foot-grid { display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; align-items: flex-start; }
footer.site .wordmark .wm-name { color: #D7E2E9; }
footer.site .wordmark .wm-sub { color: #93A9B5; }
footer.site .foot-entity { max-width: 34ch; margin-top: 12px; line-height: 1.55; }
footer.site nav { display: flex; flex-wrap: wrap; gap: 18px; }
footer.site a { color: #93A9B5; }
footer.site a:hover { color: #D7E2E9; }
.foot-legal { margin-top: 34px; padding-top: 22px; border-top: 1px solid rgba(215,226,233,.14); display: flex; flex-wrap: wrap; gap: 18px; justify-content: space-between; }

/* Forms (appointment request) */
.form { display: grid; gap: 16px; max-width: 560px; }
.form label { display: grid; gap: 6px; font-weight: 700; font-size: .9rem; color: var(--ink); }
.form input, .form select, .form textarea {
  font: inherit; color: var(--ink); background: var(--paper);
  border: 1.5px solid var(--line); border-radius: 8px; padding: 12px 14px; width: 100%;
}
.form input:focus-visible, .form select:focus-visible, .form textarea:focus-visible {
  outline: 2px solid var(--summit); outline-offset: 1px; border-color: var(--summit);
}
.form textarea { min-height: 110px; resize: vertical; }
.form .hint { font-weight: 400; font-size: .85rem; color: var(--mist); }
.form button.btn { border: 0; cursor: pointer; justify-self: start; }
.form .hp { display: none; }

/* Sticky mobile quick-action bar */
.mobile-cta {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  background: var(--paper); border-top: 1px solid var(--line);
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  gap: 10px; box-shadow: 0 -8px 24px rgba(34,64,79,.10);
}
.mobile-cta a {
  flex: 1; text-align: center; font-weight: 700; font-size: .92rem; text-decoration: none;
  padding: 12px 10px; border-radius: 999px; border: 1.5px solid var(--line); color: var(--ink);
}
.mobile-cta a.primary { background: var(--summit); border-color: var(--summit); color: #fff; }

/* Article pages */
.article-sheet { background: var(--paper); }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 60px; align-items: start; }
.article-layout .prose { max-width: 72ch; }
.article-aside { position: sticky; top: 28px; display: grid; gap: 20px; }
.article-brief {
  background: var(--shore-tint); border: 1px solid rgba(61,105,128,.25); border-top: 4px solid var(--shore);
  border-radius: var(--radius); padding: 20px 22px; box-shadow: 0 6px 18px rgba(34,64,79,.06);
}
.article-brief strong, .aside-card > strong {
  display: block; font-size: .78rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--shore-text); margin-bottom: 10px;
}
.article-brief ul { margin: 0; padding-left: 20px; }
.article-brief li { margin-bottom: 8px; font-size: .95rem; }
.article-brief li:last-child { margin-bottom: 0; }
.aside-card {
  background: var(--shell); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px 20px; font-size: .95rem;
}
.aside-card p { margin: 0 0 10px; }
.aside-card p:last-child { margin-bottom: 0; }
.aside-cta .btn { display: block; text-align: center; margin: 12px 0 10px; }
.aside-cta .aside-tel { color: var(--mist); font-size: .9rem; }
.pub-links { display: block; margin-top: 5px; font-size: .85rem; }
.pub-links a { color: var(--shore-text); font-weight: 700; }
@media (max-width: 920px) {
  .article-layout { grid-template-columns: 1fr; gap: 0; }
  .article-aside { display: contents; }
  .article-aside .article-brief { order: -1; margin-bottom: 30px; }
  .article-aside .aside-card { margin-top: 26px; }
}
.article-meta { font-size: .88rem; color: var(--mist); margin-top: 14px; }
.article-body .pull {
  border-left: 3px solid var(--shore); padding-left: 18px; margin: 28px 0;
  font-family: var(--serif); font-size: 1.15rem; color: var(--summit-deep);
}
.article-footnote {
  margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--line);
  font-size: .9rem; color: var(--mist); max-width: 66ch;
}
.article-card time { font-size: .8rem; color: var(--mist); letter-spacing: .04em; }

/* Utility */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card, .btn { transition: none; }
}

/* ————— Responsive ————— */
@media (max-width: 1120px) {
  nav.primary { gap: 14px; }
  .site-bar { gap: 20px; }
}
@media (max-width: 920px) {
  .split, .split.even { grid-template-columns: 1fr; gap: 36px; }
  .split .ph-frame { max-width: 340px; }
  .card-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; gap: 30px; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-brand { order: -1; }
  .hero-brand img { width: 250px; }
  .trust-grid { grid-template-columns: 1fr 1fr; gap: 26px; padding: 34px 0; }
}
@media (max-width: 760px) {
  nav.primary { display: none; }
  details.mobile-nav { display: block; }
  .site-cta .btn-ghost { display: none; }
  .card-grid { grid-template-columns: 1fr; }
  section.block, article.block { padding: 56px 0; }
  .hero-inner { padding: 44px 0 56px; }
  .hero-brand img { width: 210px; }
}
@media (max-width: 560px) {
  .trust-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .mobile-cta { display: flex; }
  body { padding-bottom: 74px; }
}
