/* ============================================================
   Londripell Papelaria — folha de estilo
   Identidade: vermelho forte sobre preto. Sério, fino e caprichado.
   Tipografia editorial: Fraunces (serifada, títulos) + Inter (texto).
   ============================================================ */

:root {
  --bg:          #0d0d0f;   /* fundo principal — preto profundo */
  --bg-alt:      #111114;   /* seções alternadas */
  --card:        #16161a;   /* cards */
  --card-hi:     #1c1c21;   /* card em hover / mídia */
  --line:        rgba(255, 255, 255, 0.09);   /* hairline padrão */
  --line-strong: rgba(255, 255, 255, 0.18);

  --red:         #e50914;   /* vermelho forte / destaque */
  --red-deep:    #b00610;
  --red-soft:    #ff4b54;

  --white:       #f5f5f7;
  --muted:       #a6a6b0;   /* texto secundário */
  --muted-2:     #6a6a74;   /* legendas discretas */

  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans:  'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --maxw: 1160px;
  --radius: 16px;
  --radius-sm: 10px;
  --header-h: 76px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--white);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}

h1, h2, h3 {
  font-family: var(--serif);
  line-height: 1.12;
  margin: 0;
  letter-spacing: -0.015em;
  font-weight: 600;
}

p { margin: 0; }

a { color: inherit; text-decoration: none; }

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

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--red);
  margin: 0 0 16px;
  font-family: var(--sans);
}

.hl { color: var(--red); font-style: italic; }

/* ---------------- Botões ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 26px;
  border-radius: 999px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.94rem;
  letter-spacing: 0.005em;
  transition: transform .18s ease, background .22s ease, color .22s ease, border-color .22s ease;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 8px 30px -12px rgba(229, 9, 20, 0.7);
}
.btn-primary:hover { background: var(--red-deep); }

.btn-ghost {
  border-color: var(--line-strong);
  color: var(--white);
}
.btn-ghost:hover { border-color: var(--red); color: var(--red-soft); }

/* ---------------- Header ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(13, 13, 15, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 76px;
}

.wordmark {
  font-family: var(--serif);
  font-weight: 600;
  /* cresce no desktop, discreto no celular (onde divide a barra com o menu) */
  font-size: clamp(1.48rem, 1.2rem + 1vw, 1.72rem);
  letter-spacing: -0.02em;
  color: var(--red);
  display: inline-flex;
  align-items: baseline;
  gap: 11px;
  white-space: nowrap;
}
.wordmark-sub {
  font-family: var(--sans);
  color: var(--muted);
  font-weight: 600;
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
}

.nav {
  display: flex;
  gap: 34px;
  margin-left: auto;
}
.nav a {
  position: relative;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--muted);
  transition: color .2s ease;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 100%; height: 1px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.nav a:hover { color: var(--white); }
.nav a:hover::after { transform: scaleX(1); }

.btn-header { padding: 10px 20px; font-size: 0.88rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px;
  margin-left: auto;
}
.nav-toggle span {
  width: 26px; height: 2px;
  background: var(--white);
  transition: .2s ease;
}

/* ---------------- Hero — vídeo conduzido pelo scroll ----------------
   O GSAP ScrollTrigger prende (.hero-stage) no topo e injeta, ao redor
   dele, um pin-spacer com a altura do curso de scroll — por isso .hero-track
   não tem altura fixa: ela só existe pra envolver esse spacer e cresce
   junto com ele. Sem JavaScript, sem GSAP (CDN fora do ar) ou com movimento
   reduzido, o ScrollTrigger nunca é criado: o palco fica com sua altura
   normal, em fluxo, e a hero vira uma seção comum. */
.hero {
  position: relative;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.hero-track { position: relative; }

/* o cabeçalho é sticky e ocupa lugar no fluxo: o palco desconta essa altura
   e nasce logo abaixo dele, senão o rodapé da hero nasce fora da tela */
.hero-stage { height: calc(100vh - var(--header-h)); }

/* svh ignora a barra de endereço do celular, que aparece e some durante o scroll */
@supports (height: 100svh) {
  .hero-stage { height: calc(100svh - var(--header-h)); }
}

.hero-stage {
  position: relative;
  overflow: hidden;
  display: grid;
  background: var(--bg);
}
.hero-stage > * { grid-area: 1 / 1; }   /* tudo empilhado na mesma célula */

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 50%;   /* joga a mochila à direita, texto respira à esquerda */
  background: var(--bg);
  pointer-events: none;
  z-index: 0;
}
/* nenhum navegador desenha controles por cima */
.hero-video::-webkit-media-controls,
.hero-video::-webkit-media-controls-enclosure,
.hero-video::-webkit-media-controls-panel,
.hero-video::-webkit-media-controls-start-playback-button {
  display: none !important;
  -webkit-appearance: none;
}

