/* ============================================================
   MATURIN 3D — Sistema de Design
   Paleta: técnico/moderno
   - Azul petróleo profundo (base)
   - Grafite/ardósia (neutros)
   - Âmbar/laranja (destaque, CTA)
   ============================================================ */

 :root {
  --ink-900: #061629;
  --ink-800: #0a1e35;
  --ink-700: #132b48;
  --ink-600: #1d3a5d;
  --steel-500: #52677f;
  --steel-400: #758ba4;
  --steel-300: #a8b8cb;
  --steel-200: #cbd6e3;
  --steel-100: #e3eaf2;
  --steel-50: #f2f5f9;
  --white: #ffffff;

  --amber-500: #c5a15d;
  --amber-600: #a98240;
  --amber-400: #dfc58d;
  --amber-50: #f8f3e8;

  --teal-500: #547a9f;
  --teal-50: #eaf0f6;

  --font-sans: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", "Consolas", monospace;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 3px rgba(6,22,41,.08), 0 1px 2px rgba(6,22,41,.06);
  --shadow-md: 0 6px 18px rgba(6,22,41,.12);
  --shadow-lg: 0 18px 44px rgba(6,22,41,.22);
  --maxw: 1180px;
  --header-h: 72px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--ink-800);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

h1, h2, h3, h4 { line-height: 1.15; font-weight: 800; color: var(--ink-900); letter-spacing: -.02em; }
h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.25rem; }

.container { max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }
.section { padding: clamp(64px, 9vw, 110px) 0; }
.section-alt { background: var(--steel-50); }
.section-dark { background: var(--ink-900); color: var(--steel-200); }
.section-dark h2, .section-dark h3 { color: var(--white); }

.eyebrow {
  display: inline-block; font-family: var(--font-mono); font-size: .78rem;
  letter-spacing: .18em; text-transform: uppercase; color: var(--amber-500);
  font-weight: 700; margin-bottom: 14px;
}
.section-title { margin-bottom: 14px; }
.section-sub { max-width: 640px; color: var(--steel-500); font-size: 1.05rem; }
.section-head { margin-bottom: clamp(36px, 5vw, 56px); }
.center { text-align: center; }
.center .section-sub { margin-inline: auto; }

/* ===== Botões ===== */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: .98rem; padding: 15px 28px;
  border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: all .22s ease; font-family: inherit;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--amber-500); color: var(--ink-900); box-shadow: 0 8px 22px rgba(197,161,93,.24); }
.btn-primary:hover { background: var(--amber-600); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(197,161,93,.32); }
.btn-ghost { background: transparent; color: var(--ink-800); border-color: var(--steel-300); }
.btn-ghost:hover { border-color: var(--ink-800); background: var(--steel-50); }
.btn-light { background: var(--white); color: var(--ink-900); }
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-block { width: 100%; justify-content: center; }

/* ===== Header ===== */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  background: rgba(6,22,41,.96); backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.site-header.scrolled { border-bottom-color: rgba(197,161,93,.28); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.25rem; color: var(--steel-50); letter-spacing: -.02em; }
.brand-logo { width: 52px; height: 52px; object-fit: contain; flex: none; filter: brightness(0) saturate(100%) invert(78%) sepia(21%) saturate(580%) hue-rotate(5deg) brightness(90%) contrast(88%); }
.logo-mark {
  width: 38px; height: 38px; border-radius: 10px;
  background: linear-gradient(135deg, var(--amber-500), var(--amber-600));
  display: grid; place-items: center; color: #fff; flex: none;
}
.logo-mark svg { width: 22px; height: 22px; }
.logo small { display: block; font-family: var(--font-mono); font-size: .55rem; letter-spacing: .22em; color: var(--steel-300); font-weight: 600; }

