/* ARTUGA — Terraplenagem e locação de máquinas
   Tokens, base, componentes. Mobile-first. */

@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo-latin-wdth-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  --ink: #1e2024;
  --ink-2: #3c4048;
  --green: #6cb45c;
  --green-deep: #2f6b27;
  --paper: #fcfcfb;
  --paper-2: #f1f2ef;
  --mute: #565a63;
  --line: rgba(30, 32, 36, 0.16);
  --line-on-ink: rgba(252, 252, 251, 0.22);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  --gutter: clamp(16px, 4vw, 40px);
  --max: 1200px;
  --header-h: 64px;
  --space-section: clamp(48px, 7vw, 88px);
  --radius: 2px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  font-weight: 400;
  overflow-wrap: break-word;
}
img, picture { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-weight: 800; font-stretch: 112%; line-height: 1.08; letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-size: clamp(1.5rem, calc((100vw - 76px) / 9.6), 3.25rem); }
h2 { font-size: clamp(1.4rem, calc((100vw - 40px) / 11), 2.4rem); }
h3 { font-size: clamp(1.2rem, 1rem + 0.9vw, 1.6rem); line-height: 1.15; }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 3px solid var(--ink-2); outline-offset: 3px; }
.on-ink :focus-visible, .placa :focus-visible, .site-footer :focus-visible { outline-color: var(--green); }

.skip {
  position: absolute; left: 8px; top: -80px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 12px 16px; font-weight: 600;
}
.skip:focus { top: 8px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.section { padding-block: var(--space-section); }
.section--tint { background: var(--paper-2); }
.section--ink { background: var(--ink); color: var(--paper); }
.section--green { background: var(--green); color: var(--ink); }
.section--green { padding-block: clamp(40px, 5vw, 64px); }
.section--green .link { text-decoration-color: var(--ink); }
.prose { max-width: 64ch; }
.prose p:last-child { margin-bottom: 0; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: 48px; padding: 0.75em 1.6em;
  font: inherit; font-weight: 700; font-stretch: 112%; line-height: 1.1; text-decoration: none; text-align: center;
  border: 2px solid transparent; border-radius: var(--radius); cursor: pointer;
  transition: background-color 300ms var(--ease-out), color 300ms var(--ease-out), border-color 300ms var(--ease-out), box-shadow 300ms var(--ease-out), transform 300ms var(--ease-out);
}
.btn:active { transform: scale(0.97); }
/* Área de hover estável: o botão sobe 2px no hover, então esta camada cobre a faixa que ele deixa livre e evita piscar na borda */
.btn, .header-phone { position: relative; }
.btn::after, .header-phone::after { content: ""; position: absolute; inset: 0 0 -4px; }
.btn--primary { background: var(--green); color: var(--ink); }
.btn--ghost { border-color: currentColor; background: transparent; color: inherit; }
.btn--dark { background: var(--ink); color: var(--paper); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(30, 32, 36, 0.28); }
  .btn:active { transform: scale(0.97); box-shadow: none; }
  .btn--primary:hover { background: var(--ink); color: var(--paper); border-color: var(--green); }
  .btn--ghost:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
  .section:not(.section--ink) .btn--ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
  .btn--dark:hover { background: var(--green); color: var(--ink); border-color: var(--ink); }
  .section--green .btn--dark:hover { background: var(--paper); color: var(--ink); border-color: var(--ink); }
}

a[href^="tel:"] { white-space: nowrap; }
.link {
  font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.25em;
  text-decoration-color: var(--green); transition: text-decoration-color 300ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) { .link:hover { text-decoration-color: currentColor; } }

