/* ============ Renewal Psychotherapy — Design System ============ */
:root {
  /* Palette — Soft & hopeful */
  --canvas: #F7F2EC;
  --canvas-2: #EEE5DA;
  --ink: #2A1F3D;
  --ink-soft: #4A3E5E;
  --blush: #F0C8C0;
  --blush-deep: #E8A598;
  --butter: #F4D88A;
  --butter-deep: #EDC560;
  --lilac: #C9B8E8;
  --lilac-deep: #A88FD4;
  --plum: #4E2D5C;
  --plum-deep: #3A1F46;
  --cream: #FBF7F2;

  /* Type */
  --serif: 'Cormorant Garamond', 'Old Standard TT', Georgia, serif;
  --sans: 'Inter Tight', 'Inter', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;

  /* Density */
  --gap: 20px;
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 10px;

  /* Shadows — soft and warm */
  --shadow-sm: 0 1px 2px rgba(42, 31, 61, 0.04), 0 2px 8px rgba(42, 31, 61, 0.03);
  --shadow-md: 0 4px 20px rgba(42, 31, 61, 0.06);

  --hero-h: clamp(56px, 8.2vw, 132px);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  overflow-x: clip;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--sans);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 16px;
  line-height: 1.55;
}

/* Soft grain overlay for warmth */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.35;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/><feColorMatrix values='0 0 0 0 0.16 0 0 0 0 0.12 0 0 0 0 0.24 0 0 0 0.05 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

::selection { background: var(--lilac); color: var(--ink); }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.02;
  margin: 0;
  color: var(--ink);
  text-wrap: pretty;
}

h1 { font-size: var(--hero-h); letter-spacing: -0.03em; line-height: 0.96; }
h2 { font-size: clamp(40px, 5.5vw, 84px); }
h3 { font-size: clamp(26px, 2.6vw, 40px); }

em, .italic { font-family: var(--serif); font-style: italic; font-weight: 400; }

p { margin: 0; text-wrap: pretty; }

a { color: inherit; text-decoration: none; }

/* ============ LAYOUT PRIMITIVES ============ */
.page {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 56px);
}

.section {
  padding: clamp(80px, 10vw, 160px) 0;
  position: relative;
}

/* ============ NAV ============ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(247, 242, 236, 0.75);
  border-bottom: 1px solid rgba(42, 31, 61, 0.06);
}
.nav-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 18px clamp(20px, 4vw, 56px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 12px;
  line-height: 1;
}
.logo-mark {
  width: 30px; height: 30px;
  flex-shrink: 0;
  animation: spin-slow 40s linear infinite;
}
@keyframes spin-slow { from { transform: rotate(0); } to { transform: rotate(360deg); } }
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-text .lt-1 { font-family: var(--serif); font-style: italic; font-size: 22px; letter-spacing: -0.02em; }
.logo-text .lt-2 { font-family: var(--mono); font-style: normal; font-size: 9.5px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-soft); margin-top: 2px; }
.nav-links {
  display: flex;
  gap: clamp(20px, 3vw, 44px);
  font-size: 15px;
  color: var(--ink-soft);
}
.nav-links a { position: relative; padding: 6px 0; transition: color .2s ease; }
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--ink); }
.nav-links a.active::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 1px; background: var(--plum);
}

/* Mobile nav toggle (hamburger) + dropdown — hidden on desktop */
.nav-toggle { display: none; }
.nav-mobile { display: none; }
@media (max-width: 860px) {
  .nav-inner .nav-cta { display: none; }
  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 11px 10px;
    margin-right: -8px;
    background: transparent;
    border: none;
    cursor: pointer;
  }
  .nav-toggle-bar {
    display: block;
    width: 24px;
    height: 2px;
    border-radius: 2px;
    background: var(--ink);
    transition: transform .3s ease, opacity .2s ease;
  }
  .nav-toggle.open .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open .nav-toggle-bar:nth-child(2) { opacity: 0; }
  .nav-toggle.open .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .nav-mobile {
    flex-direction: column;
    padding: 4px clamp(20px, 4vw, 56px) 18px;
    border-top: 1px solid rgba(42, 31, 61, 0.06);
  }
  .nav-mobile.open { display: flex; animation: navFade .25s ease; }
  @keyframes navFade { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
  .nav-mobile a {
    padding: 15px 2px;
    font-family: var(--serif);
    font-size: 19px;
    color: var(--ink-soft);
    border-bottom: 1px solid rgba(42, 31, 61, 0.07);
  }
  .nav-mobile a.active { color: var(--plum); }
  .nav-mobile .nav-mobile-cta {
    border-bottom: none;
    margin-top: 16px;
    justify-content: center;
    font-family: var(--sans);
    font-size: 15px;
    color: var(--cream);
  }
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .25s cubic-bezier(.2,.8,.2,1), background .25s ease, color .25s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--ink);
  color: var(--cream);
}
.btn-primary:hover { transform: translateY(-1px); background: var(--plum); }
.btn-primary .arr { transition: transform .3s ease; }
.btn-primary:hover .arr { transform: translate(3px, -3px); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid rgba(42, 31, 61, 0.2);
}
.btn-ghost:hover { background: rgba(42, 31, 61, 0.04); }

