/* ==========================================================================
   Eu Melhor — camada "alma do livro" sobre o template
   Base cinematográfica escura + acento turquesa da capa + serifa acolhedora.
   ========================================================================== */
:root{
  --bg:        #121719;
  --bg-2:      #171d20;
  --panel:     #1b2327;
  --line:      rgba(255,255,255,.08);
  --ink:       #eef2f1;
  --muted:     #9fb0ad;
  --teal:      #7fd9c4;   /* acento principal (harmoniza com o mint do template) */
  --teal-2:    #57b9ad;
  --sky:       #cfe7ea;
  --gold:      #d8b977;
  --serif:     "Fraunces", Georgia, "Times New Roman", serif;
  --sans:      "Poppins", sans-serif;
}

/* ---- Base / cohesão escura ---- */
body, main{ background: var(--bg) !important; color: var(--ink); }
::selection{ background: var(--teal); color:#0d1416; }
.container{ position: relative; z-index: 2; }

/* O template deixa main como flex-row: sem largura total as seções encolhem até
   o conteúdo e grudam na esquerda, quebrando o margin:auto do .container. */
main > section, main > header, main > footer{ flex: 0 0 100%; width: 100%; }

/* Títulos de seção em serifa (alma) */
.section-title{
  font-family: var(--serif) !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
  color: var(--ink);
  line-height: 1.05 !important;
}
.section-title em{ font-style: italic; color: var(--teal); }

/* ============================ HERO ============================ */
.book-hero{
  position: relative; width: 100%; min-height: 100vh;
  display: flex; align-items: center;
  overflow: hidden; background: var(--bg);
  padding: 120px 0 90px;
}
.book-hero .hero-video{ position:absolute; inset:0; z-index:0; }
.book-hero .hero-video video{
  width:100%; height:100%; object-fit: cover; opacity:.16;
}
.book-hero .hero-veil{
  position:absolute; inset:0; z-index:1;
  background:
    radial-gradient(120% 80% at 78% 12%, rgba(127,217,196,.18), transparent 52%),
    linear-gradient(180deg, rgba(15,20,22,.78) 0%, rgba(15,20,22,.9) 58%, var(--bg) 100%);
}
.book-hero .container{ z-index:2; }
.hero-grid{
  display:grid; grid-template-columns: 1.1fr .9fr; align-items:center; gap: 4vw;
}
.hero-text .eyebrow{
  display:inline-block; font-family:var(--sans); font-weight:600;
  letter-spacing:.32em; text-transform:uppercase; font-size:12px; color:var(--teal);
  margin-bottom:22px;
}
.hero-title{
  font-family:var(--serif); font-weight:600; color:#fff;
  font-size: clamp(3.6rem, 8vw, 7rem); line-height:.9; margin:0 0 .25em;
  letter-spacing:-.01em;
}
.hero-title em{ display:block; font-style:italic; font-weight:400; color:var(--teal); }
.hero-sub{
  font-family:var(--serif); font-style:italic; color:var(--sky);
  font-size: clamp(1.1rem, 2.1vw, 1.6rem); margin:0 0 1rem; max-width:30ch;
}
.hero-tag{ color:var(--muted); font-size:1rem; margin-bottom:2.2rem; }
.hero-tag em{ color:var(--ink); font-style:italic; }
.hero-cta{ display:flex; flex-wrap:wrap; gap:16px; }
.btn-solid, .btn-line{
  display:inline-flex; align-items:center; gap:.6rem; font-family:var(--sans);
  font-weight:600; font-size:14px; letter-spacing:.02em; padding:16px 30px; border-radius:999px;
  transition:.3s cubic-bezier(.22,.61,.36,1); cursor:pointer;
}
.btn-solid{ background:var(--teal); color:#0d1416; }
.btn-solid:hover{ background:#fff; color:#0d1416; transform:translateY(-3px); text-decoration:none; }
.btn-line{ color:#fff; border:1.5px solid rgba(255,255,255,.28); }
.btn-line:hover{ border-color:var(--teal); color:var(--teal); transform:translateY(-3px); text-decoration:none; }

/* Capa em destaque */
.hero-cover{ display:flex; justify-content:center; perspective:1600px; }
.cover-frame{
  position:relative; width:min(360px,82%);
  transform: rotateY(-13deg) rotateX(3deg); transform-style:preserve-3d;
  animation: floaty 6s ease-in-out infinite;
}
.cover-frame img{
  width:100%; border-radius:4px 9px 9px 4px; display:block;
  box-shadow: 0 2px 4px rgba(0,0,0,.4), 30px 40px 70px -25px rgba(0,0,0,.8),
              0 0 70px -10px rgba(127,217,196,.45);
}
.cover-frame::after{ /* brilho da capa */
  content:""; position:absolute; inset:-12% -12% -22% -12%; z-index:-1; border-radius:50%;
  background: radial-gradient(closest-side, rgba(127,217,196,.35), transparent 72%); filter:blur(20px);
}
@keyframes floaty{ 0%,100%{ transform:rotateY(-13deg) translateY(0) } 50%{ transform:rotateY(-13deg) translateY(-16px) } }

.hero-scroll{
  position:absolute; left:50%; bottom:26px; transform:translateX(-50%); z-index:3;
  color:var(--muted); font-size:11px; letter-spacing:.25em; text-transform:uppercase;
  display:flex; flex-direction:column; align-items:center; gap:10px;
}
.hero-scroll:hover{ color:var(--teal); text-decoration:none; }
.hero-scroll span{ width:1px; height:46px; background:linear-gradient(var(--teal),transparent); }

/* ============================ INTRO ============================ */
.intro{ background:var(--bg); padding:110px 0; }
.intro .section-title{ color:#fff; margin-bottom:24px !important; }
.intro p{ color:var(--muted); font-size:clamp(1.05rem,1.5vw,1.25rem); line-height:1.9; }
.intro p strong{ color:var(--ink); }
.intro a{ color:var(--teal) !important; font-weight:600; border-bottom:1px solid rgba(127,217,196,.4); padding-bottom:3px; }
.intro a:hover{ text-decoration:none; color:#fff !important; }

/* ===================== TRAILER (autoplay) ===================== */
.trailer{ background:var(--bg-2); padding:110px 0; }
.trailer .section-title{ color:#fff; margin-bottom:18px !important; }
.trailer-eyebrow{ display:inline-block; color:var(--teal); letter-spacing:.28em; text-transform:uppercase; font-size:12px; font-weight:600; margin-bottom:18px; }
.trailer-copy{ color:var(--muted); line-height:1.8; margin-bottom:28px; max-width:34ch; }
.trailer .btn-line{ color:#fff; }
.trailer-stage{ display:flex; justify-content:center; }
.trailer .phone{
  position:relative; width:min(320px,80%); aspect-ratio:9/16; border-radius:36px; overflow:hidden;
  background:#000;
  box-shadow:0 40px 80px -30px rgba(0,0,0,.9), 0 0 0 7px #1b2226, 0 0 0 8px rgba(127,217,196,.25), 0 0 70px -12px rgba(127,217,196,.35);
}
.trailer .phone video{ width:100%; height:100%; object-fit:cover; display:block; }
.unmute{
  position:absolute; left:50%; bottom:18px; transform:translateX(-50%);
  display:inline-flex; align-items:center; gap:8px; cursor:pointer; white-space:nowrap;
  background:rgba(13,18,20,.72); -webkit-backdrop-filter:blur(6px); backdrop-filter:blur(6px);
  color:#fff; border:1px solid rgba(255,255,255,.28); padding:10px 18px; border-radius:999px;
  font-family:var(--sans); font-size:13px; font-weight:600; transition:.25s ease;
}
.unmute:hover{ background:var(--teal); color:#0d1416; border-color:var(--teal); }
@media (max-width:991px){ .trailer .phone{ margin-top:40px; } }

/* ===================== PILARES (icon-content-block) ===================== */
.icon-content-block{ background:var(--bg-2); padding:40px 0 110px; }
.icon-content-block .section-title{ color:#fff; text-align:center; margin-bottom:60px !important; }
.icon-content-block .content-block{
  background:var(--panel); border:1px solid var(--line); border-radius:18px;
  padding:42px 32px; height:100%; transition:.35s cubic-bezier(.22,.61,.36,1);
}
.icon-content-block .content-block:hover, .icon-content-block .content-block.selected{
  transform:translateY(-8px); border-color:rgba(127,217,196,.5);
  background:linear-gradient(180deg, rgba(127,217,196,.1), var(--panel));
}
.icon-content-block .content-block figure{
  width:64px; height:64px; border-radius:16px; display:flex; align-items:center; justify-content:center;
  background:rgba(127,217,196,.14); margin-bottom:24px;
}
.icon-content-block .content-block figure i{ font-size:26px; color:var(--teal); }
.icon-content-block .content-block h6{
  font-family:var(--serif); font-size:1.4rem; color:#fff; margin-bottom:14px; font-weight:600;
}
.icon-content-block .content-block ul{ list-style:none; padding:0; margin:0; }
.icon-content-block .content-block p{ color:var(--muted); line-height:1.8; font-size:.98rem; }

/* ===================== PROPOSTA + EIXOS ===================== */
.text-content-block{ background:var(--bg); padding:110px 0; }
.text-content-block .section-title{ color:#fff; text-align:center; margin-bottom:34px !important; }
.text-content-block h5{
  color:var(--muted); max-width:60rem; margin:0 auto 70px; text-align:center;
  font-weight:400; line-height:1.9; font-size:clamp(1.05rem,1.5vw,1.25rem);
}
.text-content-block small{ font-family:var(--serif); font-style:italic; color:var(--teal); font-size:1.1rem; }
.text-content-block h6{
  font-family:var(--sans); letter-spacing:.18em; color:#fff; font-size:.85rem; margin:14px 0 12px;
  padding-top:16px; border-top:1px solid var(--line);
}
.text-content-block p{ color:var(--muted); font-size:.96rem; line-height:1.75; }

/* ===================== CITAÇÃO ===================== */
.quote-block{ background:var(--bg-2); padding:110px 0; text-align:center; }
.quote-block blockquote{
  font-family:var(--serif); font-style:italic; color:#fff; max-width:60rem; margin:0 auto;
  font-size:clamp(1.5rem,3vw,2.5rem); line-height:1.4; position:relative;
}
.quote-block cite{ display:block; margin-top:28px; color:var(--teal); font-style:normal; letter-spacing:.04em; font-size:.95rem; }

/* ===================== CAPÍTULOS ===================== */
.chapters{ background:var(--bg); padding:110px 0; }
.chapters .section-title{ color:#fff; }
.chapters h5{ color:var(--muted); line-height:1.8; font-weight:400; }
.parts{ margin-top:60px; display:grid; gap:22px; }
.part{
  background:var(--panel); border:1px solid var(--line); border-radius:18px; padding:34px 36px;
  transition:.35s ease;
}
.part:hover{ border-color:rgba(127,217,196,.4); }
.part-head{ display:flex; align-items:flex-start; gap:24px; margin-bottom:22px; }
.part-num{ font-family:var(--serif); font-size:2.4rem; color:var(--teal); line-height:1; font-weight:600; }
.part-head h4{ font-family:var(--serif); color:#fff; font-size:1.5rem; margin:0 0 4px; font-weight:600; }
.part-head > div{ flex:1; }
.part-head p{ color:var(--muted); margin:0; font-size:.95rem; }
.part-count{ color:var(--teal); font-size:.8rem; font-weight:600; letter-spacing:.08em; white-space:nowrap; padding-top:8px; }
.chapter-list{ list-style:none; padding:0; margin:0; columns:2; column-gap:40px; border-top:1px solid var(--line); padding-top:22px; }
.chapter-list li{
  break-inside:avoid; color:var(--muted); padding:9px 0 9px 24px; position:relative; font-size:.95rem;
  border-bottom:1px solid rgba(255,255,255,.045);
}
.chapter-list li::before{ content:""; position:absolute; left:0; top:17px; width:8px; height:8px; border-radius:50%; background:var(--teal); opacity:.5; }

/* ===================== AUTORES (team) ===================== */
.team{ background:var(--bg-2); padding:110px 0; }
.team .section-title{ color:#fff; }
.team h5{ color:var(--muted); font-weight:400; line-height:1.8; }
.team figure{ position:relative; margin:50px auto 0; max-width:500px; border-radius:18px; overflow:hidden; }
.team figure img{ width:100%; aspect-ratio:4/5; height:auto; object-fit:cover; object-position:center 12%; filter:grayscale(.1); transition:.5s ease; }
.team figure:hover img{ filter:grayscale(0); transform:scale(1.03); }
.team figcaption{ position:absolute; left:0; bottom:0; width:100%; padding:30px; background:linear-gradient(transparent, rgba(11,15,16,.9)); }
.team figcaption h6{ font-family:var(--serif); color:#fff; font-size:1.6rem; margin:0; }
.team figcaption small{ color:var(--teal); letter-spacing:.12em; text-transform:uppercase; font-size:.72rem; }

/* ===================== ONDE COMPRAR ===================== */
.stores{ background:var(--bg); padding:110px 0; }
.stores .section-title{ color:#fff; }
.stores h5{ color:var(--muted); font-weight:400; line-height:1.8; }
.store-grid{ margin-top:55px; display:grid; grid-template-columns:repeat(auto-fit,minmax(250px,1fr)); gap:16px; }
.store-card{
  display:flex; align-items:center; gap:16px; background:var(--panel); border:1px solid var(--line);
  border-radius:15px; padding:20px 22px; transition:.3s cubic-bezier(.22,.61,.36,1);
}
.store-card:hover{ transform:translateY(-5px); border-color:rgba(127,217,196,.5); text-decoration:none; background:#1f282c; }
.store-ic{ width:48px; height:48px; flex:0 0 auto; border-radius:12px; background:rgba(127,217,196,.14); color:var(--teal); display:flex; align-items:center; justify-content:center; font-size:18px; }
.store-meta{ flex:1; min-width:0; }
.store-name{ display:block; color:#fff; font-weight:600; font-size:1.02rem; }
.store-format{ color:var(--muted); font-size:.82rem; }
.store-arrow{ color:var(--teal); opacity:.5; transition:.3s ease; }
.store-card:hover .store-arrow{ opacity:1; transform:translateX(4px); }
.store-card.featured{ border-color:var(--gold); background:linear-gradient(180deg, rgba(216,185,119,.1), var(--panel)); }
.store-card.featured .store-ic{ background:var(--gold); color:#1a1407; }
.store-clicks{ display:inline-flex; align-items:center; gap:5px; flex:0 0 auto; font-size:.72rem; color:var(--muted); background:rgba(255,255,255,.05); border:1px solid var(--line); padding:3px 9px; border-radius:999px; }
.store-clicks i{ font-size:.85em; color:var(--teal); }
.store-clicks b{ font-weight:700; color:var(--ink); font-variant-numeric:tabular-nums; }
.store-card.featured .store-clicks i{ color:var(--gold); }

/* ===================== CONTATO ===================== */
.contact-book{ background:var(--bg-2); padding:110px 0; }
.contact-book .section-title{ color:#fff; }
.contact-side{ color:var(--muted); line-height:1.8; margin:20px 0 28px; max-width:30ch; }
.contact-social{ display:flex; gap:14px; }
.contact-social a{ width:46px; height:46px; border-radius:50%; border:1px solid var(--line); display:flex; align-items:center; justify-content:center; color:#fff; }
.contact-social a:hover{ background:var(--teal); color:#0d1416; border-color:var(--teal); }
.book-form .field-row{ display:grid; grid-template-columns:1fr 1fr; gap:20px; }
.book-form .field{ position:relative; margin-bottom:24px; }
.book-form .field input, .book-form .field textarea{
  width:100%; background:var(--panel); border:1px solid var(--line); border-radius:12px;
  color:var(--ink); padding:20px 18px 8px; height:auto; font-family:var(--sans); font-size:1rem;
  transition:.25s ease;
}
.book-form .field textarea{ min-height:150px; resize:vertical; padding-top:26px; }
.book-form .field span{
  position:absolute; left:18px; top:17px; color:var(--muted); pointer-events:none; transition:.2s ease; font-size:1rem;
}
.book-form .field input:focus, .book-form .field textarea:focus{ border-color:var(--teal); background:#1f282c; }
.book-form .field input:focus + span, .book-form .field textarea:focus + span,
.book-form .field span.label-up{ top:7px; font-size:.72rem; color:var(--teal); }
.book-form .hp{ position:absolute; left:-9999px; }
.book-form button{
  background:var(--teal); color:#0d1416; border:none; border-radius:999px; padding:16px 36px;
  font-family:var(--sans); font-weight:600; font-size:14px; height:auto; cursor:pointer; transition:.3s ease;
}
.book-form button:hover{ background:#fff; transform:translateY(-3px); }
.form-foot{ display:flex; align-items:center; gap:20px; flex-wrap:wrap; }
.form-status{ font-size:.95rem; font-weight:600; margin:0; }
.form-status.ok{ color:var(--teal); }
.form-status.err{ color:#e8927f; }
.book-form .field.invalid input, .book-form .field.invalid textarea{ border-color:#e8927f; }

/* ===================== FOOTER tweaks ===================== */
.footer h2 em{ font-family:var(--serif); font-style:italic; color:var(--teal); }
.footer .footer-bar .visits{ display:inline-flex; align-items:center; gap:8px; color:rgba(255,255,255,.65); }
.footer .footer-bar .visits i{ color:var(--teal); font-size:.95em; }
.visit-count{ color:var(--teal); font-weight:700; font-variant-numeric:tabular-nums; }
@media (max-width: 767px){
  .footer .footer-bar{ flex-direction:column; gap:10px; text-align:center; }
}

/* ===================== FERRAMENTAS em destaque ===================== */
.tools-featured{
  background:
    radial-gradient(900px 420px at 85% 0%, rgba(127,217,196,.10), transparent 65%),
    var(--bg-2);
  border-top:1px solid rgba(127,217,196,.16);
  border-bottom:1px solid rgba(127,217,196,.10);
  padding:95px 0;
}
.tools-eyebrow{
  display:inline-block; color:var(--teal); letter-spacing:.28em; text-transform:uppercase;
  font-size:12px; font-weight:600; margin-bottom:16px;
}
.tools-featured .store-grid{ margin-top:42px; }
.tools-featured .store-card{ padding:24px 22px; }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 767px){
  /* o gutter padrão de 15px deixava o conteúdo encostado na borda */
  .container{ padding-left:28px; padding-right:28px; }
}
@media (max-width: 991px){
  .hero-grid{ grid-template-columns:1fr; text-align:center; gap:40px; }
  .hero-cover{ order:-1; }
  .cover-frame{ width:min(260px,60%); }
  .hero-cta{ justify-content:center; }
  .hero-sub{ margin-left:auto; margin-right:auto; }
  .chapter-list{ columns:1; }
}
@media (max-width: 640px){
  .book-hero{ padding:110px 0 70px; min-height:auto; }
  .book-form .field-row{ grid-template-columns:1fr; gap:0; }
  .part-head{ flex-wrap:wrap; gap:14px; }
  section{ overflow:hidden; }
}

/* ===== Limpa o menu lateral fixo (left-side) sobre o herói ===== */
/* O .left-side é absoluto, 120px (80px no mobile), e cobre só a 1ª tela (o herói). */
@media (min-width: 992px){
  .book-hero .container{ max-width:none; width:100%; padding-left:calc(120px + 4vw); padding-right:5vw; }
}
@media (max-width: 991px){
  .book-hero .container{ padding-left:140px; }   /* limpa a faixa lateral de 120px */
}
@media (max-width: 767px){
  .book-hero .container{ padding-left:96px; padding-right:20px; }  /* faixa de 80px no mobile */
}

/* remove a faixa branca herdada do template na seção de autores */
.team:before{ display:none !important; }