/* ---------- Cabeçalho ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--paper); border-bottom: 1px solid var(--line); }
.site-header .wrap { width: min(100% - 2 * var(--gutter), 1360px); }
.site-header__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--header-h); }
.brand { display: flex; align-items: center; flex: 0 0 auto; min-height: 48px; }
.brand img { height: 36px; width: auto; }
.nav-toggle {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; min-width: 48px; padding: 0 8px 0 12px;
  background: none; border: 0; color: inherit; font: inherit; font-weight: 700; cursor: pointer;
}
.nav-toggle__bars { position: relative; width: 22px; height: 14px; }
.nav-toggle__bars::before, .nav-toggle__bars::after, .nav-toggle__bars i {
  content: ""; position: absolute; left: 0; width: 100%; height: 2px; background: currentColor;
  transition: transform 350ms var(--ease-out), opacity 250ms var(--ease-out);
}
.nav-toggle__bars::before { top: 0; }
.nav-toggle__bars i { top: 6px; }
.nav-toggle__bars::after { top: 12px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i { opacity: 0; }

.site-nav {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--paper); border-bottom: 1px solid var(--line);
  max-height: calc(100svh - var(--header-h)); overflow-y: auto;
  opacity: 0; transform: translateY(-8px); visibility: hidden;
  transition: opacity 320ms var(--ease-out), transform 320ms var(--ease-out), visibility 0s linear 320ms;
}
.site-nav.is-open { opacity: 1; transform: none; visibility: visible; transition-delay: 0s; }
.site-nav ul { padding: 8px var(--gutter) 16px; }
.site-nav a.nav-link {
  display: flex; align-items: center; min-height: 52px; padding: 0 2px; font-weight: 700; font-stretch: 112%; text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.site-nav a.nav-link[aria-current="page"] { box-shadow: inset 4px 0 0 var(--green); padding-left: 14px; }
@media (hover: hover) and (pointer: fine) { .site-nav a.nav-link:hover { background: var(--paper-2); } }
.site-nav__contact { display: grid; gap: 16px; padding: 24px var(--gutter) 28px; }
.header-actions { display: none; }

@media (min-width: 1100px) {
  :root { --header-h: 76px; }
  .brand img { height: 42px; }
  .nav-toggle { display: none; }
  .site-header__bar { gap: 24px; }
  .site-nav {
    position: static; opacity: 1; transform: none; visibility: visible; max-height: none; overflow: visible;
    background: none; border: 0; transition: none; margin-left: auto;
  }
  .site-nav ul { display: flex; gap: 2px; padding: 0; }
  .site-nav a.nav-link { min-height: 48px; padding: 0 10px; border: 0; font-size: 0.95rem; position: relative; }
  .site-nav a.nav-link[aria-current="page"] { box-shadow: none; padding-left: 10px; }
  .site-nav a.nav-link::after {
    content: ""; position: absolute; left: 10px; right: 10px; bottom: 6px; height: 3px; background: var(--green);
    transform: scaleX(0); transform-origin: left; transition: transform 400ms var(--ease-out);
  }
  .site-nav a.nav-link[aria-current="page"]::after { transform: scaleX(1); }
  @media (hover: hover) and (pointer: fine) {
    .site-nav a.nav-link:hover { background: none; }
    .site-nav a.nav-link:hover::after { transform: scaleX(1); }
  }
  .site-nav__contact { display: none; }
  .header-actions { display: flex; align-items: center; gap: 12px; margin-left: 8px; padding-left: 20px; border-left: 1px solid var(--line); }
  .header-phone {
    display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 18px;
    border: 2px solid var(--ink); border-radius: var(--radius);
    font-weight: 700; font-stretch: 108%; font-size: 0.95rem; text-decoration: none; white-space: nowrap;
    transition: background-color 300ms var(--ease-out), color 300ms var(--ease-out), box-shadow 300ms var(--ease-out), transform 300ms var(--ease-out);
  }
  .header-phone:active { transform: scale(0.97); }
  .header-phone svg { width: 18px; height: 18px; flex: none; }
  .header-cta { display: none; white-space: nowrap; flex: none; }
  @media (hover: hover) and (pointer: fine) { .header-phone:hover { background: var(--ink); color: var(--paper); transform: translateY(-2px); box-shadow: 0 6px 16px rgba(30, 32, 36, 0.28); } }
}

@media (min-width: 1360px) {
  .header-cta { display: inline-flex; }
  .site-nav a.nav-link { padding: 0 12px; }
  .site-nav a.nav-link[aria-current="page"]::after { left: 12px; right: 12px; }
}

/* ---------- Hero e placa ---------- */
.hero { position: relative; }
.hero__media { position: relative; aspect-ratio: 4 / 3; max-height: 70svh; width: 100%; overflow: hidden; }
.hero__media picture { height: 100%; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__inner { position: relative; }
.placa {
  position: relative; background: var(--ink); color: var(--paper);
  margin: -44px var(--gutter) 0; padding: 32px 22px 28px;
  border-top: 8px solid var(--green);
  animation: placa-in 1400ms var(--ease-out) 150ms both;
}
.placa__text { margin-top: 16px; max-width: 46ch; font-size: 1.05rem; }
.placa__actions { display: grid; gap: 16px; margin-top: 28px; }
@keyframes placa-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

@media (min-width: 768px) {
  .hero { min-height: min(86svh, 780px); display: grid; background: var(--ink); }
  .hero > * { grid-area: 1 / 1; }
  .hero__media { aspect-ratio: auto; max-height: none; height: 100%; }
  .hero__inner { display: flex; align-items: flex-end; pointer-events: none; padding-bottom: clamp(32px, 6vw, 72px); }
  .hero__inner .wrap { pointer-events: none; }
  .placa { pointer-events: auto; margin: 0; width: min(620px, 100%); padding: 36px 36px 32px; }
  .placa__actions { display: flex; flex-wrap: wrap; gap: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .placa { animation: placa-fade 1200ms ease 150ms both; }
  @keyframes placa-fade { from { opacity: 0; } to { opacity: 1; } }
}

/* Abertura das páginas internas: mesma placa da home, mais baixa */
.hero--page .hero__media { aspect-ratio: 16 / 10; max-height: 46svh; }
.placa--page h1 { font-size: clamp(1.5rem, calc((100vw - 76px) / 9.6), 2.8rem); }
.placa--page .placa__text { font-size: 1rem; }
@media (min-width: 768px) {
  .hero--page { min-height: clamp(380px, 54svh, 540px); }
  .hero--page .hero__media { aspect-ratio: auto; max-height: none; }
  .placa--page { width: min(640px, 100%); }
}

/* ---------- Seções de conteúdo ---------- */
.split { display: grid; gap: 32px; align-items: start; }
.split__media img { width: 100%; }
.split--center { align-items: center; }
.section-head { margin-bottom: 28px; }
.aside h2 { margin-bottom: 28px; }
.aside__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.h2--sm { font-size: clamp(1.2rem, 1rem + 1vw, 1.6rem); font-stretch: 100%; font-weight: 700; line-height: 1.25; max-width: 40ch; }
h2 > a { display: inline-block; padding-block: 0.15em; }
.section-head h2 + p { margin-top: 16px; }
.actions { margin-top: 32px; }

.service-list { border-top: 1px solid var(--line); margin-top: 8px; }
.service-list li { padding: 16px 0; border-bottom: 1px solid var(--line); font-weight: 600; font-size: 1.1rem; line-height: 1.35; }
.service-list--cols { display: grid; }

@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 88px); }
  .split--wide-media { grid-template-columns: 5fr 6fr; align-items: center; }
  .split--reverse { align-items: center; }
  .split--reverse .prose p:not(.actions) { font-size: 1.15rem; line-height: 1.65; }
  .split--reverse .prose h3 { font-size: clamp(1.3rem, 1rem + 0.9vw, 1.7rem); }
  .split--reverse .split__media { order: 2; }
  .aside { position: sticky; top: calc(var(--header-h) + 24px); }
  .service-list--cols { grid-template-columns: 1fr 1fr; column-gap: 48px; }
}

