/* ======================================================
   LactoBaby.eu — Main Stylesheet
   Premium warmth · Mejuri meets Kindred Bravely
   ====================================================== */

/* --- Custom Properties -------------------------------- */
:root {
  --color-ivory: #FFF8F0;
  --color-ivory-deep: #F5EDE3;
  --color-rose: #D4A5A5;
  --color-rose-light: #E8C5C5;
  --color-gold: #C9A96E;
  --color-gold-light: #D4BB8A;
  --color-gold-dark: #B8954F;
  --color-text: #2C2420;
  --color-text-light: #5C4F47;
  --color-muted: #E8DDD3;
  --color-muted-deep: #DDD0C3;
  --color-white: #FFFCF8;
  --color-dark: #1E1815;

  --font-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --container-max: 1200px;
  --container-narrow: 760px;
  --section-pad: clamp(80px, 10vw, 140px);
  --gap: clamp(1.5rem, 3vw, 2.5rem);

  --radius: 12px;
  --radius-sm: 8px;
  --radius-btn: 8px;

  --shadow-float: 0 8px 40px rgba(44, 36, 32, 0.08), 0 2px 12px rgba(44, 36, 32, 0.04);
  --shadow-hover: 0 12px 48px rgba(44, 36, 32, 0.12), 0 4px 16px rgba(44, 36, 32, 0.06);
  --shadow-btn: 0 2px 8px rgba(201, 169, 110, 0.15);
  --shadow-btn-hover: 0 6px 24px rgba(201, 169, 110, 0.3);

  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--color-ivory);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--color-gold-dark);
  text-decoration: none;
  transition: color 0.3s var(--ease);
}

a:hover { color: var(--color-rose); }

a:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 3px;
  border-radius: 2px;
}

/* --- Layout ------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 4vw, 3rem);
}

.container--narrow {
  max-width: var(--container-narrow);
}

/* --- Typography --------------------------------------- */
h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--color-text);
}

.section__heading {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 300;
  text-align: center;
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
  letter-spacing: -0.02em;
}

.section__heading--left {
  text-align: left;
}

.section__subheading {
  font-family: var(--font-sans);
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  color: var(--color-text-light);
  text-align: center;
  max-width: 540px;
  margin: 0 auto clamp(2rem, 4vw, 3rem);
  line-height: 1.7;
}

.section__body {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  line-height: 1.8;
  color: var(--color-text-light);
  text-align: center;
}

.section__body p + p {
  margin-top: 1.5rem;
}

.section__accent {
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-style: italic;
  font-weight: 400;
  color: var(--color-text);
  text-align: center;
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
}

/* --- Sections ----------------------------------------- */
.section {
  padding: var(--section-pad) 0;
  position: relative;
}

.section--ivory {
  background: linear-gradient(
    180deg,
    var(--color-ivory) 0%,
    var(--color-ivory-deep) 100%
  );
}

.section--warm {
  background: linear-gradient(
    180deg,
    var(--color-ivory-deep) 0%,
    var(--color-muted) 50%,
    var(--color-ivory-deep) 100%
  );
}

.section--cta {
  background: linear-gradient(
    180deg,
    var(--color-ivory-deep) 0%,
    var(--color-muted) 30%,
    var(--color-muted-deep) 100%
  );
}

/* --- Scroll Animations -------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 0.9s var(--ease-out),
    transform 0.9s var(--ease-out);
  will-change: opacity, transform;
}

.section.is-visible .reveal,
.hero .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children inside visible sections */
.section.is-visible .reveal:nth-child(2),
.hero .reveal:nth-child(2) { transition-delay: 0.12s; }
.section.is-visible .reveal:nth-child(3),
.hero .reveal:nth-child(3) { transition-delay: 0.24s; }
.section.is-visible .reveal:nth-child(4),
.hero .reveal:nth-child(4) { transition-delay: 0.36s; }
.section.is-visible .reveal:nth-child(5),
.hero .reveal:nth-child(5) { transition-delay: 0.48s; }
.section.is-visible .reveal:nth-child(6),
.hero .reveal:nth-child(6) { transition-delay: 0.6s; }

/* Steps & Features stagger via their own containers */
.steps .reveal:nth-child(1) { transition-delay: 0s; }
.steps .reveal:nth-child(2) { transition-delay: 0.15s; }
.steps .reveal:nth-child(3) { transition-delay: 0.3s; }
.features .reveal:nth-child(1) { transition-delay: 0s; }
.features .reveal:nth-child(2) { transition-delay: 0.12s; }
.features .reveal:nth-child(3) { transition-delay: 0.24s; }
.features .reveal:nth-child(4) { transition-delay: 0.36s; }

