/* ===================================================================
   SALINO — design system
   Cores sólidas (sem degradê em texto/botões), contraste AA/AAA,
   alvos de toque >=44px e estados de foco visíveis.
   =================================================================== */

:root {
  /* ---- Azuis (escala sólida) ---------------------------------- */
  --blue-50:  #eef8fc;
  --blue-100: #d8eef7;
  --blue-200: #b4dff0;
  --brand:    #0283bc;   /* azul da marca — acentos grandes, ícones, bordas */
  --action:   #025d81;   /* ações: botões, links, destaques (7.3:1 no branco) */
  --action-h: #02435e;   /* hover das ações */
  --ink-blue: #06283a;   /* seções escuras e títulos */
  --wa:       #1da851;   /* WhatsApp acessível (4.6:1 no branco) */
  --wa-h:     #17813e;

  /* ---- Neutros ------------------------------------------------- */
  --ink:   #0b2733;
  --muted: #4d6673;      /* 6.1:1 no branco */
  --line:  #dfeaf0;

  --bg:      #ffffff;
  --bg-soft: #f2f9fc;
  --bg-dark: var(--ink-blue);

  /* ---- Formas e sombras ---------------------------------------- */
  --radius:    18px;
  --radius-sm: 12px;
  --shadow:      0 20px 48px -24px rgba(2, 78, 107, 0.26);
  --shadow-soft: 0 10px 28px -18px rgba(2, 78, 107, 0.30);

  /* ---- Ritmo --------------------------------------------------- */
  --container: 1140px;
  --gutter: 24px;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Doherty threshold: respostas percebidas como imediatas */
  --t-fast: .15s;
  --t-base: .25s;
  --t-slow: .45s;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -0.02em; font-weight: 800; text-wrap: balance; }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
h3 { font-size: 1.3rem; font-weight: 700; }
p  { color: var(--muted); text-wrap: pretty; }
a  { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; }
img { height: auto; }

/* =========================================================
   Acessibilidade: foco sempre visível (Norman — feedback)
   ========================================================= */
:focus-visible {
  outline: 3px solid var(--action);
  outline-offset: 3px;
  border-radius: 6px;
}
.section-dark :focus-visible,
.site-footer :focus-visible,
.hero :focus-visible { outline-color: #8fe3f5; }

.skip-link {
  position: fixed; top: -80px; left: 16px; z-index: 200;
  background: var(--action); color: #fff; font-weight: 700;
  padding: 14px 22px; border-radius: 0 0 12px 12px;
  transition: top var(--t-base) ease;
}
.skip-link:focus { top: 0; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* =========================================================
   Tipografia utilitária
   ========================================================= */
.accent { color: var(--action); }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--action);
  margin-bottom: 14px;
}
.eyebrow.light { color: var(--blue-200); }

.lead { font-size: 1.12rem; color: var(--muted); max-width: 56ch; }
.lead.center { margin-inline: auto; text-align: center; }

