/* =============================================================================
   SNC Estruturas e Eventos — Design system & layout
   Seções: variáveis · reset · base · layout · componentes · utilitários
   ============================================================================= */

/* --- Variáveis --- */
:root {
  --color-primary: #c41e2a;
  --color-primary-hover: #a01822;
  --color-primary-muted: rgba(196, 30, 42, 0.08);
  --color-black: #0a0a0a;
  --color-surface: #ffffff;
  --color-bg: #f5f5f4;
  --color-bg-dark: #141414;
  --color-text: #1c1917;
  --color-text-muted: #57534e;
  --color-border: #e7e5e4;
  --color-whatsapp: #25d366;
  --color-whatsapp-hover: #1da851;
  --font-sans: "DM Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-display: "Outfit", var(--font-sans);
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-section: clamp(3rem, 8vw, 5.5rem);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 2px rgba(10, 10, 10, 0.06);
  --shadow-md: 0 8px 24px rgba(10, 10, 10, 0.08);
  --shadow-lg: 0 20px 50px rgba(10, 10, 10, 0.12);
  --header-h: 4.25rem;
  --container: min(1120px, 100% - 2 * var(--space-lg));
  --transition: 0.2s ease;
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body.nav-open {
  overflow: hidden;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--color-primary);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--color-primary-hover);
}

:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* --- Base tipográfica --- */
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-black);
  text-wrap: balance;
}

h1 {
  font-size: clamp(1.875rem, 4vw, 2.75rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.015em;
}

h3 {
  font-size: clamp(1.125rem, 2vw, 1.35rem);
}

p {
  margin: 0 0 var(--space-md);
}

p:last-child {
  margin-bottom: 0;
}

.lead {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  max-width: 42rem;
}

.muted {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
}

/* --- Layout --- */
.skip-link {
  position: absolute;
  top: -100px;
  left: var(--space-md);
  z-index: 10000;
  padding: var(--space-sm) var(--space-md);
  background: var(--color-black);
  color: var(--color-surface);
  font-weight: 600;
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  top: var(--space-md);
}

.container {
  width: var(--container);
  margin-inline: auto;
}

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

.section--alt {
  background: var(--color-surface);
  border-block: 1px solid var(--color-border);
}

.section--dark {
  background: var(--color-bg-dark);
  color: #e7e5e4;
}

.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: #fafaf9;
}

.section--dark .lead,
.section--dark .muted {
  color: #a8a29e;
}

.section__head {
  max-width: 40rem;
  margin-bottom: var(--space-2xl);
}

.section__head--center {
  margin-inline: auto;
  text-align: center;
}

.section__head--center .lead {
  margin-inline: auto;
}

.section__eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
}

.section--dark .section__eyebrow {
  color: #f87171;
}

/* --- Header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--color-border);
  backdrop-filter: blur(10px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: var(--space-lg);
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  text-decoration: none;
  color: inherit;
  font-weight: 700;
  font-family: var(--font-display);
  font-size: 1.125rem;
}

.logo:hover {
  color: inherit;
  text-decoration: none;
}

.logo img {
  width: auto;
  height: 40px;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  cursor: pointer;
}

.nav-toggle__bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--color-black);
  position: relative;
}

.nav-toggle__bar::before,
.nav-toggle__bar::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: var(--color-black);
}

.nav-toggle__bar::before {
  top: -6px;
}

.nav-toggle__bar::after {
  top: 6px;
}

.nav-primary {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.nav-primary__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem var(--space-sm);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-primary__item {
  position: relative;
}

.nav-primary__link {
  display: block;
  padding: var(--space-sm) var(--space-md);
  color: var(--color-text);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
}

.nav-primary__link:hover {
  background: var(--color-primary-muted);
  color: var(--color-text);
  text-decoration: none;
}

.nav-primary__link[aria-current="page"] {
  color: var(--color-primary);
  font-weight: 600;
}

.nav-primary__cta {
  margin-left: var(--space-sm);
}

/* Dropdown serviços */
.has-submenu > .nav-primary__link {
  padding-right: 1.75rem;
}

.has-submenu > .nav-primary__link::after {
  content: "";
  position: absolute;
  right: 0.65rem;
  top: 50%;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid var(--color-text-muted);
  transform: translateY(-30%);
}

