/* =========================================================
   DrivenButDrained.com — Global Styles
   drmarieatallah.com rebuild
   ========================================================= */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,500&family=Manrope:wght@300;400;500;600&display=swap');

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  font-size: 16.5px;
  font-weight: 400;
  line-height: 1.8;
  color: #1A1A1A;
  background: #FAFAF8;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

/* ── Color tokens ── */
:root {
  --mauve:        #7D5A6F;
  --mauve-dark:   #5E4054;
  --mauve-light:  #F5EEF2;
  --mauve-mid:    #9E7086;
  --hero-bg:      #0D1720;
  --cream:        #FAFAF8;
  --white:        #ffffff;
  --text:         #1A1A1A;
  --text-2:       #4A4A4A;
  --text-3:       #7A7A7A;
  --border:       #E8DDE3;
  --border-light: #F0E8EC;
  --font-serif:   'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-sans:    'Manrope', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
}

/* ── Typography ── */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--text);
}
h1 {
  font-size: clamp(2.6rem, 5.5vw, 4rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.08;
}
h2 {
  font-size: clamp(1.9rem, 3.5vw, 2.75rem);
  font-weight: 500;
  letter-spacing: -0.015em;
}
h3 {
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -0.005em;
}
h4 { font-size: 1rem; font-weight: 500; letter-spacing: 0; }
p { line-height: 1.85; }

/* ── Layout ── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 32px; }
.container--narrow { max-width: 760px; margin: 0 auto; padding: 0 32px; }
.section { padding: 88px 0; }
.section--sm { padding: 64px 0; }
.section--lg { padding: 112px 0; }

/* ── Overline ── */
.overline {
  display: block;
  font-family: var(--font-sans);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mauve);
  margin-bottom: 18px;
}
.rule { width: 32px; height: 2px; background: var(--mauve); border: none; margin: 0 0 28px; }

