/*
Theme Name: Blue Brasil Engenharia 2.0
Theme URI: https://www.instagram.com/engenhariablue/
Author: Blue Brasil Engenharia
Description: Tema institucional one-page para a Blue Brasil Engenharia — obras e reformas. Conteúdo editável em Aparência › Personalizar › Blue Brasil, cadastro de Serviços e Projetos no painel e caixa de Orçamentos recebidos pelo formulário.
Version: 2.0.1
Requires at least: 6.3
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: blue-brasil
Tags: one-column, custom-menu, featured-images, translation-ready, business
*/

/* =====================================================================
   BLUE BRASIL ENGENHARIA — ESTILOS
   Estrutura: 1. Fontes  2. Tokens  3. Base  4. Utilitários
              5. Componentes  6. Seções  7. Modo revisão  8. Movimento
   ===================================================================== */

/* 1. FONTES (hospedadas localmente — sem dependência externa) -------- */
@font-face {
  font-family: "Archivo";
  src: url("assets/fonts/archivo-variable-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("assets/fonts/manrope-variable-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

/* 2. TOKENS --------------------------------------------------------- */
:root {
  /* Azuis — derivados do azul da marca (#014D90) */
  --navy-950: #04142A;
  --navy-900: #061B36;
  --navy-800: #0A2A52;
  --navy-700: #0E3A6E;
  --brand: #014D90;          /* azul do logotipo */
  --blue-600: #1863C2;       /* interativo (contraste 5,6:1 com branco) */
  --blue-700: #0F4FA3;       /* hover */
  --blue-300: #8DB7EA;
  --blue-100: #DCE9F8;
  --blue-50:  #EFF5FC;

  /* Neutros */
  --white: #FFFFFF;
  --gray-25:  #F8FAFC;
  --gray-50:  #F2F5F9;
  --gray-100: #E5EAF1;
  --gray-200: #D3DBE6;
  --gray-400: #8A97A8;
  --gray-600: #4F5D70;       /* texto secundário (7,0:1 com branco) */
  --ink: #0D1B2E;            /* texto principal */

  /* Estados */
  --error: #B42318;
  --error-bg: #FEF3F2;
  --success: #0E7A43;
  --success-bg: #ECFDF3;

  /* Tipografia */
  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* Espaçamento e forma */
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --section-y: clamp(72px, 9vw, 128px);
  --radius-sm: 4px;
  --radius: 6px;
  --radius-lg: 10px;
  --header-h: 72px;

  --shadow-sm: 0 1px 2px rgba(6, 27, 54, .06), 0 1px 3px rgba(6, 27, 54, .08);
  --shadow: 0 10px 30px -12px rgba(6, 27, 54, .22);
  --shadow-lg: 0 30px 60px -24px rgba(4, 20, 42, .45);

  --ease: cubic-bezier(.2, .7, .2, 1);
}
@media (min-width: 960px) {
  :root { --header-h: 84px; }
}

/* 3. BASE ----------------------------------------------------------- */
*, *::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(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--blue-600); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--blue-700); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible {
  outline: 3px solid var(--blue-600);
  outline-offset: 3px;
  border-radius: 2px;
}
::selection { background: var(--blue-100); color: var(--navy-900); }

/* 4. UTILITÁRIOS ---------------------------------------------------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 200;
  padding: 10px 16px; background: var(--white); color: var(--navy-900);
  font-weight: 700; border-radius: var(--radius); box-shadow: var(--shadow);
  transform: translateY(-160%); transition: transform .2s var(--ease);
}
.skip-link:focus { transform: none; }
.noscript { padding: 16px; background: var(--gray-50); border-radius: var(--radius); }

/* 5. COMPONENTES ---------------------------------------------------- */

/* Botões */
.btn {
  --btn-bg: transparent; --btn-fg: var(--navy-900); --btn-bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 46px; padding: .7em 1.35em;
  background: var(--btn-bg); color: var(--btn-fg);
  border: 1.5px solid var(--btn-bd); border-radius: var(--radius-sm);
  font-family: var(--font-body); font-weight: 700; font-size: .95rem; line-height: 1.2;
  letter-spacing: .01em; text-decoration: none; white-space: nowrap;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.btn:hover { color: var(--btn-fg); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn--primary { --btn-bg: var(--blue-600); --btn-fg: var(--white); --btn-bd: var(--blue-600); }
.btn--primary:hover { --btn-bg: var(--blue-700); --btn-bd: var(--blue-700); box-shadow: 0 8px 20px -10px rgba(24, 99, 194, .8); }
.btn--outline { --btn-fg: var(--navy-900); --btn-bd: var(--navy-900); }
.btn--outline:hover { --btn-bg: var(--navy-900); --btn-fg: var(--white); }
.btn--ghost-light { --btn-fg: var(--white); --btn-bd: rgba(255, 255, 255, .55); }
.btn--ghost-light:hover { --btn-bg: var(--white); --btn-fg: var(--navy-900); --btn-bd: var(--white); }
.btn--lg { min-height: 54px; padding: .85em 1.6em; font-size: 1rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .65; cursor: progress; }

/* Link-botão textual */
.link-arrow {
  display: inline-flex; align-items: center; gap: .45em;
  padding: 6px 0; background: none; border: 0;
  color: var(--blue-600); font-weight: 700; font-size: .95rem; text-decoration: none;
}
.link-arrow svg { width: 1.1em; height: 1.1em; transition: transform .2s var(--ease); }
.link-arrow:hover { color: var(--blue-700); }
.link-arrow:hover svg { transform: translateX(4px); }

/* Eyebrow com "cota" técnica |—| */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  margin-bottom: 18px;
  font-family: var(--font-display); font-weight: 650; font-stretch: 112%;
  font-size: .78rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--brand);
}
.eyebrow::before {
  content: ""; width: 34px; height: 10px; flex: none;
  border-inline: 1.5px solid currentColor;
  background: linear-gradient(currentColor, currentColor) center / 100% 1.5px no-repeat;
}
.eyebrow__num { color: var(--gray-400); font-weight: 600; letter-spacing: .08em; }
.eyebrow--light { color: var(--blue-300); }
.eyebrow--light .eyebrow__num { color: rgba(255, 255, 255, .5); }
.eyebrow--center { justify-content: center; }

/* Títulos de seção */
.section-title {
  font-family: var(--font-display);
  font-weight: 760; font-stretch: 106%;
  font-size: clamp(1.85rem, 1.15rem + 2.6vw, 3rem);
  line-height: 1.08; letter-spacing: -.022em;
  color: var(--navy-900);
  text-wrap: balance; overflow-wrap: break-word; hyphens: manual;
}
@media (max-width: 359px) { .section-title { font-size: 1.6rem; } .hero__title { font-size: 2.15rem; } }
.section-title--light { color: var(--white); }
.section-lead { margin-top: 18px; max-width: 58ch; color: var(--gray-600); font-size: 1.06rem; }

.section { padding-block: var(--section-y); position: relative; }
.section--muted { background: var(--gray-50); }
.section--navy { background: var(--navy-900); color: rgba(255, 255, 255, .82); }
.section-head { margin-bottom: clamp(40px, 5vw, 64px); max-width: 760px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .section-lead { margin-inline: auto; }
.section-head--split { max-width: none; display: grid; gap: 8px 48px; align-items: end; }
.section-head--split .section-lead { margin-top: 0; }
@media (min-width: 900px) {
  .section-head--split { grid-template-columns: 1.3fr 1fr; }
}

/* Grade "planta baixa" sutil para seções escuras */
.blueprint { isolation: isolate; }
.blueprint::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(141, 183, 234, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(141, 183, 234, .07) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 30%, #000 30%, transparent 85%);
          mask-image: radial-gradient(ellipse 80% 70% at 70% 30%, #000 30%, transparent 85%);
}

/* 6. SEÇÕES --------------------------------------------------------- */

/* ---- Cabeçalho ---- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100;
  height: var(--header-h);
  color: var(--white);
  transition: background-color .3s var(--ease), box-shadow .3s var(--ease), color .3s var(--ease);
}
.site-header::after { /* leve proteção de leitura sobre a foto */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(rgba(4, 20, 42, .55), transparent);
  transition: opacity .3s var(--ease);
}
.site-header.is-solid {
  background: rgba(255, 255, 255, .97);
  color: var(--navy-900);
  box-shadow: 0 1px 0 var(--gray-100), 0 8px 24px -18px rgba(6, 27, 54, .5);
}
@supports (backdrop-filter: blur(8px)) {
  .site-header.is-solid { background: rgba(255, 255, 255, .9); backdrop-filter: saturate(1.4) blur(12px); }
}
.site-header.is-solid::after { opacity: 0; }
.header-inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: block; position: relative; flex: none; width: 124px; aspect-ratio: 1601 / 622; }
.brand-logo { position: absolute; inset: 0; width: 100%; height: 100%; transition: opacity .3s var(--ease); }
.brand-logo--dark { opacity: 0; }
.site-header.is-solid .brand-logo--dark { opacity: 1; }
.site-header.is-solid .brand-logo--light { opacity: 0; }
@media (min-width: 960px) { .brand { width: 148px; } }

.nav { display: none; margin-left: auto; }
.nav-list { display: flex; gap: 4px; }
.nav-link {
  position: relative; display: block; padding: 10px 14px;
  color: inherit; font-weight: 600; font-size: .95rem; text-decoration: none;
  opacity: .88; transition: opacity .2s;
}
.nav-link::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform .25s var(--ease);
}
.nav-link:hover, .nav-link.is-active { opacity: 1; color: inherit; }
.nav-link:hover::after, .nav-link.is-active::after { transform: scaleX(1); }
.site-header.is-solid .nav-link.is-active { color: var(--blue-600); }
.header-cta { display: none; }

