/* Fontes guardadas no próprio site (sem ligação ao Google: não é preciso aviso de cookies) */
@font-face { font-family: "Barlow"; font-weight: 400; font-style: normal; font-display: swap; src: url("../assets/fonts/barlow-400.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 500; font-style: normal; font-display: swap; src: url("../assets/fonts/barlow-500.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 600; font-style: normal; font-display: swap; src: url("../assets/fonts/barlow-600.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-style: normal; font-display: swap; src: url("../assets/fonts/barlow-condensed-600.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-style: normal; font-display: swap; src: url("../assets/fonts/barlow-condensed-700.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 800; font-style: normal; font-display: swap; src: url("../assets/fonts/barlow-condensed-800.woff2") format("woff2"); }

/* ===== Tema =====
   --brand é a cor principal (o painel do Gilson vai poder trocá-la).
   data-theme="dark" | "light" alterna o site entre escuro e claro. */
:root {
  --brand: #f7931e;
  --brand-ink: #111;
  --radius: 14px;
  --container: 1200px;
  --font-head: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Barlow", system-ui, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
}
[data-theme="dark"] {
  --bg: #0d0d0d;
  --bg-2: #151515;
  --bg-3: #1c1c1c;
  --text: #f4f4f4;
  --muted: #a3a3a3;
  --line: rgba(255, 255, 255, .1);
  --light-bg: #f6f4f1;
  --light-text: #141414;
  --light-muted: #5d5d5d;
  --light-line: rgba(0, 0, 0, .08);
}
[data-theme="light"] {
  --bg: #ffffff;
  --bg-2: #f6f4f1;
  --bg-3: #ece8e3;
  --text: #141414;
  --muted: #5d5d5d;
  --line: rgba(0, 0, 0, .1);
  --light-bg: #f6f4f1;
  --light-text: #141414;
  --light-muted: #5d5d5d;
  --light-line: rgba(0, 0, 0, .08);
}

/* ===== Base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.02; margin: 0 0 .5em; letter-spacing: .005em; }
h2 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); font-weight: 800; text-transform: uppercase; }
h3 { font-size: 1.45rem; font-weight: 700; }
p { margin: 0 0 1em; }
.accent { color: var(--brand); }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .container { padding: 0 32px; } }

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--brand); color: var(--brand-ink); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }

.eyebrow {
  font: 700 .82rem/1 var(--font-body);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 14px;
}

/* ===== Botões ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px;
  border-radius: 10px; border: 2px solid transparent;
  font-weight: 600; font-size: 1rem; cursor: pointer;
  transition: transform .25s var(--ease), background-color .25s, border-color .25s, color .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--brand); color: var(--brand-ink); }
.btn-primary:hover { background: color-mix(in srgb, var(--brand) 85%, #fff); }
.btn-ghost { border-color: currentColor; }
.btn-ghost:hover { color: var(--brand); }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: .95rem; }
.ico { width: 20px; height: 20px; flex: none; }

/* ===== Cabeçalho ===== */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background-color .3s, box-shadow .3s;
}
.site-header.scrolled { background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; }
.brand-mark { width: 40px; height: 40px; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text strong { font: 800 1.45rem/1 var(--font-head); letter-spacing: .04em; }
.brand-text small { font-size: .62rem; letter-spacing: .28em; font-weight: 600; opacity: .85; }
[data-theme="light"] .site-header.scrolled .brand { color: var(--text); }

.nav { display: flex; align-items: center; gap: 30px; }
.nav a:not(.btn) { color: #fff; font-weight: 500; position: relative; padding: 6px 0; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--brand); transition: width .3s var(--ease); }
.nav a:not(.btn):hover::after { width: 100%; }
[data-theme="light"] .site-header.scrolled .nav a:not(.btn) { color: var(--text); }

.menu-toggle { display: none; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; padding: 10px; }
.menu-toggle span { display: block; height: 2px; background: #fff; margin: 5px 0; transition: transform .3s, opacity .3s; }
[data-theme="light"] .site-header.scrolled .menu-toggle span { background: var(--text); }

@media (max-width: 860px) {
  .menu-toggle { display: block; }
  .nav {
    position: fixed; inset: 72px 0 auto; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); padding: 8px 16px 20px; border-bottom: 1px solid var(--line);
    transform: translateY(-120%); transition: transform .35s var(--ease); z-index: -1;
  }
  .nav a:not(.btn) { color: var(--text); padding: 16px 4px; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 16px; }
  .nav.open { transform: none; }
  .site-header:has(.nav.open) { background: var(--bg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ===== Hero =====
   Capa mínima: foto em tela cheia, escurecida, com título + botão de orçamento por cima. */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: center;
  min-height: max(100svh, 620px);
  background: #000; color: #fff;
}
.hero-media { position: absolute; inset: 0; z-index: -1; display: block; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 75% center; filter: brightness(.42) contrast(1.05); }
/* escurecimento uniforme, sem degradê lateral */
.hero-media::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.12); }
.hero-title { text-shadow: 0 2px 24px rgba(0,0,0,.45); }
.hero-panel {
  width: 100%; max-width: var(--container); margin: 0 auto;
  padding: 104px 32px 56px calc(32px + 5vw);
  display: flex; flex-direction: column; align-items: flex-start;
}
.hero-title {
  font-size: clamp(2.6rem, min(5.2vw, 9vh), 5.2rem); font-weight: 800; line-height: .95;
  text-transform: uppercase; margin: 0 0 40px;
}
/* cada linha tem máscara para a entrada animada */
.hero-title .line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.hero-title .line > span { display: block; }
@media (min-width: 600px) { .hero-title .line { white-space: nowrap; } }

.hero-cta {
  min-height: 62px; padding: 0 30px; font-size: 1.12rem; font-weight: 700; border-radius: 8px;
  box-shadow: 0 10px 30px -8px color-mix(in srgb, var(--brand) 60%, transparent);
}
.hero-cta .ico { width: 24px; height: 24px; }

@media (max-width: 767px) {
  .hero { align-items: flex-start; }
  .hero-media img { object-position: center 70%; }
  /* escuro no topo, onde ficam o título e o botão */
  .hero-media::after { background: linear-gradient(180deg, rgba(0,0,0,.85) 0%, rgba(0,0,0,.55) 40%, rgba(0,0,0,.1) 70%, rgba(0,0,0,.4) 100%); }
  /* título no topo, botão no fundo (acima do botão flutuante do WhatsApp) */
  .hero-panel { min-height: max(100svh, 620px); justify-content: space-between; padding: 120px 16px 96px; }
  .hero-title { font-size: clamp(2.1rem, 10.2vw, 2.8rem); margin-bottom: 28px; }
  .hero-cta { width: 100%; }
}

/* ===== Secções ===== */
.section { padding: clamp(72px, 10vw, 120px) 0; }
.section-light { background: var(--light-bg); color: var(--light-text); }
.section-light p { color: var(--light-muted); }
.section-dark2 { background: var(--bg-2); }
.section-head { max-width: 560px; margin-bottom: 40px; }
.section-head p { color: var(--muted); }
.section-light .section-head p { color: var(--light-muted); }
.section-head-row { max-width: none; display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px; }
.section-head-row h2 { margin: 0; }

/* Serviços */
.services-layout { display: grid; gap: 40px; }
@media (min-width: 960px) { .services-layout { grid-template-columns: 1fr 1.6fr; align-items: start; gap: 64px; } }
.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.service {
  background: #fff; border: 1px solid var(--light-line); border-radius: var(--radius); padding: 28px;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.service:hover { transform: translateY(-6px); box-shadow: 0 18px 40px -20px rgba(0,0,0,.25); border-color: var(--brand); }
.service-ico { width: 46px; height: 46px; margin-bottom: 18px; fill: none; stroke: var(--brand); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.service p { margin: 0; font-size: .98rem; }

/* Números */
.stats-band { display: grid; background: var(--bg-2); }
@media (min-width: 900px) { .stats-band { grid-template-columns: 1fr 1fr; } }
.stats-media img { width: 100%; height: 100%; min-height: 320px; object-fit: cover; }
.stats-content { padding: clamp(48px, 7vw, 96px) clamp(16px, 5vw, 72px); align-self: center; }
.stats-content p { color: var(--muted); max-width: 44ch; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 36px 0 0; }
.stat { border-top: 2px solid var(--brand); padding-top: 14px; }
.stat dt { font: 800 clamp(2.4rem, 5vw, 3.6rem)/1 var(--font-head); color: var(--brand); }
.stat dt::before { content: "+"; }
.stat dd { margin: 6px 0 0; color: var(--muted); font-size: .95rem; }

/* Portfólio */
.gallery { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.work {
  position: relative; padding: 0; border: 0; border-radius: var(--radius); overflow: hidden; cursor: zoom-in;
  aspect-ratio: 4 / 3; background: var(--bg-3); text-align: left;
}
.work img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.work:hover img { transform: scale(1.06); }
.work-info {
  position: absolute; inset: auto 0 0; padding: 40px 18px 16px; color: #fff;
  background: linear-gradient(0deg, rgba(0,0,0,.85), transparent);
  display: flex; flex-direction: column;
}
.work-info strong { font: 700 1.3rem/1.1 var(--font-head); text-transform: uppercase; }
.work-info small { color: var(--brand); font-weight: 600; }
@media (min-width: 960px) { .gallery { grid-template-columns: repeat(4, 1fr); } .work { aspect-ratio: 3 / 4; } }

/* Antes / depois */
.ba-layout { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .ba-layout { grid-template-columns: 1fr 1fr; gap: 64px; } }
.ba { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 343 / 427; max-width: 520px; width: 100%; justify-self: center; user-select: none; touch-action: pan-y; }
.ba > img, .ba-before img { width: 100%; height: 100%; object-fit: cover; }
.ba-before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: var(--brand); pointer-events: none; }
.ba-handle::after {
  content: "◀ ▶"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 52px; height: 52px; border-radius: 50%; background: var(--brand); color: var(--brand-ink);
  display: grid; place-items: center; font-size: .7rem; letter-spacing: 2px; box-shadow: 0 6px 20px rgba(0,0,0,.4);
}
.ba-tag { position: absolute; top: 14px; padding: 6px 12px; border-radius: 6px; background: rgba(0,0,0,.65); color: #fff; font-weight: 600; font-size: .85rem; pointer-events: none; }
.ba-tag-l { left: 14px; } .ba-tag-r { right: 14px; }
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }

/* Vídeos */
.clips { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .clips { grid-template-columns: repeat(6, 1fr); } }
.clip { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 9 / 16; background: var(--bg-3); }
.clip video { width: 100%; height: 100%; object-fit: cover; }
.clip figcaption {
  position: absolute; inset: auto 0 0; padding: 30px 12px 12px; font-weight: 600; font-size: .9rem; color: #fff;
  background: linear-gradient(0deg, rgba(0,0,0,.8), transparent);
}

/* Sobre */
.about { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .about { grid-template-columns: .85fr 1.15fr; gap: 72px; } }
.about-media { background: #0d0d0d; border-radius: var(--radius); overflow: hidden; max-width: 460px; justify-self: center; width: 100%; }
.about-media img { width: 100%; height: auto; }
.checks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; }
.checks li::before {
  content: "✓"; flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--brand); color: var(--brand-ink);
  display: grid; place-items: center; font-size: .8rem; font-weight: 700; margin-top: 1px;
}

/* FAQ */
.faq-layout { display: grid; gap: 32px; }
@media (min-width: 900px) { .faq-layout { grid-template-columns: 1fr 1.5fr; gap: 64px; } }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 40px 22px 0; position: relative;
  font: 700 1.3rem/1.2 var(--font-head); text-transform: uppercase; letter-spacing: .01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); color: var(--brand); font-size: 1.8rem; transition: transform .3s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 20px; margin: 0; }

/* Orçamento */
.section-cta { background: radial-gradient(120% 80% at 0% 0%, color-mix(in srgb, var(--brand) 22%, transparent), transparent 60%), var(--bg-2); }
.cta-layout { display: grid; gap: 40px; }
@media (min-width: 900px) { .cta-layout { grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; } }
.cta-layout p { color: var(--muted); }
.contact-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.contact-list li { display: flex; align-items: center; gap: 12px; font-weight: 500; }
.contact-list .ico, .ico-txt { color: var(--brand); width: 22px; text-align: center; }
.contact-list a:hover { color: var(--brand); }
.quote {
  display: grid; gap: 16px; grid-template-columns: 1fr 1fr;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 4vw, 36px);
}
.quote label { display: grid; gap: 8px; font-weight: 600; font-size: .92rem; }
.quote label:first-child { grid-column: 1 / -1; }
.quote .full { grid-column: 1 / -1; }
.quote input, .quote select, .quote textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 10px;
  background: var(--bg-2); border: 1px solid var(--line); font-weight: 400; font-size: 1rem;
}
.quote textarea { resize: vertical; }
.quote input:focus, .quote select:focus, .quote textarea:focus { outline: none; border-color: var(--brand); }
.quote [aria-invalid="true"] { border-color: #e5484d; }
.form-error { color: #ff7b7f; margin: 0; font-size: .92rem; }
@media (max-width: 560px) { .quote { grid-template-columns: 1fr; } }

/* Rodapé */
.site-footer { background: #080808; color: #fff; padding: 48px 0 24px; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding-bottom: 28px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-nav a { color: rgba(255,255,255,.75); }
.footer-nav a:hover { color: var(--brand); }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 20px; font-size: .88rem; color: rgba(255,255,255,.55); }
.footer-legal p { margin: 0; }
.footer-legal a { text-decoration: underline; }
.footer-legal a:hover { color: var(--brand); }

/* WhatsApp flutuante */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 40; width: 60px; height: 60px; border-radius: 50%;
  background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0,0,0,.35);
  transition: transform .3s var(--ease);
}
.wa-float svg { width: 32px; height: 32px; }
.wa-float:hover { transform: scale(1.08); }

/* Lightbox */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 94vw; max-height: 90vh; }
.lightbox::backdrop { background: rgba(0,0,0,.88); }
.lightbox img { max-width: 94vw; max-height: 88vh; border-radius: 10px; }
.lightbox-close {
  position: fixed; top: 16px; right: 16px; width: 48px; height: 48px; border-radius: 50%; border: 0;
  background: var(--brand); color: var(--brand-ink); font-size: 1.8rem; line-height: 1; cursor: pointer;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

/* Depoimentos */
.quotes { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.quote-card {
  margin: 0; padding: 28px; border-radius: var(--radius); background: var(--bg); border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 22px;
}
.quote-card blockquote { margin: 0; font-size: 1.08rem; line-height: 1.6; }
.quote-card figcaption { display: flex; align-items: center; gap: 12px; margin-top: auto; font-weight: 600; }
.quote-avatar {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: var(--brand); color: var(--brand-ink); font: 800 .95rem/1 var(--font-head);
}
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }

/* Botão Área da equipa no menu */
.nav .nav-team {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px !important; border-radius: 10px;
  border: 1.5px solid rgba(255,255,255,.35);
}
.nav .nav-team::after { display: none; }
.nav .nav-team:hover { border-color: var(--brand); color: var(--brand); }
.nav .nav-team .ico { width: 18px; height: 18px; }
@media (max-width: 860px) {
  .nav .nav-team { justify-content: center; margin-top: 16px; border-color: var(--line); padding: 14px !important; }
  .nav .nav-team + .btn { margin-top: 10px; }
}

/* Formulário: consentimento e confirmação */
.quote .consent { display: flex; align-items: flex-start; gap: 10px; font-size: .9rem; font-weight: 400; line-height: 1.4; color: var(--muted); }
.quote .consent input { width: 20px; height: 20px; min-height: 0; flex: none; margin-top: 2px; accent-color: var(--brand); }
.quote .consent a { color: var(--brand); text-decoration: underline; }
.quote .form-ok { color: #6fd39b; margin: 0; font-size: .95rem; }
