/* sections.css */

/* General Section Styles */
section {
  padding-top: var(--section-py);
  padding-bottom: var(--section-py);
  position: relative;
}

.container {
  max-width: var(--content-max);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 640px) {
  .container {
    padding-left: 20px;
    padding-right: 20px;
  }
}

.section-overline {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: var(--fs-small);
  color: var(--gold-light);
  font-weight: 600;
  margin-bottom: 12px;
  display: block;
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  color: var(--text);
  line-height: 1.25;
  margin-bottom: 24px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.section-subtitle {
  font-size: var(--fs-body);
  color: var(--text-muted);
  max-width: 640px;
  line-height: 1.7;
}

.section-body {
  color: var(--text-muted);
  line-height: 1.7;
  font-size: var(--fs-body);
  margin-bottom: 16px;
}

.section-cta {
  text-align: center;
  margin-top: 48px;
}

/* ===========================
   HERO (.section-hero)
   =========================== */
.section-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 80px;
  padding-bottom: 64px;
  background: radial-gradient(ellipse at 70% 30%, rgba(74, 18, 32, 0.4) 0%, rgba(26, 10, 14, 0) 70%);
}

.hero__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 32px;
  max-width: 1240px;
  width: 100%;
}

.hero__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
}

.hero__badge {
  margin-bottom: 20px;
}

.hero__title {
  font-size: var(--fs-hero);
  width: 100%;
  margin: 0 0 20px 0;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  line-height: 1.2;
  font-weight: 700;
  text-align: center;
}

.hero__subtitle {
  max-width: 600px;
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.7;
  text-align: center;
  margin: 0 auto;
}

.hero__footer-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
}

.hero__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
  width: 100%;
}

.hero__seals {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px 24px;
  margin-top: 24px;
  width: 100%;
}

/* DESKTOP (≥ 1024px) */
@media (min-width: 1024px) {
  .hero__content {
    display: grid;
    grid-template-columns: 1.35fr 0.65fr;
    grid-template-areas:
      "header mockup"
      "footer mockup";
    gap: 20px 48px;
    text-align: left;
    align-items: center;
  }

  .hero__header {
    grid-area: header;
    align-items: flex-start;
    text-align: left;
  }

  .hero__title {
    text-align: left;
    font-size: clamp(2.1rem, 3.2vw, 3.25rem);
  }

  .hero__subtitle {
    text-align: left;
    margin: 0;
    max-width: 640px;
  }

  .hero__mockup-wrapper {
    grid-area: mockup;
  }

  .hero__footer-block {
    grid-area: footer;
    align-items: flex-start;
    text-align: left;
  }

  .hero__actions {
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 16px;
    margin-top: 24px;
  }

  .hero__actions .btn-primary {
    padding: 16px 28px;
    font-size: 0.88rem;
    letter-spacing: 0.03em;
    white-space: nowrap;
    height: 52px;
    box-sizing: border-box;
  }

  .hero__actions .btn-secondary {
    padding: 16px 24px;
    font-size: 0.88rem;
    white-space: nowrap;
    height: 52px;
    box-sizing: border-box;
  }

  .hero__seals {
    justify-content: flex-start;
  }
}

.hero__mockup-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Glow radial atrás do mockup */
.hero__mockup-glow {
  position: absolute;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(217, 164, 91, 0.22) 0%, rgba(142, 31, 51, 0.25) 40%, transparent 75%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
}

/* ===========================
   CSS 3D BOOK MOCKUP (.book-3d)
   =========================== */
.hero__mockup {
  perspective: 1200px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 1;
}

.book-3d {
  width: 270px;
  height: 390px;
  transform-style: preserve-3d;
  transform: rotateY(-22deg) rotateX(6deg);
  transition: transform 0.6s var(--ease-out);
  position: relative;
  animation: float 6s ease-in-out infinite;
}

.book-3d:hover {
  transform: rotateY(-12deg) rotateX(2deg);
}

.book-3d__cover {
  position: absolute;
  width: 100%;
  height: 100%;
  background: url('../base/capa-real.jpg') center/cover no-repeat;
  border-radius: 0 8px 8px 0;
  box-shadow:
    inset 3px 0 10px rgba(0,0,0,0.6),
    10px 14px 45px rgba(10,3,6,0.95),
    0 0 50px rgba(217, 164, 91, 0.15);
  overflow: hidden;
  border: 1px solid rgba(217, 164, 91, 0.3);
  z-index: 2;
}

.book-3d__cover::after {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 150%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0.08) 45%,
    rgba(255,255,255,0.18) 50%,
    rgba(255,255,255,0.08) 55%,
    rgba(255,255,255,0) 100%
  );
  transform: skewX(-25deg);
  animation: shimmer 5s ease-in-out infinite;
}