/* --- Hero --------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(44, 36, 32, 0.10) 0%,
    rgba(44, 36, 32, 0.35) 40%,
    rgba(44, 36, 32, 0.60) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--color-ivory);
  padding: 6rem 1.5rem 3rem;
  max-width: 720px;
  width: 100%;
}

.hero__title {
  font-family: var(--font-serif);
  font-size: clamp(2.75rem, 7vw, 5.5rem);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
  color: var(--color-ivory);
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.15);
}

.hero__subtitle {
  font-family: var(--font-sans);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 300;
  line-height: 1.6;
  color: rgba(255, 248, 240, 0.9);
  margin-bottom: 0.75rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.hero__intro {
  font-size: clamp(0.9rem, 1.3vw, 1rem);
  color: rgba(255, 248, 240, 0.7);
  margin-bottom: 2rem;
}

.hero__trust {
  font-size: clamp(0.8rem, 1.1vw, 0.9rem);
  color: rgba(255, 248, 240, 0.6);
  letter-spacing: 0.03em;
  margin-top: 1.75rem;
}

/* --- Steps (How It Works) ----------------------------- */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.step {
  text-align: center;
  padding: clamp(2rem, 3vw, 3rem) clamp(1.5rem, 2vw, 2rem);
  background: var(--color-ivory);
  border-radius: var(--radius);
  box-shadow: var(--shadow-float);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.step:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.step__icon {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 0.75rem;
}

.step__number {
  display: block;
  font-family: var(--font-serif);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: var(--color-gold);
  margin-bottom: 0.5rem;
}

.step__title {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 2.5vw, 1.85rem);
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.step__desc {
  color: var(--color-text-light);
  line-height: 1.7;
  font-size: 0.95rem;
}

.steps__summary {
  text-align: center;
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-style: italic;
  color: var(--color-text-light);
}

/* --- Split Layout (Product / Founder) ----------------- */
.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.split__media {
  order: -1;
}

.split__text p {
  color: var(--color-text-light);
  margin-bottom: 1.25rem;
  line-height: 1.8;
}

.split__text p:last-child {
  margin-bottom: 0;
}

/* --- Float Images ------------------------------------- */
.float-img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-float);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

.float-img:hover {
  transform: translateY(-4px) scale(1.005);
  box-shadow: var(--shadow-hover);
}

/* --- Price -------------------------------------------- */
.price {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--color-gold-dark);
  margin-top: 1.5rem;
  margin-bottom: 1.25rem;
}

.price strong {
  font-weight: 600;
}

.disclaimer {
  font-size: 0.85rem;
  color: var(--color-text-light);
  opacity: 0.75;
  font-style: italic;
  line-height: 1.6;
}

/* --- Social Proof ------------------------------------- */
.waitlist-counter {
  text-align: center;
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: var(--color-text-light);
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.social-proof__row {
  margin-bottom: clamp(1.5rem, 3vw, 2rem);
}

.social-proof__img {
  max-width: 480px;
  margin: clamp(2rem, 4vw, 2.5rem) auto 0;
}

/* --- Testimonial -------------------------------------- */
.testimonial {
  position: relative;
  text-align: center;
  padding: clamp(2rem, 4vw, 3.5rem) clamp(1.5rem, 3vw, 2.5rem);
  background: var(--color-ivory);
  border-radius: var(--radius);
  box-shadow: var(--shadow-float);
  max-width: 640px;
  margin: 0 auto;
}

.testimonial__mark {
  position: absolute;
  top: -0.1em;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-serif);
  font-size: clamp(5rem, 10vw, 8rem);
  line-height: 1;
  color: var(--color-rose-light);
  opacity: 0.4;
  pointer-events: none;
  user-select: none;
}

.testimonial__text {
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.7;
  color: var(--color-text);
  position: relative;
  z-index: 1;
}

.testimonial__author {
  margin-top: 1.5rem;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--color-text-light);
  font-style: normal;
}

/* --- Features (Why Us) -------------------------------- */
.features {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
}

