/* ============================================================
   PORTS ESQUADRIAS — ESTILOS
   Altere primeiro as variáveis abaixo para personalizar cores.
   ============================================================ */
:root {
  --coal: #111315;
  --graphite: #24282b;
  --warm-white: #f7f6f2;
  --metal: #9ca2a6;
  --aluminum: #d9ddde;
  --wood: #9a6745;
  --orange: #e65f28;
  --whatsapp: #25d366;
  --line: rgba(17, 19, 21, .16);
  --heading: "Manrope", Arial, sans-serif;
  --body: "Inter", Arial, sans-serif;
  --container: 1200px;
}

/* Reset essencial e acessibilidade. */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; min-width: 320px; color: var(--coal); background: var(--warm-white); font: 400 16px/1.65 var(--body); overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 4px; }
.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 9999; top: 8px; left: 8px; padding: 12px 18px; background: white; transform: translateY(-150%); }
.skip-link:focus { transform: none; }

/* Tipografia e elementos reutilizáveis. */
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--heading); line-height: 1.08; letter-spacing: -.045em; }
h1 { font-size: clamp(2.65rem, 6.4vw, 5.7rem); font-weight: 600; }
h2 { font-size: clamp(2.15rem, 4.2vw, 4.2rem); font-weight: 600; }
h3 { font-size: 1.2rem; }
em { color: var(--wood); font-style: normal; }
.section { padding: clamp(78px, 10vw, 148px) 0; }
.eyebrow { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; font: 600 .72rem/1 var(--heading); letter-spacing: .17em; text-transform: uppercase; }
.eyebrow span { width: 38px; height: 1px; background: currentColor; }
.eyebrow.light { color: var(--aluminum); }
.button { display: inline-flex; min-height: 52px; align-items: center; justify-content: center; gap: 22px; padding: 13px 24px; border: 1px solid var(--orange); border-radius: 0; color: white; background: var(--orange); font: 600 .88rem/1.2 var(--heading); cursor: pointer; transition: .25s ease; }
.button:hover { color: var(--coal); background: var(--warm-white); border-color: var(--warm-white); transform: translateY(-2px); }
.button-small { min-height: 46px; padding: 10px 18px; color: white; }
.text-link { display: inline-flex; min-height: 48px; align-items: center; gap: 12px; border-bottom: 1px solid currentColor; font-weight: 600; }
.text-link span { transition: transform .2s; }
.text-link:hover span { transform: translate(3px,-3px); }
.section-heading { max-width: 760px; }
.section-heading h2 { margin-bottom: 0; }