.submenu {
  position: absolute;
  left: 0;
  top: 100%;
  min-width: 280px;
  padding: var(--space-sm);
  margin: 0;
  list-style: none;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
  z-index: 950;
}

.has-submenu:hover .submenu,
.has-submenu:focus-within .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.submenu a {
  display: block;
  padding: var(--space-sm) var(--space-md);
  color: var(--color-text);
  text-decoration: none;
  font-size: 0.875rem;
  border-radius: var(--radius-sm);
}

.submenu a:hover {
  background: var(--color-bg);
  text-decoration: none;
}

@media (max-width: 1023px) {
  .nav-toggle {
    display: flex;
  }

  .site-header {
    overflow: visible;
  }

  .nav-primary {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    z-index: 940;
    width: 100%;
    min-height: calc(100dvh - var(--header-h));
    flex-direction: column;
    align-items: stretch;
    padding: var(--space-lg);
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(100%);
    transition: transform 0.25s ease, opacity 0.2s ease, visibility 0.2s ease;
  }

  .nav-primary.is-open {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav-primary__list {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .nav-primary__item {
    width: 100%;
  }

  .nav-primary__link {
    padding: var(--space-md);
  }

  .has-submenu.is-expanded > .nav-primary__link {
    background: var(--color-primary-muted);
  }

  .has-submenu > .nav-primary__link::after {
    right: var(--space-md);
  }

  .submenu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    padding-left: var(--space-md);
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .has-submenu.is-expanded .submenu {
    max-height: 600px;
  }

  .submenu a {
    padding-left: 0;
  }

  .nav-primary__cta {
    margin-left: 0;
    margin-top: var(--space-md);
  }
}

/* --- Footer --- */
.site-footer {
  background: var(--color-black);
  color: #d6d3d1;
  padding-block: var(--space-3xl) var(--space-xl);
  font-size: 0.9375rem;
}

.site-footer a {
  color: #e7e5e4;
  text-decoration: none;
}

.site-footer a:hover {
  color: #fff;
  text-decoration: underline;
}

.site-footer__grid {
  display: grid;
  gap: var(--space-2xl);
  grid-template-columns: 1.2fr repeat(3, 1fr);
  margin-bottom: var(--space-2xl);
}

@media (max-width: 900px) {
  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 540px) {
  .site-footer__grid {
    grid-template-columns: 1fr;
  }
}

.site-footer__brand p {
  margin-top: var(--space-md);
  max-width: 28rem;
}

.site-footer__title {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fff;
  margin: 0 0 var(--space-md);
}

.site-footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer__list li {
  margin-bottom: var(--space-sm);
}

.site-footer__bottom {
  padding-top: var(--space-xl);
  border-top: 1px solid #292524;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
  color: #a8a29e;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.social-links--center {
  justify-content: center;
}

.social-links__item {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(28, 25, 23, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: #1c1917;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(10, 10, 10, 0.06);
  opacity: 0.92;
  transition: transform 0.25s ease, opacity 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.social-links__item:hover {
  transform: translateY(-1px) scale(1.03);
  opacity: 1;
  border-color: rgba(196, 30, 42, 0.22);
  box-shadow: 0 12px 24px rgba(10, 10, 10, 0.08);
}

.social-links__item svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.social-links__label {
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

.social-callout {
  margin-top: var(--space-xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.social-callout h3 {
  margin: 0;
}

.social-callout .social-links__item {
  width: 52px;
  height: 52px;
}

.social-callout .social-links__item svg {
  width: 22px;
  height: 22px;
}

.site-footer__social {
  margin-top: var(--space-md);
}

.site-footer__social .social-links__item {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
  color: #f5f5f4;
  box-shadow: none;
}

.site-footer__social .social-links__label {
  color: #d6d3d1;
}

/* --- Botões --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 0.65rem 1.25rem;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform 0.15s ease;
}

.btn:hover {
  text-decoration: none;
}

.btn:active {
  transform: scale(0.98);
}

.btn--primary {
  background: var(--color-primary);
  color: #fff;
}

.btn--primary:hover {
  background: var(--color-primary-hover);
  color: #fff;
}

.btn--outline {
  background: transparent;
  border-color: var(--color-border);
  color: var(--color-text);
}

.btn--outline:hover {
  border-color: var(--color-text);
  color: var(--color-text);
}

.btn--whatsapp {
  background: var(--color-whatsapp);
  color: #fff;
}

.btn--whatsapp:hover {
  background: var(--color-whatsapp-hover);
  color: #fff;
}

.btn--lg {
  padding: 0.85rem 1.5rem;
  font-size: 1rem;
}

.btn--block {
  width: 100%;
}

.btn .icon {
  width: 1.25em;
  height: 1.25em;
  flex-shrink: 0;
}

/* --- Hero --- */
.hero {
  position: relative;
  background: linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.65)), url("../img/boxtruss/boxtruss-tremembe.JPG");
  background-size: cover;
  background-position: center;
  color: #fafaf9;
  padding-block: clamp(3rem, 10vw, 5rem);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  opacity: 1;
  background-size: cover;
  background-position: center;
  pointer-events: none;
}

.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
}

.hero__bg--placeholder {
  background-image: linear-gradient(120deg, rgba(196, 30, 42, 0.2) 0%, transparent 50%),
    repeating-linear-gradient(90deg, transparent, transparent 40px, rgba(255, 255, 255, 0.02) 40px, rgba(255, 255, 255, 0.02) 41px);
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: var(--space-2xl);
  align-items: center;
}

@media (min-width: 900px) {
  .hero__inner {
    grid-template-columns: 1.1fr 1fr;
  }
}

.hero h1,
.hero p {
  color: #fff;
}

.hero h1 {
  margin: 0 0 var(--space-md);
}

.hero .lead {
  margin-bottom: var(--space-xl);
  max-width: 36rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  align-items: center;
}

.hero__note {
  margin-top: var(--space-lg);
  font-size: 0.875rem;
  color: #a8a29e;
}

.hero__media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/3;
  background: #292524;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.hero .btn--outline {
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: #fff;
}

/* --- Cards & grids --- */
.grid-2 {
  display: grid;
  gap: var(--space-xl);
}

@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.grid-3 {
  display: grid;
  gap: var(--space-lg);
}

@media (min-width: 640px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-sm);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--color-primary-muted);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: var(--space-md);
}

.card h3 {
  margin: 0 0 var(--space-sm);
}

.card p {
  flex-grow: 1;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
}

.card__link {
  margin-top: var(--space-md);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
}

.card__link:hover {
  text-decoration: underline;
}

/* Service / portfolio cards with image */
.card--media {
  padding: 0;
  overflow: hidden;
}

.card--media .card__body {
  padding: var(--space-lg);
}

.card--media .card__thumb {
  aspect-ratio: 16/10;
  background: var(--color-bg);
  position: relative;
}

.card--media .card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-card .card__thumb {
  aspect-ratio: 16/10;
}

.portfolio-grid {
  display: grid;
  gap: var(--space-lg);
}

@media (min-width: 640px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 980px) {
  .portfolio-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.portfolio-card .card__thumb {
  aspect-ratio: 4/3;
}

.portfolio-card h3 {
  margin-bottom: 0;
}

.portfolio-gallery {
  display: grid;
  gap: var(--space-2xl);
}

.portfolio-category {
  display: grid;
  gap: var(--space-lg);
}

.portfolio-category__title {
  margin: 0;
  font-size: clamp(1.35rem, 2vw, 1.75rem);
}

.portfolio-showcases {
  display: grid;
  gap: var(--space-2xl);
}

.portfolio-showcase {
  display: grid;
  gap: var(--space-lg);
  padding: clamp(1rem, 2vw, 1.5rem);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
}

.portfolio-showcase__head h2 {
  margin: 0;
  font-size: clamp(1.35rem, 2vw, 1.75rem);
}

.portfolio-showcase__grid {
  display: grid;
  gap: var(--space-md);
}

.portfolio-shot {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-bg);
  cursor: zoom-in;
  aspect-ratio: 16/10;
}

.portfolio-shot--featured {
  aspect-ratio: 16/9;
}

.portfolio-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}