/* ── Buttons ── */
.btn {
  display: inline-block;
  background: var(--mauve);
  color: #fff;
  text-decoration: none;
  padding: 16px 32px;
  border-radius: 4px;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  border: none;
  cursor: pointer;
  transition: background 0.18s ease;
  line-height: 1;
}
.btn:hover { background: var(--mauve-dark); color: #fff; }
.btn--lg { padding: 18px 40px; font-size: 1.0625rem; }
.btn--ghost {
  background: transparent;
  color: var(--mauve);
  border: 2px solid var(--mauve);
  padding: 14px 30px;
}
.btn--ghost:hover { background: var(--mauve); color: #fff; }
.btn--light {
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.3);
}
.btn--light:hover { background: rgba(255,255,255,0.22); }

/* ── Navigation ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  padding: 0 32px;
  max-width: 1200px;
  margin: 0 auto;
}
.nav__brand {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: center;
}
.nav__logo {
  height: 32px;
  width: auto;
  display: block;
}
.nav__logo-text { display: none; }
.nav__links { display: flex; align-items: center; gap: 32px; }
.nav__links a { color: var(--text-2); text-decoration: none; font-size: 0.875rem; font-weight: 500; transition: color 0.15s; }
.nav__links a:hover { color: var(--mauve); }
.nav__cta { margin-left: 16px; padding: 10px 22px; font-size: 0.875rem; background: #B08FA0; }
.nav__cta:hover { background: #9E7086; }

/* ── Hero ── */
.hero {
  background: #0D1720;
  padding: 152px 0 96px;
  position: relative;
  overflow: hidden;
  min-height: 80vh;
  display: flex;
  align-items: center;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 25%, rgba(90,45,65,0.35) 0%, transparent 65%);
  z-index: 2;
}
.hero__mountain {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100%; height: 100%;
  background-image: url('https://media3.giphy.com/media/fe3zisUnJjbqM/giphy.gif');
  background-size: cover;
  background-position: center center;
  z-index: 1;
  opacity: 0.45;
}
.hero__content { position: relative; z-index: 3; }
.hero__overline { color: #C4A0B0; }
.hero h1 { color: #F5EFF2; max-width: 840px; margin-bottom: 24px; }
.hero__sub { font-family: var(--font-sans); font-size: 1.0625rem; font-weight: 300; color: #C4B0BA; max-width: 600px; margin-bottom: 44px; line-height: 1.85; letter-spacing: 0.01em; }
.hero__cta-group { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

/* ── Cards ── */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 32px 28px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  text-decoration: none;
  display: block;
  color: inherit;
}
.card:hover {
  box-shadow: 0 6px 24px rgba(125,90,111,0.12);
  transform: translateY(-2px);
}
.card__icon { font-size: 26px; margin-bottom: 16px; }
.card__title { font-family: var(--font-serif); font-size: 1.25rem; font-weight: 500; margin-bottom: 10px; color: var(--text); }
.card__body { font-size: 0.9375rem; line-height: 1.75; color: var(--text-2); margin-bottom: 0; }
.card__link { display: block; margin-top: 20px; font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.04em; color: var(--mauve); }

/* ── Grid ── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* ── Process steps ── */
.process-h {
  margin-top: 40px;
}
.process-h__row {
  display: flex;
  align-items: stretch;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.process-h__btn {
  position: relative;
  flex-shrink: 0;
  background: var(--mauve-light);
  border: none;
  cursor: pointer;
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-2);
  padding: 18px 32px 18px 42px;
  margin-left: -18px;
  clip-path: polygon(18px 0%, calc(100% - 18px) 0%, 100% 50%, calc(100% - 18px) 100%, 18px 100%, 0% 50%);
  transition: background 0.18s, color 0.18s;
  line-height: 1.25;
  white-space: nowrap;
  z-index: 1;
}
.process-h__btn:first-child {
  margin-left: 0;
  padding-left: 24px;
  clip-path: polygon(0% 0%, calc(100% - 18px) 0%, 100% 50%, calc(100% - 18px) 100%, 0% 100%);
  z-index: 5;
}
.process-h__btn:nth-child(2) { z-index: 4; }
.process-h__btn:nth-child(3) { z-index: 3; }
.process-h__btn:nth-child(4) { z-index: 2; }
.process-h__btn:last-child {
  clip-path: polygon(18px 0%, 100% 0%, 100% 100%, 18px 100%, 0% 50%);
  z-index: 1;
}
.process-h__btn:hover {
  background: rgba(125,90,111,0.22);
  color: var(--mauve-dark);
  z-index: 10;
}
.process-h__btn.is-active {
  background: var(--mauve);
  color: #fff;
  z-index: 10;
}
.process-h__panel {
  margin-top: 24px;
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--text-2);
  padding: 18px 24px;
  background: rgba(125,90,111,0.06);
  border-left: 3px solid var(--mauve);
  border-radius: 0 4px 4px 0;
  display: none;
}
.process-h__panel.is-visible { display: block; }

/* ── Callout block ── */
.callout {
  background: var(--mauve-light);
  border-left: 4px solid var(--mauve);
  border-radius: 0 8px 8px 0;
  padding: 32px 36px;
}
.callout h3 { margin-bottom: 12px; }
.callout p { margin-bottom: 20px; color: var(--text-2); }

/* ── Credential pills ── */
.pills { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 32px; }
.pill {
  background: var(--mauve-light);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 8px 16px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--mauve);
}

/* ── Investment section ── */
.section--dark {
  background: var(--hero-bg);
  color: #F5EFF2;
}
.section--dark h2 { color: #F5EFF2; }
.section--dark .overline { color: #C4A0B0; }
.section--dark p { color: #C4B0BA; }
.section--dark .rule { background: var(--mauve-mid); }

/* ── Investment block ── */
.invest-label {
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--mauve-mid);
  margin-bottom: 20px;
}
.invest-price {
  font-family: var(--font-serif);
  font-size: clamp(2.6rem, 5vw, 3.75rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  color: #F5EFF2;
  line-height: 1;
  margin-bottom: 28px;
}

/* ── FAQ ── */
.faq { border-top: 1px solid var(--border); }
details { border-bottom: 1px solid var(--border); }
summary {
  padding: 20px 0;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; font-size: 1.25rem; font-weight: 300; color: var(--mauve); flex-shrink: 0; }
details[open] summary::after { content: '−'; }
.faq__body { padding: 0 0 20px; color: var(--text-2); line-height: 1.75; font-size: 0.9375rem; }
.faq__body p { margin-bottom: 12px; }
.faq__body p:last-child { margin-bottom: 0; }

/* ── Info cards (one-word + hover body) ── */
.info-card {
  background: var(--mauve-light);
  border-radius: 8px;
  padding: 32px 28px;
  cursor: default;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: background 0.2s;
}
.info-card:hover { background: rgba(125,90,111,0.18); }
.info-card__title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0;
  letter-spacing: -0.005em;
}
.info-card__body {
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--text-2);
  margin-top: 0;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.35s ease, opacity 0.28s ease, margin-top 0.28s ease;
}
.info-card:hover .info-card__body {
  max-height: 300px;
  opacity: 1;
  margin-top: 12px;
}

/* ── Archetype hover reveal ── */
.archetype-hover {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 40px;
  cursor: default;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: box-shadow 0.25s, border-color 0.25s;
  position: relative;
}
.archetype-hover:hover {
  box-shadow: 0 4px 24px rgba(125,90,111,0.1);
  border-color: var(--border);
}
.archetype-hover__trigger {
  font-family: var(--font-serif);
  font-size: 1.3125rem;
  font-weight: 400;
  font-style: italic;
  color: var(--text-2);
  margin: 0;
  line-height: 1.4;
}
.archetype-hover__body {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.55s ease, opacity 0.4s ease;
}
.archetype-hover:hover .archetype-hover__body { max-height: 700px; opacity: 1; }
.archetype-hover__body p {
  color: var(--text-2);
  font-size: 0.9375rem;
  line-height: 1.85;
  padding-top: 14px;
  margin-bottom: 0;
}
.archetype-hover__body p:first-child { padding-top: 22px; }
.archetype-hover__hint {
  font-size: 0.75rem;
  color: var(--text-3);
  letter-spacing: 0.06em;
  margin-top: 14px;
  transition: opacity 0.2s;
}
.archetype-hover:hover .archetype-hover__hint { opacity: 0; }

/* ── Archetype / composite ── */
.archetype {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 36px;
  position: relative;
}
.archetype::before {
  content: '\201C';
  position: absolute;
  top: 20px; left: 32px;
  font-size: 4rem;
  line-height: 1;
  color: var(--border);
  font-family: Georgia, serif;
}
.archetype p { color: var(--text-2); font-size: 0.9375rem; line-height: 1.85; padding-top: 20px; margin-bottom: 0; }
.archetype p:first-child { padding-top: 24px; }
.archetype p + p { padding-top: 14px; }

/* ── Niche hero (darker mauve) ── */
.hero--niche { min-height: 60vh; padding: 140px 0 80px; }
.hero--niche h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); }

