/* Crosstides Psychology — site styles */
@font-face { font-family: "Pagella"; src: url("/assets/fonts/pagella-bold.woff") format("woff"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Pagella"; src: url("/assets/fonts/pagella-bolditalic.woff") format("woff"); font-weight: 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/inter-regular.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/inter-italic.woff") format("woff"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/inter-medium.woff") format("woff"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/inter-semibold.woff") format("woff"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  --navy: #1D3F5E;
  --navy-deep: #163250;
  --sand: #EFE7DA;
  --sand-line: #D9CCB7;
  --shallows: #8FB8D6;
  --ink: #22303C;
  --muted: #4A5866;
  --mist: #F4F7FA;
  --serif: "Pagella", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 72rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); font-size: 1.0625rem; line-height: 1.65; color: var(--ink); background: #fff; }
@media (min-width: 56rem) { body { font-size: 1.125rem; } }
img { max-width: 100%; height: auto; display: block; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }
@media (min-width: 56rem) { .wrap { padding: 0 2rem; } }

h1, h2 { font-family: var(--serif); font-weight: 700; color: var(--navy); line-height: 1.15; }
h1 { font-style: italic; font-size: clamp(2.2rem, 4.4vw, 3.4rem); letter-spacing: -0.01em; margin: 0 0 1.25rem; max-width: 24ch; text-wrap: balance; }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.15rem); margin: 0 0 1rem; text-wrap: balance; }
h3 { font-family: var(--sans); font-weight: 600; font-size: 1.1rem; line-height: 1.35; color: var(--ink); margin: 0 0 0.4rem; }
p, ul, ol, dl, table { margin: 0 0 1rem; }
ul { padding-left: 1.2rem; }
li { margin-bottom: 0.45rem; }
strong { font-weight: 600; }

a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: -999px; top: 0.5rem; background: var(--navy); color: #fff; padding: 0.6rem 1rem; border-radius: 6px; z-index: 10; }
.skip:focus { left: 0.5rem; }

.lead { font-size: 1.15em; line-height: 1.55; max-width: 38rem; }
.prose { max-width: 40rem; }
.prose h2 { margin-top: 2.75rem; }
.prose h2:first-child { margin-top: 0; }
.muted { color: var(--muted); }
.small { font-size: 0.92rem; }

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.75rem 0 1.25rem; }
.btn { display: inline-block; padding: 0.85rem 1.4rem; border-radius: 999px; font-weight: 600; font-size: 1rem; line-height: 1.2; text-decoration: none; text-align: center; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-deep); }
.btn-secondary { color: var(--navy); box-shadow: inset 0 0 0 2px var(--navy); }
.btn-secondary:hover { background: rgba(29, 63, 94, 0.07); }

/* Header */
.site-header { background: var(--sand); position: relative; z-index: 5; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 1rem; padding-bottom: 1rem; }
.logo { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; color: var(--navy); }
.logo svg { width: 3.6rem; height: 2.4rem; flex: none; }
.logo-name { display: block; font-family: var(--serif); font-style: italic; font-weight: 700; font-size: 1.6rem; line-height: 1; }
.logo-sub { display: block; font-weight: 500; font-size: 0.6rem; letter-spacing: 0.42em; margin-top: 0.3rem; }

.nav-desktop { display: none; }
.nav-desktop ul { display: flex; align-items: center; gap: 1.6rem; list-style: none; margin: 0; padding: 0; }
.nav-desktop li { margin: 0; }
.nav-desktop a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 0.98rem; padding: 0.3rem 0; }
.nav-desktop a:not(.btn):hover, .nav-desktop a[aria-current="page"] { color: var(--navy); box-shadow: inset 0 -2px 0 var(--navy); }
.nav-desktop .btn { padding: 0.65rem 1.15rem; font-size: 0.95rem; }

