/* ==========================================================================
   TRANS CASATTO — style.css
   Organização:
   1. Variáveis (cores, fontes, espaçamentos)  ← ajuste a marca aqui
   2. Reset e base
   3. Utilitários (container, botões, tags, títulos)
   4. Cabeçalho e menu
   5. Hero
   6. Sobre + métricas
   7. Serviços
   8. Operações (portfólio)
   9. Clientes e depoimentos
   10. Contato e formulário
   11. Rodapé, WhatsApp flutuante e modal
   12. Animações e responsividade
   ========================================================================== */

/* 1. VARIÁVEIS ============================================================= */
:root {
  /* Cores da marca (tiradas do logo) */
  --brand-yellow: #f9b200;
  --brand-yellow-dark: #d99a00;
  --brand-graphite: #2b2d33;

  /* Tema CLARO (padrão) */
  --bg: #f5f4f0;
  --bg-alt: #ebe9e3;
  --surface: #ffffff;
  --text: #1d1f24;
  --text-muted: #5b5f68;
  --border: #dedbd3;
  --accent: var(--brand-yellow);
  --accent-ink: #1d1f24;          /* texto sobre o amarelo */
  --accent-text: #865d00;          /* âmbar escuro: contraste AA (≥4,5:1) sobre os fundos claros */
  --dark: #1d1f24;                 /* seções escuras */
  --dark-2: #26292f;
  --on-dark: #f2f1ed;
  --on-dark-muted: #a7aab2;
  --header-bg: rgba(245, 244, 240, .86);
  --shadow: 0 1px 2px rgba(20, 22, 26, .06), 0 8px 24px rgba(20, 22, 26, .08);
  --shadow-lg: 0 20px 50px rgba(20, 22, 26, .18);

  /* Tipografia */
  --font-body: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;

  /* Medidas */
  --container: 1200px;
  --gutter: 20px;
  --radius: 14px;
  --radius-sm: 8px;
  --header-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* Tema ESCURO automático (segue o sistema), a menos que o usuário escolha "light" */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #15171b;
    --bg-alt: #1b1d22;
    --surface: #1f2228;
    --text: #f2f1ed;
    --text-muted: #a7aab2;
    --border: #30343c;
    --accent-text: var(--brand-yellow);
    --dark: #0f1013;
    --dark-2: #191b20;
    --header-bg: rgba(21, 23, 27, .86);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .3);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, .5);
  }
}
/* Tema ESCURO escolhido manualmente pelo botão */
:root[data-theme="dark"] {
  --bg: #15171b;
  --bg-alt: #1b1d22;
  --surface: #1f2228;
  --text: #f2f1ed;
  --text-muted: #a7aab2;
  --border: #30343c;
  --accent-text: var(--brand-yellow);
  --dark: #0f1013;
  --dark-2: #191b20;
  --header-bg: rgba(21, 23, 27, .86);
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .3);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, .5);
}

/* 2. RESET E BASE ========================================================== */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color .3s, color .3s;
}

[hidden] { display: none !important; } /* garante que o atributo hidden sempre esconda */
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
strong { font-weight: 600; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--accent); color: var(--accent-ink);
  padding: 10px 16px; border-radius: var(--radius-sm); font-weight: 600;
}
.skip-link:focus { top: 12px; }

/* 3. UTILITÁRIOS =========================================================== */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

.section { padding-block: clamp(72px, 10vw, 128px); }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--dark); color: var(--on-dark); }

.section__head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }
.section__head--row {
  max-width: none; display: flex; flex-wrap: wrap; gap: 20px;
  align-items: flex-end; justify-content: space-between;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 700; font-size: .95rem;
  letter-spacing: .18em; text-transform: uppercase; color: var(--accent-text);
  margin-bottom: 12px;
}
.eyebrow::before { content: ""; width: 28px; height: 3px; background: var(--accent); transform: skewX(-20deg); }
.section--dark .eyebrow { color: var(--brand-yellow); }

.section__title {
  font-family: var(--font-display); font-weight: 800; font-style: italic;
  font-size: clamp(2.1rem, 4.6vw, 3.4rem); line-height: 1.02;
  text-transform: uppercase; letter-spacing: -.005em; margin-bottom: 18px;
  text-wrap: balance;
}
.section__lead { color: var(--text-muted); font-size: 1.15rem; }
.section--dark .section__lead { color: var(--on-dark-muted); }