.portfolio-shot:hover img,
.portfolio-shot:focus-visible img {
  transform: scale(1.03);
}

.portfolio-shot:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 3px;
}

@media (min-width: 760px) {
  .portfolio-showcase__grid {
    grid-template-columns: 1.7fr 1fr 1fr;
  }

  .portfolio-shot--featured {
    grid-row: span 2;
    aspect-ratio: auto;
  }
}

.portfolio-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
}

.portfolio-lightbox.is-open {
  display: flex;
}

body.modal-open {
  overflow: hidden;
}

.portfolio-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 10, 9, 0.88);
}

.portfolio-lightbox__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 1040px);
  display: grid;
  gap: var(--space-md);
}

.portfolio-lightbox__image-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #111;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

.portfolio-lightbox__image {
  display: block;
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  background: #111;
}

.portfolio-lightbox__caption {
  color: #fff;
  font-weight: 600;
}

.portfolio-lightbox__button {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(28, 25, 23, 0.86);
  color: #fff;
  border-radius: 999px;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.portfolio-lightbox__button--close {
  top: -56px;
  right: 0;
}

.portfolio-lightbox__button--prev,
.portfolio-lightbox__button--next {
  top: 50%;
  transform: translateY(-50%);
}

.portfolio-lightbox__button--prev {
  left: -56px;
}

.portfolio-lightbox__button--next {
  right: -56px;
}

@media (max-width: 760px) {
  .portfolio-lightbox {
    padding: var(--space-md);
  }

  .portfolio-lightbox__button--prev {
    left: var(--space-sm);
  }

  .portfolio-lightbox__button--next {
    right: var(--space-sm);
  }

  .portfolio-lightbox__button--close {
    top: var(--space-sm);
    right: var(--space-sm);
  }
}

.service-page__media {
  display: grid;
  gap: var(--space-md);
}

.service-directory {
  --directory-gap: clamp(18px, 2vw, 24px);
  --directory-columns: 3;
  --directory-rows: 2;
  --directory-col-width: calc((100% - (var(--directory-gap) * (var(--directory-columns) - 1))) / var(--directory-columns));
}

.service-directory__intro {
  max-width: 44rem;
  margin-inline: auto;
  text-align: center;
}

.service-directory__carousel {
  position: relative;
}

.service-directory__controls {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-bottom: var(--space-lg);
}

.service-directory__arrow {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(28, 25, 23, 0.12);
  border-radius: 999px;
  background: var(--color-surface);
  color: var(--color-text);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.service-directory__arrow:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: rgba(196, 30, 42, 0.2);
  box-shadow: var(--shadow-lg);
}

.service-directory__arrow:disabled {
  opacity: 0.4;
  cursor: default;
  box-shadow: none;
}

.service-directory__viewport {
  overflow: hidden;
}

.service-directory__track {
  display: grid;
  grid-template-rows: repeat(var(--directory-rows), minmax(0, 1fr));
  grid-auto-flow: column;
  grid-auto-columns: var(--directory-col-width);
  gap: var(--directory-gap);
  align-items: stretch;
  transition: transform 0.45s ease;
  will-change: transform;
}

.service-directory__item {
  min-width: 0;
}

.service-directory__card {
  height: 100%;
  border: 1px solid rgba(28, 25, 23, 0.1);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  box-shadow: 0 10px 28px rgba(10, 10, 10, 0.06);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.service-directory__card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(10, 10, 10, 0.09);
}

.service-directory__card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.service-directory__thumb {
  height: clamp(190px, 18vw, 220px);
  overflow: hidden;
  background: var(--color-bg);
}

.service-directory__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.service-directory__card:hover .service-directory__thumb img {
  transform: scale(1.04);
}

.service-directory__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 22px;
}

