/* =========================================================
   THE ENERGY OF PROSPERITY - STYLESHEET
   Author: Claudia B Moura
   ========================================================= */

:root {
  --wine: #650b35;
  --wine2: #8b174d;
  --dark: #321020;
  --rose: #c77c91;
  --ivory: #fbf7f4;
  --blush: #f3e5ea;
  --gold: #c6a36b;
  --gold-light: #dfc18f;
  --ink: #33232b;
  --muted: #786a70;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.wrap {
  width: min(1140px, calc(100% - 48px));
  margin: 0 auto;
}

.eyebrow {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 14px;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
}

h1 {
  font-size: clamp(42px, 5.2vw, 68px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 24px;
}

h2 {
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin: 12px 0 24px;
}

p {
  line-height: 1.8;
  font-size: 16px;
  color: var(--muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 28px;
  background: var(--gold);
  border: 1px solid var(--gold);
  color: #2d1722;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(198, 163, 107, 0.35);
}

.btn.ghost {
  background: transparent;
  color: white;
  border-color: rgba(198, 163, 107, 0.6);
}

.btn.ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--gold-light);
}

.arrow {
  font-size: 17px;
  line-height: 1;
  transition: transform 0.25s ease;
}

.btn:hover .arrow {
  transform: translate(2px, -2px);
}

