/* =========================================================
   COYOTE — Site Institucional
   Design System · estética premium, sólida e minimalista
   ========================================================= */

/* ---------- Design Tokens ---------- */
:root {
  --red:        #69090c;
  --red-700:    #8b0c10;
  --red-500:    #ae0f14;
  --cream:      #fff5d0;
  --cream-2:    #fbeec1;
  --yellow:     #fae82c;
  --orange:     #fca830;
  --ink:        #414042;
  --black:      #000000;
  --white:      #ffffff;

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

  --maxw: 1200px;
  --pad: clamp(1.5rem, 4vw, 3.5rem);

  --radius: 4px;          /* cantos discretos, visual sólido */
  --header-h: 152px;      /* logo + menu (desktop) */
  --header-h-scrolled: 54px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h-scrolled) + 18px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.age-locked { overflow: hidden; }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
h1, h2, h3, h4 { line-height: 1.1; letter-spacing: -0.02em; font-weight: 800; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: .01em;
  padding: 1rem 2rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .3s var(--ease), background .25s var(--ease), color .25s var(--ease), box-shadow .3s var(--ease);
}
.btn--lg { padding: 1.15rem 2.4rem; font-size: 1.05rem; }

.btn--accent {
  background: var(--yellow);
  color: var(--red);
}
.btn--accent:hover {
  background: var(--orange);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -14px rgba(252,168,48,.7);
}
.btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.45);
}
.btn--ghost:hover { background: rgba(255,255,255,.1); border-color: var(--white); }

/* ---------- Section helpers ---------- */
.section-cream { background: var(--white); color: var(--ink); }
.section-red   { background: var(--red);  color: var(--cream); }
section[id] { scroll-margin-top: calc(var(--header-h-scrolled) + 18px); }

.section-cream, .section-red { padding-block: clamp(4rem, 8vw, 7rem); }

.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1.1rem;
}
.eyebrow--yellow { color: var(--yellow); }

.section-head { max-width: 820px; margin: 0 auto clamp(2.5rem, 5vw, 4rem); text-align: center; }
.section-head h2 { font-size: clamp(2rem, 5vw, 3.4rem); margin-bottom: 1.1rem; }
.section-cream .section-head h2 { color: var(--red); }
.section-red .section-head h2 { color: var(--cream); }
.section-head p { font-size: clamp(1.05rem, 1.7vw, 1.22rem); opacity: .9; }
.hl { color: var(--yellow); }
.hero .hl { color: var(--white); }
.section-cream .hl { color: var(--orange); }

/* =========================================================
   MODAL DE IDADE
   ========================================================= */
.age-gate {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background:
    radial-gradient(120% 120% at 50% 0%, rgba(139,12,16,.55) 0%, rgba(20,1,2,.94) 70%),
    rgba(8,0,1,.9);
  backdrop-filter: blur(8px);
  transition: opacity .4s var(--ease), visibility .4s var(--ease);
}
.age-gate.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }

.age-gate__card {
  width: 100%;
  max-width: 480px;
  text-align: center;
  background: linear-gradient(160deg, var(--red) 0%, var(--red-700) 100%);
  border: 1px solid rgba(250,232,44,.3);
  border-radius: var(--radius);
  padding: clamp(2rem, 5vw, 3rem) clamp(1.5rem, 4vw, 2.5rem);
  box-shadow: 0 40px 100px -30px rgba(0,0,0,.85);
  animation: gate-in .5s var(--ease) both;
}
@keyframes gate-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.age-gate__logo { height: 50px; width: auto; margin: 0 auto 1.6rem; }
.age-gate__card h2 { color: var(--white); font-size: clamp(1.5rem, 4vw, 2rem); margin-bottom: .9rem; }
.age-gate__card p { color: rgba(255,245,208,.9); font-size: 1rem; margin-bottom: 2rem; }
.age-gate__actions { display: flex; flex-direction: column; gap: .8rem; }
.age-gate__actions .btn { width: 100%; }

