/* ============================================
   Costela e Cia — Hero
   Churrasco · brasa · fogo lento · cores quentes
   ============================================ */

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

html {
  scroll-behavior: smooth;
}

html,
body {
  min-height: 100%;
  background: var(--bg);
}

img,
svg {
  display: block;
  max-width: 100%;
}

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

ul {
  list-style: none;
}

button {
  font: inherit;
  cursor: pointer;
}

::selection {
  background: var(--accent);
  color: #1a0d05;
}

:root {
  /* Surfaces — carvão / lenha queimada */
  --bg: #150d08;
  --bg-2: #211610;

  /* Ink — creme quente */
  --ink: #f8efe2;
  --ink-soft: rgba(248, 239, 226, 0.74);
  --ink-mute: rgba(248, 239, 226, 0.46);
  --line: rgba(248, 239, 226, 0.13);
  --line-strong: rgba(248, 239, 226, 0.26);

  /* Accent — brasa / chama */
  --accent: #ff6a1a;
  --accent-2: #ffac3d;
  --accent-soft: rgba(255, 106, 26, 0.18);
  --ember: #ff4310;

  /* Painel de vidro escurecido (carvão translúcido) */
  --panel: rgba(21, 13, 8, 0.42);

  /* Type */
  --f-display: "Fraunces", "Cormorant Garamond", Georgia, serif;
  --f-sans: "Hanken Grotesk", "Inter", system-ui, sans-serif;

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-sans);
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* ============================================
   TOPBAR
   ============================================ */
.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  padding: clamp(18px, 2.2vw, 26px) clamp(20px, 4vw, 56px);
  pointer-events: none;
}

.topbar-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  pointer-events: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  justify-self: start;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--accent-2);
  background: var(--panel);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 0 18px -6px rgba(255, 106, 26, 0.6);
}

.brand-mark svg {
  width: 18px;
  height: 18px;
  filter: drop-shadow(0 0 4px rgba(255, 106, 26, 0.55));
}

.brand-name {
  font-family: var(--f-display);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
}

.brand-name em {
  font-style: italic;
  text-transform: none;
  letter-spacing: 0.02em;
  color: var(--accent-2);
  font-weight: 400;
}

.topbar-nav {
  display: inline-flex;
  align-items: center;
  gap: 32px;
  padding: 10px 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.topbar-nav a {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  transition: color 0.3s var(--ease);
  position: relative;
}

.topbar-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.4s var(--ease-out);
}

.topbar-nav a:hover {
  color: var(--ink);
}

.topbar-nav a:hover::after {
  transform: scaleX(1);
}

.topbar-cta {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 12px 20px 12px 22px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--panel);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.4s var(--ease);
}

.topbar-cta svg {
  width: 14px;
  height: 14px;
  transition: transform 0.4s var(--ease);
}

.topbar-cta:hover {
  border-color: var(--accent);
  color: var(--accent-2);
  box-shadow: 0 0 22px -8px rgba(255, 106, 26, 0.7);
}

.topbar-cta:hover svg {
  transform: translateX(3px);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  flex-direction: column;
}

.hero-bg {
  position: absolute;
  /* fixa a imagem na altura do viewport inicial — não acompanha
     o hero caso ele cresça além da dobra */
  inset: 0 0 auto 0;
  height: 100vh;
  height: 100svh;
  z-index: -2;
  overflow: hidden;
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% center;
  filter: contrast(1.05) saturate(1.12) brightness(1.02);
  transform: scale(1);
  animation: heroPan 18s var(--ease-out) forwards;
}

.hero-img--mobile {
  display: none;
}

@keyframes heroPan {
  0% {
    transform: scale(1.04);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes heroPanMobile {
  0% {
    transform: scale(0.85);
  }
  100% {
    transform: scale(0.82);
  }
}

/* Véu escuro — funde a imagem no carvão e abre espaço pro texto */
.hero-veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 78% 100% at -8% 58%,
      rgba(21, 13, 8, 0.97) 0%,
      rgba(21, 13, 8, 0.62) 36%,
      transparent 66%),
    linear-gradient(100deg,
      rgba(21, 13, 8, 0.94) 0%,
      rgba(21, 13, 8, 0.72) 26%,
      rgba(21, 13, 8, 0.34) 52%,
      rgba(21, 13, 8, 0.08) 76%,
      transparent 100%),
    linear-gradient(to bottom,
      rgba(21, 13, 8, 0.4) 0%,
      transparent 24%,
      transparent 66%,
      rgba(21, 13, 8, 0.92) 100%);
  pointer-events: none;
}

/* Brilho de brasa — apenas um leve calor no rodapé que funde
   a foto no carvão. A foto já carrega o fogo; aqui é só transição. */
