/* =========================================================
   Site de divulgação — Foxen Media (página inicial "/")
   Mesma paleta da galeria do cliente. Classes com prefixo "sx-".
   ========================================================= */
:root {
  --bg: #faf8f5;
  --bg-2: #f2eee8;
  --surface: #ffffff;
  --ink: #1d1b19;
  --ink-2: #45403b;
  --muted: #7a736b;
  --line: #e6e0d8;
  --accent: #e8772e;
  --dark: #151311;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --header-h: 76px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: var(--header-h); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.65 var(--sans); }
body.sx-lock { overflow: hidden; }
a { color: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: .005em; }
.sx-wrap { max-width: 1240px; margin: 0 auto; padding: 0 28px; }
.sx-muted { color: var(--muted); }
.link { color: var(--accent); text-decoration: none; font-weight: 500; }
.link:hover { text-decoration: underline; }
.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; font-size: 12px; }
.brand-mark { width: 22px; height: 22px; color: var(--accent); }
.brand-logo { height: 38px; width: auto; }
.contact-links { display: flex; gap: 22px; flex-wrap: wrap; margin: 26px 0 0; }

.sx-eyebrow { margin: 0 0 14px; font: 600 11px var(--sans); letter-spacing: .28em; text-transform: uppercase; color: rgba(255,255,255,.85); }
.sx-eyebrow.dark { color: var(--accent); }

