:root {
  --yellow: #FFC700;
  --yellow-dim: #E0AC00;
  --black: #0A0A0A;
  --black-soft: #131313;
  --black-card: #1B1B1B;
  --white: #FFFFFF;
  --gray: #6B6B6B;
  --gray-light: #F4F4F4;
  --font-display: 'Russo One', sans-serif; /* placeholder pra Ethnocentric — sem licença livre, trocar via @font-face quando o arquivo da fonte chegar */
  --font-body: 'Montserrat', sans-serif;
  --ease: cubic-bezier(.16,1,.3,1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: auto; }

body {
  font-family: var(--font-body);
  background: var(--black);
  color: var(--white);
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.text-accent { color: var(--yellow); }
.text-dark { color: var(--black); }
.text-dark-sub { color: #2a2a2a; }

/* ---------- Preloader ---------- */
#preloader {
  position: fixed;
  inset: 0;
  background: var(--black);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}
#preloader-logo {
  width: 160px;
  opacity: 0;
  transform: scale(.7);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 15px;
  font-family: var(--font-display);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .25s var(--ease), background .25s, color .25s, border-color .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--yellow); color: var(--black); }
.btn-primary:hover { background: var(--white); }
.btn-dark { background: var(--black); color: var(--yellow); }
.btn-dark:hover { background: var(--black-soft); }
.btn-nav { padding: 10px 20px; font-size: 13px; }
.full { width: 100%; }

.btn-whatsapp { background: #1DA851; color: var(--black); gap: 10px; }
.btn-whatsapp:hover { background: #178C42; }
.wa-icon { width: 18px; height: 18px; fill: currentColor; flex-shrink: 0; }

/* Anel animado em loop — usado nos CTAs de proposta */
.btn-glow {
  position: relative;
  background: transparent;
  isolation: isolate;
}
.btn-glow::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: inherit;
  background: conic-gradient(from var(--angle, 0deg), transparent 0deg, var(--ring-color, var(--black)) 70deg, transparent 160deg, transparent 360deg);
  animation: ring-spin 2.6s linear infinite;
  z-index: 0;
}
.btn-glow::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--btn-face, var(--yellow));
  z-index: 1;
}
.btn-glow .btn-label { position: relative; z-index: 2; }
.btn-glow.btn-primary { --btn-face: var(--yellow); --ring-color: var(--black); }
.btn-glow.btn-dark { --btn-face: var(--black); --ring-color: var(--yellow); }
@property --angle {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}
@keyframes ring-spin { to { --angle: 360deg; } }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  background: rgba(10,10,10,.7);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  gap: 24px;
}
.logo-img { height: 38px; width: auto; }
.main-nav {
  display: flex;
  gap: 20px;
  flex: 1;
  justify-content: center;
}
.main-nav a {
  font-size: 13px;
  font-weight: 600;
  color: var(--white);
  opacity: .85;
  white-space: nowrap;
  transition: opacity .2s, color .2s;
}
.main-nav a:hover { opacity: 1; color: var(--yellow); }
.menu-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; }
.menu-toggle span { width: 24px; height: 2px; background: var(--white); }

/* ---------- Section backgrounds ---------- */
.section-dark { background: var(--black); color: var(--white); }
.section-darker { background: var(--black-soft); color: var(--white); }
.section-light { background: var(--white); color: var(--black); }
.section-accent { background: var(--yellow); color: var(--black); }

/* ---------- ShapeGrid (fundo animado das seções escuras) ---------- */
.shape-bg-section { position: relative; overflow: hidden; isolation: isolate; }
.shapegrid-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  opacity: .25;
}
.shape-bg-section .container { position: relative; z-index: 3; pointer-events: none; }
.shape-bg-section .container a,
.shape-bg-section .container button,
.shape-bg-section .container input,
.shape-bg-section .container select,
.shape-bg-section .container textarea,
.shape-bg-section .container .service-card,
.shape-bg-section .container .location-card,
.shape-bg-section .container .faq-item { pointer-events: auto; }