.text-accent { color: var(--accent); }

/* Botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 10px 22px; border-radius: 999px;
  font-weight: 600; font-size: 1rem; line-height: 1.2; white-space: nowrap;
  border: 2px solid transparent;
  transition: transform .25s var(--ease), background-color .25s, color .25s, box-shadow .25s, border-color .25s;
}
.btn svg { transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--lg { min-height: 54px; padding: 12px 28px; font-size: 1.05rem; }
.btn--block { width: 100%; }
.btn--primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 6px 18px rgba(249, 178, 0, .28); }
.btn--primary:hover { background: var(--brand-yellow-dark); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(249, 178, 0, .38); }
.btn--ghost { border-color: var(--text); color: var(--text); }
.btn--ghost:hover { background: var(--text); color: var(--bg); transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn[disabled] { opacity: .65; pointer-events: none; }

.icon-btn {
  width: 44px; height: 44px; display: grid; place-items: center;
  border-radius: 50%; color: var(--text);
  transition: background-color .2s, transform .2s;
}
.icon-btn:hover { background: color-mix(in srgb, var(--text) 9%, transparent); }

/* Tags */
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  display: inline-block; padding: 5px 12px; border-radius: 999px;
  font-size: .85rem; font-weight: 500; line-height: 1.3;
  background: var(--bg-alt); color: var(--text-muted); border: 1px solid var(--border);
}
.tag--accent { background: color-mix(in srgb, var(--accent) 18%, transparent); border-color: transparent; color: var(--accent-text); font-weight: 600; }
.tag-list--dark .tag { background: var(--dark-2); border-color: #33363e; color: var(--on-dark); transition: border-color .2s, color .2s; }
.tag-list--dark .tag:hover { border-color: var(--brand-yellow); color: var(--brand-yellow); }

/* Moldura de imagem com "fallback" de marca (aparece se a foto não existir) */
.media-frame {
  position: relative; overflow: hidden; margin: 0;
  background:
    url("img/favicon.png") center / 72px no-repeat,
    repeating-linear-gradient(135deg, rgba(255,255,255,.035) 0 14px, transparent 14px 28px),
    linear-gradient(140deg, #2b2d33, #17181c);
}
.media-frame img { width: 100%; height: 100%; object-fit: cover; }

/* 4. CABEÇALHO ============================================================= */
.header {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h);
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(160%) blur(12px); backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s, height .3s;
}
.header.is-scrolled { border-color: var(--border); box-shadow: 0 4px 20px rgba(0,0,0,.06); }
.header__inner { height: 100%; display: flex; align-items: center; gap: 16px; }
.header__logo { flex-shrink: 0; display: block; }
.header__logo img { height: 42px; width: auto; }

/* Troca do logo conforme o tema */
.logo-dark { display: none !important; }
:root[data-theme="dark"] .logo-light { display: none !important; }
:root[data-theme="dark"] .logo-dark { display: block !important; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo-light { display: none !important; }
  :root:not([data-theme="light"]) .logo-dark { display: block !important; }
}

.header__actions { display: flex; align-items: center; gap: 4px; margin-left: auto; }

/* Ícone sol/lua */
.ico-moon { display: block; } .ico-sun { display: none; }
:root[data-theme="dark"] .ico-moon { display: none; }
:root[data-theme="dark"] .ico-sun { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .ico-moon { display: none; }
  :root:not([data-theme="light"]) .ico-sun { display: block; }
}

/* Menu — versão MOBILE (padrão, mobile-first) */
.nav {
  position: fixed; inset: var(--header-h) 0 auto 0;
  max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
  background: var(--bg); border-bottom: 1px solid var(--border);
  padding: 12px var(--gutter) 24px;
  display: flex; flex-direction: column; gap: 16px;
  transform: translateY(-8px); opacity: 0; visibility: hidden;
  transition: transform .3s var(--ease), opacity .3s, visibility .3s;
}
.nav.is-open { transform: none; opacity: 1; visibility: visible; box-shadow: var(--shadow-lg); }
.nav__link {
  display: block; padding: 14px 4px; border-bottom: 1px solid var(--border);
  font-family: var(--font-display); font-weight: 700; font-size: 1.35rem;
  text-transform: uppercase; letter-spacing: .03em;
  transition: color .2s;
}
.nav__link:hover, .nav__link.is-active { color: var(--accent-text); }

/* Botão hambúrguer */
.menu-toggle__bars { width: 22px; height: 16px; position: relative; display: block; }
.menu-toggle__bars span {
  position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px; background: currentColor;
  transition: transform .3s var(--ease), opacity .2s, top .3s var(--ease);
}
.menu-toggle__bars span:nth-child(1) { top: 0; }
.menu-toggle__bars span:nth-child(2) { top: 7px; }
.menu-toggle__bars span:nth-child(3) { top: 14px; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { top: 7px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { top: 7px; transform: rotate(-45deg); }

/* 5. HERO ================================================================== */
.hero {
  position: relative; overflow: hidden;
  padding-top: calc(var(--header-h) + clamp(32px, 6vw, 72px));
  padding-bottom: clamp(80px, 10vw, 120px);
}
/* Faixa amarela inspirada na curva do escudo */
.hero::before {
  content: ""; position: absolute; z-index: -1;
  width: 70vmax; height: 70vmax; right: -30vmax; top: -20vmax;
  border-radius: 50%; border: clamp(40px, 7vw, 90px) solid var(--accent); opacity: .12;
}
.hero__grid { display: grid; gap: 48px; align-items: center; }
.hero__title {
  font-family: var(--font-display); font-weight: 800; font-style: italic; text-transform: uppercase;
  font-size: clamp(3rem, 10vw, 6rem); line-height: .92; letter-spacing: -.01em; margin-bottom: 22px;
}
.hero__lead { font-size: clamp(1.08rem, 1.6vw, 1.25rem); color: var(--text-muted); max-width: 560px; margin-bottom: 30px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 30px; }
.hero__badges { display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--text-muted); font-size: .95rem; font-weight: 500; }
.hero__badges li { display: inline-flex; align-items: center; gap: 8px; }
.hero__badges svg { color: var(--accent-text); }

.hero__media { position: relative; }
.media-frame--hero {
  aspect-ratio: 6 / 5; border-radius: 28px 28px 120px 28px;
  box-shadow: var(--shadow-lg); background-size: 140px, auto, auto;
}
.hero__float-card {
  position: absolute; left: -8px; bottom: -22px;
  background: var(--accent); color: var(--accent-ink);
  padding: 14px 22px; border-radius: 16px; box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 12px; transform: rotate(-3deg);
}
.hero__float-card strong { font-family: var(--font-display); font-size: 2.6rem; font-style: italic; line-height: 1; }
.hero__float-card span { font-weight: 600; line-height: 1.15; max-width: 80px; font-size: .95rem; }

/* "Estrada" na base do hero */
.hero__road {
  position: absolute; left: 0; right: 0; bottom: 0; height: 26px; background: var(--dark);
}
.hero__road::after {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 4px; transform: translateY(-50%);
  background: repeating-linear-gradient(90deg, var(--brand-yellow) 0 46px, transparent 46px 82px);
  animation: road 2.4s linear infinite;
}
@keyframes road { to { background-position: 82px 0; } }

/* 6. SOBRE + MÉTRICAS ====================================================== */
.about { display: grid; gap: 48px; }
.about__text > p { color: var(--text-muted); margin-bottom: 16px; max-width: 660px; }
.about__text > p strong { color: var(--text); }

.mvv { display: grid; gap: 14px; margin-top: 32px; }
.mvv__item {
  background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--accent);
  border-radius: var(--radius-sm); padding: 18px 20px;
}
.mvv__item h3 {
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; font-size: 1.05rem; margin-bottom: 6px;
}
.mvv__item p { color: var(--text-muted); font-size: .98rem; }

.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; align-content: start; }
.stat {
  background: var(--dark); color: var(--on-dark); border-radius: var(--radius);
  padding: 24px 20px; position: relative; overflow: hidden;
  transition: transform .3s var(--ease);
}
.stat:hover { transform: translateY(-4px); }
.stat::after {
  content: ""; position: absolute; right: -24px; top: -24px; width: 72px; height: 72px;
  border-radius: 50%; border: 10px solid var(--brand-yellow); opacity: .25;
}
.stat__num {
  display: block; font-family: var(--font-display); font-style: italic; font-weight: 800;
  font-size: clamp(2.6rem, 6vw, 3.6rem); line-height: 1; color: var(--brand-yellow); margin-bottom: 8px;
}
.stat__label { font-weight: 600; line-height: 1.3; display: block; }
.stat__label small { color: var(--on-dark-muted); font-weight: 400; font-size: .85rem; }

