/* ==========================================================================
   Leandro de Souza — Engenheiro Civil
   Folha de estilo única. Sem dependências externas.
   ========================================================================== */

/* ---------- Fontes locais (SIL Open Font License — ver assets/fonts/) ---------- */
@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/instrument-serif-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/instrument-serif-latin-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --paper: #f7f5f1;
  --surface: #eeebe5;
  --ink: #17191c;
  --graphite: #24272b;
  --text: #26292d;
  --muted: #5b5f66;
  --line: #d9d4cb;
  --accent: #8a5c35;
  --accent-light: #d4ab80;
  --on-dark: #f3f1ec;
  --on-dark-muted: #b9b6b0;

  --font-display: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --font-body: "Manrope", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;

  --container: 1320px;
  --gutter: clamp(16px, 4vw, 48px);
  --header-h: 72px;
  --section-y: clamp(72px, 9vw, 144px);
  --radius: 2px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  font-weight: 450;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, picture, svg { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3 { margin: 0; font-weight: 400; color: var(--ink); }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
a[href^="tel:"] { white-space: nowrap; }

em { font-style: italic; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--radius);
}

::selection { background: var(--ink); color: var(--paper); }

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

.visually-hidden {
  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: absolute;
  left: 16px; top: -100px;
  z-index: 100;
  padding: 12px 18px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6em;
  min-height: 52px;
  padding: 14px 26px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font: 600 .95rem/1.2 var(--font-body);
  letter-spacing: .01em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.btn .icon { flex: none; }
.btn:active { transform: translateY(1px); }

.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { background: var(--accent); }

.btn-ghost { color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }

.btn-outline { color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--paper); }

.btn-light { background: var(--paper); color: var(--ink); }
.btn-light:hover { background: var(--accent-light); }

.btn-sm { min-height: 44px; padding: 10px 18px; font-size: .875rem; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  min-height: 44px;
  font-weight: 600;
  font-size: .9rem;
  color: var(--ink);
  text-decoration: none;
}
.link-arrow::after {
  content: "→";
  transition: transform .3s var(--ease);
}
.link-arrow:hover { color: var(--accent); }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- Cabeçalho ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 245, 241, .94);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .site-header {
    background: rgba(247, 245, 241, .82);
    -webkit-backdrop-filter: saturate(1.4) blur(14px);
    backdrop-filter: saturate(1.4) blur(14px);
  }
}
.site-header.is-scrolled { border-bottom-color: var(--line); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  flex-direction: column;
  text-decoration: none;
  line-height: 1;
  padding-block: 6px;
}
.brand-name {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--ink);
  letter-spacing: -.005em;
  line-height: 1;
}
.brand-role {
  margin-top: 6px;
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
}

.site-nav { display: flex; align-items: center; gap: 36px; }
.nav-list { display: flex; gap: 30px; }
.nav-list a {
  position: relative;
  display: inline-block;
  padding-block: 12px;
  font-size: .9rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
}
.nav-list a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 6px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav-list a:hover::after,
.nav-list a.is-active::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 4px 8px 12px;
  border: 0;
  background: none;
  color: var(--ink);
  font: 600 .8rem/1 var(--font-body);
  letter-spacing: .14em;
  text-transform: uppercase;
  cursor: pointer;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 22px;
  height: 1.5px;
  background: currentColor;
  transition: transform .3s var(--ease), opacity .2s;
}
.nav-toggle-bars { position: relative; order: 2; }
.nav-toggle-bars::before,
.nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -7px; }
.nav-toggle-bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }

/* Navegação mobile */
@media (max-width: 959px) {
  /* Sem JavaScript: links visíveis em linha, abaixo da assinatura. */
  .no-js .header-inner { flex-wrap: wrap; padding-bottom: 8px; }
  .no-js .site-nav { width: 100%; flex-wrap: wrap; gap: 8px 20px; }
  .no-js .nav-list { flex-wrap: wrap; gap: 0 16px; }
  .no-js .nav-list a { font-size: .85rem; }
  .no-js .nav-cta { display: none; }

  /* Com JavaScript: painel em tela cheia. O backdrop-filter do cabeçalho
     faria dele o bloco de contenção do painel fixo, por isso é removido aqui. */
  .js .site-header {
    background: rgba(247, 245, 241, .97);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .js .nav-toggle { display: inline-flex; }
  .js .site-nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    z-index: 49;
    flex-direction: column;
    align-items: stretch;
    justify-content: space-between;
    gap: 32px;
    padding: 32px var(--gutter) calc(32px + env(safe-area-inset-bottom));
    background: var(--paper);
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s linear .3s;
  }
  .js .site-nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s;
  }
  .js .nav-list { flex-direction: column; gap: 0; }
  .js .nav-list li { border-bottom: 1px solid var(--line); }
  .js .nav-list a {
    display: block;
    padding: 18px 0;
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 7vw, 2.6rem);
    font-weight: 400;
    line-height: 1.1;
    color: var(--ink);
  }
  .js .nav-list a::after { display: none; }
  .js .nav-cta { width: 100%; min-height: 56px; font-size: 1rem; }
  body.menu-open { overflow: hidden; }
}

/* ---------- Elementos editoriais ---------- */
.eyebrow,
.section-index {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow-line {
  flex: none;
  width: 40px; height: 1px;
  background: var(--accent);
}
@media (max-width: 419px) {
  .eyebrow { gap: 10px; letter-spacing: .14em; font-size: .68rem; }
  .eyebrow-line { width: 24px; }
}
.section-index span {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0;
  color: var(--accent);
}
/* Linha de cota: referência discreta ao desenho técnico. */
.section-index::after {
  content: "";
  flex: 0 1 72px;
  height: 9px;
  border-inline: 1px solid var(--line);
  background: linear-gradient(var(--line), var(--line)) center / 100% 1px no-repeat;
}
.section-index-light { color: var(--on-dark-muted); }
.section-index-light span { color: var(--accent-light); }
.section-index-light::after {
  border-color: rgba(255, 255, 255, .28);
  background-image: linear-gradient(rgba(255, 255, 255, .28), rgba(255, 255, 255, .28));
}

.section { padding-block: var(--section-y); }

.section-head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 72px); }
.section-title {
  margin-top: 20px;
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 1.5rem + 3vw, 4.1rem);
  line-height: 1.04;
  letter-spacing: -.012em;
}
.section-title em,
.hero-title em,
.cta-title em { color: var(--accent); }
.section-lead {
  margin-top: 22px;
  max-width: 58ch;
  font-size: 1.06rem;
  color: var(--muted);
}

.section-head-split {
  max-width: none;
  display: grid;
  gap: 24px;
}
@media (min-width: 960px) {
  .section-head-split {
    grid-template-columns: 1.1fr 1fr;
    align-items: end;
    gap: 64px;
  }
  .section-head-split .section-lead { margin-top: 0; justify-self: end; }
}

.fine-print {
  margin-top: 32px;
  max-width: 70ch;
  font-size: .82rem;
  color: var(--muted);
}

.media-tag,
.gallery-item figcaption {
  position: absolute;
  left: 14px; bottom: 14px;
  padding: 6px 10px;
  background: rgba(247, 245, 241, .92);
  color: var(--ink);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  line-height: 1.2;
}

/* ---------- Hero ---------- */
.hero { position: relative; }

.hero-grid {
  display: grid;
  gap: 40px;
  padding-top: clamp(28px, 5vw, 56px);
  padding-bottom: clamp(48px, 6vw, 72px);
}

.hero-copy { display: flex; flex-direction: column; align-items: flex-start; }

