/* =========================================================
   ELLA — Design tokens
   ========================================================= */
:root {
  --wine: #7A1F3D;
  --wine-dark: #5C1730;
  --navy: #17263B;
  --navy-light: #1F3352;
  --gold: #F0B429;
  --gold-dark: #D89A1A;
  --cream: #FBF4EA;
  --cream-soft: #F5EBDD;
  --ink: #24262B;
  --white: #FFFFFF;

  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --container: 1180px;
  --radius: 14px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  margin: 0;
  color: var(--navy);
}

p { line-height: 1.6; margin: 0; }

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

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

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
}

:focus-visible {
  outline: 2px solid var(--gold-dark);
  outline-offset: 3px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  border: 1.5px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .2s ease;
  cursor: pointer;
}
.btn:hover { transform: translateY(-1px); }

.btn--gold {
  background: var(--gold);
  color: var(--navy);
}
.btn--gold:hover {
  background: var(--gold-dark);
  box-shadow: 0 6px 18px rgba(240, 180, 41, .35);
}

.btn--outline {
  background: transparent;
  border-color: var(--wine);
  color: var(--wine);
}
.btn--outline:hover {
  background: var(--wine);
  color: var(--white);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--wine);
  margin-bottom: 16px;
}
.eyebrow::before {
  content: '';
  display: block;
  width: 28px;
  height: 2px;
  background: var(--wine);
  flex-shrink: 0;
}
.eyebrow--center { justify-content: center; }
.eyebrow--gold { color: var(--gold); }
.eyebrow--gold::before { background: var(--gold); }

.dash {
  display: block;
  width: 32px;
  height: 2px;
  background: var(--wine);
  margin: 20px 0;
  border: none;
}
.dash--light { background: var(--gold); }
.dash--center { margin-left: auto; margin-right: auto; }

.text-wine { color: var(--wine); }

.link-arrow {
  display: inline-flex;
  gap: 6px;
  font-weight: 600;
  color: var(--wine);
  border-bottom: 1.5px solid transparent;
  transition: border-color .2s ease, gap .2s ease;
}
.link-arrow:hover { border-color: var(--wine); gap: 10px; }

/* =========================================================
   HEADER
   ========================================================= */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 244, 234, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(23, 38, 59, 0.06);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  padding-top: 18px;
  padding-bottom: 18px;
}

.logo {
  font-family: var(--serif);
  font-size: 1.7rem;
  color: var(--wine);
  font-weight: 600;
  margin-right: auto;
}
.logo-dot { color: var(--gold-dark); }
.logo--light { color: var(--white); }
.logo--light .logo-dot { color: var(--gold); }

.nav {
  display: flex;
  gap: 30px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--navy);
}
.nav a { opacity: 0.85; transition: opacity .2s; }
.nav a:hover { opacity: 1; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  padding: 64px 0 80px;
  background: linear-gradient(180deg, var(--cream) 0%, var(--cream-soft) 100%);
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.hero__text h1 {
  font-size: clamp(2.1rem, 3.6vw, 3.1rem);
  line-height: 1.15;
  margin-bottom: 22px;
}

.hero__lede {
  max-width: 46ch;
  font-size: 1.05rem;
  color: #4B5262;
  margin-bottom: 32px;
}

.hero__ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero__media {
  position: relative;
}

.hero__photo-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 4.6;
  background: var(--navy);
  box-shadow: 0 30px 60px -20px rgba(23, 38, 59, 0.35);
}

.hero__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__caption {
  position: absolute;
  right: -8px;
  bottom: -28px;
  max-width: 220px;
  background: var(--cream);
  padding: 18px 20px;
  border-radius: 10px;
  font-size: 0.92rem;
  color: var(--navy);
  box-shadow: 0 12px 30px -10px rgba(23,38,59,.18);
}
.hero__caption span {
  display: block;
  font-weight: 700;
  color: var(--wine);
  margin-bottom: 4px;
}

/* =========================================================
   SOBRE
   ========================================================= */
.sobre { padding: 96px 0; background: var(--white); }