.eyebrow {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 13px;
  font-weight: 700;
  color: var(--yellow);
  margin-bottom: 14px;
}
.eyebrow-dark { color: var(--black); }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
}
.section-sub { color: var(--gray); margin-bottom: 40px; max-width: 520px; }

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  padding: 140px 24px 80px;
}
.hero-banner-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,.55) 0%, rgba(10,10,10,.82) 60%, var(--black) 100%);
  z-index: 1;
}
.hero-logo {
  width: clamp(140px, 16vw, 200px);
  margin: 0 auto 28px;
}
.hero-inner { position: relative; z-index: 3; max-width: 820px; }
.hero-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.1;
  margin-bottom: 24px;
}
.hero-sub {
  font-size: 18px;
  color: #C9C9C9;
  max-width: 620px;
  margin: 0 auto 36px;
  line-height: 1.6;
}
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero-scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: .1em;
}
.hero-scroll-hint span {
  width: 1px;
  height: 28px;
  background: linear-gradient(to bottom, var(--yellow), transparent);
  animation: scrollPulse 1.8s ease-in-out infinite;
}
@keyframes scrollPulse { 0%,100% { opacity: .3; } 50% { opacity: 1; } }

/* ---------- Stats — carrossel infinito ---------- */
.stats-marquee {
  background: var(--black);
  border-top: 1px solid rgba(255,199,0,.25);
  border-bottom: 1px solid rgba(255,199,0,.25);
  padding: 18px 0;
  overflow: hidden;
}
.marquee { width: 100%; overflow: hidden; }
.marquee-track {
  display: flex;
  gap: 56px;
  width: max-content;
  white-space: nowrap;
  animation: marquee-scroll 26s linear infinite;
}
.marquee-track span {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .03em;
  color: var(--yellow);
}
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Quem Somos ---------- */
.about { padding: 100px 0; }
.about-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-text .section-title { color: var(--black); }
.about-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.about-stat {
  background: var(--gray-light);
  border-radius: 14px;
  padding: 22px 20px;
  text-align: center;
}
.about-stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 900;
  color: var(--yellow-dim);
  margin-bottom: 6px;
}
.about-stat p { font-size: 13px; color: var(--gray); font-weight: 600; }

/* ---------- Services ---------- */
.services { padding: 110px 0; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 50px;
}
.service-card {
  position: relative;
  background: linear-gradient(160deg, var(--black-card), #0c0c0c 75%);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 16px;
  padding: 32px 24px;
  overflow: hidden;
  transition: transform .35s var(--ease), border-color .35s;
}
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,199,0,.14), transparent 60%);
  pointer-events: none;
}
.service-card:hover { transform: translateY(-6px); border-color: var(--yellow); }
.service-image {
  position: relative;
  aspect-ratio: 16/10;
  border-radius: 10px;
  margin-bottom: 20px;
  overflow: hidden;
  border: 1px solid rgba(255,199,0,.3);
}
.service-image img { width: 100%; height: 100%; object-fit: cover; }
.service-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,199,0,.28), transparent 65%);
}
.service-card h3 { position: relative; font-family: var(--font-display); font-size: 19px; margin-bottom: 10px; }
.service-card p { position: relative; font-size: 14px; color: #A8A8A8; line-height: 1.6; }

/* ---------- Gallery ---------- */
.gallery { padding: 110px 0; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.gallery-item {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: 14px;
  overflow: hidden;
  background: var(--gray-light);
  transition: transform .35s var(--ease);
}
.gallery-item:hover { transform: translateY(-6px); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px 16px 14px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.82));
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
}