.hero-title {
  margin-top: 24px;
  font-family: var(--font-display);
  font-size: clamp(2.65rem, 1.4rem + 4.6vw, 5.6rem);
  line-height: 1;
  letter-spacing: -.018em;
  max-width: 13ch;
  text-wrap: balance;
}

.hero-lead {
  margin-top: 26px;
  max-width: 46ch;
  font-size: clamp(1.02rem, .96rem + .3vw, 1.16rem);
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.hero-contact {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  min-width: min(100%, 280px);
}
.hero-contact-label {
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero-contact a {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--ink);
  text-decoration: none;
  padding-block: 4px;
}
.hero-contact a:hover { color: var(--accent); }

.hero-media {
  position: relative;
  overflow: hidden;
  background: var(--graphite);
  margin-inline: calc(var(--gutter) * -1);
}
.hero-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

@media (max-width: 479px) {
  .hero-actions .btn { width: 100%; }
}

@media (min-width: 640px) and (max-width: 959px) {
  .hero-media { margin-inline: 0; }
  .hero-media img { aspect-ratio: 16 / 10; }
}

@media (min-width: 960px) {
  .hero-grid {
    max-width: none;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    align-items: stretch;
    gap: clamp(40px, 5vw, 88px);
    padding-top: 0;
    padding-bottom: 0;
    padding-right: 0;
    padding-left: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
    min-height: min(calc(100vh - var(--header-h)), 900px);
    min-height: min(calc(100svh - var(--header-h)), 900px);
  }
  .hero-copy {
    justify-content: center;
    padding-block: clamp(48px, 6vw, 96px);
  }
  .hero-media { margin: 0; }
  .hero-media picture,
  .hero-media img { height: 100%; }
  .hero-media img { aspect-ratio: auto; min-height: 560px; }
}

/* ---------- Serviços ---------- */
.services { border-top: 1px solid var(--line); }

.service-list { border-top: 1px solid var(--ink); }

.service {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  grid-template-areas:
    "num body"
    "media media";
  gap: 4px 16px;
  padding-block: 28px;
  border-bottom: 1px solid var(--line);
}
.service-num {
  grid-area: num;
  padding-top: 6px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--accent);
}
.service-body { grid-area: body; }
.service-title {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 1.3rem + 1.3vw, 2.35rem);
  line-height: 1.1;
  transition: color .3s var(--ease);
}
.service-text {
  margin-top: 10px;
  max-width: 54ch;
  color: var(--muted);
}
.service .link-arrow { margin-top: 8px; }

.service-media {
  grid-area: media;
  margin-top: 18px;
  overflow: hidden;
  background: var(--surface);
}
.service-media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform .8s var(--ease), filter .6s var(--ease);
}

@media (min-width: 640px) {
  .service {
    grid-template-columns: 56px minmax(0, 1fr) 200px;
    grid-template-areas: "num body media";
    gap: 24px;
    align-items: start;
    padding-block: 32px;
  }
  .service-media { margin-top: 0; }
  .service-media img { aspect-ratio: 4 / 3; }
}

@media (min-width: 960px) {
  .service {
    grid-template-columns: 96px minmax(0, 1fr) 260px;
    gap: 40px;
    padding-block: 40px;
  }
  .service-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    column-gap: 40px;
    align-items: start;
  }
  .service-title { grid-row: span 2; }
  .service-text { margin-top: 4px; }
  .service .link-arrow { margin-top: 10px; }
}

@media (hover: hover) {
  .service-media img { filter: grayscale(.35); }
  .service:hover .service-media img { transform: scale(1.04); filter: none; }
  .service:hover .service-title { color: var(--accent); }
}

/* ---------- Sobre ---------- */
.about { background: var(--surface); }

.about-grid {
  display: grid;
  gap: 48px;
}