.sx-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 15px 34px; border: 1px solid var(--ink); border-radius: 0; background: var(--ink); color: #fff; font: 600 11.5px var(--sans); letter-spacing: .22em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: background .25s, color .25s, border-color .25s; }
.sx-btn:hover { background: transparent; color: var(--ink); }
.sx-btn.light { background: transparent; border-color: rgba(255,255,255,.85); color: #fff; }
.sx-btn.light:hover { background: #fff; color: var(--ink); }

/* ---------- Animação de entrada ao rolar ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s ease, transform .9s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- Cabeçalho ---------- */
.sx-header { position: fixed; z-index: 50; inset: 0 0 auto; height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 0 clamp(20px, 4vw, 56px); color: #fff; transition: background .35s, color .35s, box-shadow .35s, height .35s; }
.sx-header.solid { background: rgba(250, 248, 245, .94); color: var(--ink); backdrop-filter: saturate(1.4) blur(12px); box-shadow: 0 1px 0 var(--line); --header-h: 64px; height: 64px; }
.sx-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 600 13px var(--sans); letter-spacing: .22em; text-transform: uppercase; }
.sx-logo svg { width: 26px; height: 26px; color: var(--accent); }
.sx-logo img { height: 40px; width: auto; }
.sx-nav { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 34px); }
.sx-nav a { text-decoration: none; font: 500 11.5px var(--sans); letter-spacing: .2em; text-transform: uppercase; opacity: .9; position: relative; padding: 6px 0; }
.sx-nav a:not(.sx-nav-cta)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .3s; }
.sx-nav a:hover { opacity: 1; }
.sx-nav a:hover::after { transform: scaleX(1); }
.sx-nav-cta { border: 1px solid currentColor; padding: 9px 18px !important; transition: background .25s, color .25s; }
.sx-header:not(.solid) .sx-nav-cta:hover { background: #fff; color: var(--ink); }
.sx-header.solid .sx-nav-cta:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.sx-burger { display: none; width: 40px; height: 40px; border: 0; background: none; color: inherit; cursor: pointer; position: relative; z-index: 2; }
.sx-burger i { position: absolute; left: 9px; right: 9px; height: 1.5px; background: currentColor; transition: transform .3s, top .3s; }
.sx-burger i:first-child { top: 15px; }
.sx-burger i:last-child { top: 24px; }
.sx-header.open .sx-burger i:first-child { top: 19.5px; transform: rotate(45deg); }
.sx-header.open .sx-burger i:last-child { top: 19.5px; transform: rotate(-45deg); }

@media (max-width: 860px) {
  .sx-burger { display: block; }
  .sx-nav { position: fixed; inset: 0; flex-direction: column; justify-content: center; gap: 26px; background: var(--dark); color: #fff; opacity: 0; pointer-events: none; transition: opacity .3s; }
  .sx-nav a { font-size: 14px; }
  .sx-header.open { color: #fff; background: transparent; box-shadow: none; backdrop-filter: none; }
  .sx-header.open .sx-nav { opacity: 1; pointer-events: auto; }
  .sx-header.open .sx-logo { position: relative; z-index: 2; }
}

/* ---------- Capa ---------- */
.sx-hero { position: relative; height: 100vh; height: 100svh; min-height: 560px; display: grid; place-items: center; text-align: center; color: #fff; background: var(--dark); overflow: hidden; }
.sx-slides, .sx-slide, .sx-hero-shade { position: absolute; inset: 0; }
.sx-slide { background: center / cover no-repeat; opacity: 0; transform: scale(1.08); transition: opacity 1.6s ease, transform 9s linear; }
.sx-slide.active { opacity: 1; transform: scale(1); }
.sx-hero-shade { background: linear-gradient(180deg, rgba(0,0,0,.42) 0%, rgba(0,0,0,.12) 35%, rgba(0,0,0,.18) 60%, rgba(0,0,0,.6) 100%); }
.sx-hero-content { position: relative; padding: 0 24px; max-width: 900px; animation: sx-rise 1.2s .2s ease both; }
.sx-hero h1 { font-size: clamp(42px, 7.4vw, 92px); line-height: 1.02; margin: 0; text-wrap: balance; }
.sx-hero-sub { font: italic 400 clamp(18px, 2.2vw, 23px)/1.45 var(--serif); margin: 22px auto 38px; max-width: 620px; opacity: .95; text-wrap: balance; }
.sx-dots { position: absolute; bottom: 34px; left: clamp(20px, 4vw, 56px); display: flex; gap: 10px; }
.sx-dots button { width: 26px; height: 2px; padding: 0; border: 0; background: rgba(255,255,255,.4); cursor: pointer; transition: background .3s, width .3s; }
.sx-dots button.active { background: #fff; width: 44px; }
.sx-scroll { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); width: 26px; height: 42px; border: 1.5px solid rgba(255,255,255,.75); border-radius: 20px; }
.sx-scroll span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; background: #fff; border-radius: 2px; animation: sx-scroll 1.8s infinite; }
@keyframes sx-scroll { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }
@keyframes sx-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ---------- Seções ---------- */
.sx-section { padding: clamp(80px, 11vw, 140px) 0; }
.sx-head { text-align: center; max-width: 720px; margin: 0 auto clamp(36px, 5vw, 60px); padding: 0 24px; }
.sx-head h2 { font-size: clamp(38px, 5vw, 60px); line-height: 1.05; margin: 0; }
.sx-head p { font: italic 400 20px/1.5 var(--serif); color: var(--muted); margin: 12px 0 0; }

/* Sobre */
.sx-about-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(36px, 7vw, 110px); align-items: center; }
.sx-about-grid.no-img { grid-template-columns: 1fr; max-width: 760px; text-align: center; }
.sx-about-grid.no-img .contact-links { justify-content: center; }
.sx-about-img { margin: 0; position: relative; }
.sx-about-img img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.sx-about-img::after { content: ""; position: absolute; inset: 28px -28px -28px 28px; border: 1px solid var(--accent); z-index: -1; }
.sx-about-text h2 { font-size: clamp(36px, 4.4vw, 54px); line-height: 1.08; margin: 0 0 24px; }
.sx-about-text p { color: var(--ink-2); margin: 0 0 16px; max-width: 560px; }
.sx-about-grid.no-img p { margin-inline: auto; }

/* Portfólio: grade justificada (mesma técnica da galeria do cliente) */
.sx-portfolio { background: var(--surface); }
.sx-filters { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 26px; margin: -18px auto 36px; padding: 0 20px; }
.sx-filters button { border: 0; background: none; padding: 6px 0; font: 500 11.5px var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); cursor: pointer; border-bottom: 1px solid transparent; }
.sx-filters button:hover { color: var(--ink); }
.sx-filters button.active { color: var(--ink); border-bottom-color: var(--accent); }
.sx-grid { --row-h: 340px; display: flex; flex-wrap: wrap; gap: 8px; padding: 0 8px; max-width: 1800px; margin: 0 auto; }
.sx-grid::after { content: ""; flex-grow: 999999999; }
.sx-tile { flex-grow: var(--r); flex-basis: calc(var(--r) * var(--row-h)); position: relative; display: block; overflow: hidden; background: var(--bg-2); cursor: zoom-in; }
.sx-tile i { display: block; padding-bottom: calc(100% / var(--r)); }
.sx-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s, transform 1s cubic-bezier(.2,.7,.2,1); }
.sx-tile img.loaded { opacity: 1; }
.sx-tile:hover img { transform: scale(1.04); }
.sx-tile.hidden { display: none; }
.sx-tile-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 16px 14px; color: #fff; font: italic 18px var(--serif); background: linear-gradient(transparent, rgba(0,0,0,.55)); opacity: 0; transition: opacity .35s; }
.sx-tile:hover .sx-tile-cap { opacity: 1; }
@media (max-width: 700px) { .sx-grid { --row-h: 180px; gap: 4px; padding: 0 4px; } }

/* Filmes */
.sx-films { background: var(--dark); color: #fff; }
.sx-films .sx-head p { color: rgba(255,255,255,.6); }
.sx-film-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); gap: 26px; }
.sx-film-grid.single { grid-template-columns: 1fr; max-width: 1040px; }
.sx-film { position: relative; display: block; aspect-ratio: 16 / 9; border: 0; padding: 0; background: #000; color: #fff; cursor: pointer; overflow: hidden; text-align: left; font: inherit; }
.sx-film-poster { position: absolute; inset: 0; background: #2a2622 center / cover no-repeat; transition: transform 1s cubic-bezier(.2,.7,.2,1), opacity .4s; opacity: .82; }
.sx-film:hover .sx-film-poster { transform: scale(1.04); opacity: .65; }
.sx-play { position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; border: 1.5px solid rgba(255,255,255,.85); border-radius: 50%; display: grid; place-items: center; transition: background .3s, transform .3s; }
.sx-play svg { width: 26px; height: 26px; fill: #fff; margin-left: 4px; transition: fill .3s; }
.sx-film:hover .sx-play { background: #fff; transform: scale(1.06); }
.sx-film:hover .sx-play svg { fill: var(--ink); }
.sx-film-info { position: absolute; left: 0; right: 0; bottom: 0; padding: 50px 22px 18px; background: linear-gradient(transparent, rgba(0,0,0,.7)); display: grid; gap: 2px; }
.sx-film-info strong { font: 500 24px/1.2 var(--serif); }
.sx-film-info span { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; opacity: .75; }
@media (max-width: 520px) { .sx-film-grid { grid-template-columns: 1fr; } }

/* Serviços */
.sx-service-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: clamp(26px, 3vw, 44px); }
.sx-service { text-align: center; }
.sx-service-img { overflow: hidden; margin-bottom: 22px; }
.sx-service-img img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.sx-service:hover .sx-service-img img { transform: scale(1.05); }
.sx-service h3 { font-size: 30px; margin: 0 0 8px; }
.sx-service h3::after { content: ""; display: block; width: 32px; height: 1px; background: var(--accent); margin: 14px auto 0; }
.sx-service p { color: var(--ink-2); margin: 0 0 10px; font-size: 15px; }

/* Depoimentos */
.sx-quotes { background: var(--bg-2); }
.sx-quote-track { display: flex; gap: 26px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px max(28px, calc((100vw - 1240px) / 2 + 28px)) 20px; scrollbar-width: thin; }
.sx-quote { flex: 0 0 min(560px, 86vw); scroll-snap-align: center; margin: 0; background: var(--surface); padding: 44px 40px 36px; position: relative; }
.sx-quote-mark { position: absolute; top: 4px; left: 28px; font: 96px/1 var(--serif); color: var(--accent); opacity: .4; }
.sx-quote p { font: italic 400 21px/1.55 var(--serif); margin: 0 0 14px; color: var(--ink-2); position: relative; }
.sx-quote footer { margin-top: 22px; display: grid; gap: 2px; }
.sx-quote footer strong { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; }
.sx-quote footer span { font-size: 13px; color: var(--muted); }
.sx-quote-track:has(.sx-quote:only-child) { justify-content: center; }

/* Contato */
.sx-contact { position: relative; padding: clamp(90px, 12vw, 150px) 0; color: #fff; background: var(--dark) var(--bg, none) center / cover no-repeat; }
@media (hover: hover) and (min-width: 900px) { .sx-contact { background-attachment: fixed; } }
.sx-contact-shade { position: absolute; inset: 0; background: rgba(15, 13, 11, .66); }
.sx-contact-grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 90px); align-items: center; }
.sx-contact-text h2 { font-size: clamp(40px, 5.4vw, 66px); line-height: 1.04; margin: 0 0 18px; }
.sx-contact-text > p:not(.sx-eyebrow) { font: italic 20px/1.5 var(--serif); opacity: .9; margin: 0 0 26px; max-width: 460px; }
.sx-contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 14px; letter-spacing: .04em; }
.sx-contact-list a { text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.3); padding-bottom: 2px; }
.sx-contact-list a:hover { border-color: var(--accent); }
.sx-form { background: rgba(250, 248, 245, .97); color: var(--ink); padding: clamp(26px, 4vw, 44px); display: grid; gap: 16px; }
.sx-form label { display: grid; gap: 6px; font: 600 10.5px var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.sx-form input, .sx-form select, .sx-form textarea { font: 16px var(--sans); color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid var(--line); padding: 8px 0; border-radius: 0; width: 100%; resize: vertical; }
.sx-form input:focus, .sx-form select:focus, .sx-form textarea:focus { outline: none; border-bottom-color: var(--accent); }
.sx-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.sx-form .sx-btn { margin-top: 8px; }
.sx-form-note { margin: 0; font-size: 12px; color: var(--muted); text-align: center; }

/* Rodapé */
.sx-footer { background: var(--dark); color: rgba(255,255,255,.85); padding: 64px 0 30px; font-size: 14px; }
.sx-footer .brand, .sx-footer .brand-mark { color: #fff; }
.sx-footer .brand-mark { color: var(--accent); }
.sx-footer .sx-muted { color: rgba(255,255,255,.5); margin: 10px 0 0; }
.sx-footer-grid { display: grid; grid-template-columns: 1fr auto 1fr; gap: 36px; align-items: start; }
.sx-footer nav { display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: center; }
.sx-footer nav a { text-decoration: none; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; opacity: .8; }
.sx-footer nav a:hover { opacity: 1; color: var(--accent); }
.sx-footer-client { display: grid; gap: 4px; justify-items: end; text-align: right; }
.sx-footer-client strong { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; }
.sx-footer-client .sx-muted { margin: 0; max-width: 300px; }
.sx-copy { text-align: center; margin: 48px 0 0; font-size: 12px; color: rgba(255,255,255,.4); letter-spacing: .08em; }

/* Botão flutuante do WhatsApp */
.sx-wa-float { position: fixed; z-index: 40; right: 20px; bottom: 20px; width: 56px; height: 56px; border-radius: 50%; background: #25d366; display: grid; place-items: center; box-shadow: 0 8px 26px rgba(0,0,0,.25); transition: transform .2s; }
.sx-wa-float:hover { transform: scale(1.07); }
.sx-wa-float svg { width: 30px; height: 30px; fill: #fff; }

/* ---------- Visualizador ---------- */
.sx-lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(11, 10, 9, .97); color: #fff; animation: sx-fade .25s ease; touch-action: pan-y; }
.sx-lb-stage { position: absolute; inset: 56px 80px 56px; }
.sx-lb-stage img, .sx-lb-stage video { position: absolute; inset: 0; margin: auto; max-width: 100%; max-height: 100%; animation: sx-fade .35s ease; }
.sx-lb-stage img { object-fit: contain; }
.sx-lb-stage video { width: 100%; height: 100%; background: #000; outline: none; }
.sx-lb-btn { position: absolute; z-index: 2; border: 0; background: none; color: #fff; cursor: pointer; opacity: .75; transition: opacity .2s; }
.sx-lb-btn:hover { opacity: 1; }
.sx-lb-btn.close { top: 12px; right: 16px; font-size: 24px; padding: 10px; }
.sx-lb-btn.prev, .sx-lb-btn.next { top: 50%; transform: translateY(-50%); font: 300 54px/1 var(--sans); padding: 20px 18px; }
.sx-lb-btn.prev { left: 6px; }
.sx-lb-btn.next { right: 6px; }
.sx-lb-cap { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; margin: 0; font: italic 18px var(--serif); opacity: .8; }
@keyframes sx-fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Celular ---------- */
@media (max-width: 860px) {
  .sx-about-grid, .sx-contact-grid { grid-template-columns: 1fr; }
  .sx-about-img::after { inset: 16px -12px -16px 16px; }
  .sx-footer-grid { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .sx-footer-client { justify-items: center; text-align: center; }
  .sx-lb-stage { inset: 56px 0 50px; }
  .sx-lb-btn.prev, .sx-lb-btn.next { display: none; }
}
@media (max-width: 520px) {
  .sx-wrap { padding: 0 20px; }
  .sx-form-row { grid-template-columns: 1fr; }
  .sx-dots { display: none; }
}

