/* ═══════════════════════════════════════════════
   Perspectivas sobre o Fogo — Helio Turquino
   Main Stylesheet
   ═══════════════════════════════════════════════ */

/* ─── Self-hosted fonts (subset: latin + latin-ext) ───
   Playfair Display & Josefin Sans ship as variable fonts (one file covers
   all weights via font-weight range). Crimson Text is static per weight. */

/* Crimson Text — 400 */
@font-face {
  font-family: 'Crimson Text';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/crimsontext-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Crimson Text';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/crimsontext-400-latinext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Crimson Text — 400 italic */
@font-face {
  font-family: 'Crimson Text';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/crimsontext-400italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Crimson Text';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/crimsontext-400italic-latinext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Crimson Text — 600 */
@font-face {
  font-family: 'Crimson Text';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/crimsontext-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Crimson Text';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/crimsontext-600-latinext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Josefin Sans — variable (300–700) */
@font-face {
  font-family: 'Josefin Sans';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('fonts/josefinsans-var-latin.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Josefin Sans';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('fonts/josefinsans-var-latinext.woff2') format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Playfair Display — variable (400–900) */
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('fonts/playfairdisplay-var-latin.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('fonts/playfairdisplay-var-latinext.woff2') format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Playfair Display — variable italic (400–900) */
@font-face {
  font-family: 'Playfair Display';
  font-style: italic;
  font-weight: 400 900;
  font-display: swap;
  src: url('fonts/playfairdisplay-italic-var-latin.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: italic;
  font-weight: 400 900;
  font-display: swap;
  src: url('fonts/playfairdisplay-italic-var-latinext.woff2') format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --black: #0A0806;
  --charcoal: #1A1410;
  --ember: #C4892A;
  --gold: #D4A020;
  --amber: #E07B30;
  --cream: #EAE4D5;
  --smoke: #7B8B8E;
  --rust: #7A3B2E;
  --brown: #3D2810;
}

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--cream);
  font-family: 'Crimson Text', Georgia, serif;
  font-size: 18px;
  line-height: 1.7;
  overflow-x: hidden;
}

/* ─── ORNAMENT ─── */
.ornament {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
  margin: 0.5rem 0;
}
.ornament::before, .ornament::after {
  content: '';
  flex: 1 1 60px;
  max-width: 80px;
  height: 1px;
  background: linear-gradient(to var(--dir, right), transparent, var(--ember));
}
.ornament::after { --dir: left; }
.ornament .flame { color: var(--ember); font-size: 1rem; }

/* ─── HERO ─── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px 100px;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 20% 70%, rgba(200,100,20,0.22) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 80% 80%, rgba(120,50,15,0.18) 0%, transparent 60%),
    radial-gradient(ellipse 80% 40% at 50% 100%, rgba(180,80,10,0.14) 0%, transparent 60%),
    linear-gradient(to bottom, #0A0806 0%, #140e07 50%, #0A0806 100%);
  z-index: 0;
}

/* Animated ember particles */
.embers {
  position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden;
}
.ember-dot {
  position: absolute;
  left: var(--x, 50%);
  bottom: var(--y, 10%);
  width: var(--size, 2px);
  height: var(--size, 2px);
  opacity: var(--op, 0.6);
  background: var(--amber);
  border-radius: 50%;
  animation: rise linear infinite;
  animation-duration: var(--dur, 8s);
  animation-delay: var(--delay, 0s);
}
@keyframes rise {
  0%   { transform: translateY(0)    translateX(0);    opacity: 0; }
  10%  { opacity: 0.8; }
  90%  { opacity: 0.3; }
  100% { transform: translateY(-600px) translateX(30px); opacity: 0; }
}

.hero-border {
  position: absolute; inset: 20px;
  border: 1px solid rgba(196,137,42,0.25);
  pointer-events: none; z-index: 2;
}
.hero-border::before, .hero-border::after {
  content: '';
  position: absolute;
  width: 20px; height: 20px;
  border-color: var(--ember);
  border-style: solid;
}
.hero-border::before { top: -1px;  left: -1px;  border-width: 2px 0 0 2px; }
.hero-border::after  { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; }

.hero-content { position: relative; z-index: 3; max-width: 720px; }

.author-label {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.35em;
  color: var(--ember);
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 900;
  line-height: 0.9;
  color: var(--cream);
  text-shadow: 0 2px 40px rgba(200,100,20,0.3);
  margin-bottom: 0.15em;
}
.hero h1 .small {
  font-size: 0.42em; font-weight: 400; display: block; letter-spacing: 0.05em;
}
.hero h1 .fogo { color: var(--gold); font-style: italic; }

.hero-sub {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.4em;
  color: var(--ember);
  text-transform: uppercase;
  margin: 1rem 0 1.6rem;
}

.hero-tagline {
  font-size: 1.25rem;
  font-style: italic;
  color: rgba(234,228,213,0.75);
  max-width: 440px;
  margin: 0 auto 2.5rem;
  line-height: 1.5;
}

/* ─── BUTTON ─── */
.btn-fire {
  display: inline-block;
  padding: 16px 44px;
  background: linear-gradient(135deg, var(--ember) 0%, var(--gold) 100%);
  color: var(--black);
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-fire:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(196,137,42,0.45);
}
.btn-fire::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--gold) 0%, var(--amber) 100%);
  opacity: 0; transition: opacity 0.3s;
}
.btn-fire:hover::before { opacity: 1; }
.btn-fire span { position: relative; z-index: 1; }

.hero-price {
  margin-top: 1.2rem;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: rgba(234,228,213,0.45);
}

/* ─── SECTIONS ─── */
section { padding: 80px 24px; }
.container { max-width: 900px; margin: 0 auto; }
.container-wide { max-width: 1100px; margin: 0 auto; }

.section-label {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.4em;
  color: var(--ember);
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 0.5rem;
}
h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  text-align: center;
  color: var(--cream);
  line-height: 1.15;
  margin-bottom: 1.5rem;
}
h2 em { color: var(--gold); font-style: italic; }

.lead {
  font-size: 1.15rem;
  line-height: 1.8;
  color: rgba(234,228,213,0.82);
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

/* ─── CONCEPT ─── */
.concept { background: var(--charcoal); }
.concept-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 3rem;
  align-items: start;
}
@media (max-width: 700px) { .concept-grid { grid-template-columns: 1fr; } }
.concept-text p {
  color: rgba(234,228,213,0.8);
  margin-bottom: 1.2rem;
  font-size: 1.05rem;
}
.concept-text strong { color: var(--gold); font-weight: 600; }

.pullquote {
  border-left: 3px solid var(--ember);
  padding: 1.2rem 1.5rem;
  background: rgba(196,137,42,0.07);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--cream);
  line-height: 1.6;
  margin: 2rem 0;
}

