/* ═══════════════════════════════════════════
   Daniel Detox — Natural Sovereignty Design
   Complete Redesign v2.0
   ═══════════════════════════════════════════ */

/* ── Fonts ── */
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/outfit-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin.woff2") format("woff2");
}

/* ── Design Tokens ── */
:root {
  --canvas: #F9F9F6;
  --deep: #1A362B;
  --deep-rich: #0F2119;
  --sage: #8BA888;
  --sage-soft: rgba(139, 168, 136, 0.15);
  --terracotta: #E07A5F;
  --terracotta-deep: #C86A51;
  --text: #1C1C1C;
  --text-muted: #5D6B63;
  --text-light: #8A9490;
  --white: #FFFFFF;
  --white-soft: rgba(255, 255, 255, 0.85);
  --border-light: rgba(26, 54, 43, 0.08);
  --border-med: rgba(26, 54, 43, 0.14);
  --shadow-s: 0 4px 20px rgba(15, 33, 25, 0.06);
  --shadow-m: 0 12px 40px rgba(15, 33, 25, 0.08);
  --shadow-l: 0 24px 60px rgba(15, 33, 25, 0.12);
  --shadow-cta: 0 16px 40px rgba(224, 122, 95, 0.3);
  --radius: 16px;
  --radius-l: 24px;
  --radius-pill: 999px;
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --container: min(1140px, calc(100% - 3rem));
  --container-narrow: min(780px, calc(100% - 3rem));
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3, h4 {
  margin: 0;
  font-family: "Outfit", sans-serif;
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.container { width: var(--container); margin-inline: auto; }
.container-narrow { width: var(--container-narrow); margin-inline: auto; }

/* ── Skip Link ── */
.skip-link {
  position: absolute; left: 1rem; top: -3rem;
  background: var(--deep); color: var(--white);
  padding: 0.75rem 1.25rem; border-radius: var(--radius-pill);
  font-weight: 600; font-size: 0.875rem; z-index: 100;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 1rem; }

/* ══════════════════════════════════════════
   HEADER
   ══════════════════════════════════════════ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(249, 249, 246, 0.88);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  border-bottom: 1px solid var(--border-light);
}

.header-inner {
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0; gap: 1rem;
}

/* Brand */
.brand {
  display: inline-flex; align-items: center; gap: 0.75rem;
  transition: opacity 0.2s var(--ease);
}
.brand:hover { opacity: 0.8; }

.brand-mark {
  display: grid; place-items: center;
  width: 2.5rem; height: 2.5rem;
  border-radius: 10px;
  background: linear-gradient(145deg, var(--deep) 0%, #25493a 100%);
  color: var(--canvas); font-family: "Outfit", sans-serif;
  font-weight: 700; font-size: 0.9rem; letter-spacing: 0.06em;
}

.brand-text strong {
  display: block; font-family: "Outfit", sans-serif;
  font-size: 1.05rem; line-height: 1.1;
}
.brand-text span {
  font-size: 0.78rem; color: var(--text-muted); letter-spacing: 0.02em;
}

/* Nav */
.site-nav { display: flex; align-items: center; gap: 0.25rem; }
.site-nav a {
  padding: 0.5rem 0.85rem; border-radius: var(--radius-pill);
  font-size: 0.9rem; font-weight: 500; color: var(--text-muted);
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.site-nav a:hover, .site-nav a:focus-visible {
  color: var(--deep); background: var(--sage-soft);
}

/* Header Right */
.header-right { display: flex; align-items: center; gap: 0.75rem; }

/* Language Switcher */
.lang-switch {
  display: inline-flex; align-items: center; gap: 2px;
  padding: 3px; border-radius: var(--radius-pill);
  background: rgba(26, 54, 43, 0.05);
}
.lang-link {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.35rem 0.6rem; border-radius: var(--radius-pill);
  font-size: 0.78rem; font-weight: 600; color: var(--text-muted);
  transition: all 0.2s var(--ease);
}
.lang-link img {
  width: 18px; height: 13px; border-radius: 2px;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.08);
}
.lang-link:hover { color: var(--deep); background: rgba(255,255,255,0.8); }
.lang-link.is-active { background: var(--deep); color: var(--white); }
.lang-link.is-active img { box-shadow: none; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.5rem; padding: 0.8rem 1.5rem; border: none;
  border-radius: var(--radius-pill); font-family: "Inter", sans-serif;
  font-size: 0.9rem; font-weight: 600; cursor: pointer;
  text-decoration: none; line-height: 1;
  transition: transform 0.25s var(--ease-bounce), box-shadow 0.25s var(--ease), background 0.2s var(--ease);
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  color: var(--white);
  background: linear-gradient(170deg, var(--terracotta) 0%, var(--terracotta-deep) 100%);
  box-shadow: var(--shadow-cta);
}
.btn-primary:hover { box-shadow: 0 20px 50px rgba(224, 122, 95, 0.4); }

.btn-secondary {
  color: var(--deep); background: var(--white);
  box-shadow: var(--shadow-s); border: 1px solid var(--border-med);
}
.btn-secondary:hover { box-shadow: var(--shadow-m); }

.btn-ghost {
  color: var(--white); background: rgba(255,255,255,0.12);
  backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,0.2);
}
.btn-ghost:hover { background: rgba(255,255,255,0.22); }

.btn-header {
  padding: 0.6rem 1.15rem; font-size: 0.82rem;
}

/* ══════════════════════════════════════════
   HERO — Full-viewport cinematic
   ══════════════════════════════════════════ */
.hero {
  position: relative; overflow: hidden;
  min-height: 100vh; min-height: 100dvh;
  display: flex; align-items: center;
  padding: 6rem 0 5rem;
  background: linear-gradient(175deg, var(--canvas) 0%, #F0F2EB 40%, #E8ECE3 100%);
}

/* Ambient orbs */
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%;
  pointer-events: none; z-index: 0;
}
.hero::before {
  width: 50vw; height: 50vw; max-width: 600px; max-height: 600px;
  top: -15%; right: -10%;
  background: radial-gradient(circle, rgba(139,168,136,0.2) 0%, transparent 70%);
  animation: float-orb 18s ease-in-out infinite;
}
.hero::after {
  width: 40vw; height: 40vw; max-width: 500px; max-height: 500px;
  bottom: -10%; left: -8%;
  background: radial-gradient(circle, rgba(224,122,95,0.12) 0%, transparent 70%);
  animation: float-orb 22s ease-in-out infinite reverse;
}

@keyframes float-orb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(3%, -4%) scale(1.05); }
  66% { transform: translate(-2%, 3%) scale(0.97); }
}

