/* =========================================================
   Julia Benestante Chiaraba — Nutricionista
   Pré-visualização | tokens: Areia/Sálvia/Terracota/Dourado
   ========================================================= */

:root {
  /* cor — nomeada */
  --areia: #FFFCF7;        /* fundo principal, branco quente */
  --creme: #F6F1E4;        /* fundo alternado, cards */
  --musgo: #1A2420;        /* texto principal, grafite esverdeado */
  --musgo-suave: #4B5850;  /* texto secundário */
  --salvia: #1F6D4C;       /* verde-copa vibrante — marca */
  --salvia-escura: #123D2B;/* fundo footer / cta */
  --terracota: #F2622E;    /* CTA primário — coral/tangerina */
  --terracota-escura: #D14A1A;
  --dourado: #C89B3C;      /* estrelas, detalhes */
  --linha: #E8E1CF;        /* hairlines, bordas */

  /* tipografia */
  --font-display: 'Bricolage Grotesque', sans-serif;
  --font-body: 'Manrope', system-ui, sans-serif;

  /* ritmo */
  --container: 1180px;
  --radius-lg: 28px;
  --radius-md: 16px;
  --shadow-soft: 0 12px 32px -16px rgba(43, 52, 40, 0.25);

  --ease: cubic-bezier(.22,.61,.36,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

body {
  margin: 0;
  background: var(--areia);
  color: var(--musgo);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
address { font-style: normal; }

:focus-visible {
  outline: 2.5px solid var(--terracota);
  outline-offset: 3px;
  border-radius: 4px;
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--musgo);
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--salvia);
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.section-title {
  font-size: clamp(1.7rem, 1.2rem + 2vw, 2.6rem);
  line-height: 1.15;
  max-width: 18ch;
}

.section-lede {
  font-size: 1.05rem;
  color: var(--musgo-suave);
  max-width: 48ch;
  margin-top: 14px;
}

.body-text {
  color: var(--musgo-suave);
  font-size: 1rem;
  max-width: 56ch;
}

/* ---------- placeholder badge ---------- */
.placeholder-badge {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-body);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--terracota-escura);
  background: rgba(193, 103, 59, 0.12);
  border: 1px solid rgba(193, 103, 59, 0.3);
  border-radius: 100px;
  padding: 2px 9px;
  line-height: 1.6;
  white-space: nowrap;
}

/* ---------- proto banner ---------- */
.proto-banner {
  background: var(--salvia-escura);
  color: var(--areia);
  font-size: 0.8rem;
  text-align: center;
  padding: 9px 20px;
}
.proto-banner strong { color: #F0D9B5; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 26px;
  border-radius: 100px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 220ms var(--ease), background 220ms var(--ease), color 220ms var(--ease), box-shadow 220ms var(--ease);
}
.btn .icon { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-2px) scale(1.02); }

.btn-primary {
  background: var(--terracota);
  color: var(--areia);
  box-shadow: var(--shadow-soft);
}
.btn-primary:hover { background: var(--terracota-escura); }

.btn-ghost {
  background: transparent;
  color: var(--musgo);
  border-color: var(--linha);
}
.btn-ghost:hover { border-color: var(--salvia); color: var(--salvia); }

.btn-small { padding: 10px 20px; font-size: 0.85rem; }
.btn-large { padding: 17px 32px; font-size: 1.05rem; }

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 20px 0;
  transition: background 260ms var(--ease), box-shadow 260ms var(--ease), padding 260ms var(--ease);
}
.site-header.is-scrolled {
  background: rgba(250, 246, 238, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px -18px rgba(43,52,40,0.4);
  padding: 12px 0;
}

.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.logo {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--musgo);
}
.logo span { color: var(--terracota); font-style: italic; font-weight: 600; }

.main-nav { display: flex; align-items: center; gap: 32px; }
.nav-link {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--musgo-suave);
  position: relative;
  padding-bottom: 3px;
  transition: color 200ms var(--ease);
}
.nav-link::after {
  content: '';
  position: absolute; left: 0; right: 100%; bottom: 0;
  height: 1.5px; background: var(--terracota);
  transition: right 240ms var(--ease);
}
.nav-link:hover { color: var(--musgo); }
.nav-link:hover::after { right: 0; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--musgo); transition: transform 220ms var(--ease), opacity 220ms var(--ease); }

/* =========================================================
   HERO
   ========================================================= */
.hero { padding: 64px 0 100px; overflow: hidden; }
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.hero-title {
  font-size: clamp(2.3rem, 1.6rem + 3vw, 3.6rem);
  line-height: 1.05;
  font-weight: 800;
  margin-bottom: 22px;
}
.hero-title em { color: var(--terracota); font-style: italic; }

