/* ==========================================================================
   IMPÉRIO DESENTUPIDOR — Folha de estilos
   Identidade: preto e dourado
   --------------------------------------------------------------------------
   01. Fontes            07. Hero              13. Contato
   02. Tokens            08. Sobre             14. Rodapé
   03. Base              09. Serviços          15. WhatsApp flutuante
   04. Utilitários       10. Diferenciais      16. Animações
   05. Botões            11. Chamada (CTA)     17. Página 404
   06. Cabeçalho/menu    12. (reservado)
   ========================================================================== */

/* 01. Fontes (auto-hospedadas — licença SIL Open Font License) ----------- */
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/manrope-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Cinzel";
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url("../fonts/cinzel-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* 02. Tokens ------------------------------------------------------------- */
:root {
  /* Paleta oficial */
  --black: #111111;
  --black-2: #1B1B1B;
  --gold: #C9A23F;
  --gold-light: #E0BE68;
  --white: #FFFFFF;
  --gray-light: #F3F3F3;
  --gray: #777777;

  /* Derivados (contraste AA garantido) */
  --gold-deep: #8A6A1F;               /* dourado para textos sobre fundo claro */
  --gold-soft: rgba(201, 162, 63, .12);
  --gold-line: rgba(201, 162, 63, .38);
  --text: #1B1B1B;
  --text-muted: #666666;              /* textos secundários sobre fundo claro */
  --line: #E6E1D5;
  --line-dark: rgba(255, 255, 255, .09);
  --on-dark-muted: rgba(255, 255, 255, .72);

  /* Tipografia */
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: "Cinzel", "Times New Roman", Georgia, serif;

  /* Forma e profundidade */
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 4px 16px rgba(17, 17, 17, .06);
  --shadow: 0 18px 48px rgba(17, 17, 17, .10);
  --shadow-lg: 0 28px 70px rgba(17, 17, 17, .18);

  /* Layout */
  --header-h: 76px;
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --section-y: clamp(80px, 10vw, 128px);

  --ease: cubic-bezier(.22, .61, .36, 1);
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

img, picture, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, figure, address { margin: 0; }
address { font-style: normal; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--gold); color: var(--black); }

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

/* 04. Utilitários -------------------------------------------------------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

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

.skip-link {
  position: fixed;
  top: 12px; left: 12px;
  z-index: 200;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  background: var(--gold);
  color: var(--black);
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform .25s var(--ease);
}
.skip-link:focus { transform: none; }

.icon {
  width: 24px; height: 24px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon--fill { fill: currentColor; stroke: none; }

/* Rótulo de seção (eyebrow) */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  font-size: .75rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.eyebrow::before {
  content: "";
  width: 32px; height: 1px;
  background: currentColor;
}
.eyebrow--light { color: var(--gold); }

.section-head { max-width: 680px; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow::after {
  content: "";
  width: 32px; height: 1px;
  background: currentColor;
}

.section-title {
  font-size: clamp(1.95rem, 3.6vw, 2.9rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -.022em;
  color: var(--black);
  text-wrap: balance;
}
.section-title--light { color: var(--white); }

.section-lead {
  margin-top: 16px;
  font-size: clamp(1rem, 1.3vw, 1.125rem);
  color: var(--text-muted);
}

/* 05. Botões ------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: .8125rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease),
              transform .25s var(--ease), box-shadow .25s var(--ease);
}
.btn .icon { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--gold {
  background: var(--gold);
  color: var(--black);
  box-shadow: 0 10px 24px rgba(201, 162, 63, .22);
}
.btn--gold:hover { background: var(--gold-light); box-shadow: 0 14px 30px rgba(201, 162, 63, .34); }

.btn--outline-light { border-color: rgba(255, 255, 255, .34); color: var(--white); }
.btn--outline-light:hover { border-color: var(--gold); color: var(--gold-light); }

.btn--dark { background: var(--black); color: var(--white); }
.btn--dark:hover { background: var(--black-2); color: var(--gold-light); box-shadow: var(--shadow-sm); }

.btn--ghost { border-color: var(--gold); color: var(--black); background: transparent; }
.btn--ghost .icon { color: var(--gold-deep); }
.btn--ghost:hover { background: var(--gold); }
.btn--ghost:hover .icon { color: var(--black); }

.btn--sm { min-height: 44px; padding: 0 16px; font-size: .75rem; letter-spacing: .07em; white-space: nowrap; }
.btn--lg { min-height: 56px; padding: 0 30px; font-size: .8125rem; }
.btn--block { width: 100%; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--gold);
  font-weight: 700;
  color: var(--black);
  text-decoration: none;
  transition: color .25s var(--ease);
}
.link-arrow .icon { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.link-arrow:hover { color: var(--gold-deep); }
.link-arrow:hover .icon { transform: translateX(4px); }

/* 06. Cabeçalho e menu --------------------------------------------------- */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  background: rgba(17, 17, 17, .97);
  border-bottom: 1px solid transparent;
  transition: height .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease), background-color .3s;
}
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .header {
    background: rgba(17, 17, 17, .9);
    -webkit-backdrop-filter: saturate(140%) blur(14px);
    backdrop-filter: saturate(140%) blur(14px);
  }
}
.header.is-scrolled {
  height: 66px;
  border-bottom-color: rgba(201, 162, 63, .22);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .35);
}
.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--gold);
  text-decoration: none;
  flex: none;
}
.brand__mark { width: 40px; height: 40px; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name {
  font-family: var(--font-display);
  font-size: 1.32rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--gold);
}
.brand__sub {
  margin-top: 5px;
  padding-left: 2px;
  font-size: .56rem;
  font-weight: 700;
  letter-spacing: .42em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .78);
}

