/* ===========================================================================
   WM Arquitetura & Design — sistema de estilos
   Minimalista elegante · mobile-first · acessível (WCAG AA)
   =========================================================================== */

/* ---- Fontes auto-hospedadas ------------------------------------------- */
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/cormorant-garamond-500.woff2") format("woff2");
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/cormorant-garamond-600.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/inter-400.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/inter-500.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/inter-600.woff2") format("woff2");
}

/* ---- Tokens ------------------------------------------------------------ */
:root {
  --bg: #f7f5f1;
  --bg-alt: #efece6;
  --surface: #ffffff;
  --ink: #1c1b19;
  --ink-soft: #4a4741;
  --muted: #8a857c;
  --line: #e2ddd4;
  --accent: #229b50; /* verde da marca WM ArqDesign */
  --accent-deep: #16793e; /* variante escura, contraste AA em texto */
  --dark: #1c1b19;
  --dark-soft: #2a2824;

  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-logo: "Yu Gothic", "Yu Gothic UI", "YuGothic", "Hiragino Kaku Gothic ProN",
    "Noto Sans JP", var(--font-body);

  --container: 1280px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius: 2px;
  --shadow: 0 18px 50px -24px rgba(28, 27, 25, 0.4);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 76px;
}

/* ---- Reset ------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
* {
  margin: 0;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img,
picture,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}
input,
textarea,
select {
  font: inherit;
  color: inherit;
}
ul {
  list-style: none;
  padding: 0;
}

/* ---- Tipografia -------------------------------------------------------- */
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: 0.01em;
  color: var(--ink);
}
.h-display {
  font-size: clamp(2.6rem, 7vw, 5.25rem);
}
h1 {
  font-size: clamp(2.2rem, 5.5vw, 4rem);
}
h2 {
  font-size: clamp(1.9rem, 4vw, 3rem);
}
h3 {
  font-size: clamp(1.35rem, 2.4vw, 1.9rem);
}
p {
  color: var(--ink-soft);
}
.eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-deep); /* contraste AA sobre fundo claro */
}
.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--ink-soft);
  max-width: 60ch;
}

/* ---- Layout ------------------------------------------------------------ */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section {
  padding-block: clamp(3.5rem, 9vw, 8rem);
}
.section--tight {
  padding-block: clamp(2.5rem, 6vw, 5rem);
}
.section-head {
  max-width: 52rem;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}
.section-head .eyebrow {
  display: block;
  margin-bottom: 1rem;
}
.center {
  text-align: center;
  margin-inline: auto;
}
.stack > * + * {
  margin-top: 1.1rem;
}

/* ---- Botões ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.9rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid transparent;
  border-radius: var(--radius);
  transition: background 0.35s var(--ease), color 0.35s var(--ease),
    border-color 0.35s var(--ease), transform 0.35s var(--ease);
}
.btn:hover {
  transform: translateY(-2px);
}
.btn--primary {
  background: var(--ink);
  color: var(--bg);
}
.btn--primary:hover {
  background: var(--accent-deep);
}
.btn--ghost {
  border-color: var(--ink);
  color: var(--ink);
}
.btn--ghost:hover {
  background: var(--ink);
  color: var(--bg);
}
.btn--light {
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}
.btn--light:hover {
  background: #fff;
  color: var(--ink);
  border-color: #fff;
}
.link-underline {
  position: relative;
  font-weight: 500;
  color: var(--ink);
  padding-bottom: 2px;
}
.link-underline::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.link-underline:hover::after {
  transform: scaleX(1);
}

/* ---- Header ------------------------------------------------------------ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.site-header.is-solid,
.site-header.is-open {
  background: var(--bg);
  box-shadow: 0 1px 0 var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
}
.brand__icon {
  width: 34px;
  height: auto;
  flex: none;
  color: inherit; /* traço preto acompanha o contexto (header/footer) via currentColor */
  transition: color 0.4s var(--ease);
}
.brand__text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  line-height: 1.1;
}
.brand__word {
  font-family: var(--font-logo);
  font-size: 1.2rem;
  letter-spacing: 0.01em;
}
.brand__word strong {
  font-weight: 700;
}
.brand__sub {
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}
/* header claro sobre hero escuro */
.site-header:not(.is-solid):not(.is-open).over-hero .brand,
.site-header:not(.is-solid):not(.is-open).over-hero .brand__icon,
.site-header:not(.is-solid):not(.is-open).over-hero .nav__link,
.site-header:not(.is-solid):not(.is-open).over-hero .nav__cta,
.site-header:not(.is-solid):not(.is-open).over-hero .nav-toggle {
  color: #fff;
}
.site-header:not(.is-solid):not(.is-open).over-hero .brand__sub {
  color: rgba(255, 255, 255, 0.75);
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 2.5vw, 2.5rem);
}
.nav__link {
  position: relative;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--ink);
  padding-block: 0.4rem;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.nav__link:hover::after,
