/* ==========================================================================
   CPM Engenharia e Qualidade — Stylesheet
   Organização:
   1. Tokens (cores, espaçamento, sombra, animação)
   2. Reset & base
   3. Layout utilitário
   4. Cabeçalho / navegação
   5. Botões & campos de formulário
   6. Seção: Hero
   7. Seção: Sobre
   8. Seção: Serviços
   9. Seção: Diferenciais
   10. Seção: Como funciona
   11. Seção: FAQ
   12. Seção: Contato
   13. Rodapé & WhatsApp flutuante
   14. Animações de entrada (scroll reveal)
   15. Responsivo
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root{
  /* cor */
  --navy: #1F3A52;
  --navy-deep: #142838;
  --ink: #1B2630;
  --green: #3F8B4C;
  --green-deep: #2E6B3B;
  --green-soft: #E7F2E9;
  --bg: #F3F5F6;
  --surface: #FFFFFF;
  --line: #E6EAEC;
  --muted: #64737A;

  /* layout */
  --max: 1140px;

  /* raio */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  /* sombra (com leve matiz de navy, não cinza puro) */
  --shadow-soft: 0 4px 18px rgba(20,40,56,0.06), 0 1px 3px rgba(20,40,56,0.05);
  --shadow-md: 0 14px 36px rgba(20,40,56,0.10);
  --shadow-hover: 0 18px 44px rgba(20,40,56,0.16);

  /* animação */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --dur-fast: 0.2s;
  --dur-med: 0.4s;
  --dur-slow: 0.7s;
}

/* ---------- 2. Reset & base ---------- */
*, *::before, *::after{ box-sizing: border-box; }

