/* ─────────────────────────────────────────────────────────
   Salty Voice · Design Tokens
   These map 1:1 to a developer's `tokens.ts` / `theme.ts`.
   Accent hue is driven by Tweaks via --accent-hue.
   ───────────────────────────────────────────────────────── */
:root {
  /* Surface */
  --ivory:        #FAF8F4;
  --ivory-dark:   #F0ECE5;
  --line:         #DDD8D0;

  /* Ink */
  --charcoal:     #201E1C;
  --charcoal-mid: #3D3836;
  --warm-grey:    #9C9690;

  /* Accent (sage by default — hue rotates via --accent-hue) */
  --accent-hue:   188;
  --sage:         oklch(0.66 0.035 var(--accent-hue));
  --sage-light:   oklch(0.80 0.035 var(--accent-hue));
  --sage-dark:    oklch(0.52 0.040 var(--accent-hue));

  /* Type */
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans:  'Jost', 'Helvetica Neue', sans-serif;

  /* Rhythm */
  --nav-h: 83px;
  --gutter: 56px;
  --max-w: 1260px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--ivory);
  color: var(--charcoal);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1 { font-family: var(--serif); font-weight: 300; font-size: clamp(44px, 7vw, 88px); line-height: 1.05; }
h2 { font-family: var(--serif); font-weight: 300; font-size: clamp(32px, 4.5vw, 56px); line-height: 1.1; }
h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(22px, 2.5vw, 32px); line-height: 1.2; }
h4 { font-family: var(--serif); font-weight: 400; font-size: 20px; }
em { font-style: italic; color: var(--sage); }
a  { color: inherit; text-decoration: none; }
button { font-family: var(--sans); cursor: pointer; border: none; background: none; }

.eyebrow {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--warm-grey);
}
.divider { width: 44px; height: 1px; background: var(--sage); margin: 24px 0; }

/* ── Buttons ─────────────────────────────────────────── */
.btn-primary {
  font-size: 11px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ivory); background: var(--charcoal);
  padding: 14px 34px;
  transition: background .35s var(--ease), transform .2s var(--ease);
}
.btn-primary:hover { background: var(--sage-dark); }
.btn-primary:active { transform: translateY(1px); }
.btn-primary[disabled] { opacity: .5; cursor: progress; }

.btn-ghost {
  font-size: 11px; font-weight: 400; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--charcoal);
  display: inline-flex; align-items: center; gap: 10px;
  transition: color .3s var(--ease), gap .3s var(--ease);
}
.btn-ghost::after { content: '→'; transition: transform .3s var(--ease); }
.btn-ghost:hover { color: var(--sage-dark); gap: 16px; }

.btn-sage {
  font-size: 11px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--sage-dark); background: var(--ivory);
  padding: 15px 38px;
  transition: background .3s var(--ease), color .3s var(--ease);
}
.btn-sage:hover { background: var(--charcoal); color: var(--ivory); }