.menu-toggle {
  margin-left: auto; width: 46px; height: 46px; display: grid; place-items: center;
  background: transparent; border: 1.5px solid currentColor; border-radius: var(--radius-sm);
  color: inherit; opacity: .9;
}
.menu-icon { display: grid; gap: 5px; width: 20px; }
.menu-icon span { height: 2px; background: currentColor; border-radius: 1px; }

@media (min-width: 960px) {
  .nav { display: block; }
  .header-cta { display: inline-flex; min-height: 44px; }
  .menu-toggle { display: none; }
}

/* ---- Menu mobile ---- */
.mobile-menu { position: fixed; inset: 0; z-index: 150; }
.mobile-menu__backdrop {
  position: absolute; inset: 0; background: rgba(4, 20, 42, .55);
  opacity: 0; transition: opacity .3s var(--ease);
}
.mobile-menu__panel {
  position: absolute; inset: 0 0 0 auto; width: min(88vw, 380px);
  display: flex; flex-direction: column; gap: 28px;
  padding: calc(var(--header-h) + 8px) 28px 32px;
  background: var(--white); overflow-y: auto;
  transform: translateX(100%); transition: transform .35s var(--ease);
}
.mobile-menu.is-open .mobile-menu__backdrop { opacity: 1; }
.mobile-menu.is-open .mobile-menu__panel { transform: none; }
.mobile-nav li + li { border-top: 1px solid var(--gray-100); }
.mobile-nav a {
  display: flex; justify-content: space-between; align-items: center; padding: 16px 0;
  color: var(--navy-900); font-family: var(--font-display); font-weight: 700; font-stretch: 106%;
  font-size: 1.35rem; text-decoration: none;
}
.mobile-nav a::after { content: "→"; color: var(--blue-600); font-family: var(--font-body); font-size: 1rem; }
.mobile-menu__contact { display: grid; gap: 10px; font-size: .95rem; }
.mobile-menu__contact a { display: inline-flex; gap: 10px; align-items: center; color: var(--navy-800); text-decoration: none; font-weight: 600; }
.mobile-menu__contact svg { width: 20px; height: 20px; color: var(--blue-600); }
/* Quando o menu está aberto, o cabeçalho fica sobre o painel */
body.menu-open .site-header { z-index: 160; background: transparent; box-shadow: none; color: var(--navy-900); }
body.menu-open .site-header::after { opacity: 0; }
body.menu-open .brand-logo--dark { opacity: 1; }
body.menu-open .brand-logo--light { opacity: 0; }
body.menu-open .menu-icon span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.menu-open .menu-icon span:nth-child(2) { opacity: 0; }
body.menu-open .menu-icon span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.menu-icon span { transition: transform .3s var(--ease), opacity .2s; }