/* =========================================================
   HEADER (logo centralizada + menu abaixo)
   ========================================================= */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--red);
  border-bottom: 1px solid rgba(255,245,208,.12);
  transition: box-shadow .35s var(--ease);
}
.header.is-scrolled { box-shadow: 0 10px 30px -14px rgba(0,0,0,.6); }

.header__bar {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 1.15rem var(--pad);
  max-height: 86px;
  overflow: hidden;
  transition: max-height .45s var(--ease), padding .45s var(--ease), opacity .35s var(--ease);
}
.header__logo {
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.header__logo img {
  height: 46px; width: auto;
  transition: height .35s var(--ease);
}
.header.is-scrolled .header__bar {
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  opacity: 0;
  pointer-events: none;
}
.header.is-scrolled .header__logo {
  opacity: 0;
  transform: translateY(-8px) scale(.96);
}

.nav {
  position: relative;
  border-top: 1px solid rgba(255,245,208,.1);
}
.nav__brand-icon {
  position: absolute;
  left: var(--pad);
  top: 50%;
  z-index: 2;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-10px, -50%) scale(.94);
  transition: opacity .35s var(--ease), transform .35s var(--ease), visibility .35s var(--ease);
}
.nav__brand-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.header.is-scrolled .nav__brand-icon {
  opacity: .92;
  visibility: visible;
  pointer-events: auto;
  transform: translate(0, -50%) scale(1);
}
.nav__list {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: .35rem;
  padding: .55rem calc(var(--pad) + 3rem);
}
.nav__list a {
  display: inline-block;
  color: var(--cream);
  font-weight: 600;
  font-size: .92rem;
  letter-spacing: .02em;
  padding: .55rem .95rem;
  border-radius: var(--radius);
  transition: color .25s var(--ease), background .25s var(--ease);
}
.nav__list a:hover { color: var(--yellow); }
.nav__sac {
  background: var(--yellow);
  color: var(--red) !important;
  font-weight: 700;
}
.nav__sac:hover { background: var(--orange); color: var(--red) !important; }

/* toggle (mobile) */
.nav__toggle {
  display: none;
  position: absolute;
  right: var(--pad);
  top: 50%;
  transform: translateY(-50%);
  flex-direction: column;
  gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px;
}
.nav__toggle span { width: 26px; height: 2px; background: var(--cream); border-radius: 2px; transition: transform .3s var(--ease), opacity .3s var(--ease); }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  background-color: var(--red);
  background-image: url('assets/hero.png');   /* colorida, sem filtro */
  background-size: cover;
  background-position: center 35%;
  color: var(--white);
  min-height: 78vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(35,2,4,.84) 0%, rgba(40,3,5,.6) 34%, rgba(40,3,5,.1) 60%, rgba(40,3,5,0) 78%);
  z-index: 1;
}
.hero__inner { position: relative; z-index: 2; padding-block: clamp(3rem, 7vw, 5rem); width: 100%; }
.hero__content { max-width: 640px; }
.hero__title { font-size: clamp(2.3rem, 5.5vw, 4.4rem); margin-bottom: 1.4rem; text-wrap: balance; }
.hero__subtitle { font-size: clamp(1.05rem, 1.9vw, 1.35rem); max-width: 540px; opacity: .95; margin-bottom: 2.2rem; }
.hero__mobile-figure { display: none; }

/* =========================================================
   01 · NOSSOS PRODUTOS (overview)
   ========================================================= */
.overview__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
.prod-tile {
  display: block;
  background: var(--white);
  border: 1px solid rgba(105,9,12,.12);
  border-radius: var(--radius);
  padding: 1.2rem 1.2rem 1.65rem;
  text-align: center;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.prod-tile:hover {
  transform: translateY(-4px);
  border-color: rgba(105,9,12,.22);
  box-shadow: 0 18px 34px -28px rgba(105,9,12,.28);
}
.prod-tile__media {
  background: #141415;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1.3rem;
  aspect-ratio: 1 / 1;
}
.prod-tile__media img { width: 100%; height: 100%; object-fit: cover; }
.prod-tile h3 { font-size: 1.4rem; color: var(--red); margin-bottom: .4rem; }
.prod-tile__sub {
  color: rgba(65,64,66,.78);
  font-size: .98rem;
  line-height: 1.45;
  margin-bottom: 1rem;
}
@media (min-width: 769px) {
  .prod-tile__sub--trad span { display: block; }
}
.prod-tile__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: .62rem 1.1rem;
  border: 1px solid rgba(105,9,12,.2);
  border-radius: var(--radius);
  color: var(--red);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  line-height: 1;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.prod-tile:hover .prod-tile__cta {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
  transform: translateY(-1px);
}
.prod-tile__sub { font-size: .82rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--red-500); }

