/* ============ Mais Grid — style.css ============ */
:root {
  /* Cores extraídas do logo (#08198B) e do catálogo */
  --navy: #08198B;
  --navy-deep: #050F57;
  --navy-ink: #0D1433;
  --green: #2EBD00;       /* CTA: usar com texto navy (contraste 5,5:1) */
  --green-dark: #1C7A00;  /* verde para texto sobre fundo claro (AA) */
  --steel: #E3E5EA;       /* fundo cinza do catálogo */
  --steel-line: #C5C9D3;
  --white: #FFFFFF;
  --muted: #4A5170;

  --font: "Archivo", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --radius: 4px;
  --wrap: 72rem;
  --header-h: 64px;

  --truss: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='18' viewBox='0 0 36 18'%3E%3Cpath d='M0 2h36M0 16h36M0 16 18 2l18 14' fill='none' stroke='%23ffffff' stroke-width='1.6'/%3E%3C/svg%3E");
  --truss-navy: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='18' viewBox='0 0 36 18'%3E%3Cpath d='M0 2h36M0 16h36M0 16 18 2l18 14' fill='none' stroke='%2308198B' stroke-width='1.6'/%3E%3C/svg%3E");
}

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--navy-ink);
  background: var(--white);
  font-variation-settings: "wdth" 100;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }
h1, h2, h3 { line-height: 1.05; margin: 0; }
p { margin: 0 0 1em; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--green); color: var(--navy-deep); padding: .6rem 1rem; font-weight: 700; }
.skip:focus { top: 1rem; }

:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }
.section--steel :focus-visible, .section :focus-visible { outline-color: var(--navy); }
.section--navy :focus-visible, .topbar :focus-visible, .hero :focus-visible, .footer :focus-visible { outline-color: var(--green); }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .7rem 1.4rem;
  font: inherit; font-weight: 700; font-size: 1rem; letter-spacing: .01em;
  font-variation-settings: "wdth" 88;
  border: 2px solid transparent; border-radius: var(--radius);
  text-decoration: none; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn--cta { background: var(--green); color: var(--navy-deep); }