.nav { display: none; }
.nav__list { display: flex; gap: clamp(20px, 2.4vw, 36px); margin: 0; padding: 0; list-style: none; }
.nav__link {
  position: relative;
  display: inline-block;
  padding: 8px 0;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .78);
  text-decoration: none;
  transition: color .2s var(--ease);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 2px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav__link:hover, .nav__link.is-active { color: var(--white); }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }

.header__actions { display: flex; align-items: center; gap: 10px; }
.header__cta { display: none; }
.header__wa {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border: 1px solid var(--gold-line);
  border-radius: 50%;
  color: var(--gold);
  transition: background-color .25s var(--ease), color .25s var(--ease);
}
.header__wa .icon { width: 20px; height: 20px; }
.header__wa:hover { background: var(--gold); color: var(--black); }

.menu-toggle {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px; height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}
.menu-toggle__bar {
  display: block;
  width: 18px; height: 1.5px;
  border-radius: 2px;
  background: var(--white);
  transition: transform .35s var(--ease), opacity .2s;
}
.menu-toggle[aria-expanded="true"] { border-color: var(--gold-line); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  display: flex;
  flex-direction: column;
  padding: calc(var(--header-h) + 24px) var(--gutter) max(28px, env(safe-area-inset-bottom));
  background:
    radial-gradient(120% 60% at 100% 0%, rgba(201, 162, 63, .12), transparent 60%),
    var(--black);
  overflow-y: auto;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform .45s var(--ease), visibility 0s linear .45s;
}
.mobile-menu.is-open {
  transform: none;
  visibility: visible;
  transition: transform .45s var(--ease), visibility 0s;
}
.mobile-menu__list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line-dark); }
.mobile-menu__link {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line-dark);
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--white);
  text-decoration: none;
  transition: color .2s var(--ease), padding-left .3s var(--ease);
}
.mobile-menu__link span {
  min-width: 28px;
  font-family: var(--font-display);
  font-size: .8rem;
  letter-spacing: .1em;
  color: var(--gold);
}
.mobile-menu__link:hover, .mobile-menu__link:focus-visible { color: var(--gold-light); padding-left: 6px; }
.mobile-menu.is-open .mobile-menu__list li { animation: menu-in .55s var(--ease) both; animation-delay: calc(var(--i, 0) * 60ms + 120ms); }
.mobile-menu__footer { margin-top: auto; padding-top: 36px; }
.mobile-menu__note { margin-bottom: 14px; font-size: .9375rem; color: var(--on-dark-muted); }

