/* ============================================================
   plenesca — main.css
   Moderari Studio · Your recipe for feeling whole.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;1,400;1,500&family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500;9..40,600&display=swap');

/* ── TOKENS ── */
:root {
  /* Brand core */
  --sun:     #F5A623;
  --ember:   #C85000;
  --amber:   #E07B00;
  --gold:    #FFD166;
  --cream:   #FFF8EE;
  --warm:    #FBF0DC;
  --light:   #FFE9B8;
  --text:    #2C1800;
  --mid:     #7A4800;
  --muted:   #A06020;
  --rule:    #E8D5A8;
  --navy:    #1E2347;

  /* Tier colours */
  --plan:     #C85000;   /* Ember */
  --maintain: #378ADD;   /* Blue  */
  --rescue:   #1D9E75;   /* Teal  */

  /* UI */
  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --radius-xl:  32px;

  --shadow-soft: 0 2px 16px rgba(44,24,0,0.08);
  --shadow-card: 0 4px 32px rgba(44,24,0,0.12);
  --shadow-lift: 0 8px 48px rgba(44,24,0,0.16);

  --transition: 220ms cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  background: var(--cream);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
}

img, svg { display: block; max-width: 100%; }

/* ── TYPOGRAPHY ── */
.display {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.display-italic {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-weight: 400;
}

h1, h2, h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 400;
  line-height: 1.25;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: 1.25rem; }

p { max-width: 62ch; }

/* ── LAYOUT ── */
.container {
  width: 100%;
  max-width: 1080px;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 3rem);
}

.container--narrow {
  max-width: 680px;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 2rem);
}

/* ── NAV ── */
.nav {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 100;
  background: rgba(255,248,238,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
  padding: 1rem 0;
  transition: box-shadow var(--transition);
}

.nav.scrolled { box-shadow: var(--shadow-soft); }

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1080px;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 3rem);
}

.nav__brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.nav__brand span { color: var(--ember); }

.nav__badge {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ── HERO ── */
.hero {
  padding-top: 8rem;
  padding-bottom: 5rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -10%;
  right: -5%;
  width: 55%;
  height: 130%;
  background: radial-gradient(ellipse at 70% 40%, rgba(245,166,35,0.18) 0%, rgba(200,80,0,0.08) 50%, transparent 75%);
  pointer-events: none;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ember);
  margin-bottom: 1.5rem;
}

.hero__eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--ember);
}

.hero__title {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 1.5rem;
}

.hero__title em {
  font-style: italic;
  color: var(--ember);
}

.hero__lead {
  font-size: 1.15rem;
  font-weight: 300;
  color: var(--mid);
  line-height: 1.75;
  margin-bottom: 2.5rem;
  max-width: 52ch;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  border: none;
  cursor: pointer;
  border-radius: var(--radius-xl);
  padding: 0.85rem 1.75rem;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.btn--primary {
  background: var(--ember);
  color: #fff;
  box-shadow: 0 4px 20px rgba(200,80,0,0.3);
}

.btn--primary:hover {
  background: var(--amber);
  box-shadow: 0 6px 28px rgba(200,80,0,0.4);
  transform: translateY(-1px);
}

.btn--primary:active { transform: translateY(0); }

.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--rule);
}

.btn--ghost:hover {
  border-color: var(--ember);
  color: var(--ember);
}

.btn--large {
  font-size: 1.05rem;
  padding: 1rem 2.25rem;
}

/* ── SECTION STRUCTURE ── */
.section {
  padding-block: clamp(3rem, 7vw, 5rem);
}

.section__label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.section__title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 3.5vw, 2.5rem);
  color: var(--text);
  margin-bottom: 1rem;
}

.section__lead {
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--mid);
  line-height: 1.75;
  max-width: 56ch;
}

/* ── THREE MODES ── */
.modes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.mode-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--rule);
  box-shadow: var(--shadow-soft);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.mode-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--mode-color);
}

.mode-card:hover {
  box-shadow: var(--shadow-card);
  transform: translateY(-3px);
}

.mode-card--plan    { --mode-color: var(--plan); }
.mode-card--maintain { --mode-color: var(--maintain); }
.mode-card--rescue  { --mode-color: var(--rescue); }

.mode-card__icon {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  line-height: 1;
}

.mode-card__label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mode-color);
  margin-bottom: 0.35rem;
}

