/* ==========================================================================
   L. OLIVEIRA FILMES · Catálogo 2028 — site (dark cinematográfico)
   Variantes de cor e fontes no :root, troca rápida via substituição de token.
   ==========================================================================
   @media print no fim adapta o mesmo DOM para impressão A4 (gerado via Playwright).
*/
:root {
  --bg:         #0f0d0a;
  --bg-alt:     #1a1612;
  --cream:      #f3ecdd;
  --cream-soft: #ecdfc6;
  --cream-deep: #d8c7a6;
  --ink:        #2a2622;
  --ink-soft:   #5d544b;
  --terracota:  #c65a2a;
  --terracota-l:#e07a44;
  --rule-dark:  rgba(243,236,221,0.14);
  --rule-light: #d6c9b1;

  --serif:     'CormorantGaramond', Georgia, serif;
  --serif-alt: 'PlayfairDisplay',  Georgia, serif;
  --sans:      'Montserrat', -apple-system, 'Helvetica Neue', Arial, sans-serif;

  --maxw: 1200px;
  --gutter: clamp(20px, 5vw, 64px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html, body {
  background: var(--bg);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, video { display: block; max-width: 100%; }
ul { list-style: none; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { text-wrap: balance; }
p, li span { text-wrap: pretty; }
em {
  font-style: italic;
  font-family: var(--serif);
  color: var(--terracota-l);
  font-weight: 400;
}

/* ============ NAV ============ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px var(--gutter);
  background: linear-gradient(180deg, rgba(15,13,10,0.75), rgba(15,13,10,0));
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.nav-brand img {
  height: 44px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}
.nav-links {
  display: flex;
  gap: clamp(16px, 3vw, 36px);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
}
.nav-links a {
  color: var(--cream);
  opacity: 0.8;
  transition: opacity 0.2s, color 0.2s;
}
.nav-links a:hover {
  opacity: 1;
  color: var(--terracota-l);
}
@media (max-width: 640px) {
  .nav-links { display: none; } /* keep nav minimal on mobile */
}

/* ============ HERO ============ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 1;
}
.hero-overlay {
  position: absolute; inset: 0;
  z-index: 2;
  background: linear-gradient(180deg,
    rgba(15,13,10,0.55) 0%,
    rgba(15,13,10,0.25) 40%,
    rgba(15,13,10,0.75) 100%);
}
.hero-logo { display: none; }
.closing-contact { display: none; }
.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 0 var(--gutter);
  max-width: 1000px;
}
.hero-eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--terracota-l);
  margin-bottom: 24px;
  font-weight: 500;
}
.hero-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(56px, 10vw, 128px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 24px;
}
.hero-title em {
  color: #fff;
  opacity: 0.92;
  font-style: italic;
  font-family: var(--serif);
}
.hero-sub {
  font-size: clamp(14px, 2vw, 18px);
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.88);
}
.hero-scroll {
  position: absolute;
  left: 0; right: 0; bottom: 36px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  font-size: 10px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
}
.hero-scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(180deg, rgba(255,255,255,0.65), rgba(255,255,255,0));
  animation: scroll-pulse 2.4s ease-in-out infinite;
}
@keyframes scroll-pulse {
  0%, 100% { transform: scaleY(1); opacity: 0.65; }
  50%      { transform: scaleY(1.4); opacity: 1; }
}

/* ============ SECTION GENÉRICO ============ */
.section {
  padding: clamp(80px, 12vh, 140px) var(--gutter);
  position: relative;
}
.section-dark { background: var(--bg-alt); }
.section-cream {
  background: var(--cream);
  color: var(--ink);
}
.section-cream em { color: var(--terracota); }

.section-head {
  max-width: 900px;
  margin: 0 auto 60px;
  text-align: center;
  position: relative;
  z-index: 2;
}
.eyebrow {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--terracota-l);
  margin-bottom: 20px;
  font-weight: 500;
}
.section-cream .eyebrow { color: var(--terracota); }
.title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--cream);
}
.section-cream .title { color: var(--ink); }