/* ---- Hero ---- */
.hero {
  position: relative; isolation: isolate;
  min-height: clamp(640px, 100svh, 940px);
  display: flex; flex-direction: column; justify-content: flex-end;
  color: var(--white); background: var(--navy-900);
}
.hero__media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.hero__overlay {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(4, 20, 42, .92) 0%, rgba(4, 20, 42, .78) 38%, rgba(4, 20, 42, .25) 75%, rgba(4, 20, 42, .1) 100%),
    linear-gradient(0deg, rgba(4, 20, 42, .85) 0%, rgba(4, 20, 42, 0) 40%);
}
@media (max-width: 759px) {
  .hero__overlay { background: linear-gradient(0deg, rgba(4, 20, 42, .95) 15%, rgba(4, 20, 42, .7) 55%, rgba(4, 20, 42, .45) 100%); }
}
.hero__content { padding-top: calc(var(--header-h) + 48px); padding-bottom: clamp(48px, 7vw, 88px); }
.hero__title {
  max-width: 15ch;
  font-family: var(--font-display); font-weight: 800; font-stretch: 108%;
  font-size: clamp(2.5rem, 1.25rem + 5vw, 5rem);
  line-height: 1.02; letter-spacing: -.03em;
  text-wrap: balance;
}
.hero__subtitle {
  margin-top: 22px; max-width: 46ch;
  font-size: clamp(1.05rem, .98rem + .35vw, 1.25rem); line-height: 1.6;
  color: rgba(255, 255, 255, .86);
}
.hero__actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 479px) { .hero__actions .btn { width: 100%; } }

