/* ==========================================================================
   Casa da Reforma Iguaí — v2
   Linguagem visual de referência: becore.se (minimalista, tons neutros,
   botões retos, fotos em tela cheia, abas em caixa alta).
   ========================================================================== */

:root {
  --ink: #14202E;
  --brand: #075BC3;
  --brand-dark: #05469A;
  --brand-tint: #E8F1FC;
  --ink-soft: #566173;
  --paper: #FFFFFF;
  --band: #F3F6FA;
  --line: #DDE3EB;
  --focus: #075BC3;

  --font-body: 'Cabin', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-head: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --gutter: clamp(20px, 3.4vw, 48px);
  --max: 1440px;
  --section-y: clamp(56px, 8vw, 112px);
  --topbar-h: 36px;
  --header-h: 80px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  letter-spacing: -0.01em;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

[hidden] { display: none !important; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-head); font-weight: 400; letter-spacing: 0.01em; line-height: 1.25; }
ul, ol { margin: 0; padding: 0; }
button, input { font: inherit; color: inherit; }

:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }

.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: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Botões e links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 45px; padding: 0 28px;
  border: 1px solid transparent; border-radius: 0;
  font-family: var(--font-body); font-size: 13px; letter-spacing: 0.01em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn svg { width: 16px; height: 16px; flex: none; }
.btn-primary, .btn-dark { background: var(--brand); color: #fff; }
.btn-primary:hover, .btn-dark:hover { background: var(--brand-dark); }
.btn-outline { background: transparent; color: var(--brand); border-color: var(--brand); }
.btn-outline:hover { background: var(--brand); color: #fff; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--band); }
.btn-outline-light { background: transparent; color: #fff; border-color: #fff; }
.btn-outline-light:hover { background: #fff; color: var(--ink); }
.btn-block { width: 100%; }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 12px; }

.link-underline {
  font-size: 13px; text-decoration: underline; text-underline-offset: 4px;
  text-decoration-thickness: 1px; color: var(--ink);
}
.link-underline:hover { text-decoration-thickness: 2px; }

/* ---------- Barra superior ---------- */
.topbar {
  display: flex; align-items: center; justify-content: center;
  min-height: var(--topbar-h); background: var(--brand); color: #fff;
  font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
}
.topbar-note { margin: 0; padding: 0 16px; text-align: center; }
.topbar-note a { text-decoration: none; }
.topbar-note a:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 519px) { .topbar { font-size: 11px; letter-spacing: 0.04em; } }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter);
  min-height: var(--header-h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
}
.brand { display: inline-flex; justify-self: start; }
.brand-logo { height: 66px; width: auto; }

.site-nav { justify-self: center; }
.nav-list { list-style: none; display: flex; gap: 32px; }
.nav-link { font-size: 14px; text-decoration: none; padding: 4px 0; border-bottom: 1px solid transparent; }
.nav-link:hover, .nav-link[aria-current="page"] { border-bottom-color: var(--ink); }

.header-tools { justify-self: end; display: flex; align-items: center; gap: 6px; }
.header-icon, .menu-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; background: none; border: 0; color: var(--ink); cursor: pointer;
}
.header-icon:hover, .menu-toggle:hover { opacity: .65; }

@media (min-width: 1024px) {
  .site-nav, .site-nav[hidden] { display: block !important; }
  .menu-toggle { display: none; }
}
@media (max-width: 1023px) {
  .header-inner { grid-template-columns: 1fr auto; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 24px;
  }
  .site-nav[hidden] { display: none; }
  .nav-list { flex-direction: column; gap: 0; }
  .nav-link { display: block; padding: 14px 0; font-size: 18px; font-family: var(--font-head); border-bottom: 1px solid var(--line); }
  .nav-link:hover, .nav-link[aria-current="page"] { border-bottom-color: var(--line); text-decoration: underline; text-underline-offset: 5px; }
  .brand-logo { height: 52px; }
}

/* ---------- Tipografia de seção ---------- */
.section { padding: var(--section-y) 0; }
.section-band { background: var(--band); }
.section-sand { background: var(--band); }
.section-title { font-size: clamp(24px, 2.2vw, 30px); }
.section-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  margin-bottom: clamp(28px, 3.5vw, 48px);
}
.section-header { margin-bottom: clamp(28px, 3.5vw, 48px); max-width: 720px; }
.section-subtitle { margin: 10px 0 0; color: var(--ink-soft); }