/* ── Placeholder imagery ─────────────────────────────── */
.ph {
  background:
    repeating-linear-gradient(135deg, rgba(80,70,60,.04) 0 12px, transparent 12px 24px),
    linear-gradient(145deg, #DDD7CF 0%, #C9C2B8 60%, #BDB5AA 100%);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; width: 100%; height: 100%; min-height: 240px;
}
.ph-ring {
  width: 44px; height: 44px;
  border: 1px solid rgba(80,70,60,.25);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.ph-ring svg { width: 20px; height: 20px; opacity: .35; }
.ph-text {
  font-family: var(--sans);
  font-size: 9px; letter-spacing: 0.28em; text-transform: uppercase;
  color: rgba(70,60,50,.55);
}

/* ── Reveal animation hooks ──────────────────────────── */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .08s; }
.reveal-d2 { transition-delay: .18s; }
.reveal-d3 { transition-delay: .28s; }
.reveal-d4 { transition-delay: .40s; }

/* ── Page transition ─────────────────────────────────── */
.page-enter { animation: pageEnter .55s var(--ease) both; }
@keyframes pageEnter {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

/* ── Nav ─────────────────────────────────────────────── */
#main-nav {
  position: fixed; inset: 0 0 auto 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px var(--gutter);
  background: var(--ivory);
  border-bottom: 1px solid transparent;
  transition: border-color .35s, background .35s, backdrop-filter .35s;
}
#main-nav.scrolled {
  border-color: var(--line);
  background: rgba(250,248,244,.92);
  backdrop-filter: blur(10px);
}
.nav-logo {
  font-family: var(--serif); font-size: 32px; font-weight: 400;
  letter-spacing: 0.06em; cursor: pointer;
  white-space: nowrap;
}
.nav-logo span { color: var(--sage); transition: color .4s var(--ease); }
.nav-links { display: flex; align-items: center; gap: 36px; }
.nav-link {
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--charcoal); cursor: pointer; position: relative; padding-bottom: 3px;
  background: none; border: none;
  white-space: nowrap;
}
.nav-link::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 0; height: 1px; background: var(--sage);
  transition: width .35s var(--ease);
}
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-cta {
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ivory); background: var(--charcoal);
  padding: 10px 22px;
  transition: background .3s var(--ease);
  white-space: nowrap;
}
.nav-cta:hover { background: var(--sage-dark); }

.nav-burger { display: none; width: 28px; height: 22px; position: relative; }
.nav-burger span {
  position: absolute; left: 0; right: 0; height: 1px; background: var(--charcoal);
  transition: transform .35s var(--ease), opacity .25s var(--ease), top .35s var(--ease);
}
.nav-burger span:nth-child(1) { top: 4px; }
.nav-burger span:nth-child(2) { top: 11px; }
.nav-burger span:nth-child(3) { top: 18px; }
.nav-burger.open span:nth-child(1) { top: 11px; transform: rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { top: 11px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: var(--nav-h) 0 0 0; z-index: 190;
  background: var(--ivory);
  padding: 56px var(--gutter);
  display: flex; flex-direction: column; gap: 8px;
  transform: translateY(-100%);
  transition: transform .5s var(--ease);
}
.mobile-menu.open { transform: none; }
.mobile-menu button {
  text-align: left;
  font-family: var(--serif); font-size: 36px; font-weight: 300;
  padding: 14px 0; border-bottom: 1px solid var(--line);
  color: var(--charcoal);
}
.mobile-menu button.active { color: var(--sage-dark); font-style: italic; }

/* ── Page system ─────────────────────────────────────── */
.page { padding-top: var(--nav-h); }

/* ── Footer ──────────────────────────────────────────── */
.site-footer {
  background: var(--charcoal);
  padding: 56px var(--gutter);
  display: grid; grid-template-columns: 1.2fr 1fr 1.2fr; gap: 40px;
  align-items: end;
}
.footer-logo { font-family: var(--serif); font-size: 26px; font-weight: 300; color: var(--ivory); }
.footer-logo span { color: var(--sage); }
.footer-tagline { font-size: 11px; letter-spacing: 0.12em; color: rgba(250,248,244,.35); margin-top: 8px; }
.footer-nav { display: flex; flex-direction: column; gap: 10px; }
.footer-nav button {
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(250,248,244,.45); cursor: pointer; transition: color .3s var(--ease);
  width: fit-content; text-align: left;
}
.footer-nav button:hover { color: var(--sage-light); }
.footer-right { text-align: right; }
.footer-email { font-size: 13px; color: var(--sage-light); margin-bottom: 14px; }
.footer-small { font-size: 11px; color: rgba(250,248,244,.28); line-height: 1.9; }

/* ── CTA banner ──────────────────────────────────────── */
.cta-banner {
  background: var(--sage);
  padding: 72px var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 40px;
  transition: background .4s var(--ease);
}
.cta-banner h2 { color: var(--ivory); max-width: 520px; }

/* ── Home ────────────────────────────────────────────── */
.home-hero {
  display: grid; grid-template-columns: 55% 45%;
  height: calc(100vh - var(--nav-h)); min-height: 560px;
}
.home-hero-content {
  display: flex; flex-direction: column; justify-content: center;
  padding: 80px 72px 80px var(--gutter); position: relative;
}
.home-hero-content h1 { margin: 20px 0 24px; }
.hero-sub {
  font-size: 15px; color: var(--charcoal-mid);
  max-width: 400px; line-height: 1.85; margin-bottom: 44px;
}
.hero-actions { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }
.hero-footer-note {
  position: absolute; bottom: 44px; left: var(--gutter);
  display: flex; align-items: center; gap: 14px;
}
.hero-footer-note::before {
  content: ''; display: block; width: 36px; height: 1px; background: var(--sage);
}
.hero-footer-note span {
  font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--warm-grey);
}
.home-hero-image { position: relative; overflow: hidden; }
.home-hero-image img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  display: block;
  transition: transform 1.8s var(--ease);
}
.home-hero-image:hover img { transform: scale(1.03); }
.home-hero-image .ph { transition: transform 1.8s var(--ease); }
.home-hero-image:hover .ph { transform: scale(1.03); }