.hero-content {
  position: relative; z-index: 1;
  display: grid; gap: 2rem;
  max-width: 760px;
}

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.82rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--terracotta);
}
.hero-eyebrow::before {
  content: ""; width: 32px; height: 2px;
  background: var(--terracotta); border-radius: 2px;
}

.hero h1 {
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  line-height: 1.05; letter-spacing: -0.03em;
  color: var(--deep);
}

.hero-sub {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--text-muted); max-width: 580px;
  line-height: 1.75;
}

.hero-cta-row {
  display: flex; flex-wrap: wrap; gap: 0.75rem;
  padding-top: 0.5rem;
}

/* Animated scroll indicator */
.scroll-hint {
  position: absolute; bottom: 2.5rem; left: 50%;
  transform: translateX(-50%); z-index: 1;
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  color: var(--text-light); font-size: 0.75rem; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
}
.scroll-hint::after {
  content: ""; width: 1px; height: 40px;
  background: linear-gradient(to bottom, var(--sage), transparent);
  animation: scroll-line 2s ease-in-out infinite;
}
@keyframes scroll-line {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ══════════════════════════════════════════
   SECTION SYSTEM
   ══════════════════════════════════════════ */
.section { padding: clamp(5rem, 10vw, 8rem) 0; }
.section-light { background: var(--canvas); }
.section-muted { background: linear-gradient(180deg, #F4F5F0 0%, var(--canvas) 100%); }

.section-dark {
  background: linear-gradient(170deg, var(--deep-rich) 0%, var(--deep) 50%, #1E3F31 100%);
  color: var(--canvas);
}
.section-dark .text-muted { color: rgba(249, 249, 246, 0.6); }

.section-header {
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.section-header.centered { text-align: center; }
.section-header.centered .section-desc {
  margin-inline: auto;
}

.section-label {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.8rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--sage); margin-bottom: 1rem;
}
.section-dark .section-label { color: var(--sage); }
.section-label::before {
  content: ""; width: 8px; height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--deep); max-width: 680px;
}
.section-dark .section-title { color: var(--canvas); }

.section-desc {
  margin-top: 1rem; max-width: 560px;
  color: var(--text-muted); font-size: 1.05rem;
}

/* ══════════════════════════════════════════
   PAIN POINTS — Flowing list, no boxes
   ══════════════════════════════════════════ */
.pain-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
}

.pain-item {
  padding: 2rem 2.5rem;
  border-bottom: 1px solid var(--border-light);
  transition: background 0.3s var(--ease);
}
.pain-item:nth-child(odd) { border-right: 1px solid var(--border-light); }
.pain-item:nth-last-child(-n+2) { border-bottom: none; }

.pain-item:hover { background: rgba(139, 168, 136, 0.05); }

.pain-item h3 {
  font-size: 1.15rem; margin-bottom: 0.5rem;
  color: var(--deep);
}
.pain-item p { color: var(--text-muted); font-size: 0.95rem; }

/* ══════════════════════════════════════════
   OFFER — Numbered steps, vertical flow
   ══════════════════════════════════════════ */
.offer-flow { display: grid; gap: 0; counter-reset: offer; }

.offer-step {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 1.5rem;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--border-light);
  counter-increment: offer;
  transition: transform 0.3s var(--ease);
}
.offer-step:last-child { border-bottom: none; }
.offer-step:hover { transform: translateX(8px); }

.offer-num {
  font-family: "Outfit", sans-serif;
  font-size: 3.5rem; font-weight: 700;
  line-height: 1; color: var(--sage);
  opacity: 0.4;
}
.offer-step:hover .offer-num { opacity: 0.7; }

.offer-body h3 {
  font-size: 1.3rem; margin-bottom: 0.5rem;
  color: var(--deep);
}
.offer-body p { color: var(--text-muted); max-width: 520px; }

/* ══════════════════════════════════════════
   APPROACH — Dark section, statement cards
   ══════════════════════════════════════════ */
.approach-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
}