/* =========================================================
   Botões — cor sólida, alvo >=44px (Fitts), feedback no :active
   ========================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font); font-weight: 700; font-size: 0.98rem; line-height: 1.4;
  min-height: 44px; padding: 12px 24px;
  border: 0; border-radius: 999px;
  cursor: pointer; white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  transition: background var(--t-fast) ease, color var(--t-fast) ease,
              border-color var(--t-fast) ease, transform var(--t-fast) ease,
              box-shadow var(--t-fast) ease;
}
.btn-sm { min-height: 40px; padding: 9px 18px; font-size: 0.9rem; }
.btn-lg { min-height: 52px; padding: 15px 30px; font-size: 1.05rem; }

.btn-primary { background: var(--action); color: #fff; }
.btn-primary:hover { background: var(--action-h); }
.btn-primary:active { transform: translateY(1px); }

.btn-ghost {
  background: transparent; color: var(--action);
  border: 2px solid var(--line); padding: 10px 22px;
}
.btn-ghost.btn-sm { padding: 7px 16px; }
.btn-ghost.btn-lg { padding: 13px 28px; }
.btn-ghost:hover { border-color: var(--action); background: var(--blue-50); }
.btn-ghost:active { transform: translateY(1px); }
.btn-ghost.light { color: #fff; border-color: rgba(255,255,255,.45); }
.btn-ghost.light:hover { border-color: #fff; background: rgba(255,255,255,.1); }

.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: var(--wa-h); }
.btn-wa:active { transform: translateY(1px); }
.btn-wa svg { width: 20px; height: 20px; fill: currentColor; flex: none; }

/* Botão textual discreto */
.btn-back {
  background: none; border: 0; cursor: pointer;
  font-family: var(--font); font-weight: 700; font-size: 0.95rem;
  color: var(--muted); min-height: 44px; padding: 10px 12px; border-radius: 8px;
  transition: color var(--t-fast) ease, background var(--t-fast) ease;
}
.btn-back:hover { color: var(--action); background: var(--blue-50); }

/* =========================================================
   Ícones arredondados (sólidos)
   ========================================================= */
