/* ==========================================================================
   PAULONUTRA AFILIADOS — Design tokens e estilos globais
   Paleta: azul profundo + amarelo dourado + branco
   Tipografia: Poppins (headings) + Inter (corpo)
   ========================================================================== */

:root {
  /* Cores da marca (extraídas do logo paulo·nutra) */
  --color-blue:           #074884;
  --color-blue-dark:      #053464;
  --color-blue-deep:      #04254d;
  --color-blue-bright:    #0a5fab;
  --color-yellow:         #fcc419;
  --color-yellow-warm:    #f5a623;
  --color-yellow-soft:    #fde68a;

  --color-bg:             #ffffff;
  --color-surface:        #f8fafc;
  --color-surface-2:      #eef4fb;
  --color-text:           #0e2746;
  --color-text-muted:     #4a5e7a;
  --color-text-soft:      #788ba6;

  --color-line:           rgba(7, 72, 132, 0.12);
  --color-line-soft:      rgba(7, 72, 132, 0.06);

  /* Tipografia */
  --font-display: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;

  /* Layout */
  --container-max: 1180px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  /* Sombras */
  --shadow-sm:   0 2px 8px rgba(7, 72, 132, .08);
  --shadow-md:   0 8px 24px rgba(7, 72, 132, .12);
  --shadow-lg:   0 16px 40px rgba(7, 72, 132, .18);
  --shadow-yellow: 0 8px 24px rgba(252, 196, 25, .35);

  /* Animações */
  --ease: cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  font-size: 16px;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  font-weight: 400;
  overflow-x: hidden;
  max-width: 100vw;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--color-blue-bright);
  text-decoration: none;
  transition: color .2s var(--ease);
}
a:hover { color: var(--color-yellow-warm); }

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}
@media (max-width: 480px) {
  .container { padding: 0 18px; }
}

/* ============== Tipografia ============== */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.18;
  margin: 0 0 .5em;
  color: var(--color-text);
  word-break: normal;
  overflow-wrap: normal;
  hyphens: manual;
}
h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.65rem, 3.2vw, 2.5rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }
h4 { font-size: 1.05rem; font-weight: 600; }

.break-md { display: inline; }
@media (max-width: 880px) { .break-md { display: none; } }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: .78rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--color-blue-bright);
  margin-bottom: 1rem;
  font-weight: 600;
  max-width: 100%;
}
@media (max-width: 520px) {
  .eyebrow { letter-spacing: .15em; font-size: .72rem; }
}

.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  font-weight: 400;
  color: var(--color-text-muted);
  line-height: 1.55;
}

.muted    { color: var(--color-text-muted); }
.soft     { color: var(--color-text-soft); }
.yellow   { color: var(--color-yellow-warm); font-weight: 700; }
.brandblue{ color: var(--color-blue); font-weight: 700; }

.divider-yellow {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--color-yellow), var(--color-yellow-warm));
  border-radius: 4px;
  margin: 18px 0 24px;
}
.section-head { text-align: center; max-width: 760px; margin: 0 auto 56px; }
.section-head .divider-yellow { margin-inline: auto; }