body.menu-open { overflow: hidden; }
body.menu-open .header {
  background: transparent;
  border-bottom-color: transparent;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

@keyframes menu-in {
  from { opacity: 0; transform: translateX(24px); }
  to { opacity: 1; transform: none; }
}

@media (min-width: 992px) {
  .nav { display: block; }
  .header__cta { display: inline-flex; }
  .header__wa, .menu-toggle, .mobile-menu { display: none; }
}

/* 07. Hero --------------------------------------------------------------- */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-height: max(640px, 100svh);
  padding-top: var(--header-h);
  background: var(--black);
  color: var(--white);
  overflow: hidden;
}

.hero__media { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero__media picture, .hero__media img { width: 100%; height: 100%; }
.hero__media img {
  object-fit: cover;
  object-position: 58% 62%;
  animation: hero-zoom 2.2s var(--ease) both;
}
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(17, 17, 17, .5) 0%, rgba(17, 17, 17, .55) 22%, rgba(17, 17, 17, .9) 48%, rgba(17, 17, 17, .96) 70%, #111 100%);
}
.hero__corner { display: none; }

.hero__inner {
  position: relative;
  flex: 1;
  display: flex;
  align-items: flex-end;
}
.hero__content { max-width: 640px; padding-block: 48px 40px; }
.hero__content > * { animation: hero-in .9s var(--ease) both; animation-delay: calc(var(--i, 0) * 110ms + 80ms); }