/* ---------- Hero em tela cheia ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  min-height: max(520px, calc(100svh - var(--topbar-h) - var(--header-h)));
  display: flex; align-items: flex-end;
}
.hero-media, .banner-media {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.hero-media { object-position: 50% 45%; }
.hero::after, .banner::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(8, 20, 38, .62) 0%, rgba(8, 20, 38, .18) 45%, rgba(8, 20, 38, 0) 70%);
}
.hero-content {
  position: relative; z-index: 1; width: 100%; max-width: var(--max); margin: 0 auto;
  padding: 0 var(--gutter) clamp(36px, 6vw, 72px);
}
.hero-title { font-size: clamp(30px, 4.2vw, 56px); line-height: 1.08; max-width: 21ch; letter-spacing: -0.01em; }
.hero-desc { margin: 18px 0 0; max-width: 46ch; font-size: 16px; opacity: .92; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Carrossel do hero: foto em tela cheia com a copy por cima */
.hero[data-hero-carousel] { background: #111; isolation: isolate; }
.hero[data-hero-carousel]::after { content: none; }
.hero-slide { position: absolute; inset: 0; isolation: isolate; text-decoration: none; }
.hero-slide::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, .72), rgba(0, 0, 0, .45) 26%, rgba(0, 0, 0, .12) 52%, transparent 72%);
  pointer-events: none;
}
.hero-caption {
  position: absolute; z-index: 1; bottom: clamp(3rem, 8svh, 5rem);
  inset-inline: max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter)));
  max-width: 36rem; color: #fff;
}
@media (max-width: 519px) { .hero-caption { bottom: max(4.5rem, 8svh); } }
.hero-caption-title, .hero-caption-detail { display: block; }
.hero-caption-title {
  font: 600 clamp(2rem, 4.2vw, 3.625rem)/1.02 var(--font-body);
  letter-spacing: -.026em; text-wrap: balance;
}
.hero-caption-detail {
  margin-top: .75rem; max-width: 39ch;
  font: 400 clamp(.975rem, 1.35vw, 1.2rem)/1.44 var(--font-body);
}
.hero-slide .hero-media { object-position: 59% 0%; }
.hero-slide[data-hero-slide="andaimes"] .hero-media { object-position: 66% 0%; }
.hero-slide[data-hero-slide="betoneira-400-litros-menegotti"] .hero-media { object-position: 80% 50%; }
.hero-slide.is-transitioning { animation: hero-photo-in 200ms var(--ease-out) both; }
@keyframes hero-photo-in { from { opacity: .78; } to { opacity: 1; } }
.hero-controls {
  position: absolute; z-index: 2; display: flex; gap: 8px;
  bottom: clamp(3rem, 8svh, 5rem); right: max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter)));
}
.hero-controls[hidden] { display: none; }
.hero-controls button {
  display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
  border: 1px solid rgba(255, 255, 255, .5); background: rgba(0, 0, 0, .2); color: #fff; cursor: pointer;
}
.hero-controls button:hover { background: #fff; color: #111; }
.hero-slide:focus-visible { outline: 2px solid #fff; outline-offset: -5px; }
.hero-controls button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@media (max-width: 519px) {
  .hero-controls { bottom: auto; top: 16px; right: var(--gutter); }
  .hero-slide[data-hero-slide="betoneira-400-litros-menegotti"] .hero-media { object-position: 96% 50%; }
}

/* ---------- Intro + abas ---------- */
.intro { padding-bottom: 0; }
.intro-text { max-width: 768px; margin: 0 auto; padding: 0 var(--gutter); text-align: center; }
.intro-text .section-title { margin-bottom: 18px; }
.search-form { display: flex; gap: 0; max-width: 520px; margin: 28px auto 0; }
.search-input {
  flex: 1; min-width: 0; min-height: 45px; padding: 0 16px;
  border: 1px solid var(--ink); border-right: 0; border-radius: 0; background: #fff; font-size: 14px;
}
.search-input::placeholder { color: var(--ink-soft); }
.search-input:focus-visible { outline-offset: -2px; }

.tabs { margin-top: clamp(40px, 5vw, 64px); }
.tab-list-wrap {
  max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter);
  overflow-x: auto; scrollbar-width: none;
}
.tab-list-wrap::-webkit-scrollbar { display: none; }
.tab-list {
  display: flex; justify-content: center; gap: clamp(22px, 3vw, 44px);
  border-bottom: 1px solid var(--line); min-width: max-content;
}
.tab {
  background: none; border: 0; padding: 16px 0; margin-bottom: -1px; cursor: pointer;
  font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft);
  border-bottom: 1px solid transparent; white-space: nowrap;
}
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); }
@media (max-width: 899px) { .tab-list { justify-content: flex-start; } }

