/* ===== CONFIGURAÇÕES GERAIS ===== */
body {
    margin: 0;
    padding: 0;
    font-family: "Montserrat", sans-serif;
}

/* ===== HEADER =====*/
html { scroll-behavior: smooth; }

#sobre, #servicos, #contato {
  scroll-margin-top: 120px; /* ajuste conforme altura real da navbar */
}

header {
  position: relative;
  z-index: 9999; /* garante que o menu fica acima do hero/overlay */
}

.navbar {
    background-color: #d66244;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 5%;
    color: #fff;
    position: relative;
    z-index: 9999;
}

/* LADO ESQUERDO */
.nav-left {
    display: flex;
    gap: 24px;
}

.nav-left a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
}

.nav-left a:hover {
    text-decoration: underline;
}

/* CENTRO */
.nav-center {
    text-align: center;
    line-height: 1.2;
}

.nav-title {
    display: block;
    font-family: 'Playfair Display', serif;
    font-weight: bolder;
    font-size: 3em;
}

.nav-subtitle {
    display: block;
    opacity: 0.9;
    font-family: "Raleway", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
    margin-top: 10px;
}

/* LADO DIREITO */
.nav-right img {
    height: 100px;
    width: auto;
}

/* BOTÃO HAMBURGER (escondido no desktop) */
.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 10px;
}

/* ÍCONE (3 linhas) */
.hamburger {
  display: block;
  width: 26px;
  height: 2px;
  background: #fff;
  position: relative;
  transition: transform 0.2s ease;
}

.hamburger::before,
.hamburger::after {
  content: "";
  position: absolute;
  left: 0;
  width: 26px;
  height: 2px;
  background: #fff;
  transition: transform 0.2s ease, top 0.2s ease, opacity 0.2s ease;
}

.hamburger::before { top: -8px; }
.hamburger::after  { top: 8px; }

/**===== HERO ===== */
.hero-bg {
  position: relative;
  min-height: 90vh;
  background-image: url('imagens/isadora_foto_prancheta.png');
  background-size: cover;
  color: #fff;
}

/* grid interno */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  min-height: 90vh;
  padding: 0 5%;
  z-index: 2;
  position: relative;
}

/* conteúdo na coluna esquerda */
.hero-content {
  z-index: 2;
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}

/* imagem mobile escondida no desktop */
.hero-image-mobile {
  display: none;
}

/* overlay */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 1;
  pointer-events: none;
}

.hero-content h1 {
  font-size: 1.9rem;
  font-weight: 700;
  font-family: "Montserrat", sans-serif;
  margin-bottom: 24px;
}

.hero-content p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 32px;
  opacity: 0.95;
  font-family: "Montserrat", sans-serif;
}

/* CTA reaproveitado */
.hero-cta {
  display: inline-block;
  background-color: #2b2b2b;
  color: #f7f71b;
  padding: 14px 28px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 6px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  font-family: "Montserrat", sans-serif;
}

.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}

/*===== PAIN =====*/

.pain-section {
  background-color: #ffffff;
  padding: 100px 6%;
}

.pain-container {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.pain-container h2 {
  color: #2b2b2b;
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 32px;
}

.pain-container p {
  color: #2b2b2b;
  font-size: 1.1rem;
  line-height: 1.7;
}

/*===== SOBRE =====*/
.about-section {
  background-color: #faf6e8;
  padding: 0px 6% 50px 6%;
  font-family: 'Montserrat', sans-serif;
}

.about-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  text-align: justify;
}

.about-text h2 {
  color: #2b2b2b;
  font-size: 2.3rem;
  font-weight: 700;
  margin-bottom: 24px;
  text-align: center;
}

.about-text p {
  color: #2b2b2b;
  font-size: 1.1rem;
  line-height: 1.7;
}

/* IMAGEM */
.about-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
}

/*===== SERVIÇOS =====*/
.services-section {
  background: #ffffff;
  padding: 100px 6%;
  font-family: 'Montserrat', sans-serif;
}

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

.services-container h2 {
  text-align: center;
  color: #2b2b2b;
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 50px;
}

/* GRID: 5 colunas no desktop grande */
.services-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}

/* CARD */
.service-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

.service-card:hover .service-title {
  filter: brightness(1.05);
}

/* TOPO (título) */
.service-title {
  background: #d55244;
  color: #ffffff;
  font-weight: 700;
  text-align: center;
  padding:0px 4px;
  border-radius: 12px;
  min-height: 90px;              /* 🔹 força mesma altura */
  display: flex;                 /* 🔹 centraliza vertical */
  align-items: center;
  justify-content: center;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  padding: 16px 12px;
}

