/* ============================================================
   SAUTT BRASIL — dark premium industrial
   ============================================================ */

:root {
  --bg: #0a0a0b;
  --bg-2: #111113;
  --surface: #16161a;
  --surface-2: #1c1c21;
  --hairline: rgba(255, 255, 255, 0.09);
  --hairline-strong: rgba(255, 255, 255, 0.18);
  --bone: #f4f1ea;
  --text: #e9e6df;
  --muted: #9a9a9e;
  --muted-dim: #6e6e73;
  --wa: #25d366;
  --wa-dark: #1ebe5a;

  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  --maxw: 1200px;
  --pad: clamp(1.25rem, 4vw, 3rem);
  --radius: 4px;
  --section-y: clamp(4.5rem, 10vw, 9rem);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

/* Compensa o header fixo (74px) ao navegar para âncoras internas. */
:target,
main[id],
section[id] { scroll-margin-top: 90px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}

/* Trava o scroll do fundo enquanto o menu mobile está aberto. */
body.nav-lock { overflow: hidden; }

img { display: block; max-width: 100%; height: auto; }

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

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin: 0;
  color: var(--bone);
}

::selection { background: var(--bone); color: var(--bg); }

:focus-visible { outline: 2px solid var(--wa); outline-offset: 3px; border-radius: 2px; }

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

/* ---------- Grain texture ---------- */
.grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.05;
  z-index: 2;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1.5rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  border-radius: var(--radius);
  border: 1px solid transparent;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-wa { background: var(--wa); color: #04240f; border-color: var(--wa); }
.btn-wa:hover { background: var(--wa-dark); }

.btn-ghost { background: transparent; color: var(--bone); border-color: var(--hairline-strong); }
.btn-ghost:hover { border-color: var(--bone); background: rgba(255, 255, 255, 0.04); }

.btn-lg { padding: 1.05rem 1.9rem; font-size: 1.02rem; }

.ico-wa { width: 1.15em; height: 1.15em; fill: currentColor; flex: none; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled,
.site-header.nav-open {
  background: rgba(10, 10, 11, 0.82);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--hairline);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}
.brand img { height: 34px; width: auto; }
.nav { display: flex; align-items: center; gap: 2rem; }
.nav > a {
  font-size: 0.92rem;
  color: var(--muted);
  font-weight: 500;
  transition: color 0.2s ease;
}
.nav > a:hover { color: var(--bone); }
.nav-cta { color: #04240f !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span {
  width: 26px; height: 2px;
  background: var(--bone);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding-block: 8rem clamp(3rem, 7vw, 6rem);
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img,
.hero-media video { width: 100%; height: 100%; object-fit: cover; will-change: transform; }
.hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10,10,11,0.55) 0%, rgba(10,10,11,0.25) 35%, rgba(10,10,11,0.85) 82%, var(--bg) 100%),
    linear-gradient(90deg, rgba(10,10,11,0.7) 0%, rgba(10,10,11,0.1) 60%);
}
.hero-content { position: relative; z-index: 3; max-width: 900px; }

.kicker {
  font-family: var(--font-display);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1.4rem;
}
.hero-title {
  font-size: clamp(2.4rem, 6.2vw, 5rem);
  font-weight: 700;
  max-width: 16ch;
  margin-bottom: 1.4rem;
}
.signature {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.05rem, 2vw, 1.5rem);
  letter-spacing: 0.02em;
  margin: 0 0 2.4rem;
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.signature span { color: var(--bone); }
.signature span:nth-child(2) { color: var(--muted); }
.signature span:nth-child(3) { color: var(--muted-dim); }

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }

/* ---------- Section scaffold ---------- */
.section { position: relative; padding-block: var(--section-y); }

.eyebrow {
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--wa);
  margin: 0 0 1.1rem;
}
.section-title {
  font-size: clamp(1.7rem, 3.6vw, 2.9rem);
  max-width: 20ch;
}
.section-lead {
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  max-width: 52ch;
  margin: 1.2rem 0 0;
}
.section-head { max-width: 760px; margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }

.prose { margin-top: 1.7rem; }
.prose p { color: var(--muted); margin: 0 0 1.1rem; max-width: 60ch; }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--bone); font-weight: 600; }

/* ---------- Quem somos ---------- */
.quem { border-top: 1px solid var(--hairline); background: var(--bg-2); }
.quem-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.quem-visual { position: sticky; top: 100px; display: grid; gap: 1.5rem; }
.quem-photo {
  margin: 0;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  overflow: hidden;
}
.quem-photo img { width: 100%; object-fit: cover; }
.quem-quote {
  margin: 0;
  padding-left: 1.4rem;
  border-left: 2px solid var(--wa);
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  line-height: 1.4;
  color: var(--bone);
}