.service-directory__body h3 {
  margin-bottom: 10px;
}

.service-directory__excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--color-text-muted);
  margin-bottom: 0;
}

.service-directory__cta {
  margin-top: 18px;
  font-weight: 600;
  color: var(--color-primary);
}

.service-page__hero {
  padding-top: var(--space-xl);
}

.service-page__hero .lead {
  margin-bottom: var(--space-lg);
}

.service-page__section .section__head {
  margin-bottom: var(--space-xl);
}

.service-page__section .section__head .lead {
  max-width: 46rem;
}

.service-page__section .split {
  align-items: start;
}

.service-page__gallery-grid {
  display: grid;
  gap: var(--space-lg);
}

.service-page__gallery-grid figure {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  aspect-ratio: 4 / 3;
  background: var(--color-bg);
}

.service-page__gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-page__main-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  aspect-ratio: 4/3;
  background: var(--color-bg);
}

.service-page__main-image img,
.service-page__gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-page__gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.service-page__gallery figure {
  margin: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
  aspect-ratio: 4/3;
  background: var(--color-bg);
}

.use-list {
  display: grid;
  gap: var(--space-sm);
  margin: var(--space-lg) 0 0;
  padding: 0;
  list-style: none;
}

.use-list li {
  padding: var(--space-sm) var(--space-md);
  border-left: 3px solid var(--color-primary);
  background: var(--color-surface);
  color: var(--color-text-muted);
}