.book-3d__spine {
  position: absolute;
  left: 0;
  width: 42px;
  height: 100%;
  background: linear-gradient(to right, #120508, #261016);
  transform-origin: left center;
  transform: rotateY(-90deg);
  border-radius: 8px 0 0 8px;
  border-left: 1px solid rgba(217, 164, 91, 0.2);
  z-index: 1;
}

.book-3d__pages {
  position: absolute;
  right: 0;
  width: 38px;
  height: 96%;
  top: 2%;
  background: #d4c5a9;
  transform-origin: right center;
  transform: rotateY(90deg);
  box-shadow:
    inset 0 0 5px rgba(0,0,0,0.3),
    inset 0 0 10px rgba(0,0,0,0.15);
  background-image: repeating-linear-gradient(
    to right,
    #d4c5a9 0px,
    #d4c5a9 2px,
    #c3b498 3px
  );
  z-index: 0;
}

.book-3d__back {
  position: absolute;
  width: 100%;
  height: 100%;
  background: #1A0A0E;
  transform: translateZ(-42px);
  border-radius: 0 8px 8px 0;
}

/* ===========================
   ABOUT (.section-about)
   =========================== */
.section-about {
  background: radial-gradient(circle at 30% 50%, rgba(74, 18, 32, 0.3) 0%, transparent 70%);
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}

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

.highlight-card {
  background: var(--bg-surface);
  padding: 40px;
  border-radius: var(--radius-card);
  border-left: 4px solid var(--gold);
  border-top: var(--border-gold);
  border-right: var(--border-gold);
  border-bottom: var(--border-gold);
  box-shadow: var(--shadow-card), inset 0 0 80px rgba(217, 164, 91, 0.03);
  position: relative;
}

.highlight-card .icon {
  color: var(--gold-light);
  opacity: 0.3;
  margin-bottom: 16px;
}

.highlight-card p {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2vw, 1.45rem);
  color: var(--gold-light);
  line-height: 1.5;
  font-style: italic;
}

/* ===========================
   FOR WHOM (.section-for-whom)
   =========================== */
.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 48px;
}

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

@media (min-width: 1024px) {
  .cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .cards-grid .card:nth-child(4),
  .cards-grid .card:nth-child(5) {
    grid-column: span 1;
  }
}

/* ===========================
   CONTENT / CHAPTERS (.section-content)
   =========================== */
.chapters-list {
  max-width: 840px;
  margin: 48px auto 0;
  display: flex;
  flex-direction: column;
}

/* ===========================
   PREVIEW (.section-preview)
   Rendered HTML/CSS book leaves
   =========================== */
.section-preview {
  background: radial-gradient(ellipse at 50% 50%, rgba(74, 18, 32, 0.35) 0%, transparent 80%);
}

.carousel-wrapper {
  overflow: hidden;
  position: relative;
  margin-top: 48px;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
  padding: 10px;
}

.carousel {
  display: flex;
  transition: transform 0.5s var(--ease-out);
}

.carousel__slide {
  min-width: 100%;
  padding: 0 8px;
  box-sizing: border-box;
}