/* Linhas de serviço (página Serviços) */
.service-row { display: grid; gap: 20px; padding-block: 36px; border-top: 1px solid var(--line); }
.service-row:last-child { border-bottom: 1px solid var(--line); }
.service-row__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.service-row h3 { margin-bottom: 10px; }
.service-row p { margin-bottom: 20px; max-width: 48ch; }
@media (min-width: 800px) {
  .service-row { grid-template-columns: 5fr 6fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
  .service-row:nth-child(even) .service-row__media { order: 2; }
}

/* Galeria */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.gallery__item { position: relative; display: block; width: 100%; padding: 0; border: 0; background: var(--ink); cursor: zoom-in; overflow: hidden; aspect-ratio: 4 / 3; }
.gallery__item picture { display: block; height: 100%; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease-out); }
.gallery__item--wide { grid-column: span 2; aspect-ratio: 16 / 7; }
@media (hover: hover) and (pointer: fine) { .gallery__item:hover img { transform: scale(1.03); } }
@media (min-width: 800px) {
  .gallery { grid-template-columns: repeat(6, 1fr); grid-auto-rows: clamp(160px, 17vw, 260px); gap: 10px; }
  .gallery__item, .gallery__item--wide { aspect-ratio: auto; }
  .gallery__item { grid-column: span 2; }
  .gallery__item--wide { grid-column: span 4; }
}