/* escurece o lado do texto e mantém o brilho vermelho da hero antiga */
.hero-veil {
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(1100px 760px at 16% 48%, rgba(13, 13, 15, 0.94), rgba(13, 13, 15, 0.6) 38%, rgba(13, 13, 15, 0) 68%),
    radial-gradient(900px 480px at 84% -12%, rgba(229, 9, 20, 0.15), transparent 62%);
}

/* dissolve o chão do cenário e emenda o vídeo na seção seguinte */
.hero-fade {
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    transparent 46%,
    rgba(13, 13, 15, 0.55) 72%,
    rgba(13, 13, 15, 0.92) 90%,
    var(--bg) 100%
  );
}

.hero-inner {
  z-index: 2;
  align-self: center;
  will-change: opacity, transform;
}
.hero-title {
  font-size: clamp(2.4rem, 5.7vw, 4.2rem);
  font-weight: 500;
  margin-bottom: 26px;
  letter-spacing: -0.025em;
  max-width: 15ch;
  text-shadow: 0 2px 40px rgba(13, 13, 15, 0.6);
}
.hero-lead {
  font-size: clamp(1.05rem, 2.3vw, 1.28rem);
  color: var(--muted);
  max-width: 560px;
  margin: 0 0 38px;
  line-height: 1.6;
  text-shadow: 0 2px 30px rgba(13, 13, 15, 0.7);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* fecho: entra sobre o chão escuro depois que a mochila abre */
.hero-outro {
  z-index: 2;
  align-self: end;
  text-align: center;
  padding-bottom: clamp(56px, 8vh, 84px);
  opacity: 0;
  pointer-events: none;
  will-change: opacity, transform;
}
.hero-outro-title {
  font-size: clamp(1.9rem, 4.2vw, 3rem);
  font-weight: 500;
  text-shadow: 0 2px 30px rgba(13, 13, 15, 0.8);
}
.hero-outro-lead {
  color: var(--muted);
  max-width: 480px;
  margin: 16px auto 30px;
  text-shadow: 0 2px 24px rgba(13, 13, 15, 0.8);
}
.hero-outro .hero-actions { justify-content: center; }

.hero-cue {
  z-index: 3;
  align-self: end;
  justify-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding-bottom: 22px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--muted-2);
  pointer-events: none;
}
.hero-cue-line {
  width: 1px;
  height: 38px;
  background: linear-gradient(var(--muted-2), transparent);
}

.hero-progress {
  z-index: 4;
  align-self: end;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
}

/* ---------------- Seções ---------------- */
.section { padding: clamp(72px, 9.5vw, 124px) 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 680px; margin-bottom: 60px; }
.section-title {
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  font-weight: 500;
}
.section-note {
  margin-top: 44px;
  color: var(--muted);
  font-size: 1rem;
}

/* ---------------- Cards de categoria ---------------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(244px, 1fr));
  gap: 20px;
}
.card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px 30px;
  transition: border-color .25s ease, transform .25s ease, background .25s ease;
}
.card:hover {
  border-color: var(--line-strong);
  transform: translateY(-4px);
  background: var(--card-hi);
}
.card-mark {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--red);
  margin-bottom: 20px;
  font-feature-settings: "tnum";
}
.card h3 { font-size: 1.24rem; font-weight: 600; margin-bottom: 12px; }
.card p { color: var(--muted); font-size: 0.96rem; line-height: 1.6; }

/* ---------------- Carrossel de produtos ---------------- */
.carousel-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  max-width: none;
  margin-bottom: 0;
}
.carousel-controls { display: flex; gap: 10px; flex-shrink: 0; }
.carousel-btn {
  width: 48px; height: 48px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--white);
  font-size: 1.05rem;
  cursor: pointer;
  transition: border-color .2s ease, color .2s ease, background .2s ease;
}
.carousel-btn:hover { border-color: var(--red); color: var(--red-soft); }
.carousel-btn:disabled { opacity: 0.35; cursor: default; }