/* --- Breadcrumbs --- */
.breadcrumbs {
  padding-block: var(--space-md);
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

.breadcrumbs li:not(:last-child)::after {
  content: "/";
  margin-left: var(--space-sm);
  color: var(--color-border);
  font-weight: 400;
}

.breadcrumbs a {
  color: var(--color-text-muted);
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--color-primary);
  text-decoration: underline;
}

.breadcrumbs [aria-current="page"] {
  color: var(--color-text);
  font-weight: 500;
}

/* --- Listas / diferenciais --- */
.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.check-list li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: var(--space-md);
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--color-primary);
}

/* --- CTA strip --- */
.cta-strip {
  background: linear-gradient(135deg, var(--color-primary) 0%, #8b1420 100%);
  color: #fff;
  padding-block: var(--space-2xl);
  text-align: center;
}

.cta-strip h2 {
  color: #fff;
  margin: 0 0 var(--space-md);
}

.cta-strip p {
  margin: 0 auto var(--space-xl);
  max-width: 36rem;
  opacity: 0.95;
}

.cta-strip .btn--whatsapp {
  background: #fff;
  color: #075e54;
}

.cta-strip .btn--whatsapp:hover {
  background: #f0fdf4;
  color: #054d44;
}

/* --- FAQ --- */
.faq {
  max-width: 42rem;
  margin-inline: auto;
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
}

.faq-item:first-child {
  border-top: 1px solid var(--color-border);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-lg) 0;
  background: none;
  border: none;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  color: var(--color-text);
  cursor: pointer;
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "+";
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--color-primary);
  flex-shrink: 0;
}

details[open] .faq-question::after {
  content: "−";
}

.faq-answer {
  padding-bottom: var(--space-lg);
  color: var(--color-text-muted);
  font-size: 0.9375rem;
}

/* --- Formulário --- */
.form-grid {
  display: grid;
  gap: var(--space-lg);
}

@media (min-width: 560px) {
  .form-grid--2 {
    grid-template-columns: 1fr 1fr;
  }
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.65rem 0.85rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.form-hint {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  margin-top: var(--space-md);
}

/* --- WhatsApp flutuante --- */
.wa-float {
  position: fixed;
  right: var(--space-lg);
  bottom: var(--space-lg);
  z-index: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-whatsapp);
  color: #fff;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
  text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition);
}

.wa-float:hover {
  transform: scale(1.06);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.55);
  color: #fff;
  text-decoration: none;
}

.wa-float svg {
  width: 28px;
  height: 28px;
}

.wa-float span {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* --- Prose (conteúdo interno) --- */
.prose {
  max-width: 42rem;
}

.prose h2 {
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-md);
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  margin-top: var(--space-xl);
  margin-bottom: var(--space-sm);
}

.prose ul {
  margin: 0 0 var(--space-md);
  padding-left: 1.25rem;
}

.prose li {
  margin-bottom: var(--space-sm);
}

/* Contact page refinements */
.section[aria-labelledby="contato-heading"] .split {
  align-items: stretch;
  gap: var(--space-xl);
}

.section[aria-labelledby="contato-heading"] .card {
  padding: clamp(1.5rem, 3vw, 2rem);
}

.section[aria-labelledby="contato-heading"] .card h2 {
  margin-bottom: var(--space-lg);
}

.section[aria-labelledby="contato-heading"] .card p {
  flex-grow: 0;
  margin-bottom: var(--space-md);
}