.btn--cta:hover { background: #38D40A; }
.btn--ghost { border-color: rgba(255,255,255,.8); color: var(--white); background: transparent; }
.btn--ghost:hover { background: var(--white); color: var(--navy); }
.btn--line { border-color: var(--white); color: var(--white); background: transparent; }
.btn--line:hover { background: rgba(255,255,255,.12); }
.btn--navy { background: var(--navy); color: var(--white); }
.btn--navy:hover { background: var(--navy-deep); }
.btn--outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn--outline:hover { background: var(--navy); color: var(--white); }
.btn--sm { min-height: 40px; padding: .4rem .9rem; font-size: .95rem; }
.btn--block { width: 100%; }
.ico { width: 22px; height: 22px; flex: none; }

/* ---------- Marcador » (do catálogo) ---------- */
.chev {
  display: inline-grid; place-items: center; flex: none;
  width: 1.15em; height: 1.15em; margin-right: .4em; border-radius: 50%;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 6l6 6-6 6M12 6l6 6-6 6' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/62% no-repeat;
  vertical-align: -.12em;
}
.chev--sm { width: 1em; height: 1em; }

.h-section {
  display: flex; align-items: center;
  font-size: clamp(2rem, 6vw, 3.25rem); font-weight: 800;
  font-variation-settings: "wdth" 72;
  color: var(--navy); margin-bottom: .6rem;
}
.h-section--light { color: var(--white); }

/* ---------- Treliça (elemento-assinatura) ---------- */
.truss-rail { height: 18px; background: var(--truss) repeat-x left center; opacity: .9; }
.truss-rail--top { position: absolute; left: 0; right: 0; top: 0; }

/* ---------- Header ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: var(--navy);
  padding-top: env(safe-area-inset-top, 0px);
  box-shadow: 0 1px 0 rgba(255,255,255,.08);
}
.topbar__inner {
  width: min(100% - 1.5rem, var(--wrap)); margin-inline: auto;
  display: flex; align-items: center; gap: .75rem; height: var(--header-h);
}
.brand { display: block; margin-right: auto; }
.brand img { height: 44px; width: auto; }
.nav { display: none; }
.nav a { color: var(--white); text-decoration: none; font-weight: 600; padding: .5rem .25rem; }
.nav a:hover { text-decoration: underline; text-underline-offset: 6px; text-decoration-color: var(--green); text-decoration-thickness: 2px; }
.quote-link__full { display: none; }
.count {
  display: inline-grid; place-items: center; min-width: 1.5rem; height: 1.5rem; padding: 0 .35rem;
  border-radius: 999px; background: var(--navy-deep); color: var(--white); font-size: .85rem;
}
.count.bump { animation: bump .35s ease; }
@keyframes bump { 50% { transform: scale(1.35); } }
.menu-toggle {
  display: inline-grid; place-items: center; width: 44px; height: 44px;
  background: transparent; border: 0; color: var(--white); cursor: pointer; border-radius: var(--radius);
}
.nav.is-open {
  display: flex; flex-direction: column; position: absolute; left: 0; right: 0; top: 100%;
  background: var(--navy-deep); padding: .5rem 1.25rem 1rem;
}
.nav.is-open a { padding: .85rem 0; border-bottom: 1px solid rgba(255,255,255,.12); }

@media (min-width: 760px) {
  .menu-toggle { display: none; }
  .nav, .nav.is-open { display: flex; flex-direction: row; position: static; gap: 1.5rem; background: none; padding: 0; margin-right: 1rem; }
  .nav.is-open a { border: 0; padding: .5rem .25rem; }
  .quote-link__full { display: inline; }
  .quote-link__short { display: none; }
  .brand img { height: 50px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--navy-deep); color: var(--white);
  min-height: min(88vh, 720px); display: flex; flex-direction: column; justify-content: flex-end;
}
.hero__media {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(5,15,87,.35) 0%, rgba(5,15,87,.78) 55%, rgba(5,15,87,.96) 100%),
    url("../img/hero.jpg") center 30% / cover no-repeat;
}
.hero__media::after { /* duotone azul como na capa do catálogo */
  content: ""; position: absolute; inset: 0; background: var(--navy); mix-blend-mode: color;
}
.hero__inner { padding: 5rem 0 2.5rem; }
.hero__place { font-weight: 600; color: #B9C3FF; margin-bottom: .75rem; }
.hero__title {
  font-size: clamp(2.9rem, 12vw, 6.5rem);
  font-weight: 800; font-variation-settings: "wdth" 62;
  line-height: .92; letter-spacing: -.01em; max-width: 11ch;
  text-wrap: balance;
}
.hero__lead { max-width: 40ch; font-size: 1.15rem; margin: 1.25rem 0 1.75rem; color: #E6E9FF; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero .truss-rail { margin-bottom: 1.25rem; }

/* ---------- Seções ---------- */
.section { position: relative; padding: 4rem 0; }
.section--steel {
  background-color: var(--steel);
}
.section--navy { background: var(--navy); color: var(--white); padding-top: 5rem; }
.section__intro { color: var(--muted); max-width: 52ch; }

/* ---------- Filtros ---------- */
.filters { display: flex; gap: .5rem; overflow-x: auto; padding: .25rem .1rem 1rem; margin: 1.25rem 0 .5rem; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.chip {
  flex: none; min-height: 42px; padding: .45rem 1rem;
  font: inherit; font-weight: 600; font-size: .95rem;
  border: 2px solid var(--navy); border-radius: 999px; background: transparent; color: var(--navy); cursor: pointer;
}
.chip[aria-pressed="true"] { background: var(--navy); color: var(--white); }

/* ---------- Grade de produtos ---------- */
.grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 620px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid { grid-template-columns: repeat(3, 1fr); } }

.card {
  display: flex; flex-direction: column; height: 100%;
  background: var(--white); border-top: 6px solid var(--navy);
}
.card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #cfd3dd; }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__badges { position: absolute; left: .75rem; bottom: .75rem; display: flex; flex-wrap: wrap; gap: .35rem; }
.badge {
  display: inline-block; padding: .2rem .6rem; font-size: .8rem; font-weight: 700;
  background: var(--white); color: var(--navy); border-radius: 2px;
}
.badge--alu { background: var(--navy); color: var(--white); }
.card__body { display: flex; flex-direction: column; gap: .5rem; padding: 1.1rem 1.1rem 1.25rem; flex: 1; }
.card__title { font-size: 1.55rem; font-weight: 800; font-variation-settings: "wdth" 75; color: var(--navy); }
.card__summary { color: var(--muted); font-size: .98rem; margin: 0; }
.card__specline { font-size: .9rem; font-weight: 600; color: var(--navy-ink); margin: 0; }
.card__actions { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin-top: auto; padding-top: .75rem; }
.card__actions .btn { padding-inline: .6rem; font-size: .95rem; }

/* ---------- Sobre ---------- */
.about { display: grid; gap: 2rem; align-items: center; }
.about__text p { max-width: 60ch; }
.lede { font-size: 1.2rem; font-weight: 500; }
.about__photo { margin: 0; position: relative; }
.about__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.about__photo::after { content: ""; position: absolute; right: -10px; bottom: -10px; width: 45%; height: 45%; background: var(--green); z-index: -1; }
.about__photo { isolation: isolate; }
@media (min-width: 860px) { .about { grid-template-columns: 1.2fr 1fr; gap: 4rem; } .about__photo img { aspect-ratio: 1; } }

.pillars { display: grid; gap: 1rem; margin-top: 3.5rem; }
@media (min-width: 860px) { .pillars { grid-template-columns: repeat(3, 1fr); } }
.pillar { background: var(--steel); padding: 1.5rem; border-left: 5px solid var(--navy); }
.pillar h3 { display: flex; align-items: center; font-size: 1.6rem; font-weight: 800; font-variation-settings: "wdth" 72; color: var(--navy); margin-bottom: .6rem; }
.pillar p { margin: 0; }
.values { margin: 0; }
.values dt { font-weight: 700; color: var(--navy); }
.values dd { margin: 0 0 .75rem; }

/* ---------- Orçamento ---------- */
.quote { display: grid; gap: 2rem; }
@media (min-width: 960px) { .quote { grid-template-columns: 1.1fr 1fr; gap: 3rem; align-items: start; } }

.cart-empty { border: 2px dashed rgba(255,255,255,.35); padding: 1.5rem; }
.cart-empty p { margin: 0 0 1rem; }
.cart { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.cart-item {
  display: grid; grid-template-columns: 64px 1fr; gap: .75rem 1rem;
  background: var(--white); color: var(--navy-ink); padding: .85rem; border-radius: var(--radius);
}
.cart-item img { width: 64px; height: 64px; object-fit: cover; }
.cart-item__name { font-weight: 800; font-size: 1.15rem; font-variation-settings: "wdth" 80; color: var(--navy); margin: 0; }
.cart-item__controls { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: end; gap: .6rem; }
.cart-item__controls .field { margin: 0; flex: 1 1 9rem; }
.cart-item__remove { background: none; border: 0; color: #B00020; font: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; min-height: 44px; padding: 0 .25rem; }
.cart-total { margin: 1rem 0 0; color: #DDE2FF; }

.qty { display: inline-flex; align-items: stretch; border: 2px solid var(--navy); border-radius: var(--radius); }
.qty button { width: 42px; min-height: 42px; border: 0; background: var(--navy); color: var(--white); font-size: 1.3rem; font-weight: 700; cursor: pointer; }
.qty .qty__ten { width: auto; padding: 0 .7rem; font-size: .95rem; background: var(--navy-deep); border-left: 1px solid rgba(255,255,255,.25); }
.qty input { width: 4.2rem; border: 0; text-align: center; font: inherit; font-weight: 700; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.quote__form { background: var(--navy-deep); padding: 1.5rem; border-radius: var(--radius); }
.quote__form-title { font-size: 1.6rem; font-weight: 800; font-variation-settings: "wdth" 75; margin-bottom: .25rem; }
.form-hint { color: #C7CEFF; font-size: .9rem; }

.field { display: flex; flex-direction: column; gap: .3rem; margin-bottom: 1rem; }
.field label, .field .label { font-weight: 600; font-size: .95rem; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; min-height: 46px; padding: .55rem .75rem;
  border: 2px solid var(--steel-line); border-radius: var(--radius); background: var(--white); color: var(--navy-ink); width: 100%;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input[aria-invalid="true"] { border-color: #FF6B6B; }
.field__error { margin: 0; min-height: 0; color: #FFB3B3; font-size: .9rem; font-weight: 600; }
.field-row { display: grid; gap: 0 1rem; }
@media (min-width: 520px) { .field-row { grid-template-columns: 1fr 1fr; } }
.check { display: flex; align-items: center; gap: .5rem; font-size: .95rem; font-weight: 600; min-height: 44px; }
.check input { width: 20px; height: 20px; accent-color: var(--navy); }
.cart-item .field label, .cart-item .field .label { font-size: .8rem; color: var(--muted); }
.cart-item .field select { min-height: 42px; padding: .35rem .5rem; font-size: .95rem; }

.form-status { min-height: 1.2em; font-weight: 700; color: #FFB3B3; margin: 0 0 .75rem; }
.quote__actions { display: grid; gap: .6rem; }

/* ---------- Contato ---------- */
.contact { display: grid; gap: 2rem; }
@media (min-width: 860px) { .contact { grid-template-columns: 1fr 1.2fr; gap: 3rem; } }
.contact__list { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: 1.25rem; }
.contact__list li { display: flex; flex-direction: column; border-left: 4px solid var(--green); padding-left: .9rem; }
.contact__label { font-size: .9rem; color: var(--muted); font-weight: 600; }
.contact__list a, .contact__list address { font-size: 1.2rem; font-weight: 700; font-style: normal; color: var(--navy); }
.contact__list a { text-underline-offset: 4px; }
.contact__alt { font-size: .95rem !important; font-weight: 600 !important; }
.contact__map iframe { width: 100%; height: 100%; min-height: 320px; border: 0; background: var(--steel); }

/* ---------- Rodapé ---------- */
.footer { position: relative; background: var(--navy-deep); color: #DDE2FF; padding: 3rem 0 calc(6rem + env(safe-area-inset-bottom, 0px)); }
.footer__inner { display: grid; gap: 1rem; }
.footer__brand { font-weight: 800; font-size: 1.2rem; color: var(--white); font-variation-settings: "wdth" 80; margin: 0; }
.footer__nav { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }
.footer__nav a { color: var(--white); padding: .5rem 0; }
.footer__copy { font-size: .9rem; margin: 0; }

/* ---------- WhatsApp flutuante ---------- */
.wa-float {
  position: fixed; right: 1rem; bottom: calc(1rem + env(safe-area-inset-bottom, 0px)); z-index: 60;
  width: 60px; height: 60px; display: grid; place-items: center; border-radius: 50%;
  background: #1A8F00; color: var(--white);
  box-shadow: 0 6px 18px rgba(5,15,87,.35);
}
.wa-float:hover { background: #157500; }

/* ---------- Modal ---------- */
.modal {
  width: min(100% - 1.5rem, 60rem); max-height: calc(100dvh - 2rem);
  padding: 0; border: 0; border-radius: 6px; overflow-y: auto;
  color: var(--navy-ink); background: var(--white);
  box-shadow: 0 24px 60px rgba(5,15,87,.45);
}
.modal::backdrop { background: rgba(5,15,87,.72); }
.modal__bar {
  position: sticky; top: 0; z-index: 3;
  display: flex; align-items: center; gap: 1rem;
  min-height: 56px; padding: .35rem .5rem .35rem 1.25rem;
  background: var(--navy); border-bottom: 3px solid var(--green);
}
.modal__bar-title {
  margin: 0 auto 0 0; color: var(--white); font-weight: 800; font-size: 1.1rem;
  font-variation-settings: "wdth" 75; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.modal__close {
  flex: none; display: grid; place-items: center; width: 44px; height: 44px;
  border: 0; border-radius: 50%; background: rgba(255,255,255,.12); color: var(--white); cursor: pointer;
}
.modal__close:hover { background: rgba(255,255,255,.25); }
.modal__body { display: grid; }
.modal__media { background: var(--steel); }
.modal__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.modal__content { padding: 1.5rem 1.25rem 1.75rem; }
.modal__content > p { max-width: 58ch; }
.modal__title { font-size: clamp(1.9rem, 5vw, 2.6rem); font-weight: 800; font-variation-settings: "wdth" 70; color: var(--navy); margin: .6rem 0 .9rem; }
.modal h3 { font-size: 1.15rem; font-weight: 800; color: var(--navy); margin: 1.5rem 0 .5rem; font-variation-settings: "wdth" 85; }
.specs { width: 100%; border-collapse: collapse; font-size: .98rem; border-top: 2px solid var(--navy); }
.specs th, .specs td { text-align: left; padding: .6rem .7rem; border-bottom: 1px solid var(--steel-line); vertical-align: top; }
.specs th { width: 38%; font-weight: 700; color: var(--navy); }
.specs tr:nth-child(even) { background: #F3F4F7; }
.modal__config {
  margin-top: 1.75rem; padding: 1.25rem; border-radius: 6px;
  background: var(--steel); border-left: 5px solid var(--green);
}
.modal .modal__config-title { margin: 0 0 1rem; font-size: 1.3rem; }
.modal__config .field label, .modal__config .field .label { color: var(--navy-ink); }
.modal__add { display: flex; flex-wrap: wrap; gap: .75rem 1rem; align-items: flex-end; margin-top: .75rem; }
.modal__add .btn { flex: 1 1 14rem; min-height: 48px; }
@media (min-width: 820px) {
  .modal__body { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); align-items: start; }
  .modal__media { position: sticky; top: 59px; }
  .modal__media img { aspect-ratio: 4 / 5; max-height: calc(100dvh - 2rem - 59px); }
  .modal__content { padding: 1.75rem 2rem 2rem; }
}

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px)); z-index: 70;
  transform: translate(-50%, 150%); transition: transform .25s ease;
  background: var(--navy-ink); color: var(--white); padding: .8rem 1.1rem; border-radius: var(--radius);
  font-weight: 600; width: max-content; max-width: calc(100% - 2rem);
  bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px));
}
.toast.is-visible { transform: translate(-50%, 0); }
.toast a { color: var(--green); }

.notice { background: var(--white); padding: 1rem; border-left: 4px solid var(--green); }