.carousel {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 8px 28px 24px;
  margin-top: 44px;
  cursor: grab;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.carousel::-webkit-scrollbar { display: none; }
.carousel.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  scroll-behavior: auto;
}
.carousel.is-dragging .product { pointer-events: none; }

.product {
  flex: 0 0 clamp(240px, 42vw, 300px);
  scroll-snap-align: start;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .25s ease, transform .25s ease;
}
.product:hover { border-color: var(--line-strong); transform: translateY(-4px); }

.product-media {
  position: relative;
  height: 218px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background:
    radial-gradient(300px 180px at 50% 0%, rgba(229, 9, 20, 0.14), transparent 70%),
    linear-gradient(150deg, #191920, #0f0f13);
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  cursor: pointer;
}
.product-media:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: -3px;
}
.product-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.2,.6,.2,1);
  -webkit-user-drag: none;
  user-select: none;
}
.product:hover .product-media img { transform: scale(1.06); }
/* Fallback elegante quando a foto ainda não existe (img é removida via onerror) */
.product-media-fallback {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 500;
  color: rgba(229, 9, 20, 0.55);
  letter-spacing: -0.02em;
  user-select: none;
}

/* Convite ao clique: some no repouso, aparece no hover/foco */
.product-media-cta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 26px 14px 12px;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  text-align: center;
  color: #fff;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .3s ease, transform .3s ease;
}
.product:hover .product-media-cta,
.product-media:focus-visible .product-media-cta {
  opacity: 1;
  transform: none;
}
/* Em telas de toque não existe hover — o rótulo fica sempre visível */
@media (hover: none) {
  .product-media-cta { opacity: 1; transform: none; }
}

.product-body { padding: 22px 22px 26px; }
.product-tag {
  display: inline-block;
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 600;
  color: var(--red);
  margin-bottom: 12px;
}
.product-body h3 { font-size: 1.12rem; font-weight: 600; margin-bottom: 9px; }
.product-body p { color: var(--muted); font-size: 0.92rem; line-height: 1.55; }

.carousel-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 8px;
}
.carousel-dot {
  width: 7px; height: 7px;
  border-radius: 999px;
  background: var(--line-strong);
  border: 0;
  padding: 0;
  cursor: pointer;
  transition: width .3s ease, background .3s ease;
}
.carousel-dot.is-active { background: var(--red); width: 26px; }

.carousel-note { margin-top: 24px; text-align: center; font-size: 0.9rem; }

/* ---------------- Diferenciais ---------------- */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(264px, 1fr));
  gap: 46px 52px;
}
.feature { border-top: 2px solid var(--red); padding-top: 26px; }
.feature h3 { font-size: 1.32rem; font-weight: 600; margin-bottom: 12px; }
.feature p { color: var(--muted); line-height: 1.6; }

/* ---------------- Sobre ---------------- */
.about {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 64px;
  align-items: center;
}
.about-text p { color: var(--muted); margin: 20px 0 0; line-height: 1.7; }
.about-badge {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  background:
    radial-gradient(520px 280px at 50% 0%, rgba(229, 9, 20, 0.2), transparent 70%),
    var(--card);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  text-align: center;
  padding: 28px;
}
.about-badge-word {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  font-weight: 500;
  color: var(--red);
  letter-spacing: -0.025em;
}
.about-badge-rule { width: 40px; height: 1px; background: var(--line-strong); }
.about-badge-tag {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: var(--muted);
  font-weight: 600;
}

/* ---------------- Contato ---------------- */
.contact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(244px, 1fr));
  gap: 38px;
}
.contact-block h3 {
  font-family: var(--sans);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 600;
  color: var(--red);
  margin-bottom: 14px;
}
.contact-block p { margin: 0 0 22px; color: var(--white); line-height: 1.7; }
.contact-link { color: var(--muted); transition: color .2s ease; }
.contact-link:hover { color: var(--red-soft); }

.map {
  margin-top: 48px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  line-height: 0;
  filter: grayscale(0.3) contrast(1.05);
}
.map iframe { display: block; width: 100%; }