/* Lightbox */
.lightbox { border: 0; padding: 0; background: transparent; color: var(--paper); width: 100vw; height: 100dvh; max-width: none; max-height: none; }
.lightbox::backdrop { background: rgba(14, 15, 18, 0.92); }
.lightbox[open] { display: grid; grid-template-rows: 1fr auto; opacity: 1; transform: none; }
.lightbox__stage { display: grid; place-items: center; padding: 56px 12px 8px; min-height: 0; }
.lightbox__stage img { max-width: 100%; max-height: calc(100dvh - 130px); width: auto; height: auto; object-fit: contain; }
.lightbox__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 12px 16px; }
.lightbox__caption { font-size: 0.95rem; margin: 0; flex: 1; text-align: left; }
.lightbox__btn {
  min-width: 48px; min-height: 48px; border: 1px solid var(--line-on-ink); border-radius: var(--radius);
  background: rgba(252, 252, 251, 0.08); color: var(--paper); font: inherit; font-weight: 700; cursor: pointer;
  transition: background-color 300ms var(--ease-out), transform 300ms var(--ease-out);
}
.lightbox__btn:active { transform: scale(0.95); }
.lightbox__close { position: absolute; top: 8px; right: 8px; }
@media (hover: hover) and (pointer: fine) { .lightbox__btn:hover { background: rgba(252, 252, 251, 0.2); } }
.lightbox[open] .lightbox__stage img { transition: opacity 350ms var(--ease-out), transform 350ms var(--ease-out); }
@starting-style { .lightbox[open] .lightbox__stage img { opacity: 0; transform: scale(0.97); } }
.lightbox:focus-visible, .lightbox__btn:focus-visible { outline-color: var(--green); }

/* Apresentação da empresa (home) */
.intro h2 { border-left: 8px solid var(--green); padding-left: 20px; }
.intro .prose p { font-size: 1.15rem; line-height: 1.65; }
.intro .prose .intro__lema { margin-top: 24px; padding: 16px 20px; background: var(--ink); color: var(--paper); border-left: 8px solid var(--green); font-weight: 700; font-stretch: 112%; font-size: 1.1rem; line-height: 1.35; }
.intro .prose .actions { margin-top: 28px; }
@media (min-width: 900px) {
  .intro { grid-template-columns: 5fr 6fr; align-items: start; }
  .intro h2 { font-size: clamp(1.8rem, 1rem + 2.2vw, 2.6rem); }
}

/* Faixa de contato */
.contact-band { display: grid; gap: 20px; justify-items: start; }
.contact-band h2 { max-width: none; }
.contact-band__list { display: grid; gap: 20px; justify-items: start; width: 100%; }
.contact-band__phone {
  display: inline-flex; align-items: center; gap: 14px; padding: 12px 22px; max-width: 100%;
  background: var(--ink); color: var(--paper); border-radius: var(--radius); text-decoration: none;
  font-size: clamp(1.45rem, 0.9rem + 3.6vw, 2.6rem); font-weight: 800; font-stretch: 112%; line-height: 1.1; white-space: nowrap;
  transition: background-color 300ms var(--ease-out), color 300ms var(--ease-out), box-shadow 300ms var(--ease-out), transform 300ms var(--ease-out);
}
.contact-band__phone svg { width: 0.85em; height: 0.85em; flex: none; color: var(--green); }
.contact-band__phone::after { content: ""; position: absolute; inset: 0 0 -4px; }
.contact-band__phone { position: relative; }
.contact-band__row { display: grid; gap: 16px; justify-items: start; }
.contact-band__row p { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; }
.contact-band__row .link { overflow-wrap: anywhere; display: inline-flex; align-items: center; min-height: 44px; }
.contact-band__row .btn { width: 100%; }
@media (hover: hover) and (pointer: fine) {
  .contact-band__phone:hover { background: var(--paper); color: var(--ink); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(30, 32, 36, 0.25); }
}
@media (min-width: 900px) {
  .contact-band { gap: 16px; justify-items: center; text-align: center; }
  .contact-band__list { justify-items: center; gap: 24px; }
  .contact-band__phone { padding: 16px 36px; gap: 18px; }
  .contact-band__row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px 32px; }
  .contact-band__row p { justify-content: center; }
  .contact-band__row .btn { width: auto; }
}
.on-ink .link { text-decoration-color: var(--green); }


