/* ============================================= */
/* FONTES E CONFIGURAÇÕES GLOBAIS                */
/* ============================================= */
@font-face {
  font-family: "Rubik";
  src: url(fonts/Rubik-Regular.ttf) format("truetype");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "Rubik";
  src: url(fonts/Rubik-Medium.ttf) format("truetype");
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: "Rubik";
  src: url(fonts/Rubik-Bold.ttf) format("truetype");
  font-weight: 700;
  font-style: normal;
}

:root {
  --primary: #0f352e;
  --secondary: #f4f0e4;
  --secondary-hover: #e0d7c1;
  --bg-color: #fffaf2;

  --font-family: "Rubik", sans-serif;
  --text-color: #f3efe8;
  --font-regular-400: 400;
  --font-medium-500: 500;
  --font-bold-700: 700;
}

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

html {
  font-family: var(--font-family);
}

.no-scroll {
  overflow: hidden;
}

/* ============================================= */
/* ESTILOS BASE (MOBILE-FIRST)                   */
/* ============================================= */

/* --------------------------------------------- */
/* SEÇÃO: HEADER                                 */
/* --------------------------------------------- */

/* --- Container Principal do Header --- */
.header-nav {
  background-color: var(--primary);
  color: var(--text-color);
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.header-nav::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url(images/hero.png) center/cover no-repeat;
  opacity: 0.19;
  z-index: 0;
}

.nav,
.hero-content {
  position: relative;
  z-index: 1;
}

/* --- Navegação --- */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 1.5rem;
  position: relative;
  z-index: 100;
}

/* --- Menu Hambúrguer (Mobile) --- */
.hamburger-button {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 101;
}

.hamburger-line {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--text-color);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger-button.is-active .hamburger-line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.hamburger-button.is-active .hamburger-line:nth-child(2) {
  opacity: 0;
}
.hamburger-button.is-active .hamburger-line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* --- Lista do Menu (Mobile) --- */
.menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: var(--primary);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  list-style: none;
  padding: 0;
  margin: 0;
  transform: translateX(-100%);
  transition: transform 0.3s ease-in-out;
  z-index: 100;
}

.menu.menu-open {
  transform: translateX(0);
}

.menu a {
  color: var(--text-color);
  font-size: 1.5rem;
  text-decoration: none;
}