.hero__title { margin-bottom: 22px; }
.hero__brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.7vw, 1.3rem);
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
}
.hero__brand::before {
  content: "";
  flex: none;
  width: 36px; height: 1px;
  background: currentColor;
}
.hero__headline {
  display: block;
  font-size: clamp(2.45rem, 5.4vw, 4.4rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -.03em;
  text-wrap: balance;
}
.hero__headline em { font-style: normal; color: var(--gold-light); }
.hero__lead {
  max-width: 520px;
  margin-bottom: 34px;
  font-size: clamp(1.0625rem, 1.5vw, 1.2rem);
  line-height: 1.65;
  color: rgba(255, 255, 255, .8);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero__strip {
  position: relative;
  border-top: 1px solid var(--line-dark);
  background: rgba(17, 17, 17, .72);
}
.hero__services {
  display: flex;
  margin: 0 calc(var(--gutter) * -1);
  padding: 0 var(--gutter);
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent);
  mask-image: linear-gradient(90deg, #000 85%, transparent);
}
.hero__services::-webkit-scrollbar { display: none; }
.hero__services li { display: flex; align-items: center; flex: none; }
.hero__services li + li::before {
  content: "";
  width: 5px; height: 5px;
  background: var(--gold);
  transform: rotate(45deg);
  opacity: .8;
}
.hero__services a {
  display: block;
  padding: 18px 20px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  white-space: nowrap;
  color: rgba(255, 255, 255, .74);
  text-decoration: none;
  transition: color .2s var(--ease);
}
.hero__services li:first-child a { padding-left: 0; }
.hero__services a:hover { color: var(--gold-light); }

@media (min-width: 600px) and (max-width: 991px) {
  .hero__media::after {
    background:
      linear-gradient(180deg, rgba(17, 17, 17, .35) 0%, rgba(17, 17, 17, .3) 30%, rgba(17, 17, 17, .86) 60%, rgba(17, 17, 17, .96) 78%, #111 100%);
  }
}

@media (min-width: 992px) {
  .hero { min-height: clamp(680px, 100svh, 940px); }
  .hero__media { left: auto; width: 58%; }
  .hero__media::after {
    background:
      linear-gradient(90deg, #111 0%, rgba(17, 17, 17, .82) 18%, rgba(17, 17, 17, .25) 52%, rgba(17, 17, 17, .3) 100%),
      linear-gradient(0deg, rgba(17, 17, 17, .85) 0%, transparent 30%);
  }
  .hero__corner {
    display: block;
    position: absolute;
    top: calc(var(--header-h) + 32px);
    right: 32px;
    z-index: 1;
    width: 64px; height: 64px;
    border: solid var(--gold);
    border-width: 1px 1px 0 0;
    opacity: .75;
  }
  .hero__inner { align-items: center; }
  .hero__content { padding-block: 64px; }
  .hero__services { justify-content: space-between; -webkit-mask-image: none; mask-image: none; }
}

@keyframes hero-in {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}
@keyframes hero-zoom {
  from { transform: scale(1.06); }
  to { transform: scale(1); }
}

/* 08. Sobre -------------------------------------------------------------- */
.about { background: var(--white); }
.about__grid { display: grid; gap: clamp(64px, 8vw, 104px); align-items: center; }

.about__media {
  position: relative;
  isolation: isolate;
  margin: 18px 0 0 18px;
  padding: 0 clamp(12px, 3vw, 32px) clamp(48px, 7vw, 64px) 0;
}
.about__media::before {
  content: "";
  position: absolute;
  top: -18px; left: -18px;
  z-index: -1;
  width: 62%; height: 72%;
  border: 1px solid var(--gold);
  border-radius: calc(var(--radius) + 4px);
}
.about__figure { overflow: hidden; border-radius: var(--radius); background: var(--gray-light); }
.about__figure picture, .about__figure img { width: 100%; height: 100%; }
.about__figure img { object-fit: cover; transition: transform 1.2s var(--ease); }
.about__figure--main { aspect-ratio: 4 / 3; box-shadow: var(--shadow); }
.about__media:hover .about__figure--main img { transform: scale(1.03); }
.about__figure--detail {
  position: absolute;
  right: 0; bottom: 0;
  width: 46%;
  aspect-ratio: 4 / 3;
  border: 6px solid var(--white);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
}
.about__badge {
  position: absolute;
  top: 20px; left: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px 10px 12px;
  border: 1px solid var(--gold-line);
  border-radius: 12px;
  background: rgba(17, 17, 17, .86);
  color: var(--gold);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.about__badge-mark { width: 30px; height: 30px; }
.about__badge span { display: flex; flex-direction: column; line-height: 1; }
.about__badge strong { font-family: var(--font-display); font-size: .95rem; letter-spacing: .1em; text-transform: uppercase; }
.about__badge small { margin-top: 4px; font-size: .5rem; font-weight: 700; letter-spacing: .38em; text-transform: uppercase; color: rgba(255, 255, 255, .8); }

.about__text { margin-top: 22px; font-size: 1.0625rem; color: var(--text-muted); }
.about__text p + p { margin-top: 14px; }

.about__highlights {
  display: grid;
  gap: 12px;
  margin: 32px 0 36px;
  padding: 0;
  list-style: none;
}
.about__highlights li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: .9375rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--black);
  transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.about__highlights li:hover { border-color: var(--gold-line); transform: translateX(3px); }
.about__check {
  display: grid;
  place-items: center;
  flex: none;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--black);
  color: var(--gold);
}
.about__check .icon { width: 15px; height: 15px; stroke-width: 2.5; }

.about__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 30px; }

@media (min-width: 576px) {
  .about__highlights { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 992px) {
  .about__grid { grid-template-columns: 1.05fr 1fr; }
}

/* 09. Serviços (carrossel) ----------------------------------------------- */
.services { background: var(--gray-light); }

.carousel { position: relative; }
.carousel__viewport {
  --gap: 20px;
  display: flex;
  gap: var(--gap);
  margin: -14px calc(var(--gutter) * -1) 0;
  padding: 14px var(--gutter) 30px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.carousel__viewport::-webkit-scrollbar { display: none; }

.service-card {
  position: relative;
  isolation: isolate;
  flex: 0 0 84%;
  display: flex;
  flex-direction: column;
  padding: 32px 26px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  scroll-snap-align: start;
  scroll-margin-top: calc(var(--header-h) + 140px);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
}
.service-card::before {
  content: "";
  position: absolute;
  top: -42px; right: -42px;
  z-index: -1;
  width: 128px; height: 128px;
  border-radius: 50%;
  background: var(--gold-soft);
  transition: transform .6s var(--ease);
}
.service-card::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .5s var(--ease);
}
.service-card__index {
  position: absolute;
  top: 20px; right: 24px;
  font-family: var(--font-display);
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--gold-deep);
}
.service-card__icon {
  display: grid;
  place-items: center;
  width: 64px; height: 64px;
  margin-bottom: 26px;
  border-radius: 16px;
  background: var(--black);
  color: var(--gold);
  box-shadow: 0 0 0 5px var(--gold-soft), 0 12px 24px rgba(17, 17, 17, .18);
  transition: background-color .4s var(--ease), color .4s var(--ease), transform .4s var(--ease);
}
.service-card__icon .icon { width: 32px; height: 32px; stroke-width: 1.6; }
.service-card__title {
  margin-bottom: 10px;
  font-size: 1.1875rem;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -.012em;
  color: var(--black);
}
.service-card__text {
  flex: 1;
  margin-bottom: 24px;
  font-size: .9375rem;
  line-height: 1.65;
  color: var(--text-muted);
}
.service-card__footer { padding-top: 20px; border-top: 1px solid var(--line); }

.service-card:target { border-color: var(--gold); }

@media (hover: hover) {
  .service-card:hover {
    transform: translateY(-6px);
    border-color: var(--gold-line);
    box-shadow: var(--shadow);
  }
  .service-card:hover::before { transform: scale(1.3); }
  .service-card:hover::after { transform: scaleX(1); }
  .service-card:hover .service-card__icon { background: var(--gold); color: var(--black); transform: rotate(-4deg); }
  .service-card:hover .btn--ghost { background: var(--gold); }
  .service-card:hover .btn--ghost .icon { color: var(--black); }
}

.carousel__arrow {
  position: absolute;
  top: calc(50% - 30px);
  z-index: 3;
  display: none;
  place-items: center;
  width: 54px; height: 54px;
  padding: 0;
  border: 1px solid var(--gold-line);
  border-radius: 50%;
  background: var(--black);
  color: var(--gold);
  box-shadow: 0 14px 34px rgba(17, 17, 17, .25);
  cursor: pointer;
  transform: translateY(-50%);
  transition: background-color .25s var(--ease), color .25s var(--ease), opacity .25s var(--ease), transform .25s var(--ease);
}
.carousel__arrow--prev { left: -27px; }
.carousel__arrow--next { right: -27px; }
.carousel__arrow:hover:not(:disabled) { background: var(--gold); color: var(--black); transform: translateY(-50%) scale(1.06); }
.carousel__arrow:disabled { opacity: 0; pointer-events: none; }

.carousel__bar { display: flex; align-items: center; gap: 20px; margin-top: 6px; }
.carousel__progress {
  position: relative;
  flex: 1;
  height: 3px;
  border-radius: 3px;
  background: #DDD8CB;
  overflow: hidden;
}
.carousel__progress-fill {
  position: absolute;
  top: 0; left: 0;
  width: 30%; height: 100%;
  border-radius: 3px;
  background: var(--gold);
  transition: transform .12s linear;
}
/* No celular os botões ficam à esquerda para não disputar espaço com o WhatsApp flutuante */
.carousel__buttons { display: flex; gap: 10px; order: -1; }
.carousel__btn {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  padding: 0;
  border: 1px solid var(--black);
  border-radius: 50%;
  background: var(--black);
  color: var(--gold);
  cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease), opacity .25s;
}
.carousel__btn .icon { width: 20px; height: 20px; }
.carousel__btn:hover:not(:disabled) { background: var(--gold); border-color: var(--gold); color: var(--black); }
.carousel__btn:disabled { opacity: .3; cursor: default; }

.services__note {
  margin-top: clamp(36px, 5vw, 52px);
  text-align: center;
  color: var(--text-muted);
}
.services__note a {
  font-weight: 700;
  color: var(--black);
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: color .2s var(--ease);
}
.services__note a:hover { color: var(--gold-deep); }

@media (min-width: 576px) {
  .service-card { flex-basis: calc((100% - var(--gap)) / 1.6); }
}
@media (min-width: 768px) {
  .carousel__viewport { --gap: 24px; margin-inline: 0; padding-inline: 4px; scroll-padding-inline: 4px; }
  .service-card { flex-basis: calc((100% - var(--gap) * 2) / 2.3); }
  .carousel__arrow { display: grid; }
  .carousel__buttons { display: none; }
}
@media (min-width: 1100px) {
  .service-card { flex-basis: calc((100% - var(--gap) * 3) / 3.25); padding: 36px 30px 30px; }
}

/* 10. Diferenciais ------------------------------------------------------- */
.features { background: var(--white); }
.features__grid {
  display: grid;
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
  overflow: hidden;
}

.features__intro {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  padding: clamp(32px, 4vw, 48px);
  background:
    radial-gradient(90% 70% at 0% 0%, rgba(201, 162, 63, .14), transparent 60%),
    var(--black);
  overflow: hidden;
}
.features__intro .section-title { font-size: clamp(1.75rem, 2.8vw, 2.35rem); }
.features__intro-text { position: relative; z-index: 1; max-width: 340px; color: var(--on-dark-muted); }
.features__watermark {
  position: absolute;
  right: -30px; bottom: -40px;
  width: 200px; height: 200px;
  color: var(--gold);
  opacity: .07;
  pointer-events: none;
}

.feature {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(28px, 3.5vw, 44px);
  background: var(--white);
  transition: background-color .4s var(--ease);
}
.feature::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .5s var(--ease);
}
.feature__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: auto; padding-bottom: 28px; }
.feature__icon {
  display: grid;
  place-items: center;
  width: 58px; height: 58px;
  border: 1px solid var(--gold-line);
  border-radius: 50%;
  color: var(--gold-deep);
  transition: background-color .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease);
}
.feature__icon .icon { width: 26px; height: 26px; }
.feature__num {
  font-family: var(--font-display);
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--text-muted);
  transition: color .4s var(--ease);
}
.feature__title {
  margin-bottom: 10px;
  font-size: 1.125rem;
  font-weight: 800;
  line-height: 1.35;
  color: var(--black);
  transition: color .4s var(--ease);
}
.feature__text { font-size: .9375rem; color: var(--text-muted); transition: color .4s var(--ease); }