.main-nav { display: flex; align-items: center; gap: 6px; }
.main-nav a { padding: 9px 15px; border-radius: 999px; font-size: .93rem; font-weight: 600; color: var(--steel-100); transition: all .18s; }
.main-nav a:hover { background: rgba(255,255,255,.1); color: #fff; }
.main-nav a.active { background: var(--amber-500); color: var(--ink-900); }
.main-nav a.btn-primary { color: var(--ink-900); }
.header-cta { margin-left: 10px; padding: 10px 22px; }
.menu-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.menu-toggle span { display: block; width: 24px; height: 2.5px; background: var(--amber-400); border-radius: 2px; margin: 5px 0; transition: .3s; }

main { padding-top: var(--header-h); }

/* ===== Hero ===== */
.hero {
  position: relative;
  background:
    radial-gradient(1100px 560px at 78% -10%, rgba(197,161,93,.18), transparent 60%),
    radial-gradient(800px 480px at 12% 108%, rgba(84,122,159,.15), transparent 60%),
    var(--ink-900);
  color: var(--steel-100);
  padding: clamp(80px, 12vw, 150px) 0 clamp(70px, 9vw, 110px);
  overflow: hidden;
}
.hero::after {
  /* grade técnica sutil */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(157,176,199,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(157,176,199,.07) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 40%, #000 30%, transparent 75%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 { color: #fff; margin-bottom: 20px; }
.hero h1 .hl { color: var(--amber-400); }
.hero-lead { font-size: 1.15rem; color: var(--steel-300); max-width: 520px; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 40px; margin-top: 54px; flex-wrap: wrap; }
.hero-stat b { display: block; font-size: 1.9rem; color: #fff; font-weight: 800; }
.hero-stat span { font-size: .85rem; color: var(--steel-400); font-family: var(--font-mono); letter-spacing: .04em; }

/* Placeholder de imagem hero (trocar por foto real) */
.hero-visual { position: relative; }
.img-placeholder {
  position: relative; overflow: hidden; border-radius: var(--radius-lg);
  background:
    linear-gradient(160deg, var(--ink-700), var(--ink-800));
  border: 1px solid rgba(157,176,199,.18);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 4.4;
  display: grid; place-items: center;
}
.img-placeholder .ph-inner {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 28px 28px;
}
.img-placeholder .ph-label {
  position: relative; z-index: 1; text-align: center; color: var(--steel-300);
  padding: 24px; font-size: .85rem; font-family: var(--font-mono);
}
.img-placeholder .ph-label .ph-ico { font-size: 2.4rem; margin-bottom: 10px; opacity: .8; }
.img-placeholder figcaption {
  position: absolute; left: 14px; bottom: 12px; z-index: 1;
  font-family: var(--font-mono); font-size: .65rem; letter-spacing: .12em;
  color: var(--steel-400); text-transform: uppercase;
}
.hero-chip {
  position: absolute; z-index: 2; left: -18px; bottom: 44px;
  background: #fff; color: var(--ink-900); border-radius: var(--radius-md);
  box-shadow: var(--shadow-md); padding: 14px 18px; display: flex; gap: 12px; align-items: center;
  font-size: .88rem; font-weight: 600;
}
.hero-chip .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--teal-500); box-shadow: 0 0 0 5px rgba(20,184,166,.25); }

/* ===== Cards genéricos ===== */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card-grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: #fff; border: 1px solid var(--steel-100); border-radius: var(--radius-lg);
  padding: 30px 26px; transition: transform .22s, box-shadow .22s, border-color .22s;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--steel-200); }
.card .ico {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--amber-50); color: var(--amber-600); margin-bottom: 18px;
}
.card .ico svg { width: 26px; height: 26px; }
.card .ico.teal { background: var(--teal-50); color: var(--teal-500); }
.card h3 { margin-bottom: 8px; font-size: 1.12rem; }
.card p { color: var(--steel-500); font-size: .95rem; }
.card .card-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-weight: 700; font-size: .9rem; color: var(--amber-600); }

/* ===== Lista de passos (Como funciona) ===== */
.steps { counter-reset: step; display: grid; gap: 0; position: relative; }
.step {
  display: grid; grid-template-columns: 84px 1fr; gap: 26px;
  padding: 34px 0; position: relative;
}
.step:not(:last-child)::before {
  content: ""; position: absolute; left: 41px; top: 96px; bottom: -22px;
  width: 2px; background: repeating-linear-gradient(var(--steel-200) 0 8px, transparent 8px 16px);
}
.step-num {
  width: 84px; height: 84px; border-radius: 50%;
  background: var(--ink-900); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: 1.5rem;
  position: relative; z-index: 1;
  box-shadow: 0 0 0 8px #fff, 0 0 0 9px var(--steel-100);
}
.step:nth-child(even) .step-num { background: var(--amber-500); }
.step-body h3 { margin-bottom: 10px; font-size: 1.3rem; }
.step-body p { color: var(--steel-500); max-width: 560px; }
.step-body .tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.tag { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .06em; padding: 5px 12px; border-radius: 999px; background: var(--steel-100); color: var(--steel-500); font-weight: 600; }