.about-mark {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  aspect-ratio: 1 / 1;
  max-width: 480px;
  width: 100%;
  padding: clamp(24px, 4vw, 44px);
  background: var(--graphite);
  color: var(--on-dark);
  overflow: hidden;
}
/* Malha técnica discreta em fundo. */
.about-mark::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}
.monogram {
  position: relative;
  font-family: var(--font-display);
  font-size: clamp(7rem, 26vw, 15rem);
  line-height: .82;
  letter-spacing: -.04em;
}
.monogram em { color: var(--accent-light); }
.about-mark-caption {
  position: relative;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .22);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  line-height: 1.8;
  color: var(--on-dark-muted);
}

.about-copy { display: flex; flex-direction: column; align-items: flex-start; }
.about-copy .section-head { margin-bottom: 32px; }
.about-role {
  margin-top: 10px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
}
.prose { max-width: 58ch; font-size: 1.1rem; }
.prose p + p { margin-top: 1em; }
.about-copy .btn { margin-top: 40px; }

/* Blocos preparados para dados reais (ver comentários no HTML). */
.credentials {
  margin: 36px 0 0;
  display: grid;
  gap: 0;
  width: 100%;
  max-width: 58ch;
  border-top: 1px solid var(--line);
}
.credentials div {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) 2fr;
  gap: 16px;
  padding-block: 14px;
  border-bottom: 1px solid var(--line);
}
.credentials dt { font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.credentials dd { margin: 0; }
.about-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

@media (max-width: 959px) {
  .about-mark {
    aspect-ratio: auto;
    max-width: none;
    min-height: 200px;
    flex-direction: row;
    align-items: flex-end;
    justify-content: flex-start;
    gap: 28px;
  }
  .monogram { font-size: clamp(5.5rem, 22vw, 9rem); }
  .about-mark-caption {
    padding: 0 0 4px 18px;
    border-top: 0;
    border-left: 1px solid rgba(255, 255, 255, .22);
  }
}
@media (min-width: 960px) {
  .about-grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: clamp(48px, 7vw, 120px);
    align-items: center;
  }
}

/* ---------- Referências (galeria) ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: clamp(110px, 26vw, 220px);
  grid-auto-flow: dense;
  gap: clamp(8px, 1.2vw, 16px);
}
.gallery-item {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  grid-row: span 2;
}
.g-wide { grid-column: span 2; }
.gallery-item picture,
.gallery-item img { width: 100%; height: 100%; }
.gallery-item img {
  object-fit: cover;
  transition: transform 1s var(--ease);
}
@media (hover: hover) {
  .gallery-item:hover img { transform: scale(1.035); }
}
@media (max-width: 479px) {
  .gallery-item figcaption { left: 8px; bottom: 8px; font-size: .6rem; letter-spacing: .1em; }
}
@media (min-width: 960px) {
  .gallery {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: clamp(140px, 13vw, 230px);
  }
}

/* ---------- Processo ---------- */
.process { border-top: 1px solid var(--line); }

.steps {
  display: grid;
  gap: 0;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 28px 0 32px;
  border-top: 1px solid var(--ink);
}
.step::before {
  /* marca de cota no início de cada etapa */
  content: "";
  position: absolute;
  left: 0; top: -5px;
  width: 1px; height: 9px;
  background: var(--ink);
}
.step-num {
  display: block;
  font-family: var(--font-display);
  font-size: 2.6rem;
  line-height: 1;
  color: var(--accent);
}
.step-title {
  margin-top: 18px;
  font-family: var(--font-display);
  font-size: 1.65rem;
  line-height: 1.15;
}
.step p {
  margin-top: 10px;
  max-width: 36ch;
  color: var(--muted);
}

@media (min-width: 640px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
}
@media (min-width: 1100px) {
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 32px; }
  .step { padding-right: 8px; }
}