@media (hover: hover) {
  .feature:hover { background: var(--black); }
  .feature:hover::before { transform: scaleX(1); }
  .feature:hover .feature__icon { background: var(--gold); border-color: var(--gold); color: var(--black); }
  .feature:hover .feature__num { color: var(--gold); }
  .feature:hover .feature__title { color: var(--white); }
  .feature:hover .feature__text { color: var(--on-dark-muted); }
}

@media (min-width: 768px) {
  .features__grid { grid-template-columns: 1fr 1fr; }
  .features__intro { grid-column: span 2; }
}
@media (min-width: 1100px) {
  .features__grid { grid-template-columns: repeat(3, 1fr); }
  .features__intro { grid-column: auto; }
}

/* 11. Chamada para ação -------------------------------------------------- */
.cta {
  position: relative;
  isolation: isolate;
  padding-block: clamp(88px, 12vw, 148px);
  background: var(--black);
  color: var(--white);
  text-align: center;
  overflow: hidden;
}
.cta__bg { position: absolute; inset: 0; z-index: -1; }
.cta__bg picture, .cta__bg img { width: 100%; height: 100%; }
.cta__bg img { object-fit: cover; }
.cta__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 55% at 50% 50%, rgba(201, 162, 63, .14), transparent 70%),
    radial-gradient(ellipse at center, rgba(17, 17, 17, .78) 0%, rgba(17, 17, 17, .94) 70%);
}