/* ---------- Split imagem / texto ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; }
.tab-panel { margin-top: clamp(28px, 3.5vw, 40px); }
.split[hidden] { display: none; }
.split-media { position: relative; min-height: clamp(320px, 42vw, 620px); background: var(--band); overflow: hidden; }
.split-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.split-media--product img { object-fit: contain; padding: clamp(28px, 6vw, 88px); mix-blend-mode: multiply; }
.split-body {
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  padding: clamp(32px, 5vw, 80px) var(--gutter); max-width: 640px;
}
.split-title { font-size: clamp(24px, 2.2vw, 30px); margin-bottom: 20px; }
.split-body p { max-width: 52ch; }
.split-meta { color: var(--ink-soft); font-size: 13px; margin-bottom: 26px; }
.split--reverse .split-media { order: 2; }
@media (max-width: 799px) {
  .split { grid-template-columns: 1fr; }
  .split--reverse .split-media { order: 0; }
  .split-media { min-height: 0; aspect-ratio: 4 / 3; }
}

/* ---------- Cards de equipamento ---------- */
.equip-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 3vw, 44px) clamp(14px, 1.6vw, 24px); }
.equip-grid--catalog { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1199px) { .equip-grid--catalog { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 899px) { .equip-grid, .equip-grid--catalog { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 519px) { .equip-grid, .equip-grid--catalog { grid-template-columns: 1fr; } }

.equip-card { display: flex; flex-direction: column; position: relative; }
.equip-card[hidden] { display: none; }
.equip-media { position: relative; aspect-ratio: 4 / 3; background: var(--band); overflow: hidden; }
.section-band .equip-media { background: #fff; }
.equip-photo {
  width: 100%; height: 100%; object-fit: contain; padding: 8%;
  mix-blend-mode: multiply; transition: transform .5s ease;
}
.equip-fallback {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  color: var(--ink-soft);
}
.equip-fallback svg { width: 56px; height: 56px; stroke: currentColor; }
.equip-media.has-photo .equip-fallback { display: none; }
.provisional-badge { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.photo-caption { position: absolute; left: 10px; bottom: 8px; font-size: 11px; color: var(--ink-soft); }

.equip-body { display: flex; flex-direction: column; flex: 1; padding-top: 16px; }
.equip-cat { font-size: 12px; color: var(--ink-soft); margin-bottom: 6px; }
.equip-title { font-size: 17px; line-height: 1.3; margin-bottom: 8px; }
.equip-title-link { text-decoration: none; }
.equip-title-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.equip-title-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.equip-desc { font-size: 14px; color: var(--ink-soft); margin-bottom: 16px; }
.equip-footer { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; position: relative; z-index: 2; }

/* ---------- Faixa com foto ---------- */
.banner {
  position: relative; overflow: hidden; color: #fff;
  min-height: clamp(460px, 62vw, 820px); display: flex; align-items: flex-start;
}
.banner-media { object-position: 50% 55%; }
.banner::after { background: linear-gradient(to bottom, rgba(8, 20, 38, .55) 0%, rgba(8, 20, 38, .1) 55%, rgba(8, 20, 38, 0) 100%); }
.banner-content {
  position: relative; z-index: 1; width: 100%; max-width: var(--max); margin: 0 auto;
  padding: clamp(40px, 6vw, 80px) var(--gutter);
}
.banner-title { font-size: clamp(26px, 3vw, 40px); max-width: 18ch; margin-bottom: 14px; }
.banner-content p { max-width: 46ch; opacity: .92; }

/* ---------- Como funciona ---------- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.step { padding: 28px clamp(16px, 2.4vw, 36px) 8px 0; }
.step + .step { padding-left: clamp(16px, 2.4vw, 36px); border-left: 1px solid var(--line); }
.step-num { display: block; font-family: var(--font-head); font-size: 40px; line-height: 1; color: #9AA5B4; margin-bottom: 20px; }
.step h3 { font-size: 19px; margin-bottom: 10px; }
.step p { color: var(--ink-soft); max-width: 38ch; }
@media (max-width: 799px) {
  .steps { grid-template-columns: 1fr; }
  .step, .step + .step { padding: 24px 0; border-left: 0; border-bottom: 1px solid var(--line); }
}

/* ---------- Contato ---------- */
.contact-list { margin: 8px 0 30px; width: 100%; max-width: 440px; }
.contact-list div { display: grid; grid-template-columns: 110px 1fr; padding: 12px 0; border-bottom: 1px solid var(--line); }
.contact-list div:first-child { border-top: 1px solid var(--line); }
.contact-list dt { color: var(--ink-soft); font-size: 13px; }
.contact-list dd { margin: 0; }
.contact-list a { text-underline-offset: 3px; }

/* ---------- FAQ ---------- */
.faq-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 40px clamp(32px, 6vw, 96px); }
.faq-layout .section-title { margin-bottom: 18px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { list-style: none; cursor: pointer; padding: 20px 36px 20px 0; position: relative; font-size: 15px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 8px; height: 8px;
  border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink);
  transform: translateY(-70%) rotate(45deg); transition: transform .2s ease;
}
.faq-item[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq-answer { padding: 0 36px 20px 0; color: var(--ink-soft); }
@media (max-width: 799px) { .faq-layout { grid-template-columns: 1fr; } }

/* ---------- Catálogo ---------- */
.page-banner { padding: clamp(48px, 6vw, 88px) 0 clamp(20px, 3vw, 32px); text-align: center; }
.page-banner h1 { font-size: clamp(28px, 3vw, 40px); margin-bottom: 14px; }
.page-banner p { color: var(--ink-soft); max-width: 60ch; margin: 0 auto; }
.catalog-controls { position: sticky; top: var(--header-h); z-index: 20; background: #fff; padding-top: 12px; }
.catalog-controls .search-form { margin-top: 0; margin-bottom: 8px; }
.search-form--compact .search-input { border-right: 1px solid var(--ink); }
.search-input-wrap { flex: 1; display: flex; }
.filter-scroll-hint { display: none; }
.filter-scroll-wrap { overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); }
.filter-scroll-wrap::-webkit-scrollbar { display: none; }
.filter-bar { display: flex; justify-content: center; gap: clamp(20px, 2.6vw, 40px); min-width: max-content; }
.filter-chip {
  background: none; border: 0; padding: 16px 0; margin-bottom: -1px; cursor: pointer;
  font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft);
  border-bottom: 1px solid transparent; white-space: nowrap;
}
.filter-chip:hover { color: var(--ink); }
.filter-chip[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--ink); }
@media (max-width: 1099px) { .filter-bar { justify-content: flex-start; } }
.catalog-controls + .section { padding-top: clamp(28px, 3vw, 40px); }
.catalog-meta { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 28px; min-height: 38px; }
.catalog-count { margin: 0; font-size: 13px; color: var(--ink-soft); }
.catalog-meta .btn { min-height: 38px; }
.empty-state { text-align: center; padding: 56px 0; max-width: 520px; margin: 0 auto; }
.empty-state h2 { font-size: 24px; margin-bottom: 12px; }
.empty-state p { color: var(--ink-soft); }
.empty-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 20px; }

/* ---------- Página do equipamento ---------- */
.breadcrumb-bar { padding: 16px 0; border-bottom: 1px solid var(--line); }
.breadcrumb { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; font-size: 12px; color: var(--ink-soft); }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: #9AA5B4; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb [aria-current] { color: var(--ink); }

.equip-detail-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.equip-detail-media { background: var(--band); aspect-ratio: 4 / 3; }
.equip-detail-media .equip-photo { padding: 6%; }
.equip-detail-cat { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); text-decoration: none; }
.equip-detail-cat:hover { color: var(--ink); }
.equip-detail-title { font-size: clamp(28px, 3vw, 42px); line-height: 1.12; margin: 14px 0 20px; }
.equip-detail-desc { max-width: 56ch; }
.equip-detail-note { font-size: 13px; color: var(--ink-soft); padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.equip-detail-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
@media (max-width: 899px) { .equip-detail-grid { grid-template-columns: 1fr; } }

.detail-panels { display: grid; grid-template-columns: 1fr 1fr; gap: 40px clamp(32px, 6vw, 96px); }
.detail-panel h2 { font-size: 22px; margin-bottom: 20px; }
.detail-list { list-style: none; border-top: 1px solid var(--line); }
.detail-list li { padding: 14px 0 14px 22px; border-bottom: 1px solid var(--line); position: relative; }
.detail-list li::before { content: ""; position: absolute; left: 2px; top: 23px; width: 8px; height: 1px; background: var(--ink); }
@media (max-width: 799px) { .detail-panels { grid-template-columns: 1fr; } }

/* ---------- 404 ---------- */
.error-page { padding: var(--section-y) 0; text-align: center; }
.error-box { max-width: 560px; margin: 0 auto; }
.error-code { font-family: var(--font-head); font-size: 72px; line-height: 1; color: #9AA5B4; margin-bottom: 16px; display: block; }
.error-title { font-size: 28px; margin-bottom: 14px; }
.error-desc { color: var(--ink-soft); }
.error-page .search-form { margin-bottom: 24px; }
.error-page .hero-actions { justify-content: center; }

/* ---------- Rodapé ---------- */
.site-footer { background: var(--band); padding: clamp(48px, 6vw, 80px) 0 32px; font-size: 14px; }
.footer-grid {
  max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter);
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px;
}
.footer-title { font-family: var(--font-body); font-size: 14px; letter-spacing: 0; margin-bottom: 18px; }
.footer-copy { color: var(--ink-soft); max-width: 40ch; margin-bottom: 22px; }
.footer-list { list-style: none; display: grid; gap: 10px; color: var(--ink-soft); }
.footer-list a { text-decoration: none; color: var(--ink); }
.footer-list a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom {
  max-width: var(--max); margin: clamp(40px, 5vw, 64px) auto 0; padding: 24px var(--gutter) 0;
  border-top: 1px solid var(--line);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
}
.footer-logo { height: 60px; width: auto; mix-blend-mode: multiply; }
.footer-social { display: inline-flex; padding: 8px; }
.footer-social:hover { opacity: .65; }
.footer-legal { justify-self: end; margin: 0; font-size: 12px; color: var(--ink-soft); text-align: right; }
@media (max-width: 899px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-lead { grid-column: 1 / -1; }
}
@media (max-width: 519px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { grid-template-columns: 1fr; justify-items: start; }
  .footer-legal { justify-self: start; text-align: left; }
}

/* ---------- CTA flutuante (pílula no desktop, barra no celular) ---------- */
.mobile-cta-bar { position: fixed; z-index: 60; right: 20px; bottom: 20px; }
.mobile-cta-bar .btn {
  border-radius: 999px; min-height: 42px; padding: 0 20px; font-size: 13px; width: auto;
  box-shadow: 0 6px 20px rgba(7, 91, 195, .28);
}
@media (max-width: 719px) {
  .mobile-cta-bar { left: 0; right: 0; bottom: 0; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); }
  .mobile-cta-bar .btn { width: 100%; border-radius: 0; box-shadow: none; min-height: 48px; }
  body { padding-bottom: 70px; }
}