/* =========================================================
   02 · A MARCA COYOTE
   ========================================================= */
.brand__text {
  max-width: 880px;
  margin: 0 auto clamp(2.8rem, 5vw, 4rem);
  text-align: center;
}
.brand__text p { font-size: clamp(1.05rem, 1.7vw, 1.2rem); margin-bottom: 1.2rem; color: var(--cream); opacity: .94; }
.brand__text p:last-child { margin-bottom: 0; }

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.pillar {
  background: rgba(255,245,208,.06);
  border: 1px solid rgba(255,245,208,.16);
  border-top: 3px solid var(--yellow);
  border-radius: var(--radius);
  padding: 2.2rem 1.8rem;
  transition: transform .35s var(--ease), background .35s var(--ease);
}
.pillar:hover { transform: translateY(-5px); background: rgba(255,245,208,.1); }
.pillar__num { display: block; font-size: 2.2rem; font-weight: 800; color: var(--yellow); line-height: 1; margin-bottom: .7rem; }
.pillar h3 { font-size: 1.4rem; color: var(--cream); margin-bottom: .6rem; }
.pillar p { font-size: 1rem; color: var(--cream); opacity: .88; }

/* =========================================================
   03–05 · SEÇÕES DE PRODUTO (duas colunas)
   ========================================================= */
.product__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(2.5rem, 6vw, 5.5rem);
}
.product--reverse .product__text { order: 2; }
.product--reverse .product__media { order: 1; }

.product__text h2 { font-size: clamp(2rem, 4.5vw, 3.2rem); margin-bottom: .8rem; }
.product__sub {
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 1.6rem;
}
.product__text p { font-size: clamp(1.02rem, 1.6vw, 1.15rem); margin-bottom: 1.1rem; }
.product__text p:last-child { margin-bottom: 0; }

.section-cream .product__text h2 { color: var(--red); }
.section-cream .product__sub { color: var(--red-500); }
.section-cream .product__text p { color: var(--ink); }
.section-red .product__text h2 { color: var(--yellow); }
.section-red .product__sub { color: var(--orange); }
.section-red .product__text p { color: var(--cream); }

.product__media {
  border-radius: var(--radius);
  overflow: hidden;
}
.product__media img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: 0 36px 70px -34px rgba(0,0,0,.55);
}

/* =========================================================
   06 · FALE COM O SAC
   ========================================================= */
.sac__inner { max-width: 720px; margin-inline: auto; text-align: center; }
.sac__inner h2 { font-size: clamp(2rem, 5vw, 3.2rem); color: var(--cream); margin-bottom: 1rem; }
.sac__inner > p { font-size: clamp(1.05rem, 1.7vw, 1.2rem); color: var(--cream); opacity: .92; margin-bottom: 2.2rem; }
.sac__contact {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: .35rem;
  margin-bottom: 2rem;
}
.sac__label { font-size: .8rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--yellow); }
.sac__number { font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 800; color: var(--cream); letter-spacing: -0.01em; }
.sac__number:hover { color: var(--yellow); }

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  background: var(--red);
  color: var(--cream);
  border-top: 1px solid rgba(255,245,208,.18);
}
.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.35rem;
  padding-block: clamp(2rem, 4vw, 2.8rem);
  text-align: center;
}
.footer__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: .35rem clamp(1rem, 2.2vw, 1.7rem);
}
.footer__nav a {
  color: var(--cream);
  font-size: .9rem;
  font-weight: 600;
  opacity: .78;
  transition: opacity .25s var(--ease), color .25s var(--ease);
}
.footer__nav a:hover {
  color: var(--yellow);
  opacity: 1;
}
.footer__social {
  display: flex;
  align-items: center;
  gap: .7rem;
  flex: 0 0 auto;
}
.footer__social a {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,245,208,.2);
  border-radius: 50%;
  color: var(--cream);
  opacity: .82;
  transition: opacity .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease), background .25s var(--ease);
}
.footer__social a:hover {
  color: var(--yellow);
  border-color: rgba(250,232,44,.42);
  background: rgba(255,245,208,.045);
  opacity: 1;
  transform: translateY(-2px);
}
.footer__social svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.footer__copy {
  color: var(--cream);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .02em;
  opacity: .56;
}