/* ---------- Calculadora de economia ---------- */
.calculator { position: relative; padding: 110px 0; overflow: visible; }
.calculator-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.calculator-text .section-title { color: var(--black); }
.calc-3d-icon {
  position: absolute;
  filter: drop-shadow(0 22px 26px rgba(0,0,0,.35));
  animation: calc-icon-float 4.5s ease-in-out infinite;
  z-index: 2;
  pointer-events: none;
}
.calc-3d-icon-desktop { top: -50px; right: 2%; width: 140px; }
.calc-3d-icon-mobile { display: none; }
@keyframes calc-icon-float {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(-16px) rotate(3deg); }
}
.calculator-card {
  background: var(--black);
  border-radius: 20px;
  padding: 36px;
  max-width: 460px;
  margin: 0 auto;
}
.calc-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--yellow);
  margin-bottom: 10px;
}
.calc-input-wrap {
  display: flex;
  align-items: center;
  background: var(--black-card);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px;
  padding: 4px 14px;
  margin-bottom: 20px;
  transition: border-color .2s;
}
.calc-input-wrap:focus-within { border-color: var(--yellow); }
.calc-input-wrap span { color: var(--gray); font-size: 14px; font-weight: 600; margin-right: 8px; }
.calc-input-wrap input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 700;
  padding: 12px 0;
  -moz-appearance: textfield;
  appearance: textfield;
}
.calc-input-wrap input::-webkit-inner-spin-button,
.calc-input-wrap input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.calc-disclaimer { font-size: 12px; color: var(--gray); margin-top: 16px; line-height: 1.5; }
.calc-loading { display: none; margin-top: 20px; }
.calc-loading.active { display: block; }
.calc-loading p { font-size: 13px; font-weight: 600; color: var(--yellow); margin-bottom: 10px; }
.calc-progress-track {
  width: 100%;
  height: 6px;
  border-radius: 4px;
  background: rgba(255,255,255,.12);
  overflow: hidden;
}
.calc-progress-fill {
  width: 0%;
  height: 100%;
  border-radius: 4px;
  background: var(--yellow);
  transition: width 3.6s linear;
}

/* ---------- Modal da calculadora ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(10,10,10,.8);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s var(--ease);
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }
.modal-card {
  position: relative;
  background: var(--white);
  color: var(--black);
  border-radius: 20px;
  padding: 44px 36px;
  max-width: 420px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  text-align: center;
  transform: translateY(20px) scale(.96);
  transition: transform .3s var(--ease);
}
.modal-overlay.open .modal-card { transform: translateY(0) scale(1); }
.modal-card-results { max-width: 480px; text-align: left; }
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--gray-light);
  color: var(--black);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.modal-hero { text-align: center; margin: 4px 0 22px; }
.modal-hero-label { display: block; font-size: 13px; font-weight: 600; color: var(--gray); margin-bottom: 6px; }
.modal-value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(34px, 6vw, 46px);
  font-weight: 900;
  color: var(--yellow-dim);
}

.modal-progress { margin-bottom: 24px; }
.modal-progress-track {
  width: 100%;
  height: 10px;
  border-radius: 6px;
  background: var(--gray-light);
  overflow: hidden;
  margin-bottom: 8px;
}
.modal-progress-fill {
  width: 0%;
  height: 100%;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--yellow-dim), var(--yellow));
  transition: width 1.1s var(--ease);
}
.modal-progress-label { font-size: 13px; color: var(--gray); }
.modal-progress-label strong { color: var(--black); }

.modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 22px;
}
.modal-stat {
  background: var(--gray-light);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.modal-stat-full { grid-column: 1 / -1; }
.modal-stat-label { font-size: 12px; color: var(--gray); font-weight: 600; }
.modal-stat-value { font-family: var(--font-display); font-size: 18px; font-weight: 900; color: var(--black); }
.modal-stat-accent { color: var(--yellow-dim); }
.modal-disclaimer { font-size: 12px; color: var(--gray); line-height: 1.5; margin-bottom: 20px; }

/* ---------- FAQ ---------- */
.faq { padding: 110px 0; }
.faq-list { display: flex; flex-direction: column; gap: 14px; max-width: 720px; margin-top: 40px; }
.faq-item {
  position: relative;
  background: var(--black-card);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  padding: 0 22px;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 0;
  font-family: var(--font-display);
  font-size: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  flex-shrink: 0;
  font-size: 22px;
  color: var(--yellow);
  transition: transform .3s;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 0 20px; color: #B8B8B8; font-size: 14px; line-height: 1.6; }

/* ---------- Contact form ---------- */
.contact-form { padding: 110px 0; }
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.contact-text .section-title { color: var(--black); }
.form-card {
  background: var(--black);
  border-radius: 20px;
  padding: 36px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form-card label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--yellow);
}
.form-card .full { grid-column: 1 / -1; }
.form-card input, .form-card select, .form-card textarea {
  background: var(--black-card);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 14px;
  outline: none;
  transition: border-color .2s;
}
.form-card input:focus, .form-card select:focus, .form-card textarea:focus { border-color: var(--yellow); }
.form-card textarea { resize: vertical; }

