/* ==========================================================================
   Luiz Carlos de Sousa - folha de estilo unica
   Paleta e tipografia extraidas do site original
   ========================================================================== */

:root {
  --c-text: #20373B;
  --c-deep: #07373C;
  --c-teal: #0E6973;
  --c-gold: #BF820F;
  --c-yellow: #F2BB16;
  --c-light: #F2F5F7;
  --c-mint: #EEFEF9;
  --c-mint-soft: #F1FCF9;
  --c-green-soft: #EBF4EC;
  --c-warm: #A59A8E;
  --c-brown: #665441;
  --c-footer-bg: #EDF3FA;
  --c-white: #FFFFFF;

  --f-title: "Bricolage Grotesque", system-ui, sans-serif;
  --f-body: "Poppins", system-ui, sans-serif;
  --f-ui: "Montserrat", system-ui, sans-serif;
  --f-nav: "Nunito Sans", system-ui, sans-serif;
  --f-eyebrow: "DM Sans", system-ui, sans-serif;

  --maxw: 1360px;
  --gutter: 72px;
  --header-h: 141px;
}

/* ----- reset -------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 16px;
  font-weight: 400;
  color: var(--c-text);
  background: var(--c-white);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; border: 0; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; font-family: var(--f-title); font-weight: 600; color: var(--c-text); }
p { margin: 16px 0; }
::selection { background: var(--c-teal); color: #fff; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 1000;
  background: var(--c-deep); color: #fff; padding: 12px 20px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 3px solid var(--c-gold); outline-offset: 2px; }

/* ----- estrutura ---------------------------------------------------------- */
.section { padding-inline: var(--gutter); }
.section > .container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-block: 72px; }

.s-mint      { background-color: var(--c-mint); }
.s-mint-soft { background-color: var(--c-mint-soft); }
.s-light     { background-color: var(--c-light); }
.s-white     { background-color: var(--c-white); }
.r-40        { border-radius: 40px; }
.r-50        { border-radius: 50px; }

/* ----- tipografia --------------------------------------------------------- */
.eyebrow {
  font-family: var(--f-eyebrow);
  font-size: 18px; line-height: 1.1; font-weight: 500;
  color: var(--c-deep);
}
.h-section { font-family: var(--f-title); font-size: 25px; line-height: 1.1; font-weight: 600; color: var(--c-text); }
.h-display { font-family: var(--f-title); font-size: 47px; line-height: 1; font-weight: 800; color: var(--c-white); }

.lead  { font-weight: 300; color: var(--c-deep); }
.lead p { margin: 0 0 1em; }
.lead p:last-child { margin-bottom: 0; }

/* ----- botoes ------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--f-ui); font-size: 16px; line-height: 16px; font-weight: 600;
  text-transform: uppercase;
  background: var(--c-teal); color: var(--c-light);
  padding: 10px 15px 10px 20px;
  border: 0; border-radius: 50px;
  transition: background-color .25s ease, color .25s ease, transform .25s ease;
}
.btn:hover { background: var(--c-deep); transform: translateY(-2px); }
.btn__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 50px; height: 50px; margin-left: 10px; padding: 15px;
  background: var(--c-light); border-radius: 200px; flex: 0 0 auto;
}
.btn__icon svg { width: 20px; height: 20px; fill: var(--c-gold); }
.btn--light { background: var(--c-light); color: var(--c-deep); border: 1px solid var(--c-light); }
.btn--light:hover { background: var(--c-white); color: var(--c-deep); }
.btn--light .btn__icon { background: var(--c-teal); }
.btn--light .btn__icon svg { fill: var(--c-yellow); }

/* ==========================================================================
   Cabecalho
   ========================================================================== */
.site-header { position: relative; z-index: 100; height: var(--header-h); padding-inline: 20px; }

.site-header__bar {
  position: fixed; top: 20px; left: 50%; transform: translateX(-50%);
  width: min(1280px, calc(100% - 40px));
  display: flex; align-items: center; justify-content: space-evenly; gap: 20px;
  background: var(--c-white);
  padding: 20px; border-radius: 50px;
  box-shadow: 0 0 10px 0 rgba(0, 0, 0, .15);
}

.site-header__logo { flex: 0 0 auto; }
.site-header__logo img { width: 248px; height: auto; }