/* ============ SPLIT (sobre) ============ */
.split {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  max-width: var(--maxw);
  margin: 0 auto;
}
.split-media {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--bg-alt);
}
.split-media video {
  width: 100%; height: 100%;
  object-fit: cover;
}
.split-text {
  padding-right: 10px;
}
.split-text .title { margin: 12px 0 24px; text-align: left; }
.split-text .eyebrow { margin-bottom: 8px; }
.split-text p {
  margin-bottom: 16px;
  color: rgba(243,236,221,0.82);
  font-size: 15px;
  line-height: 1.75;
}
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
}

/* ============ MOMENTS ============ */
.moments {
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1px;
  background: var(--rule-dark);
  border-top: 1px solid var(--rule-dark);
  border-bottom: 1px solid var(--rule-dark);
}
.moments li {
  background: var(--bg-alt);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.moments strong {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 22px;
  color: var(--cream);
  font-style: italic;
}
.moments span {
  font-size: 13px;
  color: rgba(243,236,221,0.65);
  line-height: 1.5;
}

/* ============ FEATURE (entregas) ============ */
.section-feature { padding-top: 0; }
.split-text .deliverables { grid-template-columns: 1fr; gap: 24px; }
#cobertura { align-items: start; }
@media screen and (min-width: 901px) { #cobertura .split-media { position: sticky; top: 90px; } }
.feature-media {
  position: relative;
  height: 64vh;
  min-height: 320px;
  margin: 0 calc(var(--gutter) * -1);
  margin-bottom: 80px;
  overflow: hidden;
  background: var(--bg-alt);
}
.feature-media video {
  width: 100%; height: 100%;
  object-fit: cover;
}
#momentos .feature-media video { object-position: center 10%; }
#entregas .feature-media video { object-position: 20% 60%; }
@media screen and (max-width: 900px) { #entregas .feature-media { height: auto; min-height: 0; aspect-ratio: 3 / 2; } }
.deliverables {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 48px 40px;
}
.deliverables article {
  border-top: 1px solid var(--rule-dark);
  padding-top: 24px;
}
.deliverables h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-style: italic;
  font-size: 26px;
  color: var(--cream);
  margin-bottom: 12px;
}
.deliverables p {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(243,236,221,0.72);
}

/* ============ PACOTES ============ */
.pkg-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 20px;
}
.pkg {
  display: grid;
  grid-row: span 10;
  grid-template-rows: subgrid;
  row-gap: 0;
  position: relative;
  padding: 40px 28px 32px;
  background: #fff8ea;
  border: 1px solid var(--rule-light);
  color: var(--ink);
}
.pkg-featured { background: var(--terracota); border-color: var(--terracota); color: #fff; }
.pkg-ribbon {
  position: absolute;
  top: -14px; left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--cream);
  padding: 8px 18px;
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-weight: 600;
  white-space: nowrap;
}
.pkg-name {
  font-family: var(--serif);
  font-weight: 500;
  font-style: italic;
  font-size: 40px;
  line-height: 1.1;
  margin-bottom: 18px;
}
.pkg-name small, .pkg-label {
  display: block;
  font-family: var(--sans);
  font-style: normal;
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.pkg-cov, .pkg-hours { font-size: 14px; line-height: 1.5; }
.pkg-hours { margin-bottom: 24px; color: var(--ink-soft); }
.pkg-label { padding-top: 20px; margin-bottom: 10px; border-top: 1px solid var(--rule-light); }
.pkg ul {
  display: grid;
  grid-row: span 4;
  grid-template-rows: subgrid;
  row-gap: 0;
  font-size: 14px;
  line-height: 1.5;
}
.pkg li { position: relative; padding: 5px 0 5px 18px; }
.pkg li::before { content: "+"; position: absolute; left: 0; color: var(--terracota); font-weight: 600; }
.pkg li.vazio::before { content: none; }
.pkg-inv { margin-top: 24px; margin-bottom: 4px; }
.pkg-price {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 38px;
  line-height: 1.1;
  font-variant-numeric: lining-nums;
  white-space: nowrap;
}
.pkg-featured .pkg-name small, .pkg-featured .pkg-label, .pkg-featured .pkg-hours { color: #fff; }
.pkg-featured .pkg-label { border-top-color: rgba(255,255,255,0.4); }
.pkg-featured li::before { color: #fff; }
.pkg-note {
  max-width: var(--maxw);
  margin: 40px auto 0;
  text-align: center;
  font-size: 13px;
  color: var(--ink-soft);
}
@media screen and (max-width: 860px) {
  .pkg-grid { grid-template-columns: 1fr; row-gap: 32px; }
  .pkg, .pkg ul { grid-row: auto; grid-template-rows: none; }
  .pkg li.vazio { display: none; }
}

/* ============ COMO FUNCIONA ============ */
.facts {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 40px 48px;
}
.facts > div {
  border-left: 1px solid var(--rule-dark);
  padding-left: 20px;
}
.facts h4 {
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--terracota-l);
  margin-bottom: 10px;
  font-weight: 500;
}
.facts p {
  font-size: 14px;
  line-height: 1.65;
  color: rgba(243,236,221,0.78);
}

/* ============ ENCERRAMENTO ============ */
.closing {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 100px var(--gutter) 80px;
}
.closing-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 1;
}
.closing-overlay {
  position: absolute; inset: 0;
  z-index: 2;
  background: linear-gradient(180deg,
    rgba(15,13,10,0.6) 0%,
    rgba(15,13,10,0.4) 40%,
    rgba(15,13,10,0.85) 100%);
}
.closing-content {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 800px;
  color: #fff;
}
.closing-logo {
  height: 72px;
  width: auto;
  margin: 0 auto 36px;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}
@media screen { .closing-logo { display: none; } } /* na tela o logo já está no menu e cobria os rostos */
.closing-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(36px, 6vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin-bottom: 44px;
}
.closing-title em { color: #fff; font-style: italic; opacity: 0.88; }
.closing-ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.btn {
  display: inline-block;
  padding: 16px 32px;
  font-size: 12px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-weight: 600;
  transition: transform 0.2s, background 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--terracota);
  color: #fff;
}
.btn-primary:hover { background: var(--terracota-l); }
.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.6);
}
.btn-ghost:hover { background: rgba(255,255,255,0.08); }
.closing-pdf {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  border-bottom: 1px solid rgba(255,255,255,0.3);
  padding-bottom: 4px;
  margin-bottom: 36px;
  transition: color 0.2s;
}
.closing-pdf:hover { color: var(--terracota-l); border-color: var(--terracota-l); }
.closing-meta {
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}