.hero-subtitle { color: var(--musgo-suave); font-size: 1.08rem; max-width: 46ch; margin-bottom: 34px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-visual { position: relative; display: flex; justify-content: center; }

.plate-ring {
  position: absolute;
  width: 118%;
  max-width: 480px;
  aspect-ratio: 1;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.9;
  pointer-events: none;
}
.plate-ring svg { width: 100%; height: 100%; }
.plate-ring path {
  fill: none;
  stroke: var(--salvia);
  stroke-width: 1.4;
  stroke-linecap: round;
  opacity: 0.55;
}
.plate-ring-accent { stroke: var(--terracota) !important; stroke-width: 3 !important; opacity: 0.85 !important; }

.photo-frame {
  position: relative;
  background: linear-gradient(155deg, var(--creme) 0%, #E4DCC4 55%, var(--salvia) 145%);
  border-radius: 60% 40% 46% 54% / 54% 46% 54% 46%;
  display: flex; align-items: center; justify-content: center;
  color: var(--salvia);
  box-shadow: var(--shadow-soft);
}
.photo-frame-icon { width: 30%; height: 30%; opacity: 0.55; }

.photo-frame--hero { width: min(100%, 420px); aspect-ratio: 4/4.6; }
.photo-frame--about { width: 100%; aspect-ratio: 4/4.8; border-radius: 6% 40% 6% 40% / 40% 6% 40% 6%; }

.photo-badge {
  position: absolute;
  bottom: 16px; left: 16px;
  background: rgba(250,246,238,0.92);
}

.floating-stat {
  position: absolute;
  bottom: -8px; left: -20px;
  background: var(--areia);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--linha);
}
.floating-stat strong { font-family: var(--font-display); font-size: 1.7rem; color: var(--terracota); line-height: 1; }
.floating-stat span { font-size: 0.78rem; color: var(--musgo-suave); margin-top: 4px; display: flex; align-items: center; gap: 6px; }

/* =========================================================
   SECTIONS — generic
   ========================================================= */
.section { padding: 96px 0; }
.section--alt { background: var(--creme); }
.section-head { max-width: 640px; margin-bottom: 56px; }

/* ---------- sobre ---------- */
.about-inner { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 64px; align-items: center; }
.credentials { display: flex; flex-direction: column; gap: 10px; margin-top: 22px; }
.credentials li { display: flex; align-items: center; gap: 8px; font-size: 0.95rem; color: var(--musgo-suave); flex-wrap: wrap; }
.credentials li::before { content: '✦'; color: var(--dourado); font-size: 0.8rem; }
.about-copy .body-text { margin-bottom: 16px; }

/* ---------- serviços ---------- */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.service-card {
  background: var(--areia);
  border: 1px solid var(--linha);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  transition: transform 260ms var(--ease), box-shadow 260ms var(--ease), border-color 260ms var(--ease);
}
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-soft); border-color: transparent; }
.service-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(31,109,76,0.12);
  color: var(--salvia);
  margin-bottom: 18px;
}
.service-icon svg { width: 24px; height: 24px; }
.service-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.service-card p { color: var(--musgo-suave); font-size: 0.92rem; margin: 0; }

/* ---------- metodologia ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  position: relative;
}
.steps::before {
  content: '';
  position: absolute;
  top: 20px; left: 6%; right: 6%;
  height: 1px;
  background-image: linear-gradient(to right, var(--linha) 60%, transparent 0%);
  background-size: 12px 1px;
  background-repeat: repeat-x;
}
.step { position: relative; }
.step-number {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--terracota);
  background: var(--areia);
  padding-right: 14px;
  position: relative;
  z-index: 1;
}
.step h3 { margin: 14px 0 8px; font-size: 1.1rem; }
.step p { color: var(--musgo-suave); font-size: 0.92rem; margin: 0; }

/* ---------- números ---------- */
.section--stats { background: var(--salvia-escura); padding: 76px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 1.6rem + 2vw, 3rem);
  color: #F0D9B5;
  font-style: italic;
}
.stat-label {
  display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap;
  color: rgba(250,246,238,0.8);
  font-size: 0.88rem;
  margin-top: 8px;
}
.stat-label .placeholder-badge { color: #F0D9B5; background: rgba(240,217,181,0.14); border-color: rgba(240,217,181,0.4); }

/* ---------- depoimentos ---------- */
.cards-grid--testimonials { grid-template-columns: repeat(3, 1fr); }
.testimonial-card {
  background: var(--creme);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.stars { color: var(--dourado); letter-spacing: 3px; font-size: 0.95rem; }
.testimonial-card blockquote { margin: 0; font-size: 0.98rem; color: var(--musgo); line-height: 1.65; }
.testimonial-card figcaption { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 0.92rem; margin-top: auto; }
.avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--salvia); color: var(--areia);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 0.85rem; font-weight: 600;
  flex-shrink: 0;
}