/* ─── WHAT YOU GET ─── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  margin-top: 3rem;
}
.product-card {
  background: var(--charcoal);
  border: 1px solid rgba(196,137,42,0.2);
  padding: 2rem 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s;
}
.product-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--ember), transparent);
  transform: scaleX(0);
  transition: transform 0.4s;
}
.product-card:hover { border-color: rgba(196,137,42,0.5); transform: translateY(-4px); }
.product-card:hover::before { transform: scaleX(1); }
.product-icon { font-size: 2.2rem; margin-bottom: 1rem; display: block; }
.product-card h3 {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ember);
  margin-bottom: 0.5rem;
}
.product-card p { font-size: 0.92rem; color: rgba(234,228,213,0.65); }

/* ─── MODULES ─── */
.modules { background: var(--charcoal); }
.module-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 24px;
  padding: 2rem 0;
  border-bottom: 1px solid rgba(196,137,42,0.12);
  align-items: start;
}
.module-item:last-child { border-bottom: none; }
.module-num {
  font-family: 'Playfair Display', serif;
  font-size: 3.5rem;
  font-weight: 900;
  color: rgba(196,137,42,0.15);
  line-height: 1;
  text-align: right;
  padding-right: 16px;
  border-right: 1px solid rgba(196,137,42,0.2);
}
.module-body h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  color: var(--gold);
  margin-bottom: 0.3rem;
}
.module-body .module-tag {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--smoke);
  margin-bottom: 0.7rem;
}
.module-body p { font-size: 1rem; color: rgba(234,228,213,0.75); }