.menu { position: static; }
.menu summary { list-style: none; cursor: pointer; font-weight: 600; font-size: 0.98rem; color: var(--navy); padding: 0.55rem 1rem; border-radius: 999px; box-shadow: inset 0 0 0 2px var(--navy); }
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary { background: var(--navy); color: #fff; }
.menu nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--sand); border-top: 1px solid var(--sand-line); box-shadow: 0 12px 24px rgba(34, 48, 60, 0.12); }
.menu ul { list-style: none; margin: 0; padding: 0.5rem 1.25rem 1.25rem; }
.menu li { margin: 0; border-bottom: 1px solid var(--sand-line); }
.menu li:last-child { border-bottom: 0; padding-top: 1rem; }
.menu a:not(.btn) { display: block; padding: 0.85rem 0; color: var(--ink); text-decoration: none; font-weight: 500; }
.menu a[aria-current="page"] { color: var(--navy); font-weight: 600; }
.menu .btn { display: block; }

@media (min-width: 70rem) {
  .nav-desktop { display: block; }
  .menu { display: none; }
}

/* Tide divider: echoes the two waves of the mark */
.tide { display: block; width: 100%; height: 3.5rem; background: var(--sand); }
.tide svg { display: block; width: 100%; height: 100%; }
.tide--up { background: #fff; }

/* Hero */
.hero { background: var(--sand); padding: 2.5rem 0 1rem; }
.hero-grid { display: grid; gap: 2.5rem; align-items: center; }
.hero-photo { justify-self: center; width: 100%; max-width: 22rem; }
.hero-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 50% 50% 14px 14px / 40% 40% 14px 14px; }
@media (min-width: 56rem) {
  .hero { padding: 4rem 0 1.5rem; }
  .hero-grid { grid-template-columns: 1.2fr 0.8fr; gap: 4rem; }
  .hero-photo { justify-self: end; max-width: 25rem; }
}

/* Inner page header */
.page-head { background: var(--sand); padding: 2.75rem 0 1rem; }
@media (min-width: 56rem) { .page-head { padding: 4rem 0 1.5rem; } }
.page-head .lead { margin-bottom: 0; }

/* Bands */
.band { padding: 3.75rem 0; }
.band--sand { background: var(--sand); }
@media (min-width: 56rem) { .band { padding: 5rem 0; } }
.band > .wrap > h2 { max-width: 30ch; }

.two-col { display: grid; gap: 2.5rem; margin-top: 2rem; }
@media (min-width: 48rem) { .two-col { grid-template-columns: 1fr 1fr; gap: 3.5rem; } }
.three-col { display: grid; gap: 2.5rem; margin-top: 2rem; }
@media (min-width: 56rem) { .three-col { grid-template-columns: repeat(3, 1fr); gap: 2.75rem; } }
.col { border-top: 3px solid var(--shallows); padding-top: 1.25rem; }
.col h3 { font-family: var(--serif); font-size: 1.45rem; font-weight: 700; color: var(--navy); }
.col p { max-width: 34rem; }
.more { font-weight: 600; }

.focus { display: grid; gap: 1.75rem 3.5rem; margin: 2rem 0 0; }
@media (min-width: 48rem) { .focus { grid-template-columns: 1fr 1fr; } }
.focus dt { font-family: var(--serif); font-weight: 700; font-size: 1.3rem; color: var(--navy); margin-bottom: 0.25rem; }
.focus dd { margin: 0; max-width: 32rem; }

.steps { list-style: none; counter-reset: step; padding: 0; margin: 2rem 0 0; display: grid; gap: 2rem; }
@media (min-width: 56rem) { .steps { grid-template-columns: repeat(3, 1fr); gap: 3rem; } }
.steps li { counter-increment: step; margin: 0; }
.steps li::before { content: counter(step); display: block; font-family: var(--serif); font-style: italic; font-weight: 700; font-size: 3rem; line-height: 1; color: var(--navy); margin-bottom: 0.6rem; }

.price { display: flex; flex-wrap: wrap; gap: 1.5rem 3.5rem; margin: 1.5rem 0 1.75rem; }
.price div { min-width: 11rem; }
.price b { display: block; font-family: var(--serif); font-weight: 700; font-size: 2.6rem; line-height: 1; color: var(--navy); margin-bottom: 0.35rem; }
.price span { color: var(--muted); font-size: 0.95rem; }

