/* =========================================================
   HM PELÍCULAS — LANDING PAGE
   HTML/CSS/JS puro — sem frameworks ou build tools
========================================================= */

/* ---------- Reset básico ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, h1, h2, h3, p, ul { margin: 0; padding: 0; }
ul { list-style: none; }
a { text-decoration: none; color: inherit; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; border: none; background: none; cursor: pointer; }

/* ---------- Design tokens ---------- */
:root {
  --orange: #F37435;
  --orange-dark: #D65F22;
  --orange-soft: #FBEDE4;
  --offwhite: #F8F0EC;
  --ink: #3A2A22;
  --ink-soft: rgba(58, 42, 34, .78);
  --white: #FFFFFF;
  --dark: #1D1712;
  --green: #3FA65C;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --container: 1220px;
  --pad-inline: clamp(1.25rem, 5vw, 4rem);
  --radius-lg: 28px;
  --radius-md: 18px;

  --ease: cubic-bezier(.16, .84, .44, 1);
}

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--offwhite);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad-inline);
}

em { font-style: italic; }

:focus-visible {
  outline: 2px solid var(--orange-dark);
  outline-offset: 3px;
  border-radius: 4px;
}
.hero :focus-visible, .final-cta :focus-visible {
  outline-color: var(--white);
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.1rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s var(--ease), color .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--orange); color: var(--white); }
.btn-primary:hover { background: var(--orange-dark); box-shadow: 0 12px 24px -10px rgba(243, 116, 53, .55); }

.btn-offwhite { background: var(--offwhite); color: var(--orange); }
.btn-offwhite:hover { background: var(--white); box-shadow: 0 12px 24px -10px rgba(0, 0, 0, .25); }

.btn-outline-white { background: transparent; color: var(--white); border: 2px solid rgba(255, 255, 255, .8); padding: .9rem 2rem; }
.btn-outline-white:hover { background: rgba(255, 255, 255, .12); border-color: var(--white); }

.btn-outline-primary { background: transparent; color: var(--orange); border: 2px solid var(--orange); padding: .9rem 2rem; }
.btn-outline-primary:hover { background: var(--orange-soft); }

.btn-sm { padding: .7rem 1.5rem; font-size: .75rem; }

.btn-group { display: flex; flex-wrap: wrap; gap: 1rem; }