.hero__rail { border-top: 1px solid rgba(255, 255, 255, .16); background: rgba(4, 20, 42, .35); }
@supports (backdrop-filter: blur(6px)) { .hero__rail { backdrop-filter: blur(6px); } }
.hero__pillars {
  display: grid; grid-template-columns: repeat(var(--cols, 3), 1fr);
  font-family: var(--font-display); font-weight: 600; font-stretch: 112%;
  font-size: clamp(.68rem, .6rem + .35vw, .82rem); letter-spacing: .16em; text-transform: uppercase;
  color: rgba(255, 255, 255, .8);
}
.hero__pillars li { position: relative; padding: 20px 0 20px 18px; }
.hero__pillars li + li { border-left: 1px solid rgba(255, 255, 255, .16); }
.hero__pillars li::before {
  content: ""; position: absolute; left: 0; top: 50%; width: 6px; height: 6px; margin-top: -3px;
  background: var(--blue-300); transform: rotate(45deg);
}
.hero__pillars li + li::before { left: 18px; }
.hero__pillars li + li { padding-left: 36px; }
@media (max-width: 599px) {
  .hero__pillars { grid-template-columns: 1fr; }
  .hero__pillars li { padding: 12px 0 12px 18px; }
  .hero__pillars li + li { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .1); padding-left: 18px; }
  .hero__pillars li + li::before { left: 0; }
  .hero__rail { display: none; }
}

/* ---- Serviços ---- */
.services-grid { display: grid; gap: 20px; }
@media (min-width: 640px) { .services-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; } }
@media (min-width: 1024px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }
.service-card {
  position: relative; display: flex; flex-direction: column; height: 100%;
  background: var(--white); border: 1px solid var(--gray-100); border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
.service-card:hover { box-shadow: var(--shadow); border-color: var(--gray-200); transform: translateY(-3px); }
.service-card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--gray-50); }
.service-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.service-card:hover .service-card__media img { transform: scale(1.045); }
.service-card__tag {
  position: absolute; left: 14px; top: 14px;
  padding: 5px 10px; background: var(--navy-900); color: var(--white);
  font-family: var(--font-display); font-weight: 650; font-stretch: 110%;
  font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; border-radius: 2px;
}
.service-card__body { display: flex; flex-direction: column; gap: 10px; flex: 1; padding: 24px 24px 20px; }
.service-card__index { font-family: var(--font-display); font-size: .78rem; font-weight: 600; letter-spacing: .14em; color: var(--gray-400); }
.service-card__title {
  font-family: var(--font-display); font-weight: 720; font-stretch: 104%;
  font-size: 1.32rem; line-height: 1.2; letter-spacing: -.01em; color: var(--navy-900);
}
.service-card__text { color: var(--gray-600); font-size: .97rem; }
.service-card__action { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--gray-100); }

/* ---- Sobre ---- */
.about { display: grid; gap: clamp(40px, 6vw, 88px); align-items: center; }
@media (min-width: 960px) { .about { grid-template-columns: 5fr 6fr; } }
.about__media { position: relative; margin-right: 16px; }
.about__media > img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius);
}
@media (max-width: 959px) { .about__media > img { aspect-ratio: 4 / 3; } }
.about__media::before { /* moldura deslocada, como linha de projeto */
  content: ""; position: absolute; inset: 20px -16px -16px 20px; z-index: -1;
  border: 1.5px solid var(--blue-300); border-radius: var(--radius);
}
.about__media { isolation: isolate; }
.about__badge {
  position: absolute; left: -1px; bottom: 28px;
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px 14px 16px; background: var(--white);
  border-radius: 0 var(--radius) var(--radius) 0; box-shadow: var(--shadow);
  font-family: var(--font-display); font-weight: 700; font-stretch: 110%;
  font-size: .78rem; line-height: 1.15; letter-spacing: .1em; text-transform: uppercase; color: var(--navy-900);
}
.about__badge img { width: 28px; height: auto; }
.about__text { margin-top: 22px; font-size: 1.08rem; color: var(--gray-600); max-width: 60ch; }
.about__extra { display: grid; gap: 12px; margin-top: 18px; }
.about__extra p { color: var(--gray-600); max-width: 60ch; }
.checklist { display: grid; gap: 14px; margin: 30px 0 36px; }
.checklist li { display: grid; grid-template-columns: 28px 1fr; gap: 14px; align-items: start; color: var(--ink); font-weight: 600; }
.checklist .check {
  width: 28px; height: 28px; display: grid; place-items: center;
  background: var(--white); box-shadow: inset 0 0 0 1px var(--blue-100); color: var(--blue-600); border-radius: var(--radius-sm);
}
.checklist .check svg { width: 16px; height: 16px; }

