/* ════════════════════════════════════════════════════════════════
   BLUE RIDGE RESILIENCE THERAPY — shared stylesheet
   Typography: Cormorant Garamond (display) + Inter (body)
   Palette: warm oat, plum, clay
════════════════════════════════════════════════════════════════ */

/* ─── RESET + TOKENS ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --shell:       #EFE8DC;
  --shell-deep:  #E4DCC9;
  --milk:        #F8F3E7;
  --clay:        #D3673E;
  --clay-dk:     #A84C27;
  --clay-soft:   #E8A07F;
  --plum:        #4A2C1E;
  --ink:         #231812;
  --mid:         #5B4A3F;
  --muted:       #8C7D70;
  --moss:        #4E5A3E;
  --rule:        rgba(35, 24, 18, 0.14);
  --rule-soft:   rgba(35, 24, 18, 0.07);
  --display: 'Cormorant Garamond', Georgia, serif;
  --body:    'Inter', system-ui, -apple-system, sans-serif;
  --ease:    cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --photo-filter: var(--photo-filter);
  --hero-figure-radius: 280px 280px 40px 40px;
}

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--shell);
  overflow-x: hidden;
  letter-spacing: -0.005em;
}

img { display: block; max-width: 100%; height: auto; }
a   { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1;
  color: var(--plum);
  letter-spacing: -0.01em;
}

p { color: var(--ink); }
::selection { background: var(--clay); color: var(--milk); }

/* ─── CONTAINER ─── */
.container {
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 26px;
  font-family: var(--body);
  font-size: 14px;
  font-weight: 500;
  background: var(--plum);
  color: var(--milk);
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.35s var(--ease);
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.btn::after { content: '→'; transition: transform 0.35s var(--ease); }
.btn:hover  { background: var(--clay-dk); }
.btn:hover::after { transform: translateX(4px); }

.btn-ghost {
  background: transparent;
  color: var(--plum);
  border: 1px solid rgba(35, 24, 18, 0.28);
}
.btn-ghost::after { content: '→'; }
.btn-ghost:hover { background: var(--plum); color: var(--milk); border-color: var(--plum); }

.btn-ghost-light {
  background: transparent;
  color: var(--milk);
  border: 1px solid rgba(248, 243, 231, 0.5);
}
.btn-ghost-light::after { content: '→'; }
.btn-ghost-light:hover { background: var(--milk); color: var(--clay-dk); border-color: var(--milk); }

.btn-sm { padding: 10px 20px; font-size: 13px; }

/* ─── KICKER ─── */
.kicker {
  font-family: var(--body);
  font-size: 11.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--clay-dk);
  font-weight: 500;
  display: inline-block;
}
.kicker-light { color: rgba(248, 243, 231, 0.75); }

/* ─── HEADER ─── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(239, 232, 220, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule-soft);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 18px 40px;
  max-width: 1440px;
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--plum);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.brand-mark svg { width: 22px; height: 22px; }

.brand-stack {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name {
  font-family: var(--display);
  font-size: 20px;
  font-style: italic;
  font-weight: 500;
  color: var(--plum);
  letter-spacing: 0.005em;
}

.brand-tag {
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  margin-top: 2px;
}

/* Desktop nav */
.primary-nav {
  display: flex;
  gap: 28px;
  align-items: center;
}

.primary-nav a {
  font-size: 14px;
  color: var(--mid);
  font-weight: 400;
  position: relative;
  padding: 6px 0;
  transition: color 0.2s;
}

.primary-nav a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--clay);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.primary-nav a:hover { color: var(--plum); }
.primary-nav a:hover::after { transform: scaleX(1); }
.primary-nav a.active { color: var(--plum); }
.primary-nav a.active::after { transform: scaleX(1); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--plum);
  transition: all 0.3s var(--ease);
}