/* =========================================================
   HEADER
========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--offwhite);
  transition: box-shadow .3s ease;
}
.site-header.is-scrolled { box-shadow: 0 4px 24px rgba(58, 42, 34, .08); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1.1rem;
}

.logo { display: flex; align-items: center; gap: .7rem; flex-shrink: 0; }

.logo-img {
  height: 60px;
  width: auto;
  max-width: 100%;
}

.logo-mark {
  width: 38px;
  height: 38px;
  min-width: 38px;
  border-radius: 10px;
  background: var(--orange);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  transform: rotate(-8deg);
}

.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-text-top { font-weight: 700; color: var(--orange); font-size: 1.05rem; letter-spacing: .01em; }
.logo-text-bottom { font-weight: 500; color: var(--orange); font-size: .68rem; letter-spacing: .01em; margin-top: 2px; }

.nav { display: flex; align-items: center; gap: 2.4rem; }
.nav-link {
  color: var(--orange);
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  transition: opacity .2s ease;
}
.nav-link:hover { opacity: .65; }

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}
.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--orange);
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.menu-toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.is-active span:nth-child(2) { opacity: 0; }
.menu-toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   REVEAL ANIMATIONS
========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

.reveal-scale {
  opacity: 0;
  transform: translateY(20px) scale(.94);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.reveal-scale.in-view { opacity: 1; transform: translateY(0) scale(1); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal-scale { opacity: 1; transform: none; transition: none; }
  .carousel-slide { transition: opacity .3s linear !important; }
}

/* =========================================================
   HERO
========================================================= */
.hero {
  background: var(--orange);
  padding-block: clamp(2.75rem, 6vw, 6rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(2.5rem, 5vw, 4rem);
  align-items: center;
}

.hero-content h1 {
  color: var(--white);
  font-weight: 400;
  font-size: clamp(2rem, 3vw + 1.3rem, 3.35rem);
  line-height: 1.15;
  margin-bottom: 1.4rem;
}
.hero-content h1 strong { font-weight: 700; }

.hero-text {
  color: rgba(255, 255, 255, .92);
  font-size: clamp(1rem, .3vw + .95rem, 1.1rem);
  line-height: 1.65;
  max-width: 460px;
  margin-bottom: 2.2rem;
}

/* =========================================================
   SOBRE
========================================================= */
.about { 
  padding-block: clamp(3.5rem, 7vw, 7rem); 
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
}

.about-media {
  border-radius: var(--radius-lg);
  aspect-ratio: 16/9; /* Horizontal no mobile */
  width: 100%; 
  min-width: 0; 
}

/* Garante que o contêiner das setas assuma o espaço correto */
.about-media .carousel-container {
  width: 100%;
  height: 100%;
}

/* Remove a sombra dupla e adapta o carrossel ao espaço do card */
.about-media .carousel {
  aspect-ratio: auto;
  width: 100%;
  height: 100%;
  box-shadow: 0 30px 60px -30px rgba(58, 42, 34, .35);
  border-radius: var(--radius-lg); /* CORREÇÃO: Força a variável de borda arredondada */
}

.about-content h2 { 
  color: var(--orange); 
  font-weight: 400; 
  font-size: clamp(1.9rem, 2.4vw + 1.2rem, 2.7rem); 
  line-height: 1.2; 
  margin-bottom: 1.4rem; 
}

.about-content h2 em { 
  font-weight: 700; 
}

.about-content p { 
  color: var(--ink-soft); 
  font-size: clamp(1rem, .2vw + .95rem, 1.08rem); 
  line-height: 1.75; 
  max-width: 520px; 
  margin-bottom: 1.15rem; 
}

.about-content .btn-group { 
  margin-top: 1.6rem; 
}

/* Ajustes para Desktop */
@media (min-width: 768px) {
  .about-grid { 
    grid-template-columns: .85fr 1.15fr; 
  }
  .about-media { 
    aspect-ratio: 4/4.6; 
  }
}

/* =========================================================
   CARROSSEL E SETAS
========================================================= */
.carousel-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 4.7;
  box-shadow: 0 40px 70px -30px rgba(0, 0, 0, .5);
  width: 100%;
  height: 100%;
}

.carousel-track { position: relative; width: 100%; height: 100%; }

.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s ease;
}
.carousel-slide.is-active { opacity: 1; visibility: visible; }

/* Setas de Navegação (Aumentadas sutilmente) */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px; /* Aumentado de 40px para 48px */
  height: 48px;
  background: var(--white);
  color: var(--orange);
  border: 1px solid rgba(243, 116, 53, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: all 0.3s var(--ease);
}

.carousel-btn svg { width: 26px; height: 26px; } /* Ícone interno um pouco maior */
.carousel-btn:hover { background: var(--orange); color: var(--white); }

/* Regra dos 50%: Se a largura é 48px, o recuo negativo exato é de 24px */
.carousel-btn.prev { left: -24px; }
.carousel-btn.next { right: -24px; }

/* Navegação em pontos (dots) */
.carousel-dots {
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: .45rem;
  z-index: 2;
}
.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .45);
  padding: 0;
  transition: all .3s var(--ease);
}
.dot.is-active { width: 20px; border-radius: 4px; background: var(--white); }

/* Imagens Preenchendo 100% do card sem margin/padding */
.placeholder-photo {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .9rem;
  color: var(--white);
  text-align: center;
  padding: 1.5rem;
}

/* Classe específica para fotos (Hero e Sobre) para remover padding */
.placeholder-photo.image-fill {
  padding: 0;
  background: transparent;
}
.placeholder-photo.image-fill img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* =========================================================
   O QUE PODEMOS FAZER POR VOCÊ
========================================================= */
.features { padding-block: clamp(3rem, 6vw, 6rem); }
.features-title { text-align: center; color: var(--orange); font-weight: 400; font-size: clamp(1.7rem, 2vw + 1.2rem, 2.5rem); margin-bottom: clamp(2.25rem, 5vw, 3.25rem); }
.features-title em { font-weight: 700; }

