/*
Theme Name: Jejum Intermitente - Willian Sena
Theme URI: https://williansenanutri.com.br
Author: Willian Sena
Description: Landing page de vendas do e-book Jejum Intermitente
Version: 1.0
Text Domain: jejum-intermitente
*/

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;800;900&family=Inter:wght@400;500;600;700&display=swap');

/* ─── Reset & Base ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: hsl(220, 25%, 97%);
  --fg: hsl(220, 40%, 13%);
  --primary: hsl(220, 70%, 45%);
  --gold: hsl(42, 85%, 55%);
  --gold-light: hsl(42, 80%, 70%);
  --gold-dark: hsl(42, 90%, 40%);
  --muted: hsl(220, 10%, 45%);
  --border: hsl(220, 15%, 88%);
  --card: hsl(0, 0%, 100%);
  --section-dark-bg: hsl(220, 30%, 10%);
  --section-dark-fg: hsl(0, 0%, 95%);
  --hero-start: hsl(220, 70%, 15%);
  --hero-mid: hsl(230, 65%, 25%);
  --hero-end: hsl(240, 55%, 20%);
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: 'Playfair Display', serif; }
img { max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }

/* ─── Utilities ─── */
.container { max-width: 1152px; margin: 0 auto; padding: 0 1rem; }
.text-gold { color: var(--gold); }
.text-center { text-align: center; }
.text-muted { color: var(--muted); }

.gold-gradient {
  background: linear-gradient(135deg, hsl(42, 85%, 55%) 0%, hsl(38, 90%, 60%) 100%);
}

.hero-gradient {
  background: linear-gradient(135deg, var(--hero-start) 0%, var(--hero-mid) 40%, var(--hero-end) 100%);
}

.section-dark {
  background: var(--section-dark-bg);
  color: var(--section-dark-fg);
}

.section-muted { background: hsl(220, 15%, 94%, 0.5); }

/* ─── CTA Button ─── */
.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2.5rem;
  border-radius: 0.75rem;
  border: none;
  cursor: pointer;
  font-weight: 700;
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  color: var(--fg);
  background: linear-gradient(135deg, hsl(42, 85%, 55%) 0%, hsl(38, 90%, 60%) 100%);
  transition: filter 0.2s, transform 0.2s;
  animation: pulse-glow 2s ease-in-out infinite;
}
.cta-button:hover { filter: brightness(1.1); transform: translateY(-1px); }
.cta-button.large { padding: 1.25rem 3rem; font-size: 1.125rem; border-radius: 0.85rem; }

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 10px hsl(42, 85%, 55%, 0.3); }
  50% { box-shadow: 0 0 25px hsl(42, 85%, 55%, 0.5); }
}

/* ─── Scroll Reveal ─── */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ─── Section Spacing ─── */
.section { padding: 4rem 1rem; }
@media (min-width: 768px) { .section { padding: 6rem 1rem; } }

/* ─── Hero ─── */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 90vh;
  display: flex;
  align-items: center;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 50%, hsl(220, 70%, 30%, 0.5), transparent 70%);
}
.hero .container { position: relative; z-index: 1; }
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
  padding: 5rem 0;
}
@media (min-width: 768px) { .hero-grid { grid-template-columns: 1fr 1fr; } }

.hero-badge {
  display: inline-block;
  padding: 0.375rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: 2.25rem;
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  color: hsl(0, 0%, 98%);
}
@media (min-width: 768px) { .hero h1 { font-size: 3rem; } }
@media (min-width: 1024px) { .hero h1 { font-size: 3.75rem; } }

.hero-subtitle {
  font-size: 1.125rem;
  line-height: 1.7;
  color: hsl(220, 20%, 80%);
  margin-bottom: 1rem;
}
.hero-subtitle strong { color: hsl(0, 0%, 95%); }

.hero-price-label { font-size: 0.875rem; color: hsl(220, 20%, 70%); }
.hero-price { font-size: 1.875rem; font-weight: 900; color: var(--gold); }

.hero-badges {
  display: flex;
  gap: 1.5rem;
  margin-top: 1.5rem;
  color: hsl(220, 20%, 70%);
  font-size: 0.875rem;
  flex-wrap: wrap;
}
.hero-badges span { display: flex; align-items: center; gap: 0.25rem; }

.hero-cover-wrapper {
  display: flex;
  justify-content: center;
  position: relative;
}
.hero-cover-glow {
  position: absolute;
  inset: -1rem;
  background: linear-gradient(to bottom right, hsl(42, 85%, 55%, 0.2), hsl(220, 70%, 45%, 0.2));
  filter: blur(40px);
  border-radius: 50%;
}
.hero-cover {
  position: relative;
  z-index: 1;
  width: 18rem;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.3));
  transition: transform 0.5s;
}
.hero-cover:hover { transform: scale(1.05); }
@media (min-width: 768px) { .hero-cover { width: 24rem; } }