.sobre__inner {
  display: grid;
  grid-template-columns: 0.95fr 1.15fr;
  gap: 64px;
}

.sobre__text h2 {
  font-size: clamp(1.7rem, 2.6vw, 2.2rem);
  margin-bottom: 18px;
  line-height: 1.25;
}
.sobre__text p { color: #4B5262; max-width: 42ch; }

.sobre__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px 32px;
  border-left: 1px solid rgba(23,38,59,.1);
  padding-left: 48px;
}

.sobre__item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.sobre__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(122, 31, 61, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}
.sobre__icon svg {
  width: 20px; height: 20px;
  fill: none;
  stroke: var(--wine);
  stroke-width: 1.6;
}

.sobre__item p { font-weight: 500; color: var(--navy); padding-top: 10px; }

/* =========================================================
   ELLIA (IA de diagnóstico)
   ========================================================= */
.ellia {
  padding: 96px 0;
  background: var(--cream-soft);
  border-top: 1px solid rgba(23,38,59,.06);
}

.ellia__head {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 56px;
}
.ellia__head h2 {
  font-size: clamp(1.8rem, 2.8vw, 2.35rem);
  line-height: 1.28;
  margin-bottom: 20px;
}
.ellia__lede {
  color: #4B5262;
  font-size: 1.02rem;
  max-width: 56ch;
  margin: 0 auto;
}

.ellia__flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  max-width: 760px;
  margin: 0 auto 64px;
}

.ellia__flow-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  width: 150px;
}
.ellia__flow-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--wine);
  color: var(--white);
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.1rem;
}
.ellia__flow-step p {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
}
.ellia__flow-arrow {
  color: var(--wine);
  font-size: 1.3rem;
  opacity: 0.5;
}

.ellia__paths-label {
  text-align: center;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 28px;
}

.ellia__paths {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
}

.ellia__path {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: 0 14px 32px -18px rgba(23,38,59,.18);
}

.ellia__path-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(122, 31, 61, 0.08);
  margin-bottom: 18px;
}
.ellia__path-icon svg {
  width: 22px; height: 22px;
  fill: none;
  stroke: var(--wine);
  stroke-width: 1.6;
}

.ellia__path h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}
.ellia__path p {
  font-size: 0.92rem;
  color: #5B6272;
}

.ellia__footnote {
  text-align: center;
  margin-top: 48px;
  color: var(--navy);
  font-weight: 500;
  font-size: 0.96rem;
  max-width: 60ch;
  margin-left: auto;
  margin-right: auto;
}

/* =========================================================
   MÉTODO
   ========================================================= */
.metodo {
  padding: 96px 0;
  background: var(--white);
}

.metodo__head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
}
.metodo__head h2 { font-size: clamp(1.7rem, 2.6vw, 2.2rem); line-height: 1.3; }

.metodo__steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.metodo__step {
  text-align: center;
  padding: 0 12px;
}

.metodo__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--wine);
  color: var(--white);
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 20px;
}

.metodo__icon {
  display: flex;
  justify-content: center;
  margin-bottom: 14px;
}
.metodo__icon svg {
  width: 30px; height: 30px;
  fill: none;
  stroke: var(--wine);
  stroke-width: 1.5;
}
.metodo__step h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.metodo__step p {
  font-size: 0.92rem;
  color: #5B6272;
}

.metodo__footnote {
  text-align: center;
  margin-top: 56px;
  font-weight: 600;
  color: var(--navy);
  font-size: 1.02rem;
}

/* =========================================================
   COMO FUNCIONA (dark band)
   ========================================================= */
.funciona {
  padding: 80px 0;
  background: var(--navy);
}

.funciona__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 12px;
}

.funciona__item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.funciona__icon {
  flex-shrink: 0;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}
.funciona__icon svg {
  width: 20px; height: 20px;
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.6;
}

.funciona__item h3 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 6px;
}
.funciona__item p {
  color: rgba(255,255,255,0.65);
  font-size: 0.9rem;
}

/* =========================================================
   ESPECIALISTAS
   ========================================================= */
.especialistas { padding: 96px 0; }

