/* ============ Design tokens ============ */
:root {
  --bg: #ffffff;
  --ink: #0f1115;
  --ink-2: #2a2f3a;
  --muted: #6b7280;
  --line: #e6e8ee;
  --card: #f6f7fa;
  --dark: #111319;
  --dark-2: #1a1d25;
  --accent: #ffcf2b;
  --accent-2: #ffb800;
  --accent-ink: #131313;
  --success: #22c55e;
  --danger: #ef4444;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 10px 30px -12px rgba(15,17,21,.18);
  --shadow-lg: 0 30px 60px -20px rgba(15,17,21,.35);
  --container: 1200px;
  --font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --display: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

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

.skip { position: absolute; left: -9999px; z-index: 9999; background: #fff; color: var(--ink); padding: .75rem 1.25rem; border-radius: 8px; font-weight: 700; }
.skip:focus { left: 1rem; top: 1rem; }
:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 3px; }

.form-banner { padding: .85rem 0; font-weight: 600; font-size: .9375rem; text-align: center; }
.form-banner--success { background: #e9f9ee; color: #1f9d55; }
.form-banner--error { background: #fdecea; color: #c0392b; }

.icon { width: 1em; height: 1em; flex-shrink: 0; }
.icon-xs { width: .85em; height: .85em; }
.icon-sm { width: 1em; height: 1em; }
.icon-lg { width: 1.5em; height: 1.5em; }
.icon-xl { width: 1.875em; height: 1.875em; }

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 22px; border-radius: 999px; font-weight: 700; font-size: 15px;
  border: 1px solid transparent; transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 10px 24px -10px rgba(255,184,0,.7); }
.btn-primary:hover { background: var(--accent-2); }
.btn-dark { background: var(--dark); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-outline { border-color: rgba(255,255,255,.25); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,.08); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-lg { padding: 16px 26px; font-size: 16px; }

.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px; background: rgba(255,207,43,.15);
  color: #7a5b00; font-weight: 600; font-size: 13px; letter-spacing: .02em;
}
.chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(255,207,43,.25); }

.eyebrow { font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--accent-2); font-weight: 700; }

/* ============ Topbar / Header ============ */
.topbar {
  background: var(--dark); color: #cfd3dc; font-size: 13px;
  padding: 10px 0;
}
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.topbar a { color: #fff; font-weight: 600; }
.topbar .sep { opacity: .35; margin: 0 10px; }

.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.9); backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; gap: 16px; }
/* Marca no header */


.logo {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  min-width: max-content;
  color: var(--ink);
  text-decoration: none;
}

.logo-img {
  display: block;
  width: auto;
  height: 58px;
  flex-shrink: 0;
  object-fit: contain;
}

.logo-separator {
  display: block;
  width: 1px;
  height: 38px;
  flex-shrink: 0;
  background: var(--line);
}

.logo-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  font-family: var(--display);
  line-height: 1;
}

.logo-name {
  display: flex;
  align-items: baseline;
  gap: 5px;
  color: var(--ink);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.025em;
  white-space: nowrap;
}

.logo-name strong {
  color: var(--accent);
  font-weight: 800;
}

.logo-subtitle {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  white-space: nowrap;
}



.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { font-weight: 600; color: var(--ink-2); font-size: 15px; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: 10px; }

.burger { display: none; width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--line); background: #fff; align-items: center; justify-content: center; }
.burger span, .burger span::before, .burger span::after {
  content: ""; display: block; width: 18px; height: 2px; background: var(--ink); position: relative; border-radius: 2px;
}
.burger span::before { position: absolute; top: -6px; }
.burger span::after { position: absolute; top: 6px; }

