/* =========================================================
   SUEH — Portfólio
   Paleta: #c8d1d9 · #8a939c · #0a0a0a · #ffffff · #760000 · #fffbef
   ========================================================= */

/* Fontes hospedadas no próprio site (sem envio de dados ao Google — LGPD) */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 300 600; font-display: swap; src: url("../fonts/inter-latin.woff2") format("woff2"); }
@font-face { font-family: "Syne"; font-style: normal; font-weight: 600 800; font-display: swap; src: url("../fonts/syne-latin.woff2") format("woff2"); }

:root {
  --mist: #c8d1d9;
  --steel: #8a939c;
  --ink: #0a0a0a;
  --white: #ffffff;
  --wine: #760000;
  --cream: #fffbef;

  --wine-soft: #9a1a1a;
  --grad-dark: linear-gradient(135deg, #0a0a0a 0%, #2a0505 45%, #760000 100%);

  /* Tema escuro: fundo preto, textos claros. #760000 fica em fundos/botões;
     em texto usamos vinhos mais claros para manter contraste (WCAG). */
  --bg: #0a0a0a;
  --bg-alt: #131313;
  --text: #fffbef;
  --text-muted: #a9b2ba;
  --line: rgba(200, 209, 217, .16);
  --accent-strong: #c23030; /* títulos grandes: contraste 3.5:1 */
  --accent-text: #e05555;   /* textos pequenos e links: contraste 5.3:1 */

  --font-display: "Syne", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 4px;
  --gutter: clamp(16px, 4vw, 48px);
  --section: clamp(72px, 11vw, 140px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { color-scheme: dark; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.05; margin: 0; letter-spacing: -0.02em; }
h2 { font-size: clamp(2.2rem, 5.5vw, 4rem); }
h3 { font-size: 1.35rem; }
em { font-style: normal; color: var(--accent-strong); }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }

.eyebrow {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: .75rem;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--accent-text); }
.eyebrow--light { color: var(--mist); }
.eyebrow--light::before { background: var(--mist); }

/* ---------- Botões / links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .95rem 1.7rem;
  font-size: .85rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  border-radius: 100px;
  transition: background .3s var(--ease), color .3s var(--ease), transform .3s var(--ease);
}
.btn--primary { background: var(--wine); color: var(--white); }
.btn--primary:hover { background: var(--text); color: var(--ink); transform: translateY(-2px); }
.btn--ghost { border: 1px solid var(--text); }
.btn--ghost:hover { background: var(--text); color: var(--ink); }

.link {
  display: inline-block;
  font-size: .9rem; font-weight: 500;
  color: var(--accent-text);
  border-bottom: 1px solid transparent;
  transition: border-color .25s;
}
.link:hover { border-color: var(--accent-text); }

.tag {
  display: inline-block;
  font-size: .7rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: .8rem;
}

/* ---------- NAV ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .35s var(--ease), box-shadow .35s var(--ease);
}
.nav.is-scrolled {
  background: rgba(10, 10, 10, .82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.nav__logo { font-family: var(--font-display); font-weight: 800; font-size: 1.4rem; letter-spacing: .04em; }
.nav__logo span { color: var(--accent-text); }
.nav__links { display: flex; align-items: center; gap: 2.2rem; }
.nav__links a { font-size: .85rem; font-weight: 500; position: relative; }
.nav__links a:not(.nav__cta)::after {
  content: ""; position: absolute; left: 0; bottom: -4px; width: 100%; height: 1px;
  background: var(--accent-text); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav__links a:not(.nav__cta):hover::after { transform: scaleX(1); }
.nav__cta { padding: .55rem 1.2rem; border: 1px solid var(--text); border-radius: 100px; transition: .3s var(--ease); }
.nav__cta:hover { background: var(--wine); border-color: var(--wine); color: var(--white); }

.nav__toggle { display: none; background: none; border: 0; width: 40px; height: 40px; cursor: pointer; position: relative; }
.nav__toggle span { position: absolute; left: 9px; right: 9px; height: 1.5px; background: var(--text); transition: .3s var(--ease); }
.nav__toggle span:first-child { top: 15px; }
.nav__toggle span:last-child { top: 24px; }
.nav.is-open .nav__toggle span:first-child { top: 19.5px; transform: rotate(45deg); }
.nav.is-open .nav__toggle span:last-child { top: 19.5px; transform: rotate(-45deg); }

/* ---------- HERO ---------- */
.hero {
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  padding: 120px 0 72px;
  background:
    radial-gradient(ellipse 55% 65% at 85% 40%, rgba(118, 0, 0, .38), transparent 70%),
    radial-gradient(ellipse 40% 50% at 10% 90%, rgba(200, 209, 217, .06), transparent 70%),
    var(--bg);
}
/* O título acompanha a largura da coluna (não da janela), para nunca invadir a foto */
.hero__text { container-type: inline-size; min-width: 0; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero__title { font-size: clamp(2.2rem, 5vw, 5rem); font-size: clamp(2.2rem, 11.4cqi, 6rem); font-weight: 800; text-transform: uppercase; margin-bottom: 1.6rem; }
.hero__lead { font-size: clamp(1rem, 1.4vw, 1.15rem); color: var(--text-muted); max-width: 460px; margin-bottom: 2.2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; }

.hero__media { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(118, 0, 0, .55) 100%);
}
.hero__media figcaption {
  position: absolute; left: 1.2rem; bottom: 1rem; z-index: 1;
  color: var(--white); font-size: .8rem; font-weight: 600; letter-spacing: .14em;
}

/* ---------- MARQUEE ---------- */
.marquee { background: var(--wine); color: var(--white); overflow: hidden; padding: 1.3rem 0; }
.marquee__track { display: flex; width: max-content; gap: 2.5rem; align-items: center; animation: marquee 28s linear infinite; }
.marquee span { font-family: var(--font-display); font-size: clamp(1.3rem, 2.6vw, 2rem); font-weight: 700; text-transform: uppercase; white-space: nowrap; }
.marquee i { font-style: normal; color: rgba(255, 255, 255, .55); font-size: 1rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- SOBRE (degradê) ---------- */
.about { background: var(--grad-dark); color: var(--white); padding: var(--section) 0; position: relative; overflow: hidden; }
.about::before {
  content: ""; position: absolute; width: 60vw; height: 60vw; right: -20vw; top: -20vw;
  background: radial-gradient(circle, rgba(200, 209, 217, .12), transparent 65%);
  pointer-events: none;
}
.about__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 96px); align-items: center; position: relative; }
.about__media { margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; position: relative; }
.about__media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.2) contrast(1.05); }
.about__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(200deg, transparent 40%, rgba(10, 10, 10, .6)); }
.about__text h2 { margin-bottom: 1.8rem; font-size: clamp(2rem, 4.4vw, 3.4rem); }
.about__text em { color: var(--mist); font-style: italic; }
.about__text p { color: rgba(255, 255, 255, .78); max-width: 540px; }
.about__highlight {
  margin-top: 2.4rem; padding-top: 1.8rem;
  border-top: 1px solid rgba(255, 255, 255, .15);
  display: flex; align-items: center; gap: clamp(16px, 3vw, 32px);
}
.about__highlight strong {
  font-family: var(--font-display); font-weight: 800; line-height: .9;
  font-size: clamp(3.6rem, 9vw, 6.5rem); letter-spacing: -0.03em;
  background: linear-gradient(180deg, #ffffff 0%, var(--mist) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.about__highlight span {
  font-size: clamp(.8rem, 1.4vw, 1rem); font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--mist); line-height: 1.5; padding-left: clamp(16px, 3vw, 32px);
  border-left: 2px solid var(--wine-soft);
}

