/* ============================================
   Gingado Estúdio — teaser
   Aesthetic: Brazilian modernist editorial
   ============================================ */

@font-face {
  font-family: "Onest";
  src: url("font/Onest/Onest-VariableFont_wght.ttf") format("truetype-variations"),
       url("font/Onest/Onest-VariableFont_wght.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("font/Inter/Inter-VariableFont_opsz,wght.ttf") format("truetype-variations"),
       url("font/Inter/Inter-VariableFont_opsz,wght.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("font/Inter/Inter-Italic-VariableFont_opsz,wght.ttf") format("truetype-variations"),
       url("font/Inter/Inter-Italic-VariableFont_opsz,wght.ttf") format("truetype");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --noir: #1B1C28;
  --deep: #0D6284;
  --azure: #50A7BC;
  --emerald: #167246;
  --golden: #FDAD00;
  --champagne: #FFE6BF;
  --terracotta: #B7442E;

  --ink: #0F1018;
  --paper: #FFE6BF;

  --display: "Onest", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;

  --gutter: clamp(20px, 4vw, 56px);
  --max-w: 1240px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--noir);
  color: #fff;
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

/* =====================================================
   HERO — vídeo full bleed
   ===================================================== */

.hero {
  position: relative;
  width: 100%;
  height: 100svh;
  min-height: 600px;
  overflow: hidden;
  background: var(--noir);
  isolation: isolate;
}

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  animation: heroFade 1.4s ease-out both;
}

.hero__vignette {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(15, 16, 24, 0.55) 0%, rgba(15, 16, 24, 0) 22%, rgba(15, 16, 24, 0) 70%, rgba(15, 16, 24, 0.7) 100%);
}

.hero__chrome {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(20px, 3vw, 36px) var(--gutter);
  pointer-events: none;
}

.hero__chrome--top { top: 0; }
.hero__chrome > * { pointer-events: auto; }

.hero__brand img {
  width: clamp(180px, 27vw, 390px);
  height: auto;
  filter: drop-shadow(0 4px 18px rgba(0, 0, 0, 0.45));
  animation: heroDrop 1s 0.2s ease-out both;
}

/* scroll cue */
.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: clamp(22px, 4vh, 40px);
  transform: translateX(-50%);
  z-index: 2;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  animation: heroDrop 1s 0.55s ease-out both;
}

.hero__scroll svg {
  animation: bob 2.4s ease-in-out infinite;
}

.hero__scroll:hover svg { color: var(--golden); }

/* keyframes */
@keyframes heroFade {
  from { opacity: 0; transform: scale(1.04); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes heroDrop {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes bob {
  0%, 100% { transform: translateY(0); opacity: 0.85; }
  50%      { transform: translateY(6px); opacity: 1; }
}

/* =====================================================
   MARQUEE — barra decorativa em scroll infinito
   ===================================================== */

.marquee {
  height: 100px;
  background-image: url("barra-decorativa-gingado.jpg");
  background-repeat: repeat-x;
  background-size: auto 100px;
  background-position: 0 center;
  background-color: var(--noir);
  animation: marquee 30s linear infinite;
  will-change: background-position;
}

.marquee:hover {
  animation-play-state: paused;
}

@keyframes marquee {
  from { background-position-x: 0; }
  to   { background-position-x: -976px; }
}

/* =====================================================
   CONTATO
   ===================================================== */

.contact {
  position: relative;
  background: var(--champagne);
  color: var(--ink);
  padding: clamp(80px, 12vw, 160px) var(--gutter);
  overflow: hidden;
}

.contact__deco {
  position: absolute;
  right: -8%;
  bottom: -22%;
  width: min(60vw, 720px);
  opacity: 0.08;
  pointer-events: none;
  transform: rotate(-8deg);
  z-index: 0;
}

.contact__deco img {
  width: 100%;
  height: auto;
  filter: grayscale(1) contrast(1.2);
}

.contact__inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
}

.contact__index {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 48px;
}

.contact__index i {
  display: block;
  height: 1px;
  flex: 1 1 80px;
  max-width: 120px;
  background: currentColor;
  opacity: 0.5;
}

.contact__form {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
}

.field label {
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0.65;
  transition: color 160ms ease, opacity 160ms ease;
}

.field input,
.field textarea {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.1rem, 1.6vw, 1.4rem);
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(15, 16, 24, 0.18);
  padding: 8px 0 16px;
  outline: none;
  resize: vertical;
  transition: border-color 200ms ease;
}

.field textarea {
  min-height: 140px;
  line-height: 1.45;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  font-family: var(--body);
  font-weight: 400;
}

.field input::placeholder,
.field textarea::placeholder {
  color: rgba(15, 16, 24, 0.32);
  font-weight: 400;
}

.field input:focus,
.field textarea:focus {
  border-bottom-color: var(--terracotta);
}

.field:focus-within label {
  color: var(--terracotta);
  opacity: 1;
}

/* honeypot */
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.contact__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  margin-top: 8px;
}