.mobile-menu { display: none; border-top: 1px solid var(--line); background: #fff; padding: 12px 0 18px; }
.mobile-menu a { display: block; padding: 12px 4px; font-weight: 600; border-bottom: 1px solid var(--line); }
.mobile-menu.open { display: block; }

@media (max-width: 1100px) {
  .logo {
    gap: 12px;
  }

  .logo-img {
    height: 52px;
  }

  .logo-separator {
    height: 34px;
  }

  .logo-name {
    font-size: 17px;
  }

  .logo-subtitle {
    font-size: 9px;
  }
}


@media (max-width: 720px) {
  .nav {
    padding: 12px 0;
  }

  .logo {
    gap: 10px;
    min-width: 0;
  }

  .logo-img {
    height: 40px;
  }

  .logo-separator {
    height: 32px;
  }

  .logo-copy {
    min-width: 0;
  }

  .logo-name {
    display: block;
    font-size: 14px;
    line-height: 1.05;
    white-space: normal;
  }

  .logo-name span,
  .logo-name strong {
    display: block;
  }

  .logo-subtitle {
    display: none;
  }
}


/* ============ Hero ============ */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, #fafbfd 0%, #ffffff 100%);
  padding: 56px 0 72px;
}
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center;
}
/*
  H1 continua semanticamente único e é a keyword principal, mas fica
  visualmente menor — funciona como uma linha SEO forte. A "headline"
  a seguir é que domina visualmente (ver DESIGN_PRESERVATION_SPEC.md).
*/
.hero h1 {
  font-size: clamp(19px, 2.2vw, 24px); line-height: 1.3; margin: 16px 0 8px;
  letter-spacing: -0.005em; font-weight: 700; color: var(--muted);
}
.hero-headline {
  font-family: var(--display); font-size: clamp(32px, 4.6vw, 54px); line-height: 1.08;
  margin: 0 0 14px; letter-spacing: -0.02em; font-weight: 800; color: var(--ink);
}
.hero-support { font-size: 16px; color: var(--ink-2); font-weight: 600; margin: 0 0 18px; max-width: 560px; }
.hero p.lead { font-size: 17px; color: var(--muted); max-width: 560px; margin: 0 0 26px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }
.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; max-width: 620px; }
.hero-stat { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.hero-stat b { display: block; font-size: 15px; }
.hero-stat span { font-size: 12px; color: var(--muted); }

.hero-media { position: relative; }
.hero-media .frame {
  border-radius: 28px; overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4/5; background: #eee;
}
.hero-media .frame img { width: 100%; height: 100%; object-fit: cover; }
.floating-card {
  position: absolute; background: #fff; border-radius: 16px; padding: 14px 16px; box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 12px; font-size: 14px;
}
.fc-1 { left: -18px; top: 32px; }
.fc-2 { right: -18px; bottom: 40px; }
.floating-card .ic { width: 40px; height: 40px; border-radius: 12px; background: var(--accent); display: grid; place-items: center; color: var(--accent-ink); }
.floating-card b { display: block; font-size: 14px; }
.floating-card span { color: var(--muted); font-size: 12px; }

/* ============ Section base ============ */
section { padding: 84px 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 42px); font-weight: 800; letter-spacing: -0.02em; margin: 10px 0 12px; }
.section-head p { color: var(--muted); margin: 0; }