/* ---------- localização ---------- */
.location-inner { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center; }
.location-copy address { color: var(--musgo-suave); margin: 18px 0; font-size: 1.02rem; }
.location-copy .body-text { margin-bottom: 28px; }
.location-map { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-soft); aspect-ratio: 4/3.4; }
.location-map iframe { width: 100%; height: 100%; border: 0; }

/* =========================================================
   CTA FINAL
   ========================================================= */
.final-cta {
  background: var(--salvia-escura);
  color: var(--areia);
  position: relative;
  overflow: hidden;
  padding: 100px 0;
}
.final-cta-inner { max-width: 620px; margin: 0 auto; text-align: center; position: relative; z-index: 1; }
.final-cta h2 { font-size: clamp(1.8rem, 1.4rem + 2vw, 2.6rem); color: var(--areia); margin-bottom: 16px; }
.final-cta p { color: rgba(250,246,238,0.78); margin-bottom: 32px; font-size: 1.05rem; }
.plate-ring--cta { opacity: 0.5; }
.plate-ring--cta path { stroke: rgba(240,217,181,0.5); }
.plate-ring--cta .plate-ring-accent { stroke: var(--terracota) !important; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer { background: var(--musgo); color: rgba(250,246,238,0.75); padding: 72px 0 28px; }
.footer-inner { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; padding-bottom: 48px; }
.footer-brand p { margin-top: 10px; font-size: 0.9rem; }
.logo--footer { color: var(--areia); }
.logo--footer span { color: #FF8A63; }
.footer-col h4 { font-family: var(--font-body); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(250,246,238,0.5); margin: 0 0 16px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; font-size: 0.9rem; }
.footer-col a { transition: color 200ms var(--ease); flex-wrap: wrap; display: inline-flex; gap: 6px; align-items: center; }
.footer-col a:hover { color: var(--areia); }
.footer-bottom {
  border-top: 1px solid rgba(250,246,238,0.12);
  padding-top: 24px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: 0.8rem; color: rgba(250,246,238,0.55);
}
.footer-bottom .placeholder-badge { color: #F0D9B5; background: rgba(240,217,181,0.1); border-color: rgba(240,217,181,0.3); }

/* =========================================================
   SCROLL REVEAL
   ========================================================= */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

.hero-copy[data-reveal] { transition-delay: 60ms; }
.hero-visual[data-reveal] { transition-delay: 220ms; }

/* stagger: cada card revela um pouco depois do anterior */
.cards-grid > [data-reveal]:nth-child(2),
.steps > [data-reveal]:nth-child(2),
.stats-grid > [data-reveal]:nth-child(2) { transition-delay: 80ms; }
.cards-grid > [data-reveal]:nth-child(3),
.steps > [data-reveal]:nth-child(3),
.stats-grid > [data-reveal]:nth-child(3) { transition-delay: 160ms; }
.cards-grid > [data-reveal]:nth-child(4),
.steps > [data-reveal]:nth-child(4),
.stats-grid > [data-reveal]:nth-child(4) { transition-delay: 240ms; }
.cards-grid > [data-reveal]:nth-child(5) { transition-delay: 320ms; }
.cards-grid > [data-reveal]:nth-child(6) { transition-delay: 400ms; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1023px) {
  .about-inner, .location-inner { grid-template-columns: 1fr; }
  .about-visual { max-width: 340px; margin: 0 auto; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .steps::before { display: none; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 767px) {
  .container { padding: 0 20px; }
  .main-nav {
    position: fixed;
    inset: 0 0 0 30%;
    background: var(--areia);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 40px;
    gap: 24px;
    transform: translateX(100%);
    transition: transform 320ms var(--ease);
    box-shadow: -18px 0 40px -20px rgba(43,52,40,0.35);
  }
  .main-nav.is-open { transform: translateX(0); }
  .main-nav .nav-link { font-size: 1.1rem; }
  .nav-toggle { display: flex; z-index: 60; }
  .nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.is-open span:nth-child(2) { opacity: 0; }
  .nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .hero-inner { grid-template-columns: 1fr; gap: 60px; }
  .hero { padding: 40px 0 72px; text-align: left; }
  .hero-visual { order: -1; margin-bottom: 12px; }
  .photo-frame--hero { max-width: 300px; margin: 0 auto; }
  .floating-stat { left: 0; }

  .section { padding: 64px 0; }
  .cards-grid { grid-template-columns: 1fr; }
  .cards-grid--testimonials { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }

  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; }
}