/* 7. SERVIÇOS ============================================================== */
.services { display: grid; gap: 16px; }
.service {
  background: var(--dark-2); border: 1px solid #2f323a; border-radius: var(--radius);
  padding: 28px 24px; transition: transform .3s var(--ease), border-color .3s, background-color .3s;
}
.service:hover { transform: translateY(-6px); border-color: var(--brand-yellow); }
.service__icon {
  width: 56px; height: 56px; display: grid; place-items: center; margin-bottom: 18px;
  border-radius: 14px; background: var(--brand-yellow); color: var(--brand-graphite);
  transform: skewX(-6deg);
}
.service h3 {
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  font-size: 1.4rem; line-height: 1.1; margin-bottom: 10px;
}
.service p { color: var(--on-dark-muted); font-size: 1rem; }

.segments { margin-top: clamp(40px, 6vw, 64px); padding-top: 32px; border-top: 1px solid #2f323a; }
.segments__title {
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  letter-spacing: .12em; font-size: 1rem; color: var(--on-dark-muted); margin-bottom: 16px;
}

/* 8. OPERAÇÕES (PORTFÓLIO) ================================================= */
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter {
  padding: 8px 16px; border-radius: 999px; border: 1px solid var(--border);
  font-weight: 600; font-size: .92rem; color: var(--text-muted);
  transition: background-color .2s, color .2s, border-color .2s;
}
.filter:hover { border-color: var(--text); color: var(--text); }
.filter.is-active { background: var(--text); color: var(--bg); border-color: var(--text); }

.cards { display: grid; gap: 22px; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .35s var(--ease), box-shadow .35s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card.is-hidden { display: none; }
.card__media { aspect-ratio: 3 / 2; }
.card__media img { transition: transform .6s var(--ease); }
.card:hover .card__media img { transform: scale(1.05); }
.card__body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card__title { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; line-height: 1.1; text-transform: uppercase; }
.card__text { color: var(--text-muted); font-size: .98rem; flex: 1; }
.card__btn {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; margin-top: 6px;
  font-weight: 600; color: var(--text); padding: 6px 0; border-bottom: 2px solid var(--accent);
}
.card__btn svg { transition: transform .25s var(--ease); }
.card__btn:hover svg { transform: translateX(4px); }

/* 9. CLIENTES E DEPOIMENTOS =============================================== */
.clients { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.client {
  display: grid; place-items: center; min-height: 84px; padding: 12px; text-align: center;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; letter-spacing: .04em;
  text-transform: uppercase; color: var(--text-muted); transition: color .2s, border-color .2s;
}
.client:hover { color: var(--text); border-color: var(--accent); }
.client--placeholder { border-style: dashed; font-weight: 600; font-size: .95rem; opacity: .6; }

.carousel { position: relative; }
.carousel__track {
  display: grid; grid-auto-flow: column; grid-auto-columns: 100%; gap: 20px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none; padding-bottom: 4px;
}
.carousel__track::-webkit-scrollbar { display: none; }
.quote {
  scroll-snap-align: start; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 30px 26px; display: flex; flex-direction: column; gap: 20px;
}
.quote__icon { color: var(--accent); }
.quote p { font-size: 1.12rem; line-height: 1.6; flex: 1; }
.quote__author { display: flex; align-items: center; gap: 12px; line-height: 1.3; }
.quote__author small { color: var(--text-muted); }
.quote__avatar {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0;
  background: var(--dark); color: var(--brand-yellow); font-family: var(--font-display); font-weight: 800; font-size: 1.3rem;
}
.carousel__nav { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 24px; }
.carousel__btn { border: 1px solid var(--border); }
.carousel__dots { display: flex; gap: 8px; }
.carousel__dots span { width: 8px; height: 8px; border-radius: 999px; background: var(--border); transition: width .3s, background-color .3s; }
.carousel__dots span.is-active { width: 26px; background: var(--accent); }

/* 9b. INSTAGRAM =========================================================== */
.insta-profile {
  display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 10px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 999px;
  transition: border-color .25s, box-shadow .25s;
}
.insta-profile:hover { border-color: #d6249f; box-shadow: var(--shadow); }
.insta-profile__avatar {
  width: 48px; height: 48px; border-radius: 50%; padding: 3px; flex-shrink: 0;
  background: linear-gradient(45deg, #fdc468, #df4996 55%, #8a3ab9);
}
.insta-profile__avatar img {
  width: 100%; height: 100%; border-radius: 50%; object-fit: contain;
  background: #fff; padding: 6px; border: 2px solid var(--surface);
}
.insta-profile__name { display: flex; flex-direction: column; line-height: 1.2; margin-right: 6px; }
.insta-profile__name small { color: var(--text-muted); font-size: .85rem; }
.btn--insta {
  min-height: 40px; padding: 8px 18px; color: #fff;
  background: linear-gradient(45deg, #f09433, #dc2743 50%, #bc1888);
}
.insta-profile:hover .btn--insta { transform: translateY(-1px); }

.insta-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.insta-tile {
  position: relative; display: block; aspect-ratio: 1; overflow: hidden; border-radius: var(--radius-sm);
  background:
    url("img/favicon.png") center / 48px no-repeat,
    linear-gradient(140deg, #2b2d33, #17181c);
}
.insta-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.insta-tile__over {
  position: absolute; inset: 0; display: grid; place-items: center; color: #fff;
  background: rgba(20, 22, 26, .45); opacity: 0; transition: opacity .3s;
}
.insta-tile:hover img { transform: scale(1.06); }
.insta-tile:hover .insta-tile__over, .insta-tile:focus-visible .insta-tile__over { opacity: 1; }
.insta-tile--cta {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  text-align: center; padding: 12px; color: #fff;
  background: linear-gradient(45deg, #f09433, #dc2743 50%, #bc1888);
  font-family: var(--font-display); text-transform: uppercase;
}
.insta-tile--cta strong { font-size: 1.25rem; line-height: 1.05; }
.insta-tile--cta small { font-family: var(--font-body); text-transform: none; opacity: .9; }
.insta-tile--cta svg { transition: transform .3s var(--ease); }
.insta-tile--cta:hover svg { transform: scale(1.12) rotate(-6deg); }

/* Postagens oficiais incorporadas */
.insta-embeds { display: grid; gap: 20px; justify-items: center; }
.insta-embeds .instagram-media { margin: 0 !important; min-width: 0 !important; width: 100% !important; max-width: 420px !important; }

@media (min-width: 768px) {
  .insta-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .insta-embeds { grid-template-columns: repeat(2, 1fr); align-items: start; }
}
@media (min-width: 1024px) {
  .insta-grid { grid-template-columns: repeat(6, 1fr); }
  .insta-embeds { grid-template-columns: repeat(3, 1fr); }
}

/* 10. CONTATO E FORMULÁRIO ================================================ */
.contact { display: grid; gap: 40px; }
.contact__info > p { color: var(--text-muted); margin-bottom: 28px; }
.quick-contacts { display: grid; gap: 12px; margin-bottom: 28px; }
.quick {
  display: flex; align-items: center; gap: 14px; padding: 14px 18px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  transition: transform .25s var(--ease), border-color .25s, box-shadow .25s;
}
.quick:hover { transform: translateX(4px); border-color: var(--accent); box-shadow: var(--shadow); }
.quick > svg { flex-shrink: 0; width: 44px; height: 44px; padding: 11px; border-radius: 50%; background: var(--bg-alt); color: var(--text); }
.quick--whats > svg { background: #25d366; color: #fff; }
.quick span { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.quick small { color: var(--text-muted); font-size: .92rem; overflow-wrap: anywhere; }
.contact__list { display: grid; gap: 14px; color: var(--text-muted); }
.contact__list li { display: flex; gap: 12px; align-items: flex-start; }
.contact__list svg { flex-shrink: 0; margin-top: 3px; color: var(--accent-text); }

.form {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: clamp(22px, 4vw, 36px); box-shadow: var(--shadow); align-self: start;
  border-top: 5px solid var(--accent);
}
.form__title { font-family: var(--font-display); font-weight: 800; font-style: italic; text-transform: uppercase; font-size: 1.8rem; margin-bottom: 20px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; min-width: 0; }
.field-row { display: grid; gap: 0 16px; }
.field label { font-weight: 600; font-size: .95rem; }
.field label small { color: var(--text-muted); font-weight: 400; }
.field input, .field textarea {
  width: 100%; padding: 13px 15px; border-radius: var(--radius-sm);
  background: var(--bg); border: 1.5px solid var(--border);
  font-size: 1rem; /* 16px evita zoom automático no iPhone */
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input::placeholder, .field textarea::placeholder { color: var(--text-muted); opacity: .7; }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent);
}
.field.has-error input, .field.has-error textarea { border-color: #d64545; }
.field__error { color: #d64545; font-size: .85rem; min-height: 0; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__status { margin-top: 14px; font-weight: 500; text-align: center; min-height: 1.5em; }
.form__status.is-ok { color: #1e9e5a; }
.form__status.is-error { color: #d64545; }
.form__status a { text-decoration: underline; }

.map { margin-top: clamp(48px, 7vw, 80px); }
.map iframe {
  width: 100%; height: 360px; border: 0; border-radius: var(--radius); display: block;
  background: var(--bg-alt); box-shadow: var(--shadow);
}

/* 11. RODAPÉ, WHATSAPP E MODAL ============================================= */
.footer { background: var(--dark); color: var(--on-dark-muted); padding-top: 64px; }
.footer__grid { display: grid; gap: 36px; padding-bottom: 48px; }
.footer__brand img { height: 52px; width: auto; margin-bottom: 18px; }
.footer__brand p { max-width: 340px; font-size: .98rem; }
.footer__legal { margin-top: 12px; font-size: .88rem; opacity: .8; }
.footer__col h3 {
  color: var(--on-dark); font-family: var(--font-display); font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em; font-size: 1rem; margin-bottom: 14px;
}
.footer__col ul { display: grid; gap: 8px; font-size: .98rem; }
.footer__col a { transition: color .2s; overflow-wrap: anywhere; }
.footer__col a:hover { color: var(--brand-yellow); }
.socials { display: flex; gap: 10px; }
.social {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid #33363e; color: var(--on-dark);
  transition: background-color .2s, color .2s, transform .25s var(--ease), border-color .2s;
}
.social:hover { background: var(--brand-yellow); color: var(--brand-graphite); border-color: var(--brand-yellow); transform: translateY(-3px); }
.footer__bottom { border-top: 1px solid #2a2d34; padding-block: 20px; font-size: .9rem; }
.footer__bottom .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
.footer__top:hover { color: var(--brand-yellow); }

.whats-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: #25d366; color: #fff; box-shadow: 0 8px 24px rgba(37, 211, 102, .45);
  transition: transform .3s var(--ease);
}
.whats-float:hover { transform: scale(1.08); }
.whats-float::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: #25d366;
  z-index: -1; animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse { 0% { transform: scale(1); opacity: .5; } 100% { transform: scale(1.6); opacity: 0; } }

.modal {
  width: min(880px, calc(100% - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 0;
  border-radius: var(--radius); background: var(--surface); color: var(--text); box-shadow: var(--shadow-lg);
  overflow: auto;
}
.modal::backdrop { background: rgba(10, 11, 13, .72); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.modal[open] { animation: modal-in .35s var(--ease); }
@keyframes modal-in { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.modal__close { position: absolute; top: 10px; right: 10px; z-index: 2; background: rgba(0,0,0,.55); color: #fff; }
.modal__close:hover { background: rgba(0,0,0,.8); }
.modal__media { aspect-ratio: 16 / 9; }
.modal__body { padding: 24px 26px 28px; display: grid; gap: 12px; justify-items: start; }
.modal__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.modal__title { font-family: var(--font-display); font-weight: 800; font-style: italic; text-transform: uppercase; font-size: 2rem; line-height: 1; }
.modal__text { color: var(--text-muted); }
body.no-scroll { overflow: hidden; }

/* 12. ANIMAÇÕES DE ENTRADA ================================================ */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* RESPONSIVO (mobile-first: as regras abaixo AMPLIAM o layout) ============= */

/* Celulares grandes (≥ 560px) */
@media (min-width: 560px) {
  :root { --gutter: 28px; }
  .field-row { grid-template-columns: 1fr 1fr; }
  .clients { grid-template-columns: repeat(3, 1fr); }
  .quick-contacts { grid-template-columns: 1fr 1fr; }
  .quick-contacts .quick:last-child { grid-column: 1 / -1; }
}

/* Tablets (≥ 768px) */
@media (min-width: 768px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .services { grid-template-columns: repeat(2, 1fr); }
  .mvv { grid-template-columns: repeat(3, 1fr); }
  .carousel__track { grid-auto-columns: calc((100% - 20px) / 2); }
  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .map iframe { height: 420px; }
}

/* Notebooks e desktops (≥ 1024px) */
@media (min-width: 1024px) {
  :root { --header-h: 84px; }
  .header__logo img { height: 50px; }

  /* Menu horizontal no desktop */
  .menu-toggle { display: none; }
  .nav {
    position: static; max-height: none; overflow: visible; background: none; border: 0; padding: 0;
    flex-direction: row; align-items: center; gap: 28px; margin-left: auto;
    transform: none; opacity: 1; visibility: visible; box-shadow: none !important;
  }
  .nav__list { display: flex; gap: 4px; }
  .nav__link {
    position: relative; border: 0; padding: 8px 12px;
    font-family: var(--font-body); font-weight: 600; font-size: .98rem; text-transform: none; letter-spacing: 0;
  }
  .nav__link::after {
    content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 3px;
    background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
  }
  .nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }
  .nav__link:hover, .nav__link.is-active { color: var(--text); }
  .header__actions { margin-left: 8px; }

  .hero__grid { grid-template-columns: 1.05fr .95fr; gap: 64px; }
  .hero { min-height: min(92vh, 860px); display: flex; align-items: center; }
  .hero > .container { width: 100%; }
  .hero__float-card { left: -36px; bottom: 40px; }

  .about { grid-template-columns: 1.3fr 1fr; gap: 64px; align-items: start; }
  .stats { position: sticky; top: calc(var(--header-h) + 24px); }

  .services { grid-template-columns: repeat(4, 1fr); }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .clients { grid-template-columns: repeat(6, 1fr); }
  .carousel__track { grid-auto-columns: calc((100% - 40px) / 3); }

  .contact { grid-template-columns: 1fr 1.1fr; gap: 64px; }
  .quick-contacts { grid-template-columns: 1fr; }
  .quick-contacts .quick:last-child { grid-column: auto; }

  .footer__grid { grid-template-columns: 1.6fr 1fr 1.2fr 1fr; }
  .footer__brand { grid-column: auto; }
}

/* Telas largas (≥ 1440px) */
@media (min-width: 1440px) {
  :root { --container: 1320px; }
}

/* No celular, o menu aberto não deve ter o botão de CTA esticado demais */
@media (max-width: 1023.98px) {
  .nav__cta { align-self: stretch; }
}

/* Notebooks menores (1024–1279px): menu mais compacto, sem o botão de cotação
   (o WhatsApp flutuante e os botões do hero continuam disponíveis) */
@media (min-width: 1024px) {
  .nav__link { white-space: nowrap; }
}
@media (min-width: 1024px) and (max-width: 1279.98px) {
  .nav { gap: 12px; }
  .nav__cta { display: none; }
  .nav__link { padding: 8px 9px; font-size: .95rem; }
  .nav__link::after { left: 9px; right: 9px; }
}

/* Foto larga da frota (fim da seção "Quem somos") ========================= */
.fleet-photo {
  position: relative; margin: clamp(48px, 7vw, 80px) 0 0; overflow: hidden;
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3; background: var(--dark);
}
.fleet-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 48% 60%; }
.fleet-photo figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 48px 22px 18px;
  background: linear-gradient(to top, rgba(15, 16, 19, .85), transparent);
  color: #fff; font-family: var(--font-display); font-weight: 800; font-style: italic;
  text-transform: uppercase; font-size: clamp(1.3rem, 2.6vw, 2rem); line-height: 1.05;
}
@media (min-width: 768px) { .fleet-photo { aspect-ratio: 1584 / 672; } }

/* Cards de operações: proporção das novas fotos (16:10) */
.card__media { aspect-ratio: 16 / 10; }
.card__media img, .modal__media img { object-position: center; }
.modal__media { aspect-ratio: 16 / 10; }
.form__privacy { margin-top: 12px; font-size: .85rem; color: var(--text-muted); text-align: center; }