/* ============ Features strip ============ */
.features { padding: 40px 0; background: var(--dark); color: #fff; }
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature { display: flex; gap: 14px; align-items: flex-start; }
.feature .ic { width: 44px; height: 44px; border-radius: 12px; background: rgba(255,207,43,.15); color: var(--accent); display: grid; place-items: center; flex-shrink: 0; }
.feature h4 { margin: 0 0 4px; font-size: 15px; }
.feature p { margin: 0; color: #a9afbc; font-size: 13px; }

/* ============ Services ============ */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.service:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.service .ic { width: 54px; height: 54px; border-radius: 14px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; margin-bottom: 18px; }
.service h3 { margin: 0 0 8px; font-size: 20px; }
.service p { margin: 0; color: var(--muted); font-size: 15px; }

/* ============ About ============ */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about-media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 1/1; }
.about-media img { width: 100%; height: 100%; object-fit: cover; }
.about h2 { font-size: clamp(28px, 3.4vw, 44px); font-weight: 800; letter-spacing: -0.02em; margin: 12px 0 18px; }
.about p { color: var(--muted); margin-bottom: 20px; }
.about-list { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 12px; }
.about-list li { display: flex; gap: 12px; align-items: center; font-weight: 600; }
.about-list li .tick { width: 26px; height: 26px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; flex-shrink: 0; }

/* ============ Steps ============ */
.steps { background: var(--card); }
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.step { background: #fff; border-radius: var(--radius-lg); padding: 28px; border: 1px solid var(--line); position: relative; }
.step .n { font-size: 44px; font-weight: 800; color: var(--accent); line-height: 1; margin-bottom: 8px; }
.step h4 { margin: 0 0 6px; font-size: 18px; }
.step p { margin: 0; color: var(--muted); font-size: 14px; }

/* ============ CTA Band ============ */
.cta-band { background: var(--dark); color: #fff; padding: 72px 0; }
.cta-inner {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center;
  background: linear-gradient(135deg, #191c24, #0e1116);
  border-radius: 26px; padding: 44px; border: 1px solid rgba(255,255,255,.06);
}
.cta-inner h2 { font-size: clamp(26px, 3vw, 38px); margin: 6px 0 10px; letter-spacing: -0.02em; }
.cta-inner p { color: #a9afbc; margin: 0 0 22px; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cta-phones { display: grid; gap: 12px; }
.cta-phone { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); border-radius: 16px; padding: 18px 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cta-phone b { font-size: 22px; letter-spacing: -0.01em; }
.cta-phone span { color: #a9afbc; font-size: 13px; display: block; }
.cta-phone .call { background: var(--accent); color: var(--accent-ink); padding: 10px 16px; border-radius: 999px; font-weight: 700; }

/* ============ Testimonials ============ */
.tests-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.test { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; }
.stars { color: var(--accent-2); letter-spacing: 2px; margin-bottom: 12px; font-size: 16px; }
.test p { margin: 0 0 18px; color: var(--ink-2); }
.test .who { display: flex; align-items: center; gap: 12px; }
.test .avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-weight: 800; }
.test .who b { display: block; font-size: 14px; }
.test .who span { color: var(--muted); font-size: 12px; }

/* ============ FAQ ============ */
.faq-list { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.faq-q {
  width: 100%; text-align: left; padding: 18px 22px; background: transparent; border: 0;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; font-weight: 700; font-size: 16px;
}
.faq-q .caret { transition: transform .2s ease; }
.faq-item.open .faq-q .caret { transform: rotate(180deg); }
.faq-a { padding: 0 22px 20px; max-height: none; overflow: hidden; transition: max-height .3s ease, padding .3s ease; color: var(--muted); }
/*
  Por defeito (sem JS), todas as respostas ficam visíveis — importante
  para SEO e para quem navega sem JavaScript. Só depois de main.js
  confirmar que pode gerir o acordeão é que os itens não-ativos passam a
  fechar (classe "js-collapsed", aplicada dinamicamente).
*/
.faq-item.js-collapsed .faq-a { max-height: 0; padding-top: 0; padding-bottom: 0; }

/* ============ Cities ============ */
.cities { background: var(--card); }
.cities-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.city { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 22px; text-align: center; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 10px; }
.city .pin { color: var(--accent-2); }

/* ============ Footer ============ */
.footer { background: var(--dark); color: #cfd3dc; padding: 60px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer h5 { color: #fff; margin: 0 0 14px; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer a:hover { color: #fff; }
.footer .brand-row { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; font-size: 20px; margin-bottom: 12px; }
.footer .brand-row .badge { width: 34px; height: 34px; border-radius: 10px; background: var(--accent); display: grid; place-items: center; color: var(--accent-ink); }
.footer p { font-size: 14px; color: #a9afbc; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding-top: 20px; display: flex; align-items: center; justify-content: space-between; font-size: 13px; color: #a9afbc; flex-wrap: wrap; gap: 8px; }

/* ============ Floating call button (mobile) ============ */
.fab {
  position: fixed; right: 16px; bottom: 16px; z-index: 60;
  background: var(--accent); color: var(--accent-ink);
  padding: 14px 18px; border-radius: 999px; font-weight: 800;
  box-shadow: 0 15px 30px -10px rgba(255,184,0,.7);
  display: none; align-items: center; gap: 10px;
}

/* ============ Reveal animations ============ */
/*
  Progressive enhancement: por defeito TUDO está visível, incluindo se o
  JavaScript falhar. Só depois de main.js confirmar que o
  IntersectionObserver está disponível é que a classe "js-fade-ready" é
  adicionada ao body e os elementos [data-observe] passam a animar.
*/
[data-observe] { opacity: 1; transform: none; }
body.js-fade-ready [data-observe] { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
body.js-fade-ready [data-observe].in { opacity: 1; transform: none; }

/* ============ Menu mobile: acessibilidade ============ */
.mobile-menu[aria-hidden="true"] { display: none; }
.mobile-menu.open { display: block; }

/* ============ Responsive ============ */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  /*
    Bug corrigido: a versão anterior tinha "order:-1" aqui, o que
    colocava a imagem ANTES do H1/headline/telefone em mobile — violava
    diretamente o MOBILE_SPEC.md. A ordem no DOM já é conteúdo -> imagem
    (ver index.php); não reintroduzir "order".
  */
  .hero-media { max-width: 520px; margin: 0 auto; }
  .services-grid, .tests-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .cta-inner { grid-template-columns: 1fr; padding: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cities-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  section { padding: 60px 0; }
  .topbar .hide-sm { display: none; }
  .nav-links, .nav-cta .btn-desktop { display: none; }
  .burger { display: inline-flex; }
  .hero { padding: 32px 0 48px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .services-grid, .tests-grid, .features-grid, .steps-grid { grid-template-columns: 1fr; }
  .floating-card { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .fab { display: inline-flex; }
  body { padding-bottom: 80px; }
  .cta-inner { padding: 24px; }
  .cta-phone b { font-size: 18px; }
}

/* ============ Antas additions ============ */
/* Logo no header em vez de badge+texto */
.logo-img { height: 65px; width: auto; }

/* Form card no contacto */
.contact-section { background: var(--dark); color: #fff; padding: 84px 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: start; }
.contact-info h2 { font-size: clamp(26px,3vw,38px); font-weight: 800; letter-spacing: -.02em; color: #fff; margin: 8px 0 14px; }
.contact-info p  { color: #a9afbc; font-size: 15px; line-height: 1.7; margin-bottom: 24px; }
.contact-phones  { display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px; }
.contact-phones a { font-weight: 800; font-size: 1.6rem; color: var(--accent); display: inline-flex; align-items: center; gap: 8px; transition: color .18s; }
.contact-phones a:hover { color: #fff; }
.contact-note { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-left: 3px solid var(--accent); border-radius: 12px; padding: 14px 18px; font-size: 14px; color: #a9afbc; line-height: 1.65; }
.form-card { background: #fff; color: var(--ink); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow-lg); }
.form-status { font-size: 14px; font-weight: 600; border-radius: 10px; }
.form-status.ok  { background: #d4edda; color: #1a6640; padding: 14px 18px; margin-bottom: 18px; border: 1px solid #a8d5b5; }
.form-status.err { background: #fde8e8; color: #9B2B1F; padding: 14px 18px; margin-bottom: 18px; border: 1px solid #f0b0b0; }
.frow { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ff   { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; }
.ff label { font-size: 14px; font-weight: 600; color: #555; }
.ff input:not([type="checkbox"]):not([type="hidden"]),
.ff select,
.ff textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color .18s, box-shadow .18s;
}
.ff input:not([type="checkbox"]):focus,
.ff select:focus,
.ff textarea:focus {
  outline: none;
  border-color: var(--accent-2);
  box-shadow: 0 0 0 3px rgba(141, 194, 54, .18);
}
.ff select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7280' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.ff textarea { resize: vertical; min-height: 90px; }
.ff-consent { flex-direction: row; align-items: flex-start; gap: 10px; }
.ff-consent input[type="checkbox"] { width: 17px; height: 17px; margin-top: 2px; flex-shrink: 0; accent-color: var(--accent-2); cursor: pointer; }
.ff-consent label { font-weight: 400; cursor: pointer; font-size: 14px; }
.hp { display: none !important; }
.btn-submit { width: 100%; min-height: 52px; font-size: 16px; margin-top: 4px; }

/* Zones chips layout */
.zones-chips { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-bottom: 40px; }
.zone-chip { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 15px; transition: border-color .18s, box-shadow .18s; }
.zone-chip:hover { border-color: var(--accent-2); box-shadow: 0 4px 14px rgba(255,184,0,.18); }
.zone-chip .pin { color: var(--accent-2); }
.zone-map { border-radius: var(--radius-lg); overflow: hidden; height: 280px; border: 1px solid var(--line); }
.zone-map iframe { display: block; width: 100%; height: 100%; border: 0; }

/* Steps 5-col override */
.steps-grid-5 { grid-template-columns: repeat(5, 1fr) !important; }

/* img placeholder */
.img-ph { width: 100%; aspect-ratio: 4/5; background: #f0f0f0; border: 2px dashed #ccc; border-radius: 28px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: #aaa; font-size: 14px; text-align: center; }
.img-ph-sq { aspect-ratio: 1/1; border-radius: var(--radius-lg); }

/* Topbar nowrap fix */
.topbar .container { flex-wrap: nowrap; overflow: hidden; white-space: nowrap; }
.topbar-info { overflow: hidden; text-overflow: ellipsis; opacity: .8; }
.topbar-phones { display: flex; gap: 20px; flex-shrink: 0; }

@media (max-width: 720px) {
  .contact-grid { grid-template-columns: 1fr; }
  .frow { grid-template-columns: 1fr; }
  .form-card { padding: 22px; }
  .steps-grid-5 { grid-template-columns: 1fr 1fr !important; }
}

/* ============ Princípio: "Abrir, reparar ou substituir?" ============
   Secção deliberadamente distinta da grelha de serviços (.services-grid):
   sem caixa de ícone colorida, com uma letra grande em vez de ícone, e
   fundo neutro — para "parecer explicativa, não uma segunda grelha de
   serviços" (DESIGN_PRESERVATION_SPEC.md). */
.principle { background: linear-gradient(180deg, #fffdf5 0%, #ffffff 100%); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.principle-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.principle-card {
  background: #fff; border: 1.5px dashed var(--line); border-radius: var(--radius-lg);
  padding: 30px 26px; position: relative;
}
.principle-letter {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--dark); color: var(--accent);
  font-family: var(--display); font-weight: 800; font-size: 17px;
  margin-bottom: 16px;
}
.principle-card h3 { margin: 0 0 8px; font-size: 18px; font-weight: 800; letter-spacing: -.01em; }
.principle-card p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.6; }

/* ============ Estimativa: bloco próprio ============ */
.estimate-band { background: var(--dark); color: #fff; padding: 80px 0; }
.estimate-inner { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; max-width: 760px; margin: 0 auto; }
.estimate-icon {
  width: 68px; height: 68px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink);
  display: grid; place-items: center; flex-shrink: 0;
}
.estimate-icon svg { width: 28px; height: 28px; }
.estimate-band .eyebrow { color: #ffe89a; }
.estimate-inner h2 { font-family: var(--display); font-size: clamp(24px, 3.2vw, 34px); margin: 8px 0 12px; letter-spacing: -.02em; }
.estimate-inner p { color: #a9afbc; line-height: 1.7; margin: 0 0 20px; }

/* ============ Responsive: novas secções ============ */
@media (max-width: 1024px) {
  .principle-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .principle-grid { grid-template-columns: 1fr; }
  .estimate-inner { grid-template-columns: 1fr; text-align: center; }
  .estimate-icon { margin: 0 auto; }
}

/* ============ prefers-reduced-motion ============ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  body.js-fade-ready [data-observe] { opacity: 1; transform: none; }
}