/* Estilo das folhas do livro */
.page-preview-sheet {
  background: #2A1218;
  border: 1px solid rgba(217, 164, 91, 0.3);
  border-radius: 6px;
  padding: 44px 36px;
  box-shadow:
    0 15px 45px rgba(10, 3, 6, 0.9),
    inset 0 0 60px rgba(0, 0, 0, 0.4);
  position: relative;
  min-height: 480px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-preview-sheet__header {
  text-align: center;
  margin-bottom: 24px;
}

.page-preview-sheet__title {
  font-family: var(--font-display);
  color: var(--gold-light);
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.page-preview-sheet__fissure {
  width: 40px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 0 auto;
}

.page-preview-sheet__body {
  font-family: var(--font-display);
  color: var(--text);
  font-size: 0.98rem;
  line-height: 1.75;
  flex: 1;
}

.page-preview-sheet__body p {
  margin-bottom: 14px;
}

.page-preview-sheet__body em {
  font-style: italic;
  color: var(--gold-light);
}

.page-preview-sheet__body strong {
  color: var(--gold-light);
  font-weight: 600;
}

.page-preview-sheet__footer {
  text-align: right;
  font-family: var(--font-display);
  font-style: italic;
  color: var(--gold);
  font-size: 0.9rem;
  margin-top: 24px;
  border-top: 1px solid rgba(217, 164, 91, 0.15);
  padding-top: 12px;
}

.carousel__caption {
  text-align: center;
  color: var(--text-muted);
  font-size: var(--fs-small);
  font-style: italic;
  margin-top: 20px;
}

.carousel__prev,
.carousel__next {
  position: absolute;
  top: 45%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: var(--border-gold-strong);
  background: rgba(38, 16, 22, 0.95);
  backdrop-filter: blur(8px);
  color: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  cursor: pointer;
  transition: all var(--duration) var(--ease-out);
}

.carousel__prev:hover,
.carousel__next:hover {
  background: var(--wine);
  box-shadow: var(--shadow-glow-gold);
}

.carousel__prev { left: -12px; }
.carousel__next { right: -12px; }

@media (max-width: 640px) {
  .carousel__prev { left: 0; }
  .carousel__next { right: 0; }
  .page-preview-sheet { padding: 32px 24px; }
}

.carousel__thumbnails {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

.carousel__thumb {
  width: 64px;
  height: 84px;
  border-radius: 4px;
  background: #2A1218;
  border: 1px solid rgba(217, 164, 91, 0.2);
  cursor: pointer;
  transition: border-color var(--duration) var(--ease-out), opacity var(--duration);
  opacity: 0.5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6px;
  text-align: center;
}

.carousel__thumb span {
  font-family: var(--font-display);
  font-size: 0.65rem;
  color: var(--gold-light);
  line-height: 1.2;
}

.carousel__thumb.is-active {
  border-color: var(--gold);
  opacity: 1;
  box-shadow: var(--shadow-glow-gold);
}

.carousel__thumb:hover {
  opacity: 0.85;
}

/* ===========================
   QUOTES / TRECHOS (.section-quotes)
   =========================== */
.quotes-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 48px;
}

@media (min-width: 768px) {
  .quotes-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ===========================
   BENEFITS / TRANSFORMAÇÃO (.section-benefits)
   =========================== */
.benefits-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 40px;
  max-width: 840px;
  list-style: none;
}

.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg-surface);
  padding: 20px 24px;
  border-radius: var(--radius-sm);
  border: var(--border-gold);
}

.benefit-item svg {
  color: var(--gold-light);
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ===========================
   COST OF INACTION (.section-cost)
   =========================== */
.section-cost {
  text-align: center;
}

.section-cost .container {
  max-width: 780px;
}

.cost-card {
  background: linear-gradient(180deg, var(--bg-surface) 0%, var(--wine) 100%);
  border: 1px solid rgba(196, 40, 71, 0.4);
  border-radius: var(--radius-card);
  padding: 56px 40px;
  box-shadow: 0 10px 50px rgba(196, 40, 71, 0.15);
  text-align: center;
}

.cost-card .icon {
  color: var(--petal);
  margin-bottom: 24px;
}

.cost-card__text {
  font-size: 1.2rem;
  color: #F8D7DA;
  line-height: 1.7;
  max-width: 640px;
  margin: 0 auto;
}

/* ===========================
   AUTHOR (.section-author)
   "A HISTÓRIA DA RAQUEL"
   =========================== */
.author__grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
  text-align: center;
}

@media (min-width: 768px) {
  .author__grid {
    flex-direction: row;
    text-align: left;
    align-items: flex-start;
  }
}

.author__avatar-wrapper {
  position: relative;
  flex-shrink: 0;
}

.author__avatar {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--gold);
  box-shadow: var(--shadow-glow-gold);
}

.author__text {
  flex: 1;
}

.author__instagram {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  background: var(--bg-surface);
  border-radius: 100px;
  color: var(--gold-light);
  margin-top: 24px;
  font-size: 0.95rem;
  border: var(--border-gold);
  transition: all var(--duration) var(--ease-out);
  text-decoration: none;
}

.author__instagram:hover {
  background: var(--bg-elevated);
  border-color: var(--gold);
  box-shadow: var(--shadow-glow-gold);
}

/* ===========================
   TESTIMONIALS (.section-testimonials)
   =========================== */
.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 48px;
}