.approach-statement {
  position: sticky; top: 8rem;
}
.approach-statement .section-title {
  color: var(--canvas);
}
.approach-statement p {
  margin-top: 1.25rem;
  color: rgba(249, 249, 246, 0.6);
  font-size: 1.05rem;
}

.approach-cards { display: grid; gap: 1.25rem; }

.approach-card {
  padding: 1.75rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.approach-card:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(139, 168, 136, 0.3);
}
.approach-card h3 {
  font-size: 1.15rem; margin-bottom: 0.5rem;
  color: var(--canvas);
}
.approach-card p { color: rgba(249, 249, 246, 0.6); font-size: 0.95rem; }

/* ══════════════════════════════════════════
   FOUNDER — Narrative layout
   ══════════════════════════════════════════ */
.founder-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.founder-narrative { display: grid; gap: 1.25rem; }
.founder-narrative p {
  font-size: 1.05rem; color: var(--text-muted);
  line-height: 1.8;
}
.founder-narrative p strong { color: var(--deep); }

.founder-aside {
  display: grid; gap: 1rem;
  padding-top: 0.5rem;
}

.aside-block {
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-s);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.aside-block:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-m);
}
.aside-block h3 {
  font-size: 1rem; margin-bottom: 0.4rem; color: var(--deep);
}
.aside-block p { font-size: 0.9rem; color: var(--text-muted); }

/* ══════════════════════════════════════════
   TESTIMONIALS — Large quotes
   ══════════════════════════════════════════ */
.testimonial-stack { display: grid; gap: 2rem; }

.testimonial {
  padding: 2.5rem 3rem;
  border-radius: var(--radius-l);
  background: var(--white);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-s);
  position: relative;
  transition: box-shadow 0.3s var(--ease);
}
.testimonial:hover { box-shadow: var(--shadow-m); }

.testimonial::before {
  content: "\201E"; /* „ */
  position: absolute; top: 1.5rem; left: 2.5rem;
  font-family: "Outfit", serif;
  font-size: 5rem; line-height: 1;
  color: var(--sage); opacity: 0.25;
}

.testimonial p {
  position: relative; z-index: 1;
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  line-height: 1.7; color: var(--deep);
  font-style: italic;
}

.testimonial cite {
  display: block; margin-top: 1.25rem;
  font-style: normal; font-weight: 700;
  font-size: 0.9rem; color: var(--terracotta);
}

/* ══════════════════════════════════════════
   CTA — Dark dramatic close
   ══════════════════════════════════════════ */
