/* Section-specific styles */

/* ========================================
   Hero
   ======================================== */
.section--hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-block: var(--space-2xl);
  background: linear-gradient(135deg, #1a2a1f 0%, #223a28 30%, #1a2a1f 60%, #152019 100%);
  background-size: 400% 400%;
  animation: gradient-shift 20s ease infinite;
}

.hero-bg {
  position: absolute;
  inset: -10%;
  background-image: url('https://images.unsplash.com/photo-1436491865332-7a61a109db05?w=1920&q=80');
  background-size: cover;
  background-position: center;
  opacity: 0.35;
  z-index: 0;
  animation: hero-pan 30s ease-in-out infinite alternate;
}

@keyframes hero-pan {
  0% { transform: scale(1.1) translate(0, 0); }
  25% { transform: scale(1.15) translate(-1%, -1%); }
  50% { transform: scale(1.1) translate(1%, 0.5%); }
  75% { transform: scale(1.12) translate(-0.5%, 1%); }
  100% { transform: scale(1.1) translate(0.5%, -0.5%); }
}

/* Hero particles */
.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-particles::before,
.hero-particles::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 184, 150, 0.4) 0%, transparent 70%);
}

.hero-particles::before {
  width: 4px;
  height: 4px;
  top: 20%;
  left: 15%;
  --tx: 60px;
  --ty: -100px;
  animation: particle-float 8s ease-in-out infinite;
  box-shadow:
    120px 40px 0 rgba(212, 184, 150, 0.25),
    300px 80px 0 rgba(212, 184, 150, 0.15),
    500px 20px 0 rgba(212, 184, 150, 0.2),
    80px 200px 0 rgba(212, 184, 150, 0.18),
    400px 300px 0 rgba(212, 184, 150, 0.12),
    650px 150px 0 rgba(212, 184, 150, 0.22),
    200px 350px 0 rgba(212, 184, 150, 0.1),
    550px 250px 0 rgba(212, 184, 150, 0.16);
}

.hero-particles::after {
  width: 3px;
  height: 3px;
  top: 60%;
  right: 20%;
  --tx: -40px;
  --ty: -80px;
  animation: particle-float 10s ease-in-out 2s infinite;
  box-shadow:
    -100px -60px 0 rgba(212, 184, 150, 0.2),
    -250px 30px 0 rgba(212, 184, 150, 0.15),
    -50px -150px 0 rgba(212, 184, 150, 0.25),
    -350px -20px 0 rgba(212, 184, 150, 0.12),
    -150px 100px 0 rgba(212, 184, 150, 0.18),
    -400px 80px 0 rgba(212, 184, 150, 0.1),
    50px -100px 0 rgba(212, 184, 150, 0.2),
    -200px -80px 0 rgba(212, 184, 150, 0.14);
}

.section--hero .container {
  position: relative;
  z-index: 1;
}

.hero-content { max-width: none; }

/* Hero grid layout */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
  align-items: center;
  max-width: none;
}

@media (min-width: 769px) {
  .hero-grid {
    grid-template-columns: 1.2fr 1fr;
  }
}

.hero-text { max-width: 600px; }

.hero-image {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-product-img {
  width: 100%;
  max-width: 450px;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.hero-content .tag { margin-block-end: var(--space-xl); }

.hero-content h1 {
  font-size: var(--text-2xl);
  font-weight: 900;
  color: var(--color-text-light);
  margin-block-end: var(--space-lg);
  animation: text-glow-pulse 4s ease-in-out infinite;
}

.hero-content .subtitle {
  font-size: var(--text-lg);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.85);
  margin-block-end: var(--space-2xl);
}

.hero-cta {
  margin-block-end: var(--space-md);
}

.hero-disclaimer {
  display: none;
}

/* ========================================
   Dark sections text colors
   ======================================== */
.section--dark .section__title { color: var(--color-text-light); }
.section--dark p { color: rgba(255, 255, 255, 0.8); }

/* ========================================
   Metrics section
   ======================================== */
.section--metrics { padding-block: var(--space-2xl); }

/* ========================================
   Instructor photo — depth treatment
   ======================================== */
.instructor-photo-wrapper {
  position: relative;
  overflow: visible;
  border-radius: var(--radius-md);
}

.instructor-photo-wrapper::before {
  content: '';
  position: absolute;
  inset: 10px;
  background: linear-gradient(135deg, rgba(212, 184, 150, 0.3), transparent);
  border-radius: var(--radius-md);
  transform: translate(12px, 12px);
  z-index: -1;
}

.instructor-photo-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(212, 184, 150, 0.25);
  border-radius: var(--radius-md);
  transform: translate(6px, 6px);
  z-index: -1;
}