/* Cabeçalho. */
.site-header { position: fixed; z-index: 100; inset: 0 0 auto; color: white; background: rgba(17,19,21,.92); backdrop-filter: blur(16px); border-bottom: 1px solid rgba(255,255,255,.08); }
.header-inner { display: flex; height: 78px; align-items: center; gap: 36px; }
.brand { display: inline-flex; flex-shrink: 0; align-items: center; gap: 10px; font: 800 1rem/1 var(--heading); letter-spacing: .06em; }
.brand small { display: block; margin-top: 4px; color: var(--metal); font-size: .47rem; letter-spacing: .25em; }
.brand-mark { display: grid; width: 38px; height: 38px; place-items: center; color: white; border: 1px solid var(--orange); font: 700 1.35rem/1 var(--heading); clip-path: polygon(0 0,100% 0,100% 76%,76% 100%,0 100%); }
.main-nav { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.main-nav a { position: relative; color: #dfe1e2; font-size: .83rem; }
.main-nav a::after { content:""; position: absolute; inset: auto 0 -8px; height: 1px; background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .2s; }
.main-nav a:hover::after { transform: scaleX(1); }
.menu-toggle { display: none; width: 48px; height: 48px; margin-left: auto; padding: 14px; border: 0; color: white; background: transparent; cursor: pointer; }
.menu-toggle span:not(.sr-only) { display: block; height: 1px; margin: 7px 0; background: currentColor; transition: .2s; }

/* Hero e elementos inspirados em desenho técnico. */
.hero { padding-top: 78px; color: white; background: var(--coal); }
.hero-grid { display: grid; min-height: 720px; grid-template-columns: .95fr 1.05fr; align-items: center; gap: 7vw; padding-top: 70px; padding-bottom: 70px; }
.hero-copy { position: relative; z-index: 1; }
.hero h1 { max-width: 700px; margin-bottom: 28px; }
.hero-lead { max-width: 610px; color: #cdd0d1; font-size: clamp(1.03rem, 1.5vw, 1.2rem); }
.hero-actions { display: flex; align-items: center; gap: 28px; margin-top: 36px; }
.hero .text-link { color: white; }
.microcopy { max-width: 550px; margin: 24px 0 0; color: var(--metal); font-size: .82rem; }
.hero-media { position: relative; min-width: 0; }
.hero-media::before { content:""; position: absolute; z-index: -1; inset: -32px 46% 40% -32px; border-top: 1px solid rgba(255,255,255,.25); border-left: 1px solid rgba(255,255,255,.25); }
.hero-media img { width: 100%; aspect-ratio: 1.02; object-fit: cover; filter: saturate(.86) contrast(1.03); }
.project-label { position: absolute; right: -26px; bottom: -28px; min-width: 220px; padding: 20px 24px; color: var(--coal); background: var(--warm-white); }
.project-label span, .project-label small { display: block; color: #666; font-size: .64rem; letter-spacing: .14em; }
.project-label strong { display: block; margin: 5px 0; font: 600 .9rem var(--heading); }
.measure { position: absolute; z-index: 2; color: var(--metal); font: 500 .58rem var(--body); letter-spacing: .16em; }
.measure-top { top: -22px; right: 0; }
.measure-side { right: -56px; top: 45%; transform: rotate(90deg); }
.trust-strip { border-top: 1px solid rgba(255,255,255,.1); background: var(--graphite); }
.trust-strip .container { display: flex; min-height: 68px; align-items: center; justify-content: center; gap: 34px; color: #d5d7d8; font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; }
.trust-strip i { width: 4px; height: 4px; background: var(--orange); transform: rotate(45deg); }

/* Introdução. */
.split { display: grid; grid-template-columns: 1.05fr .75fr; gap: 11vw; align-items: end; }
.intro-copy { color: #555; font-size: 1.04rem; }
.intro-copy p:first-child { color: var(--coal); font-size: 1.25rem; }
.intro-copy .text-link { margin-top: 18px; color: var(--coal); }
.stat-grid { display: grid; grid-template-columns: repeat(3,1fr); margin-top: 78px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat-grid article { padding: 32px 34px; border-right: 1px solid var(--line); }
.stat-grid article:last-child { border: 0; }
.stat-grid span, .solution-card b { color: var(--wood); font: 500 .68rem var(--body); letter-spacing: .14em; }
.stat-grid h3 { margin: 34px 0 10px; }
.stat-grid p { margin: 0; color: #666; font-size: .9rem; }

/* Portfólio. */
.portfolio { color: white; background: var(--coal); }
.portfolio-head, .process-head { display: flex; align-items: end; justify-content: space-between; gap: 50px; }
.portfolio-head > p, .process-head > p { max-width: 410px; color: var(--metal); }
.filters { display: flex; gap: 8px; margin: 50px 0 28px; overflow-x: auto; scrollbar-width: none; }
.filter { flex: 0 0 auto; min-height: 44px; padding: 9px 18px; color: #c6c9ca; border: 1px solid #3d4245; background: transparent; cursor: pointer; }
.filter.active, .filter:hover { color: white; border-color: var(--orange); background: var(--orange); }
.project-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.project-card { position: relative; min-height: 390px; padding: 0; overflow: hidden; text-align: left; border: 0; background: #202427; cursor: pointer; }
.project-card.wide { grid-column: span 2; }
.project-card[hidden] { display: none; }
.project-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.project-card::after { content:""; position: absolute; inset: 30% 0 0; background: linear-gradient(transparent,rgba(0,0,0,.9)); }
.project-card:hover img { transform: scale(1.04); }
.project-card > span { position: absolute; z-index: 1; inset: auto 22px 20px; color: white; }
.project-card small, .project-card strong { display: block; }
.project-card small { color: #d3d5d6; font-size: .65rem; letter-spacing: .16em; }
.project-card strong { margin-top: 5px; font: 600 1.1rem var(--heading); }
.project-card i { position: absolute; right: 0; bottom: 0; font-style: normal; }
.photo-note { margin: 22px 0 0; color: #747a7d; font-size: .75rem; }

/* Serviços. */
.solution-grid { display: grid; grid-template-columns: repeat(3,1fr); margin-top: 60px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.solution-card { min-height: 320px; padding: 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background .25s,color .25s; }
.solution-card:hover { color: white; background: var(--graphite); }
.line-icon { margin: 45px 0 28px; color: var(--wood); font-size: 1.7rem; letter-spacing: -.4em; }
.solution-card h3 { max-width: 260px; }
.solution-card p { color: #6d7173; font-size: .9rem; }
.solution-card a { display: inline-block; margin-top: 12px; font-size: .8rem; font-weight: 600; border-bottom: 1px solid; }
.solution-card:hover p { color: #b8bdbf; }

/* Segmentos. */
.audiences { padding-top: 20px; }
.audience-grid { display: grid; grid-template-columns: repeat(4,1fr); margin-top: 50px; gap: 1px; background: var(--line); }
.audience-grid article { padding: 32px 26px; background: var(--warm-white); }
.audience-grid span { display: grid; width: 48px; height: 48px; place-items: center; border: 1px solid var(--wood); color: var(--wood); font: 500 .65rem var(--body); }
.audience-grid h3 { margin: 60px 0 12px; }
.audience-grid p { margin: 0; color: #666; font-size: .9rem; }

/* Processo. */
.process { color: white; background: var(--graphite); }
.timeline { margin: 64px 0 0; padding: 0; list-style: none; border-top: 1px solid #454a4d; }
.timeline li { display: grid; grid-template-columns: 110px 1fr; gap: 34px; padding: 28px 0; border-bottom: 1px solid #454a4d; }
.timeline b { color: var(--orange); font: 500 .72rem var(--body); letter-spacing: .16em; }
.timeline h3 { margin-bottom: 9px; }
.timeline p { max-width: 650px; margin: 0; color: #adb2b4; }

/* Formulário. */
.quote { color: white; background: var(--coal); }
.quote-grid { display: grid; grid-template-columns: .8fr 1fr; gap: 9vw; align-items: start; }
.quote-copy p { max-width: 500px; color: var(--metal); }
.quote-copy ul { padding: 0; margin: 36px 0; list-style: none; color: var(--aluminum); }
.quote-copy li { margin: 10px 0; }
.quote-form { padding: clamp(24px,4vw,46px); color: var(--coal); background: var(--warm-white); }
.form-progress { display: flex; align-items: center; gap: 20px; margin-bottom: 34px; color: #686c6e; font-size: .65rem; letter-spacing: .14em; }
.form-progress i { flex: 1; height: 2px; background: #d7d8d5; }
.form-progress em { display: block; width: 50%; height: 100%; background: var(--orange); transition: width .3s; }
.quote-form label { display: grid; gap: 8px; margin-bottom: 18px; font: 600 .77rem var(--heading); }
.quote-form input, .quote-form select, .quote-form textarea { width: 100%; min-height: 50px; padding: 12px 14px; color: var(--coal); border: 1px solid #c8cac8; border-radius: 0; background: white; font: 400 .9rem var(--body); }
.quote-form textarea { min-height: 110px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-next { width: 100%; margin-top: 8px; }
.form-next:hover, .quote-form .button:hover { border-color: var(--coal); color: white; background: var(--coal); }
.form-step[hidden] { display: none; }
.quote-form fieldset { padding: 0; margin: 0 0 24px; border: 0; }
.quote-form legend { margin-bottom: 12px; font: 600 .77rem var(--heading); }
.choice-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 8px; }
.choice-grid label { margin: 0; }
.choice-grid input { position: absolute; opacity: 0; pointer-events: none; }
.choice-grid span { display: flex; min-height: 48px; align-items: center; padding: 10px 12px; border: 1px solid #c8cac8; background: white; cursor: pointer; }
.choice-grid input:checked + span { border-color: var(--orange); box-shadow: inset 3px 0 var(--orange); }
.consent { grid-template-columns: 22px 1fr !important; align-items: start; color: #65696b; font-family: var(--body) !important; font-weight: 400 !important; }
.consent input { width: 20px; min-height: 20px; }
.form-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 24px; }
.button-back { min-height: 48px; padding: 10px; border: 0; border-bottom: 1px solid; background: transparent; cursor: pointer; }
.form-status { min-height: 22px; margin: 14px 0 0; color: #a33; font-size: .82rem; }

/* FAQ e localização. */
.faq-grid { display: grid; grid-template-columns: .65fr 1fr; gap: 9vw; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { display: flex; min-height: 76px; align-items: center; justify-content: space-between; gap: 18px; list-style: none; cursor: pointer; font: 600 1rem var(--heading); }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary i { font: 300 1.5rem var(--body); transition: transform .2s; }
.faq-list details[open] summary i { transform: rotate(45deg); }
.faq-list details p { max-width: 690px; padding-right: 40px; color: #666; }
.location { padding: 64px 0; color: white; background: var(--wood); }
.location-inner { display: flex; align-items: end; justify-content: space-between; gap: 40px; }
.location h2 { margin-bottom: 16px; }
.location address { color: #f0e8e2; font-style: normal; }
.location-actions { display: flex; align-items: center; gap: 28px; }
.button-light { color: var(--coal); border-color: white; background: white; }
.light-link { color: white; }

/* Rodapé, modal e WhatsApp flutuante. */
.site-footer { padding: 64px 0 20px; color: #b9bdbe; background: var(--coal); }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr .5fr; gap: 60px; align-items: start; }
.footer-grid p { max-width: 420px; }
.footer-grid > div { display: grid; gap: 8px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 52px; padding-top: 20px; border-top: 1px solid #303437; font-size: .78rem; }
.footer-bottom a { color: white; text-decoration: underline; text-underline-offset: 4px; }
.whatsapp-float { position: fixed; z-index: 90; right: 20px; bottom: 20px; display: none; min-height: 52px; align-items: center; gap: 8px; padding: 10px 17px; color: #082b16; border-radius: 99px; background: var(--whatsapp); box-shadow: 0 8px 28px rgba(0,0,0,.25); font-size: .8rem; }
.whatsapp-float span { font-size: 1.3rem; }
.project-modal { width: min(92vw,860px); max-height: 90vh; padding: 0; color: white; border: 0; background: var(--coal); }
.project-modal::backdrop { background: rgba(0,0,0,.8); backdrop-filter: blur(7px); }
.project-modal img { width: 100%; max-height: 65vh; object-fit: contain; background: #080909; }
.project-modal > div { padding: 22px; }
.project-modal p { margin-bottom: 6px; color: var(--metal); font-size: .62rem; letter-spacing: .16em; }
.project-modal h3 { margin-bottom: 20px; }
.modal-close { position: absolute; z-index: 2; top: 12px; right: 12px; width: 48px; height: 48px; color: white; border: 1px solid rgba(255,255,255,.5); background: rgba(0,0,0,.6); cursor: pointer; font-size: 1.6rem; }

/* Animações de entrada. JS adiciona a classe .visible. */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* Tablet. */
@media (max-width: 980px) {
  .header-cta { display: none; }
  .menu-toggle { display: block; }
  .main-nav { position: fixed; inset: 78px 0 auto; display: grid; gap: 0; padding: 12px 20px 22px; background: var(--coal); border-top: 1px solid #303437; transform: translateY(-130%); opacity: 0; pointer-events: none; transition: .25s; }
  .main-nav.open { transform: none; opacity: 1; pointer-events: auto; }
  .main-nav a { display: flex; min-height: 52px; align-items: center; border-bottom: 1px solid #303437; }
  .hero-grid { grid-template-columns: 1fr; min-height: 0; gap: 64px; padding-top: 70px; padding-bottom: 90px; }
  .hero-copy { max-width: 760px; }
  .hero-media { width: min(100%,760px); }
  .split, .quote-grid, .faq-grid { grid-template-columns: 1fr; gap: 48px; }
  .solution-grid { grid-template-columns: repeat(2,1fr); }
  .audience-grid { grid-template-columns: repeat(2,1fr); }
  .project-label { right: 16px; }
  .portfolio-head, .process-head { align-items: start; flex-direction: column; }
}

/* Mobile: prioriza leitura, toque e ausência de estouro horizontal. */
@media (max-width: 640px) {
  .container { width: min(calc(100% - 32px), var(--container)); }
  .section { padding: 78px 0; }
  h1 { font-size: clamp(2.48rem,12vw,3.6rem); }
  h2 { font-size: clamp(2rem,9.5vw,3rem); }
  .header-inner { height: 70px; }
  .main-nav { top: 70px; }
  .hero { padding-top: 70px; }
  .hero-grid { gap: 50px; padding-top: 48px; }
  .hero-actions { align-items: stretch; flex-direction: column; gap: 12px; }
  .hero-actions .button { width: 100%; }
  .hero-actions .text-link { width: max-content; }
  .hero-media img { aspect-ratio: 4/4.5; }
  .project-label { right: 10px; bottom: -34px; min-width: 190px; padding: 15px 17px; }
  .measure-side { display: none; }
  .trust-strip .container { justify-content: flex-start; gap: 18px; padding: 16px 0; overflow-x: auto; scrollbar-width: none; }
  .trust-strip span { flex: 0 0 auto; max-width: 220px; }
  .split { gap: 32px; }
  .stat-grid { grid-template-columns: 1fr; margin-top: 52px; }
  .stat-grid article { padding: 26px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .stat-grid article:last-child { border-bottom: 0; }
  .stat-grid h3 { margin-top: 22px; }
  .project-grid { grid-template-columns: 1fr; }
  .project-card, .project-card.wide { grid-column: auto; min-height: 380px; }
  .filters { margin-top: 36px; }
  .solution-grid { grid-template-columns: 1fr; margin-top: 42px; }
  .solution-card { min-height: 280px; }
  .audience-grid { grid-template-columns: 1fr; }
  .audience-grid h3 { margin-top: 38px; }
  .timeline li { grid-template-columns: 48px 1fr; gap: 16px; }
  .field-row, .choice-grid { grid-template-columns: 1fr; }
  .quote-form { margin-inline: -4px; padding: 24px 18px; }
  .form-actions { align-items: stretch; flex-direction: column-reverse; }
  .form-actions .button { width: 100%; }
  .location-inner, .location-actions { align-items: flex-start; flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { align-items: flex-start; flex-direction: column; margin-bottom: 76px; }
  .whatsapp-float { display: flex; }
}

/* Respeita usuários que preferem menos movimento. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