.nav { font-family: var(--f-nav); }
.nav > ul { display: flex; align-items: center; }
.nav > ul > li { position: relative; display: flex; align-items: center; }
.nav-mobile { display: none; }
.nav__toggle--caret { padding-inline: 0 14px; margin-left: -24px; }
.nav a,
.nav .nav__toggle {
  display: flex; align-items: center; gap: 6px;
  font-family: var(--f-nav); font-size: 16px; line-height: 20px; font-weight: 400;
  color: var(--c-deep);
  padding: 13px 32px;
  background: none; border: 0; cursor: pointer;
  white-space: nowrap;
  transition: color .2s ease;
}
.nav a:hover, .nav .nav__toggle:hover, .nav a.is-active { color: var(--c-teal); }
.nav__item--has-sub.is-current > .nav__toggle { color: var(--c-teal); font-weight: 600; }
.nav .caret { width: 10px; height: 10px; fill: currentColor; flex: 0 0 auto; transition: transform .2s ease; }

.nav__sub {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(6px);
  min-width: 260px;
  background: var(--c-teal);
  padding: 6px 0;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .18);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
  z-index: 10;
}
.nav__sub a {
  font-family: var(--f-body); font-size: 13px; font-weight: 400; line-height: 1.4;
  color: var(--c-light); padding: 13px 20px; white-space: normal;
}
.nav__sub a:hover { color: var(--c-yellow); }
.nav__item--has-sub:hover > .nav__sub,
.nav__item--has-sub:focus-within > .nav__sub,
.nav__item--has-sub.is-open > .nav__sub {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.nav__item--has-sub:hover > .nav__toggle .caret,
.nav__item--has-sub.is-open > .nav__toggle .caret { transform: rotate(180deg); }

.nav-toggle {
  display: none;
  width: 33px; height: 33px;
  align-items: center; justify-content: center;
  background: var(--c-deep); color: #fff;
  border: 0; border-radius: 5px; cursor: pointer; padding: 0;
}
.nav-toggle svg { width: 18px; height: 18px; fill: currentColor; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  background-color: var(--c-mint-soft);
  background-position: 50% 50%;
  background-size: cover;
  background-repeat: no-repeat;
  border-radius: 40px;
  padding-inline: var(--gutter);
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: #000; opacity: .41; pointer-events: none;
}
.hero > .container {
  position: relative; z-index: 1;
  width: 100%; max-width: var(--maxw); margin-inline: auto;
  display: flex; flex-direction: column; justify-content: center; gap: 20px;
  padding-block: 72px;
}
.hero--home > .container { min-height: 800px; align-items: flex-start; }
.hero--home .h-display { max-width: 564px; }
.hero--home .hero__text { max-width: 448px; color: var(--c-light); }
.hero--home .hero__text p { margin: 0; }

.hero--page { min-height: 222px; }
.hero--page > .container { align-items: center; text-align: center; }

/* hero da pagina O Autor (sem overlay, fundo claro) */
.hero--autor {
  background-color: var(--c-mint-soft);
  background-size: cover;
  background-position: 50% 50%;
  border-radius: 40px;
  padding-inline: var(--gutter);
  position: relative;
}
.hero--autor::before { content: none; }
.hero--autor > .container {
  display: flex; flex-direction: row; align-items: flex-end; gap: 20px;
  max-width: 1292px; margin-inline: auto; padding-block: 0;
}
.hero--autor .hero__copy { flex: 1 1 0; min-width: 0; padding: 10px 10px 24px; margin-left: 30px; }
.hero--autor .hero__copy h1 {
  font-family: var(--f-title); font-size: 47px; line-height: 1; font-weight: 800; color: var(--c-text);
}
.hero--autor .hero__copy .lead { margin-top: 18px; }
.hero--autor .hero__fig { flex: 0 0 auto; display: flex; justify-content: center; align-self: flex-end; }
.hero--autor .hero__fig img { width: 489px; }

/* ==========================================================================
   Blocos reutilizaveis
   ========================================================================== */
.stack { display: flex; flex-direction: column; gap: 20px; }
.stack > p, .col > p, .stack > .lead > p:first-child { margin-top: 0; }
.stack > p, .col > p { margin-bottom: 0; }
.row   { display: flex; gap: 20px; justify-content: center; align-items: center; }
.row--top { align-items: flex-start; }
.row--50 { gap: 50px; align-items: stretch; }
.col  { flex: 1 1 0; min-width: 0; padding: 10px; display: flex; flex-direction: column; gap: 20px; }
.center { text-align: center; align-items: center; }

/* galeria de 3 imagens (home / livros) */
.gallery-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.gallery-3 img { width: 100%; height: 420px; object-fit: cover; border-radius: 12px; }

/* duas fotos lado a lado */
.photo-pair { display: flex; gap: 20px; }
.photo-pair img { width: 100%; height: 234px; object-fit: cover; border-radius: 12px; }

/* mosaico com contador */
.mosaic {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 186px 186px 147px 147px;
  gap: 20px;
}
.mosaic > * { grid-column: span 2; border-radius: 12px; overflow: hidden; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; }
.mosaic__counter {
  grid-row: span 1;
  background: var(--c-teal); color: var(--c-white);
  padding: 20px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; border-radius: 12px;
}
.mosaic__counter .num {
  font-family: var(--f-body); font-size: 69px; line-height: 1; font-weight: 600; color: #F6FAFF;
}
.mosaic__counter .cap { font-family: var(--f-body); font-size: 16px; font-weight: 300; }
.mosaic__a { grid-row: span 2; }
.mosaic__b { grid-row: span 3; }
.mosaic__c { grid-row: span 2; }

/* mosaico da pagina O Autor */
.mosaic--autor { grid-template-rows: 147px 147px 147px 147px; }
.mosaic--autor > :nth-child(1) { grid-row: span 2; }
.mosaic--autor > :nth-child(2) { grid-row: span 2; }
.mosaic--autor > :nth-child(3) { grid-row: span 2; }
.mosaic--autor > :nth-child(4) { grid-row: span 2; }

/* lista com check */
.checklist { display: flex; flex-direction: column; gap: 12px; }
.checklist li { display: flex; align-items: center; gap: 10px; }
.checklist svg { width: 21px; height: 21px; fill: var(--c-gold); flex: 0 0 auto; }
.checklist span { font-family: var(--f-eyebrow); font-size: 17px; font-weight: 400; color: var(--c-deep); }

/* cartoes com icone */
.cards-3 { display: flex; gap: 20px; justify-content: center; padding: 10px; }
.card {
  flex: 1 1 0; min-height: 350px;
  border: 2px solid var(--c-warm);
  border-radius: 12px;
  padding: 20px;
  display: flex; flex-direction: column; justify-content: center; gap: 14px;
  text-align: center; align-items: center;
  transition: border-color .25s ease, transform .25s ease;
}
.card:hover { border-color: var(--c-teal); transform: translateY(-4px); }
.card__icon svg { width: 35px; height: 35px; fill: var(--c-warm); }
.card h3 { font-family: var(--f-title); font-size: 21px; line-height: 31.5px; font-weight: 700; color: var(--c-brown); }
.card p { font-family: var(--f-title); font-size: 16px; line-height: 24px; font-weight: 400; color: var(--c-deep); margin: 0; }

/* faixa de chamada final */
.cta { padding-inline: var(--gutter); background: var(--c-mint); }
.cta > .container { max-width: var(--maxw); margin-inline: auto; padding: 72px 0 172.8px; }
.cta__panel {
  background: var(--c-teal);
  border-radius: 40px;
  padding: 50px;
  min-height: 458px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px;
  text-align: center;
}
.cta__panel > h2 { max-width: 760px; }
.cta__panel--deep { background: var(--c-deep); }
.cta__panel p { color: var(--c-light); max-width: 768px; margin: 0; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; padding: 10px; }

/* ==========================================================================
   Carrossel de fotos (pagina O Autor)
   ========================================================================== */
.marquee { overflow: hidden; padding-block: 60px; }
.marquee__track { display: flex; gap: 20px; width: max-content; animation: marquee 45s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee img { width: 216px; height: 158px; object-fit: cover; border-radius: 10px; flex: 0 0 auto; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
  .marquee { overflow-x: auto; }
}

/* ==========================================================================
   Pagina Livros
   ========================================================================== */
.books { display: flex; flex-direction: column; }
.book {
  display: flex; gap: 50px; align-items: center;
  padding-block: 60px;
}
.book--flip { flex-direction: row-reverse; }
.book__fig { flex: 0 0 42%; }
.book__fig img { width: 100%; border-radius: 16px; }
.book__body { flex: 1 1 0; display: flex; flex-direction: column; gap: 14px; }
.book__body h2 { font-family: var(--f-title); font-size: 25px; line-height: 1.15; font-weight: 600; }
.book__body .sub { font-family: var(--f-eyebrow); font-size: 16px; font-weight: 500; color: var(--c-deep); }
.book__body .sinopse-label { font-family: var(--f-eyebrow); font-size: 18px; font-weight: 500; color: var(--c-deep); }
.book__body p { font-weight: 300; color: var(--c-deep); margin: 0; }
.book__body .btn { align-self: flex-start; }

.promo { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.promo__item { position: relative; border-radius: 12px; overflow: hidden; }
.promo__item img { width: 100%; height: 420px; object-fit: cover; }
.promo__item .btn { position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); }

/* ==========================================================================
   Pagina de texto (conto / cronica / poesia) e Entrevista
   ========================================================================== */
.prose { width: 100%; max-width: min(100%, 1140px); margin-inline: auto; padding-block: 50px; }
.prose > h2 { text-align: center; font-size: 25px; line-height: 1.1; margin-bottom: 10px; }
.prose__body p { font-family: var(--f-body); font-size: 16px; font-weight: 400; color: var(--c-text); text-align: justify; margin: 16px 0; }
.prose__epigrafe p { text-align: center; font-style: italic; color: var(--c-deep); }
.prose__poema p { text-align: center; line-height: 1.9; }
.prose__notas { margin-top: 36px; padding-top: 18px; border-top: 1px solid #DADADA; }
.prose__notas p { font-size: 13px; line-height: 1.6; color: var(--c-deep); text-align: left; }

.qa { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-block: 72px; display: flex; flex-direction: column; gap: 20px; }
.qa h1 { font-family: var(--f-title); font-size: 25px; line-height: 1.1; font-weight: 600; }
.qa .qa__sub { font-family: var(--f-eyebrow); font-size: 16px; font-weight: 500; color: var(--c-deep); text-align: center; }
.qa h2 { font-family: var(--f-title); font-size: 17px; line-height: 1.4; font-weight: 600; color: var(--c-text); }
.qa p { margin: 0 0 1em; }
.qa p:last-child { margin-bottom: 0; }

/* ==========================================================================
   Rodape
   ========================================================================== */
.site-footer { background: var(--c-footer-bg); padding: 0 40px 40px; border-radius: 50px 50px 0 0; position: relative; }
.site-footer__panel {
  background: var(--c-teal);
  border-radius: 30px;
  margin-top: -80px;
  padding: 50px 0 20px;
}
.site-footer__cols { display: flex; gap: 20px; padding: 0 100px; }
.site-footer__brand { flex: 0 0 26%; padding-top: 80px; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.site-footer__brand img { width: 248px; }
.site-footer__brand p {
  font-size: 14px; font-weight: 300; color: var(--c-green-soft); text-align: justify; margin: 0;
}
.site-footer__col { flex: 1 1 0; padding: 80px 0 0 120px; display: flex; flex-direction: column; gap: 20px; }
.site-footer h3 {
  font-family: var(--f-body); font-size: 18.72px; font-weight: 400; color: #fff; margin: 0;
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
}
.site-footer h3 > svg { width: 27px; height: 27px; fill: var(--c-yellow); flex: 0 0 auto; }
.site-footer h3 a:hover { color: var(--c-yellow); }
.site-footer__list { display: flex; flex-direction: column; gap: 10px; }
.site-footer__list li a,
.site-footer__list li span { display: flex; align-items: center; gap: 10px; }
.site-footer__list svg { width: 16px; height: 16px; fill: var(--c-yellow); flex: 0 0 auto; }
.site-footer__list span.t { font-size: 14px; font-weight: 300; color: var(--c-light); }
.site-footer__list a:hover span.t { color: var(--c-yellow); }
.site-footer__bottom { padding: 0 100px; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.site-footer__bottom hr { width: 100%; border: 0; border-top: 1px solid #DADADA; margin: 12px 0 0; }
.site-footer__bottom p { font-size: 14px; font-weight: 300; color: var(--c-light); text-align: center; margin: 0; }
.site-footer__bottom a:hover { color: var(--c-yellow); }

/* ==========================================================================
   Voltar ao topo
   ========================================================================== */
.to-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 90;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--c-teal); color: #fff; border: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s, background-color .25s ease;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .18);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--c-deep); }
.to-top svg { width: 18px; height: 18px; fill: currentColor; }

/* ==========================================================================
   Animacoes de entrada (nunca acima da dobra)
   ========================================================================== */
html.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
html.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ==========================================================================
   Responsivo
   ========================================================================== */
@media (max-width: 1200px) {
  :root { --gutter: 40px; }
  .site-footer__cols { padding: 0 48px; }
  .site-footer__col { padding-left: 48px; }
  .site-footer__bottom { padding: 0 48px; }
  .nav a, .nav .nav__toggle { padding: 13px 18px; }
}

@media (max-width: 1024px) {
  :root { --gutter: 28px; --header-h: 116px; }

  .nav-toggle { display: inline-flex; }
  .site-header__bar { justify-content: space-between; padding: 20px; border-radius: 40px; }
  .site-header__logo img { width: 180px; }
  .site-nav--left, .site-nav--right { display: none; }

  .nav-mobile {
    position: absolute; top: calc(100% + 10px); left: 0; right: 0;
    background: var(--c-white);
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .15);
    padding: 10px;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
    display: none;
  }
  .nav-mobile.is-open { display: block; }
  .nav-mobile > ul { flex-direction: column; align-items: stretch; }
  .nav-mobile > ul > li { display: block; }
  .nav a, .nav .nav__toggle { padding: 12px 16px; width: 100%; justify-content: space-between; }
  .nav__sub {
    position: static; transform: none; opacity: 1; visibility: visible; pointer-events: auto;
    min-width: 0; box-shadow: none; border-radius: 12px;
    display: none; margin: 4px 0 8px;
  }
  .nav__item--has-sub.is-open > .nav__sub { display: block; transform: none; }
  .nav__item--has-sub:hover > .nav__sub { display: none; }
  .nav__item--has-sub.is-open:hover > .nav__sub { display: block; }

  .row, .row--50 { flex-direction: column; }
  .col { width: 100%; }
  .hero--home > .container { min-height: 620px; }
  .h-display { font-size: 38px; }
  .hero--autor > .container { flex-direction: column; align-items: stretch; padding-block: 48px; }
  .hero--autor .hero__copy { margin-left: 0; }
  .hero--autor .hero__fig img { width: 360px; margin-inline: auto; }
  .hero--autor .hero__copy h1 { font-size: 38px; }

  .mosaic, .mosaic--autor { grid-template-columns: repeat(2, 1fr); grid-template-rows: none; }
  .mosaic > * { grid-column: span 1 !important; grid-row: auto !important; }
  .mosaic img { height: 280px; }
  .mosaic__counter { min-height: 180px; }

  .book, .book--flip { flex-direction: column; gap: 24px; padding-block: 40px; }
  .book__fig { flex: 0 0 auto; width: 100%; max-width: 420px; margin-inline: auto; }

  .gallery-3 { grid-template-columns: 1fr; }
  .gallery-3 img { height: 320px; }
  .promo { grid-template-columns: 1fr; }

  .cards-3 { flex-direction: column; }

  .site-footer { padding: 0 20px 24px; border-radius: 40px 40px 0 0; }
  .site-footer__cols { flex-direction: column; padding: 0 28px; }
  .site-footer__brand { flex: 0 0 auto; padding-top: 40px; }
  .site-footer__col { padding: 0; }
  .site-footer__bottom { padding: 0 28px; }
  .cta > .container { padding-bottom: 120px; }
}

@media (max-width: 767px) {
  :root { --gutter: 16px; --header-h: 116px; }
  .section > .container { padding-block: 48px; }
  .h-display { font-size: 32px; }
  .h-section { font-size: 22px; }
  .hero, .hero--autor { border-radius: 24px; }
  .hero--home > .container { min-height: 540px; }
  .hero--home .hero__text { max-width: none; }
  .photo-pair { flex-direction: column; }
  .photo-pair img { height: 200px; }
  .cta__panel { padding: 32px 20px; border-radius: 28px; min-height: 0; }
  .card { min-height: 0; }
  .cta > .container { padding-block: 48px 90px; }
  .cta__actions { flex-direction: column; width: 100%; }
  .cta__actions .btn { width: 100%; }
  .btn { font-size: 14px; }
  .prose { padding-block: 32px; }
  .prose__body p { text-align: left; }
  .qa { padding-block: 48px; }
  .marquee { padding-block: 36px; }
  .site-footer__panel { margin-top: -60px; padding: 36px 0 16px; }
  .site-footer__brand img { width: 200px; }
}