html{ scroll-behavior: smooth; }
[id]{ scroll-margin-top: 96px; }

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *{
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body{
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  animation: page-in 0.45s var(--ease) both;
}
@keyframes page-in{
  from{ opacity: 0; }
  to{ opacity: 1; }
}

h1, h2, h3{
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0;
  color: var(--navy-deep);
}

a{ color: inherit; }
img{ max-width: 100%; display: block; }

:focus-visible{
  outline: 2px solid var(--green);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- 3. Layout utilitário ---------- */
.wrap{
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.mono{
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 500;
  letter-spacing: 0.02em;
}

section{ padding: 100px 0; }
section.alt{ background: var(--surface); }

.section-head{ max-width: 62ch; margin-bottom: 52px; }
.section-head h2{ font-size: clamp(1.7rem, 2.6vw, 2.2rem); }
.section-head p{ margin-top: 14px; color: var(--muted); font-size: 1.04rem; }

/* ---------- 4. Cabeçalho / navegação ---------- */
header{
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(20, 40, 56, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 0 0 rgba(0,0,0,0);
  transition: box-shadow var(--dur-fast) var(--ease);
}
header.is-scrolled{ box-shadow: 0 8px 24px rgba(10,20,28,0.18); }

.nav{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
}

.brand{
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand img{
  height: 34px;
  width: auto;
  background: #fff;
  padding: 5px;
  border-radius: var(--radius-sm);
  transition: transform var(--dur-fast) var(--ease);
}
.brand:hover img{ transform: scale(1.05); }

.brand-text{
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  color: #fff;
  line-height: 1.15;
}
.brand-text span{
  display: block;
  font-family: 'IBM Plex Sans', sans-serif;
  font-weight: 500;
  font-size: 0.68rem;
  color: #9FB0BA;
  letter-spacing: 0.01em;
}

nav.links{
  display: flex;
  align-items: center;
  gap: 34px;
}
nav.links a:not(.btn){
  position: relative;
  text-decoration: none;
  color: #E5EAEC;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 6px 0;
}
nav.links a:not(.btn)::after{
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--dur-fast) var(--ease);
}
nav.links a:not(.btn):hover::after{
  transform: scaleX(1);
  transform-origin: left;
}
nav.links a.active{ color: #fff; font-weight: 600; }
nav.links a.active::after{ transform: scaleX(1); }

.menu-toggle{
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.menu-toggle span{
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  margin: 5px 0;
  transition: transform var(--dur-fast) var(--ease), opacity var(--dur-fast) var(--ease);
}
.menu-toggle.is-open span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.menu-toggle.is-open span:nth-child(2){ opacity: 0; }
.menu-toggle.is-open span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

/* ---------- 5. Botões & campos ---------- */
.btn{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.94rem;
  padding: 13px 24px;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
  box-shadow: 0 8px 20px rgba(63,139,76,0.28);
}
.btn:hover{
  background: var(--green-deep);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(63,139,76,0.34);
}
.btn:active{ transform: translateY(0); }

.btn.secondary{
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.5);
  box-shadow: none;
}
.btn.secondary:hover{
  background: rgba(255,255,255,0.1);
  border-color: #fff;
  box-shadow: none;
}

form{ display: flex; flex-direction: column; gap: 18px; }
.field{ display: flex; flex-direction: column; gap: 6px; }
label{ font-size: 0.88rem; font-weight: 600; color: var(--navy-deep); }

input, select, textarea{
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 0.98rem;
  padding: 13px 15px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
input:focus, select:focus, textarea:focus{
  border-color: var(--green);
  outline: none;
  box-shadow: 0 0 0 4px var(--green-soft);
}
textarea{ min-height: 130px; resize: vertical; }

/* ---------- 6. Hero ---------- */
.hero{
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(640px 420px at 85% 20%, rgba(63,139,76,0.20), transparent 65%),
    radial-gradient(520px 420px at 10% 90%, rgba(63,139,76,0.08), transparent 60%),
    linear-gradient(180deg, rgba(20,40,56,0.90), rgba(15,31,43,0.95)),
    url('assets/photos/hero-home.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero .wrap{
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
  padding-top: 110px;
  padding-bottom: 110px;
}

.hero-tag{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: #A9BAC3;
  margin-bottom: 20px;
}
.hero .placeholder{ color: #7FD494; font-style: italic; }

.hero h1{
  font-size: clamp(2.3rem, 4.4vw, 3.5rem);
  max-width: 15ch;
  color: #fff;
}
.hero p.lede{
  margin-top: 22px;
  max-width: 52ch;
  font-size: 1.1rem;
  color: #AAB9C1;
}
.hero .cta-row{
  display: flex;
  gap: 14px;
  margin-top: 36px;
  flex-wrap: wrap;
}

.hero-graphic{
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-graphic .panel{
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 30px 70px rgba(0,0,0,0.35);
  animation: float 6s ease-in-out infinite;
}
.hero-graphic img{ width: 210px; }

@keyframes float{
  0%, 100%{ transform: translateY(0); }
  50%{ transform: translateY(-12px); }
}

.hero-content{ animation: rise 0.8s var(--ease) both; }
@keyframes rise{
  from{ opacity: 0; transform: translateY(16px); }
  to{ opacity: 1; transform: translateY(0); }
}

/* ---------- 6b. Banner de página interna (foto) ---------- */
.page-hero{
  position: relative;
  background-color: var(--navy-deep);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 96px 0 64px;
  color: #fff;
}
.page-hero h1{ color: #fff; font-size: clamp(2rem, 3.6vw, 2.7rem); max-width: 22ch; }
.page-hero p{ margin-top: 14px; color: #AAB9C1; font-size: 1.05rem; max-width: 60ch; }

.page-hero.sobre{
  background-image: linear-gradient(180deg, rgba(20,40,56,0.86), rgba(15,31,43,0.93)), url('assets/photos/hero-sobre.jpg');
}
.page-hero.servicos{
  background-image: linear-gradient(180deg, rgba(20,40,56,0.86), rgba(15,31,43,0.93)), url('assets/photos/hero-servicos.jpg');
}
.page-hero.contato{
  background-image: linear-gradient(180deg, rgba(20,40,56,0.86), rgba(15,31,43,0.93)), url('assets/photos/hero-contato.jpg');
}

/* ---------- 6c. Home: destaques e CTA final ---------- */
.teaser-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 22px;
}
.card-link{
  display: inline-block;
  margin-top: 16px;
  color: var(--green-deep);
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  border-bottom: 1.5px solid transparent;
  transition: border-color var(--dur-fast) var(--ease);
}
.card-link:hover{ border-color: var(--green-deep); }

.cta-band{
  background: var(--navy-deep);
  color: #fff;
  padding: 72px 0;
  text-align: center;
}
.cta-band h2{ color: #fff; font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.cta-band p{ margin-top: 12px; color: #AAB9C1; font-size: 1.05rem; }
.cta-band .cta-row{
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 28px;
  flex-wrap: wrap;
}

/* ---------- 7. Sobre ---------- */
.sobre-grid{
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: start;
}
.sobre-grid p{ max-width: 68ch; font-size: 1.06rem; }

.pull{
  border-left: 3px solid var(--green);
  padding-left: 24px;
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: 1.7rem;
  line-height: 1.3;
  color: var(--navy-deep);
  position: sticky;
  top: 110px;
}

/* ---------- 8. Serviços ---------- */
.service-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 22px;
}

.service-card{
  position: relative;
  background: var(--surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border-left: 4px solid var(--green);
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.service-card:hover{
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.service-card-hit{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  z-index: 2;
}

.service-card-photo{
  height: 168px;
  background-color: var(--bg);
  background-size: cover;
  background-position: center;
}

.service-card-body{ padding: 26px 26px 28px; position: relative; }

.card-hint{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--green-deep);
}
.card-hint svg{ width: 14px; height: 14px; transition: transform var(--dur-fast) var(--ease); }
.service-card:hover .card-hint svg{ transform: translateX(3px); }

.service-card .code{
  display: inline-block;
  font-size: 0.78rem;
  color: var(--green-deep);
  background: var(--green-soft);
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  margin-bottom: 16px;
}
.service-card h3{ font-size: 1.12rem; margin-bottom: 10px; }
.service-card p{ margin: 0; color: var(--muted); font-size: 0.98rem; }

/* ---------- 8b. Modal de detalhes do serviço ---------- */
dialog.service-modal{
  border: none;
  border-radius: var(--radius-lg);
  padding: 0;
  width: min(92vw, 620px);
  max-height: 85vh;
  overflow: hidden;
  box-shadow: var(--shadow-hover);
  animation: modal-in 0.3s var(--ease);
}
dialog.service-modal::backdrop{
  background: rgba(15,31,43,0.55);
  backdrop-filter: blur(2px);
  animation: backdrop-in 0.3s var(--ease);
}
@keyframes modal-in{
  from{ opacity: 0; transform: translateY(14px) scale(0.98); }
  to{ opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes backdrop-in{
  from{ opacity: 0; }
  to{ opacity: 1; }
}

.modal-photo{
  height: 190px;
  background-color: var(--bg);
  background-size: cover;
  background-position: center;
}

.modal-close{
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: rgba(20,40,56,0.55);
  color: #fff;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--dur-fast) var(--ease);
}
.modal-close:hover{ background: rgba(20,40,56,0.8); }

.modal-body{
  padding: 30px 32px 34px;
  max-height: calc(85vh - 190px);
  overflow-y: auto;
}
.modal-body .code{
  display: inline-block;
  font-size: 0.78rem;
  color: var(--green-deep);
  background: var(--green-soft);
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  margin-bottom: 14px;
}
.modal-body h3{ font-size: 1.35rem; margin-bottom: 4px; }
.modal-section{ margin-top: 22px; }
.modal-section h4{
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--navy-deep);
  margin-bottom: 6px;
}
.modal-section p{ margin: 0; color: var(--muted); font-size: 0.98rem; }

/* ---------- 9. Diferenciais ---------- */
.dif-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 22px;
}

.dif-card{
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 26px;
  box-shadow: var(--shadow-soft);
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.dif-card:hover{
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.dif-icon{
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--green-soft);
  color: var(--green-deep);
  display: flex;
  align-items: center;
  justify-content: center;
}
.dif-icon svg{ width: 22px; height: 22px; }

.dif-card p{ margin: 0; color: var(--ink); font-size: 0.98rem; padding-top: 4px; }

/* ---------- 10. Como funciona ---------- */
.process-rail{
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.process-rail::before{
  content: '';
  position: absolute;
  top: 21px;
  left: 5%;
  width: 90%;
  height: 2px;
  background: var(--line);
}
.process-rail::after{
  content: '';
  position: absolute;
  top: 21px;
  left: 5%;
  width: 0%;
  height: 2px;
  background: var(--green);
  transition: width 1.1s var(--ease);
}
.process-rail.in-view::after{ width: 90%; }

.process-step{ position: relative; }
.process-step .node{
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--green);
  color: var(--green-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 500;
  font-size: 0.85rem;
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
}
.process-step h3{ font-size: 1.05rem; margin-bottom: 8px; }
.process-step p{ margin: 0; color: var(--muted); font-size: 0.96rem; }

/* ---------- 11. FAQ ---------- */
.faq-list{ display: flex; flex-direction: column; gap: 14px; }

.faq-layout{
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 56px;
  align-items: start;
}
.faq-intro{ margin-bottom: 0; position: sticky; top: 110px; }

.faq-item{
  background: var(--surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.faq-question{
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 22px 26px;
  text-align: left;
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--navy-deep);
}

.faq-icon{
  flex: none;
  width: 22px; height: 22px;
  position: relative;
}
.faq-icon::before, .faq-icon::after{
  content: '';
  position: absolute;
  background: var(--green);
  border-radius: 2px;
  transition: transform var(--dur-fast) var(--ease);
}
.faq-icon::before{ top: 50%; left: 0; width: 100%; height: 2px; margin-top: -1px; }
.faq-icon::after{ left: 50%; top: 0; width: 2px; height: 100%; margin-left: -1px; }
.faq-item.is-open .faq-icon::after{ transform: rotate(90deg); }

.faq-panel{
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--dur-med) var(--ease);
}
.faq-item.is-open .faq-panel{ grid-template-rows: 1fr; }
.faq-panel-inner{ overflow: hidden; }
.faq-panel p{
  margin: 0;
  padding: 0 26px 24px;
  color: var(--muted);
  max-width: 68ch;
}

/* ---------- 12. Contato ---------- */
.contact-grid{
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
  align-items: start;
}

.contact-form-card, .contact-info{
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 36px;
}

.contact-info h3{ font-size: 1.05rem; margin-bottom: 18px; }
.contact-info .row{
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.contact-info .row:first-of-type{ border-top: none; padding-top: 0; }
.contact-info .row .label{ font-size: 0.82rem; color: var(--muted); }
.contact-info .row .value{ font-weight: 600; }
.placeholder{ color: var(--green-deep); font-style: italic; font-weight: 500 !important; }

/* ---------- 13. Rodapé & WhatsApp flutuante ---------- */
footer{
  background: var(--navy-deep);
  color: #C9D2D8;
  padding: 48px 0 30px;
}
footer .wrap{
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
footer .brand-text{ color: #fff; }
footer .brand-text span{ color: #9FB0BA; }
footer nav{ display: flex; flex-wrap: wrap; gap: 18px 26px; }
footer nav a{
  text-decoration: none;
  color: #C9D2D8;
  font-size: 0.9rem;
  transition: color var(--dur-fast) var(--ease);
}
footer nav a:hover{ color: #fff; }

.foot-bottom{
  max-width: var(--max);
  margin: 30px auto 0;
  padding: 22px 24px 0;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 0.82rem;
  color: #8FA1AC;
}

.wa-float{
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 58px;
  height: 58px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 28px rgba(0,0,0,0.28);
  z-index: 50;
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.wa-float:hover{
  transform: scale(1.08);
  box-shadow: 0 16px 34px rgba(0,0,0,0.32);
}
.wa-float svg{ width: 28px; height: 28px; }

/* ---------- 14. Animações de entrada (scroll reveal) ---------- */
[data-reveal]{
  opacity: 0;
  transform: translateY(14px) scale(0.99);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}
[data-reveal].in-view{
  opacity: 1;
  transform: translateY(0) scale(1);
}
/* leve escalonamento em grupos de cartões */
[data-reveal-group] > *{ transition-delay: calc(var(--i, 0) * 60ms); }

/* ---------- 15. Responsivo ---------- */
@media (max-width: 860px){
  nav.links{
    position: absolute;
    top: 100%; left: 0; right: 0;
    max-height: calc(100dvh - 68px);
    overflow-y: auto;
    visibility: hidden;
    pointer-events: none;
    background: var(--navy-deep);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    flex-direction: column;
    align-items: flex-start;
    padding: 22px 24px 28px;
    gap: 20px;
    transform: translateY(-140%);
    opacity: 0;
    transition: transform var(--dur-med) var(--ease), opacity var(--dur-med) var(--ease);
  }
  nav.links.is-open{ transform: translateY(0); opacity: 1; visibility: visible; pointer-events: auto; }
  .menu-toggle{ display: block; }

  .hero .wrap{ grid-template-columns: 1fr; padding-top: 64px; padding-bottom: 64px; }
  .hero-graphic{ display: none; }

  .contact-grid{ grid-template-columns: 1fr; }
  .process-rail{ grid-template-columns: 1fr; gap: 30px; }
  .process-rail::before, .process-rail::after{ display: none; }

  .page-hero{ padding: 56px 0 44px; }

  .sobre-grid{ grid-template-columns: 1fr; gap: 24px; }
  .pull{ position: static; font-size: 1.4rem; }

  .faq-layout{ grid-template-columns: 1fr; gap: 24px; }
  .faq-intro{ position: static; }

  section{ padding: 70px 0; }
}

/* ---------- 16. Landing page: hierarchy and compact supporting sections ---------- */
.hero{ padding: 0; }
.hero h1{ max-width: 20ch; }
.hero-tag{ flex-wrap: wrap; }
.priority-grid{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
.priority-grid .service-card-photo{ height: 210px; }
.service-card{ display: flex; flex-direction: column; }
.service-card-body{ flex: 1; display: flex; flex-direction: column; align-items: flex-start; }
.service-card .card-hint{ margin-top: auto; padding-top: 18px; }
.service-card-hit:focus-visible{ outline: 3px solid var(--green-deep); outline-offset: -4px; border-radius: var(--radius-md); }
.section-cta{ margin-top: 36px; }
.complementary-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
.complementary-grid .service-card{ display: grid; grid-template-columns: 130px minmax(0, 1fr); border-left-width: 2px; box-shadow: var(--shadow-soft); }
.complementary-grid .service-card-photo{ height: 100%; min-height: 180px; }
.complementary-grid .service-card-body{ padding: 24px; }
.process-block{ margin-top: 64px; padding-top: 48px; border-top: 1px solid var(--line); }
.process-block > .wrap, .faq-block > .wrap{ padding: 0; }
.about-layout{ display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 48px; align-items: center; }
.about-photo{ margin: 0; }
.about-photo img{ width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: var(--radius-lg); }
.about-copy .pull{ position: static; font-size: 1.6rem; }
.about-copy p{ max-width: 65ch; }
.subsection-title{ margin: 56px 0 28px; font-size: 1.35rem; }
.faq-block{ margin-top: 64px; padding-top: 48px; border-top: 1px solid var(--line); }
.contact-form-card, .contact-info, .contact-grid > *, .field{ min-width: 0; }
input, select, textarea{ width: 100%; min-width: 0; }
.form-note{ color: var(--muted); font-size: .9rem; margin: 14px 0 24px; }
.contact-info .btn{ margin-bottom: 24px; }
.contact-info a.value, .footer-contact a{ overflow-wrap: anywhere; }
.modal-cta{ margin-top: 28px; }
footer .footer-contact{ margin-top: 26px; font-size: .9rem; justify-content: flex-start; gap: 12px 28px; }
@media (max-width: 1000px){
  .complementary-grid .service-card{ grid-template-columns: 1fr; }
  .complementary-grid .service-card-photo{ height: 140px; min-height: 0; }
}
@media (max-width: 860px){
  .priority-grid{ grid-template-columns: 1fr; }
  .priority-grid .service-card{ display: grid; grid-template-columns: minmax(160px, .7fr) 1fr; }
  .priority-grid .service-card-photo{ height: 100%; min-height: 220px; }
  .about-layout{ grid-template-columns: 1fr; gap: 24px; }
  .about-photo img{ aspect-ratio: 16/9; }
}
@media (max-width: 560px){
  .priority-grid .service-card, .complementary-grid{ display: grid; grid-template-columns: 1fr; }
  .priority-grid .service-card-photo{ height: 190px; min-height: 0; }
  .contact-form-card, .contact-info{ padding: 24px 20px; }
  .hero .cta-row .btn{ width: 100%; justify-content: center; }
  .modal-photo{ height: 140px; }
  .modal-body{ padding: 24px 20px; max-height: calc(85vh - 140px); }
  .wa-float{ width: 50px; height: 50px; right: 14px; bottom: 14px; }
  .foot-bottom{ padding-bottom: 54px; }
}

body.modal-open{ overflow: hidden; }

@media (max-width: 860px) {
  body {
    animation: none;
  }

  .hero-content {
    animation: none;
    opacity: 1;
    transform: none;
  }
}