/* =========================================================
   ANIMAÇÕES (reveal on scroll)
   ========================================================= */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); will-change: opacity, transform; }
.reveal.is-visible { opacity: 1; transform: none; }
.overview__grid .prod-tile:nth-child(2), .pillars .pillar:nth-child(2) { transition-delay: .1s; }
.overview__grid .prod-tile:nth-child(3), .pillars .pillar:nth-child(3) { transition-delay: .2s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* =========================================================
   RESPONSIVO
   ========================================================= */
@media (max-width: 1024px) {
  .nav__list { gap: .15rem; }
  .nav__list a { padding: .5rem .7rem; font-size: .86rem; }
}

@media (max-width: 768px) {
  :root { --header-h: 78px; --header-h-scrolled: 78px; }

  /* Header compacto + drawer */
  .header__bar { justify-content: center; padding: 1rem var(--pad); max-height: 78px; opacity: 1; }
  .header.is-scrolled .header__bar { max-height: 78px; padding: 1rem var(--pad); opacity: 1; pointer-events: auto; }
  .header__logo img { height: 38px; }
  .header.is-scrolled .header__logo { opacity: 1; transform: none; }
  .nav__brand-icon { display: none; }
  .nav__toggle { display: flex; }

  .nav {
    position: absolute;
    left: 0; right: 0; top: 100%;
    background: var(--red);
    border-top: 1px solid rgba(255,245,208,.12);
    box-shadow: 0 18px 40px -18px rgba(0,0,0,.6);
    max-height: 0;
    overflow: hidden;
    transition: max-height .4s var(--ease);
  }
  .nav.is-open { max-height: 80vh; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; padding: .5rem var(--pad) 1.2rem; }
  .nav__list a { padding: .95rem .4rem; font-size: 1rem; border-bottom: 1px solid rgba(255,245,208,.08); border-radius: 0; }
  .nav__sac { margin-top: .8rem; border-radius: var(--radius); text-align: center; }

  /* Hero mobile: texto centralizado acima da imagem */
  .hero {
    background-image: none;
    background: var(--red);
    min-height: auto;
    text-align: center;
  }
  .hero__overlay { display: none; }
  .hero__inner { padding-block: 2.6rem 0; }
  .hero__content { max-width: 100%; display: flex; flex-direction: column; align-items: center; }
  .hero__title { order: 1; font-size: clamp(2rem, 8.5vw, 2.7rem); }
  .hero__subtitle { order: 2; font-size: 1.08rem; }
  .hero__actions { order: 3; width: 100%; }
  .hero__actions .btn { width: 100%; }
  .hero__mobile-figure { order: 4; display: block; width: 100%; margin-top: 2.4rem; }
  .hero__mobile-figure img { width: 100%; }

  /* Overview em coluna única */
  .overview__grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }

  /* Marca */
  .pillars { grid-template-columns: 1fr; }

  /* Produtos: texto acima, imagem abaixo */
  .product__inner { grid-template-columns: 1fr; gap: 2rem; }
  .product__text { order: 1 !important; }
  .product__media { order: 2 !important; max-width: 460px; margin-inline: auto; }
  .product__text { text-align: center; }
  .product__sub { display: block; }

  /* Footer */
  .footer__inner { text-align: center; }
  .footer__nav { justify-content: center; }
}

@media (max-width: 480px) {
  :root { --pad: 1.5rem; }
  .footer__nav { flex-direction: column; gap: .75rem; }
  .btn { width: 100%; }
}