/* Mobile menu */
.mobile-menu {
  display: flex;
  flex-direction: column;
  background: var(--milk);
  border-top: 1px solid var(--rule-soft);
  padding: 8px 0 20px;
  max-height: 0;
  overflow: hidden;
  padding-top: 0;
  padding-bottom: 0;
  transition: max-height 0.32s var(--ease), padding 0.32s var(--ease);
}
.mobile-menu.open {
  max-height: 520px;
  padding-top: 8px;
  padding-bottom: 20px;
}

.mobile-menu a {
  display: block;
  padding: 14px 40px;
  font-size: 15px;
  color: var(--mid);
  border-bottom: 1px solid var(--rule-soft);
  transition: color 0.2s;
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a:hover { color: var(--plum); }
.mobile-menu .btn {
  display: inline-flex;
  margin: 20px 40px 0;
  align-self: flex-start;
}

/* ─── PAGE HERO (inner pages) ─── */
.page-hero {
  background: var(--shell);
  padding: 72px 0 0;
  position: relative;
  overflow: hidden;
}

.page-hero-split {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
}

.page-hero-copy { padding: 20px 0 80px; }
.page-hero-copy .kicker { margin-bottom: 24px; }

.page-hero h1 {
  font-size: clamp(48px, 6.5vw, 100px);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.025em;
  color: var(--plum);
  margin: 20px 0 28px;
}
.page-hero h1 em { font-style: italic; color: var(--clay-dk); }

.page-hero-lead {
  font-size: 18px;
  color: var(--mid);
  max-width: 520px;
  line-height: 1.6;
  margin-bottom: 16px;
}

.page-hero-actions {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  margin-top: 32px;
}

/* Portrait figure */
.page-hero-figure {
  position: relative;
  aspect-ratio: 4 / 5;
  max-width: 500px;
  margin-left: auto;
  align-self: end;
}

.page-hero-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  border-radius: var(--hero-figure-radius);
  filter: var(--photo-filter);
}

.page-hero-figure::after {
  content: '';
  position: absolute;
  inset: 20px -20px -20px 20px;
  border: 2px solid var(--clay);
  border-radius: var(--hero-figure-radius);
  z-index: -1;
}

/* Simple centered hero */
.page-hero-centered {
  text-align: center;
  padding: 100px 0;
}
.page-hero-centered .kicker { justify-content: center; margin-bottom: 20px; }
.page-hero-centered h1 { margin: 0 auto 20px; }
.page-hero-centered .page-hero-lead { margin: 0 auto; text-align: center; }

/* ─── PULL QUOTE ─── */
.pullquote {
  margin: 36px 0;
  padding: 28px 0 28px 32px;
  position: relative;
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(22px, 2.5vw, 30px);
  line-height: 1.35;
  color: var(--plum);
  font-weight: 400;
}
.pullquote::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--clay);
}
.pullquote cite {
  display: block;
  margin-top: 14px;
  font-family: var(--body);
  font-style: normal;
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

/* ─── TEXT LINK ─── */
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--plum);
  padding-bottom: 3px;
  border-bottom: 1px solid var(--rule);
  transition: all 0.3s var(--ease);
  margin-top: 20px;
}
.text-link::after { content: '→'; transition: transform 0.3s var(--ease); }
.text-link:hover  { border-bottom-color: var(--clay); color: var(--clay-dk); }
.text-link:hover::after { transform: translateX(4px); }

/* ─── CTA SECTION ─── */
.cta-section {
  padding: 120px 0;
  background: var(--milk);
  text-align: center;
}
.cta-section .kicker { justify-content: center; margin-bottom: 20px; }
.cta-section h2 {
  font-size: clamp(36px, 4.5vw, 68px);
  font-weight: 400;
  margin: 0 auto 20px;
  max-width: 700px;
  line-height: 1.02;
  letter-spacing: -0.025em;
}
.cta-section h2 em { font-style: italic; color: var(--clay-dk); }
.cta-section p {
  font-size: 17px;
  max-width: 480px;
  margin: 0 auto 36px;
  color: var(--mid);
}
.cta-sub {
  display: block;
  margin-top: 14px;
  font-family: var(--display);
  font-style: italic;
  font-size: 16px;
  color: var(--muted);
}