.hero-ember {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 58% 28% at 32% 100%,
      rgba(255, 106, 26, 0.12) 0%,
      transparent 72%);
  mix-blend-mode: screen;
  pointer-events: none;
}

.hero-grain {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='1.4' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.4 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  opacity: 0.2;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.hero-frame {
  position: relative;
  flex: 1;
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  padding: clamp(104px, 13vh, 168px) clamp(20px, 4vw, 64px) clamp(40px, 5vh, 72px);
}

/* ---------- Content column ---------- */
.hero-content {
  max-width: 760px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* Eyebrow */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 9px 18px 9px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  margin-bottom: clamp(28px, 4vh, 40px);
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px 2px rgba(255, 106, 26, 0.7), 0 0 0 4px var(--accent-soft);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 0 8px 2px rgba(255, 106, 26, 0.7), 0 0 0 4px var(--accent-soft);
  }
  50% {
    box-shadow: 0 0 14px 4px rgba(255, 106, 26, 0.45), 0 0 0 7px rgba(255, 106, 26, 0.08);
  }
}

.eyebrow-text strong {
  color: var(--ink);
  font-weight: 600;
}

/* Headline */
.headline {
  font-family: var(--f-display);
  font-weight: 350;
  /* escala pela MENOR dimensão (largura ou altura) — cabe na dobra
     em telas baixas sem precisar rolar */
  font-size: clamp(48px, min(7vw, 11.4vh), 122px);
  line-height: 0.94;
  letter-spacing: -0.025em;
  color: var(--ink);
  font-variation-settings: "opsz" 144, "SOFT" 40;
}

.headline .line {
  display: block;
  overflow: hidden;
}

.headline .line-inner {
  display: inline-block;
}

.headline em {
  font-style: italic;
  font-weight: 350;
  color: var(--ink);
  font-variation-settings: "opsz" 144, "SOFT" 100;
}

/* Linha de ênfase — itálico em creme; o calor vem só do ponto final */
.headline .line--accent {
  font-style: italic;
  color: var(--ink);
  font-variation-settings: "opsz" 144, "SOFT" 100;
}

.headline .period {
  color: var(--accent);
  margin-left: -0.04em;
  text-shadow: 0 0 22px rgba(255, 106, 26, 0.55);
}

/* Lede */
.lede {
  margin-top: clamp(28px, 4vh, 40px);
  max-width: 540px;
  font-size: clamp(15.5px, 1.15vw, 18.5px);
  line-height: 1.58;
  font-weight: 300;
  color: var(--ink-soft);
}

.lede strong {
  color: var(--ink);
  font-weight: 500;
}

.lede em {
  font-family: var(--f-display);
  font-style: italic;
  color: var(--accent-2);
  font-weight: 400;
}

/* Urgency line */
.urgency {
  margin-top: 24px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-2);
}

.urgency::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--accent);
}

/* CTAs */
.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: clamp(24px, 3.2vh, 36px);
}

.cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--f-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 19px 32px;
  border-radius: 999px;
  overflow: hidden;
  transition: transform 0.4s var(--ease), color 0.4s var(--ease),
    border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
  white-space: nowrap;
}

.cta-label,
.cta-arrow {
  position: relative;
  z-index: 2;
}

/* Botão primário — brasa acesa */
.cta--primary {
  background: linear-gradient(135deg, var(--accent-2) 0%, var(--accent) 56%, var(--ember) 100%);
  color: #1c0e04;
  box-shadow: 0 10px 34px -10px rgba(255, 106, 26, 0.65);
}

.cta--primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #ffd98a 0%, var(--accent-2) 100%);
  transform: translateY(101%);
  transition: transform 0.5s var(--ease-out);
  z-index: 1;
}

.cta--primary:hover::before {
  transform: translateY(0);
}

.cta--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 40px -10px rgba(255, 106, 26, 0.8);
}

.cta-arrow svg {
  width: 22px;
  height: 10px;
  transition: transform 0.4s var(--ease);
}

.cta--primary:hover .cta-arrow svg {
  transform: translateX(5px);
}

/* Botão fantasma — vidro de carvão */
.cta--ghost {
  color: var(--ink-soft);
  border: 1px solid var(--line-strong);
  background: var(--panel);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: none;
  font-size: 14px;
  padding: 18px 26px;
}

.cta--ghost .cta-arrow svg {
  width: 18px;
  height: 9px;
  opacity: 0.6;
  transition: transform 0.4s var(--ease), opacity 0.4s var(--ease);
}

.cta--ghost:hover {
  color: var(--ink);
  border-color: var(--accent);
}

.cta--ghost:hover .cta-arrow svg {
  transform: translateX(4px);
  opacity: 1;
  color: var(--accent-2);
}