.nav__link[aria-current="page"]::after {
  transform: scaleX(1);
}
.nav__cta {
  padding: 0.6rem 1.3rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid currentColor;
  border-radius: var(--radius);
  transition: background 0.35s var(--ease), color 0.35s var(--ease);
}
.nav__cta:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  color: var(--ink);
}
.nav-toggle svg {
  width: 24px;
  height: 24px;
}

/* ---- Menu mobile ------------------------------------------------------- */
@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex;
  }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    flex-direction: column;
    justify-content: center;
    gap: 1.75rem;
    background: var(--bg);
    transform: translateX(100%);
    transition: transform 0.45s var(--ease);
    padding: 2rem var(--gutter) 4rem;
  }
  .site-header.is-open .nav {
    transform: translateX(0);
  }
  .nav__link {
    font-size: 1.4rem;
    font-family: var(--font-display);
  }
  .nav__cta {
    font-size: 0.8rem;
    padding: 0.9rem 1.8rem;
  }
  body.nav-open {
    overflow: hidden;
  }
}

/* ---- Hero -------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  color: #fff;
  isolation: isolate;
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero__media picture {
  display: block;
  width: 100%;
  height: 100%;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    180deg,
    rgba(20, 19, 17, 0.45) 0%,
    rgba(20, 19, 17, 0.15) 35%,
    rgba(20, 19, 17, 0.7) 100%
  );
}
.hero__inner {
  padding-block: clamp(3rem, 12vh, 8rem);
  max-width: 60rem;
}
.hero .eyebrow {
  color: rgba(255, 255, 255, 0.85);
}
.hero__title {
  color: #fff;
  margin-block: 1.1rem 1.4rem;
}
.hero__lead {
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.05rem, 1.7vw, 1.35rem);
  max-width: 44ch;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.2rem;
}
.hero__scroll {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.hero__scroll span::after {
  content: "";
  display: block;
  width: 1px;
  height: 34px;
  margin: 0.4rem auto 0;
  background: rgba(255, 255, 255, 0.6);
  animation: scrollLine 2.4s var(--ease) infinite;
}
@keyframes scrollLine {
  0% {
    transform: scaleY(0);
    transform-origin: top;
  }
  45% {
    transform: scaleY(1);
    transform-origin: top;
  }
  55% {
    transform: scaleY(1);
    transform-origin: bottom;
  }
  100% {
    transform: scaleY(0);
    transform-origin: bottom;
  }
}

/* ---- Page hero (interno) ---------------------------------------------- */
.page-hero {
  padding-top: calc(var(--header-h) + clamp(2.5rem, 7vw, 5rem));
  padding-bottom: clamp(1.5rem, 4vw, 3rem);
  background: var(--bg);
}
.page-hero .eyebrow {
  display: block;
  margin-bottom: 1rem;
}
.page-hero__lead {
  margin-top: 1.25rem;
}