.intro { display: grid; gap: 1.75rem; align-items: center; }
.intro img { width: 11rem; height: 11rem; border-radius: 50%; object-fit: cover; }
@media (min-width: 48rem) { .intro { grid-template-columns: 13rem 1fr; gap: 3rem; } .intro img { width: 13rem; height: 13rem; } }

/* About page */
.about-grid { display: grid; gap: 2.5rem; }
.about-grid figure { margin: 0; max-width: 22rem; }
.about-grid figure img { border-radius: 14px; aspect-ratio: 4 / 5; object-fit: cover; }
@media (min-width: 56rem) { .about-grid { grid-template-columns: 1fr 20rem; gap: 4.5rem; align-items: start; } .about-grid figure { position: sticky; top: 2rem; } }

/* Tables */
table { width: 100%; max-width: 40rem; border-collapse: collapse; }
th, td { text-align: left; padding: 0.8rem 0.5rem 0.8rem 0; border-bottom: 1px solid var(--sand-line); vertical-align: top; }
th { font-weight: 600; }
td.amt { text-align: right; white-space: nowrap; font-weight: 600; color: var(--navy); }
th.amt-h { text-align: right; }
thead th { font-size: 0.9rem; color: var(--muted); font-weight: 500; }

/* FAQ */
.faq { max-width: 44rem; margin-top: 1rem; }
.faq details { border-top: 1px solid var(--sand-line); }
.faq details:last-child { border-bottom: 1px solid var(--sand-line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 1.1rem 0; font-weight: 600; font-size: 1.08rem; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--serif); font-size: 1.6rem; line-height: 1; color: var(--navy); flex: none; }
.faq details[open] summary::after { content: "\2013"; }
.faq details > div { padding: 0 0 1.25rem; max-width: 40rem; }

/* Notices */
.notice { border-left: 4px solid var(--navy); background: var(--mist); padding: 1rem 1.25rem; margin: 1.5rem 0; max-width: 40rem; }
.notice p:last-child { margin-bottom: 0; }
.statute { font-size: 0.78rem; line-height: 1.55; letter-spacing: 0.01em; color: var(--muted); max-width: 54rem; margin: 2rem 0 0; }
.options { display: grid; gap: 2rem; margin: 2.25rem 0 1rem; }
@media (min-width: 48rem) { .options { grid-template-columns: 1fr 1fr; gap: 3rem; } }
.options .actions { margin: 1.25rem 0 0; }

/* Call to action */
.cta { background: var(--navy); color: #E6EEF5; padding: 3.75rem 0; }
@media (min-width: 56rem) { .cta { padding: 4.75rem 0; } }
.cta h2 { color: #fff; }
.cta p { max-width: 38rem; }
.cta :focus-visible { outline-color: var(--shallows); }
.cta .btn-primary { background: var(--sand); color: var(--navy); }
.cta .btn-primary:hover { background: #fff; }
.cta .btn-secondary { color: #fff; box-shadow: inset 0 0 0 2px var(--shallows); }
.cta .btn-secondary:hover { background: rgba(143, 184, 214, 0.15); }
.cta .statute { color: var(--shallows); }

/* Footer */
.site-footer { background: var(--sand); padding: 3rem 0 2.5rem; font-size: 0.95rem; }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 48rem) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 3rem; } }
.site-footer h2 { font-family: var(--sans); font-size: 0.95rem; font-weight: 600; color: var(--ink); margin: 0 0 0.6rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.4rem; }
.site-footer .logo { margin-bottom: 1rem; }
.footer-base { border-top: 1px solid var(--sand-line); margin-top: 2.5rem; padding-top: 1.25rem; color: var(--muted); font-size: 0.88rem; }
.footer-base p { margin-bottom: 0.4rem; }
.crisis { font-weight: 600; color: var(--ink); }

/* Placeholders still to fill */
mark.todo { background: #FFE58A; color: #3A2F00; padding: 0 0.2em; border-radius: 3px; }

@media print {
  .site-header nav, .menu, .cta .actions, .tide { display: none; }
  body { font-size: 11pt; }
}

/* Experience list: two columns on wide screens */
.prose ul.split { columns: 1; }
@media (min-width: 48rem) { .prose ul.split { columns: 2; column-gap: 2.5rem; } .prose ul.split li { break-inside: avoid; } }