.icon-circle {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--blue-50); color: var(--action);
  display: grid; place-items: center; flex: none;
}
.icon-circle svg {
  width: 26px; height: 26px;
  stroke: currentColor; fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.icon-circle.solid { background: var(--action); color: #fff; }
.icon-circle.sm { width: 46px; height: 46px; }
.icon-circle.sm svg { width: 21px; height: 21px; }

/* =========================================================
   Header
   ========================================================= */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  padding: 14px 0;
  transition: background var(--t-base) ease, box-shadow var(--t-base) ease, padding var(--t-base) ease;
}
.site-header.scrolled {
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(14px);
  box-shadow: 0 1px 0 var(--line);
  padding: 8px 0;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.logo { display: inline-flex; align-items: center; padding: 4px; }
.logo img { height: 30px; width: auto; display: block; }

.nav { display: flex; gap: 8px; }
.nav a {
  font-weight: 600; font-size: 0.95rem; color: var(--ink);
  padding: 11px 12px; border-radius: 8px;      /* alvo de 44px (Fitts) */
  transition: color var(--t-fast) ease, background var(--t-fast) ease;
}
.nav a:hover { color: var(--action); background: var(--blue-50); }
.nav a[aria-current="page"] { color: var(--action); font-weight: 700; }

.header-actions { display: flex; align-items: center; gap: 10px; }

.menu-toggle {
  display: none; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
  width: 44px; height: 44px; background: none; border: 0; cursor: pointer;
  border-radius: 10px;
}
.menu-toggle span {
  width: 22px; height: 2.5px; background: var(--ink-blue); border-radius: 2px;
  transition: transform var(--t-base) ease, opacity var(--t-fast) ease;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.mobile-menu {
  display: none; flex-direction: column; gap: 2px;
  padding: 10px var(--gutter) 22px;
  background: rgba(255,255,255,.98); backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
}
.mobile-menu a {
  padding: 14px 6px; font-weight: 600; border-bottom: 1px solid var(--line);
  border-radius: 6px;
}
.mobile-menu a[aria-current="page"] { color: var(--action); }
.mobile-menu .btn { margin-top: 14px; }
.mobile-menu.open { display: flex; }

/* =========================================================
   Hero
   ========================================================= */
.hero { position: relative; padding: 148px 0 112px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .45; }
.blob-1 { width: 520px; height: 520px; background: var(--blue-200); top: -120px; right: -100px; }
.blob-2 { width: 460px; height: 460px; background: var(--blue-100); bottom: -160px; left: -120px; }

.hero--photo .hero-bg {
  background:
    linear-gradient(180deg, rgba(255,255,255,.90) 0%, rgba(255,255,255,.50) 34%, rgba(255,255,255,.04) 76%),
    url("/assets/BGs/hero-piscina-desktop.webp") top center / cover no-repeat #fff;
}
.hero--photo .blob { opacity: .16; }
@media (max-width: 700px) {
  .hero--photo .hero-bg {
    background:
      linear-gradient(180deg, rgba(255,255,255,.90) 0%, rgba(255,255,255,.50) 34%, rgba(255,255,255,.04) 76%),
      url("/assets/BGs/hero-piscina-mobile.webp") top center / cover no-repeat #fff;
  }
}

.hero-inner { text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero-title { font-size: clamp(2.3rem, 5.6vw, 4.1rem); max-width: 17ch; margin-bottom: 20px; line-height: 1.08; }
.hero-sub { font-size: 1.18rem; max-width: 58ch; margin-bottom: 32px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.hero-note { margin-top: 16px; font-size: 0.9rem; color: var(--muted); }

.hero-metrics {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  margin-top: 68px; width: 100%; max-width: 860px;
}
.metric { display: flex; flex-direction: column; gap: 2px; }
.metric-num { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 800; color: var(--action); letter-spacing: -0.03em; }
.metric-label { font-size: 0.9rem; color: var(--muted); font-weight: 600; }

.hero-wave { position: absolute; bottom: -1px; left: 0; width: 100%; line-height: 0; }
.hero-wave svg { width: 100%; height: 90px; display: block; }
.hero-wave path { fill: var(--bg-soft); }

/* Hero das páginas internas */
.page-hero { position: relative; padding: 152px 0 64px; background: var(--blue-50); overflow: hidden; }
.page-hero h1 { font-size: clamp(2rem, 4.6vw, 3.2rem); max-width: 20ch; margin-bottom: 16px; }
.page-hero .lead { max-width: 62ch; }
.page-hero .blob { opacity: .3; }

/* Breadcrumbs */
.breadcrumb { margin-bottom: 18px; font-size: 0.88rem; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.breadcrumb li { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.breadcrumb li + li::before { content: "/"; color: var(--line); }
.breadcrumb a { color: var(--muted); font-weight: 600; padding: 4px 0; }
.breadcrumb a:hover { color: var(--action); text-decoration: underline; text-underline-offset: 3px; }
.breadcrumb [aria-current="page"] { color: var(--ink); font-weight: 700; }

/* =========================================================
   Clientes
   ========================================================= */
.clients { background: var(--bg-soft); padding: 52px 0 68px; text-align: center; }
.clients-label { font-weight: 700; color: var(--ink-blue); margin-bottom: 28px; }
.clients-logos { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; list-style: none; }
.client-logo {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 16px; display: grid; place-items: center; aspect-ratio: 1;
  transition: transform var(--t-base) ease, box-shadow var(--t-base) ease;
}
.client-logo:hover { transform: translateY(-3px); box-shadow: var(--shadow-soft); }
.client-logo img {
  max-width: 100%; max-height: 100%; object-fit: contain;
  filter: grayscale(1); opacity: .72;
  transition: filter var(--t-base) ease, opacity var(--t-base) ease;
}
.client-logo:hover img { filter: none; opacity: 1; }
.clients-note { margin-top: 26px; font-size: 0.95rem; }

/* =========================================================
   Seções
   ========================================================= */
.section { padding: 96px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 52px; }
.section-head h2 { margin-bottom: 14px; }

.split { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 60px; align-items: center; }
.split > * { min-width: 0; }
.split-text h2 { margin: 6px 0 18px; }
.split-text .lead { margin-bottom: 26px; }

.check-list { list-style: none; margin-bottom: 30px; display: grid; gap: 14px; }
.check-list li { position: relative; padding-left: 34px; color: var(--ink); font-weight: 500; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 3px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--action) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='4 12.5 9.5 18 20 6.5'/%3E%3C/svg%3E") center / 13px no-repeat;
}

/* =========================================================
   Sistema (diagrama)
   ========================================================= */
.system-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 28px; box-shadow: var(--shadow); text-align: center;
  position: relative; overflow: hidden;
}
.system-flow { display: flex; align-items: flex-start; justify-content: center; gap: 14px; margin-bottom: 24px; }
.flow-step { display: flex; flex-direction: column; align-items: center; gap: 8px; flex: 0 1 86px; min-width: 0; }
.flow-step p { font-weight: 700; color: var(--ink); font-size: 0.88rem; line-height: 1.2; }
.flow-arrow { color: var(--brand); font-size: 1.3rem; font-weight: 800; margin-top: 12px; }

.sys-img { border-radius: var(--radius-sm); animation: floaty 6s ease-in-out infinite; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

.flow-track {
  height: 5px; border-radius: 999px; margin: 24px auto 0; max-width: 420px;
  background: repeating-linear-gradient(90deg, var(--brand) 0 14px, var(--blue-100) 14px 28px);
  animation: flow 1s linear infinite;
}
@keyframes flow { to { background-position: 28px 0; } }
.system-caption { font-size: 0.85rem; color: var(--muted); margin-top: 14px; font-weight: 600; }

/* =========================================================
   Cards
   ========================================================= */
.cards-3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 24px; }
.cards-4 { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 20px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 28px; box-shadow: var(--shadow-soft);
  transition: transform var(--t-base) ease, box-shadow var(--t-base) ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card .icon-circle { margin-bottom: 20px; }
.card h3 { margin-bottom: 10px; }
.card strong { color: var(--action); }

.step-card { position: relative; }
.step-num {
  position: absolute; top: 22px; right: 24px;
  font-size: 2.1rem; font-weight: 800; color: var(--blue-100); letter-spacing: -0.04em;
}

/* Estatísticas */
.split-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stat-box {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 26px 22px; text-align: center; box-shadow: var(--shadow-soft);
}
.stat-num { display: block; font-size: 2.3rem; font-weight: 800; color: var(--action); letter-spacing: -0.03em; }
.stat-box span:last-child { font-size: 0.9rem; color: var(--muted); font-weight: 600; }

/* Depoimentos */
.quote {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px; box-shadow: var(--shadow-soft);
  display: flex; flex-direction: column; gap: 20px;
}
.quote p { color: var(--ink); font-size: 1.04rem; font-weight: 500; }
.quote footer { display: flex; flex-direction: column; }
.quote footer strong { color: var(--action); }
.quote footer span { font-size: 0.85rem; color: var(--muted); }

/* ===== Prova social: embeds do Instagram ===== */
.ig-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px; align-items: start; justify-items: center;
}
.ig-card {
  position: relative; width: 100%; max-width: 380px; min-height: 480px;
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
/* O embed renderizado (iframe) ocupa o card */
.ig-card .instagram-media {
  margin: 0 !important; width: 100% !important;
  min-width: 0 !important; max-width: 100% !important;
  border: 0 !important; box-shadow: none !important; background: transparent !important;
}
/* Fallback mostrado enquanto carrega ou se o post sair do ar */
.ig-fallback {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  width: 100%; min-height: 480px; padding: 28px; text-align: center;
  color: var(--action); font-weight: 700; font-size: 1rem;
}
.ig-fallback:hover { color: var(--action-h); }
.ig-fallback-icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: #fff; border: 1px solid var(--line);
  display: grid; place-items: center; color: var(--action);
}
.ig-fallback-icon svg {
  width: 30px; height: 30px; fill: none; stroke: currentColor;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.ig-more { text-align: center; margin-top: 30px; }

/* =========================================================
   Tabela comparativa
   ========================================================= */
.table-wrap {
  overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; box-shadow: var(--shadow-soft);
}
.compare { width: 100%; border-collapse: collapse; min-width: 560px; }
.compare caption { text-align: left; padding: 18px 22px 0; font-weight: 700; color: var(--ink); }
.compare th, .compare td { padding: 17px 22px; text-align: left; border-bottom: 1px solid var(--line); }
.compare thead th { background: var(--bg-soft); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--action); }
.compare tbody tr:last-child td, .compare tbody tr:last-child th { border-bottom: 0; }
.compare tbody th { font-weight: 700; color: var(--ink); }
.compare .good { color: var(--action); font-weight: 700; }
.compare .bad  { color: #9a4a10; font-weight: 600; }

/* =========================================================
   FAQ
   ========================================================= */
.faq-list { display: grid; gap: 12px; max-width: 760px; margin-inline: auto; }
details.faq { border: 1px solid var(--line); border-radius: 14px; background: #fff; overflow: hidden; }
details.faq summary {
  list-style: none; cursor: pointer; font-weight: 700; color: var(--ink);
  padding: 19px 24px; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  min-height: 44px;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: "+"; font-size: 1.5rem; font-weight: 700; color: var(--action);
  transition: transform var(--t-base) ease; flex: none; line-height: 1;
}
details.faq[open] summary::after { transform: rotate(45deg); }
details.faq summary:hover { background: var(--blue-50); }
details.faq p { padding: 0 24px 22px; }

/* =========================================================
   CTA Salino Home
   ========================================================= */
.home-cta {
  text-align: center; max-width: 620px; margin-inline: auto;
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 52px 40px;
}
.badge {
  display: inline-block; background: var(--action); color: #fff;
  font-weight: 700; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em;
  padding: 6px 16px; border-radius: 999px; margin-bottom: 18px;
}
.home-cta h2 { margin-bottom: 12px; }
.inline-form { display: flex; gap: 10px; max-width: 460px; margin: 26px auto 0; }
.inline-form input {
  flex: 1; min-height: 48px; padding: 13px 18px;
  border: 2px solid var(--line); border-radius: 999px;
  font-family: var(--font); font-size: 1rem; outline: none;
  transition: border-color var(--t-fast) ease;
}
.inline-form input:focus { border-color: var(--action); }
.form-msg { margin-top: 14px; font-weight: 600; color: var(--action); min-height: 1.2em; }

/* =========================================================
   Contato (escuro)
   ========================================================= */
.section-dark { background: var(--bg-dark); color: #e6f4fa; }
.section-dark h2, .section-dark h3 { color: #fff; }
/* Sem isto, a cor global de parágrafo (--muted) ficaria escura sobre fundo escuro */
.section-dark p, .section-dark li { color: #cfe9f4; }
.section-dark .lead { color: #adcbd9; }
.contact-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; margin-bottom: 38px; }
.contact-card {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius); padding: 28px 26px;
}
.contact-card h3 { margin-bottom: 10px; }
.state-silhouette { display: block; width: 50px; height: 50px; margin-bottom: 16px; color: #7fd3ec; }
.state-silhouette svg { width: 100%; height: 100%; display: block; overflow: visible; }
.state-silhouette path {
  fill: none; stroke: currentColor; stroke-width: 1.6;
  stroke-linejoin: round; stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}
.contact-card a { color: #cfe9f4; font-weight: 700; }
.contact-card a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.contact-card .muted { color: #90b6c8; font-weight: 400; font-size: 0.9rem; margin-top: 6px; }
.contact-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* =========================================================
   Blog
   ========================================================= */
.blog-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 24px; }
.post-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-soft);
  display: flex; flex-direction: column;
  transition: transform var(--t-base) ease, box-shadow var(--t-base) ease;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.post-cover { height: 148px; display: grid; place-items: center; background: var(--action); }
.post-cover.alt-1 { background: var(--ink-blue); }
.post-cover.alt-2 { background: var(--brand); }
.post-cover.alt-3 { background: var(--action-h); }
.post-cover svg { width: 50px; height: 50px; stroke: rgba(255,255,255,.92); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.post-body { padding: 24px 24px 28px; display: flex; flex-direction: column; gap: 11px; flex: 1; }
.post-meta { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.09em; color: var(--action); }
.post-body h3 { font-size: 1.14rem; line-height: 1.35; }
.post-body h3 a:hover { color: var(--action); text-decoration: underline; text-underline-offset: 3px; }
.post-body p { font-size: 0.95rem; flex: 1; }
.post-link { font-weight: 700; color: var(--action); font-size: 0.95rem; }
.post-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Artigo */
.article { max-width: 760px; margin-inline: auto; }
.article-head { margin-bottom: 36px; }
.article-head h1 { font-size: clamp(1.9rem, 4.4vw, 2.8rem); margin: 12px 0 18px; }
.article-head .post-meta { display: block; }
.article-head .lead { font-size: 1.15rem; }

.prose { display: grid; gap: 20px; }
.prose h2 { font-size: 1.55rem; margin-top: 24px; }
.prose h3 { font-size: 1.18rem; margin-top: 10px; }
.prose p, .prose li { color: #35505e; font-size: 1.05rem; line-height: 1.75; }
.prose ul, .prose ol { padding-left: 24px; display: grid; gap: 10px; }
.prose strong { color: var(--ink); }
.prose a { color: var(--action); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: var(--action-h); }
.prose blockquote {
  border-left: 4px solid var(--brand); background: var(--bg-soft);
  padding: 20px 26px; border-radius: 0 14px 14px 0; font-weight: 500; color: var(--ink);
}
.prose .note { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 14px; padding: 20px 24px; font-size: 0.98rem; }

.article-cta {
  margin-top: 52px; background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 38px; text-align: center;
}
.article-cta h2 { font-size: 1.5rem; margin-bottom: 10px; }
.article-cta p { margin-bottom: 22px; }

/* =========================================================
   Galeria
   ========================================================= */
.gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.gallery-item {
  position: relative; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 4 / 3; background: var(--blue-50);
}
.gallery-item.wide { grid-column: span 2; }
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform var(--t-slow) cubic-bezier(.2,.7,.2,1);
}
.gallery-item:hover img { transform: scale(1.04); }
.gallery-caption {
  position: absolute; inset: auto 0 0 0; padding: 38px 20px 16px;
  background: linear-gradient(180deg, transparent, rgba(4,29,43,.78));
  color: #fff; font-weight: 700; font-size: 0.95rem;
}
.gallery-caption small { display: block; font-weight: 500; font-size: 0.78rem; color: #cfe6f0; }

.photo-strip { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 52px; }
.photo-strip .gallery-item { aspect-ratio: 16 / 10; }

/* =========================================================
   Rodapé
   ========================================================= */
.site-footer { background: #04202f; color: #b4d2df; padding: 56px 0 28px; }
.footer-inner { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-bottom: 28px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-brand { max-width: 320px; }
.footer-brand .logo { margin-bottom: 14px; margin-left: -4px; }
.footer-brand .logo img { height: 26px; }
.footer-brand p { color: #8bb0c1; font-size: 0.95rem; }
.footer-nav { display: flex; flex-direction: column; gap: 4px; }
.footer-nav h2 { color: #fff; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 8px; font-weight: 700; }
.footer-nav a { font-weight: 600; color: #cfe6f0; font-size: 0.95rem; padding: 7px 0; }
.footer-nav a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 22px; font-size: 0.85rem; color: #7ca5b9; }
.footer-bottom a { color: #9fc2d2; }
.footer-bottom a:hover { color: #fff; text-decoration: underline; }

/* =========================================================
   WhatsApp flutuante
   ========================================================= */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  display: inline-flex; align-items: center; gap: 10px;
  height: 56px; padding: 0 18px; border-radius: 999px;
  background: var(--wa); color: #fff; font-weight: 700; font-size: 0.95rem;
  box-shadow: 0 10px 26px -8px rgba(29,168,81,.6);
  transition: background var(--t-fast) ease, transform var(--t-fast) ease;
}
.wa-float svg { width: 27px; height: 27px; fill: currentColor; flex: none; }
.wa-float:hover { background: var(--wa-h); transform: translateY(-2px); }
.wa-float:active { transform: translateY(0); }
.wa-float .wa-label { white-space: nowrap; }
@media (max-width: 640px) {
  .wa-float { width: 56px; padding: 0; justify-content: center; right: 16px; bottom: 16px; }
  .wa-float .wa-label { display: none; }
}

/* =========================================================
   Modal de orçamento
   ========================================================= */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(4, 29, 43, .6); backdrop-filter: blur(5px);
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.modal-backdrop.open { display: flex; }
.modal {
  background: #fff; border-radius: 22px; width: 100%; max-width: 540px;
  padding: 36px 34px 32px; position: relative; max-height: 92vh; overflow-y: auto;
  animation: modalIn var(--t-base) cubic-bezier(.2,.7,.2,1);
}
@keyframes modalIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.modal-close {
  position: absolute; top: 16px; right: 16px; width: 44px; height: 44px;
  border-radius: 50%; border: 0; background: var(--bg-soft); color: var(--ink-blue);
  font-size: 1.05rem; font-weight: 700; cursor: pointer; display: grid; place-items: center;
  transition: background var(--t-fast) ease;
}
.modal-close:hover { background: var(--blue-100); }

.q-progress { margin-bottom: 24px; padding-right: 44px; }
.q-progress-label { font-size: 0.8rem; font-weight: 700; color: var(--action); text-transform: uppercase; letter-spacing: 0.09em; margin-bottom: 8px; }
.q-progress-bar { height: 6px; border-radius: 999px; background: var(--blue-50); overflow: hidden; }
.q-progress-fill { height: 100%; border-radius: 999px; background: var(--action); width: 20%; transition: width var(--t-slow) ease; }

.q-step { display: none; }
.q-step.active { display: block; animation: fadeUp var(--t-base) ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.q-step h2 { font-size: 1.33rem; margin-bottom: 6px; }
.q-step .q-hint { font-size: 0.95rem; margin-bottom: 20px; }

.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-weight: 700; font-size: 0.9rem; color: var(--ink); }
.field label small { font-weight: 500; color: var(--muted); }
.field input {
  min-height: 48px; padding: 13px 16px;
  border: 2px solid var(--line); border-radius: 12px;
  font-family: var(--font); font-size: 1rem; outline: none;
  transition: border-color var(--t-fast) ease;
}
.field input:focus { border-color: var(--action); }
.field input[aria-invalid="true"] { border-color: #b4530f; background: #fff8f3; }
.field-error { color: #9a4a10; font-size: 0.85rem; font-weight: 600; min-height: 1.1em; }

.opt-grid { display: grid; gap: 10px; }
label.opt {
  border: 2px solid var(--line); border-radius: 13px; padding: 14px 18px;
  cursor: pointer; font-weight: 600; color: var(--ink);
  display: flex; align-items: center; gap: 12px; min-height: 44px;
  transition: border-color var(--t-fast) ease, background var(--t-fast) ease;
}
label.opt:hover { border-color: var(--brand); background: var(--blue-50); }
label.opt input { accent-color: var(--action); width: 18px; height: 18px; flex: none; }
label.opt:has(input:checked) { border-color: var(--action); background: var(--blue-50); }
label.opt:has(input:focus-visible) { outline: 3px solid var(--action); outline-offset: 3px; }

.step-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 22px; }
.step-nav .btn { min-width: 140px; }

.q-summary { background: var(--bg-soft); border-radius: 14px; padding: 20px 22px; display: grid; gap: 10px; margin-bottom: 8px; }
.q-summary div { display: flex; justify-content: space-between; gap: 16px; font-size: 0.95rem; }
.q-summary dt { color: var(--muted); font-weight: 600; flex: none; }
.q-summary dd { color: var(--ink); font-weight: 700; text-align: right; }

.q-success { text-align: center; padding: 8px 0; }
.q-success .icon-circle { margin: 0 auto 18px; width: 72px; height: 72px; }
.q-success .icon-circle svg { width: 34px; height: 34px; }
.q-success h2 { font-size: 1.4rem; margin-bottom: 8px; }
.q-success p { margin-bottom: 22px; }
.q-success .btn { width: 100%; }
.q-success .q-later { margin-top: 12px; font-size: 0.9rem; }

/* =========================================================
   Reveal
   ========================================================= */
.reveal {
  opacity: 0; transform: translateY(22px);
  transition: opacity var(--t-slow) cubic-bezier(.2,.7,.2,1), transform var(--t-slow) cubic-bezier(.2,.7,.2,1);
}
.reveal.visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .07s; }
.reveal[data-delay="2"] { transition-delay: .14s; }
.reveal[data-delay="3"] { transition-delay: .21s; }
.reveal[data-delay="4"] { transition-delay: .28s; }

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

/* =========================================================
   Responsivo
   ========================================================= */
@media (max-width: 900px) {
  .nav { display: none; }
  .menu-toggle { display: flex; }
  .split { grid-template-columns: minmax(0,1fr); gap: 40px; }
  .cards-3, .blog-grid { grid-template-columns: 1fr; }
  .cards-4 { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .hero-metrics { grid-template-columns: repeat(2, 1fr); gap: 28px 16px; }
  .section { padding: 68px 0; }
  .clients-logos { grid-template-columns: repeat(4, 1fr); }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .ig-grid { grid-template-columns: minmax(0, 380px); }
}

@media (max-width: 520px) {
  .hero { padding: 118px 0 86px; }
  .page-hero { padding: 116px 0 44px; }
  .hero-sub { font-size: 1.04rem; }
  .lead { font-size: 1.02rem; }
  .section-head { margin-bottom: 38px; }

  .btn { white-space: normal; text-align: center; }
  .hero-cta, .contact-actions { width: 100%; flex-direction: column; align-items: stretch; }
  .hero-cta .btn, .contact-actions .btn, .article-cta .btn { width: 100%; }

  .header-actions { gap: 6px; }
  .header-actions .btn-sm { padding: 8px 14px; font-size: 0.85rem; }
  .logo img { height: 25px; }

  .split-stats { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stat-box { padding: 20px 12px; }
  .stat-num { font-size: 1.85rem; }
  .cards-4 { grid-template-columns: 1fr; }
  .card { padding: 26px 22px; }

  .system-card { padding: 24px 16px; }
  .system-flow { gap: 8px; }
  .flow-arrow { font-size: 1.05rem; margin-top: 14px; }
  .icon-circle.sm { width: 42px; height: 42px; }
  .icon-circle.sm svg { width: 19px; height: 19px; }
  .flow-step p { font-size: 0.8rem; }

  .inline-form { flex-direction: column; }
  .inline-form input, .inline-form .btn { width: 100%; }
  .footer-inner { flex-direction: column; gap: 26px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 4px; }
  .clients-logos { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .client-logo { padding: 10px; border-radius: 12px; }
  .gallery-grid { grid-template-columns: 1fr; gap: 12px; }
  .gallery-item.wide { grid-column: auto; }
  .photo-strip { grid-template-columns: 1fr; margin-top: 38px; }
  .contact-card { padding: 24px 20px; }
  .home-cta { padding: 38px 20px; }
  .quote { padding: 26px 22px; }
  .article-cta { padding: 30px 20px; }
  .prose p, .prose li { font-size: 1rem; }

  .modal { padding: 26px 20px 22px; border-radius: 18px; }
  .q-step h2 { font-size: 1.18rem; }
  label.opt { padding: 13px 14px; }
  .step-nav .btn { min-width: 0; flex: 1; }
  .q-summary div { flex-direction: column; gap: 0; }
  .q-summary dd { text-align: left; }
}