.cta__frame {
  position: relative;
  max-width: 860px;
  margin-inline: auto;
  padding: clamp(44px, 6vw, 76px) clamp(22px, 5vw, 72px);
  border: 1px solid var(--gold-line);
  border-radius: 6px;
  background: rgba(17, 17, 17, .35);
}
.cta__frame::before, .cta__frame::after {
  content: "";
  position: absolute;
  width: 34px; height: 34px;
  border-color: var(--gold);
  border-style: solid;
}
.cta__frame::before { top: -1px; left: -1px; border-width: 2px 0 0 2px; border-top-left-radius: 6px; }
.cta__frame::after { right: -1px; bottom: -1px; border-width: 0 2px 2px 0; border-bottom-right-radius: 6px; }

.cta__icon {
  display: grid;
  place-items: center;
  width: 76px; height: 76px;
  margin: 0 auto 28px;
  border: 1px solid var(--gold-line);
  border-radius: 50%;
  background: var(--black);
  color: var(--gold);
}
.cta__icon svg { width: 40px; height: 40px; }
.cta__title {
  font-size: clamp(2rem, 4.6vw, 3.35rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.025em;
  text-wrap: balance;
}
.cta__title span { color: var(--gold-light); }
.cta__text {
  max-width: 560px;
  margin: 20px auto 38px;
  font-size: clamp(1.0625rem, 1.5vw, 1.1875rem);
  color: var(--on-dark-muted);
}

/* 13. Contato ------------------------------------------------------------ */
.contact { background: var(--gray-light); }
.contact__grid { display: grid; gap: 24px; }
.contact__list { display: grid; gap: 14px; align-content: start; margin: 0; padding: 0; list-style: none; }
.contact-item[hidden] { display: none; }

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.contact-item:hover { border-color: var(--gold-line); box-shadow: var(--shadow-sm); }
.contact-item__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--black);
  color: var(--gold);
}
.contact-item__icon .icon { width: 22px; height: 22px; }
.contact-item__body { flex: 1; min-width: 0; }
.contact-item__label {
  margin-bottom: 4px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.contact-item__value {
  display: block;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.5;
  color: var(--black);
  overflow-wrap: anywhere;
}
.contact-item__value.is-pending { font-weight: 600; color: var(--text-muted); }
.contact-item__link { text-decoration: none; }
.contact-item__link:hover { color: var(--gold-deep); }
.contact-item__action { margin-top: 14px; }
.contact-item__maplink {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-size: .875rem;
  font-weight: 700;
  color: var(--gold-deep);
  text-decoration: none;
}
.contact-item__maplink .icon { width: 15px; height: 15px; }
.contact-item__maplink:hover { text-decoration: underline; }
.contact-item__maplink[hidden], .contact-item__action[hidden] { display: none; }

.contact-item--primary { border-color: var(--black); background: var(--black); }
.contact-item--primary:hover { border-color: var(--gold-line); }
.contact-item--primary .contact-item__icon { background: var(--gold); color: var(--black); }
.contact-item--primary .contact-item__label { color: var(--gold); }
.contact-item--primary .contact-item__value { color: var(--white); }
.contact-item--primary .contact-item__value.is-pending { color: var(--on-dark-muted); }

.contact__map {
  position: relative;
  min-height: 360px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--black-2);
  overflow: hidden;
}
.contact__map iframe {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  border: 0;
}

