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

:root {
  --primary: #b6955d;
  --primary-light: #d6bc89;
  --bg-dark: #0b2d26;
  --bg-darker: #071d19;
  --text: #f7f3ea;
  --text-muted: #cfc2ab;
  --border: rgba(212, 190, 151, 0.15);
  --surface: rgba(255, 255, 255, 0.02);
  --gap: 2rem;
  --gap-lg: 3rem;
  --radius: 8px;
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  isolation: isolate;
  font-family: "Instrument Sans", sans-serif;
  background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-darker) 100%);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

body.is-loading {
  overflow: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(rgba(7, 29, 25, 0.78), rgba(7, 29, 25, 0.78)),
    radial-gradient(circle at 20% 20%, rgba(214, 188, 137, 0.05) 0%, transparent 30%),
    radial-gradient(circle at 80% 30%, rgba(214, 188, 137, 0.04) 0%, transparent 26%),
    url('../img/background-gold.png') center/cover no-repeat;
  opacity: 0.18;
  pointer-events: none;
}

.page-intro {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(rgba(7, 29, 25, 0.9), rgba(7, 29, 25, 0.9)),
    url('../img/background-gold.png') center/cover no-repeat;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}

.page-intro::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(214, 188, 137, 0.12) 0%, transparent 55%);
  pointer-events: none;
}

.page-intro__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1rem;
  justify-items: center;
  padding: 2rem;
  opacity: 0;
  transform: translateY(18px) scale(0.94);
}

.page-intro__logo {
  width: min(120px, 24vw);
  height: auto;
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.28));
}

.page-intro__wordmark {
  width: min(320px, 68vw);
  height: auto;
  opacity: 0.92;
}

body.is-loading .page-intro__inner {
  animation: introMarkReveal 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.15s forwards;
}

body.is-ready .page-intro {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

body.is-ready .page-intro__inner {
  transform: translateY(-10px) scale(1.02);
  transition: transform 0.7s ease, opacity 0.4s ease;
  opacity: 0;
}

@keyframes introMarkReveal {
  0% {
    opacity: 0;
    transform: translateY(18px) scale(0.94);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* HEADER */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 29, 25, 0.95);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
}

.header__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.header__brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.header__brand img:first-child {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

.header__brand img:last-child {
  height: 40px;
  object-fit: contain;
}

.header__nav {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.header__toggle {
  display: none;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(214, 188, 137, 0.24);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.35rem;
  cursor: pointer;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.header__toggle span {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: var(--primary-light);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.header.menu-open .header__toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.header.menu-open .header__toggle span:nth-child(2) {
  opacity: 0;
}

.header.menu-open .header__toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.header__nav a {
  color: rgba(247, 243, 234, 0.85);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

.header__nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-light);
  transition: width 0.3s ease;
}

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

.header__nav a:hover::after {
  width: 100%;
}

/* HERO */
.hero {
  padding: 6rem 2rem;
  background: linear-gradient(135deg, rgba(17, 53, 45, 0.3) 0%, rgba(11, 45, 38, 0.1) 100%);
  border-bottom: 1px solid var(--border);
}

.hero__wrapper {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap-lg);
  align-items: center;
}

.hero__tag {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--primary-light);
  margin-bottom: 1rem;
}

.hero__title {
  font-family: "Source Serif 4", serif;
  font-size: clamp(2.5rem, 6vw, 3.8rem);
  line-height: 1.2;
  margin-bottom: 1.5rem;
  max-width: 90%;
}

.hero__text {
  font-size: 1.05rem;
  color: rgba(247, 243, 234, 0.85);
  margin-bottom: 2rem;
  max-width: 550px;
}

.hero__buttons {
  display: flex;
  gap: 1rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.hero__badges {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero__badges span {
  padding: 0.6rem 1.2rem;
  border: 1px solid var(--primary);
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-light);
}

.hero__image {
  position: relative;
  width: 100%;
  max-width: 400px;
  aspect-ratio: 1;
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid var(--border);
  background: linear-gradient(135deg, rgba(17, 53, 45, 0.5) 0%, rgba(11, 45, 38, 0.3) 100%);
  isolation: isolate;
}

.hero__image::before {
  content: '';
  position: absolute;
  inset: 12% 10% 8%;
  z-index: -1;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(214, 188, 137, 0.22) 0%, rgba(214, 188, 137, 0.1) 36%, rgba(214, 188, 137, 0.02) 68%, transparent 78%);
  opacity: 0.8;
  transform: scale(1.12);
  filter: saturate(0.85);
  pointer-events: none;
}

.hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* BOTÕES */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 2rem;
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
}

.btn--primary {
  background: var(--primary);
  color: var(--bg-dark);
  border: 1px solid var(--primary);
}

.btn--primary:hover {
  background: var(--primary-light);
  border-color: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(182, 149, 93, 0.2);
}

.btn--secondary {
  background: transparent;
  color: var(--primary-light);
  border: 1px solid var(--primary);
}

.btn--secondary:hover {
  background: rgba(214, 188, 137, 0.1);
  border-color: var(--primary-light);
  transform: translateY(-2px);
}

/* DIFERENCIAIS */
.diferenciais {
  padding: 5rem 2rem;
  border-bottom: 1px solid var(--border);
}

.diferenciais__container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--gap-lg);
}