/* ---- Galeria ---- */
.gallery { display: grid; gap: 16px; }
@media (min-width: 640px) { .gallery { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
@media (min-width: 1024px) { .gallery { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.gallery__item {
  position: relative; display: block; width: 100%; padding: 0; border: 0; text-align: left;
  aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); background: var(--gray-100);
  color: var(--white);
}
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.gallery__item:hover img, .gallery__item:focus-visible img { transform: scale(1.05); }
.gallery__item::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(4, 20, 42, .82) 0%, rgba(4, 20, 42, .1) 55%, transparent 100%);
}
.gallery__caption {
  position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; padding: 20px 22px;
  display: grid; gap: 2px;
}
.gallery__cat { font-family: var(--font-display); font-size: .68rem; font-weight: 650; font-stretch: 110%; letter-spacing: .16em; text-transform: uppercase; color: var(--blue-300); }
.gallery__title { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; line-height: 1.25; }
.gallery__zoom {
  position: absolute; z-index: 1; right: 16px; bottom: 18px; width: 38px; height: 38px;
  display: grid; place-items: center; border: 1.5px solid rgba(255, 255, 255, .6); border-radius: 50%;
  opacity: 0; transform: scale(.85); transition: opacity .3s, transform .3s var(--ease);
}
.gallery__zoom svg { width: 18px; height: 18px; }
.gallery__item:hover .gallery__zoom, .gallery__item:focus-visible .gallery__zoom { opacity: 1; transform: none; }
.gallery__flag {
  position: absolute; z-index: 1; left: 14px; top: 14px;
  padding: 4px 9px; background: rgba(255, 255, 255, .92); color: var(--navy-900);
  font-size: .7rem; font-weight: 700; letter-spacing: .04em; border-radius: 2px;
}
.gallery__note { margin-top: 24px; font-size: .9rem; color: var(--gray-600); }

/* ---- Diferenciais ---- */
.features { display: grid; gap: 0; border-top: 1px solid rgba(255, 255, 255, .12); }
@media (min-width: 640px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .features { grid-template-columns: repeat(4, 1fr); } }
.feature { position: relative; padding: 32px 28px 36px 0; border-bottom: 1px solid rgba(255, 255, 255, .12); }
@media (min-width: 640px) {
  .feature { padding: 36px 32px 40px; }
  .feature:nth-child(odd) { padding-left: 0; }
  .feature:nth-child(even) { border-left: 1px solid rgba(255, 255, 255, .12); }
}
@media (min-width: 1100px) {
  .feature { border-bottom: 0; padding: 40px 28px 8px; }
  .feature:nth-child(odd) { padding-left: 28px; }
  .feature:first-child { padding-left: 0; }
  .feature + .feature { border-left: 1px solid rgba(255, 255, 255, .12); }
}
.feature__icon {
  width: 52px; height: 52px; display: grid; place-items: center; margin-bottom: 24px;
  border: 1.5px solid rgba(141, 183, 234, .45); border-radius: var(--radius-sm); color: var(--blue-300);
}
.feature__icon svg { width: 24px; height: 24px; }
.feature__title { font-family: var(--font-display); font-weight: 700; font-stretch: 104%; font-size: 1.2rem; line-height: 1.25; color: var(--white); margin-bottom: 10px; }
.feature__text { font-size: .97rem; color: rgba(255, 255, 255, .72); }

/* ---- Processo ---- */
.steps { display: grid; gap: 16px; counter-reset: step; }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
@media (min-width: 1024px) { .steps { grid-template-columns: repeat(4, 1fr); gap: 0; } }
.step {
  position: relative; padding: 28px 24px 30px;
  background: var(--white); border: 1px solid var(--gray-100); border-radius: var(--radius);
}
.step__num {
  display: block; margin-bottom: 26px;
  font-family: var(--font-display); font-weight: 800; font-stretch: 112%;
  font-size: 2.6rem; line-height: 1; letter-spacing: -.02em;
  color: transparent; -webkit-text-stroke: 1.5px var(--brand);
}
.step__title { font-family: var(--font-display); font-weight: 700; font-stretch: 104%; font-size: 1.15rem; color: var(--navy-900); margin-bottom: 8px; }
.step__text { color: var(--gray-600); font-size: .96rem; }
@media (max-width: 639px) {
  .step { display: grid; grid-template-columns: 64px 1fr; column-gap: 8px; padding: 22px 20px; }
  .step__num { grid-row: span 2; margin: 0; font-size: 2.1rem; }
}
@media (min-width: 1024px) {
  .step { border: 0; border-radius: 0; padding: 0 28px 0 0; background: none; }
  /* linha de cota entre as etapas */
  .step::before {
    content: ""; position: absolute; left: 92px; right: 24px; top: 20px; height: 11px;
    border-right: 1.5px solid var(--gray-200);
    background: linear-gradient(var(--gray-200), var(--gray-200)) center / 100% 1.5px no-repeat;
  }
  .step:last-child::before { display: none; }
}

/* ---- Orçamento ---- */
.quote { background: var(--navy-900); color: rgba(255, 255, 255, .82); overflow: hidden; }
.quote__grid { display: grid; gap: 48px; align-items: start; }
.quote__grid > *, .about > *, .footer-grid > * { min-width: 0; }
@media (min-width: 1000px) { .quote__grid { grid-template-columns: 5fr 6fr; gap: 72px; } }
.quote__lead { margin-top: 20px; max-width: 46ch; font-size: 1.08rem; color: rgba(255, 255, 255, .76); }
.quote__channels { display: grid; gap: 12px; margin-top: 36px; max-width: 420px; }
.channel {
  display: flex; align-items: center; gap: 16px; padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--radius);
  color: var(--white); text-decoration: none;
  transition: background-color .2s, border-color .2s;
}
.channel:hover { color: var(--white); background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .3); }
.channel__icon { width: 42px; height: 42px; flex: none; display: grid; place-items: center; background: var(--blue-600); border-radius: var(--radius-sm); }
.channel__icon svg { width: 20px; height: 20px; }
.channel__label { display: block; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .6); }
.channel__value { display: block; font-weight: 700; font-size: 1.02rem; }
.channel__arrow { margin-left: auto; width: 18px; height: 18px; color: var(--blue-300); }

