/* =====================================================================
   CORLE FILMS — base.css
   Global: variáveis, reset, helpers de layout, botões e sistema de reveal.
   Paleta oficial: preto (#000000) / branco (#ffffff) · vermelho escuro (#8A0000) · dourado (#9C752A)
   Fonte: Roboto
   ===================================================================== */

:root {
  /* ================================================================
     PALETA OFICIAL DA MARCA (requisitos da empresa)
     ================================================================ */
  --brand-black:     #000000;   /* Cor principal */
  --brand-white:     #ffffff;   /* Cor principal */
  --brand-red:       #8a0000;   /* Cor secundária — vermelho escuro */
  --brand-gold:      #9c752a;   /* Cor terciária — dourado (acabamentos premium) */

  --black:        #000000;   /* preto principal (puro) */
  --black-soft:   #0d0d0f;
  --black-elev:   #141416;
  --white:        #ffffff;
  --off-white:    #f4f4f5;
  --gray:         #a1a1aa;
  --gray-dim:     #6b6b73;
  --line:         rgba(255, 255, 255, 0.09);
  --line-strong:  rgba(255, 255, 255, 0.16);

  /* Vermelho da marca (secundária) — rampa derivada de --brand-red */
  --red:          #8a0000;
  --red-bright:   #b00505;   /* hover / brilho */
  --red-deep:     #5c0000;   /* pressionado / bordas escuras */
  --red-glow:     rgba(138, 0, 0, 0.45);

  /* Dourado (terciária) — acabamentos premium */
  --gold:         #9c752a;
  --gold-bright:  #c49a4d;
  --gold-glow:    rgba(156, 117, 42, 0.40);

  --maxw: 1440px;
  --gutter: clamp(20px, 4vw, 48px);
  --radius: 16px;
  --radius-sm: 10px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: 'Roboto', system-ui, -apple-system, sans-serif;
  --font-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-display: 'Corleone', var(--font-serif);   /* fonte de marca p/ títulos e subtítulos */
}

/* Fonte de marca — aplicada apenas em títulos e subtítulos das sections */
@font-face {
  font-family: 'Corleone';
  src: url('../assets/font/corleone.regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font);
  background: var(--black);
  color: var(--white);
  line-height: 1.6;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

::selection { background: var(--red); color: var(--white); }

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: clamp(48px, 6vw, 96px);
  position: relative;
}

.section-head {
  max-width: 760px;
  margin-bottom: clamp(40px, 5vw, 68px);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5.4vw, 3.8rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: 0.01em;
}

.section-desc {
  margin-top: 20px;
  color: var(--gray);
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  font-weight: 300;
  max-width: 620px;
}

.text-red { color: var(--red); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  padding: 14px 26px;
  border-radius: 10px;
  transition: transform .35s var(--ease), background .3s, color .3s, box-shadow .3s, border-color .3s;
  white-space: nowrap;
  border: 1px solid transparent;
}
.btn:active { transform: scale(.97); }

.btn-primary {
  background: var(--red);
  color: var(--white);
  box-shadow: 0 8px 30px -8px var(--red-glow);
}
.btn-primary:hover {
  background: var(--red-bright);
  transform: translateY(-2px);
  box-shadow: 0 14px 40px -8px var(--red-glow);
}

.btn-ghost {
  background: rgba(255,255,255,0.05);
  border-color: var(--line-strong);
  color: var(--white);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { background: rgba(255,255,255,0.1); transform: translateY(-2px); }

.btn-outline {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--white);
}
.btn-outline:hover { border-color: var(--red); color: var(--red-bright); }

.btn-block { width: 100%; justify-content: center; padding-block: 17px; }

.play-icon { display: inline-flex; align-items: center; }
.play-icon svg { width: 12px; height: 12px; }

/* ---------- Reveal on scroll (compartilhado) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; }

/* variações direcionais por tipo de componente */
.reveal-left  { transform: translateX(-44px); }
.reveal-right { transform: translateX(44px); }
.reveal-scale { transform: scale(.92); transform-origin: bottom; }
.reveal-left.in, .reveal-right.in, .reveal-scale.in { transform: none; }

/* stagger */
.reveal.d1 { transition-delay: .09s; }
.reveal.d2 { transition-delay: .18s; }
.reveal.d3 { transition-delay: .27s; }
.reveal.d4 { transition-delay: .36s; }
.reveal.d5 { transition-delay: .45s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; }
}

/* ---------- Widget flutuante do WhatsApp (fixo, canto inferior direito) ---------- */
.whatsapp-fab {
  position: fixed;
  right: clamp(16px, 3vw, 28px);
  bottom: clamp(16px, 3vw, 28px);
  z-index: 200;                 /* acima do header (100) e do menu de idioma (120) */
  width: 58px;
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #25d366;          /* verde oficial do WhatsApp */
  color: #ffffff;
  box-shadow: 0 10px 30px -6px rgba(37, 211, 102, 0.5);
  transition: transform .3s var(--ease), box-shadow .3s;
}
.whatsapp-fab svg { width: 30px; height: 30px; }
.whatsapp-fab:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 16px 44px -6px rgba(37, 211, 102, 0.65);
}
.whatsapp-fab:active { transform: scale(.96); }

/* pulso sutil de destaque */
.whatsapp-fab::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #25d366;
  z-index: -1;
  animation: waPulse 2.4s var(--ease) infinite;
}
@keyframes waPulse {
  0%   { transform: scale(1);   opacity: .5; }
  70%  { transform: scale(1.6); opacity: 0; }
  100% { opacity: 0; }
}