/* ---------- Formulário ---------- */
.form { display: grid; gap: 22px; max-width: 560px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 700; }
.field .hint { font-size: 0.9rem; color: var(--mute); font-weight: 400; }
.field input, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; font: inherit; color: var(--ink); background: #fff;
  border: 2px solid rgba(30, 32, 36, 0.5); border-radius: var(--radius);
  transition: border-color 160ms ease;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--ink-2); outline-offset: 1px; border-color: var(--ink); }
.field [aria-invalid="true"] { border-color: #a4152a; }
.field__error { color: #a4152a; font-weight: 600; font-size: 0.95rem; margin: 0; }
.field__error::before { content: "Erro: "; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.h-captcha { max-width: 100%; min-height: 78px; overflow-x: auto; }
@media (max-width: 359px) { .h-captcha { transform: scale(0.9); transform-origin: left top; } }
.form__status { margin: 0; padding: 14px 16px; border-left: 6px solid var(--green); background: var(--paper-2); font-weight: 600; }
.form__status[data-state="error"] { border-left-color: #a4152a; }
.form__status:empty { display: none; }
.form .btn { width: 100%; }
@media (min-width: 600px) { .form .btn { width: auto; } }
.form.is-sending .btn { opacity: 0.7; pointer-events: none; }
.form-done { max-width: 560px; padding: 24px; border-left: 8px solid var(--green); background: var(--paper-2); animation: fade-in 220ms ease both; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.contact-grid { display: grid; gap: 48px; }
.contact-data dt { font-weight: 700; margin-top: 18px; }
.contact-data dt:first-child { margin-top: 0; }
.contact-data dd { margin: 2px 0 0; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1.1fr 0.9fr; gap: 80px; } }

/* ---------- Rodapé ---------- */
.site-footer { background: var(--ink); color: var(--paper); padding-block: 32px 20px; }
.site-footer a { text-decoration-color: var(--green); text-underline-offset: 0.2em; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 20px; font-size: 0.95rem; }
.footer-grid > div:first-child { grid-column: 1 / -1; }
.footer-list { overflow-wrap: anywhere; }
.footer-logo { display: inline-block; background: var(--paper); padding: 12px 16px; }
.footer-logo img { height: 34px; width: auto; }
.footer-title { font-size: 1rem; font-stretch: 112%; margin-bottom: 8px; }
.footer-list { display: grid; gap: 0; }
.footer-list li { line-height: 1.35; padding-block: 5px; }
.footer-list a { display: inline-flex; align-items: center; min-height: 32px; }
.footer-legal { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line-on-ink); font-size: 0.9rem; opacity: 0.85; }
@media (min-width: 800px) {
  .site-footer { padding-block: 48px 32px; }
  .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; gap: 56px; font-size: 1.0625rem; }
  .footer-grid > div:first-child { grid-column: auto; }
  .footer-list { gap: 4px; }
  .footer-list li { padding-block: 0; line-height: 1.6; }
  .footer-list a { min-height: 44px; }
  .footer-title { margin-bottom: 12px; }
  .footer-legal { margin-top: 36px; padding-top: 20px; }
}

/* Barra fixa de contato (celular) */
.mobile-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: var(--paper); border-top: 1px solid var(--line);
}
.mobile-cta .btn { min-height: 48px; padding-inline: 0.6em; }
body { padding-bottom: 72px; }
@media (min-width: 768px) { .mobile-cta { display: none; } body { padding-bottom: 0; } }

/* Consentimento (só aparece se houver ferramenta de medição configurada) */
.consent {
  position: fixed; left: 8px; right: 8px; bottom: 72px; z-index: 60; background: var(--ink); color: var(--paper);
  padding: 16px; border-top: 4px solid var(--green); max-width: 520px; font-size: 0.95rem;
  animation: fade-in 220ms ease both;
}
.consent p { margin: 0 0 12px; }
.consent__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.consent .btn { min-height: 44px; }
@media (min-width: 768px) { .consent { left: 16px; right: auto; bottom: 16px; } }

.nowrap { white-space: nowrap; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Barra de progresso de rolagem + barra de rolagem fina */
html { scrollbar-width: thin; scrollbar-color: var(--green-deep) var(--paper-2); }
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 4px; z-index: 80; pointer-events: none; opacity: 0; transition: opacity 400ms var(--ease-out); }
.scroll-progress.is-on { opacity: 1; }
.scroll-progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--green-deep), var(--green)); transform-origin: left; transform: scaleX(0); transition: transform 120ms linear; box-shadow: 0 0 10px rgba(108, 180, 92, 0.6); }

