/* --- RAÍZ: TEMA "PERFEIÇÃO FINAL" --- */
:root {
  --dark-teal: #30414b;
  --ivory-white: #fcfcfc;
  --soft-gold: #c0b283;
  --text-primary: #2c2c2c;
  --text-secondary: #5c5c5c;
  --section-bg: #f5f7f9;
  --border-color: #eaeaea;
  --heading-font: "Playfair Display", serif;
  --body-font: "Lato", sans-serif;
  --shadow-soft: 0 5px 20px rgba(48, 65, 75, 0.07);
  --shadow-medium: 0 12px 35px rgba(48, 65, 75, 0.1);
  --transition: 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* --- RESET E GLOBAIS --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: var(--body-font);
  background-color: var(--ivory-white);
  color: var(--text-primary);
  font-size: 115%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body.no-scroll {
  overflow: hidden;
}

/* --- PRELOADER --- */
.preloader {
  position: fixed;
  inset: 0;
  background-color: var(--dark-teal);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}
.preloader img {
  height: 120px;
  filter: brightness(0) invert(1);
  animation: pulse 2s infinite ease-in-out;
}
.preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

/* --- COMPONENTES GERAIS --- */
.section-container {
  padding: 140px 5%;
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden;
}
.section-bg {
  background: var(--section-bg);
  background-image: linear-gradient(-45deg, #f5f7f9, #ffffff, #f5f7f9);
  background-size: 400% 400%;
  animation: aurora 15s ease infinite;
}
.section-header {
  text-align: center;
  margin-bottom: 5rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}
.section-title {
  font-family: var(--heading-font);
  font-size: clamp(3rem, 5vw, 4rem);
  color: var(--dark-teal);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}
.section-subtitle {
  font-size: 1.3rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

.btn-primary {
  background-color: var(--dark-teal);
  color: var(--ivory-white);
  padding: 1.1rem 2.8rem;
  border: 2px solid var(--dark-teal);
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.5px;
  transition: all var(--transition);
  cursor: pointer;
  display: inline-block;
}
.btn-primary:hover {
  background-color: var(--soft-gold);
  border-color: var(--soft-gold);
  color: var(--dark-teal);
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(192, 178, 131, 0.3);
}

/* --- HEADER FINAL E PERFEITO --- */
.header {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1001; /* Z-INDEX AUMENTADO */
  padding: 20px 0;
  transition: all var(--transition);
}
.header.scrolled {
  background-color: rgba(252, 252, 252, 0.9);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-soft);
  padding: 10px 0;
}
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5%;
}
.nav-logo img {
  height: 100px;
  transition: height var(--transition), filter var(--transition);
  filter: brightness(0) invert(1);
}
.header.scrolled .nav-logo img {
  height: 70px;
  filter: none;
}
.nav-menu {
  display: flex;
  gap: 3rem;
}
.nav-link {
  text-decoration: none;
  color: var(--ivory-white);
  font-weight: 700;
  font-size: 1.1rem;
  position: relative;
  padding-bottom: 8px;
  transition: color var(--transition);
}
.header.scrolled .nav-link {
  color: var(--dark-teal);
}
.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--soft-gold);
  transition: width var(--transition);
}
.nav-link:hover::after {
  width: 100%;
}

/* --- SEÇÃO HERO --- */
.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--ivory-white);
  overflow: hidden;
  padding-top: 140px;
}
.hero-video-wrapper {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    0deg,
    rgba(48, 65, 75, 0.9) 0%,
    rgba(48, 65, 75, 0.6) 100%
  );
  z-index: -1;
}
.hero-content {
  opacity: 0;
}
.hero-title {
  font-family: var(--heading-font);
  font-size: clamp(3.5rem, 7vw, 6.5rem);
  line-height: 1.15;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}
.hero-subtitle {
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  font-weight: 300;
  margin: 2rem auto 3rem auto;
  max-width: 800px;
  line-height: 1.8;
}
.btn-hero {
  font-size: 1.2rem;
}

/* --- CARDS E GRIDS --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
}
.feature-item {
  background: var(--ivory-white);
  padding: 3.5rem;
  text-align: center;
  border-radius: 16px;
  box-shadow: var(--shadow-medium);
}
.feature-icon {
  font-size: 3.5rem;
  color: var(--soft-gold);
  margin-bottom: 2rem;
}
.feature-item h4 {
  font-family: var(--heading-font);
  color: var(--dark-teal);
  font-size: 2rem;
  margin-bottom: 1rem;
}
.feature-item p {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--text-secondary);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
}
.service-card {
  background-color: var(--ivory-white);
  padding: 3rem 2.5rem;
  text-align: center;
  border-radius: 16px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-soft);
}
.service-icon {
  font-size: 3.5rem;
  color: var(--soft-gold);
  margin-bottom: 2rem;
}
.service-card h3 {
  font-family: var(--heading-font);
  color: var(--dark-teal);
  font-size: 1.8rem;
  margin-bottom: 1rem;
}
.service-card p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

/* --- NOVA SEÇÃO ABORDAGEM (COM CORREÇÃO DE RESPONSIVIDADE) --- */
.steps-container {
  display: flex;
  flex-direction: column;
  gap: 4rem;
  position: relative;
}
.steps-container::before {
  content: "";
  position: absolute;
  left: 24px;
  top: 1rem;
  bottom: 1rem;
  width: 2px;
  background-color: var(--border-color);
}
.step-item {
  display: flex;
  align-items: flex-start;
  gap: 2.5rem;
}
.step-number {
  font-family: var(--heading-font);
  font-size: 3rem;
  color: var(--soft-gold);
  line-height: 1;
  background-color: var(--ivory-white);
  padding-right: 1rem;
  z-index: 2;
}
.step-content h3 {
  font-family: var(--heading-font);
  font-size: 2rem;
  color: var(--dark-teal);
  margin-bottom: 1rem;
}
.step-content p {
  font-size: 1.2rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

/* --- SEÇÃO SOBRE --- */
.about-section {
  display: flex;
  align-items: center;
  gap: 6rem;
}
.about-image {
  flex: 1;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-medium);
}
.about-image img {
  width: 100%;
  height: auto;
  display: block;
}
.about-content {
  flex: 1;
}
.about-content .section-title {
  text-align: left;
}
.about-highlight {
  font-family: var(--heading-font);
  font-size: 2rem;
  color: var(--soft-gold);
  margin-bottom: 2rem;
  line-height: 1.4;
}
.about-content p {
  color: var(--text-secondary);
  line-height: 2;
  margin-bottom: 3rem;
  font-size: 1.2rem;
}