@media (min-width: 768px) {
  .testimonials-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ===========================
   OFFER (.section-offer)
   =========================== */
.section-offer {
  background: radial-gradient(ellipse at center, var(--wine) 0%, var(--bg-deep) 75%);
}

.offer-card {
  background: var(--bg-surface);
  border: var(--border-gold-strong);
  border-radius: var(--radius-card);
  padding: 56px 36px;
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  box-shadow: var(--shadow-card), var(--shadow-glow-red);
  animation: glow-pulse 4s ease-in-out infinite alternate;
}

.offer-card .section-overline {
  text-align: center;
}

.offer-card .section-title {
  text-align: center;
}

.offer-card__pricing {
  margin: 32px 0;
}

.offer-card__original-price {
  color: var(--text-muted);
  text-decoration: line-through;
  font-size: 1.25rem;
  display: block;
  margin-bottom: 8px;
}

.offer-card__label {
  font-size: 0.9rem;
  color: var(--gold-light);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

.offer-card__current-price {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 6vw, 4.5rem);
  color: var(--gold-light);
  line-height: 1;
  display: block;
  margin-bottom: 12px;
  font-weight: 700;
}

.offer-card__tagline {
  font-style: italic;
  color: var(--text-muted);
  font-size: 0.95rem;
  display: block;
}

/* Countdown */
.countdown {
  margin: 32px 0;
}

.countdown__label {
  display: block;
  color: var(--text-muted);
  font-size: var(--fs-small);
  margin-bottom: 16px;
}

.countdown__timer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
}

.countdown__block {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.countdown__digit {
  background: var(--bg-elevated);
  border: var(--border-gold);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-family: 'Courier New', monospace;
  font-size: 2rem;
  color: var(--text);
  min-width: 64px;
  text-align: center;
  font-weight: 700;
  transition: transform 0.15s;
}

.countdown__digit.is-flipping {
  transform: scale(1.05);
}

.countdown__unit {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.countdown__separator {
  font-size: 2rem;
  color: var(--gold-light);
  font-weight: 700;
  opacity: 0.5;
  padding-bottom: 20px;
}

.offer-card .btn-cta-final {
  width: 100%;
  margin: 24px 0;
}

.offer-card__seals {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-bottom: 24px;
}

/* ===========================
   GUARANTEE (.section-guarantee)
   =========================== */
.guarantee-card {
  background: var(--bg-surface);
  border: var(--border-gold);
  border-radius: var(--radius-card);
  padding: 48px 40px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  box-shadow: inset 0 0 60px rgba(217, 164, 91, 0.04);
}

.guarantee-card__icon {
  margin-bottom: 24px;
}

.guarantee-card__icon svg {
  color: var(--gold-light);
}

.guarantee-card__text {
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 1.05rem;
  max-width: 640px;
  margin: 0 auto;
}

/* ===========================
   FAQ (.section-faq)
   =========================== */
.section-faq .container {
  max-width: 800px;
}

/* ===========================
   FOOTER
   =========================== */
.site-footer {
  padding: 64px 24px 32px;
  text-align: center;
  border-top: 1px solid rgba(217, 164, 91, 0.15);
  background: var(--bg-deep);
}

.footer__brand {
  margin-bottom: 24px;
  display: flex;
  justify-content: center;
}

.footer__author-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.2rem;
  text-decoration: none;
  transition: color var(--duration);
}

.footer__author-link:hover {
  color: var(--gold-light);
}

.footer__author-img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--gold);
}

.footer__links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.footer__links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  text-decoration: none;
  transition: color var(--duration);
}

.footer__links a:hover {
  color: var(--gold-light);
}

.footer__dot {
  color: var(--text-muted);
  opacity: 0.4;
}

.footer__copyright {
  color: var(--text-muted);
  font-size: var(--fs-small);
  margin-bottom: 12px;
}

.footer__disclaimer {
  font-size: 0.78rem;
  color: rgba(179, 154, 151, 0.6);
  max-width: 640px;
  margin: 0 auto 20px auto;
  line-height: 1.5;
}

/* Support Help Block */
.footer__support-box {
  background: rgba(38, 16, 22, 0.8);
  border: 1px solid rgba(196, 40, 71, 0.25);
  border-radius: var(--radius-sm);
  padding: 16px 24px;
  max-width: 680px;
  margin: 0 auto;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.footer__support-box strong {
  color: var(--gold-light);
}

/* ===========================
   ICONS
   =========================== */
.icon {
  width: 24px;
  height: 24px;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

.icon--xs { width: 16px; height: 16px; }
.icon--sm { width: 20px; height: 20px; }
.icon--md { width: 32px; height: 32px; }
.icon--lg { width: 48px; height: 48px; }
.icon--xl { width: 64px; height: 64px; }

/* Responsive adjustments */
@media (max-width: 640px) {
  .hero__title {
    font-size: clamp(1.75rem, 6.5vw, 2.5rem);
  }

  .hero__actions {
    flex-direction: column;
    align-items: center;
  }

  .book-3d {
    width: 210px;
    height: 300px;
  }

  .offer-card {
    padding: 32px 20px;
  }

  .countdown__digit {
    padding: 8px 12px;
    font-size: 1.5rem;
    min-width: 48px;
  }
}