/* ── Screener ── */
.screener { max-width: 760px; margin: 0 auto; }
.screener__disclaimer {
  background: #FFF8F0;
  border: 1px solid #F0D8B0;
  border-radius: 8px;
  padding: 28px 32px;
  margin-bottom: 40px;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--text-2);
}
.screener__disclaimer strong { color: var(--text); }
.question { margin-bottom: 40px; border-bottom: 1px solid var(--border-light); padding-bottom: 32px; }
.question:last-child { border-bottom: none; }
.question__text { font-size: 1.0625rem; font-weight: 600; margin-bottom: 20px; line-height: 1.5; }
.question__domain { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mauve); margin-bottom: 8px; }
.scale { display: flex; gap: 8px; flex-wrap: wrap; }
.scale label { cursor: pointer; }
.scale input[type=radio] { display: none; }
.scale__opt {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 10px;
  min-width: 88px;
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: 8px;
  transition: all 0.15s;
  font-size: 0.8125rem;
  text-align: center;
  color: var(--text-2);
}
.scale input:checked + .scale__opt {
  border-color: var(--mauve);
  background: var(--mauve-light);
  color: var(--mauve);
  font-weight: 600;
}
.screener__footer-note {
  background: #F8F4F6;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px 28px;
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--text-2);
  margin-top: 48px;
}

/* ── Result template ── */
.result { display: none; }
.result.is-active { display: block; }
.result__headline { font-size: clamp(1.75rem, 3.5vw, 2.5rem); font-weight: 700; margin-bottom: 24px; }
.result__body p { font-size: 1.0625rem; line-height: 1.8; color: var(--text-2); margin-bottom: 20px; }
.result__what h3 { font-size: 1.125rem; font-weight: 700; margin-bottom: 16px; }
.result__what p { font-size: 1.0625rem; line-height: 1.8; color: var(--text-2); margin-bottom: 16px; }