.diferenciais__item {
  padding: 2.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.3s ease;
  text-align: center;
}

.diferenciais__item:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--primary);
}

.diferenciais__icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: rgba(214, 188, 137, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.diferenciais__icon img {
  width: 45px;
  height: 45px;
  object-fit: contain;
}

.diferenciais__item h3 {
  font-family: "Source Serif 4", serif;
  font-size: 1.35rem;
  margin-bottom: 1rem;
  color: var(--text);
}

.diferenciais__item p {
  color: rgba(247, 243, 234, 0.8);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ATUAÇÃO */
.atuacao {
  padding: 5rem 2rem;
  border-bottom: 1px solid var(--border);
}

.atuacao__container {
  max-width: 1200px;
  margin: 0 auto;
}

.atuacao__main {
  margin-bottom: 3rem;
}

.atuacao__main h2 {
  font-family: "Source Serif 4", serif;
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  line-height: 1.3;
}

.atuacao__main p {
  font-size: 1rem;
  color: rgba(247, 243, 234, 0.85);
  max-width: 700px;
  margin-bottom: 1rem;
  line-height: 1.8;
}

.atuacao__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--gap);
}

.atuacao__card {
  padding: 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.3s ease;
}

.atuacao__card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.atuacao__card img {
  width: 60px;
  height: 60px;
  margin-bottom: 1.5rem;
  object-fit: contain;
}

.atuacao__card h3 {
  font-family: "Source Serif 4", serif;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.atuacao__card p {
  color: rgba(247, 243, 234, 0.8);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* PROCESSO */
.processo {
  padding: 5rem 2rem;
  border-bottom: 1px solid var(--border);
}

.processo__container {
  max-width: 1200px;
  margin: 0 auto;
}

.processo__container h2 {
  font-family: "Source Serif 4", serif;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  text-align: center;
}

.processo__steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--gap-lg);
}

.processo__step {
  padding: 2.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  transition: all 0.3s ease;
}

.processo__step:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--primary);
  transform: translateY(-4px);
}

.processo__number {
  width: 50px;
  height: 50px;
  background: var(--primary);
  color: var(--bg-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0 auto 1.5rem;
}

.processo__step h3 {
  font-family: "Source Serif 4", serif;
  font-size: 1.35rem;
  margin-bottom: 1rem;
}

.processo__step p {
  color: rgba(247, 243, 234, 0.8);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* SOBRE */
.sobre {
  padding: 5rem 2rem;
  border-bottom: 1px solid var(--border);
}

.sobre__container {
  max-width: 1200px;
  margin: 0 auto;
}

.sobre__main {
  margin-bottom: 3rem;
}

.sobre__main h2 {
  font-family: "Source Serif 4", serif;
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  line-height: 1.3;
}

.sobre__main p {
  font-size: 1rem;
  color: rgba(247, 243, 234, 0.85);
  max-width: 700px;
  margin-bottom: 1rem;
  line-height: 1.8;
}

.sobre__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--gap);
}