.pill-list { display: flex; flex-direction: column; gap: 1.1rem; max-width: 800px; margin-inline: auto; }
.pill { display: flex; align-items: center; gap: 1.1rem; background: var(--orange); border-radius: 999px; padding: 1.05rem 1.7rem; }
.pill-check { flex-shrink: 0; width: 34px; height: 34px; border-radius: 10px; background: var(--green); display: flex; align-items: center; justify-content: center; }
.pill-check svg { width: 19px; height: 19px; }
.pill p { color: var(--white); font-size: clamp(.92rem, .25vw + .88rem, 1.02rem); line-height: 1.5; }
.pill p strong { font-weight: 700; }

/* =========================================================
   CTA FINAL
========================================================= */
.final-cta { background: var(--orange); padding-block: clamp(3.5rem, 7vw, 7rem); }
.cta-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2.5rem, 5vw, 4rem); align-items: center; }

.cta-content h2 { color: var(--white); font-weight: 400; font-size: clamp(1.9rem, 3vw + 1.2rem, 2.85rem); line-height: 1.18; margin-bottom: 1.3rem; }
.cta-content h2 em { font-weight: 700; }
.cta-text { color: rgba(255, 255, 255, .92); font-size: clamp(1rem, .3vw + .95rem, 1.1rem); line-height: 1.65; max-width: 460px; margin-bottom: 2.2rem; }

/* =========================================================
   FOOTER
========================================================= */
.site-footer { background: var(--dark); padding-block: 2.2rem; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1.25rem; }
.logo-footer .logo-text-top, .logo-footer .logo-text-bottom { color: var(--offwhite); }
.logo-footer .logo-mark { background: var(--orange); }
.footer-copy { color: rgba(248, 240, 236, .55); font-size: .82rem; }
.footer-instagram { color: var(--orange); font-weight: 700; font-size: .85rem; letter-spacing: .02em; }
.footer-instagram:hover { opacity: .8; }

/* =========================================================
   RESPONSIVO
========================================================= */
@media (max-width: 1000px) {
  .nav { gap: 1.6rem; }
  .hero-grid, .about-grid, .cta-grid { grid-template-columns: 1fr; }
  .hero-media, .cta-media { max-width: 480px; margin-inline: auto; width: 100%; }
  .about-media { max-width: 480px; margin-inline: auto; width: 100%; order: -1; }
  .hero-content, .about-content, .cta-content { text-align: left; }
  .hero-text, .about-content p, .cta-text { max-width: 100%; }
}

@media (max-width: 860px) {
  .menu-toggle { display: flex; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; background: var(--offwhite); flex-direction: column; align-items: stretch; gap: 0; padding: 0 var(--pad-inline); max-height: 0; overflow: hidden; box-shadow: 0 12px 24px rgba(58, 42, 34, .1); transition: max-height .4s var(--ease), padding .4s var(--ease); }
  .nav.is-open { max-height: 340px; padding: .5rem var(--pad-inline) 1.5rem; }
  .nav-link { padding: .9rem 0; border-bottom: 1px solid rgba(58, 42, 34, .08); font-size: .9rem; }
  .nav-cta { margin-top: 1.1rem; align-self: flex-start; }
}

@media (max-width: 560px) {
  :root { --radius-lg: 22px; }
  .btn { padding: .9rem 1.7rem; font-size: .78rem; }
  .btn-outline-white, .btn-outline-primary { padding: .8rem 1.6rem; }
  .btn-group { gap: .8rem; }
  .pill { align-items: flex-start; padding: 1rem 1.3rem; border-radius: 28px; }
  .pill-check { margin-top: 2px; }
  .carousel, .about-media { aspect-ratio: 4 / 4.3; }
  .footer-inner { flex-direction: column; text-align: center; justify-content: center; }
  
  /* Reduz os botões do carrossel em telas menores para garantir proporção visual */
  .carousel-btn { width: 34px; height: 34px; }
  .carousel-btn.prev { left: -17px; }
  .carousel-btn.next { right: -17px; }
}

@media (max-width: 560px) {
  /* ... resto do seu código mobile ... */
  
  /* Reduz os botões do carrossel em telas menores para garantir proporção visual */
  .carousel-btn { width: 40px; height: 40px; }
  .carousel-btn.prev { left: -20px; }
  .carousel-btn.next { right: -20px; }
}