/* ─── Cards Grid ─── */
.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 640px) { .cards-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cards-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .cards-grid-4 { grid-template-columns: repeat(4, 1fr); } }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.5rem;
  transition: box-shadow 0.3s, transform 0.3s;
}
.card:hover { box-shadow: 0 10px 30px rgba(0,0,0,0.08); transform: translateY(-4px); }

.card-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  transition: transform 0.3s;
}
.card:hover .card-icon { transform: scale(1.1); }
.card-icon svg { width: 1.5rem; height: 1.5rem; color: var(--fg); }

.card h3 { font-family: 'Inter', sans-serif; font-weight: 700; font-size: 1.125rem; margin-bottom: 0.5rem; }
.card p { color: var(--muted); font-size: 0.875rem; }

/* ─── Benefits (dark) ─── */
.benefit-item { text-align: center; }
.benefit-icon {
  width: 4rem; height: 4rem;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  transition: transform 0.3s;
}
.benefit-item:hover .benefit-icon { transform: scale(1.1); }
.benefit-icon svg { width: 2rem; height: 2rem; color: var(--fg); }
.benefit-item h3 { font-family: 'Inter', sans-serif; font-weight: 700; font-size: 1.125rem; margin-bottom: 0.5rem; }
.benefit-item p { font-size: 0.875rem; opacity: 0.7; }

/* ─── Social Proof ─── */
.logos-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  opacity: 0.6;
}
@media (min-width: 768px) { .logos-row { gap: 4rem; } }
.logo-name { font-family: 'Playfair Display', serif; font-size: 1.25rem; font-weight: 900; letter-spacing: 0.05em; }
@media (min-width: 768px) { .logo-name { font-size: 1.5rem; } }

/* ─── Accordion ─── */
.accordion { max-width: 48rem; margin: 0 auto; display: flex; flex-direction: column; gap: 0.75rem; }
.accordion-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  overflow: hidden;
}
.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--fg);
  text-align: left;
}
.accordion-trigger .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem; height: 2rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 900;
  color: var(--fg);
  margin-right: 0.75rem;
  flex-shrink: 0;
}
.accordion-trigger .arrow {
  transition: transform 0.3s;
  flex-shrink: 0;
}
.accordion-item.open .accordion-trigger .arrow { transform: rotate(180deg); }
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 1.5rem;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}
.accordion-item.open .accordion-content {
  max-height: 200px;
  padding: 0 1.5rem 1rem;
}

/* ─── Author ─── */
.author-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 768px) { .author-grid { grid-template-columns: 1fr 2fr; } }

.author-photo-wrapper {
  display: flex;
  justify-content: center;
}
.author-photo-ring {
  width: 12rem; height: 12rem;
  border-radius: 50%;
  background: linear-gradient(to bottom right, hsl(42, 85%, 55%, 0.3), hsl(220, 70%, 45%, 0.3));
  padding: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
@media (min-width: 768px) { .author-photo-ring { width: 14rem; height: 14rem; } }
.author-photo {
  width: 100%; height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: top;
}

.author-credentials {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
  font-size: 0.875rem;
  opacity: 0.7;
}
.author-credentials span { display: flex; align-items: center; gap: 0.5rem; }

/* ─── Guarantee ─── */
.guarantee-icon {
  width: 6rem; height: 6rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}
.guarantee-icon svg { width: 3rem; height: 3rem; color: var(--fg); }

/* ─── Final CTA ─── */
.final-cta {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 5rem 1rem;
}
.final-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 50%, hsl(42, 85%, 55%, 0.08), transparent 60%);
}
.final-cta .container { position: relative; z-index: 1; }
.final-cta h2 { color: hsl(0, 0%, 98%); font-size: 1.875rem; font-weight: 900; margin-bottom: 1.5rem; }
@media (min-width: 768px) { .final-cta h2 { font-size: 3rem; } }
.final-cta .subtitle { color: hsl(220, 20%, 80%); font-size: 1.125rem; margin-bottom: 2rem; }

.price-block { margin-bottom: 2rem; }
.price-block .old { font-size: 0.875rem; color: hsl(220, 20%, 70%); }
.price-block .price { font-size: 3rem; font-weight: 900; color: var(--gold); margin: 0.5rem 0; }
.price-block .installment { font-size: 0.875rem; color: hsl(220, 20%, 70%); }

.trust-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
  color: hsl(220, 20%, 70%);
  font-size: 0.875rem;
}
.trust-badges span { display: flex; align-items: center; gap: 0.5rem; }

/* ─── Footer ─── */
.site-footer {
  background: hsl(220, 40%, 13%, 0.95);
  text-align: center;
  padding: 2rem 1rem;
}
.site-footer p { font-size: 0.875rem; color: hsl(220, 20%, 60%); }
.site-footer .disclaimer { font-size: 0.75rem; color: hsl(220, 20%, 45%); margin-top: 0.5rem; }

/* ─── Section Headers ─── */
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-header h2 { font-size: 1.875rem; font-weight: 900; margin-bottom: 1rem; }
@media (min-width: 768px) { .section-header h2 { font-size: 2.25rem; } }
.section-header p { color: var(--muted); font-size: 1.125rem; max-width: 42rem; margin: 0 auto; }
