/* ============================================================
   Dra. Fernanda Nunes Garcia — Nutrologia
   ============================================================ */

:root {
  --cream:        #FAF7F2;
  --cream-deep:    #F3EEE5;
  --ink:          #2F3B30;
  --ink-soft:     #55635A;
  --sage:         #A8BC96;
  --sage-soft:    #C7D5B9;
  --sage-deep:    #5C7247;
  --sage-line:    #829A6E;
  --rose:         #E8D0CC;
  --rose-deep:    #D9AFA8;
  --white:        #FFFFFF;

  --font-serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-sans: "Karla", "Segoe UI", system-ui, sans-serif;

  --wrap: 1180px;
  --radius-lg: 28px;
  --radius-md: 18px;
  --shadow-soft: 0 20px 50px -30px rgba(47, 59, 48, 0.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--cream);
  padding: 12px 20px;
  z-index: 999;
}
.skip-link:focus { left: 12px; top: 12px; }

h1, h2, h3 {
  font-family: var(--font-serif);
  color: var(--ink);
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.4rem, 5.4vw, 3.7rem); font-weight: 500; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; color: var(--ink-soft); }

.eyebrow {
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--sage-deep);
  margin: 0 0 0.9em;
}
.eyebrow.center { text-align: center; }

.section-title { max-width: 46ch; }
.section-title.center { max-width: 32ch; margin-left: auto; margin-right: auto; text-align: center; }

.section-lead {
  max-width: 56ch;
  font-size: 1.06rem;
}
.section-lead.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.98rem;
  border: 1px solid transparent;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease, color .25s ease;
  cursor: pointer;
}
.btn .icon { width: 19px; height: 19px; flex-shrink: 0; }

.btn-primary {
  background: var(--sage-deep);
  color: var(--white);
  box-shadow: var(--shadow-soft);
}
.btn-primary:hover { background: #56683f; transform: translateY(-2px); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: rgba(47,59,48,0.25);
}
.btn-ghost:hover { border-color: var(--sage-deep); color: var(--sage-deep); transform: translateY(-2px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 247, 242, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(47,59,48,0.08);
  transition: box-shadow 0.3s ease;
}
.site-header.scrolled { box-shadow: 0 8px 24px -18px rgba(47,59,48,0.4); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand { display: inline-flex; }
.brand-fallback { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--ink);
  font-weight: 500;
}
.brand-sub {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage-deep);
  margin-top: 3px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 0.95rem;
  font-weight: 500;
}
.nav a { color: var(--ink-soft); transition: color 0.2s ease; }
.nav a:hover { color: var(--sage-deep); }
.nav-cta {
  background: var(--sage-deep);
  color: var(--white) !important;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 600;
}
.nav-cta:hover { background: #56683f; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 64px 0 0;
}
.hero-motif {
  position: absolute;
  top: -60px;
  right: -120px;
  width: 480px;
  height: 480px;
  color: var(--sage-soft);
  opacity: 0.55;
  pointer-events: none;
}
.hero-motif svg { width: 100%; height: 100%; }

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
  padding-bottom: 56px;
}

.hero-copy { max-width: 640px; }
.hero-lead { font-size: 1.12rem; max-width: 52ch; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 30px 0 26px;
}

.hero-credential {
  font-size: 0.9rem;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
  border-top: 1px solid rgba(47,59,48,0.15);
  padding-top: 16px;
  max-width: 44ch;
}

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

.portrait-frame {
  position: relative;
  width: min(360px, 78vw);
  aspect-ratio: 4 / 4.7;
  border-radius: 46% 54% 52% 48% / 58% 46% 54% 42%;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  background: linear-gradient(160deg, var(--sage-soft), var(--cream-deep));
}
.portrait-frame-sm { width: min(320px, 80vw); }

.portrait-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(47,59,48,0.28);
}
.portrait-placeholder svg { width: 46%; height: 46%; }

.portrait-img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portrait-ring {
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: inherit;
  pointer-events: none;
  z-index: 2;
}

/* ---------- Dividers ---------- */
.divider {
  color: var(--sage-line);
  opacity: 0.55;
  line-height: 0;
}
.divider svg { width: 100%; height: 44px; display: block; }
.divider-tint { color: var(--rose-deep); opacity: 0.5; }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section-tint { background: var(--cream-deep); }