/* ---------- SEÇÕES ---------- */
.section { padding: var(--section) 0; }
.section--cream { background: var(--bg-alt); }
.section__head { margin-bottom: clamp(40px, 6vw, 72px); }

/* ---------- SERVIÇOS ---------- */
.services { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.service {
  padding: 2.4rem 1.6rem 2.6rem;
  border-right: 1px solid var(--line);
  position: relative;
  transition: background .4s var(--ease), color .4s var(--ease);
}
.service:last-child { border-right: 0; }
.service::before {
  content: ""; position: absolute; left: 0; top: -1px; height: 2px; width: 0; background: var(--accent-text);
  transition: width .5s var(--ease);
}
.service:hover::before { width: 100%; }
.service:hover { background: rgba(255, 255, 255, .035); }
.service__num { font-family: var(--font-display); font-size: .85rem; color: var(--accent-text); display: block; margin-bottom: 3rem; }
.service h3 { margin-bottom: .9rem; text-transform: uppercase; font-size: 1.15rem; letter-spacing: .02em; }
.service p { font-size: .92rem; color: var(--text-muted); margin: 0; }

/* ---------- SLOTS DE IMAGEM ---------- */
.slot {
  margin: 0; position: relative; overflow: hidden; border-radius: var(--radius);
  aspect-ratio: 4 / 3;
  background:
    linear-gradient(135deg, rgba(200, 209, 217, .10), rgba(138, 147, 156, .04)),
    repeating-linear-gradient(45deg, transparent 0 14px, rgba(255, 255, 255, .04) 14px 15px);
  display: flex; align-items: center; justify-content: center;
}
.slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); z-index: 1; }
.slot__label {
  font-size: .72rem; letter-spacing: .1em; color: var(--text-muted);
  padding: .4rem .8rem; border: 1px dashed var(--line); border-radius: 100px;
}
.slot--wide { aspect-ratio: 16 / 9; }
.slot--reel { aspect-ratio: 9 / 16; }