/* Carrossel de serviços (home). Sem JS: slides empilhados */
.carousel__track { display: grid; gap: 56px; }
.carousel__slide { display: grid; gap: 24px; align-items: center; min-width: 0; }
.carousel__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.carousel__slide h3 { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.2rem); margin-bottom: 12px; }
.carousel__slide .prose p { font-size: 1.1rem; }
.carousel__slide .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 24px; }
.carousel__controls { display: none; }
.carousel-on .carousel__viewport { overflow: hidden; }
.carousel-on .carousel__track { display: flex; gap: 0; transition: transform 800ms var(--ease-out); }
.carousel-on .carousel__slide { flex: 0 0 100%; }
.carousel-on .carousel__controls { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.carousel__btn, .carousel__play {
  min-width: 48px; min-height: 48px; padding: 0 14px; border: 2px solid var(--ink); border-radius: var(--radius);
  background: transparent; color: var(--ink); font: inherit; font-weight: 700; cursor: pointer; position: relative;
  transition: background-color 300ms var(--ease-out), color 300ms var(--ease-out), transform 300ms var(--ease-out);
}
.carousel__btn { font-size: 1.25rem; line-height: 1; }
.carousel__play { margin-left: auto; font-size: 0.95rem; border-color: var(--line); }
.carousel__dots { display: flex; gap: 2px; }
.carousel__dot { width: 28px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer; position: relative; }
.carousel__dot::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; border-radius: 10px; background: var(--ink); opacity: 0.28;
  transform: translate(-50%, -50%); transition: width 400ms var(--ease-out), opacity 300ms var(--ease-out), background-color 300ms var(--ease-out);
}
.carousel__dot[aria-current="true"]::before { width: 26px; background: var(--green-deep); opacity: 1; }
@media (hover: hover) and (pointer: fine) {
  .carousel__btn:hover, .carousel__play:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
  .carousel__dot:hover::before { opacity: 0.6; }
}
@media (min-width: 900px) {
  .carousel__slide { grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 88px); }
}

/* Entrada ao rolar: só ativa se o JS rodar (classe reveal-on) */
.reveal-on .reveal {
  opacity: 0; transform: translateY(32px);
  transition: opacity 700ms cubic-bezier(0.25, 0.8, 0.25, 1), transform 800ms cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--d, 0ms);
}
.reveal-on .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  /* Movimento reduzido: mantém as animações, mas só com fade (sem deslocar nem ampliar) */
  .reveal-on .reveal { transform: none; transition: opacity 700ms ease; transition-delay: var(--d, 0ms); }
  html { scroll-behavior: auto; }
  .btn:active, .lightbox__btn:active { transform: none; }
  .btn:hover, .header-phone:hover, .contact-band__phone:hover { transform: none; }
  .site-nav { transform: none; }
  @media (hover: hover) and (pointer: fine) { .gallery__item:hover img { transform: none; } }
  .lightbox[open] .lightbox__stage img { transition: opacity 350ms ease; transform: none; }
  .carousel-on .carousel__track { transition: none; }
  .carousel-on .carousel__slide { opacity: 0; transition: opacity 1000ms ease; }
  .carousel-on .carousel__slide[aria-hidden="false"] { opacity: 1; }
}