.home-intro { padding: 110px var(--gutter); max-width: var(--max-w); margin: 0 auto; }
.home-intro-grid {
  display: grid; grid-template-columns: 1fr 1px 1fr; gap: 72px; align-items: center;
}
.divider-col { background: var(--line); align-self: stretch; }
.intro-quote {
  font-family: var(--serif);
  font-size: clamp(20px, 2.2vw, 30px);
  font-weight: 300; font-style: italic; line-height: 1.5;
}
.intro-text p { font-size: 15px; color: var(--charcoal-mid); line-height: 1.85; }
.intro-text p + p { margin-top: 18px; }

.home-cards-wrap { padding: 0 var(--gutter) 110px; }
.home-cards-head { max-width: var(--max-w); margin: 0 auto 44px; }
.cards-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--line); border: 1px solid var(--line);
  max-width: var(--max-w); margin: 0 auto;
}
.card {
  background: var(--ivory); padding: 48px 40px 44px;
  transition: background .35s var(--ease);
  cursor: pointer;
  position: relative;
}
.card:hover { background: var(--ivory-dark); }
.card:hover .card-num { color: var(--sage); }
.card-num {
  font-family: var(--serif); font-size: 64px; font-weight: 300;
  color: var(--line); line-height: 1; margin-bottom: 20px;
  transition: color .4s var(--ease);
}
.card h3 { margin-bottom: 14px; }
.card p { font-size: 14px; color: var(--charcoal-mid); line-height: 1.8; }
.card-cta {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 28px;
  font-size: 10px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--sage-dark); transition: gap .3s var(--ease);
}
.card:hover .card-cta { gap: 14px; }

.why-section { background: var(--charcoal); padding: 110px var(--gutter); }
.why-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 96px; align-items: start;
}
.why-section .eyebrow { color: var(--sage-light); }
.why-section .divider { background: var(--sage); }
.why-quote {
  font-family: var(--serif);
  font-size: clamp(22px, 2.5vw, 34px);
  font-weight: 300; font-style: italic; line-height: 1.5;
  color: var(--ivory);
  border-left: 1px solid var(--sage); padding-left: 28px;
}
.why-list { list-style: none; }
.why-list li {
  display: flex; align-items: center; gap: 18px;
  padding: 15px 0; border-bottom: 1px solid rgba(255,255,255,.07);
  font-size: 14px; color: rgba(250,248,244,.75);
  transition: color .3s var(--ease), padding-left .35s var(--ease);
}
.why-list li:hover { color: var(--ivory); padding-left: 6px; }
.why-list li::before {
  content: ''; display: block; width: 18px; height: 1px;
  background: var(--sage); flex-shrink: 0;
  transition: width .35s var(--ease);
}
.why-list li:hover::before { width: 28px; }