.map-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px;
  text-align: center;
  color: var(--white);
  background:
    linear-gradient(115deg, transparent 46%, rgba(201, 162, 63, .16) 46.4%, rgba(201, 162, 63, .16) 47.6%, transparent 48%),
    linear-gradient(22deg, transparent 62%, rgba(255, 255, 255, .06) 62.3%, rgba(255, 255, 255, .06) 64%, transparent 64.3%),
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px) 0 0 / 44px 44px,
    radial-gradient(60% 60% at 50% 45%, rgba(201, 162, 63, .1), transparent 70%),
    var(--black-2);
}
.map-placeholder__pin {
  position: relative;
  display: grid;
  place-items: center;
  width: 68px; height: 68px;
  margin-bottom: 22px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--black);
  box-shadow: 0 0 0 10px rgba(201, 162, 63, .14), 0 0 0 22px rgba(201, 162, 63, .06);
}
.map-placeholder__pin .icon { width: 30px; height: 30px; }
.map-placeholder__title { font-size: 1.25rem; font-weight: 800; }
.map-placeholder__text { max-width: 300px; margin-top: 6px; font-size: .9375rem; color: var(--on-dark-muted); }

@media (min-width: 992px) {
  .contact__grid { grid-template-columns: 1fr 1.15fr; align-items: stretch; }
  .contact__map { min-height: 100%; }
}