.feature {
  text-align: center;
  padding: clamp(2rem, 3vw, 2.5rem) clamp(1.5rem, 2vw, 2rem);
  background: var(--color-ivory);
  border-radius: var(--radius);
  box-shadow: var(--shadow-float);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.feature:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.feature__icon {
  font-size: 2.25rem;
  display: block;
  margin-bottom: 0.75rem;
}

.feature__title {
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 2vw, 1.6rem);
  font-weight: 500;
  margin-bottom: 0.6rem;
}

.feature__desc {
  color: var(--color-text-light);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* --- Founder ------------------------------------------ */
.founder-letter p {
  margin-bottom: 1.25rem;
}

.founder-letter__sign {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-style: italic;
  margin-top: 2rem;
}

/* --- CTA Buttons -------------------------------------- */
.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  border: none;
  cursor: pointer;
  border-radius: var(--radius-btn);
  min-height: 52px;
  padding: 0.875rem 2rem;
  transition:
    transform 0.3s var(--ease),
    box-shadow 0.3s var(--ease),
    background-color 0.3s var(--ease);
  white-space: nowrap;
  position: relative;
}

.cta-btn--primary {
  background: var(--color-gold);
  color: var(--color-white);
  box-shadow: var(--shadow-btn);
}

.cta-btn--primary:hover {
  background: var(--color-gold-dark);
  transform: scale(1.03);
  box-shadow: var(--shadow-btn-hover);
}

.cta-btn--primary:active {
  transform: scale(0.98);
}

.cta-btn:focus-visible {
  outline: 2px solid var(--color-ivory);
  outline-offset: 3px;
}

.cta-btn--lg {
  min-height: 56px;
  padding: 1rem 2.5rem;
  font-size: 1.05rem;
}

/* Button loader */
.cta-btn__loader {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 252, 248, 0.3);
  border-top-color: var(--color-white);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

.cta-btn.is-loading .cta-btn__text { opacity: 0.6; }
.cta-btn.is-loading .cta-btn__loader { display: block; }
.cta-btn.is-loading { pointer-events: none; }

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* --- Forms -------------------------------------------- */
.waitlist-form {
  width: 100%;
}

.waitlist-form--hero {
  max-width: 480px;
  margin: 0 auto;
}

.waitlist-form--full {
  max-width: 540px;
  margin: 0 auto;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.form-field {
  flex: 1;
}

.form-input {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 1rem;
  padding: 0.9rem 1.25rem;
  border: 2px solid transparent;
  border-radius: var(--radius-btn);
  background: rgba(255, 252, 248, 0.95);
  color: var(--color-text);
  outline: none;
  transition:
    border-color 0.3s var(--ease),
    box-shadow 0.3s var(--ease),
    background-color 0.3s var(--ease);
}

.form-input::placeholder {
  color: var(--color-text-light);
  opacity: 0.5;
}

.form-input:focus {
  border-color: var(--color-gold);
  box-shadow: 0 0 0 4px rgba(201, 169, 110, 0.15);
  background: var(--color-white);
}

.form-input--lg {
  padding: 1rem 1.5rem;
  font-size: 1.05rem;
}

/* Waitlist section form: styled for visibility on warm bg */
.section--cta .form-input {
  background: var(--color-white);
  border-color: var(--color-muted-deep);
}

.section--cta .form-input:focus {
  border-color: var(--color-gold);
  box-shadow: 0 0 0 4px rgba(201, 169, 110, 0.2);
}

/* Honeypot — invisible to users */
.form-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

/* GDPR Checkbox */
.gdpr-label {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-top: 1rem;
  cursor: pointer;
  font-size: 0.85rem;
  line-height: 1.55;
}

.gdpr-checkbox {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.gdpr-check {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border: 2px solid var(--color-muted-deep);
  border-radius: 4px;
  background: var(--color-white);
  transition: all 0.2s var(--ease);
  position: relative;
  margin-top: 1px;
}

.gdpr-check::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 6px;
  width: 5px;
  height: 10px;
  border: solid var(--color-white);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) scale(0);
  transition: transform 0.2s var(--ease);
}

.gdpr-checkbox:checked + .gdpr-check {
  background: var(--color-gold);
  border-color: var(--color-gold);
}

.gdpr-checkbox:checked + .gdpr-check::after {
  transform: rotate(45deg) scale(1);
}

.gdpr-checkbox:focus-visible + .gdpr-check {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
}