/* ---------- Cards ---------- */
.grid-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  margin-top: 48px;
}

.card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 34px 28px;
  border: 1px solid rgba(47,59,48,0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }

.card-icon {
  display: inline-flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--cream-deep);
  color: var(--sage-deep);
  margin-bottom: 18px;
}
.card-icon svg { width: 24px; height: 24px; }

.card h3 { margin-bottom: 0.4em; }
.card p { margin: 0; font-size: 0.98rem; }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}
.about-visual { display: flex; justify-content: center; }
.credential-line {
  font-weight: 700;
  color: var(--sage-deep);
  letter-spacing: 0.03em;
  margin-bottom: 1.1em;
}
.about-copy a { color: var(--sage-deep); font-weight: 600; border-bottom: 1px solid var(--sage-soft); }

/* ---------- Steps ---------- */
.steps {
  list-style: none;
  margin: 48px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.step {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 32px 26px 28px;
  border: 1px solid rgba(47,59,48,0.06);
}
.step-number {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--rose-deep);
  margin-bottom: 14px;
}
.step h3 { margin-bottom: 0.35em; }
.step p { margin: 0; font-size: 0.97rem; }

/* ---------- Testimonial placeholder ---------- */
.testimonial-placeholder {
  max-width: 560px;
  margin: 48px auto 0;
  text-align: center;
  border: 1.5px dashed rgba(47,59,48,0.25);
  border-radius: var(--radius-md);
  padding: 46px 32px;
  color: var(--ink-soft);
}
.quote-mark { width: 40px; height: 32px; color: var(--sage-soft); margin: 0 auto 16px; display: block; }
.testimonial-placeholder p { margin: 0; font-style: italic; }

/* ---------- Contact ---------- */
.contact-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 44px;
  align-items: center;
}
.contact-list {
  list-style: none;
  margin: 26px 0 32px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact-list li { display: flex; align-items: center; gap: 14px; font-weight: 600; }
.contact-icon {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--white);
  color: var(--sage-deep);
  flex-shrink: 0;
}
.contact-icon svg { width: 20px; height: 20px; }
.contact-list a:hover { color: var(--sage-deep); }

.contact-motif { display: flex; justify-content: center; color: var(--rose-deep); opacity: 0.7; }
.contact-motif svg { width: min(320px, 70vw); height: auto; }

/* ---------- WhatsApp float ---------- */
.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--sage-deep);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-soft);
  z-index: 90;
  transition: transform 0.25s ease;
}
.whatsapp-float:hover { transform: scale(1.07); }
.whatsapp-float svg { width: 27px; height: 27px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--cream-deep);
  padding: 52px 0 34px;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.footer-brand .brand-name { font-family: var(--font-serif); font-size: 1.2rem; color: var(--cream); display: block; }
.footer-brand .brand-sub { font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sage-soft); }
.footer-links { display: flex; flex-wrap: wrap; gap: 22px; font-weight: 600; font-size: 0.94rem; }
.footer-links a:hover { color: var(--sage-soft); }
.footer-note { font-size: 0.82rem; color: rgba(250,247,242,0.6); line-height: 1.7; margin: 0; }

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   Responsive
   ============================================================ */
@media (min-width: 640px) {
  .grid-cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 860px) {
  .nav-toggle { display: none; }
}

@media (max-width: 859px) {
  .nav-toggle { display: flex; }
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 12px 24px 22px;
    border-bottom: 1px solid rgba(47,59,48,0.08);
    box-shadow: 0 16px 30px -20px rgba(47,59,48,0.3);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }
  .nav a { padding: 10px 0; width: 100%; }
  .nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-cta { margin-top: 6px; text-align: center; }

  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

@media (min-width: 960px) {
  .hero-inner { grid-template-columns: 1.05fr 0.95fr; gap: 64px; }
  .about-grid { grid-template-columns: 0.85fr 1.15fr; }
  .contact-inner { grid-template-columns: 1.1fr 0.9fr; }
  .grid-cards { grid-template-columns: repeat(4, 1fr); }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .footer-inner { flex-direction: row; align-items: center; justify-content: space-between; }
  .footer-note { max-width: 42ch; text-align: right; }
}

@media (min-width: 1180px) {
  .hero { padding-top: 80px; }
}