/* 14. Rodapé ------------------------------------------------------------- */
.footer {
  padding-top: clamp(64px, 8vw, 96px);
  border-top: 1px solid rgba(201, 162, 63, .3);
  background: var(--black);
  color: var(--on-dark-muted);
}
.footer__grid { display: grid; gap: 44px; }
.footer__about p { max-width: 340px; margin: 22px 0 26px; font-size: .9375rem; }
.footer__title {
  margin-bottom: 20px;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
}
.footer__list { display: grid; gap: 11px; margin: 0; padding: 0; list-style: none; font-size: .9375rem; }
.footer__list a { color: var(--on-dark-muted); text-decoration: none; transition: color .2s var(--ease); }
.footer__list a:hover { color: var(--gold-light); }
.footer__contact li { display: flex; align-items: flex-start; gap: 12px; }
.footer__contact li[hidden] { display: none; }
.footer__contact .icon { width: 18px; height: 18px; margin-top: 4px; color: var(--gold); }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: clamp(52px, 7vw, 76px);
  padding-block: 26px calc(26px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line-dark);
  font-size: .8125rem;
  color: rgba(255, 255, 255, .6);
}
.footer__top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, .75);
  text-decoration: none;
  transition: color .2s var(--ease);
}
.footer__top .icon { width: 16px; height: 16px; }
.footer__top:hover { color: var(--gold-light); }

@media (max-width: 767px) {
  .footer__bottom { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
}
@media (min-width: 768px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1100px) {
  .footer__grid { grid-template-columns: 1.35fr .8fr 1.25fr 1.2fr; gap: 48px; }
}

/* 15. WhatsApp flutuante ------------------------------------------------- */
.wa-float {
  position: fixed;
  right: clamp(16px, 2.5vw, 28px);
  bottom: max(clamp(16px, 2.5vw, 28px), env(safe-area-inset-bottom));
  z-index: 90;
  display: grid;
  place-items: center;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--black);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .32);
  transition: transform .3s var(--ease), background-color .3s var(--ease), opacity .3s var(--ease);
}
.wa-float::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid var(--gold);
  border-radius: 50%;
  animation: wa-pulse 2.8s var(--ease) infinite;
}
.wa-float .icon { width: 28px; height: 28px; }
.wa-float:hover { transform: translateY(-3px); background: var(--gold-light); }
.wa-float__label {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  padding: 8px 14px;
  border: 1px solid var(--gold-line);
  border-radius: 8px;
  background: var(--black);
  color: var(--white);
  font-size: .8125rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translate(8px, -50%);
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.wa-float:hover .wa-float__label, .wa-float:focus-visible .wa-float__label { opacity: 1; transform: translate(0, -50%); }
body.menu-open .wa-float { opacity: 0; pointer-events: none; }

@keyframes wa-pulse {
  0% { transform: scale(1); opacity: .65; }
  70%, 100% { transform: scale(1.5); opacity: 0; }
}

/* 16. Animações de entrada ----------------------------------------------- */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

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

/* 17. Página 404 --------------------------------------------------------- */
.page-404 {
  display: grid;
  place-items: center;
  min-height: 100svh;
  padding: 48px var(--gutter);
  background:
    radial-gradient(70% 60% at 50% 30%, rgba(201, 162, 63, .14), transparent 70%),
    var(--black);
  color: var(--white);
  text-align: center;
}
.page-404__code {
  font-family: var(--font-display);
  font-size: clamp(4.5rem, 16vw, 8rem);
  font-weight: 700;
  line-height: 1;
  color: var(--gold);
}
.page-404 h1 { margin: 12px 0 14px; font-size: clamp(1.6rem, 4vw, 2.2rem); font-weight: 800; }
.page-404 p { max-width: 460px; margin: 0 auto 32px; color: var(--on-dark-muted); }
.page-404 .brand { justify-content: center; margin-bottom: 40px; }