/* ============== Header ============== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-line-soft);
}
.site-header .nav {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 14px 24px;
  max-width: var(--container-max);
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--color-text);
}
.brand-mark {
  width: 56px; height: 38px;
  display: grid; place-items: center;
  flex: none;
}
.brand-mark img { width: 100%; height: 100%; object-fit: contain; }
@media (max-width: 480px) { .brand-mark { width: 48px; height: 32px; } }

.nav-links {
  display: flex; gap: 28px;
  margin-left: auto;
  list-style: none; padding: 0; margin-block: 0;
}
.nav-links a {
  color: var(--color-text-muted);
  font-size: .95rem;
  font-weight: 500;
  position: relative;
}
.nav-links a:hover { color: var(--color-blue); }
.nav-actions { display: flex; gap: 10px; }

.menu-toggle {
  display: none;
  background: none; border: none;
  color: var(--color-blue);
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
}
.menu-toggle svg { width: 26px; height: 26px; }

@media (max-width: 880px) {
  .nav-links, .nav-actions { display: none; }
  .menu-toggle { display: block; }
  .site-header.menu-open .nav-links {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--color-line);
    padding: 8px 0;
    box-shadow: var(--shadow-md);
  }
  .site-header.menu-open .nav-links a {
    padding: 14px 24px;
    border-bottom: 1px solid var(--color-line-soft);
  }
  .site-header.menu-open .nav-actions {
    display: flex;
    padding: 14px 24px 18px;
    background: #fff;
    position: absolute;
    top: 100%; left: 0; right: 0;
    margin-top: 240px;
    box-shadow: var(--shadow-md);
  }
  .site-header.menu-open .nav-actions .btn { width: 100%; }
}

/* ============== Botões ============== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .01em;
  border: 2px solid var(--color-blue);
  background: transparent;
  color: var(--color-blue);
  cursor: pointer;
  transition: all .2s var(--ease);
  white-space: nowrap;
  max-width: 100%;
  text-align: center;
}
@media (max-width: 520px) {
  .btn {
    white-space: normal;
    padding: 13px 18px;
    font-size: .88rem;
    line-height: 1.3;
  }
}
.btn:hover {
  background: var(--color-blue);
  color: #fff;
  transform: translateY(-1px);
}
.btn-primary {
  background: linear-gradient(135deg, var(--color-yellow) 0%, var(--color-yellow-warm) 100%);
  color: var(--color-blue-deep);
  border-color: transparent;
  font-weight: 700;
  box-shadow: var(--shadow-yellow);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--color-yellow-warm) 0%, var(--color-yellow) 100%);
  color: var(--color-blue-deep);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(252, 196, 25, .5);
}
.btn-secondary-light {
  border-color: rgba(255,255,255,.5);
  color: #fff;
  background: rgba(255,255,255,.08);
}
.btn-secondary-light:hover {
  background: #fff;
  color: var(--color-blue-deep);
  border-color: #fff;
}
.btn svg { width: 18px; height: 18px; }

/* ============== Seções ============== */
section { padding: clamp(56px, 9vw, 110px) 0; }

/* ============== Hero ============== */
.hero {
  background: linear-gradient(135deg, var(--color-blue-deep) 0%, var(--color-blue) 50%, var(--color-blue-bright) 100%);
  color: #fff;
  padding-top: clamp(56px, 8vw, 90px);
  padding-bottom: clamp(56px, 8vw, 90px);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 10%, rgba(252,196,25,.15) 0%, transparent 35%),
    radial-gradient(circle at 10% 90%, rgba(255,255,255,.06) 0%, transparent 40%);
  pointer-events: none;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 56px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-text .eyebrow { color: var(--color-yellow); }
.hero h1 { color: #fff; }
.hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--color-yellow) 0%, var(--color-yellow-warm) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}
.hero .lead { color: rgba(255,255,255,.85); font-size: clamp(1.1rem, 1.7vw, 1.3rem); }
.hero-cta { margin-top: 32px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero-visual { text-align: center; }
.hero-visual img {
  width: 100%; max-width: 460px;
  margin: 0 auto;
  filter: drop-shadow(0 24px 48px rgba(0,0,0,.35));
}
@media (max-width: 880px) {
  .hero-inner { grid-template-columns: 1fr; gap: 32px; text-align: center; }
  .hero-cta { justify-content: center; }
  .hero-visual img { max-width: 360px; }
}

/* ============== Stats ============== */
.stats {
  background: var(--color-surface);
  padding: 48px 0;
  border-bottom: 1px solid var(--color-line-soft);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat .num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  color: var(--color-blue);
  line-height: 1;
}
.stat .label {
  font-size: .85rem;
  font-weight: 500;
  color: var(--color-text-muted);
  margin-top: 8px;
  letter-spacing: .03em;
}
@media (max-width: 720px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============== Why (features) ============== */
.why { background: #fff; }
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.feature {
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  text-align: center;
  transition: all .25s var(--ease);
}
.feature:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-yellow-warm);
}
.feature-icon {
  width: 64px; height: 64px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--color-blue) 0%, var(--color-blue-bright) 100%);
  color: var(--color-yellow);
  display: grid; place-items: center;
  margin: 0 auto 20px;
}
.feature-icon svg { width: 32px; height: 32px; }
.feature h3 { font-size: 1.1rem; margin-bottom: 10px; }
.feature p { color: var(--color-text-muted); font-size: .95rem; margin: 0; }
@media (max-width: 880px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .why-grid { grid-template-columns: 1fr; }
}