/* ---------- Serviços ---------- */
.svc-list { display: grid; gap: clamp(2rem, 4vw, 3.5rem); }
.svc-list-tail { margin-top: clamp(2.5rem, 5vw, 4rem); }
.svc-list-tail .svc:last-child { border-bottom: 0; }
.svc {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
  padding-bottom: clamp(2rem, 4vw, 3.5rem);
  border-bottom: 1px solid var(--hairline);
}
.svc:nth-child(even) .svc-media { order: 2; }
.svc-media {
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  overflow: hidden;
}
.svc-media img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.2, 0.6, 0.2, 1);
}
.svc:hover .svc-media img { transform: scale(1.04); }

.svc-index {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--muted-dim);
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 0.8rem;
}
.svc-body h3 {
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  margin-bottom: 1rem;
}
.svc-sub {
  display: block;
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--muted);
  text-transform: uppercase;
  margin-top: 0.3rem;
}
.svc-body p { color: var(--muted); margin: 0 0 1rem; }
.svc-body p:last-child { margin-bottom: 0; }
.svc-body strong { color: var(--bone); }
.svc-note {
  font-style: italic;
  color: var(--muted-dim) !important;
  font-size: 0.92rem;
}

/* Películas feature block */
.svc-feature {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding: clamp(1.75rem, 4vw, 3rem);
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
}
.svc-feature-head { max-width: 640px; margin-bottom: 2.5rem; }
.svc-feature-head h3 { font-size: clamp(1.4rem, 2.4vw, 2rem); margin-bottom: 1rem; }
.svc-feature-head p { color: var(--muted); margin: 0; }
.films {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.film {
  padding: 1.5rem 1.35rem;
  background: var(--bg);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.film:hover { border-color: var(--hairline-strong); transform: translateY(-3px); }
.film h4 { font-size: 1.05rem; margin-bottom: 0.7rem; }
.film p { color: var(--muted); font-size: 0.92rem; margin: 0; }
.film strong { color: var(--bone); }

/* ---------- Por que ---------- */
.por-que { background: var(--bg-2); border-top: 1px solid var(--hairline); overflow: hidden; }
.por-grid {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.por-commit {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: clamp(1.75rem, 3.5vw, 2.5rem);
  position: sticky;
  top: 100px;
}
.commit-title {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--bone);
  margin: 0 0 1.5rem;
  font-size: 1.15rem;
}
.commit-list { list-style: none; margin: 0; padding: 0; }
.commit-list li {
  position: relative;
  padding: 0.9rem 0 0.9rem 1.9rem;
  color: var(--text);
  border-top: 1px solid var(--hairline);
}
.commit-list li:first-child { border-top: 0; }
.commit-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 1.35rem;
  width: 8px; height: 8px;
  background: var(--wa);
  border-radius: 1px;
  transform: rotate(45deg);
}

/* ---------- Contato ---------- */
.contato { border-top: 1px solid var(--hairline); }
.contato-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: stretch;
}
/* Impede que conteúdo com largura intrínseca (iframe, texto nowrap) estoure a coluna. */
.contato-grid > *, .quem-grid > *, .por-grid > * { min-width: 0; }
.contato-copy .btn { margin: 2rem 0; }
.contato-info {
  display: grid;
  gap: 1.4rem;
  margin: 0;
  padding-top: 2rem;
  border-top: 1px solid var(--hairline);
}
.contato-info dt {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-dim);
  margin-bottom: 0.35rem;
}
.contato-info dd { margin: 0; color: var(--text); }
.contato-info a { color: var(--wa); }
.contato-map {
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 340px;
  min-width: 0; /* permite a coluna encolher abaixo da largura intrínseca do iframe */
}
.contato-map iframe { display: block; width: 100%; max-width: 100%; height: 100%; min-height: 340px; border: 0; filter: grayscale(1) invert(0.92) contrast(0.9); }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--hairline);
  background: var(--bg-2);
  padding-top: clamp(3rem, 6vw, 5rem);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--hairline);
}
.footer-brand img { height: 40px; width: auto; margin-bottom: 1rem; }
.footer-brand p {
  font-family: var(--font-display);
  color: var(--muted);
  letter-spacing: 0.03em;
  margin: 0;
}
.footer-cols { display: flex; gap: clamp(2rem, 6vw, 5rem); }
.footer-cols h5 {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-dim);
  margin-bottom: 0.9rem;
}
.footer-cols p { color: var(--muted); margin: 0; font-size: 0.95rem; }
.footer-cols a:hover { color: var(--bone); }
.footer-bottom {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.75rem 1.5rem;
  padding-block: 1.75rem;
}
.footer-bottom p { color: var(--muted-dim); font-size: 0.82rem; margin: 0; }
.footer-bottom > :nth-child(1) { justify-self: start; }
.footer-bottom > :nth-child(2) { justify-self: center; text-align: center; }
.footer-bottom > :nth-child(3) { justify-self: end; text-align: right; }
.footer-bottom a { color: inherit; transition: color 0.2s ease; }
.footer-bottom a:hover { color: var(--bone); }

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  z-index: 60;
  width: 58px; height: 58px;
  display: grid; place-items: center;
  background: var(--wa);
  border-radius: 50%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transition: transform 0.25s ease;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; fill: #04240f; }