/* CORPO (lista) com degradê pra branco embaixo */
.service-body {
  margin-top: 10px;
  padding: 18px 16px 22px;
  border-radius: 12px;
  background: linear-gradient(to bottom, #faf6e8 0%, #faf6e8 70%, #ffffff 100%);
  color: #2b2b2b;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

/* LISTA com bolinha */
.service-body ul {
  margin: 0;
  padding-left: 18px;
}

.service-body li {
  margin: 10px 0;
  line-height: 1.4;
  font-size: 0.95rem;
}

.services-cta-wrapper {
  margin-top: 70px;
  text-align: center;
}

.services-cta {
  display: inline-block;
  background-color: #2b2b2b;
  color: #f7f71b;
  padding: 16px 34px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border-radius: 8px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.services-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

/*===== FINAL SECTION =====*/
.final-cta-section {
  padding: 0px 6% 50px 6%;
  background: linear-gradient(to bottom, #ffffff 0%, #f2f2f2 60%, #3838389c 100%);
  font-family: 'Montserrat', sans-serif;
}

.final-cta-container {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.final-cta-container h2 {
  color: #2b2b2b;
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 28px;
}

.final-cta-container p {
  color: #2b2b2b;
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 40px;
}

/* CTA reaproveitando padrão */
.final-cta-btn {
  display: inline-block;
  background-color: #2b2b2b;
  color: #f7f71b;
  padding: 16px 34px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border-radius: 8px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.final-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

/*===== FOOTER =====*/

.site-footer {
  background: #ffffff;
  padding: 0; /* encosta na seção anterior */
  font-family: 'Montserrat', sans-serif;
}

.footer-container {
  width: 100%;                 /* ocupa toda a largura */
  max-width: 100%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  align-items: stretch;
}

.footer-item {
    border-top: 2px solid  #000;
    border-right: 2px solid #000;
    border-bottom: 2px solid #000;
    padding: 28px 20px;
    text-align: center;
    display: flex;          /* 🔹 centralização vertical */
    flex-direction: column;
    justify-content: center;
    min-height: 180px;      /* 🔹 garante altura uniforme */
    min-width: 0; /* CRÍTICO em grid/flex para evitar overflow */
}

.footer-item:first-child {
  border-left: 2px solid #000;
}

.footer-icon svg {
  width: 32px;
  height: 32px;
  fill: #000;
  margin-bottom: 12px;
}

.footer-title {
  display: block;
  font-weight: 700;
  color: #000;
  margin-bottom: 6px;
}

.footer-text {
  color: #000;
  font-size: 0.95rem;
}

.footer-link {
  color: #000;
  font-size: 0.95rem;
  text-decoration: none;
}

.footer-link,
.footer-text {
  overflow-wrap: anywhere;   /* quebra onde precisar */
  word-break: break-word;    /* compatibilidade */
}

.footer-link:hover {
  text-decoration: underline;
}

.footer-legal {
  border-top: 2px solid #000;
  text-align: center;
  padding: 18px 12px;
  font-size: 0.85rem;
  color: #000;
  background: #ffffff;
}

/*===== MOBILE =====*/
@media (max-width: 1200px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-container {
    grid-template-columns: repeat(2, 1fr);
  }
  /* remove borda direita do 2º e 4º item */
  .footer-item:nth-child(2),
  .footer-item:nth-child(4) {
    border-right: none;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

    .navbar {
        position: relative;
    }
  /* A área de links vira menu dropdown */
  .nav-left {
    display: none;                 /* fechado por padrão */
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background-color: #d66244;
    padding: 10px 5%;
    border-top: 1px solid rgba(255,255,255,0.25);
    z-index: 10000;
    pointer-events: auto;
  }

  .nav-left a {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.15);
  }

  .nav-left a:last-child {
    border-bottom: 0;
  }

  /* Quando menu estiver aberto */
  .navbar.open .nav-left {
    display: flex;
    pointer-events: auto;
  }

  /* Ajustes de layout para caber bem */
  .nav-center {
    flex: 1;
    margin: 0 10px;
  }

  .nav-title { font-size: 1.05rem; }
  .nav-subtitle { font-size: 0.75rem; }

  .nav-right img { height: 44px; }

  /* Animação do ícone virar X */
  .navbar.open .hamburger {
    background: transparent;
  }
  .navbar.open .hamburger::before {
    top: 0;
    transform: rotate(45deg);
  }
  .navbar.open .hamburger::after {
    top: 0;
    transform: rotate(-45deg);
  }

  /* remove imagem de fundo no mobile */
  .hero-bg {
    background-image: none;
    min-height: auto;
    padding: 0;
  }

  /* vira coluna única */
  .hero-grid {
    grid-template-columns: 1fr;
    padding: 60px 6% 0;
    text-align: center;
  }

  /* texto */
  .hero-content {
    max-width: 680px;
    margin-bottom: 40px;
    color: rgb(0, 0, 0);
  }

  /* mostra imagem abaixo do texto */
  .hero-image-mobile {
    display: block;
    width: 100%;
  }

  .hero-image-mobile img {
    width: 100%;
    height: auto;
    display: block;
  }

  /* overlay não é mais necessário */
  .hero-overlay {
    display: none;
  }

    .pain-section {
    padding: 70px 7%;
  }

  .pain-container h2 {
    font-size: 1.9rem;
  }

  .pain-container p {
    font-size: 1rem;
  }

  .about-section {
    padding: 70px 7%;
  }

  .about-container {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .about-text h2 {
    font-size: 1.9rem;
  }

  .about-text p {
    font-size: 1rem;
  }

  .final-cta-section {
    padding: 80px 7%;
  }

  .final-cta-container h2 {
    font-size: 1.8rem;
  }

  .final-cta-container p {
    font-size: 1rem;
  }
}

@media (max-width: 600px) {
  .services-section {
    padding: 70px 7%;
  }

  .services-container h2 {
    font-size: 1.7rem;
    margin-bottom: 35px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-body li {
    font-size: 1rem;
  }

  .services-cta {
    width: 100%;
    max-width: 320px;
    padding: 16px;
  }
}

@media (max-width: 480px) {
  .final-cta-btn {
    width: 100%;
    max-width: 320px;
    padding: 16px;
  }

    .footer-container {
    grid-template-columns: 1fr;
  }
  .footer-item {
    border-right: none; /* só bordas horizontais */
    padding: 20px 14px;
    min-height: 160px;
  }

  .footer-link, .footer-text {
    font-size: 0.9rem;
  }
}