/* ─── AUTHOR ─── */
.author-section { background: var(--black); }
.author-inner {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 56px;
  align-items: center;
  margin-top: 3rem;
}
@media (max-width: 700px) { .author-inner { grid-template-columns: 1fr; } }
.author-photo-wrap {
  position: relative;
}
.author-photo-wrap::before {
  content: '';
  position: absolute;
  inset: -8px;
  border: 1px solid rgba(196,137,42,0.3);
}
.author-photo-wrap::after {
  content: '';
  position: absolute;
  bottom: -16px; right: -16px;
  width: 60%; height: 60%;
  background: rgba(196,137,42,0.06);
  z-index: -1;
}
.author-photo-wrap img {
  width: 100%;
  height: auto;
  display: block;
  filter: sepia(20%) contrast(1.05);
}
.author-bio h2 { text-align: left; margin-bottom: 0.5rem; }
.author-bio .author-title {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.35em;
  color: var(--ember);
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.author-bio p {
  color: rgba(234,228,213,0.78);
  margin-bottom: 1rem;
  font-size: 1.05rem;
}
.author-bio strong { color: var(--gold); }

/* ─── CTA ─── */
.cta-section {
  background: var(--charcoal);
  text-align: center;
  padding: 80px 24px 100px;
}
.price-display { margin: 2rem 0 1rem; }
.price-display .from {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  color: var(--smoke);
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.3rem;
}
.price-display .amount {
  font-family: 'Playfair Display', serif;
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
}
.price-display .installment {
  font-size: 0.9rem;
  color: var(--smoke);
  margin-top: 0.3rem;
  font-style: italic;
}
.guarantee {
  margin-top: 1.5rem;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  color: rgba(234,228,213,0.4);
  text-transform: uppercase;
}

/* ─── FOOTER ─── */
footer {
  background: var(--black);
  border-top: 1px solid rgba(196,137,42,0.12);
  padding: 32px 24px;
  text-align: center;
}
footer p {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  color: rgba(234,228,213,0.25);
  text-transform: uppercase;
}
footer a { color: var(--ember); text-decoration: none; }

/* ─── DIVIDER ─── */
.divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(196,137,42,0.3), transparent);
  margin: 0;
}

/* ─── ANIMATE ON SCROLL ─── */
.fade-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-up.visible { opacity: 1; transform: none; }
.fade-up:nth-child(2)  { transition-delay: 0.1s; }
.fade-up:nth-child(3)  { transition-delay: 0.2s; }
.fade-up:nth-child(4)  { transition-delay: 0.3s; }
.fade-up:nth-child(5)  { transition-delay: 0.4s; }

/* ─── REDUCED MOTION ─── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fade-up { transition: none; opacity: 1; transform: none; }
  .ember-dot { animation: none; display: none; }
}

/* ─── UTILITIES ─── */
.u-mt-half  { margin-top: 0.5rem; }
.u-mt-2     { margin-top: 2rem; }
.u-mt-2-5   { margin-top: 2.5rem; }
.u-mt-3     { margin-top: 3rem; }
.u-mb-1     { margin-bottom: 1rem; }
.u-mb-1-5   { margin-bottom: 1.5rem; }
.ornament--footer { opacity: 0.3; }

/* ─── 404 PAGE ─── */
.error-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px;
}
.error-code {
  font-family: 'Playfair Display', serif;
  font-size: clamp(5rem, 12vw, 9rem);
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
}
.error-message {
  font-size: 1.2rem;
  color: rgba(234,228,213,0.7);
  margin: 1.5rem 0 2.5rem;
}

/* ─── SKIP LINK ─── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  background: var(--ember);
  color: var(--black);
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 12px 24px;
  z-index: 9999;
  border-radius: 2px;
}
.skip-link:focus {
  top: 16px;
}