/* ===== Grade filtrável (Possibilidades) ===== */
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 34px; }
.filter-btn {
  font-family: inherit; font-size: .9rem; font-weight: 700; padding: 10px 20px;
  border-radius: 999px; border: 1.5px solid var(--steel-200); background: #fff;
  color: var(--steel-500); cursor: pointer; transition: all .18s;
}
.filter-btn:hover { border-color: var(--ink-800); color: var(--ink-900); }
.filter-btn.active { background: var(--ink-900); border-color: var(--ink-900); color: #fff; }
.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.port-item {
  border-radius: var(--radius-lg); overflow: hidden; background: #fff;
  border: 1px solid var(--steel-100); transition: transform .22s, box-shadow .22s;
}
.port-item:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.port-thumb { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.port-thumb .img-placeholder { position: absolute; inset: 0; border-radius: 0; border: 0; aspect-ratio: auto; }
.port-thumb .ph-label { font-size: .72rem; }
.port-body { padding: 18px 20px 20px; }
.port-cat { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--amber-600); font-weight: 700; }
.port-body h3 { font-size: 1.05rem; margin: 6px 0 4px; }
.port-body p { font-size: .87rem; color: var(--steel-500); }
.port-item.hidden { display: none; }

/* Material chips */
.materials-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.material-chip {
  background: #fff; border: 1px solid var(--steel-100); border-radius: var(--radius-md);
  padding: 20px; text-align: center; transition: border-color .2s, transform .2s;
}
.material-chip:hover { border-color: var(--amber-400); transform: translateY(-3px); }
.material-chip b { display: block; font-size: 1.05rem; margin-bottom: 4px; }
.material-chip span { font-size: .8rem; color: var(--steel-500); }
.material-chip .swatch { width: 34px; height: 34px; border-radius: 50%; margin: 0 auto 12px; border: 2px solid rgba(0,0,0,.06); }

/* ===== B2B (Empresas) ===== */
.b2b-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.b2b-list { display: grid; gap: 16px; }
.b2b-item { display: flex; gap: 16px; align-items: flex-start; background: #fff; border: 1px solid var(--steel-100); border-radius: var(--radius-md); padding: 20px; }
.b2b-item .chk { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--teal-50); color: var(--teal-500); display: grid; place-items: center; margin-top: 2px; }
.b2b-item .chk svg { width: 14px; height: 14px; }
.b2b-item h4 { font-size: 1rem; margin-bottom: 3px; }
.b2b-item p { font-size: .88rem; color: var(--steel-500); }
.b2b-metrics { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.metric { background: var(--ink-900); color: #fff; border-radius: var(--radius-lg); padding: 28px 24px; }
.metric b { display: block; font-size: 2.1rem; color: var(--amber-400); margin-bottom: 6px; }
.metric span { font-size: .88rem; color: var(--steel-300); }

/* Depoimentos */
.testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.quote-card { background: #fff; border: 1px solid var(--steel-100); border-radius: var(--radius-lg); padding: 28px; }
.quote-card .stars { color: var(--amber-500); letter-spacing: 3px; margin-bottom: 14px; font-size: .9rem; }
.quote-card p { font-size: .95rem; color: var(--ink-700); margin-bottom: 18px; }
.quote-who { display: flex; align-items: center; gap: 12px; }
.quote-who .avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--steel-100); display: grid; place-items: center; font-weight: 800; color: var(--steel-500); font-size: .95rem; }
.quote-who b { display: block; font-size: .92rem; }
.quote-who span { font-size: .8rem; color: var(--steel-500); }

/* ===== FAQ ===== */
.faq-list { max-width: 760px; margin-inline: auto; display: grid; gap: 12px; }
.faq-item { background: #fff; border: 1.5px solid var(--steel-100); border-radius: var(--radius-md); overflow: hidden; transition: border-color .2s; }
.faq-item.open { border-color: var(--amber-400); }
.faq-q {
  width: 100%; background: none; border: 0; font-family: inherit; font-size: 1.02rem; font-weight: 700;
  color: var(--ink-900); padding: 20px 56px 20px 24px; cursor: pointer; text-align: left;
  position: relative;
}
.faq-q::after {
  content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
  width: 30px; height: 30px; border-radius: 50%; background: var(--steel-100);
  display: grid; place-items: center; font-size: 1.2rem; color: var(--ink-800); transition: .25s;
}
.faq-item.open .faq-q::after { transform: translateY(-50%) rotate(45deg); background: var(--amber-500); color: #fff; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-a-inner { padding: 0 24px 22px; color: var(--steel-500); font-size: .95rem; }
.faq-group-label { font-family: var(--font-mono); font-size: .75rem; letter-spacing: .15em; text-transform: uppercase; color: var(--steel-400); font-weight: 700; margin: 34px 0 14px; text-align: center; }
.faq-group-label:first-child { margin-top: 0; }

/* ===== CTA final ===== */
.cta-band {
  position: relative; overflow: hidden;
  background: linear-gradient(120deg, var(--ink-900) 30%, var(--ink-700));
  color: #fff; border-radius: var(--radius-lg); padding: clamp(44px, 6vw, 72px);
  display: grid; grid-template-columns: 1.2fr .8fr; gap: 36px; align-items: center;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(600px 300px at 85% 20%, rgba(255,122,26,.25), transparent 65%);
}
.cta-band h2 { color: #fff; margin-bottom: 12px; }
.cta-band p { color: var(--steel-300); margin-bottom: 26px; max-width: 460px; }
.cta-band > * { position: relative; z-index: 1; }
.cta-band .btn-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* ===== Formulário de orçamento ===== */
.form-wrap { display: grid; grid-template-columns: 1fr 380px; gap: 48px; align-items: start; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: .85rem; font-weight: 700; margin-bottom: 7px; color: var(--ink-800); }
.field label .req { color: var(--amber-500); }
.field input[type=text], .field input[type=email], .field input[type=tel],
.field select, .field textarea {
  width: 100%; padding: 13px 15px; border: 1.5px solid var(--steel-200);
  border-radius: 10px; font-family: inherit; font-size: .95rem; color: var(--ink-800);
  background: #fff; transition: border-color .18s, box-shadow .18s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--amber-500); box-shadow: 0 0 0 4px var(--amber-50);
}
.field textarea { min-height: 110px; resize: vertical; }
.field .hint { font-size: .78rem; color: var(--steel-500); margin-top: 5px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* Upload */
.dropzone {
  border: 2px dashed var(--steel-300); border-radius: var(--radius-md);
  padding: 30px 20px; text-align: center; cursor: pointer; transition: all .2s;
  background: var(--steel-50); position: relative;
}
.dropzone:hover, .dropzone.dragover { border-color: var(--amber-500); background: var(--amber-50); }
.dropzone input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dz-ico { font-size: 1.8rem; margin-bottom: 8px; }
.dropzone b { color: var(--ink-800); font-size: .95rem; }
.dropzone small { display: block; color: var(--steel-500); font-size: .8rem; margin-top: 6px; }
.file-list { display: grid; gap: 8px; margin-top: 14px; }
.file-item {
  display: flex; align-items: center; gap: 10px; background: #fff;
  border: 1px solid var(--steel-100); border-radius: 10px; padding: 10px 14px; font-size: .85rem;
}
.file-item .fi-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.file-item .fi-size { color: var(--steel-500); font-family: var(--font-mono); font-size: .75rem; }
.file-item .fi-thumb { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; flex: none; background: var(--steel-100); display: grid; place-items: center; font-size: .7rem; color: var(--steel-500); overflow: hidden; }
.file-item .fi-thumb video { width: 100%; height: 100%; }
.file-item button { background: none; border: 0; color: var(--steel-400); cursor: pointer; font-size: 1.1rem; padding: 2px 6px; }
.file-item button:hover { color: #d33; }

.form-side { position: sticky; top: calc(var(--header-h) + 20px); }
.form-note { background: var(--ink-900); color: var(--steel-200); border-radius: var(--radius-lg); padding: 26px; margin-bottom: 18px; }
.form-note b { color: #fff; display: block; margin-bottom: 8px; font-size: 1.05rem; }
.form-note p { font-size: .85rem; }
.form-note .wa { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; color: var(--teal-500); font-weight: 700; font-size: .92rem; }
.checklist { display: grid; gap: 10px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; color: var(--ink-700); }
.checklist svg { flex: none; width: 18px; height: 18px; color: var(--teal-500); margin-top: 2px; }

.form-status { display: none; margin-top: 16px; padding: 14px 18px; border-radius: 10px; font-size: .9rem; font-weight: 600; }
.form-status.ok { display: block; background: var(--teal-50); color: #0a7c6e; border: 1px solid rgba(20,184,166,.3); }
.form-status.err { display: block; background: #fdecea; color: #b3261e; border: 1px solid rgba(211,47,47,.25); }

/* ===== Footer ===== */
.site-footer { background: var(--ink-900); color: var(--steel-300); padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 44px; }
.site-footer .logo { color: #fff; margin-bottom: 14px; }
.site-footer p { font-size: .9rem; max-width: 300px; }
.site-footer h4 { color: #fff; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 16px; font-family: var(--font-mono); }
.site-footer li { margin-bottom: 10px; font-size: .9rem; }
.site-footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(157,176,199,.15); padding-top: 22px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .8rem; }
.footer-social { display: flex; gap: 10px; }
.footer-social a { width: 40px; height: 40px; border-radius: 50%; background: var(--ink-700); display: grid; place-items: center; transition: background .2s; }
.footer-social a:hover { background: var(--amber-500); }
.footer-social svg { width: 18px; height: 18px; color: #fff; }

/* WhatsApp flutuante */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; display: grid; place-items: center;
  box-shadow: 0 10px 26px rgba(37,211,102,.4); transition: transform .2s;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }

/* ===== Responsivo ===== */
@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { max-width: 480px; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .card-grid-4, .materials-grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio-grid, .testimonials { grid-template-columns: repeat(2, 1fr); }
  .b2b-grid, .form-wrap { grid-template-columns: 1fr; }
  .form-side { position: static; }
  .cta-band { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .main-nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: var(--ink-900); padding: 16px 24px 24px;
    border-bottom: 1px solid var(--ink-700);
    box-shadow: var(--shadow-md);
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: .25s;
  }
  .main-nav.open { transform: none; opacity: 1; pointer-events: auto; }
  .main-nav a { padding: 13px 16px; }
  .header-cta { margin: 10px 0 0; justify-content: center; }
  .menu-toggle { display: block; }
  .menu-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .menu-toggle.open span:nth-child(2) { opacity: 0; }
  .menu-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
  .card-grid, .portfolio-grid, .testimonials, .b2b-metrics, .field-row { grid-template-columns: 1fr; }
  .step { grid-template-columns: 56px 1fr; gap: 18px; }
  .step-num { width: 56px; height: 56px; font-size: 1.1rem; }
  .step:not(:last-child)::before { left: 27px; top: 70px; }
  .hero-chip { left: 8px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}


/* Galeria de projetos com transição de fotos */
.port-carousel { position: absolute; inset: 0; overflow: hidden; background: var(--ink-800); }
.port-slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .65s ease; }
.port-slide.is-active { opacity: 1; }
.carousel-arrow { position: absolute; z-index: 2; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border: 1px solid rgba(255,255,255,.5); border-radius: 50%; background: rgba(6,22,41,.72); color: #fff; font-size: 1.35rem; display: grid; place-items: center; cursor: pointer; transition: background .2s, transform .2s; }
.carousel-arrow:hover { background: var(--amber-600); transform: translateY(-50%) scale(1.06); }
.carousel-prev { left: 12px; }
.carousel-next { right: 12px; }
.carousel-dots { position: absolute; z-index: 2; left: 0; right: 0; bottom: 12px; display: flex; justify-content: center; gap: 7px; }
.carousel-dot { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.58); cursor: pointer; }
.carousel-dot[aria-current="true"] { width: 22px; border-radius: 9px; background: var(--amber-400); }
@media (prefers-reduced-motion: reduce) { .port-slide { transition: none; } }