/* ---------- Meta column (right edge) ---------- */
/* Fora do fluxo — flutua na borda direita, não influencia
   a altura do hero (evita sobra de espaço no rodapé) */
.hero-meta {
  position: absolute;
  right: clamp(20px, 4vw, 64px);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  color: var(--ink-mute);
  pointer-events: none;
}

.meta-divider {
  width: 1px;
  height: 44px;
  background: linear-gradient(to bottom, transparent, var(--line-strong), transparent);
}

.meta-vert {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.meta-vert--accent {
  color: var(--accent-2);
}

/* ---------- Bottom ticker ---------- */
.hero-ticker {
  position: relative;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  overflow: hidden;
  background: rgba(21, 13, 8, 0.6);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.hero-ticker::before,
.hero-ticker::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}

.hero-ticker::before {
  left: 0;
  background: linear-gradient(to right, var(--bg) 0%, transparent 100%);
}

.hero-ticker::after {
  right: 0;
  background: linear-gradient(to left, var(--bg) 0%, transparent 100%);
}

.ticker-track {
  display: flex;
  gap: 38px;
  white-space: nowrap;
  animation: ticker 48s linear infinite;
  width: max-content;
}

.ticker-track span {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 400;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  font-variation-settings: "opsz" 24, "SOFT" 80;
}

.ticker-track .dot {
  color: var(--accent);
  font-style: normal;
}

@keyframes ticker {
  to {
    transform: translateX(-50%);
  }
}

/* ============================================
   ENTRANCE ANIMATIONS
   ============================================ */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes lineReveal {
  from {
    transform: translateY(105%);
  }
  to {
    transform: translateY(0);
  }
}

.topbar { animation: fadeIn 1.4s 0.1s var(--ease-out) backwards; }
.eyebrow { animation: rise 0.9s 0.25s var(--ease-out) backwards; }

.headline .line-inner {
  animation: lineReveal 1s var(--ease-out) backwards;
}
.headline .line:nth-child(1) .line-inner { animation-delay: 0.4s; }
.headline .line:nth-child(2) .line-inner { animation-delay: 0.55s; }
.headline .line:nth-child(3) .line-inner { animation-delay: 0.7s; }

.lede { animation: rise 1s 0.95s var(--ease-out) backwards; }
.urgency { animation: rise 1s 1.05s var(--ease-out) backwards; }
.cta-row { animation: rise 1s 1.15s var(--ease-out) backwards; }
.hero-meta { animation: fadeIn 1.4s 1.4s var(--ease-out) backwards; }
.hero-ticker { animation: fadeIn 1.4s 1.5s var(--ease-out) backwards; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .hero-img { transform: none; }
}

/* ============================================
   RESPONSIVE
   ============================================ */
/* Telas baixas — esconde a coluna vertical: não há altura
   suficiente para ela sem invadir topbar/ticker */
@media (max-height: 760px) {
  .hero-meta { display: none; }
}

@media (max-width: 1080px) {
  .topbar-nav { display: none; }
  .topbar-inner { grid-template-columns: 1fr auto; }

  .hero-meta { display: none; }
}

@media (max-width: 720px) {
  .hero-bg {
    inset: 0 0 auto 0;
    height: 64vh;
    height: 64svh;
  }

  .hero-img--desktop { display: none; }
  .hero-img--mobile {
    display: block;
    object-position: center 26%;
  }

  .brand-name { display: none; }

  .hero-veil {
    background:
      linear-gradient(to bottom,
        rgba(21, 13, 8, 0.3) 0%,
        rgba(21, 13, 8, 0.05) 18%,
        rgba(21, 13, 8, 0.1) 40%,
        rgba(21, 13, 8, 0.78) 58%,
        rgba(21, 13, 8, 0.97) 72%,
        var(--bg) 100%);
  }

  .hero-ember {
    background:
      radial-gradient(ellipse 82% 20% at 50% 100%,
        rgba(255, 106, 26, 0.12) 0%,
        transparent 76%);
  }

  .hero-frame {
    padding: 58vh 22px 32px;
    align-items: start;
  }

  .eyebrow {
    font-size: 10px;
    padding: 8px 14px 8px 12px;
    margin-bottom: 22px;
  }

  .headline {
    font-size: clamp(40px, 11.8vw, 60px);
    line-height: 0.98;
  }

  .lede {
    font-size: 15px;
    margin-top: 22px;
  }

  .cta-row {
    margin-top: 28px;
    width: 100%;
  }

  .cta--primary,
  .cta--ghost {
    flex: 1 1 100%;
    justify-content: center;
  }

  .ticker-track span { font-size: 12px; }
}

@media (max-width: 420px) {
  .topbar { padding: 16px 18px; }
  .topbar-cta { padding: 10px 16px; font-size: 11px; }
  .hero-frame { padding: 52vh 20px 28px; }
}