.sobre__card {
  padding: 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.3s ease;
}

.sobre__card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.sobre__card h3 {
  font-family: "Source Serif 4", serif;
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
  color: var(--primary-light);
}

.sobre__card p {
  color: rgba(247, 243, 234, 0.8);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* CONTATO */
.contato {
  padding: 5rem 2rem;
  background: linear-gradient(135deg, rgba(17, 53, 45, 0.4) 0%, rgba(11, 45, 38, 0.2) 100%);
  border-bottom: 1px solid var(--border);
}

.contato__container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.contato__container h2 {
  font-family: "Source Serif 4", serif;
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.contato__container > p {
  font-size: 1.05rem;
  color: rgba(247, 243, 234, 0.85);
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.contato__buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* FOOTER */
.footer {
  padding: 2rem;
  text-align: center;
  color: rgba(247, 243, 234, 0.6);
  font-size: 0.9rem;
  border-top: 1px solid var(--border);
}

.footer p + p {
  margin-top: 0.6rem;
}

.footer a {
  color: var(--primary-light);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer a:hover {
  color: var(--text);
}

/* WHATSAPP FLUTUANTE */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 60px;
  height: 60px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.35);
  transition: all 0.3s ease;
  z-index: 50;
}

.whatsapp-float img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.45);
}

/* RESPONSIVO */
@media (max-width: 768px) {
  .header__container {
    flex-wrap: wrap;
    padding: 1rem 1.25rem;
    gap: 1rem;
  }

  .header__toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .header__brand {
    min-width: 0;
  }

  .header__brand img:last-child {
    max-width: min(58vw, 260px);
    height: auto;
  }

  .header__nav {
    width: 100%;
    order: 3;
    display: grid;
    gap: 0.75rem;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    transition: max-height 0.35s ease, opacity 0.25s ease, padding-top 0.35s ease;
  }

  .header.menu-open .header__nav {
    max-height: 320px;
    opacity: 1;
    pointer-events: auto;
    padding-top: 0.5rem;
  }

  .header__nav a {
    text-align: center;
    padding: 0.95rem 1rem;
    border: 1px solid rgba(214, 188, 137, 0.14);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.025);
  }

  .hero__wrapper {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem 0;
  }

  .hero__title {
    max-width: 100%;
    font-size: clamp(1.8rem, 5vw, 2.8rem);
  }

  .hero__image {
    max-width: 300px;
    margin: 0 auto;
  }

  .diferenciais__container,
  .atuacao__grid,
  .processo__steps,
  .sobre__grid {
    grid-template-columns: 1fr;
  }

  .atuacao__container,
  .processo__container,
  .sobre__container {
    padding: 0;
  }

  .contato__buttons .btn {
    width: 100%;
  }

  .whatsapp-float {
    bottom: 1.5rem;
    right: 1.5rem;
    width: 50px;
    height: 50px;
  }

  .whatsapp-float img {
    width: 26px;
    height: 26px;
  }
}

@media (max-width: 480px) {
  .hero,
  .diferenciais,
  .atuacao,
  .processo,
  .sobre,
  .contato {
    padding: 3rem 1rem;
  }

  .header__brand img:first-child {
    width: 50px;
    height: 50px;
  }

  .header__brand img:last-child {
    height: 32px;
  }

  .header__toggle {
    width: 48px;
    height: 48px;
  }

  .hero__buttons {
    flex-direction: column;
  }

  .hero__buttons .btn {
    width: 100%;
  }

  .hero__badges {
    justify-content: center;
  }

  .atuacao__main h2,
  .processo__container h2,
  .sobre__main h2,
  .contato__container h2 {
    font-size: 1.8rem;
  }

  .diferenciais__item,
  .atuacao__card,
  .processo__step,
  .sobre__card {
    padding: 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-intro,
  .page-intro__inner {
    transition: none;
    animation: none;
  }
}