/* Ícone dentro do campo de busca (catálogo e 404) */
.search-input-wrap { position: relative; }
.search-icon {
  position: absolute; left: 14px; top: 50%; width: 18px; height: 18px;
  transform: translateY(-50%); color: var(--ink-soft); pointer-events: none;
}
.search-input--with-icon { padding-left: 42px; }
.error-page .search-icon { display: block; }

/* Menu do celular ocupa a largura toda abaixo do header */
@media (max-width: 1023px) {
  .header-inner { position: relative; }
  .site-nav { justify-self: stretch; }
}

/* ==========================================================================
   Ajustes de UX e formatação (rodada 2)
   ========================================================================== */
/* Âncoras não ficam escondidas atrás do header fixo */
html { scroll-padding-top: calc(var(--header-h) + 16px); }
h1, h2, h3 { text-wrap: balance; }
p, li, dd { text-wrap: pretty; }
a, button, summary, input { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }

/* Cor da marca nos estados ativos */
.tab[aria-selected="true"], .filter-chip[aria-pressed="true"] { color: var(--brand); border-bottom: 2px solid var(--brand); }
.tab, .filter-chip { border-bottom-width: 2px; }
.nav-link:hover, .nav-link[aria-current="page"] { border-bottom-color: var(--brand); color: var(--brand); }
.link-underline { text-decoration-color: var(--brand); color: var(--brand); }
.step-num { color: var(--brand); font-size: 32px; }
.equip-detail-cat { color: var(--brand); }
.header-icon:hover, .menu-toggle:hover { opacity: 1; color: var(--brand); }