.especialistas__inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.especialistas__text h2 {
  font-size: clamp(1.7rem, 2.6vw, 2.2rem);
  margin-bottom: 16px;
  line-height: 1.3;
}
.especialistas__text p {
  color: #4B5262;
  max-width: 44ch;
  margin-bottom: 20px;
}

.especialistas__avatars {
  display: flex;
  gap: 20px;
  justify-content: flex-end;
}
.especialistas__avatars img {
  width: 110px; height: 110px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--cream);
  box-shadow: 0 10px 24px -8px rgba(23,38,59,.25);
}

/* =========================================================
   CTA FINAL
   ========================================================= */
.cta-final {
  background: var(--wine);
  padding: 48px 0;
}

.cta-final__inner {
  display: grid;
  grid-template-columns: auto 1fr minmax(280px, 380px);
  gap: 32px;
  align-items: center;
}

.cta-final__icon {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cta-final__icon svg {
  width: 24px; height: 24px;
  fill: none;
  stroke: var(--white);
  stroke-width: 1.6;
}

.cta-final__text h2 {
  color: var(--white);
  font-size: 1.35rem;
  margin-bottom: 6px;
}
.cta-final__text p {
  color: rgba(255,255,255,0.75);
  font-size: 0.95rem;
}

.cta-final__form {
  display: flex;
  gap: 12px;
  min-width: 0;
}
.cta-final__form input {
  padding: 13px 18px;
  border-radius: 999px;
  border: none;
  font-family: var(--sans);
  font-size: 0.95rem;
  width: 100%;
  min-width: 160px;
  flex: 1 1 220px;
  background: rgba(255,255,255,0.95);
}
.cta-final__form input::placeholder { color: #8A8F9B; }
.cta-final__form input:focus { outline: 2px solid var(--gold); }
.cta-final__form button { border: none; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  background: var(--navy);
  padding: 32px 0;
}

.footer__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.footer__copy {
  color: rgba(255,255,255,0.55);
  font-size: 0.85rem;
  margin-right: auto;
}

.footer__links {
  display: flex;
  gap: 24px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
}
.footer__links a:hover { color: var(--white); }

.footer__social {
  display: flex;
  gap: 14px;
}
.footer__social a {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}
.footer__social svg {
  width: 16px; height: 16px;
  fill: none;
  stroke: rgba(255,255,255,0.85);
  stroke-width: 1.4;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 980px) {
  .nav { display: none; }
  .nav.nav--open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    padding: 20px 24px;
    gap: 18px;
    border-bottom: 1px solid rgba(23,38,59,.08);
    box-shadow: 0 12px 24px -12px rgba(23,38,59,.2);
  }
  .nav-toggle { display: flex; }
  .header .btn--gold { display: none; }

  .hero__inner { grid-template-columns: 1fr; }
  .hero__media { order: -1; max-width: 380px; margin: 0 auto; }
  .hero__caption { position: static; margin-top: 20px; max-width: none; }

  .sobre__inner { grid-template-columns: 1fr; gap: 40px; }
  .sobre__grid { border-left: none; padding-left: 0; }

  .ellia__paths { grid-template-columns: 1fr; }
  .ellia__flow-arrow { transform: rotate(90deg); }

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

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

  .especialistas__inner { grid-template-columns: 1fr; }
  .especialistas__avatars { justify-content: flex-start; flex-wrap: wrap; }

  .cta-final__inner { grid-template-columns: 1fr; text-align: center; }
  .cta-final__form { justify-content: center; flex-wrap: wrap; }
  .cta-final__icon { margin: 0 auto; }

  .footer__inner { flex-direction: column; text-align: center; }
  .footer__copy { margin-right: 0; }
}

@media (max-width: 600px) {
  .metodo__steps { grid-template-columns: 1fr; }
  .funciona__grid { grid-template-columns: 1fr; }
  .ellia__flow { flex-direction: column; }
  .ellia__flow-arrow { transform: rotate(90deg); }
  .cta-final__form input { width: 100%; }
  .cta-final__form { flex-direction: column; }
  .cta-final__form button { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
