/* ============================================
   GRAN MEDICAL — Protocolo Emagreça com Saúde
   Custom styles + fonts
   ============================================ */

/* ---------- FONTS ---------- */
/* Behind the Nineties — display / headlines */
@font-face {
  font-family: 'Behind The Nineties';
  src: url('../fonts/Behind-The-Nineties-Rg.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Behind The Nineties';
  src: url('../fonts/Behind-The-Nineties-Md.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Behind The Nineties';
  src: url('../fonts/Behind-The-Nineties-Smbd.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Behind The Nineties';
  src: url('../fonts/Behind-The-Nineties-Bd.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Behind The Nineties';
  src: url('../fonts/Behind-The-Nineties-Xbd.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Behind The Nineties';
  src: url('../fonts/Behind-The-Nineties-Blk.woff2') format('woff2');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Behind The Nineties';
  src: url('../fonts/Behind-The-Nineties-It.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Behind The Nineties';
  src: url('../fonts/Behind-The-Nineties-Bd-It.woff2') format('woff2');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Behind The Nineties';
  src: url('../fonts/Behind-The-Nineties-Blk-It.woff2') format('woff2');
  font-weight: 900;
  font-style: italic;
  font-display: swap;
}

/* JUST Sans — body / UI */
@font-face {
  font-family: 'JUST Sans';
  src: url('../fonts/JUST-Sans-Light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'JUST Sans';
  src: url('../fonts/JUST-Sans-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'JUST Sans';
  src: url('../fonts/JUST-Sans-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'JUST Sans';
  src: url('../fonts/JUST-Sans-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'JUST Sans';
  src: url('../fonts/JUST-Sans-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'JUST Sans';
  src: url('../fonts/JUST-Sans-ExBold.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

/* ---------- BASE ---------- */
:root {
  --red: #D4040B;
  --burgundy: #990000;
  --charcoal: #1A1A1A;
  --warm-gray: #F5F3EF;
  --mid-gray: #8A8880;
  --border: #E2DED8;
  --light-red: #FDEAEA;
  --soft-coral: #E8877F;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'JUST Sans', 'Inter', system-ui, -apple-system, sans-serif;
  color: #1A1A1A;
  background: #ffffff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.font-display {
  font-family: 'Behind The Nineties', 'JUST Sans', system-ui, serif;
}

/* ---------- UTILITIES ---------- */
.container-x { max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
@media (min-width: 768px) {
  .container-x { padding-left: 40px; padding-right: 40px; }
}

.eyebrow {
  font-family: 'JUST Sans', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--red);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--red);
  color: #fff;
  font-family: 'JUST Sans', sans-serif;
  font-weight: 600;
  font-size: 16px;
  padding: 16px 36px;
  border-radius: 100px;
  text-decoration: none;
  transition: all .2s ease;
  box-shadow: 0 4px 16px rgba(212,4,11,0.25);
  border: none;
  cursor: pointer;
  line-height: 1;
}
.btn-primary:hover {
  background: var(--burgundy);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(212,4,11,0.32);
}
.btn-primary.btn-sm { font-size: 14px; padding: 12px 24px; box-shadow: none; }
.btn-primary.btn-sm:hover { transform: translateY(-1px); }

.btn-inverse {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #fff;
  color: var(--red);
  font-family: 'JUST Sans', sans-serif;
  font-weight: 600;
  font-size: 16px;
  padding: 16px 36px;
  border-radius: 100px;
  text-decoration: none;
  transition: all .2s ease;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  line-height: 1;
}
.btn-inverse:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.22);
}

/* ---------- NAV ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.88);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-logo img { height: 32px; width: auto; display: block; }

/* ---------- HERO ---------- */
.hero {
  padding: 96px 0 80px;
  background: #fff;
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 64px; }
}
.hero-h1 {
  font-family: 'Behind The Nineties', serif;
  font-weight: 900;
  font-size: clamp(38px, 6vw, 58px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--charcoal);
  margin: 16px 0 20px;
}
.hero-h1 .accent {
  color: var(--red);
  font-style: italic;
  font-weight: 900;
}
.hero-sub {
  font-size: 17px;
  line-height: 1.7;
  color: #555;
  max-width: 520px;
  margin: 0 0 28px;
}
.checklist { list-style: none; padding: 0; margin: 0 0 32px; display: grid; gap: 12px; }
.checklist li {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 16px; color: #333;
}
.check-icon {
  flex-shrink: 0;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--light-red);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--red);
  margin-top: 2px;
}
.check-icon svg { width: 12px; height: 12px; }
.hero-note { margin-top: 14px; font-size: 13px; color: var(--mid-gray); }

.hero-photo {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: var(--warm-gray);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.15), 0 0 0 1px rgba(0,0,0,0.04);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-photo-badge {
  position: absolute;
  bottom: 20px; left: 20px;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(8px);
  border-radius: 14px;
  padding: 14px 18px;
  display: flex; align-items: center; gap: 14px;
  box-shadow: 0 12px 32px -8px rgba(0,0,0,0.18);
}
.hero-photo-badge .num {
  font-family: 'Behind The Nineties', serif;
  font-weight: 900;
  font-size: 36px;
  color: var(--red);
  line-height: 1;
}
.hero-photo-badge .lbl {
  font-size: 12px;
  color: #444;
  line-height: 1.35;
  max-width: 160px;
}
.hero-photo-tag {
  position: absolute;
  top: 20px; right: 20px;
  background: var(--charcoal);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: 100px;
}

/* ---------- SECTION BASE ---------- */
.section { padding: 96px 0; }
.section-light { background: var(--warm-gray); }
.section-dark { background: var(--charcoal); color: #fff; }

.section-header { max-width: 760px; margin: 0 0 56px; }
.section-header.centered { margin-left: auto; margin-right: auto; text-align: center; }
.section-h2 {
  font-family: 'Behind The Nineties', serif;
  font-weight: 800;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--charcoal);
  margin: 12px 0 14px;
}
.section-dark .section-h2 { color: #fff; }
.section-sub { font-size: 17px; color: #555; line-height: 1.7; }
.section-dark .section-sub { color: #aaa; }
.section-dark .eyebrow { color: var(--soft-coral); }

.divider-red {
  width: 60px; height: 3px; background: var(--red); border: none; margin: 0 0 24px;
}

/* ---------- WHY PROTOCOL ---------- */
.why-grid { display: grid; gap: 48px; grid-template-columns: 1fr; }
@media (min-width: 960px) { .why-grid { grid-template-columns: 1.1fr 1fr; gap: 64px; } }
.why-text p { font-size: 17px; line-height: 1.75; color: #444; margin: 0 0 18px; }
.why-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.why-list li {
  position: relative; padding-left: 22px; font-size: 16px; color: #333;
}
.why-list li::before {
  content: ""; position: absolute; left: 0; top: 11px;
  width: 8px; height: 8px; border-radius: 50%; background: var(--soft-coral);
}
.quote-card {
  background: #fff;
  border-radius: 20px;
  padding: 40px;
  border-left: 4px solid var(--red);
  box-shadow: 0 12px 40px -16px rgba(0,0,0,0.08);
}
.quote-card .q-mark {
  font-family: 'Behind The Nineties', serif;
  font-weight: 900;
  font-size: 48px;
  color: var(--red);
  line-height: 1;
  margin-bottom: 8px;
  display: block;
}
.quote-card blockquote {
  font-family: 'Behind The Nineties', serif;
  font-style: italic;
  font-size: 22px;
  line-height: 1.45;
  color: var(--charcoal);
  margin: 0 0 20px;
  font-weight: 500;
}
.quote-sig { font-size: 13px; color: var(--mid-gray); margin: 0 0 20px; }
.quote-support {
  font-size: 14px; color: #666; line-height: 1.65;
  padding-top: 20px; border-top: 1px solid var(--border);
}

/* ---------- PHASE JOURNEY ---------- */
.phase {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  padding: 40px 0;
  border-top: 1px solid var(--border);
}
.phase:last-child { border-bottom: 1px solid var(--border); }
@media (min-width: 900px) {
  .phase { grid-template-columns: 320px 1fr; gap: 64px; padding: 56px 0; }
}
.phase-head .phase-num {
  font-family: 'Behind The Nineties', serif;
  font-weight: 900;
  font-size: 14px;
  color: var(--red);
  letter-spacing: 2px;
}
.phase-head h3 {
  font-family: 'Behind The Nineties', serif;
  font-weight: 800;
  font-size: 28px;
  color: var(--charcoal);
  line-height: 1.15;
  margin: 6px 0 8px;
}
.phase-head .phase-period {
  font-size: 14px;
  color: var(--mid-gray);
  font-style: italic;
}
.phase-steps { display: grid; gap: 0; }
.step {
  border-top: 1px solid var(--border);
}
.step:first-child { border-top: none; }
.step-toggle {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  background: transparent; border: none; padding: 20px 0; text-align: left;
  cursor: pointer; font: inherit; color: inherit;
  gap: 16px;
}
.step-toggle .step-title {
  font-family: 'JUST Sans', sans-serif;
  font-weight: 600;
  font-size: 18px;
  color: var(--charcoal);
}
.step-toggle .step-icon {
  flex-shrink: 0;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--warm-gray);
  display: inline-flex; align-items: center; justify-content: center;
  transition: all .25s ease;
  color: var(--charcoal);
}
.step.is-open .step-icon { background: var(--red); color: #fff; transform: rotate(180deg); }
.step-body {
  max-height: 0; overflow: hidden;
  transition: max-height .3s ease;
}
.step.is-open .step-body { max-height: 400px; }
.step-body-inner {
  padding: 0 0 24px;
  color: #555; font-size: 16px; line-height: 1.7;
  max-width: 640px;
}

/* ---------- WHAT'S INCLUDED ---------- */
.included-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2px;
  border-radius: 18px;
  overflow: hidden;
  background: #2A2A28;
}
.included-item {
  background: #2A2A28;
  padding: 36px 28px;
  transition: background .2s ease;
}
.included-item:hover { background: #333330; }
.included-item .num {
  font-family: 'Behind The Nineties', serif;
  font-weight: 900;
  font-size: 44px;
  line-height: 1;
  color: #fff;
  margin-bottom: 12px;
  display: block;
}
.included-item .lbl {
  font-size: 14px;
  color: #b8b6ad;
  line-height: 1.45;
}

/* ---------- TEAM ---------- */
.team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 800px) {
  .team-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
.team-card {
  position: relative;
  background: var(--warm-gray);
  border-radius: 22px;
  padding: 36px;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.team-card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -18px rgba(0,0,0,0.18); }
.team-card::before {
  content: "";
  position: absolute;
  right: -60px; bottom: -60px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: var(--light-red);
  opacity: .5;
}
.team-photo {
  position: relative;
  width: 160px; height: 160px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 24px;
  border: 4px solid #fff;
  box-shadow: 0 14px 32px -10px rgba(0,0,0,0.22);
}
@media (max-width: 480px) {
  .team-photo { width: 132px; height: 132px; }
}
.team-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.team-card-content { position: relative; z-index: 1; }
.team-name {
  font-family: 'Behind The Nineties', serif;
  font-weight: 800;
  font-size: 24px;
  color: var(--charcoal);
  margin: 0 0 4px;
  line-height: 1.15;
}
.team-role {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 10px;
}
.team-reg {
  font-family: 'JUST Sans', monospace;
  font-size: 12px;
  color: var(--mid-gray);
  margin-bottom: 16px;
  letter-spacing: 0.4px;
}
.team-desc { font-size: 15px; color: #444; line-height: 1.65; margin: 0; }

/* ---------- TESTIMONIALS PLACEHOLDER ---------- */
.testimonials-placeholder {
  border: 2px dashed var(--border);
  border-radius: 22px;
  padding: 64px 40px;
  text-align: center;
  background: #fff;
  max-width: 760px;
  margin: 0 auto;
}
.testimonials-placeholder .icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--light-red);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  color: var(--red);
}
.testimonials-placeholder p {
  color: #555; font-size: 16px; line-height: 1.7; max-width: 480px; margin: 0 auto;
}

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-toggle {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  background: transparent; border: none; padding: 24px 0;
  text-align: left; cursor: pointer; font: inherit; color: inherit;
}
.faq-toggle .faq-q {
  font-family: 'JUST Sans', sans-serif;
  font-weight: 600;
  font-size: 17px;
  color: var(--charcoal);
}
.faq-toggle .faq-icon {
  flex-shrink: 0;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--warm-gray);
  display: inline-flex; align-items: center; justify-content: center;
  transition: all .25s ease;
  color: var(--charcoal);
  font-size: 18px; font-weight: 600;
}
.faq-item.is-open .faq-icon { transform: rotate(45deg); background: var(--red); color: #fff; }
.faq-body { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-item.is-open .faq-body { max-height: 500px; }
.faq-body-inner { padding: 0 0 24px; color: #555; font-size: 16px; line-height: 1.75; }

/* ---------- FINAL CTA ---------- */
.final-cta {
  background: var(--red);
  color: #fff;
  text-align: center;
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}
.final-cta::before, .final-cta::after {
  content: ""; position: absolute; border-radius: 50%;
  background: rgba(255,255,255,0.06);
}
.final-cta::before { width: 320px; height: 320px; top: -120px; left: -120px; }
.final-cta::after { width: 240px; height: 240px; bottom: -100px; right: -80px; }
.final-cta .inner { position: relative; z-index: 1; max-width: 640px; margin: 0 auto; }
.final-cta .eyebrow { color: rgba(255,255,255,0.7); }
.final-cta h2 {
  font-family: 'Behind The Nineties', serif;
  font-weight: 900;
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.08;
  color: #fff;
  margin: 12px 0 32px;
  letter-spacing: -0.02em;
}
.final-cta .below { margin-top: 18px; font-size: 13px; color: rgba(255,255,255,0.7); }

/* ---------- FOOTER ---------- */
.footer { background: var(--charcoal); color: #888; padding: 36px 0 32px; }
.footer-divider { height: 1px; background: var(--red); margin: 0 0 24px; opacity: .9; }
.footer-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px;
  font-size: 13px;
}
.footer-inner img { height: 28px; width: auto; }

/* ---------- MOBILE STICKY BAR ---------- */
.mobile-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #fff;
  border-top: 1px solid var(--border);
  padding: 12px 16px;
  padding-bottom: calc(12px + env(safe-area-inset-bottom));
  z-index: 200;
  display: none;
  box-shadow: 0 -8px 24px -10px rgba(0,0,0,0.08);
}
.mobile-bar .btn-primary { width: 100%; }
@media (max-width: 768px) {
  .mobile-bar { display: block; }
  body { padding-bottom: 88px; }
}

/* ---------- ANIMATIONS ---------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up {
  opacity: 0;
  animation: fadeUp .7s ease forwards;
}
.fade-up.d1 { animation-delay: .05s; }
.fade-up.d2 { animation-delay: .15s; }
.fade-up.d3 { animation-delay: .25s; }
.fade-up.d4 { animation-delay: .35s; }
.fade-up.d5 { animation-delay: .45s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* ---------- IN-VIEW REVEAL ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-in { opacity: 1; transform: translateY(0); }

/* ---------- FOCUS ---------- */
:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
  border-radius: 4px;
}
.btn-primary:focus-visible, .btn-inverse:focus-visible { outline-offset: 4px; }