.quote__card {
  background: var(--white); color: var(--ink);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  padding: clamp(24px, 4vw, 44px);
}

/* Formulário */
.form { display: grid; gap: 18px; }
.form__row { display: grid; gap: 18px; }
@media (min-width: 600px) { .form__row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 7px; align-content: start; min-width: 0; }
.form, .form__row, .quote__card { min-width: 0; }
.field label { font-weight: 700; font-size: .9rem; color: var(--navy-900); }
.req { color: var(--blue-600); }
.field input, .field select, .field textarea {
  width: 100%; min-width: 0; min-height: 50px; padding: 12px 14px;
  background: var(--gray-25); border: 1.5px solid var(--gray-200); border-radius: var(--radius-sm);
  font-size: 1rem; line-height: 1.4; color: var(--ink);
  transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input::placeholder, .field textarea::placeholder { color: var(--gray-400); }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--gray-400); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; background: var(--white); border-color: var(--blue-600);
  box-shadow: 0 0 0 4px rgba(24, 99, 194, .16);
}
.field [aria-invalid="true"] { border-color: var(--error); background: var(--error-bg); }
.field [aria-invalid="true"]:focus { box-shadow: 0 0 0 4px rgba(180, 35, 24, .14); }
.field.is-valid input, .field.is-valid select, .field.is-valid textarea { border-color: #7FB59A; }
.select-wrap { position: relative; }
.select-wrap select { appearance: none; padding-right: 42px; cursor: pointer; }
.select-wrap::after {
  content: ""; position: absolute; right: 16px; top: 50%; width: 8px; height: 8px; margin-top: -6px;
  border-right: 2px solid var(--navy-800); border-bottom: 2px solid var(--navy-800);
  transform: rotate(45deg); pointer-events: none;
}
.field__hint { font-size: .84rem; color: var(--gray-600); }
.field__error { font-size: .86rem; font-weight: 600; color: var(--error); min-height: 0; }
.field__error:empty { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__privacy { font-size: .84rem; color: var(--gray-600); text-align: center; margin-top: -4px; }
.form__status { padding: 16px 18px; border-radius: var(--radius); font-size: .95rem; line-height: 1.55; }
.form__status:focus { outline: none; }
.form__status strong { display: block; margin-bottom: 2px; }
.form__status a { font-weight: 700; }
.form__status.is-success { background: var(--success-bg); color: #05472A; border: 1px solid #ABEFC6; }
.form__status.is-error { background: var(--error-bg); color: #7A271A; border: 1px solid #FECDCA; }
.form__status.is-info { background: var(--blue-50); color: var(--navy-800); border: 1px solid var(--blue-100); }

/* ---- Contato ---- */
.contact-grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .contact-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.contact-item {
  display: flex; gap: 16px; align-items: flex-start; height: 100%;
  padding: 22px; border: 1px solid var(--gray-100); border-radius: var(--radius); background: var(--white);
}
.contact-item__icon { width: 44px; height: 44px; flex: none; display: grid; place-items: center; background: var(--blue-50); color: var(--blue-600); border-radius: var(--radius-sm); }
.contact-item__icon svg { width: 20px; height: 20px; }
.contact-item__label { display: block; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gray-600); margin-bottom: 2px; }
.contact-item__value { font-weight: 700; color: var(--navy-900); font-size: 1.04rem; overflow-wrap: anywhere; }
a.contact-item__value { text-decoration: none; color: var(--navy-900); }
a.contact-item__value:hover { color: var(--blue-600); text-decoration: underline; }

/* ---- Rodapé ---- */
.site-footer { background: var(--navy-950); color: rgba(255, 255, 255, .68); font-size: .95rem; }
.footer-grid { display: grid; gap: 40px; padding-block: 64px 48px; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1.2fr; gap: 56px; } }
.footer-brand img { width: 168px; margin-bottom: 20px; }
.footer-brand p { max-width: 36ch; }
.footer-title { font-family: var(--font-display); font-weight: 650; font-stretch: 112%; font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; color: var(--white); margin-bottom: 16px; }
.footer-nav ul, .footer-info ul { display: grid; gap: 10px; }
.site-footer a { color: rgba(255, 255, 255, .78); text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  padding-block: 22px calc(22px + env(safe-area-inset-bottom));
  position: relative; font-size: .86rem;
}
.footer-bottom::before { content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); border-top: 1px solid rgba(255, 255, 255, .1); }

/* ---- WhatsApp flutuante ---- */
.wa-float {
  position: fixed; z-index: 90; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom));
  display: inline-flex; align-items: center; gap: 10px;
  height: 56px; min-width: 56px; padding: 0 16px; justify-content: center;
  background: var(--blue-600); color: var(--white); border-radius: 999px;
  box-shadow: 0 12px 28px -10px rgba(4, 20, 42, .55);
  font-weight: 700; text-decoration: none;
  transition: background-color .2s, transform .3s var(--ease), opacity .3s;
}
.wa-float:hover { background: var(--blue-700); color: var(--white); transform: translateY(-2px); }
.wa-float svg { width: 26px; height: 26px; flex: none; }
.wa-float__text { display: none; }
@media (min-width: 760px) { .wa-float__text { display: inline; } .wa-float { padding: 0 20px 0 16px; } }
.wa-float.is-hidden { opacity: 0; transform: translateY(16px); pointer-events: none; }