/* ---- Grade de projetos ------------------------------------------------- */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
.project-card {
  position: relative;
  display: flex;
  flex-direction: column;
  opacity: 1;
}
.project-card__media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--bg-alt);
  aspect-ratio: 4 / 5;
}
.project-card__media picture {
  display: block;
  width: 100%;
  height: 100%;
}
.project-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}
.project-card:hover .project-card__media img {
  transform: scale(1.06);
}
.project-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(20, 19, 17, 0) 45%,
    rgba(20, 19, 17, 0.55) 100%
  );
  opacity: 0;
  transition: opacity 0.5s var(--ease);
}
.project-card:hover .project-card__media::after {
  opacity: 1;
}
.project-card__cat {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 2;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(28, 27, 25, 0.55);
  backdrop-filter: blur(6px);
  padding: 0.4rem 0.8rem;
  border-radius: 100px;
}
.project-card__body {
  padding: 1.15rem 0.15rem 0;
}
.project-card__title {
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  transition: color 0.35s var(--ease);
}
.project-card:hover .project-card__title {
  color: var(--accent-deep);
}
.project-card__meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.35rem;
  font-size: 0.8rem;
  color: var(--muted);
}
.project-card__summary {
  margin-top: 0.6rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.project-card__link {
  position: absolute;
  inset: 0;
  z-index: 3;
}
/* card featured (primeiro, largo) */
.project-grid--featured .project-card:first-child {
  grid-column: 1 / -1;
}
@media (min-width: 760px) {
  .project-grid--featured .project-card:first-child {
    grid-column: span 2;
  }
  .project-grid--featured .project-card:first-child .project-card__media {
    aspect-ratio: 16 / 10;
  }
}

/* ---- Filtros ----------------------------------------------------------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.filter-btn {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.6rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: 100px;
  color: var(--ink-soft);
  transition: all 0.3s var(--ease);
}
.filter-btn:hover {
  border-color: var(--ink);
  color: var(--ink);
}
.filter-btn.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}
.project-card.is-hidden {
  display: none;
}

/* ---- Split (sobre / cta) ---------------------------------------------- */
.split {
  display: grid;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
@media (min-width: 900px) {
  .split {
    grid-template-columns: 1fr 1fr;
  }
  .split--media-right .split__media {
    order: 2;
  }
}
.split__media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.split__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* ---- Métricas / etapas ------------------------------------------------- */
.steps {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  counter-reset: step;
}
.step {
  border-top: 1px solid var(--line);
  padding-top: 1.25rem;
}
.step__n {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--accent);
}
.step h3 {
  font-size: 1.25rem;
  margin: 0.4rem 0 0.5rem;
}
.step p {
  font-size: 0.92rem;
}

/* ---- Faixa escura (band) ---------------------------------------------- */
.band {
  background: var(--dark);
  color: var(--bg);
}
.band h2,
.band h3 {
  color: #fff;
}
.band p {
  color: rgba(255, 255, 255, 0.75);
}
.band .eyebrow {
  color: var(--accent);
}

/* ---- Página de projeto ------------------------------------------------- */
.project-detail__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--muted);
}
.project-detail__meta strong {
  color: var(--ink);
  font-weight: 600;
}
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}
.tag {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  padding: 0.35rem 0.85rem;
  border-radius: 100px;
}
.gallery {
  display: grid;
  gap: clamp(0.5rem, 1.2vw, 1rem);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
}
.gallery__item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--bg-alt);
  cursor: zoom-in;
  aspect-ratio: 3 / 2;
}
.gallery__item picture {
  display: block;
  width: 100%;
  height: 100%;
}
.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.gallery__item:hover img {
  transform: scale(1.05);
}
.gallery__item:nth-child(6n + 1) {
  grid-column: span 1;
}
@media (min-width: 760px) {
  .gallery__item.is-wide {
    grid-column: span 2;
    aspect-ratio: 16 / 9;
  }
}

.project-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--line);
  padding-top: 2rem;
  margin-top: 3rem;
}
.project-nav a {
  font-size: 0.85rem;
  color: var(--ink-soft);
}
.project-nav a:hover {
  color: var(--ink);
}
.project-nav .prev::before {
  content: "← ";
}
.project-nav .next::after {
  content: " →";
}