.hero .gdpr-text { color: rgba(255, 248, 240, 0.75); }
.hero .gdpr-text a { color: rgba(255, 248, 240, 0.9); }
.hero .gdpr-check { border-color: rgba(255, 248, 240, 0.4); background: rgba(255, 248, 240, 0.1); }
.hero .gdpr-checkbox:checked + .gdpr-check { background: var(--color-gold); border-color: var(--color-gold); }

.section--cta .gdpr-text { color: var(--color-text-light); }

/* Form Status */
.form-status {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  line-height: 1.5;
  min-height: 0;
  transition: all 0.3s var(--ease);
}

.form-status:empty { display: none; }

.form-status--success {
  color: #4A7C59;
  background: rgba(74, 124, 89, 0.08);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
}

.form-status--error {
  color: #B85450;
  background: rgba(184, 84, 80, 0.08);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
}

.hero .form-status--success {
  color: #A8D8A8;
  background: rgba(168, 216, 168, 0.1);
}

.hero .form-status--error {
  color: #F0A8A6;
  background: rgba(240, 168, 166, 0.1);
}

/* Waitlist note */
.waitlist__note {
  text-align: center;
  font-size: 0.85rem;
  color: var(--color-text-light);
  margin-top: 1.5rem;
  opacity: 0.7;
}

/* --- Footer ------------------------------------------- */
.footer {
  background: var(--color-dark);
  color: rgba(255, 248, 240, 0.7);
  padding: clamp(3rem, 5vw, 4rem) 0 clamp(2rem, 3vw, 2.5rem);
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer__brand {
  text-align: center;
}

.footer__logo {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 500;
  color: var(--color-ivory);
  letter-spacing: 0.02em;
}

.footer__tagline {
  font-size: 0.9rem;
  margin-top: 0.5rem;
  color: rgba(255, 248, 240, 0.5);
}

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

.footer__links a {
  color: rgba(255, 248, 240, 0.6);
  font-size: 0.9rem;
  transition: color 0.3s var(--ease);
}

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

.footer__bottom {
  border-top: 1px solid rgba(255, 248, 240, 0.08);
  padding-top: 1.5rem;
  text-align: center;
}

.footer__gdpr {
  font-size: 0.8rem;
  color: rgba(255, 248, 240, 0.4);
  margin-bottom: 0.5rem;
}

.footer__copy {
  font-size: 0.8rem;
  color: rgba(255, 248, 240, 0.35);
}

/* --- Tablet (768px) ----------------------------------- */
@media (min-width: 768px) {
  .form-row {
    flex-direction: row;
    align-items: stretch;
  }

  .steps {
    grid-template-columns: repeat(3, 1fr);
  }

  .features {
    grid-template-columns: repeat(2, 1fr);
  }

  .split {
    grid-template-columns: 1fr 1fr;
  }

  .split--img-left .split__media { order: 0; }
  .split--img-right .split__media { order: 1; }

  .footer__inner {
    flex-direction: row;
    justify-content: space-between;
  }

  .footer__brand { text-align: left; }
}

/* --- Desktop (1024px) --------------------------------- */
@media (min-width: 1024px) {
  /* --- Presentation-slide rule: one screen, one message --- */
  .section {
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .hero__content {
    padding: 0 2rem;
  }

  .section__heading {
    letter-spacing: -0.025em;
  }

  .split {
    gap: clamp(3rem, 6vw, 5rem);
  }

  /* --- #problem: more visual weight ---------------------- */
  #problem .section__heading {
    font-size: clamp(2.75rem, 5.5vw, 4.5rem);
  }

  #problem .section__body {
    font-size: clamp(1.15rem, 1.6vw, 1.4rem);
  }

  #problem .section__heading::after {
    content: '';
    display: block;
    width: 60px;
    height: 1px;
    background: var(--color-gold);
    margin: 2.5rem auto 0;
    opacity: 0.5;
  }

  /* --- #social-proof: side-by-side layout ---------------- */
  .social-proof__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: clamp(2rem, 4vw, 3.5rem);
    margin-bottom: 1.5rem;
  }

  .social-proof__row .testimonial {
    max-width: none;
  }

  .social-proof__row .social-proof__img {
    max-width: none;
    margin: 0;
    max-height: 400px;
    overflow: hidden;
    border-radius: var(--radius);
  }

  .social-proof__row .float-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: var(--radius);
  }

  .testimonial {
    padding: 3rem 2.5rem;
  }
}

/* --- Large Desktop (1280px) --------------------------- */
@media (min-width: 1280px) {
  .features {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* --- Reduced motion ----------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html { scroll-behavior: auto; }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