/* ── Form (intake gate) ── */
.form-field { margin-bottom: 24px; }
.form-field label { display: block; font-size: 0.875rem; font-weight: 600; margin-bottom: 8px; color: var(--text); }
.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
  background: var(--white);
  color: var(--text);
  transition: border-color 0.15s;
  appearance: none;
}
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--mauve);
}
.form-field textarea { resize: vertical; min-height: 120px; }
.form-field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237D5A6F' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.fee-options { display: flex; flex-direction: column; gap: 12px; }
.fee-option { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.fee-option input[type=radio] { width: 18px; height: 18px; accent-color: var(--mauve); flex-shrink: 0; }
.fee-option span { font-size: 0.9375rem; color: var(--text-2); }

/* ── Footer ── */
footer {
  background: var(--hero-bg);
  padding: 56px 0 40px;
  color: #C4B0BA;
}
.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 48px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.footer__brand { font-family: var(--font-sans); font-weight: 600; font-size: 0.8125rem; letter-spacing: 0.14em; text-transform: uppercase; color: #F5EFF2; margin-bottom: 12px; }
.footer__tagline { font-size: 0.8125rem; color: #A89098; max-width: 240px; line-height: 1.6; }
.footer__links { display: flex; flex-direction: column; gap: 10px; }
.footer__links a { color: #A89098; text-decoration: none; font-size: 0.875rem; transition: color 0.15s; }
.footer__links a:hover { color: #F5EFF2; }
.footer__contact p { font-size: 0.875rem; color: #A89098; margin-bottom: 6px; }
.footer__contact a { color: #C4B0BA; text-decoration: none; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,0.07); padding-top: 28px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer__copy { font-size: 0.8125rem; color: #6A5860; }
.footer__legal a { font-size: 0.8125rem; color: #6A5860; text-decoration: none; }
.footer__legal a:hover { color: #A89098; }

/* ── About page 2-col grid ── */
.grid-about {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 64px;
  align-items: start;
}

/* ── Hero video background ── */
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.3;
}

/* ── Hero entrance animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes heroPulse {
  0%,100% { opacity: 0.9; }
  50%      { opacity: 1; }
}
.hero__bg { animation: heroPulse 10s ease-in-out infinite; }
.hero .overline        { animation: fadeUp 0.55s ease both; animation-delay: 0.05s; }
.hero h1               { animation: fadeUp 0.65s ease both; animation-delay: 0.2s; }
.hero__sub             { animation: fadeUp 0.65s ease both; animation-delay: 0.35s; }
.hero__cta-group       { animation: fadeUp 0.65s ease both; animation-delay: 0.5s; }

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  .hero__bg, .hero .overline, .hero h1, .hero__sub, .hero__cta-group { animation: none; }
}

/* ── Scroll reveal (disabled — content must be visible without scrolling) ── */
.reveal { opacity: 1; transform: none; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ── Mobile hamburger nav ── */
.nav__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 4px;
  margin-left: 8px;
}
.nav__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.2s ease;
}
.nav--open .nav__hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav--open .nav__hamburger span:nth-child(2) { opacity: 0; }
.nav--open .nav__hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .container, .container--narrow { padding: 0 20px; }
  .section { padding: 64px 0; }
  .section--lg { padding: 80px 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .grid-about { grid-template-columns: 1fr; gap: 32px; }
  .nav__hamburger { display: flex; }
  .nav__links {
    display: none;
    position: fixed;
    top: 68px; left: 0; right: 0;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 24px 28px 32px;
    gap: 20px;
    border-bottom: 1px solid var(--border);
    z-index: 99;
  }
  .nav--open .nav__links { display: flex; }
  .nav__links a { font-size: 1rem; color: var(--text-2); }
  .nav__cta { width: fit-content; }
  .hero { padding: 120px 0 72px; min-height: 70vh; }
  .hero__cta-group { flex-direction: column; align-items: flex-start; }
  .callout { padding: 24px; }
  .pills { gap: 8px; }
  .scale { gap: 6px; }
  .scale__opt { min-width: 64px; padding: 10px 8px; font-size: 0.75rem; }
}