/* Header & Nav */
.top {
  position: absolute;
  z-index: 10;
  top: 0;
  left: 0;
  width: 100%;
  padding: 22px 0;
  color: white;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font: 16px var(--serif);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.brand-logo {
  height: 48px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

.brand-name {
  font-family: var(--serif);
  font-size: 16px;
  letter-spacing: 0.14em;
  color: #ffffff;
}

.nav small {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
}

/* Hero Section */
.hero {
  min-height: 760px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  color: white;
  background: radial-gradient(ellipse at 75% 40%, rgba(192, 43, 112, 0.3) 0%, transparent 45%),
              linear-gradient(115deg, #280a1e 0%, #650b35 52%, #89134b 100%);
  padding: 130px 0 85px;
}

.hero:before {
  content: "";
  position: absolute;
  inset: -20%;
  opacity: 0.16;
  background: repeating-linear-gradient(135deg, transparent 0 55px, rgba(255, 255, 255, 0.1) 56px, transparent 58px);
  filter: blur(12px);
  transform: rotate(-7deg);
  pointer-events: none;
}

.hero:after {
  content: "";
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(198, 163, 107, 0.28);
  pointer-events: none;
  border-radius: 2px;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 7%;
  align-items: center;
}

.hero-copy {
  max-width: 620px;
}

.hero h1 em {
  font-style: normal;
  color: #e2c18b;
}

.lead {
  max-width: 560px;
  color: rgba(255, 255, 255, 0.85);
  font: 18px/1.8 var(--serif);
  margin: 0 0 32px;
}

.actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

.micro {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.1em;
  margin-top: 18px;
}

.book {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  min-height: 480px;
}

.book:before {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(223, 126, 170, 0.28) 0%, rgba(101, 11, 53, 0) 70%);
  filter: blur(55px);
  pointer-events: none;
}

.book img {
  position: relative;
  width: min(100%, 380px);
  height: auto;
  box-shadow: 22px 32px 55px rgba(19, 0, 10, 0.65);
  transform: rotate(2deg);
  border: 1px solid rgba(216, 184, 126, 0.5);
  border-radius: 3px;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.book:hover img {
  transform: rotate(0deg) scale(1.02);
  box-shadow: 25px 38px 65px rgba(19, 0, 10, 0.75);
}

.book-label {
  position: absolute;
  bottom: 0;
  right: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* Inside Section */
section.content {
  padding: 110px 0;
}

.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 8%;
  align-items: stretch;
}

.quote {
  background: var(--wine);
  color: white;
  min-height: 360px;
  padding: 50px 42px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  border-radius: 4px;
  box-shadow: 0 15px 35px rgba(50, 16, 32, 0.12);
}

.quote:before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(198, 163, 107, 0.45);
  border-radius: 2px;
  pointer-events: none;
}

.quote blockquote {
  position: relative;
  text-align: center;
  font: clamp(26px, 2.8vw, 36px)/1.35 var(--serif);
  margin: 0;
}

.quote:after {
  content: "";
  position: relative;
  width: 52px;
  height: 1px;
  background: var(--gold);
  margin: 28px auto 0;
}

.copy .eyebrow {
  color: var(--wine2);
}

.copy h2 {
  color: var(--wine);
}

.copy p {
  font-size: 16px;
  line-height: 1.85;
  color: var(--muted);
  margin-bottom: 18px;
}

.copy strong {
  color: var(--wine);
  font-weight: 600;
}

.points {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 28px;
  margin-top: 32px;
}

.point {
  border-top: 1.5px solid rgba(101, 11, 53, 0.2);
  padding-top: 16px;
  color: var(--wine);
  font: 17px/1.5 var(--serif);
  transition: border-color 0.3s ease;
}

.point:hover {
  border-color: var(--gold);
}

/* Method Section */
.method {
  background: linear-gradient(135deg, #f3e4ea 0%, #fbf7f4 55%, #f4e8ec 100%);
  position: relative;
}

.method-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 8%;
  align-items: start;
}

.method-copy h2 {
  color: var(--wine);
}

.method-copy p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}

.note {
  margin-top: 28px;
  padding: 22px 24px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  border-left: 3px solid var(--gold);
  border-radius: 0 4px 4px 0;
  box-shadow: 0 6px 18px rgba(101, 11, 53, 0.04);
  font: 17px/1.65 var(--serif);
  color: var(--wine);
}

.steps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.step {
  padding: 20px 22px;
  min-height: 116px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(101, 11, 53, 0.1);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 12px rgba(101, 11, 53, 0.02);
}

.step:hover {
  transform: translateY(-3px);
  background: #ffffff;
  border-color: rgba(198, 163, 107, 0.6);
  box-shadow: 0 10px 24px rgba(101, 11, 53, 0.08);
}

.step small {
  color: var(--gold);
  font-size: 10px;
  letter-spacing: 0.22em;
  font-weight: 700;
  text-transform: uppercase;
}

.step h3 {
  color: var(--wine);
  font-size: 21px;
  margin: 6px 0 5px;
}

.step p {
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0;
}

.days {
  margin-top: 16px;
  padding: 24px 28px;
  background: linear-gradient(135deg, var(--wine), var(--wine2));
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-radius: 4px;
  box-shadow: 0 12px 28px rgba(101, 11, 53, 0.2);
  border: 1px solid rgba(198, 163, 107, 0.3);
}

.days strong {
  font: 23px var(--serif);
  font-weight: 400;
  letter-spacing: -0.01em;
}

.days span {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #e6c99e;
  font-weight: 600;
}

/* Author Section with Real Image */
.author {
  background: radial-gradient(ellipse at 80% 25%, rgba(165, 33, 91, 0.35) 0%, transparent 45%),
              var(--dark);
  color: white;
  position: relative;
  padding: 120px 0;
}

.author-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 8%;
  align-items: center;
}

.author-art {
  width: 260px;
  max-width: 100%;
  margin: 0 auto;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.author-photo-frame {
  position: relative;
  width: 100%;
  height: 340px;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(198, 163, 107, 0.55);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45);
  background: rgba(255, 255, 255, 0.03);
}

.author-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.5s ease;
}

.author-art:hover .author-photo {
  transform: scale(1.03);
}

.author-badge {
  display: block;
  text-align: center;
  margin-top: 14px;
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--gold);
  font-weight: 700;
  text-transform: uppercase;
}

.author h2 {
  margin: 14px 0 22px;
}

.author p {
  font-size: 16px;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 18px;
}

.final {
  margin-top: 36px;
  padding-top: 30px;
  border-top: 1px solid rgba(198, 163, 107, 0.35);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.final p {
  font: 21px/1.4 var(--serif);
  max-width: 440px;
  margin: 0;
  color: #f5e7e9;
}

footer {
  background: #1e0916;
  color: rgba(255, 255, 255, 0.6);
  padding: 30px 0;
  border-top: 1px solid rgba(198, 163, 107, 0.15);
}

.foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.foot b {
  font: 16px var(--serif);
  color: var(--gold);
  letter-spacing: 0.15em;
}

/* Animações Scroll Reveal (Inspiradas no Modelo) */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }
.delay-6 { transition-delay: 0.6s; }