/* ---------- PROJETOS ---------- */
.project--feature { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; margin-bottom: clamp(48px, 7vw, 88px); }
.project--feature h3 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin-bottom: 1rem; }
.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 36px); }
.project .slot { margin-bottom: 1.4rem; }
.projects .slot { aspect-ratio: 16 / 9; }
.project--feature .slot { margin-bottom: 0; }
.project:hover .slot img { transform: scale(1.04); }
.project__info h3 { margin-bottom: .6rem; }
.project__info p { color: var(--text-muted); font-size: .95rem; }

.project__info .link + .link { margin-left: 1rem; }

/* ---------- VÍDEO (capa clicável) ---------- */
.video-link { display: block; }
.slot--video::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(10, 10, 10, .05) 40%, rgba(118, 0, 0, .55) 100%);
  transition: opacity .4s var(--ease);
}
.video-link__play {
  position: absolute; left: 50%; top: 50%; z-index: 2;
  width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 8px 24px rgba(10, 10, 10, .25);
  transition: transform .35s var(--ease), background .35s var(--ease);
}
.video-link__play::before {
  content: ""; position: absolute; left: 26px; top: 21px;
  border-style: solid; border-width: 11px 0 11px 18px;
  border-color: transparent transparent transparent var(--wine);
  transition: border-color .35s var(--ease);
}
.video-link__badge {
  position: absolute; left: 10px; bottom: 10px; z-index: 2;
  font-size: .72rem; font-weight: 600; letter-spacing: .08em; color: var(--white);
}
.video-link:hover .slot img { transform: scale(1.05); }
.video-link:hover .video-link__play,
.reel:hover .video-link__play { transform: scale(1.1); background: var(--wine); }
.video-link:hover .video-link__play::before,
.reel:hover .video-link__play::before { border-left-color: var(--white); }
.reel .video-link__play { width: 48px; height: 48px; margin: -24px 0 0 -24px; }
.reel .video-link__play::before { left: 19px; top: 15px; border-width: 9px 0 9px 14px; }
.reel:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 4px; border-radius: var(--radius); }
.video-link:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 4px; border-radius: var(--radius); }

/* ---------- ÚLTIMOS TRABALHOS ---------- */
.client {
  display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(24px, 4vw, 64px);
  padding: clamp(36px, 5vw, 56px) 0; border-top: 1px solid var(--line);
}
.client:last-child { border-bottom: 1px solid var(--line); }
.client__info h3 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: .5rem; }
.client__info .link { margin-bottom: 1.2rem; }
.client__info p { color: var(--text-muted); font-size: .95rem; }
.reels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.reel { position: relative; display: block; }
.reel .slot { margin: 0; }
.reel:hover .slot img { transform: scale(1.05); }
.reel__play {
  position: absolute; left: 10px; bottom: 10px; z-index: 2;
  font-size: .72rem; font-weight: 600; letter-spacing: .08em;
  background: var(--white); color: var(--ink);
  padding: .35rem .7rem; border-radius: 100px;
  transition: background .3s, color .3s;
}
.reel:hover .reel__play { background: var(--wine); color: var(--white); }