/* ---------- Location ---------- */
.location { padding: 110px 0; }
.location-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 40px;
  max-width: 640px;
}
.location-card {
  background: var(--black-card);
  border-radius: 16px;
  padding: 28px;
  border: 1px solid rgba(255,255,255,.06);
}
.location-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255,199,0,.12);
  border: 1px solid rgba(255,199,0,.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
}
.location-card h3 { font-family: var(--font-display); color: var(--yellow); margin-bottom: 10px; font-size: 16px; }
.location-card p { color: #C9C9C9; line-height: 1.6; font-size: 15px; }
.location-card-accent { border-color: var(--yellow); }
.location-card-accent a:hover { color: var(--yellow); }

/* ---------- Footer ---------- */
.site-footer { background: var(--black); border-top: 1px solid rgba(255,255,255,.06); padding-top: 50px; }
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  padding-bottom: 36px;
}
.footer-logo { height: 32px; opacity: .9; }
.footer-nav { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-nav a { font-size: 14px; color: #C9C9C9; }
.footer-nav a:hover { color: var(--yellow); }
.btn-instagram {
  background: transparent;
  border: 1px solid rgba(255,255,255,.15);
  color: #C9C9C9;
  gap: 8px;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 600;
}
.btn-instagram:hover { border-color: var(--yellow); color: var(--yellow); transform: none; }
.ig-icon { width: 15px; height: 15px; fill: currentColor; flex-shrink: 0; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: var(--gray);
}

/* ---------- Reveal animation base state ---------- */
.reveal-up { opacity: 0; transform: translateY(40px); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .location-grid { grid-template-columns: 1fr; }
  .contact-inner { grid-template-columns: 1fr; }
  .about-inner { grid-template-columns: 1fr; }
  .calculator-inner { grid-template-columns: 1fr; }
  .calc-3d-icon-desktop { display: none; }
  .calc-3d-icon-mobile {
    display: block;
    top: -98px;
    left: 50%;
    transform: translateX(-50%);
    width: 190px;
  }
  .calc-3d-icon-mobile {
    animation: calc-icon-float-mobile 4.5s ease-in-out infinite;
  }
  @keyframes calc-icon-float-mobile {
    0%, 100% { transform: translateX(-50%) translateY(0) rotate(-3deg); }
    50% { transform: translateX(-50%) translateY(-14px) rotate(3deg); }
  }
}

@media (max-width: 860px) {
  .main-nav {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(10,10,10,.97);
    padding: 16px 24px;
    gap: 16px;
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s, transform .25s;
  }
  .main-nav.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .menu-toggle { display: flex; }
  .menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle.active span:nth-child(2) { opacity: 0; }
  .menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .btn-nav { display: none; }
  .services-grid, .gallery-grid { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: 1fr 1fr; }
  .form-card { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero { padding: 130px 20px 60px; }
  .hero-logo { width: 110px; margin-bottom: 18px; }
  .hero-title { font-size: 26px; line-height: 1.25; margin-bottom: 14px; }
  .hero-sub { font-size: 14px; line-height: 1.55; margin-bottom: 24px; }
  .hero-actions { gap: 12px; }
}