/* --- CONTATO --- */
.contact-wrapper {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.contact-info {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}
.info-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--text-primary);
  font-size: 1.2rem;
  font-weight: 700;
}
.info-item i {
  color: var(--soft-gold);
  font-size: 1.5rem;
}
.btn-contact {
  margin-top: 4rem;
}

/* --- FOOTER PROFISSIONAL E CORRIGIDO --- */
.footer {
  background-color: var(--dark-teal);
  color: var(--ivory-white);
  padding: 6rem 5%;
}
.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}
.footer-col {
  flex: 1;
  min-width: 280px;
}
.footer-logo-col {
  display: flex;
  justify-content: flex-start;
}
.footer-logo {
  height: 120px;
  filter: brightness(0) invert(1);
  transition: transform var(--transition);
}
.footer-logo:hover {
  transform: scale(1.05);
}
.footer-contact-col {
  text-align: center;
}
.footer-col h4 {
  font-family: var(--heading-font);
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
  color: var(--soft-gold);
  font-weight: 700;
}
.footer-contact-col p {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
  color: rgba(252, 252, 252, 0.9);
  font-size: 1.1rem;
}
.footer-contact-col p i {
  color: var(--soft-gold);
}
.footer-social-col {
  text-align: right;
}
.social-icons-footer {
  display: flex;
  justify-content: flex-end;
  gap: 1.5rem;
}
.social-icons-footer a {
  color: var(--ivory-white);
  font-size: 1.8rem;
  transition: color var(--transition), transform var(--transition);
}
.social-icons-footer a:hover {
  color: var(--soft-gold);
  transform: translateY(-4px);
}
.footer-bottom {
  text-align: center;
  padding-top: 4rem;
  margin-top: 4rem;
  border-top: 1px solid rgba(252, 252, 252, 0.2);
  font-size: 1rem;
  color: rgba(252, 252, 252, 0.7);
}

/* --- RESPONSIVIDADE E MENU MOBILE CORRIGIDO --- */
.hamburger {
  display: none;
  z-index: 1002;
  cursor: pointer;
  position: relative;
  width: 30px;
  height: 24px;
}
.bar {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--ivory-white);
  transition: all 0.4s ease-in-out;
  position: absolute;
  border-radius: 3px;
}
.header.scrolled .bar {
  background-color: var(--dark-teal);
}
.bar:nth-child(1) {
  top: 0;
}
.bar:nth-child(2) {
  top: 50%;
  transform: translateY(-50%);
}
.bar:nth-child(3) {
  bottom: 0;
}
.hamburger.active .bar {
  background-color: var(--ivory-white);
}
.hamburger.active .bar:nth-child(1) {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}
.hamburger.active .bar:nth-child(2) {
  opacity: 0;
}
.hamburger.active .bar:nth-child(3) {
  top: 50%;
  transform: translateY(-50%) rotate(-45deg);
}

.mobile-nav-overlay {
  display: none;
}

@media (max-width: 992px) {
  body {
    font-size: 100%;
  }
  .section-container {
    padding: 80px 5%;
  }
  .nav-menu {
    display: none;
  }
  .hamburger {
    display: block;
  }
  .mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--dark-teal);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: transform 0.6s cubic-bezier(0.86, 0, 0.07, 1);
    transform: translateY(-100%);
    z-index: 1000;
  }
  .mobile-nav-overlay.active {
    transform: translateY(0);
  }
  .mobile-nav-overlay .mobile-nav-link {
    color: var(--ivory-white);
    font-size: 2.5rem;
    font-family: var(--heading-font);
    margin: 1rem 0;
    text-decoration: none;
    opacity: 0;
  }

  .steps-container::before {
    left: 18px;
  } /* Ajuste da linha para mobile */
  .step-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }
  .step-number {
    background: none;
    padding-right: 0;
  }

  .footer-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 3.5rem;
  }
  .footer-logo-col,
  .footer-social-col {
    justify-content: center;
    text-align: center;
  }
  .social-icons-footer {
    justify-content: center;
  }
  .about-section,
  .contact-wrapper {
    flex-direction: column;
    gap: 3rem;
  }
}

@keyframes aurora {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.7;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}