.instructor-photo {
  border-radius: 16px;
  aspect-ratio: 3/4;
  object-fit: cover;
  width: 100%;
  box-shadow: 0 20px 50px rgba(0,0,0,0.4), 0 0 30px rgba(212, 184, 150, 0.1);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.instructor-photo:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 30px 60px rgba(0,0,0,0.5), 0 0 40px rgba(212, 184, 150, 0.15);
}

/* ========================================
   Error Cards Grid
   ======================================== */
.error-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  margin-block: var(--space-xl);
}

@media (min-width: 769px) {
  .error-grid { grid-template-columns: repeat(2, 1fr); }
}

.error-card {
  background: rgba(26, 42, 31, 0.03);
  border: 1px solid rgba(212, 184, 150, 0.2);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.error-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
  border-color: rgba(212, 184, 150, 0.4);
}

.error-card__number {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: var(--text-xl);
  color: var(--color-accent);
  opacity: 0.5;
}

.error-card__icon {
  color: #e74c3c;
  font-weight: 700;
  font-size: var(--text-lg);
}

/* ========================================
   Credibility Grid (photo + metrics)
   ======================================== */
.credibility-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

@media (min-width: 769px) {
  .credibility-grid { grid-template-columns: 1fr 1.5fr; }
}

/* ========================================
   Price Card
   ======================================== */
.price-card {
  text-align: center;
  padding: var(--space-2xl) var(--space-xl);
  margin-block: var(--space-2xl);
  border: 1px solid rgba(212, 184, 150, 0.3);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.03);
  box-shadow: 0 0 40px rgba(212, 184, 150, 0.08), inset 0 0 30px rgba(212, 184, 150, 0.03);
  position: relative;
  overflow: hidden;
}

.price-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(212, 184, 150, 0.05) 0%, transparent 50%, rgba(212, 184, 150, 0.05) 100%);
  pointer-events: none;
}

.price-card__prefix {
  display: block;
  font-size: var(--text-lg);
  font-weight: 300;
  color: var(--color-text-muted);
  margin-block-end: var(--space-xs);
}

.price-card__main {
  display: block;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 3rem;
  color: var(--color-accent);
  text-shadow: 0 0 30px rgba(212, 184, 150, 0.4), 0 0 60px rgba(212, 184, 150, 0.15);
  line-height: 1.1;
}

.price-card__installment {
  display: block;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-top: var(--space-md);
  opacity: 0.7;
}

@media (min-width: 769px) {
  .price-card__main { font-size: 4rem; }
}

/* ========================================
   Closing
   ========================================= */
.section--closing { text-align: center; }
.section--closing .section__title { max-width: 600px; margin-inline: auto; }
.section--closing .subtitle {
  color: var(--color-text-muted);
  max-width: 500px;
  margin-inline: auto;
  margin-block-end: var(--space-2xl);
}

/* ========================================
   Section Dividers — Wave SVGs
   ======================================== */
.section-divider {
  display: block;
  width: 100%;
  height: auto;
  line-height: 0;
  margin: 0;
  padding: 0;
  position: relative;
  z-index: 1;
}

.section-divider svg {
  display: block;
  width: 100%;
  height: auto;
}

/* Divider color variants — fill = color of the NEXT section, bg = color of the PREVIOUS section */
.section-divider--dark-to-tonal { background-color: var(--color-base); }
.section-divider--dark-to-tonal svg { fill: var(--color-bg-tonal); }

.section-divider--tonal-to-light { background-color: var(--color-bg-tonal); }
.section-divider--tonal-to-light svg { fill: var(--color-bg); }

.section-divider--light-to-dark { background-color: var(--color-bg); }
.section-divider--light-to-dark svg { fill: var(--color-base); }

.section-divider--dark-to-tonal-2 { background-color: var(--color-base); }
.section-divider--dark-to-tonal-2 svg { fill: var(--color-bg-tonal); }

.section-divider--tonal-to-light-2 { background-color: var(--color-bg-tonal); }
.section-divider--tonal-to-light-2 svg { fill: var(--color-bg); }

.section-divider--light-to-dark-2 { background-color: var(--color-bg); }
.section-divider--light-to-dark-2 svg { fill: var(--color-base); }