/* ============ WHATSAPP FLOAT ============ */
.wa-float {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 200;
  width: 56px; height: 56px;
  background: #25d366;
  color: #fff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 24px rgba(37,211,102,0.4);
  transition: transform 0.2s;
}
.wa-float:hover { transform: scale(1.08); }

/* ============ PRINT (PDF A4) ============
   Uma seção por página. Vídeos viram frames de media/print/.
   Corpo de texto nunca abaixo de 10pt.
   ======================================== */
@media print {
  @page { size: A4; margin: 0; }
  html, body {
    background: var(--bg);
    color: var(--cream);
    font-size: 10.5pt;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  body { counter-reset: pg; }
  .nav, .hero-scroll, .wa-float, .closing-pdf, .closing-ctas, .closing-meta, video { display: none !important; }

  .hero, .section, .closing {
    counter-increment: pg;
    width: 210mm;
    height: 297.01mm;
    min-height: 0;
    max-width: none;
    margin: 0;
    padding: 20mm 18mm;
    position: relative;
    overflow: hidden;
    break-after: page;
    break-inside: avoid;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .closing { break-after: auto; }
  .section::after, .closing::after {
    content: counter(pg, decimal-leading-zero);
    position: absolute;
    right: 18mm; bottom: 10mm;
    z-index: 3;
    font-size: 8pt;
    letter-spacing: 0.2em;
    opacity: 0.6;
  }
  .section-head { margin: 0 auto 12mm; }
  .eyebrow, .hero-eyebrow { font-size: 8.5pt; margin-bottom: 5mm; }
  .title { font-size: 34pt; }

  /* capa */
  .hero { background: url('media/print/capa.jpg') 52% center / cover no-repeat; align-items: center; justify-content: flex-end; padding-bottom: 34mm; }
  .hero-logo { display: block; position: absolute; z-index: 3; top: 20mm; left: 50%; width: 40mm; margin-left: -20mm; filter: brightness(0) invert(1); }
  .hero-title { font-size: 68pt; margin-bottom: 7mm; }
  .hero-sub { font-size: 13pt; color: #fff; }

  /* foto larga em cima, texto embaixo */
  .split { display: block; padding: 0; background: var(--bg-alt); }
  .split-media { width: 210mm; aspect-ratio: auto; }
  #sobre .split-media { height: 122mm; background: url('media/print/veu.jpg') center / cover no-repeat; }
  #cobertura .split-media { height: 118mm; background: url('media/print/vestido.jpg') center / cover no-repeat; }
  .split-text { height: 179mm; padding: 0 18mm 12mm; display: flex; flex-direction: column; justify-content: center; }
  .split-text .title { margin: 0 0 10mm; }
  .split-text p { font-size: 11pt; line-height: 1.7; }
  #sobre .split-text { height: 175mm; }
  #sobre .title { font-size: 40pt; }
  #sobre .split-text p { max-width: 138mm; margin-bottom: 5mm; }
  .split-text .deliverables { grid-template-columns: repeat(3, 1fr); gap: 8mm; }

  .section-feature { justify-content: flex-start; padding-top: 0; }
  .feature-media { width: 210mm; flex: none; margin: 0 -18mm 14mm; min-height: 0; }
  #momentos .feature-media { height: 118mm; margin-bottom: 24mm; background: url('media/print/noiva3.jpg') center / cover no-repeat; }
  #entregas .feature-media { height: 98mm; background: url('media/print/sapato.jpg') center 35% / cover no-repeat; }

  .moments { width: 100%; max-width: none; grid-template-columns: repeat(3, 1fr); }
  .moments li { padding: 7mm 5mm; gap: 2mm; }
  .moments strong { font-size: 17pt; line-height: 1.15; }
  .moments span { font-size: 10pt; color: rgba(243,236,221,0.78); }

  .deliverables { width: 100%; max-width: none; grid-template-columns: 1fr 1fr; gap: 9mm 12mm; }
  .deliverables article { padding-top: 4mm; }
  .deliverables h3 { font-size: 17pt; margin-bottom: 2mm; }
  .deliverables p, .split-text .deliverables p { font-size: 10pt; line-height: 1.55; color: rgba(243,236,221,0.82); }

  .section-cream { box-shadow: 0 0.5mm 0 var(--cream); } /* cobre o filete escuro no pé da página */
  .pkg-grid { width: 100%; max-width: none; column-gap: 5mm; }
  .pkg { padding: 12mm 5.5mm 9mm; }
  .pkg-name { font-size: 30pt; margin-bottom: 6mm; }
  .pkg-name small, .pkg-label, .pkg-ribbon { font-size: 7.5pt; letter-spacing: 0.2em; }
  .pkg-cov, .pkg-hours, .pkg ul { font-size: 10pt; }
  .pkg-hours { margin: 2mm 0 7mm; }
  .pkg-label { padding-top: 5mm; margin-bottom: 2mm; }
  .pkg li { padding: 1.6mm 0 1.6mm 4.5mm; }
  .pkg-inv { margin-top: 8mm; }
  .pkg-price { font-size: 24pt; }
  .pkg-note { margin-top: 12mm; font-size: 10pt; }

  .facts { width: 100%; max-width: none; grid-template-columns: 1fr 1fr; gap: 16mm 14mm; }
  .facts > div { padding-left: 6mm; }
  .facts h4 { font-size: 10pt; letter-spacing: 0.2em; }
  .facts p { font-size: 11.5pt; color: rgba(243,236,221,0.88); }

  .closing { background: url('media/print/rafa.jpg') 54.5% center / cover no-repeat; align-items: center; justify-content: flex-end; padding-bottom: 30mm; }
  .closing-logo { width: 34mm; height: auto; margin-bottom: 9mm; }
  .closing-title { font-size: 40pt; margin-bottom: 9mm; }
  .closing-contact { display: block; font-size: 12pt; line-height: 1.9; }
  .closing-contact span { opacity: 0.7; margin-right: 2mm; }
}