/* ============ BENTO ============ */
.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gap);
}
.tile {
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 40px);
  position: relative;
  overflow: hidden;
  transition: transform .4s cubic-bezier(.2,.8,.2,1), box-shadow .4s ease;
  min-height: 260px;
  display: flex;
  flex-direction: column;
}
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.tile-blush  { background: var(--blush); color: var(--ink); }
.tile-butter { background: var(--butter); color: var(--ink); }
.tile-lilac  { background: var(--lilac); color: var(--ink); }
.tile-plum   { background: var(--plum); color: var(--cream); }
.tile-plum h3, .tile-plum h2 { color: var(--cream); }
.tile-bone   { background: var(--canvas-2); color: var(--ink); }
.tile-cream  { background: var(--cream); color: var(--ink); border: 1px solid rgba(42,31,61,0.06); }

.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  opacity: 0.65;
}

/* ============ REVEAL ============ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s ease, transform .8s cubic-bezier(.2,.8,.2,1);
}
.reveal.in { opacity: 1; transform: none; }

/* ============ MARQUEE ============ */
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.marquee {
  overflow: hidden;
  padding: clamp(24px, 3vw, 40px) 0;
  border-top: 1px solid rgba(42,31,61,0.08);
  border-bottom: 1px solid rgba(42,31,61,0.08);
}
.marquee-track {
  display: flex;
  gap: 60px;
  animation: marquee 40s linear infinite;
  width: max-content;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(28px, 3.4vw, 52px);
  color: var(--ink-soft);
  white-space: nowrap;
}
.marquee-track .dot {
  display: inline-flex;
  align-items: center;
  color: var(--blush-deep);
}

/* ============ FOOTER ============ */
.footer {
  background: var(--ink);
  color: var(--cream);
  padding: clamp(60px, 8vw, 120px) 0 40px;
  border-top-left-radius: 40px;
  border-top-right-radius: 40px;
  margin-top: 60px;
}
.footer h2 { color: var(--cream); }
.footer a { color: var(--cream); opacity: 0.85; }
.footer a:hover { opacity: 1; }

/* ============ ABSTRACT SHAPES ============ */
.shape { position: absolute; pointer-events: none; }

.blob {
  border-radius: 50%;
  filter: blur(30px);
  opacity: 0.55;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 860px) {
  .bento { grid-template-columns: repeat(6, 1fr); }
  .tile { min-height: 200px; }
  .nav-links { display: none; }
  .nav-links.mobile-show { display: flex; }
}

/* ============ UTILITY ============ */
.col-12 { grid-column: span 12; }
.col-8  { grid-column: span 8; }
.col-7  { grid-column: span 7; }
.col-6  { grid-column: span 6; }
.col-5  { grid-column: span 5; }
.col-4  { grid-column: span 4; }
.col-3  { grid-column: span 3; }

@media (max-width: 860px) {
  .col-12, .col-8, .col-7, .col-6, .col-5, .col-4, .col-3 { grid-column: span 6; }
}

.row-2 { grid-row: span 2; }

.stack { display: flex; flex-direction: column; gap: 16px; }
.row   { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.grow  { flex: 1; }

.divider { height: 1px; background: rgba(42,31,61,0.08); margin: 0; border: none; }

/* Image placeholder with warm photography feel */
.photo {
  background: linear-gradient(135deg, var(--blush) 0%, var(--butter) 55%, var(--lilac) 100%);
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
}
.photo::after {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><filter id='n'><feTurbulence baseFrequency='1.2' numOctaves='1'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 0.9 0 0 0 0 0.8 0 0 0 0.3 0'/></filter><rect width='100' height='100' filter='url(%23n)'/></svg>");
  mix-blend-mode: overlay;
  opacity: 0.6;
}
.photo-label {
  position: absolute;
  bottom: 12px; left: 12px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(42,31,61,0.75);
  color: var(--cream);
  padding: 4px 8px;
  border-radius: 4px;
  z-index: 2;
}

/* Link arrow */
.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  color: var(--ink);
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  transition: gap .25s ease;
}
.arrow-link:hover { gap: 14px; }