.mode-card__title {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.mode-card__desc {
  font-size: 0.9rem;
  color: var(--mid);
  line-height: 1.7;
  max-width: 100%;
}

/* ── SCIENCE STRIP ── */
.science-strip {
  background: var(--navy);
  color: rgba(255,255,255,0.9);
  padding-block: 3.5rem;
  position: relative;
  overflow: hidden;
}

.science-strip::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 50%, rgba(245,166,35,0.12), transparent 60%);
  pointer-events: none;
}

.science-strip__quote {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.1rem, 2.5vw, 1.6rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.55;
  color: var(--gold);
  margin-bottom: 1rem;
  max-width: 60ch;
}

.science-strip__attr {
  font-size: 0.82rem;
  font-weight: 300;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.05em;
}

/* ── INTAKE FORM ── */
.intake-section {
  background: var(--warm);
  border-radius: var(--radius-xl);
  padding: clamp(2rem, 6vw, 4rem);
  margin-block: 1rem;
  border: 1px solid var(--rule);
}

.intake-progress {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.intake-progress__bar {
  flex: 1;
  height: 3px;
  background: var(--rule);
  border-radius: 2px;
  overflow: hidden;
}

.intake-progress__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--sun), var(--ember));
  border-radius: 2px;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.intake-progress__label {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
}

.intake-step {
  display: none;
  animation: stepIn 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.intake-step.active { display: block; }

@keyframes stepIn {
  from { opacity: 0; transform: translateX(16px); }
  to   { opacity: 1; transform: translateX(0); }
}

.intake-step__q-number {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ember);
  margin-bottom: 0.5rem;
}

.intake-step__question {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.2rem, 2.5vw, 1.65rem);
  color: var(--text);
  margin-bottom: 0.5rem;
  line-height: 1.35;
}

.intake-step__hint {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 1.75rem;
  font-weight: 300;
}

/* Form elements */
.form-field {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.form-input,
.form-textarea {
  width: 100%;
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 400;
  color: var(--text);
  background: #fff;
  border: 1.5px solid var(--rule);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.1rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  appearance: none;
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--ember);
  box-shadow: 0 0 0 3px rgba(200,80,0,0.1);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.6;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--muted);
  opacity: 0.65;
}

/* Choice chips */
.choices {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.choice-chip {
  position: relative;
}

.choice-chip input[type="radio"],
.choice-chip input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice-chip label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.1rem;
  border: 1.5px solid var(--rule);
  border-radius: var(--radius-xl);
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text);
  background: #fff;
  cursor: pointer;
  transition: all var(--transition);
  user-select: none;
}

.choice-chip input:checked + label {
  background: var(--ember);
  border-color: var(--ember);
  color: #fff;
  box-shadow: 0 2px 12px rgba(200,80,0,0.25);
}

.choice-chip label:hover {
  border-color: var(--sun);
  color: var(--ember);
}

/* Navigation buttons */
.intake-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
}

/* ── FOOTER ── */
.footer {
  background: var(--text);
  color: rgba(255,255,255,0.5);
  padding-block: 3rem;
  text-align: center;
}

.footer__brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.footer__tagline {
  font-size: 0.85rem;
  font-style: italic;
  margin-bottom: 1.5rem;
  color: rgba(255,255,255,0.4);
}

.footer__links {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
  font-size: 0.8rem;
}

.footer__links a {
  color: rgba(255,255,255,0.35);
  text-decoration: none;
  transition: color var(--transition);
}

.footer__links a:hover { color: var(--gold); }

.footer__parent {
  font-size: 0.72rem;
  margin-top: 2rem;
  color: rgba(255,255,255,0.2);
  letter-spacing: 0.05em;
}

/* ── UTILITIES ── */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  overflow: hidden;
}

.text-center { text-align: center; }
.mt-sm { margin-top: 0.75rem; }
.mt-md { margin-top: 1.5rem; }
.mt-lg { margin-top: 2.5rem; }
.mb-sm { margin-bottom: 0.75rem; }
.mb-md { margin-bottom: 1.5rem; }

/* ── RESPONSIVE ── */
@media (max-width: 640px) {
  .modes-grid { grid-template-columns: 1fr; }
  .intake-nav { flex-direction: column-reverse; gap: 0.75rem; }
  .intake-nav .btn { width: 100%; justify-content: center; }
}