/* ---------- CTA final ---------- */
.cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--ink);
  color: var(--on-dark);
  padding-block: clamp(96px, 12vw, 180px);
}
.cta-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.cta-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(15, 16, 18, .72);
}
.cta-title {
  margin-top: 24px;
  max-width: 16ch;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 1.4rem + 4.4vw, 5.4rem);
  line-height: 1.02;
  letter-spacing: -.015em;
  color: var(--on-dark);
  text-wrap: balance;
}
.cta-title em { color: var(--accent-light); }
.cta-text {
  margin-top: 24px;
  max-width: 50ch;
  font-size: 1.08rem;
  color: var(--on-dark-muted);
}
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 32px;
  margin-top: 40px;
}
.cta-phone {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--on-dark);
  text-decoration: none;
  padding-block: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, .3);
}
.cta-phone:hover { border-bottom-color: var(--accent-light); }
.cta :focus-visible,
.site-footer :focus-visible { outline-color: var(--accent-light); }

@media (max-width: 479px) {
  .cta-actions .btn { width: 100%; }
}

/* ---------- Rodapé ---------- */
.site-footer {
  background: var(--ink);
  color: var(--on-dark-muted);
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding-top: clamp(56px, 7vw, 96px);
  font-size: .92rem;
}
.footer-grid {
  display: grid;
  gap: 40px;
  padding-bottom: 48px;
}
.site-footer .brand-name { font-size: 2rem; color: var(--on-dark); }
.site-footer .brand-role { color: var(--on-dark-muted); }
.footer-heading {
  margin-bottom: 12px;
  font-family: var(--font-body);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
}
.footer-nav a,
.footer-contact a {
  display: inline-block;
  padding-block: 10px;
  color: var(--on-dark);
  text-decoration: none;
}
.footer-nav a:hover,
.footer-contact a:hover { color: var(--accent-light); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 32px;
  padding-block: 24px calc(24px + env(safe-area-inset-bottom));
  /* divisória alinhada ao conteúdo (não ao padding do container) */
  background: linear-gradient(rgba(255, 255, 255, .1), rgba(255, 255, 255, .1)) top center / calc(100% - 2 * var(--gutter)) 1px no-repeat;
  font-size: .8rem;
}
.back-top {
  color: var(--on-dark);
  text-decoration: none;
  padding-block: 12px;
}
.back-top:hover { color: var(--accent-light); }

@media (min-width: 640px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}
@media (max-width: 639px) {
  /* espaço para o botão flutuante não cobrir o rodapé */
  .footer-bottom { padding-bottom: calc(88px + env(safe-area-inset-bottom)); }
}

/* ---------- Botão flutuante de WhatsApp ---------- */
.wa-float {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 40;
  display: none;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 8px 24px rgba(23, 25, 28, .22);
  transition: opacity .3s var(--ease), transform .3s var(--ease), background-color .25s var(--ease), visibility 0s linear .3s;
}
.js .wa-float {
  display: grid;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
}
.js .wa-float.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease), background-color .25s var(--ease), visibility 0s;
}
.wa-float:hover { background: var(--accent); }
body.menu-open .wa-float { visibility: hidden; opacity: 0; }

/* ---------- Animações de entrada (somente com JS) ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.js .reveal.is-in { opacity: 1; transform: none; }

.js .hero-copy > * { animation: rise .9s var(--ease) both; }
.js .hero-copy > :nth-child(2) { animation-delay: .06s; }
.js .hero-copy > :nth-child(3) { animation-delay: .12s; }
.js .hero-copy > :nth-child(4) { animation-delay: .18s; }
.js .hero-copy > :nth-child(5) { animation-delay: .24s; }
.js .hero-media img { animation: settle 1.6s var(--ease) both; }

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
@keyframes settle {
  from { transform: scale(1.06); }
  to { transform: scale(1); }
}

@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; }
}

/* ---------- Impressão ---------- */
@media print {
  .site-header, .wa-float, .cta-bg, .nav-toggle { display: none !important; }
  .cta, .site-footer { background: none; color: #000; }
  .js .reveal { opacity: 1; transform: none; }
}