/* ============ CTA BAND (shared across pages) ============ */
.cta-band {
  background: var(--canvas-2);
  border-radius: var(--radius-lg);
  padding: clamp(48px, 6vw, 96px);
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gap);
  align-items: center;
  position: relative;
  overflow: hidden;
}
.cta-band::before, .cta-band::after {
  content: ''; position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.5;
  pointer-events: none;
}
.cta-band::before {
  top: -80px; right: 10%;
  width: 240px; height: 240px;
  background: var(--butter);
}
.cta-band::after {
  bottom: -80px; left: 5%;
  width: 280px; height: 280px;
  background: var(--blush);
}
.cta-band > * { position: relative; z-index: 2; }
.cta-band .cta-text { grid-column: span 8; padding-right: 24px; }
.cta-band .cta-cta { grid-column: span 4; text-align: right; }
.cta-band h2 em { color: var(--plum); }
.cta-band .cta-text h2 { margin-top: 20px; }
.cta-band .sec-label { margin-bottom: 0; }
@media (max-width: 860px) {
  .cta-band .cta-text, .cta-band .cta-cta { grid-column: span 6; text-align: left; }
}

/* Centered variant — used on services page CTA */
.cta-band-centered {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 28px;
  padding: clamp(72px, 9vw, 140px) clamp(24px, 5vw, 80px);
}
.cta-band-centered .sec-label { justify-content: center; }
.cta-band-centered .sec-label::before { display: none; }
.cta-band-centered h2 { max-width: 22ch; margin: 0 auto; }
.cta-band-centered .cta-cta { text-align: center; }
.cta-band-centered .cta-bloom {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
  pointer-events: none;
  z-index: 1;
}
.cta-band-centered .cta-bloom-1 { background: var(--butter); width: 360px; height: 360px; top: -120px; left: 12%; opacity: 0.5; }
.cta-band-centered .cta-bloom-2 { background: var(--blush); width: 320px; height: 320px; top: 30%; right: -100px; opacity: 0.45; }
.cta-band-centered .cta-bloom-3 { background: var(--lilac); width: 280px; height: 280px; bottom: -100px; left: 32%; opacity: 0.4; }
.cta-band-centered .cta-bloom-4 { background: var(--blush); width: 200px; height: 200px; bottom: 18%; left: -80px; opacity: 0.35; filter: blur(50px); }
@media (max-width: 540px) {
  .cta-band-centered { padding: 64px 24px; gap: 22px; }
  .cta-band-centered .cta-bloom-1 { width: 240px; height: 240px; top: -80px; left: 0; }
  .cta-band-centered .cta-bloom-2 { width: 220px; height: 220px; right: -60px; }
  .cta-band-centered .cta-bloom-3 { width: 200px; height: 200px; bottom: -60px; }
}

/* Density variants (toggled on body) */
body[data-density="airy"]  { --gap: 28px; }
body[data-density="cozy"]  { --gap: 20px; }
body[data-density="dense"] { --gap: 12px; }
body[data-density="dense"] .section { padding: clamp(56px, 7vw, 100px) 0; }
body[data-density="dense"] .tile { min-height: 200px; padding: clamp(20px, 2.4vw, 32px); }

/* Shape variants */
body[data-shape="soft"]  { --radius-lg: 28px; --radius-md: 18px; }
body[data-shape="round"] { --radius-lg: 999px; --radius-md: 999px; }
body[data-shape="sharp"] { --radius-lg: 4px; --radius-md: 4px; --radius-sm: 2px; }

/* Palette variants */
body[data-palette="soft-hopeful"] {
  /* default set above */
}
body[data-palette="warm-grounded"] {
  --canvas: #F3EDE4; --canvas-2: #E8DFD1; --ink: #231912; --ink-soft: #4A3A2E;
  --blush: #E6B8A0; --blush-deep: #C98A6A; --butter: #E8C88A; --butter-deep: #C9A35E;
  --lilac: #B8C5A8; --lilac-deep: #8AA078; --plum: #2D4A3E; --plum-deep: #1C3026; --cream: #FAF5ED;
}
body[data-palette="calm-editorial"] {
  --canvas: #F2EDE4; --canvas-2: #E5DDCE; --ink: #1A2438; --ink-soft: #3D4560;
  --blush: #E0D5C0; --blush-deep: #B8A88C; --butter: #D4C8A8; --butter-deep: #A89968;
  --lilac: #A8B5A0; --lilac-deep: #768871; --plum: #1A2438; --plum-deep: #0F1625; --cream: #FBF8F1;
}

/* Typography variants */
body[data-type="cormorant-inter"] {
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Inter Tight', system-ui, sans-serif;
}
body[data-type="old-standard-ibm"] {
  --serif: 'Old Standard TT', Georgia, serif;
  --sans: 'IBM Plex Sans', system-ui, sans-serif;
}
body[data-type="dmserif-dmsans"] {
  --serif: 'DM Serif Display', Georgia, serif;
  --sans: 'DM Sans', system-ui, sans-serif;
}