.book-animate {
  opacity: 0;
  transform: translateY(35px) scale(0.96) rotate(0deg);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.book-animate.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1) rotate(2deg);
}

/* Botão Flutuante Voltar ao Topo */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(101, 11, 53, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--gold);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 10px 25px rgba(50, 16, 32, 0.35);
  text-decoration: none;
}

.back-to-top.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--gold);
  color: var(--wine);
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(198, 163, 107, 0.45);
}

/* =========================================================
   RESPONSIVIDADE (MOBILE & TABLETS)
   Garante alinhamento 100% empilhado e centralizado
   ========================================================= */
@media (max-width: 960px) {
  .wrap {
    width: calc(100% - 36px);
  }
  
  /* Top Nav Centralizado no Mobile */
  .nav {
    justify-content: center;
  }
  .nav small {
    display: none;
  }
  .brand-logo {
    height: 40px;
  }
  .brand-name {
    font-size: 14px;
  }

  /* Hero Section: Fluxo 100% vertical e centralizado */
  .hero {
    min-height: auto;
    padding: 110px 0 65px;
  }
  
  .hero-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 36px;
    width: 100%;
  }
  
  .hero-copy {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .hero h1 {
    font-size: clamp(32px, 7.8vw, 48px);
    line-height: 1.15;
    margin: 12px 0 20px;
    text-align: center;
  }
  
  .lead {
    font-size: 16px;
    line-height: 1.75;
    margin: 0 auto 26px;
    text-align: center;
    max-width: 520px;
  }
  
  .actions {
    justify-content: center;
    align-items: center;
    width: 100%;
    gap: 12px;
  }
  
  .actions .btn {
    width: 100%;
    max-width: 320px;
  }
  
  .micro {
    text-align: center;
    margin-top: 14px;
  }
  
  /* Ebook Mockup perfeitamente centralizado */
  .book {
    width: 100%;
    min-height: auto;
    margin: 15px auto 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
  }
  
  .book:before {
    width: 260px;
    height: 260px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
  }
  
  .book img {
    width: min(78%, 280px);
    margin: 0 auto;
    display: block;
    transform: none !important;
    box-shadow: 0 18px 40px rgba(19, 0, 10, 0.65);
  }
  
  .book-animate.is-visible {
    transform: none !important;
  }
  
  .book-label {
    position: static;
    margin-top: 14px;
    text-align: center;
    display: block;
  }

  /* Outras seções empilhadas */
  section.content {
    padding: 75px 0;
  }
  
  .split, .method-grid, .author-grid {
    display: flex;
    flex-direction: column;
    gap: 36px;
    width: 100%;
  }
  
  .quote {
    min-height: auto;
    padding: 38px 26px;
    order: 2;
  }
  
  .copy {
    order: 1;
    text-align: left;
  }
  
  /* Seção Autora */
  .author {
    text-align: center;
    padding: 80px 0;
  }
  
  .author-art {
    margin: 0 auto;
    width: 230px;
  }
  
  .author-photo-frame {
    height: 300px;
  }
  
  .author p {
    margin-left: auto;
    margin-right: auto;
  }
  
  .final {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }
  
  .final .btn {
    width: 100%;
    max-width: 320px;
  }
  
  .foot {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
  
  .back-to-top {
    bottom: 22px;
    right: 22px;
    width: 44px;
    height: 44px;
  }
}

@media (max-width: 580px) {
  .wrap {
    width: calc(100% - 28px);
  }
  .steps, .points {
    grid-template-columns: 1fr;
  }
  .days {
    flex-direction: column;
    text-align: center;
    gap: 12px;
    padding: 22px 20px;
  }
  .book img {
    width: min(85%, 260px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *:before, *:after {
    transition: none !important;
    animation: none !important;
  }
  .animate-on-scroll, .book-animate {
    opacity: 1 !important;
    transform: none !important;
  }
}