.cta-final {
  padding: clamp(5rem, 10vw, 9rem) 0;
  background: linear-gradient(170deg, var(--deep) 0%, var(--deep-rich) 100%);
  text-align: center; position: relative; overflow: hidden;
}
.cta-final::before {
  content: ""; position: absolute;
  width: 60vw; height: 60vw; max-width: 700px; max-height: 700px;
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(139,168,136,0.1) 0%, transparent 60%);
  pointer-events: none;
}

.cta-inner {
  position: relative; z-index: 1;
  max-width: 600px; margin-inline: auto;
  display: grid; gap: 1.5rem;
}
.cta-inner .section-label { justify-content: center; }
.cta-inner .section-title {
  color: var(--canvas); text-align: center;
  font-size: clamp(2rem, 4vw, 2.8rem);
}
.cta-inner p {
  color: rgba(249, 249, 246, 0.6);
  font-size: 1.05rem;
}
.cta-inner .cta-buttons {
  display: flex; justify-content: center;
  gap: 0.75rem; flex-wrap: wrap;
  padding-top: 0.5rem;
}
.cta-meta {
  font-size: 0.82rem; color: rgba(249,249,246,0.4);
  margin-top: 0.25rem;
}

/* ══════════════════════════════════════════
   FOOTER — Clean & minimal
   ══════════════════════════════════════════ */
.site-footer {
  padding: 2.5rem 0 3rem;
  border-top: 1px solid var(--border-light);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 2rem;
}

.footer-brand strong {
  display: block; font-family: "Outfit", sans-serif;
  font-size: 1.1rem; margin-bottom: 0.35rem;
}
.footer-brand p { color: var(--text-muted); font-size: 0.9rem; }

.footer-col-label {
  display: block; font-size: 0.75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--text-light); margin-bottom: 0.6rem;
}
.footer-col p, .footer-col a {
  font-size: 0.9rem; color: var(--text-muted);
}
.footer-col a:hover { color: var(--terracotta); }

/* ══════════════════════════════════════════
   PLACEHOLDER PAGES (en/es)
   ══════════════════════════════════════════ */
.placeholder-page .site-header { position: relative; }
.placeholder-hero {
  min-height: 60vh; display: flex; align-items: center;
  padding: 6rem 0;
}
.placeholder-content {
  max-width: 600px;
}
.placeholder-content h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1rem; }
.placeholder-content p { color: var(--text-muted); font-size: 1.05rem; margin-bottom: 1.5rem; }

.placeholder-features {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
  margin-top: 2rem;
}
.placeholder-feature {
  padding: 1.25rem; border-radius: var(--radius);
  background: var(--white); border: 1px solid var(--border-light);
  box-shadow: var(--shadow-s);
}
.placeholder-feature strong {
  display: block; font-family: "Outfit", sans-serif;
  margin-bottom: 0.3rem;
}
.placeholder-feature p { font-size: 0.88rem; }

/* ══════════════════════════════════════════
   ANIMATIONS — Fade-in on scroll
   ══════════════════════════════════════════ */
.fade-in {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.fade-in.is-visible {
  opacity: 1; transform: translateY(0);
}

/* Stagger children */
.stagger > * { transition-delay: calc(var(--i, 0) * 80ms); }

/* ══════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════ */
@media (max-width: 1024px) {
  .header-inner { flex-wrap: wrap; }
  .site-nav { order: 3; width: 100%; justify-content: center; padding-top: 0.25rem; }
  .approach-split { grid-template-columns: 1fr; }
  .approach-statement { position: static; }
  .founder-layout { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .hero { min-height: auto; padding: 5rem 0 4rem; }
  .hero h1 { font-size: clamp(2.2rem, 7vw, 3rem); }
  .pain-list { grid-template-columns: 1fr; }
  .pain-item { border-right: none !important; }
  .pain-item:last-child { border-bottom: none; }
  .offer-step { grid-template-columns: 50px 1fr; gap: 1rem; }
  .offer-num { font-size: 2.5rem; }
  .testimonial { padding: 2rem 1.75rem; }
  .testimonial::before { left: 1.5rem; top: 1rem; font-size: 3.5rem; }
  .placeholder-features { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .hero-cta-row { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
  .site-nav { overflow-x: auto; justify-content: flex-start; }
  .lang-switch { width: 100%; justify-content: center; }
  .header-right { width: 100%; justify-content: space-between; }
  .scroll-hint { display: none; }
}