/* ── About ───────────────────────────────────────────── */
.about-hero {
  padding: 96px var(--gutter) 80px;
  border-bottom: 1px solid var(--line);
  max-width: var(--max-w); margin: 0 auto;
}
.about-hero h1 { font-size: clamp(40px, 5.5vw, 72px); margin-top: 16px; }
.about-hero p { font-size: 15px; color: var(--charcoal-mid); max-width: 540px; margin-top: 24px; line-height: 1.85; }
.about-body { padding: 96px var(--gutter); max-width: var(--max-w); margin: 0 auto; }
.about-two-col { display: grid; grid-template-columns: 200px 1fr; gap: 80px; }
.about-bio p { font-size: 15px; color: var(--charcoal-mid); line-height: 1.9; }
.about-bio p + p { margin-top: 22px; }
.creds-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 72px;
}
.cred-item { background: var(--ivory); padding: 36px 40px; transition: background .35s var(--ease); }
.cred-item:hover { background: var(--ivory-dark); }
.cred-label { font-size: 9px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--warm-grey); margin-bottom: 10px; }
.cred-value { font-family: var(--serif); font-size: 20px; font-weight: 400; }

.about-quote-band { padding: 0 var(--gutter) 96px; }
.about-quote-inner {
  max-width: var(--max-w); margin: 0 auto;
  background: var(--ivory-dark); padding: 72px 80px; text-align: center;
}
.about-quote-inner p {
  font-family: var(--serif);
  font-size: clamp(20px, 2.5vw, 34px);
  font-weight: 300; font-style: italic; line-height: 1.55;
  max-width: 680px; margin: 0 auto;
}

/* ── Services ────────────────────────────────────────── */
.svc-hero {
  padding: 96px var(--gutter) 80px;
  border-bottom: 1px solid var(--line);
  max-width: var(--max-w); margin: 0 auto;
}
.svc-hero h1 { font-size: clamp(38px, 5.5vw, 72px); max-width: 680px; margin-top: 16px; }
.svc-hero p  { font-size: 15px; color: var(--charcoal-mid); max-width: 540px; margin-top: 24px; line-height: 1.85; }
.svc-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); }
.svc-block { background: var(--ivory); padding: 80px var(--gutter); }
.svc-block.alt { background: var(--ivory-dark); }
.svc-list { list-style: none; margin-top: 28px; }
.svc-list li {
  display: flex; align-items: center; gap: 16px;
  padding: 13px 0; border-bottom: 1px solid var(--line);
  font-size: 14px; color: var(--charcoal-mid);
  transition: padding-left .3s var(--ease), color .3s var(--ease);
  cursor: default;
}
.svc-list li:hover { padding-left: 6px; color: var(--charcoal); }
.svc-list li::before {
  content: ''; display: block; width: 14px; height: 1px;
  background: var(--sage); flex-shrink: 0;
  transition: width .3s var(--ease);
}
.svc-list li:hover::before { width: 24px; }

.expect-wrap { padding: 96px var(--gutter); max-width: var(--max-w); margin: 0 auto; }
.expect-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; margin-top: 52px; }
.expect-col h4 { margin-bottom: 20px; }
.session-note {
  margin-top: 52px; padding: 44px 52px;
  background: var(--ivory-dark); max-width: 680px;
}
.session-note p {
  font-family: var(--serif);
  font-size: clamp(18px, 2vw, 26px);
  font-weight: 300; font-style: italic; line-height: 1.5;
}

.appt-band {
  background: var(--ivory-dark); padding: 72px var(--gutter);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.appt-inner-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px;
  max-width: var(--max-w); margin: 0 auto;
}
.appt-label { font-size: 9px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--sage-dark); margin-bottom: 12px; }
.appt-val { font-size: 15px; color: var(--charcoal-mid); line-height: 1.7; }

/* ── Contact ─────────────────────────────────────────── */
.contact-layout {
  display: grid; grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - var(--nav-h));
}
.contact-left {
  padding: 90px 80px 90px var(--gutter);
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column;
}
.contact-left h1 { font-size: clamp(34px, 4.5vw, 60px); margin-top: 16px; }
.contact-intro { font-size: 15px; color: var(--charcoal-mid); max-width: 400px; line-height: 1.85; margin-top: 24px; }
.contact-details { margin-top: 56px; }
.cd-row { margin-bottom: 36px; }
.cd-label { font-size: 9px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--warm-grey); margin-bottom: 8px; }
.cd-val { font-size: 15px; color: var(--charcoal-mid); line-height: 1.7; }
.cd-val a { color: var(--sage-dark); text-decoration: underline; text-underline-offset: 4px; }
.confidence-note { margin-top: auto; padding-top: 40px; border-top: 1px solid var(--line); }
.confidence-note p { font-size: 12px; font-style: italic; color: var(--warm-grey); }

