/* ===================================================================
   Dr. Ricardo Pimentel · Reprodução Humana
   Design tokens + base. Navy + gold. Geometric sans (Outfit/Manrope).
   =================================================================== */

:root {
  /* ---- Brand neutrals (navy) ---- */
  --navy-900: #0E1B27;   /* deepest, near-black blue */
  --navy-800: #14273A;   /* primary dark bg */
  --navy-700: #1B3149;   /* dark bg 2 / cards on dark */
  --navy-600: #24405C;   /* lifted dark surfaces */
  --navy-500: #355170;   /* muted lines on dark */
  --ink:      #1E2D3F;   /* logo navy / headings on light */
  --ink-soft: #38495C;

  /* ---- Gold ---- */
  --gold-700: #8C6A33;
  --gold-600: #9C7B3E;   /* logo gold */
  --gold-500: #B0894C;   /* primary gold */
  --gold-400: #C7A364;   /* bright gold (on dark) */
  --gold-300: #DBC393;   /* pale gold highlight */
  --gold-glow: rgba(199,163,100,0.35);

  /* ---- Light grounds ---- */
  --ivory:   #F7F3EC;    /* warm ivory section bg */
  --cream:   #FBF8F2;    /* lighter cream */
  --paper:   #FFFFFF;
  --mist:    #EFEAE0;    /* subtle warm border on light */
  --sand:    #ECE5D8;

  /* ---- Text ---- */
  --t-on-light:        #1E2D3F;
  --t-on-light-soft:   #51606E;
  --t-on-light-muted:  #8A93A0;
  --t-on-dark:         #F4F1EA;
  --t-on-dark-soft:    #B9C4CF;
  --t-on-dark-muted:   #7E8B99;

  /* ---- Type ---- */
  --font-display: 'Outfit', system-ui, sans-serif;
  --font-body: 'Manrope', system-ui, sans-serif;

  /* ---- Radius ---- */
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --r-xl: 34px;
  --r-pill: 999px;

  /* ---- Shadow ---- */
  --sh-sm: 0 2px 10px rgba(20,39,58,0.06);
  --sh: 0 18px 50px -22px rgba(20,39,58,0.30);
  --sh-lg: 0 40px 90px -40px rgba(14,27,39,0.45);
  --sh-gold: 0 22px 60px -26px rgba(156,123,62,0.55);

  /* ---- Layout ---- */
  --wide: 1240px;
  --narrow: 820px;
  --bar-h: 40px;
  --head-h: 92px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--t-on-light);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 500;
  margin: 0;
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--ink);
}

p { margin: 0; }

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

::selection { background: var(--gold-300); color: var(--navy-900); }

/* ---- Reusable layout ---- */
.wrap { width: 100%; max-width: var(--wide); margin: 0 auto; padding: 0 32px; }
.narrow { max-width: var(--narrow); margin: 0 auto; }

.section { padding: clamp(72px, 11vw, 140px) 0; position: relative; }
.section--dark { background: var(--navy-800); color: var(--t-on-dark); }
.section--deep { background: var(--navy-900); color: var(--t-on-dark); }
.section--ivory { background: var(--ivory); }
.section--cream { background: var(--cream); }
.section--paper { background: var(--paper); }

.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4,
.section--deep h1, .section--deep h2, .section--deep h3, .section--deep h4 { color: var(--t-on-dark); }

/* ---- Eyebrow ---- */
.eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold-600);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
}
.section--dark .eyebrow, .section--deep .eyebrow { color: var(--gold-400); }
.eyebrow::before {
  content: "";
  width: 30px; height: 1px;
  background: currentColor;
  opacity: 0.6;
  display: inline-block;
}
.eyebrow--center::after {
  content: "";
  width: 30px; height: 1px;
  background: currentColor;
  opacity: 0.6;
  display: inline-block;
}

/* ---- Headings scale ---- */
.h-display { font-size: clamp(40px, 6vw, 76px); font-weight: 500; }
.h-1 { font-size: clamp(34px, 4.6vw, 56px); }
.h-2 { font-size: clamp(27px, 3vw, 40px); }
.h-3 { font-size: clamp(21px, 2vw, 26px); }

.lead {
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.7;
  color: var(--t-on-light-soft);
  text-wrap: pretty;
}
.section--dark .lead, .section--deep .lead { color: var(--t-on-dark-soft); }

.gold-text { color: var(--gold-600); }
.section--dark .gold-text, .section--deep .gold-text { color: var(--gold-400); }

/* italic accent for emotional phrases */
.accent-italic { font-style: italic; font-weight: 300; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  padding: 16px 28px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .35s var(--ease), background .35s var(--ease),
              color .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex: none; }

.btn-gold {
  background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
  color: #fff;
  box-shadow: var(--sh-gold);
}
.btn-gold:hover { transform: translateY(-3px); box-shadow: 0 28px 70px -24px rgba(156,123,62,0.7); }

.btn-navy {
  background: var(--navy-800);
  color: var(--t-on-dark);
}
.btn-navy:hover { background: var(--navy-900); transform: translateY(-3px); }

.btn-ghost-light {
  background: transparent;
  color: var(--ink);
  border-color: rgba(30,45,63,0.22);
}
.btn-ghost-light:hover { border-color: var(--gold-500); color: var(--gold-700); }

.btn-ghost-dark {
  background: transparent;
  color: var(--t-on-dark);
  border-color: rgba(255,255,255,0.25);
}
.btn-ghost-dark:hover { border-color: var(--gold-400); color: var(--gold-300); }

/* shimmer sweep on gold buttons */
.btn-gold::after {
  content: "";
  position: absolute;
  top: 0; left: -120%;
  width: 60%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.45), transparent);
  transform: skewX(-18deg);
  transition: left .7s var(--ease);
}
.btn-gold:hover::after { left: 140%; }

/* ---- Reveal-on-scroll (fail-safe: visible by default) ---- */
.reveal {
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}
/* Hiding only kicks in once JS has marked the page ready. If JS never runs,
   or the observer never fires, content stays visible (never stuck hidden). */
html.js-reveal .reveal { opacity: 0; transform: translateY(34px); }
html.js-reveal .reveal.is-in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }
.reveal.d5 { transition-delay: .40s; }

@media (prefers-reduced-motion: reduce) {
  html.js-reveal .reveal { opacity: 1 !important; transform: none !important; }
  html { scroll-behavior: auto; }
}

/* ---- Gold hairline divider ---- */
.rule-gold {
  width: 56px; height: 2px;
  background: linear-gradient(90deg, var(--gold-500), var(--gold-300));
  border: 0; border-radius: 2px;
}

/* ---- Decorative soft orbs ---- */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}

/* utility */
.center { text-align: center; }
.relative { position: relative; z-index: 1; }
.stack-sm > * + * { margin-top: 14px; }
.stack > * + * { margin-top: 22px; }
.stack-lg > * + * { margin-top: 34px; }

/* ---- Ajustes globais para telas pequenas ---- */
@media (max-width: 600px) {
  /* a eyebrow não pode forçar largura (causava overflow horizontal) */
  .eyebrow { white-space: normal; letter-spacing: .18em; }
  .eyebrow--center { justify-content: center; text-align: center; }
  .section { padding: clamp(64px, 14vw, 96px) 0; }
}