/* ---------- CONTATO (degradê) ---------- */
.contact { background: var(--grad-dark); color: var(--white); padding: var(--section) 0; text-align: center; position: relative; overflow: hidden; }
.contact::after {
  content: ""; position: absolute; left: 50%; bottom: -40%; width: 120vw; height: 80%; transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(118, 0, 0, .55), transparent 70%); pointer-events: none;
}
.contact__inner { position: relative; z-index: 1; }
.contact h2 { font-size: clamp(2.4rem, 6.5vw, 5rem); margin-bottom: 1.4rem; }
.contact h2 em { color: var(--mist); font-style: italic; }
.contact__lead { color: rgba(255, 255, 255, .75); max-width: 480px; margin: 0 auto 3rem; }
.contact__cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 820px; margin: 0 auto; }
.contact__card {
  display: grid; grid-template-columns: 1fr auto; grid-template-areas: "label arrow" "value arrow";
  text-align: left; gap: .3rem 1rem; align-items: center;
  padding: 1.6rem 1.8rem;
  border: 1px solid rgba(255, 255, 255, .2); border-radius: var(--radius);
  background: rgba(255, 255, 255, .04);
  transition: background .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease);
}
.contact__card:hover { background: var(--white); color: var(--ink); border-color: var(--white); transform: translateY(-3px); }
.contact__label { grid-area: label; font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--mist); }
.contact__card:hover .contact__label { color: var(--wine); }
.contact__card { container-type: inline-size; }
/* A fonte acompanha a largura do cartão, para o e-mail caber em uma linha */
.contact__value { grid-area: value; font-family: var(--font-display); font-size: clamp(.8rem, 1.3vw, 1.05rem); font-size: clamp(.8rem, 5cqi, 1.15rem); font-weight: 600; overflow-wrap: anywhere; }
.contact__arrow { grid-area: arrow; font-size: 1.5rem; transition: transform .35s var(--ease); }
.contact__card:hover .contact__arrow { transform: translateX(4px); color: var(--wine); }

/* ---------- FOOTER ---------- */
.footer { background: var(--bg); color: var(--steel); font-size: .82rem; padding: 1.6rem 0; border-top: 1px solid var(--line); }
.footer__inner { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.footer a:hover { color: var(--white); }

/* ---------- ANIMAÇÃO DE ENTRADA ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee__track { animation: none; }
}

/* ---------- RESPONSIVO ---------- */
@media (max-width: 1024px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .service:nth-child(2) { border-right: 0; }
  .service:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .projects { grid-template-columns: repeat(2, 1fr); }
  .client { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: fixed; inset: 76px 0 auto 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--bg-alt); padding: .5rem var(--gutter) 1.5rem;
    box-shadow: 0 12px 24px rgba(0, 0, 0, .5);
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: .3s var(--ease);
  }
  .nav.is-open { background: var(--bg-alt); }
  .nav.is-open .nav__links { transform: none; opacity: 1; pointer-events: auto; }
  .nav__links a { padding: .9rem 0; width: 100%; font-size: 1rem; border-bottom: 1px solid var(--line); }
  .nav__links a::after { display: none; }
  .nav__cta { border: 0; border-radius: 0; padding: .9rem 0; color: var(--accent-text); }

  .hero { padding-top: 104px; }
  .hero__grid, .about__grid, .project--feature { grid-template-columns: 1fr; }
  .hero__media { aspect-ratio: 1 / 1; order: -1; }
  .about__media { aspect-ratio: 1 / 1; }
  .contact__cards { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .services, .projects { grid-template-columns: 1fr; }
  .service { border-right: 0; border-bottom: 1px solid var(--line); }
  .service__num { margin-bottom: 1.4rem; }
  .reels { gap: 8px; }
  .reel__play { left: 6px; bottom: 6px; font-size: .62rem; padding: .25rem .5rem; }
  .slot__label { font-size: .6rem; padding: .3rem .5rem; }
}