/* ---------------- Depoimentos ---------------- */
.stars { display: inline-flex; gap: 3px; }
.star { color: var(--line-strong); font-size: 1rem; line-height: 1; }
.star.on { color: var(--red); }

.rating-summary {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 26px 30px;
  margin-bottom: 44px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  width: fit-content;
}
.rating-score { display: flex; align-items: baseline; gap: 6px; }
.rating-number {
  font-family: var(--serif);
  font-size: 3rem;
  font-weight: 500;
  color: var(--white);
  line-height: 1;
}
.rating-max { color: var(--muted-2); font-size: 1rem; }
.rating-detail .stars { font-size: 1.15rem; margin-bottom: 6px; }
.rating-detail p { color: var(--muted); font-size: 0.9rem; }

.testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}
.testimonial {
  margin: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: border-color .25s ease, transform .25s ease;
}
.testimonial:hover { border-color: var(--line-strong); transform: translateY(-4px); }
.testimonial blockquote {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.12rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--white);
  letter-spacing: -0.01em;
}
.testimonial figcaption { display: flex; flex-direction: column; gap: 2px; margin-top: auto; }
.testimonial-name { font-weight: 600; font-size: 0.95rem; }
.testimonial-role {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted-2);
  font-weight: 600;
}

/* ---------------- Orçamento (CTA) ---------------- */
.quote-cta {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 56px;
  align-items: center;
  background:
    radial-gradient(600px 320px at 88% 0%, rgba(229, 9, 20, 0.16), transparent 65%),
    var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(36px, 5vw, 60px);
}
.quote-cta .section-title { margin-bottom: 20px; }
.quote-cta-lead { color: var(--muted); line-height: 1.65; margin-bottom: 26px; }
.quote-steps {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  counter-reset: step;
}
.quote-steps li {
  position: relative;
  padding-left: 40px;
  color: var(--white);
  font-size: 0.98rem;
  counter-increment: step;
}
.quote-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: -1px;
  width: 26px; height: 26px;
  border-radius: 999px;
  background: rgba(229, 9, 20, 0.14);
  border: 1px solid var(--red);
  color: var(--red-soft);
  font-family: var(--serif);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.quote-cta-action { text-align: center; }
.btn-lg { padding: 16px 32px; font-size: 1rem; width: 100%; }
.quote-cta-note { margin-top: 16px; color: var(--muted-2); font-size: 0.85rem; }

/* ---------------- Footer ---------------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 54px 0;
  background: var(--bg);
}
.footer-inner { display: flex; flex-direction: column; gap: 14px; }
.wordmark-footer { font-size: 1.55rem; }
.footer-tag { margin: 6px 0 0; color: var(--muted); }
.footer-copy { margin: 0; color: var(--muted-2); font-size: 0.85rem; }

/* ---------------- Responsivo ---------------- */
@media (max-width: 760px) {
  .nav {
    position: fixed;
    inset: 76px 0 auto 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--line);
    padding: 8px 28px 20px;
    display: none;
  }
  body.nav-open .nav { display: flex; }
  .nav a { padding: 15px 0; border-bottom: 1px solid var(--line); }
  .nav a::after { display: none; }
  .btn-header { display: none; }
  .nav-toggle { display: flex; }
  .about { grid-template-columns: 1fr; gap: 40px; }
  .about-badge { order: -1; max-width: 320px; }
  .quote-cta { grid-template-columns: 1fr; gap: 36px; }
  .rating-summary { width: auto; }

  /* o curso do vídeo em si (mais curto no celular) é definido em JS, na
     função courseLength() — dedo rola mais devagar que a roda do mouse */
  .hero-video { object-position: 50% 44%; }
  .hero-veil {
    background:
      linear-gradient(to bottom, rgba(13, 13, 15, 0.93) 0%, rgba(13, 13, 15, 0.5) 44%, transparent 64%),
      radial-gradient(700px 380px at 88% -10%, rgba(229, 9, 20, 0.15), transparent 62%);
  }
  .hero-inner { align-self: start; padding-top: 34px; }
  .hero-title { max-width: none; }
}

/* ---------------- Acessibilidade ---------------- */
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
  /* nada de prender a página: o script nem cria o ScrollTrigger nesse caso,
     a hero fica com sua altura normal e parada no primeiro quadro */
}
