/* INOVSAN - LP Google Ads - mobile-first
   Identidade lida dos estilos computados de inovsan.pt (set. 2026): Bai Jamjuree em títulos e corpo,
   azul-noite #12222E, terracota #B45C3D, azul-claro #CFDDE9, salmão #DB8869, cinza #F2F2F2.
   Blocos de cor retos (raio 0, sem sombra), botões com raio 10px, campos retos com filete 1px.
   Ajustes para AA: ver comentários "AA". */

/* Fallbacks com métricas medidas no browser: a troca de fonte não muda as quebras de linha (CLS). */
@font-face {
  font-family: "Bai Fallback";
  src: local("Arial"), local("ArialMT");
  font-weight: 400;
  size-adjust: 101.9%;
  ascent-override: 98.1%;
  descent-override: 24.5%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Bai Fallback";
  src: local("Arial Bold"), local("Arial-BoldMT"), local("Arial");
  font-weight: 700;
  size-adjust: 100.8%;
  ascent-override: 99.2%;
  descent-override: 24.8%;
  line-gap-override: 0%;
}

:root {
  /* Paleta do site */
  --navy: #12222E;          /* texto principal e blocos escuros */
  --terracotta: #B45C3D;    /* CTA primário (branco por cima: 4,63:1) */
  --terracotta-dk: #9A492C; /* hover do CTA e texto terracota sobre cinza (AA: #B45C3D sobre #F2F2F2 dá 4,13) */
  --salmon: #DB8869;        /* bloco secundário, texto azul-noite (5,98:1) */
  --blue: #CFDDE9;          /* bloco claro, texto azul-noite (11,7:1) */
  --grey: #F2F2F2;          /* faixas, campos e rodapé */
  --slate: #4C6D87;         /* texto secundário (AA: substitui o #858585 do site, que dá 3,69) */
  --white: #FFFFFF;

  /* Estados */
  --error: #C4161D;         /* vermelho do tema do site (#ED1C24) escurecido para AA: 6,04:1 */
  --success: #2E6B3A;

  --f: "Bai Jamjuree", "Bai Fallback", "Segoe UI", Arial, sans-serif;

  --gutter: 16px;
  --gap: 8px;               /* separação entre blocos, como no site */
  --radius-btn: 10px;       /* regra: botões 10px; blocos, campos e fotografias 0 */
  --header-h: 60px;
  --bar-h: 72px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }
body {
  margin: 0; background: var(--white); color: var(--navy);
  font: 400 1.0625rem/1.55 var(--f);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  padding-bottom: calc(var(--bar-h) + env(safe-area-inset-bottom, 0px));
}
img { display: block; max-width: 100%; height: auto; }
picture, figure { display: block; margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; line-height: 1.15; text-wrap: balance; }
h3, h4 { font-weight: 700; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
address { font-style: normal; }
strong, b { font-weight: 700; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
::selection { background: var(--blue); color: var(--navy); }
:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: var(--gutter); }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.fig { font-variant-numeric: tabular-nums; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--navy); color: var(--white); padding: 12px 16px; }
.skip:focus { top: 12px; }

.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ic-xl { width: 40px; height: 40px; }

/* ---------- Blocos ---------- */
.tile { padding: 28px 20px; }
.tile-navy { background: var(--navy); color: var(--white); }
.tile-navy :focus-visible { outline-color: var(--white); }
.tile-blue { background: var(--blue); color: var(--navy); }
.tile-terracotta { background: var(--terracotta); color: var(--white); }
.tile-terracotta :focus-visible { outline-color: var(--white); }
.tile-salmon { background: var(--salmon); color: var(--navy); }
.tile-white { background: var(--white); color: var(--navy); }