.contact-right {
  background: var(--ivory-dark); padding: 90px var(--gutter);
  display: flex; flex-direction: column; justify-content: center;
}
.form-group { margin-bottom: 28px; position: relative; }
.form-group label {
  display: block;
  font-size: 9px; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--warm-grey); margin-bottom: 10px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%; background: transparent; border: none;
  border-bottom: 1px solid var(--line);
  padding: 10px 0 12px;
  font-family: var(--sans); font-size: 15px; font-weight: 300;
  color: var(--charcoal); outline: none;
  transition: border-color .3s var(--ease);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(60,55,50,.3); }
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--sage); }
.form-group textarea { resize: none; height: 100px; }
.form-group.invalid input,
.form-group.invalid textarea,
.form-group.invalid select { border-color: #B05943; }
.form-error {
  font-size: 11px; color: #B05943; margin-top: 6px;
  letter-spacing: 0.02em;
}
.form-privacy { margin-top: 16px; font-size: 11px; color: var(--warm-grey); line-height: 1.7; }
.form-success {
  background: var(--ivory);
  border: 1px solid var(--sage-light);
  padding: 56px 48px; text-align: center;
  animation: pageEnter .55s var(--ease) both;
}
.form-success .check {
  width: 56px; height: 56px; border: 1px solid var(--sage); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 24px; color: var(--sage-dark);
}
.form-success h3 { margin-bottom: 14px; }
.form-success p { font-size: 14px; color: var(--charcoal-mid); line-height: 1.7; max-width: 320px; margin: 0 auto; }

/* ── Spec inspector toggle (developer aid) ───────────── */
.spec-toggle {
  position: fixed; left: 18px; bottom: 18px; z-index: 250;
  font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
  background: var(--charcoal); color: var(--ivory);
  padding: 10px 16px;
  border-radius: 999px;
}
.spec-toggle.on { background: var(--sage-dark); }

body.spec-on [data-spec]:hover {
  outline: 1px solid var(--sage);
  outline-offset: 2px;
  cursor: help;
  position: relative;
}
.spec-tip {
  position: fixed;
  z-index: 260;
  background: var(--charcoal); color: var(--ivory);
  padding: 8px 12px;
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0;
  pointer-events: none;
  white-space: nowrap;
  border-radius: 2px;
}

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 960px) {
  :root { --gutter: 24px; }
  #main-nav { padding: 18px var(--gutter); }
  .nav-links .nav-link, .nav-cta { display: none; }
  .nav-burger { display: block; }

  .home-hero, .contact-layout { grid-template-columns: 1fr; }
  .home-hero { height: auto; }
  .home-hero-image { height: 280px; }
  .home-hero-content { padding: 56px 24px; }
  .home-intro-grid { grid-template-columns: 1fr; gap: 40px; }
  .divider-col { display: none; }
  .cards-grid { grid-template-columns: 1fr; }
  .why-inner { grid-template-columns: 1fr; gap: 44px; }
  .about-two-col { grid-template-columns: 1fr; gap: 40px; }
  .creds-grid { grid-template-columns: 1fr 1fr; }
  .svc-cols { grid-template-columns: 1fr; }
  .expect-cols { grid-template-columns: 1fr; gap: 40px; }
  .appt-inner-grid { grid-template-columns: 1fr; gap: 32px; }
  .cta-banner { flex-direction: column; align-items: flex-start; gap: 28px; }
  .site-footer { grid-template-columns: 1fr; }
  .footer-right { text-align: left; }
  .contact-left, .contact-right { padding: 56px 24px; }
  .about-quote-inner { padding: 48px 32px; }
  .hero-footer-note { position: static; margin-top: 32px; }
}