.section[aria-labelledby="contato-heading"] .card p:last-child {
  margin-bottom: 0;
}

.section[aria-labelledby="contato-heading"] aside.card p:last-child {
  margin-top: var(--space-xl) !important;
  padding-top: var(--space-lg);
  border-top: 1px solid var(--color-border);
}

.section[aria-labelledby="contato-heading"] aside.card .btn {
  width: 100%;
  justify-content: center;
}

/* --- Split section (imagem + texto) --- */
.split {
  display: grid;
  gap: var(--space-2xl);
  align-items: center;
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: 1fr 1fr;
  }

  .split--reverse .split__visual {
    order: -1;
  }
}

.split__visual {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  aspect-ratio: 4/3;
  background: var(--color-bg);
}

  .split__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (min-width: 700px) {
  .service-page__gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1023px) {
  .service-directory {
    --directory-columns: 2;
  }
}

@media (max-width: 767px) {
  .service-directory {
    --directory-columns: 1;
  }

  .service-directory__controls {
    justify-content: center;
  }

  .service-directory__arrow {
    width: 42px;
    height: 42px;
  }

  .service-directory__thumb {
    height: 210px;
  }

  .service-directory__body {
    padding: 20px;
  }
}

/* --- Utilitários --- */
.text-center {
  text-align: center;
}

.mt-0 {
  margin-top: 0;
}

.mb-lg {
  margin-bottom: var(--space-xl);
}

/* --- Home: prova de autoridade no hero --- */
.hero__proof {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-lg) var(--space-2xl);
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.875rem;
  color: #d6d3d1;
}

.hero__proof-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  max-width: 16rem;
}

.hero__proof-item strong {
  display: block;
  color: #fafaf9;
  font-size: 0.9375rem;
  font-weight: 600;
}

.hero__check {
  color: #4ade80;
  flex-shrink: 0;
  font-weight: 700;
  line-height: 1.4;
}

@media (max-width: 899px) {
  .hero {
    background: linear-gradient(rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.88)), url("../img/boxtruss/boxtruss-tremembe.JPG");
    background-size: cover;
    background-position: center;
    padding-block: 2rem 2.25rem;
  }

  .hero__bg::after {
    background: rgba(0, 0, 0, 0.84);
  }

  .hero__inner {
    gap: var(--space-lg);
  }

  .hero h1 {
    font-size: 2rem;
    line-height: 1.08;
    margin-bottom: var(--space-sm);
  }

  .hero .lead {
    font-size: 0.98rem;
    line-height: 1.55;
    margin-bottom: var(--space-lg);
  }

  .hero__actions {
    align-items: stretch;
    gap: var(--space-sm);
  }

  .hero__actions .btn {
    width: 100%;
    justify-content: center;
    padding-block: 0.78rem;
  }

  .hero__proof {
    display: grid;
    gap: var(--space-sm);
    margin-top: var(--space-lg);
    padding-top: var(--space-md);
  }

  .hero__proof-item {
    max-width: none;
  }

  .hero__proof-item strong {
    font-size: 0.875rem;
    line-height: 1.35;
  }

  .hero__media {
    display: none;
  }
}

/* --- Depoimentos (home) --- */
.testimonial-strip {
  display: grid;
  gap: var(--space-lg);
}

@media (min-width: 768px) {
  .testimonial-strip {
    grid-template-columns: repeat(3, 1fr);
  }
}

.testimonial-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  height: 100%;
  box-shadow: var(--shadow-sm);
}

.testimonial-card__quote {
  margin: 0 0 var(--space-md);
  font-size: 0.9375rem;
  color: var(--color-text);
  line-height: 1.65;
}

.testimonial-card__quote::before {
  content: "\201C";
  color: var(--color-primary);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 0;
  margin-right: 0.1em;
  vertical-align: -0.12em;
}

.testimonial-card__author {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-black);
}

.testimonial-card__role {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  margin-top: var(--space-xs);
}

.section__disclaimer {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  text-align: center;
  margin-top: var(--space-lg);
  max-width: 40rem;
  margin-inline: auto;
  line-height: 1.5;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  align-items: center;
}

/* --- GTM noscript placeholder spacing (evita CLS) --- */
.gtm-noscript-slot {
  min-height: 0;
}