/* Hero: texto legível sobre a foto e botões visíveis no celular */
.hero::after { background: linear-gradient(to top, rgba(8, 20, 38, .78) 0%, rgba(8, 20, 38, .35) 45%, rgba(8, 20, 38, .05) 75%); }
.hero-title { max-width: 18ch; }
@media (max-width: 719px) {
  .hero { min-height: 560px; height: calc(100svh - var(--topbar-h) - var(--header-h) - 70px); }
  .hero-actions .btn { flex: 1 1 auto; }
}

/* Faixa com foto: texto à esquerda sobre a área escura */
.banner::after { background: linear-gradient(to right, rgba(8, 20, 38, .82) 0%, rgba(8, 20, 38, .45) 45%, rgba(8, 20, 38, 0) 75%); }
.banner { align-items: center; }

/* Cards: rodapé alinhado e botão legível */
.equip-footer { padding-top: 14px; border-top: 1px solid var(--line); }
.equip-footer .btn-sm { padding: 0 14px; }
.equip-desc { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.photo-caption { background: rgba(255, 255, 255, .85); padding: 2px 6px; left: 8px; bottom: 8px; }

/* Painéis de produto nas abas */
.split-media--product { background: var(--brand-tint); }

/* Rodapé não fica sob o botão flutuante */
.site-footer { padding-bottom: 96px; }
@media (max-width: 719px) { .site-footer { padding-bottom: 32px; } }

/* Celular: nada passa da largura da tela */
.equip-detail-grid > *, .split > *, .faq-layout > *, .footer-grid > * { min-width: 0; }
@media (max-width: 899px) { .equip-detail-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 899px) {
  .btn { white-space: normal; text-align: center; line-height: 1.25; padding-top: 10px; padding-bottom: 10px; }
  .equip-detail-actions .btn, .empty-actions .btn, .error-page .hero-actions .btn { flex: 1 1 100%; }
  .search-form .btn { flex: none; padding-left: 18px; padding-right: 18px; }
  .equip-footer .btn-sm { white-space: nowrap; }
}
/* Abas e filtros roláveis: degradê na borda indica que há mais opções */
@media (max-width: 1099px) {
  .tab-list-wrap, .filter-scroll-wrap { -webkit-mask-image: linear-gradient(to right, #000 82%, transparent); mask-image: linear-gradient(to right, #000 82%, transparent); }
}

/* ---------- Carrinho de orçamento ---------- */
.cart-toggle { position: relative; }
.cart-count {
  position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px; background: var(--brand); color: #fff; font-size: 11px; line-height: 18px; text-align: center;
}
.cart-count:empty { display: none; }
.cart-toggle.bump .cart-count { animation: cart-bump .3s ease; }
@keyframes cart-bump { 50% { transform: scale(1.35); } }
.cart { position: fixed; inset: 0; z-index: 90; }
.cart-backdrop { position: absolute; inset: 0; background: rgba(8, 20, 38, .45); }
.cart-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(420px, 100%);
  background: #fff; display: flex; flex-direction: column; overscroll-behavior: contain;
  padding: 24px; padding-bottom: calc(24px + env(safe-area-inset-bottom));
}
.cart-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.cart-head h2 { font-size: 22px; }
.cart-close { background: none; border: 0; font-size: 30px; line-height: 1; cursor: pointer; width: 40px; height: 40px; }
.cart-list { list-style: none; flex: 1; overflow-y: auto; }
.cart-item { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cart-qty { display: flex; align-items: center; border: 1px solid var(--line); }
.cart-qty button { width: 34px; height: 34px; background: none; border: 0; cursor: pointer; font-size: 18px; color: var(--brand); }
.cart-qty span { min-width: 28px; text-align: center; font-variant-numeric: tabular-nums; }
.cart-remove { grid-column: 1; justify-self: start; background: none; border: 0; padding: 0; color: var(--ink-soft); font-size: 13px; text-decoration: underline; cursor: pointer; }
.cart-empty { color: var(--ink-soft); padding: 24px 0; flex: 1; }
.cart-foot { display: grid; gap: 14px; justify-items: center; padding-top: 16px; }
.cart-clear { background: none; border: 0; cursor: pointer; }
body.cart-open { overflow: hidden; }

/* ---------- Mapa ---------- */
.map-section { padding: 0; }
.map-frame { display: block; width: 100%; height: clamp(320px, 40vw, 460px); border: 0; filter: grayscale(.15); }

/* ---------- Blocos imagem + texto alinhados ao conteúdo (PC) ---------- */
.split {
  max-width: var(--max); margin-left: auto; margin-right: auto;
  padding: 0 var(--gutter); gap: clamp(32px, 5vw, 80px); align-items: center;
}
.split-media { min-height: 0; aspect-ratio: 4 / 3; }
.split-body { padding: clamp(8px, 2vw, 24px) 0; max-width: 560px; }
#localizacao { padding-top: var(--section-y); padding-bottom: var(--section-y); max-width: none; }
#localizacao > * { max-width: calc(var(--max) / 2); }
#localizacao .split-media { justify-self: start; width: 100%; }
#localizacao .split-body { justify-self: end; width: 100%; }
@media (min-width: 800px) {
  #localizacao { padding-left: max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter))); padding-right: max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter))); }
}
@media (max-width: 799px) { .split { padding: 0; gap: 0; } .split-body { padding: 28px var(--gutter); } #localizacao { padding-top: 0; } }

.intro { padding-bottom: var(--section-y); }
@media (max-width: 799px) { .intro { padding-bottom: 0; } }

/* ---------- Faixa com foto: menor, dentro da largura do conteúdo ---------- */
.banner {
  max-width: calc(var(--max) - 2 * var(--gutter));
  margin: 0 auto var(--section-y);
  min-height: clamp(320px, 30vw, 440px);
  width: calc(100% - 2 * var(--gutter));
}
.banner-media { object-position: 50% 50%; }
.banner-content { padding: clamp(32px, 4vw, 56px); }
.banner-title { font-size: clamp(24px, 2.4vw, 34px); }
@media (max-width: 719px) {
  .banner { width: 100%; margin-bottom: 0; min-height: 420px; }
  .banner::after { background: linear-gradient(to top, rgba(8, 20, 38, .85) 0%, rgba(8, 20, 38, .35) 70%); }
  .banner { align-items: flex-end; }
}

/* ==========================================================================
   Animações (poucas e com motivo)
   ========================================================================== */
:root {
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
}

/* 1. Botões respondem ao toque */
.btn { transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform 160ms var(--ease-out); }
.btn:active { transform: scale(0.97); }

/* 2. Entrada do hero: uma sequência só, ao abrir a página */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.hero-title, .hero-desc, .hero .hero-actions { animation: rise 700ms var(--ease-out) both; }
.hero-desc { animation-delay: 90ms; }
.hero .hero-actions { animation-delay: 180ms; }

/* 3. Fotos de seção se revelam ao entrar na tela (classe posta pelo JS) */

/* 4. Troca de aba: o painel novo aparece suavemente */
.tab-panel:not([hidden]) { animation: rise 320ms var(--ease-out) both; }

/* 5. Carrinho desliza da direita; fecha sem animação (rápido) */
.cart:not([hidden]) .cart-panel { animation: drawer-in 360ms var(--ease-drawer) both; }
.cart:not([hidden]) .cart-backdrop { animation: fade-in 240ms ease both; }
@keyframes drawer-in { from { transform: translateX(100%); } to { transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

/* Hover de foto só em mouse */
.equip-card:hover .equip-photo { transform: none; }

@media (prefers-reduced-motion: reduce) {
}

.banner { margin-top: var(--section-y); margin-bottom: 0; }
@media (max-width: 719px) { .banner { margin-top: 0; } }