.wa-float::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 2px solid var(--wa);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0% { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(1.7); opacity: 0; }
}

/* ---------- Cookie consent (LGPD) ---------- */
.cookie-consent {
  position: fixed;
  left: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  right: auto;
  z-index: 55;
  max-width: min(440px, calc(100vw - 2rem));
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  display: grid;
  gap: 0.9rem;
}
.cookie-consent[hidden] { display: none; }
.cookie-text { color: var(--muted); font-size: 0.85rem; line-height: 1.55; margin: 0; }
.cookie-text a { color: var(--wa); }
.cookie-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.cookie-actions .btn { padding: 0.6rem 1.15rem; font-size: 0.9rem; }

/* ---------- Legal / policy pages ---------- */
.legal { padding-top: clamp(7rem, 12vw, 9.5rem); border-top: 1px solid var(--hairline); }
.legal .container { max-width: 820px; }
.legal-lead { color: var(--muted); font-size: clamp(1rem, 1.4vw, 1.12rem); margin: 1.2rem 0 0; }
.legal-meta { color: var(--muted-dim); font-size: 0.85rem; margin-top: 0.6rem; }
.legal-body { margin-top: 2.5rem; }
.legal-body h2 { font-size: clamp(1.25rem, 2.4vw, 1.7rem); margin: 2.6rem 0 0.9rem; }
.legal-body h3 { font-size: 1.1rem; color: var(--bone); margin: 1.6rem 0 0.6rem; }
.legal-body p { color: var(--muted); margin: 0 0 1rem; }
.legal-body ul { padding-left: 1.2rem; margin: 0 0 1.1rem; }
.legal-body li { color: var(--muted); margin-bottom: 0.45rem; }
.legal-body a { color: var(--wa); }
.legal-body strong { color: var(--bone); font-weight: 600; }
.legal-body address { font-style: normal; color: var(--muted); }
.cookie-settings-btn {
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--wa);
  background: none;
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius);
  padding: 0.55rem 1.1rem;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.cookie-settings-btn:hover { border-color: var(--wa); background: rgba(37, 211, 102, 0.06); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .quem-grid, .por-grid, .contato-grid { grid-template-columns: 1fr; }
  .quem-visual, .por-commit { position: static; }
  .films { grid-template-columns: repeat(2, 1fr); }
  /* Evita o nav horizontal apertado em tablets em retrato (761–960px). */
  .nav { gap: 1.4rem; }
  .nav > a { font-size: 0.88rem; }
}

@media (max-width: 760px) {
  .nav {
    position: fixed;
    inset: 74px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(10, 10, 11, 0.97);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--hairline);
    padding: 0.5rem var(--pad) 1.5rem;
    transform: translateY(-120%);
    visibility: hidden;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.35s;
  }
  .nav.open { transform: translateY(0); visibility: visible; }
  .nav > a { padding: 0.95rem 0; border-bottom: 1px solid var(--hairline); }
  .nav-cta { margin-top: 1rem; justify-content: center; border-bottom: 0 !important; }
  .nav-toggle { display: flex; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .svc { grid-template-columns: 1fr; }
  .svc:nth-child(even) .svc-media { order: -1; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-cols { flex-wrap: wrap; }
  .footer-bottom { grid-template-columns: 1fr; text-align: center; }
  .footer-bottom > :nth-child(1),
  .footer-bottom > :nth-child(2),
  .footer-bottom > :nth-child(3) { justify-self: center; text-align: center; }
}

@media (max-width: 480px) {
  .films { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  /* O botão longo do WhatsApp em Contato pode quebrar linha sem estourar a tela. */
  .contato-copy .btn-lg { white-space: normal; text-align: center; }
  /* Acima do botão flutuante do WhatsApp, sem sobrepor */
  .cookie-consent { left: 1rem; right: 1rem; max-width: none; bottom: calc(1rem + 72px); }
  .cookie-actions .btn { flex: 1; justify-content: center; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .wa-float::after { animation: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