/* ─── FOOTER ─── */
footer {
  background: var(--plum);
  color: rgba(248, 243, 231, 0.7);
  padding: 96px 0 36px;
  position: relative;
  overflow: hidden;
}
footer::before {
  content: '';
  position: absolute;
  top: -30%; left: -10%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(211, 103, 62, 0.15), transparent 65%);
  pointer-events: none;
}
.footer-inner { position: relative; z-index: 1; }

.footer-big {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(44px, 6vw, 96px);
  font-weight: 300;
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--milk);
  margin-bottom: 64px;
  max-width: 980px;
}
.footer-big em { color: var(--clay-soft); }

.footer-top {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 1fr 0.8fr;
  gap: 56px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(248, 243, 231, 0.12);
}
.footer-top .brand-name { color: var(--milk); }
.footer-top .brand-tag  { color: rgba(248, 243, 231, 0.65); }
.footer-top > div > p {
  margin-top: 20px;
  font-size: 14.5px;
  line-height: 1.6;
  max-width: 300px;
  color: rgba(248, 243, 231, 0.75);
}
.footer-col h4 {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(248, 243, 231, 0.65);
  margin-bottom: 20px;
  font-weight: 500;
  font-family: var(--body);
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; font-size: 14.5px; line-height: 1.55; }
.footer-col a { color: rgba(248, 243, 231, 0.88); transition: color 0.2s; }
.footer-col a:hover { color: var(--clay-soft); }
.footer-extras { font-size: 12.5px; color: rgba(248, 243, 231, 0.65); margin-top: 14px; }

/* Logo mark needs a visible background inside the dark footer */
footer .brand-mark { background: var(--clay); }
footer .brand-mark svg path { stroke: #ffffff; }
footer .brand-mark svg circle { fill: #ffffff; }

.footer-bottom {
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: rgba(248, 243, 231, 0.65);
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom em {
  font-family: var(--display);
  font-style: italic;
  color: rgba(248, 243, 231, 0.8);
}

/* ─── SKIP LINK ─── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  background: var(--plum);
  color: var(--milk);
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 500;
  z-index: 9999;
  transition: top 0.2s;
  text-decoration: none;
}
.skip-link:focus { top: 0; }

/* ─── SCROLL REVEAL ─── */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1250px) {
  .btn-sm { font-size: 12px; padding: 9px 14px; }
}
@media (max-width: 1100px) {
  .primary-nav { display: none; }
  .header-inner { padding: 14px 24px; }
  .nav-hamburger { display: flex; }

  .page-hero-split { grid-template-columns: 1fr; gap: 48px; }
  .page-hero-figure { max-width: 440px; margin: 0 auto; align-self: auto; }
  .page-hero-copy { padding: 20px 0 40px; }
  .page-hero-lead { max-width: 100%; }
}

@media (max-width: 640px) {
  .container { padding: 0 22px; }
  .header-inner { padding: 12px 22px; }
  .header-inner .btn { display: none; }
  .brand-tag { display: none; }
  .brand-name { font-size: 17px; }
  .brand-mark { width: 32px; height: 32px; }
  .mobile-menu a { padding: 13px 22px; }
  .mobile-menu .btn { margin: 16px 22px 0; }

  .page-hero { padding: 48px 0 0; }
  .page-hero h1 { font-size: 44px; }
  .page-hero-lead { font-size: 16px; }
  .page-hero-centered { padding: 72px 0; }

  .footer-top { grid-template-columns: 1fr; gap: 36px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
  .footer-big { margin-bottom: 48px; }

  .cta-section { padding: 80px 0; }
  .pullquote { font-size: 20px; padding-left: 22px; }
}