.section-divider--dark-to-tonal-3 { background-color: var(--color-base); }
.section-divider--dark-to-tonal-3 svg { fill: var(--color-bg-tonal); }

/* ========================================
   Decorative accent lines (draw on scroll)
   ======================================== */
.accent-line {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
  margin: var(--space-2xl) auto;
  max-width: 200px;
  opacity: 0;
  width: 0;
  transition: width 1s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.5s ease;
}

.accent-line.is-visible {
  width: 200px;
  opacity: 1;
}


/* ========================================
   Guarantee
   ======================================== */
.guarantee {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-block: var(--space-xl);
  padding: var(--space-lg);
  border: 1px solid rgba(212, 184, 150, 0.25);
  border-radius: var(--radius-md);
  background: rgba(212, 184, 150, 0.05);
  max-width: 500px;
  margin-inline: auto;
  text-align: left;
}

.guarantee__icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.guarantee__text {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}

/* ========================================
   Footer
   ======================================== */
.site-footer {
  background-color: var(--color-base);
  border-top: 1px solid rgba(212, 184, 150, 0.1);
  padding: var(--space-lg);
  text-align: center;
}

.site-footer p {
  font-size: var(--text-xs);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  margin: 0;
}


/* ========================================
   Home page product cards
   ======================================== */
.products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  margin-block: var(--space-2xl);
}

@media (min-width: 769px) {
  .products-grid { grid-template-columns: repeat(3, 1fr); }
}

.product-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(212, 184, 150, 0.2);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(212, 184, 150, 0.15);
  border-color: rgba(212, 184, 150, 0.4);
}

.product-card__tag {
  font-size: var(--text-xs);
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-accent);
}

.product-card__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-text-light);
}

.product-card__desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  flex-grow: 1;
}

.product-card__price {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: var(--text-lg);
  color: var(--color-accent);
}

.product-card__button {
  display: inline-block;
  padding: 14px 24px;
  border: 1px solid var(--color-accent);
  border-radius: var(--radius-md);
  color: var(--color-accent);
  font-size: var(--text-xs);
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.3s ease, color 0.3s ease;
}

.product-card__button:hover {
  background: var(--color-accent);
  color: var(--color-base);
}


/* ========================================
   FAQ — Accordion
   ======================================== */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  max-width: 100%;
}

.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.faq-item[open] {
  border-color: var(--color-accent);
  box-shadow: 0 4px 20px rgba(245, 197, 24, 0.08);
}

.faq-item__question {
  padding: var(--space-lg);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--text-base);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  transition: color 0.2s ease;
}

.faq-item__question::-webkit-details-marker {
  display: none;
}

.faq-item__question::after {
  content: '+';
  font-size: var(--text-xl);
  color: var(--color-accent);
  font-weight: 300;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.faq-item[open] .faq-item__question::after {
  transform: rotate(45deg);
}

.faq-item__answer {
  padding: 0 var(--space-lg) var(--space-lg);
  font-size: var(--text-sm);
  line-height: 1.6;
  color: var(--color-text);
  opacity: 0.8;
  margin: 0;
}


/* ========================================
   Hero Collage — Image Grid
   ======================================== */
.hero-collage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 10px;
  max-width: 420px;
  margin: 0 auto;
}

.collage-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-md);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.collage-img--1 {
  border-radius: var(--radius-md) 0 0 0;
  box-shadow: -4px -4px 20px rgba(245, 197, 24, 0.1);
}

.collage-img--2 {
  border-radius: 0 var(--radius-md) 0 0;
  box-shadow: 4px -4px 20px rgba(245, 197, 24, 0.1);
}

.collage-img--3 {
  border-radius: 0 0 0 var(--radius-md);
  box-shadow: -4px 4px 20px rgba(245, 197, 24, 0.1);
}

.collage-img--4 {
  border-radius: 0 0 var(--radius-md) 0;
  box-shadow: 4px 4px 20px rgba(245, 197, 24, 0.1);
}

.collage-img:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 30px rgba(245, 197, 24, 0.2);
  z-index: 1;
}


/* FAQ on dark background */
.section--dark .faq-item {
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.03);
}

.section--dark .faq-item[open] {
  border-color: rgba(245, 197, 24, 0.5);
}

.section--dark .faq-item__question {
  color: #ffffff;
}

.section--dark .faq-item__answer {
  color: rgba(255, 255, 255, 0.75);
}