/* ============== Sobre / About ============== */
.about { background: var(--color-surface); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 56px;
  align-items: center;
}
.about-photo {
  background: linear-gradient(135deg, var(--color-blue) 0%, var(--color-blue-bright) 100%);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  box-shadow: var(--shadow-md);
}
.about-photo img { width: 100%; height: auto; max-width: 400px; margin: 0 auto; }
.about-text p { margin-bottom: 1em; color: var(--color-text); }
@media (max-width: 880px) {
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ============== Nichos / Niches ============== */
.niches { background: #fff; }
.niches-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.niche-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 28px 24px;
  text-align: center;
  border: 1px solid var(--color-line);
  transition: all .25s var(--ease);
}
.niche-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.niche-card img {
  width: 130px; height: 130px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 18px;
  box-shadow: 0 6px 20px rgba(7, 72, 132, .15);
}
.niche-card h3 { font-size: 1.1rem; color: var(--color-blue); margin-bottom: 8px; }
.niche-card p { color: var(--color-text-muted); font-size: .92rem; margin: 0; }
@media (max-width: 880px) {
  .niches-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}
@media (max-width: 520px) {
  .niches-grid { grid-template-columns: 1fr; }
}

/* ============== Testimonials ============== */
.testimonials { background: var(--color-surface); }
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial {
  background: #fff;
  padding: 28px 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--color-yellow);
}
.testimonial .stars {
  color: var(--color-yellow-warm);
  font-size: 1.1rem;
  letter-spacing: 2px;
  margin-bottom: 14px;
}
.testimonial .quote {
  font-style: italic;
  font-size: 1rem;
  color: var(--color-text);
  margin: 0 0 16px;
  line-height: 1.55;
}
.testimonial .who .name { font-weight: 700; color: var(--color-blue); display: block; }
.testimonial .who .meta { font-size: .82rem; color: var(--color-text-soft); }
@media (max-width: 880px) {
  .testimonials-grid { grid-template-columns: 1fr; }
}

/* ============== CTA Strip ============== */
.cta-strip {
  background: linear-gradient(135deg, var(--color-blue-deep) 0%, var(--color-blue) 100%);
  color: #fff;
  padding: clamp(48px, 7vw, 80px) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-strip::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(252,196,25,.15) 0%, transparent 60%);
  pointer-events: none;
}
.cta-strip h2 { color: #fff; }
.cta-strip h2 em {
  font-style: normal;
  color: var(--color-yellow);
}
.cta-strip p { color: rgba(255,255,255,.85); max-width: 680px; margin: 0 auto 32px; }
.cta-strip .container { position: relative; z-index: 1; }

/* ============== Footer ============== */
.site-footer {
  background: var(--color-blue-deep);
  color: rgba(255,255,255,.7);
  padding: 60px 0 28px;
}
.site-footer h5 {
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  margin: 0 0 14px;
  letter-spacing: .02em;
}
.site-footer .brand-name {
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin-bottom: 8px; }
.site-footer ul a { color: rgba(255,255,255,.7); font-size: .92rem; }
.site-footer ul a:hover { color: var(--color-yellow); }
.lang-switcher { display: flex; gap: 8px; margin-top: 8px; }
.lang-switcher a {
  display: inline-flex;
  align-items: center; justify-content: center;
  min-width: 44px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255,255,255,.25);
  color: rgba(255,255,255,.85);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .05em;
}
.lang-switcher a.active,
.lang-switcher a:hover {
  background: var(--color-yellow);
  color: var(--color-blue-deep);
  border-color: var(--color-yellow);
}
.social-icons { display: flex; gap: 14px; margin-top: 8px; }
.social-icons a {
  display: inline-grid; place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  color: #fff;
  transition: all .2s var(--ease);
}
.social-icons a:hover {
  background: var(--color-yellow);
  color: var(--color-blue-deep);
  transform: translateY(-2px);
}
.social-icons svg { width: 18px; height: 18px; }
.copyright {
  text-align: center;
  padding-top: 24px;
  font-size: .82rem;
  color: rgba(255,255,255,.55);
}
.copyright .yellow { color: var(--color-yellow); font-weight: 600; }
@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ============== Reveal animation ============== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ============== Helpers ============== */
.text-center { text-align: center; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