.menu a.btn-contact {
  display: inline-block;
  color: black;
  font-weight: var(--font-medium-500);
  background-color: var(--secondary);
  padding: 0.8rem 1.5rem;
  border-radius: 14px;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.menu a.btn-contact:hover {
  transform: translateY(-2px);
  background-color: var(--secondary-hover);
}

.menu a:not(.btn-contact) {
  display: inline-block;
  position: relative;
  transition: transform 0.3s ease;
}

.menu a:not(.btn-contact)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 100%;
  height: 2px;
  background-color: var(--secondary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease-in-out;
}

.menu a:not(.btn-contact):hover {
  transform: translateY(-3px);
}

.menu a:not(.btn-contact):hover::after {
  transform: scaleX(1);
}

/* --- Seção Hero --- */
.hero-section {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem 1.5rem;
  text-align: left;
}

.hero-content h1 {
  font-size: 2.25rem;
  margin-bottom: 1rem;
}

.hero-content p {
  font-size: 1.125rem;
  margin-bottom: 2rem;
}

.btn-primary {
  display: block;
  width: max-content;
  margin: 0 auto;
  background-color: var(--bg-color);
  color: var(--primary);
  border-radius: 14px;
  font-size: 1rem;
  font-weight: var(--font-medium-500);
  padding: 1rem 1.5rem;
  text-decoration: none;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.btn-primary:hover {
  background-color: var(--secondary-hover);
  transform: translateY(-3px);
}

/* --------------------------------------------- */
/* COMPONENTES REUTILIZÁVEIS                     */
/* --------------------------------------------- */
.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1rem;
}

.container-wide {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* --------------------------------------------- */
/* SEÇÃO: SOBRE NÓS                              */
/* --------------------------------------------- */
.about-us {
  background-color: var(--bg-color);
  padding: 4rem 1.5rem;
  color: var(--primary);
}

.about-us h2 {
  font-size: 1.75rem;
  text-align: center;
  margin-bottom: 2rem;
}

.about-us p {
  font-size: 1.125rem;
  line-height: 1.6;
  text-align: center;
}

.about-us p + p {
  margin-top: 1.5rem;
}

/* --------------------------------------------- */
/* SEÇÃO: NOSSOS DIFERENCIAIS                    */
/* --------------------------------------------- */
.differentials {
  background-color: var(--primary);
  color: var(--text-color);
  text-align: center;
  padding: 5rem 1.5rem 3rem;
  position: relative;
}

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

.differentials h2 {
  font-size: 2rem;
  font-weight: var(--font-bold-700);
  margin-bottom: 1.5rem;
}

.differentials p {
  font-size: 1.125rem;
  max-width: 800px;
  margin: 0 auto 4rem;
  line-height: 1.6;
}

/* --- Cards de Diferenciais --- */
.cards {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2rem;
}

.card {
  background-color: var(--secondary);
  color: var(--primary);
  padding: 2rem 1.5rem;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
  max-width: 340px;
  width: 90%;
  text-align: center;
  z-index: 1;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  min-height: 160px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 14px rgba(0, 0, 0, 0.2);
}

.card h3 {
  font-weight: var(--font-bold-700);
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
}

.card p {
  font-size: 1rem;
  line-height: 1.5;
  max-width: 220px;
  margin: 0 auto;
}

.card.featured {
  z-index: 2;
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.25);
}

/* --------------------------------------------- */
/* SEÇÃO: SERVIÇOS                               */
/* --------------------------------------------- */
.services {
  background-color: var(--bg-color);
  padding: 4rem 1.5rem;
}

.services h2 {
  color: var(--primary);
  font-size: 1.75rem;
  text-align: center;
  margin-bottom: 1.5rem;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.service-card {
  background-color: var(--secondary);
  color: var(--primary);
  padding: 2rem;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.service-card h3 {
  font-size: 1.35rem;
  font-weight: var(--font-bold-700);
  margin-bottom: 0.75rem;
}

.service-card p {
  font-size: 1.1rem;
  color: black;
  line-height: 1.6;
}

/* ============================================= */
/* SEÇÃO: CARROSSEL DE PASSOS                    */
/* ============================================= */
.steps-carousel {
  background-color: var(--bg-color);
  padding: 0;
}

.steps-carousel h2 {
  color: var(--primary);
  font-size: 1.75rem;
  text-align: center;
  margin-bottom: 1.5rem;
}

.carousel {
  position: relative;
}

.carousel-track {
  display: flex;
  overflow-x: scroll;
  scroll-behavior: smooth;
  -ms-overflow-style: none;
  scrollbar-width: none;
  gap: 1.5rem;
  padding: 1rem;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.step-card {
  flex: 0 0 80%;
}

.step-card--active {
  background-color: var(--primary);
  color: var(--text-color);
}

.step-card--active p {
  color: var(--text-color);
}

.carousel-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
}

.carousel-button svg {
  width: 24px;
  height: 24px;
  fill: var(--primary);
}

.carousel-button--left {
  left: -14px;
}

.carousel-button--right {
  right: -14px;
}

/* ============================================= */
/* SEÇÃO: CONTATO                                */
/* ============================================= */
.contact-grid {
  display: flex;
  flex-direction: column;
}

.contact-section {
  background-color: var(--bg-color);
  padding: 4rem 1.5rem;
}

.contact-promo {
  background-color: var(--secondary);
  display: none;
  justify-content: center;
  align-items: center;
  padding: 6rem 2rem;
}

.promo-text {
  font-size: 4rem;
  font-weight: var(--font-bold-700);
  color: var(--primary);
}

.contact-form-container {
  background-color: var(--primary);
  color: var(--text-color);
  padding: 3rem 1.5rem;
}

.contact-form-container h2 {
  font-size: 1.75rem;
  margin-bottom: 2rem;
  text-align: center;
}

.contact-form-container form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form-container input,
.contact-form-container textarea {
  width: 100%;
  padding: 1rem;
  border: none;
  border-radius: 8px;
  background-color: #f0f4f8;
  font-family: var(--font-family);
  font-size: 1rem;
  color: var(--primary);
}

.contact-form-container input::placeholder,
.contact-form-container textarea::placeholder {
  color: #6c757d;
}

.btn-submit {
  background-color: var(--secondary);
  color: var(--primary);
  font-weight: var(--font-bold-700);
  font-size: 1rem;
  padding: 1rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-top: 1rem;
}

.btn-submit:hover {
  background-color: var(--secondary-hover);
}

/* ============================================= */
/* SEÇÃO: FOOTER                                 */
/* ============================================= */
.site-footer {
  background-color: var(--primary);
  color: var(--text-color);
  padding: 4rem 1.5rem 2rem;
  font-size: 0.9rem;
}

/* --- Grade Principal (Mobile) --- */
.footer-main {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  text-align: center;
}

.footer-column h4 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  font-weight: var(--font-bold-700);
}

.footer-column p {
  line-height: 1.6;
  opacity: 0.8;
}

.footer-column a {
  text-decoration: none;
  color: var(--text-color);
}

.footer-column a:hover {
  text-decoration: underline;
  color: var(--secondary);
}

.footer-column li > a:hover,
.footer-links a:hover {
  text-decoration: none;
}

/* --- Coluna "LOGO" --- */
.footer-logo-column {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
}

.logo-placeholder {
  font-size: 3rem;
  font-weight: var(--font-bold-700);
}

/* --- Coluna de Links de Navegação --- */
.footer-nav {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-nav a {
  color: var(--text-color);
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.footer-nav a:hover {
  opacity: 1;
  color: var(--secondary);
}

/* --- Divisor e Sub-footer --- */
.footer-divider {
  border: none;
  height: 1px;
  background-color: var(--text-color);
  opacity: 0.2;
  margin: 3rem 0;
}

.footer-sub {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
  opacity: 0.7;
}

.copyright .highlight {
  color: #03c9a7;
  font-weight: var(--font-medium-500);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

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

/* ============================================= */
/* PÁGINAS INTERNAS (TERMOS DE USO)              */
/* ============================================= */

.internal-page .header-nav {
  min-height: auto;
  height: auto;
}

.internal-page .hero-section {
  display: none;
}

.legal-content {
  background-color: var(--bg-color);
  color: var(--primary);
  padding: 4rem 1.5rem;
}

.legal-content h1 {
  font-size: 2.25rem;
  text-align: center;
  margin-bottom: 0.5rem;
}

.legal-content .version {
  text-align: center;
  opacity: 0.7;
  margin-bottom: 3rem;
}

.legal-content h2 {
  font-size: 1.5rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.legal-content p,
.legal-content li {
  line-height: 1.7;
  text-align: justify;
}

.legal-content ul {
  padding-left: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.legal-content a {
  color: var(--primary);
  font-weight: var(--font-medium-500);
  text-decoration: none;
}

.legal-content a:hover {
  text-decoration: underline;
}

/* ============================================= */
/* AJUSTES RESPONSIVOS (DESKTOP)                 */
/* ============================================= */
@media (min-width: 992px) {
  /* --- Header (Desktop) --- */
  .header-nav {
    height: 100vh;
  }

  .nav {
    padding: 3.5rem 6.875rem;
  }

  .hamburger-button {
    display: none;
  }

  .menu {
    position: static;
    flex-direction: row;
    height: auto;
    width: auto;
    background-color: transparent;
    transform: translateX(0);
    gap: 4.375rem;
  }

  .menu a {
    font-size: 1.313rem;
  }

  .hero-section {
    justify-content: flex-start;
    padding: 16vh 6.875rem 0;
  }

  .hero-content {
    max-width: 700px;
  }

  .hero-content h1 {
    font-size: 3.125rem;
  }

  .hero-content p {
    font-size: 2.125rem;
    max-width: 630px;
  }

  .btn-primary {
    display: inline-block;
    margin: 0;
    font-size: 1.5rem;
  }

  /* --- Sobre Nós (Desktop) --- */
  .about-us {
    padding: 6rem 1rem;
  }

  .about-us h2 {
    font-size: 2.5rem;
  }

  .about-us p {
    font-size: 1.5rem;
  }

  /* --- Diferenciais (Desktop) --- */
  .differentials {
    background: linear-gradient(
      to bottom,
      var(--primary) 70%,
      var(--bg-color) 15%
    );
    padding: 5rem 1.5rem 8rem;
  }

  .cards {
    flex-direction: row;
    align-items: stretch;
    flex-wrap: nowrap;
    gap: 0;
  }

  .card {
    flex: 1;
    max-width: 340px;
    margin: 0 -0.5rem;
  }

  .card.featured {
    transform: translateY(-25px);
  }

  .card:not(.featured):hover {
    transform: translateY(-10px);
  }

  .card.featured:hover {
    transform: translateY(-35px);
    box-shadow: 0 14px 24px rgba(0, 0, 0, 0.3);
  }

  /* --- Serviços (Desktop) --- */
  .services h2 {
    font-size: 2.5rem;
  }

  .services-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }

  /* --- Carrossel de Cards (Desktop) --- */
  .steps-carousel h2 {
    font-size: 2.5rem;
  }

  .carousel-track {
    gap: 2rem;
  }

  .step-card {
    flex-basis: 30%;
  }

  .carousel-button--left {
    left: -30px;
  }

  .carousel-button--right {
    right: -30px;
  }

  /* --- Seção de Contato (Desktop) --- */
  .contact-container {
    max-width: 1220px;
    height: 700px;
    margin: 0 auto;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
  }

  .contact-grid {
    flex-direction: row;
    height: 100%;
  }

  .contact-promo,
  .contact-form-container {
    display: flex;
    flex: 1;
  }

  .contact-form-container {
    padding: 4rem 3rem;
  }

  .contact-form-container h2 {
    font-size: 2.4rem;
    text-align: left;
  }

  /* --- Footer (Desktop) --- */
  .footer-main {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1fr 1fr;
    gap: 2rem;
    text-align: left;
  }

  .footer-logo-column {
    align-items: flex-start;
  }

  /* --- Sub-footer (Desktop) --- */
  .footer-sub {
    flex-direction: row;
    align-items: center;
  }

  .footer-links {
    flex-grow: 1;
    justify-content: flex-end;
  }

  /* --- Termos de Uso (Desktop) --- */
  .legal-content {
    padding: 6rem 1rem;
  }
  .legal-content h1 {
    font-size: 2.75rem;
  }
  .legal-content h2 {
    font-size: 1.75rem;
  }
}