/* ---- Lightbox ---------------------------------------------------------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(16, 15, 14, 0.94);
  padding: clamp(1rem, 4vw, 3rem);
}
.lightbox.is-open {
  display: flex;
}
.lightbox img {
  max-width: 100%;
  max-height: 88vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8);
}
.lightbox__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 1.6rem;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  transition: background 0.3s var(--ease);
}
.lightbox__btn:hover {
  background: rgba(255, 255, 255, 0.2);
}
.lightbox__prev {
  left: clamp(0.5rem, 2vw, 2rem);
}
.lightbox__next {
  right: clamp(0.5rem, 2vw, 2rem);
}
.lightbox__close {
  top: clamp(0.75rem, 2vw, 1.5rem);
  right: clamp(0.75rem, 2vw, 1.5rem);
  transform: none;
}
.lightbox__count {
  position: absolute;
  bottom: clamp(0.75rem, 2vw, 1.5rem);
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
}

/* ---- Formulário -------------------------------------------------------- */
.contact-grid {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4.5rem);
}
@media (min-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr 1.1fr;
  }
}
.form-field {
  margin-bottom: 1.35rem;
}
.form-field label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 0.5rem;
}
.form-field .req {
  color: var(--accent);
}
.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  padding: 0.9rem 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(34, 155, 80, 0.16);
}
.form-field textarea {
  min-height: 140px;
  resize: vertical;
}
.form-row {
  display: grid;
  gap: 1.35rem;
}
@media (min-width: 560px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}
/* honeypot */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-status {
  margin-top: 1rem;
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  display: none;
}
.form-status.is-visible {
  display: block;
}
.form-status.is-success {
  background: #eaf3ec;
  color: #24603a;
  border: 1px solid #bcdcc6;
}
.form-status.is-error {
  background: #f7eaea;
  color: #8a2b2b;
  border: 1px solid #e3c3c3;
}
.form-note {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 1rem;
}

.contact-channels {
  display: grid;
  gap: 1.1rem;
}
.channel {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.channel:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.channel__icon {
  width: 42px;
  height: 42px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--bg-alt);
  color: var(--accent-deep);
}
.channel__icon svg {
  width: 20px;
  height: 20px;
}
.channel__label {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.channel__value {
  font-weight: 500;
  color: var(--ink);
}

/* ---- Footer ------------------------------------------------------------ */
.site-footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.72);
  padding-block: clamp(3rem, 6vw, 5rem) 2rem;
}
.site-footer a {
  color: rgba(255, 255, 255, 0.72);
  transition: color 0.3s var(--ease);
}
.site-footer a:hover {
  color: #fff;
}
.footer-grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}
.footer-brand .brand {
  color: #fff;
  margin-bottom: 1rem;
}
.footer-brand .brand__sub {
  color: rgba(255, 255, 255, 0.55);
}
.footer-col h4 {
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
}
.footer-col ul {
  display: grid;
  gap: 0.7rem;
  font-size: 0.92rem;
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ---- Botão flutuante WhatsApp ----------------------------------------- */
.wa-float {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  z-index: 90;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  background: #25d366;
  color: #fff;
  border-radius: 50%;
  box-shadow: 0 12px 28px -8px rgba(37, 211, 102, 0.6);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.wa-float:hover {
  transform: scale(1.08) translateY(-2px);
}
.wa-float svg {
  width: 30px;
  height: 30px;
}
.wa-float__pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #25d366;
  opacity: 0.5;
  animation: waPulse 2.6s ease-out infinite;
  z-index: -1;
}
@keyframes waPulse {
  0% {
    transform: scale(1);
    opacity: 0.5;
  }
  70% {
    transform: scale(1.7);
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

/* ---- Reveal (animação sutil) ------------------------------------------ */
.reveal {
  opacity: 0;
  transition: opacity 0.8s var(--ease);
  will-change: opacity;
}
.reveal.is-in {
  opacity: 1;
}

/* ---- Acessibilidade ---------------------------------------------------- */
:focus-visible {
  outline: 2px solid var(--accent-deep);
  outline-offset: 3px;
}
.skip-link {
  position: absolute;
  left: 1rem;
  top: -60px;
  z-index: 300;
  background: var(--ink);
  color: #fff;
  padding: 0.7rem 1.2rem;
  border-radius: var(--radius);
  transition: top 0.25s var(--ease);
}
.skip-link:focus {
  top: 1rem;
}
.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;
}

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