/* ---------- Botões (raio 10px, como no site) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 10px 22px;
  font: 400 1.0625rem/1.2 var(--f); text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; border-radius: var(--radius-btn);
  cursor: pointer; touch-action: manipulation;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .12s ease;
}
.btn:active { transform: translateY(1px); }
.btn-lg { min-height: 56px; font-size: 1.125rem; padding-inline: 28px; }
.btn-sm { min-height: 44px; padding: 8px 16px; font-size: 1rem; }
.btn-block { width: 100%; }
/* Regra: só as ações primárias levam negrito. */
.btn-primary { background: var(--terracotta); border-color: var(--terracotta); color: var(--white); font-weight: 700; }
.btn-primary:hover { background: var(--terracotta-dk); border-color: var(--terracotta-dk); text-decoration: none; }
.btn-white { background: var(--white); color: var(--terracotta); font-weight: 700; }
.btn-white:hover { background: var(--grey); color: var(--terracotta-dk); }
.btn-line { background: transparent; border-color: var(--navy); color: var(--navy); }
.btn-line:hover { background: var(--navy); color: var(--white); }
.btn-line-inverse { background: transparent; border-color: var(--white); color: var(--white); }
.btn-line-inverse:hover { background: var(--white); color: var(--navy); }
.btn[disabled], .btn[aria-busy="true"] { opacity: .65; cursor: progress; }

/* ---------- Cabeçalho ---------- */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40; background: var(--white); border-bottom: 1px solid var(--grey); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: var(--header-h); }
.logo { height: 34px; width: auto; }
.header-contacts { display: flex; align-items: center; gap: 24px; }
.header-fixed { display: none; }

/* ---------- Hero (mosaico) ---------- */
.hero { background: var(--grey); padding-block: var(--gap); }
.hero .wrap { padding-inline: var(--gap); }
.hero-mosaic { display: grid; gap: var(--gap); }
.hero-text { padding: 32px 20px 28px; }
.hero h1 { font-size: clamp(2.125rem, 1.35rem + 3.2vw, 3.75rem); line-height: 1.08; letter-spacing: -0.01em; max-width: 12.5em; }
.hero-sub { margin-top: 16px; font-size: 1.125rem; line-height: 1.5; color: var(--blue); max-width: 34em; }
.hero-actions { display: flex; flex-direction: column; align-items: stretch; margin-top: 24px; }
.tile.hero-photo { padding: 0; overflow: hidden; background: var(--navy); }
.hero-photo img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* ---------- Formulário ---------- */
.form-tile { padding: 28px 20px; scroll-margin-top: calc(var(--header-h) + 8px); }
.form-tile:focus { outline: none; }
.form-head h2 { font-size: 1.75rem; }
.form-sub { margin-top: 8px; font-size: .9375rem; color: var(--slate); }
#lead-form { margin-top: 22px; }
.field { margin: 0 0 18px; padding: 0; border: 0; min-width: 0; }
.label { display: block; padding: 0; margin-bottom: 6px; font-size: 1rem; font-weight: 700; }
.req { color: var(--error); }
.opt { font-weight: 400; color: var(--slate); }
.input {
  display: block; width: 100%; min-height: 50px; padding: 12px 14px;
  font: 400 1rem/1.4 var(--f); color: var(--navy);
  background: var(--grey); border: 1px solid var(--navy); border-radius: 0;
  -webkit-appearance: none; appearance: none;
  transition: box-shadow .15s ease, background-color .15s ease;
}
.input::placeholder { color: var(--slate); opacity: 1; }  /* 4,88:1 sobre #F2F2F2 */
.input:focus { outline: none; background: var(--white); box-shadow: inset 0 0 0 1px var(--navy), 0 0 0 3px var(--blue); }
.input[aria-invalid="true"] { border-color: var(--error); box-shadow: inset 0 0 0 1px var(--error); }
.field-pair { display: grid; gap: 0; }