.contact__submit {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  background: var(--ink);
  color: #fff;
  border: 0;
  border-radius: 0;
  padding: 20px 32px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 0.88rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
  transition: color 220ms ease;
  z-index: 0;
}

.contact__submit::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--terracotta);
  transform: translateY(100%);
  transition: transform 280ms cubic-bezier(0.65, 0, 0.35, 1);
  z-index: -1;
}

.contact__submit:hover:not(:disabled)::before { transform: translateY(0); }
.contact__submit:focus-visible { outline: 3px solid var(--golden); outline-offset: 4px; }

.contact__submit svg {
  transition: transform 280ms cubic-bezier(0.65, 0, 0.35, 1);
}
.contact__submit:hover:not(:disabled) svg {
  transform: translateX(6px);
}

.contact__submit:disabled {
  opacity: 0.6;
  cursor: progress;
}

.contact__status {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink);
  opacity: 0.78;
}
.contact__status.is-success { color: var(--emerald); opacity: 1; font-weight: 600; }
.contact__status.is-error { color: var(--terracotta); opacity: 1; font-weight: 600; }

/* =====================================================
   FOOTER
   ===================================================== */

.footer {
  position: relative;
  background: var(--noir);
  color: rgba(255, 255, 255, 0.78);
  padding-bottom: clamp(40px, 6vw, 64px);
}

/* faixa de textura — diamantes coloridos da paleta */
.footer__stripe {
  height: 14px;
  background-color: var(--noir);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='280' height='14' viewBox='0 0 280 14'><rect width='280' height='14' fill='%231B1C28'/><path d='M16 7 L23 0 L30 7 L23 14 Z' fill='%23FDAD00'/><path d='M62 7 L69 0 L76 7 L69 14 Z' fill='%23167246'/><path d='M108 7 L115 0 L122 7 L115 14 Z' fill='%23B7442E'/><path d='M154 7 L161 0 L168 7 L161 14 Z' fill='%23FFE6BF'/><path d='M200 7 L207 0 L214 7 L207 14 Z' fill='%230D6284'/><path d='M246 7 L253 0 L260 7 L253 14 Z' fill='%2350A7BC'/></svg>");
  background-repeat: repeat-x;
  background-position: center;
  margin-bottom: clamp(56px, 8vw, 96px);
}

.footer__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: clamp(32px, 4vw, 64px) clamp(40px, 6vw, 96px);
  align-items: start;
  justify-items: start;
}

.footer__brand {
  /* recorta o whitespace do viewBox do vertical.svg
     conteúdo real está em x[754..1166] y[205..875] de um viewBox 1920x1080
     proporção do logo: 413/670 = 0.6164 */
  --logo-h: clamp(160px, 18vw, 240px);
  --logo-w: calc(var(--logo-h) * 0.6164);
  --bg-w: calc(var(--logo-h) * (1920 / 670));
  --bg-h: calc(var(--logo-h) * (1080 / 670));
  --bg-x: calc(var(--bg-w) * (-754 / 1920));
  --bg-y: calc(var(--bg-h) * (-205 / 1080));

  width: var(--logo-w);
  height: var(--logo-h);
  background-image: url("marca/SVG/vertical.svg");
  background-size: var(--bg-w) var(--bg-h);
  background-position: var(--bg-x) var(--bg-y);
  background-repeat: no-repeat;
}

.footer__legal {
  grid-column: 1 / -1;
  justify-self: stretch;
  width: 100%;
  padding-top: 28px;
  margin-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer__col h4 {
  margin: 0 0 16px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--golden);
}

.footer__col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.92rem;
}

.footer__col a {
  color: rgba(255, 255, 255, 0.85);
  transition: color 160ms ease, transform 160ms ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  position: relative;
}

.footer__col a:hover {
  color: var(--golden);
}

.footer__social a {
  align-items: center;
}

.footer__social svg {
  transition: transform 200ms ease, color 160ms ease;
}

.footer__social a:hover svg {
  transform: rotate(-6deg) scale(1.05);
}

.footer__legal {
  font-family: var(--display);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.5);
  text-align: right;
}

.footer__legal p { margin: 0; }
.footer__legal p + p { margin-top: 4px; }

@media (max-width: 760px) {
  .footer__inner {
    grid-template-columns: 1fr 1fr;
  }
  .footer__brand {
    grid-column: 1 / -1;
    margin: 0 auto 8px;
  }
  .footer__legal {
    text-align: left;
  }
}

@media (max-width: 640px) {
  .hero__chrome--top {
    justify-content: center;
  }
  .hero__brand img {
    width: clamp(240px, 64vw, 360px);
  }
}

@media (max-width: 480px) {
  .footer__inner {
    grid-template-columns: 1fr;
  }
  .hero__scroll-text { display: none; }
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .marquee { animation: none; }
  .hero__scroll svg { animation: none; }
}