/* ---- Lightbox ---- */
.lightbox {
  width: 100%; max-width: 100%; height: 100%; max-height: 100%; margin: 0; padding: 0;
  border: 0; background: transparent; color: var(--white);
}
.lightbox::backdrop { background: rgba(4, 20, 42, .94); }
.lightbox__inner { position: relative; height: 100%; display: grid; place-items: center; padding: 64px 16px 24px; }
@media (min-width: 760px) { .lightbox__inner { padding: 64px 88px 32px; } }
.lightbox__figure { display: grid; gap: 14px; max-width: 1200px; width: 100%; }
.lightbox__figure img { width: 100%; max-height: calc(100svh - 190px); object-fit: contain; border-radius: var(--radius-sm); }
.lightbox__figure figcaption { display: grid; gap: 4px; font-size: .95rem; color: rgba(255, 255, 255, .78); }
.lightbox__figure figcaption strong { font-family: var(--font-display); font-size: 1.15rem; color: var(--white); }
.lightbox__close, .lightbox__nav {
  position: absolute; display: grid; place-items: center; width: 48px; height: 48px;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .25); border-radius: 50%; color: var(--white);
  transition: background-color .2s;
}
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255, 255, 255, .2); }
.lightbox__close svg, .lightbox__nav svg { width: 22px; height: 22px; }
.lightbox__close { top: 12px; right: 12px; }
.lightbox__nav { top: 50%; margin-top: -24px; }
.lightbox__nav--prev { left: 16px; }
.lightbox__nav--next { right: 16px; }
@media (max-width: 759px) {
  .lightbox__nav { top: auto; bottom: 16px; margin-top: 0; }
  .lightbox__inner { padding-bottom: 80px; }
}