.chips { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.chip { position: relative; display: block; }
.chip input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.chip span {
  display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 8px;
  background: var(--grey); border: 1px solid var(--navy); color: var(--navy);
  font-size: 1rem; text-align: center; cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}
.chip:hover span { background: var(--blue); }
.chip input:checked + span { background: var(--navy); color: var(--white); font-weight: 700; }
.chip input:focus-visible + span { outline: 2px solid var(--navy); outline-offset: 3px; }
fieldset[aria-invalid="true"] .chip span { border-color: var(--error); }

.hint, .error { display: flex; align-items: flex-start; gap: 6px; margin-top: 6px; font-size: .875rem; line-height: 1.45; }
.hint { color: var(--slate); }
.hint .ic, .error .ic { width: 16px; height: 16px; margin-top: 2px; }
.error { color: var(--error); font-weight: 700; }

.model-note { margin: -4px 0 16px; padding: 10px 12px; background: var(--blue); font-size: .9375rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-status { margin-top: 14px; padding: 16px; font-size: .9375rem; border: 1px solid var(--error); background: #FDEEEE; }
.form-status.is-info { border-color: var(--navy); background: var(--blue); }
.form-status strong { display: block; font-size: 1.0625rem; margin-bottom: 4px; }
.form-status a { font-weight: 700; }
.form-status .call-row { display: flex; flex-wrap: wrap; gap: var(--gap); margin-top: 12px; }
.form-status .call-row .btn { min-height: 44px; font-size: 1rem; }

.form-foot { margin-top: 14px; font-size: .875rem; line-height: 1.5; color: var(--slate); }  /* AA: 5,46:1 sobre branco */

/* Consentimento: caixa reta com filete 1px azul-noite, alvo de toque >= 44px (linha inteira) */
.field-consent { margin-bottom: 20px; }
.check { position: relative; display: flex; align-items: flex-start; gap: 12px; min-height: 44px; padding-block: 10px; cursor: pointer; font-size: 1rem; line-height: 1.45; }
.check input { position: absolute; left: -10px; top: 0; width: 44px; height: 44px; margin: 0; opacity: 0; cursor: pointer; }
.check-box {
  flex: none; display: grid; place-items: center; width: 24px; height: 24px; margin-top: -1px;
  background: var(--grey); border: 1px solid var(--navy); color: var(--white);
  transition: background-color .15s ease, box-shadow .15s ease;
}
.check-box .ic { width: 18px; height: 18px; stroke-width: 3; opacity: 0; transition: opacity .12s ease; }
.check:hover .check-box { background: var(--blue); }
.check input:checked + .check-box { background: var(--navy); }
.check input:checked + .check-box .ic { opacity: 1; }
.check input:focus-visible + .check-box { outline: 2px solid var(--navy); outline-offset: 3px; }
.check input[aria-invalid="true"] + .check-box { border-color: var(--error); box-shadow: inset 0 0 0 1px var(--error); }
.check-text a { font-weight: 700; }

.form-success { padding-top: 8px; animation: fade-in .35s var(--ease) both; }
.form-success:focus { outline: none; }
.form-success .ic-xl { color: var(--success); margin-bottom: 12px; }
.form-success p + p { margin-top: 10px; }
.success-title { font-size: 1.25rem; line-height: 1.4; }
.form-success a { font-weight: 700; }
@keyframes fade-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- Garantias ---------- */
.assurances { padding-block: 32px 36px; }
/* 5 itens: 1 coluna (ícone ao lado) no mobile; 3+2 a toda a largura no tablet (grelha de 6); 5 colunas no desktop. */
.assurance-list { display: grid; grid-template-columns: 1fr; gap: 18px; }
.assurance-list li { display: grid; grid-template-columns: 28px 1fr; column-gap: 14px; align-items: start; align-content: start; font-size: .9375rem; line-height: 1.45; }
.assurance-list li p { padding-top: 2px; }
.assurance-list .ic { width: 28px; height: 28px; color: var(--terracotta-dk); }
.assurance-list strong { display: block; font-size: 1.0625rem; }

/* ---------- Segmentos (blocos de cor) ---------- */
.segments { background: var(--grey); padding-block: var(--gap); }
.segments .wrap { padding-inline: var(--gap); }
.segment-mosaic { display: grid; gap: var(--gap); }
.segment { display: flex; flex-direction: column; }
.segment img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.segment-body { flex: 1; display: flex; flex-direction: column; gap: 12px; }
.segment h3 { font-size: 1.625rem; }
.segment .btn { align-self: flex-start; margin-top: auto; }
.segment p { max-width: 34em; }

/* ---------- Secções ---------- */
.section { padding-block: 56px; }
.section h2, .zone h2 { font-size: clamp(1.875rem, 1.4rem + 2vw, 3rem); letter-spacing: -0.005em; }
.lead { font-size: 1.1875rem; margin-top: 16px; }
.zone-text p + p { margin-top: 12px; }

/* Catálogo */
.group-title { margin-top: 36px; margin-bottom: 14px; font-size: 1.25rem; }
.model-grid { display: grid; gap: var(--gap); }
.model-grid + .model-grid { margin-top: var(--gap); }
.model { background: var(--grey); display: flex; }
.model-body { display: flex; flex-direction: column; gap: 10px; padding: 20px; flex: 1; }
.model h4 { font-size: 1.1875rem; letter-spacing: .01em; }
/* Linha de specs: primeira leitura do card; números em destaque, sistema numa etiqueta reta */
.specs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding-bottom: 12px; border-bottom: 1px solid #C9CFD4; font-size: .9375rem; line-height: 1.3; color: var(--slate); }
.specs .fig { font-size: 1.1875rem; color: var(--navy); }
.spec-sys { flex: none; white-space: nowrap; margin-right: 100%; padding: 3px 8px; border: 1px solid var(--navy); color: var(--navy); font-size: .8125rem; font-weight: 700; }  /* margin-right: fica sozinha na 1.ª linha */
.model p { font-size: 1rem; }
.fig { font-weight: 700; white-space: nowrap; }
.model .btn { align-self: flex-start; margin-top: auto; }
.model-photo { display: grid; grid-template-columns: 40% 1fr; }
.model-photo img { width: 100%; height: 100%; min-height: 200px; object-fit: cover; }
.catalogue-more { margin-top: 28px; font-size: 1.125rem; }

/* Processo */
.process { background: var(--grey); }
.process-grid { display: grid; gap: 32px; }
.process-list { counter-reset: step; margin-top: 28px; display: grid; gap: 20px; }
.process-list li { counter-increment: step; position: relative; padding-left: 60px; min-height: 44px; }
.process-list li::before {
  content: counter(step); position: absolute; left: 0; top: -2px; width: 44px; height: 44px;
  display: grid; place-items: center; background: var(--navy); color: var(--white); font-weight: 700; font-size: 1.125rem;
}
.process-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* Zona */
.zone { padding-block: var(--gap); }
.zone .wrap { padding-inline: var(--gap); }
.zone-mosaic { display: grid; gap: var(--gap); }
.zone-text { padding: 36px 20px; }
.zone-text > * { max-width: 40rem; }

/* Testemunhos: blocos cinza retos; a etiqueta do segmento usa a cor do bloco desse segmento */
.quote-list { display: grid; gap: var(--gap); margin-top: 28px; }
.quote-list > li { display: flex; }
.quote {
  --seg: var(--navy); --seg-ink: var(--white);
  flex: 1; display: flex; flex-direction: column; gap: 28px; margin: 0;
  padding: 32px 24px 24px; background: var(--grey);
}
.quote-eventos { --seg: var(--blue); --seg-ink: var(--navy); }        /* 11,7:1 */
.quote-obras { --seg: var(--terracotta); --seg-ink: var(--white); }   /* 4,63:1 */
.quote-industria { --seg: var(--navy); --seg-ink: var(--white); }
.quote blockquote { margin: 0; font-size: clamp(1.25rem, 1.1rem + .6vw, 1.5rem); line-height: 1.35; letter-spacing: -0.005em; }
.quote figcaption { margin-top: auto; display: grid; gap: 2px; padding-top: 18px; border-top: 1px solid #C9CFD4; font-size: .9375rem; line-height: 1.45; }
.quote-name { font-weight: 700; font-size: 1.0625rem; }
.quote-org { color: var(--slate); }
.quote-seg { justify-self: start; margin-top: 12px; padding: 4px 10px; background: var(--seg); color: var(--seg-ink); font-size: .875rem; font-weight: 700; }

/* FAQ */
.faq { padding-top: 24px; }
.faq-list { margin-top: 24px; border-top: 1px solid var(--navy); }
.faq details { border-bottom: 1px solid #C9CFD4; }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 56px; padding: 14px 0; cursor: pointer; list-style: none; font-size: 1.125rem; font-weight: 700;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { transition: transform .25s var(--ease); }
.faq details[open] summary .ic { transform: rotate(180deg); }
.faq summary:hover { color: var(--terracotta-dk); }
.faq details p { padding-bottom: 16px; max-width: 62ch; }
.faq details p + p { margin-top: -8px; }

/* CTA final (bloco terracota) */
.final-cta { background: var(--terracotta); color: var(--white); padding-block: 56px; }
.final-cta :focus-visible { outline-color: var(--white); }
.final-inner { display: grid; gap: 28px; }
.final-cta h2 { font-size: clamp(1.875rem, 1.3rem + 2.4vw, 3.25rem); max-width: 14em; }
.final-cta p { margin-top: 12px; font-size: 1.125rem; }
.final-actions { display: grid; gap: 8px; justify-items: stretch; }
.final-call { text-align: center; }
.final-call a { font-weight: 700; display: inline-block; padding-block: 10px; white-space: nowrap; }

/* Rodapé */
.site-footer { background: var(--grey); padding-block: 40px 48px; font-size: .9375rem; }
.footer-grid { display: grid; gap: 24px; }
.footer-name { font-weight: 700; font-size: 1.0625rem; margin-bottom: 8px; }
.site-footer address { display: grid; gap: 14px; }
.footer-contacts, .footer-legal { display: grid; gap: 10px; }
.site-footer a { font-weight: 700; display: inline-block; padding-block: 2px; }

/* Barra fixa mobile */
.sticky-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  display: grid; grid-template-columns: 1fr 1.5fr; gap: var(--gap);
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom, 0px));
  background: var(--white); border-top: 1px solid var(--grey);
  transform: translateY(110%); transition: transform .28s var(--ease);
}
.sticky-bar.is-visible { transform: none; }
.sticky-bar .btn { min-height: 52px; }

/* ---------- >= 600 ---------- */
@media (min-width: 600px) {
  .chips { grid-template-columns: repeat(4, 1fr); }
  .field-pair { grid-template-columns: 1fr 1fr; column-gap: 12px; }
  .assurance-list { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 28px 24px; }
  .assurance-list li { grid-column: span 2; grid-template-columns: 1fr; row-gap: 10px; }
  .assurance-list li:nth-child(n+4) { grid-column: span 3; }
  .hero-actions { align-items: flex-start; }
  .final-actions { justify-items: start; }
  .final-call { text-align: left; }
}

/* ---------- >= 768 ---------- */
@media (min-width: 768px) {
  :root { --gutter: 32px; --header-h: 72px; --gap: 10px; }
  .logo { height: 44px; }
  .hero .wrap, .segments .wrap, .zone .wrap { padding-inline: var(--gutter); }  /* mosaicos alinhados com o resto a partir do tablet */
  .header-fixed { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 700; font-size: 1.0625rem; text-decoration: none; font-variant-numeric: tabular-nums; }
  .header-fixed:hover { color: var(--terracotta-dk); }
  .tile, .hero-text, .form-tile { padding: 40px; }
  .hero-photo img { aspect-ratio: 16 / 9; }
  .segment-mosaic { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .segment-body { padding: 24px; }
  .segment .btn { align-self: stretch; white-space: normal; text-align: center; padding-inline: 10px; font-size: .9375rem; }
  .model-grid-photos, .model-grid-text { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .model-photo { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .model-photo img { height: auto; aspect-ratio: 4 / 5; min-height: 0; }
  .model-grid-split { grid-template-columns: 1fr 1fr; }
  .model-grid-split .model-photo { grid-row: span 3; }
  .model-grid-split .model-photo img { aspect-ratio: auto; flex: 1; height: 100%; max-height: 520px; }
  .quote-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .section { padding-block: 88px; }
  .zone-text { padding: 56px 48px; }
  .footer-grid { grid-template-columns: 1.2fr 1.4fr 1fr 1fr; }
}

/* ---------- >= 1024 (desktop) ---------- */
@media (min-width: 1024px) {
  body { padding-bottom: 0; }
  .sticky-bar { display: none; }
  .hero-mosaic { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-rows: auto 1fr; }
  .hero-text { grid-column: 1; grid-row: 1; padding: 48px; }
  .hero-photo { grid-column: 1; grid-row: 2; min-height: 260px; }
  .hero-photo picture, .hero-photo img { height: 100%; }
  .hero-photo img { aspect-ratio: auto; }
  .form-tile { grid-column: 2; grid-row: 1 / span 2; padding: 40px; }
  .hero-actions { display: none; }   /* o formulário está ao lado */
  .assurance-list { grid-template-columns: repeat(5, minmax(0, 1fr)); column-gap: 32px; }
  .assurance-list li, .assurance-list li:nth-child(n+4) { grid-column: auto; }
  .segment-body { padding: 32px; }
  .segment .btn { align-self: flex-start; padding-inline: 22px; font-size: 1.0625rem; }
  .process-grid { grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
  .faq-wrap { display: grid; grid-template-columns: 1fr 2fr; gap: 72px; align-items: start; }
  .faq-list { margin-top: 0; }
  .final-inner { grid-template-columns: 1.4fr 1fr; align-items: end; gap: 64px; }
  .final-actions { justify-items: end; }
  .final-call { text-align: right; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