/* 7. MODO REVISÃO (apenas uso interno — desligue em js/config.js) ---- */
.review-tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 8px; border: 1px dashed #B45309; border-radius: 3px;
  background: #FFFBEB; color: #92400E;
  font-family: var(--font-body); font-size: .7rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  line-height: 1.3; white-space: nowrap; vertical-align: middle;
}
.service-card .review-tag { position: absolute; right: 12px; top: 12px; z-index: 1; }
.feature .review-tag { margin-bottom: 14px; }
.placeholder {
  display: inline-block; padding: 6px 10px;
  border: 1.5px dashed #D97706; border-radius: 4px; background: #FFFBEB;
  color: #92400E; font-size: .88rem; font-weight: 600; line-height: 1.45;
}
.section--navy .placeholder, .quote .placeholder, .site-footer .placeholder { background: rgba(255, 251, 235, .1); color: #FCD34D; border-color: #F59E0B; }
.review-pill {
  position: fixed; z-index: 95; left: 14px; bottom: calc(14px + env(safe-area-inset-bottom));
  max-width: min(340px, calc(100vw - 100px));
  display: flex; gap: 10px; align-items: flex-start;
  padding: 10px 12px; background: #FFFBEB; color: #78350F;
  border: 1px solid #FCD34D; border-radius: 8px; box-shadow: var(--shadow);
  font-size: .78rem; line-height: 1.4;
}
.review-pill strong { display: block; font-size: .8rem; }
@media (max-width: 759px) {
  .review-pill { top: calc(var(--header-h) + 8px); bottom: auto; left: 12px; max-width: calc(100vw - 24px); }
}
.review-pill button { flex: none; width: 28px; height: 28px; margin: -4px -4px 0 0; background: none; border: 0; color: inherit; font-size: 1.1rem; line-height: 1; border-radius: 4px; }

/* 8. MOVIMENTO ------------------------------------------------------ */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .hero__content > * { animation: rise .8s var(--ease) both; }
.js .hero__content > :nth-child(2) { animation-delay: .08s; }
.js .hero__content > :nth-child(3) { animation-delay: .16s; }
.js .hero__content > :nth-child(4) { animation-delay: .24s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

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

@media print {
  .site-header, .mobile-menu, .wa-float, .review-pill, .lightbox { display: none !important; }
  .hero { min-height: auto; color: var(--ink); }
}

/* Proteções contra estouro em telas estreitas */
.contact-grid > li, .contact-item > div, .services-grid > li, .gallery > li { min-width: 0; }
.placeholder { overflow-wrap: anywhere; max-width: 100%; }


/* 9. WORDPRESS ----------------------------------------------------- */
.admin-bar .site-header { top: 32px; }
.admin-bar .mobile-menu { top: 32px; }
.admin-bar { scroll-padding-top: calc(var(--header-h) + 40px); }
@media (max-width: 782px) {
  .admin-bar .site-header, .admin-bar .mobile-menu { top: 46px; }
}
@media (max-width: 600px) {
  .admin-bar .site-header, .admin-bar .mobile-menu { top: 0; }
}

/* Páginas internas (políticas, posts, 404) */
.page-shell { padding-top: calc(var(--header-h) + clamp(48px, 7vw, 88px)); padding-bottom: var(--section-y); min-height: 70vh; }
.page-shell .section-title { margin-bottom: 28px; }
.entry { max-width: 760px; font-size: 1.05rem; color: var(--ink); }
.entry > * + * { margin-top: 1.1em; }
.entry h2, .entry h3 { font-family: var(--font-display); color: var(--navy-900); line-height: 1.2; margin-top: 1.8em; }
.entry h2 { font-size: 1.6rem; } .entry h3 { font-size: 1.25rem; }
.entry ul { list-style: disc; padding-left: 1.3em; } .entry ol { list-style: decimal; padding-left: 1.3em; }
.entry img { border-radius: var(--radius); }
.entry blockquote { margin: 1.5em 0; padding-left: 1.2em; border-left: 3px solid var(--blue-300); color: var(--gray-600); }
.post-list { display: grid; gap: 28px; max-width: 760px; }
.post-list article { padding-bottom: 28px; border-bottom: 1px solid var(--gray-100); }
.post-list h2 { font-family: var(--font-display); font-size: 1.4rem; line-height: 1.25; }
.post-list h2 a { color: var(--navy-900); text-decoration: none; }
.post-meta { font-size: .88rem; color: var(--gray-600); margin-top: 6px; }
.pagination { margin-top: 40px; display: flex; gap: 12px; flex-wrap: wrap; }
.alignwide, .alignfull { max-width: 100%; }
.wp-caption-text, .wp-element-caption { font-size: .88rem; color: var(--gray-600); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
