/* =========================================
   Cais Educação - Novo Layout 2026 (FINAL)
   ========================================= */

/* ---------- Tipografia ---------- */
@font-face {
  font-family: 'Sofia Pro Soft';
  src: url('../fonts/SofiaProSoftLight.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
}
@font-face {
  font-family: 'Sofia Pro Soft';
  src: url('../fonts/SofiaProSoftRegular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: 'Sofia Pro Soft';
  src: url('../fonts/SofiaProSoftMedium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
}
@font-face {
  font-family: 'Sofia Pro Soft';
  src: url('../fonts/SofiaProSoftBold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
}

/* ---------- Paleta institucional ---------- */
:root {
  --azul-escuro: #004b63;
  --azul-claro: #8ee1eb;
  --azul-bebe: #36bbcc;
  --verde-cais: #00c853;
  --laranja-cadastro: #f37721;
  --amarelo-login: #ffc107;
  --cinza-menu: #707070;
  --texto: #333;
  --bg-claro: #f9f9f9;
}

/* ---------- GLOBAL ---------- */

body {
  font-family: 'Sofia Pro Soft', 'Segoe UI', sans-serif;
  color: var(--texto);
  background-color: #fff;
  line-height: 1.6;
  font-weight: 400;
  padding-top: 120px; /* espaçamento pro menu fixo */
}

/* Container Padrão */
.container-limit {
  max-width: 1200px; 
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

/* ---------- Topbar ---------- */
.top-border {
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, #00a3d7, #8ee1eb);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1200;
}

/* ---------- Navbar ---------- */
.navbar {
  background-color: #fff;
  border-bottom: 1px solid #fff;
  padding: 0.8rem 0;
  position: fixed;
  top: 5px;
  left: 0;
  width: 100%;
  z-index: 1199;
}

.navbar .container-limit {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-brand img {
  height: 60px;
  transition: all 0.3s ease;
}

.navbar-nav .nav-link {
  color: var(--cinza-menu);
  font-weight: 500;
  font-size: 1rem;
  margin: 0 12px;
  text-transform: none;
  transition: color 0.3s;
}

.navbar-nav .nav-link:hover {
  color: var(--azul-escuro);
}

/* Botões */
.btn-cadastro {
  background-color: var(--laranja-cadastro);
  color: #fff;
  border-radius: 13px;
  font-weight: 600;
  padding: 8px 24px;
  border: none;
  transition: background 0.3s;
}
.btn-cadastro:hover {
  background-color: #d45f10;
}

.btn-login {
  background-color: var(--amarelo-login);
  color: #333;
  border-radius:13px;
  font-weight: 600;
  padding: 8px 24px;
  border: none;
  transition: background 0.3s;
}
.btn-login:hover {
  background-color: #ffb300;
}

/* Ícone mobile */
.navbar-toggler {
  border: none;
}
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='rgba(0,0,0,0.7)' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}


/* ---------- HERO / BANNER ---------- */
#hero {
  margin-top: -20px;
  margin-bottom: 10px;
  display: flex;
  justify-content: center;
}

#hero .container-limit {
  width: 100%;
  margin: 0 auto;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
}

/* Ajusta o carrossel dentro do container */
#carouselHero {
  width: 100%;
  height: auto;
}

/* Imagem do banner - 1500x500 proporcional */
.hero-img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 1; /* 1500 / 500 */
  object-fit: contain; /* não corta imagem */
  background-color: #fff; /* fundo branco se sobrar espaço */
  display: block;
  border-radius: 30px;
}

/* Controles laterais */
.carousel-control-prev,
.carousel-control-next {
  width: 5%;
}
.carousel-control-prev-icon,
.carousel-control-next-icon {
  filter: invert(100%);
}

/* Indicadores */
.carousel-indicators {
  bottom: 0px;
}
.carousel-indicators [data-bs-target] {
  width: 10px;
  height: 10px;
  background-color: var(--azul-claro);
  border-radius: 50%;
  opacity: 0.5;
  transition: all 0.3s;
}
.carousel-indicators .active {
  background-color: var(--azul-escuro);
  opacity: 1;
}

/* Responsividade */
@media (max-width: 992px) {
  #hero .container-limit {
    border-radius: 12px;
    box-shadow: none;
  }
  .hero-img {
    aspect-ratio: 16 / 9;
  }
}


/* ---------- Pesquisa de Livro (Ajustado ao Layout do PDF) ---------- */
#pesquisa {
  background: #fff;
  color: var(--azul-bebe);
  padding: 80px 0 80px;
}

#pesquisa .section-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 25px;
  margin-bottom: 40px;
}

#pesquisa h2 {
  font-family: 'Sofia Pro Soft', sans-serif;
  font-weight: 700;
  color: var(--azul-bebe);
  font-size: 2rem;
  letter-spacing: 0.3px;
}

#pesquisa .line {
  flex-grow: 1;
  height: 1.5px;
  background-color: var(--azul-claro);
  border: none;
  opacity: 0.8;
  margin: 0 20px; /* espaço lateral entre o título e as linhas */
}

.pesquisa-input {
  width: 100%;
  max-width: 600px;
  border: 1px solid var(--laranja-cadastro);
  border-radius: 15px;
  padding: 18px 25px;
  font-size: 20px;
  color: #555;
  text-align: center;
  transition: all 0.3s ease;
  font-family: 'Sofia Pro Soft', sans-serif;
}

.pesquisa-input::placeholder {
  color: #bdbdbd;
  font-size: 25px;
  font-weight: 200;
}

.pesquisa-input:focus {
  border-color: var(--azul-claro);
  outline: none;
  box-shadow: 0 0 6px rgba(0, 163, 215, 0.3);
}

.btn-pesquisar {
  background: var(--verde-cais);
  color: #fff;
  border: none;
  border-radius: 15px;
  font-weight: 600;
  padding: 16px 50px;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  font-family: 'Sofia Pro Soft', sans-serif;
}

.btn-pesquisar:hover {
  background: #009e44;
  transform: translateY(-2px);
}

/* Responsividade */
@media (max-width: 768px) {
  #pesquisa {
    padding: 60px 0 80px;
  }

  #pesquisa .section-title {
    flex-direction: column;
    gap: 10px;
  }

  #pesquisa .line {
    max-width: 80px;
  }

  #pesquisa h2 {
    font-size: 1.5rem;
  }

  .pesquisa-input {
    max-width: 90%;
  }

  .btn-pesquisar {
    width: 80%;
  }
}


/* ---------- COMO FUNCIONA (3 linhas alinhadas) ---------- */
#como-funciona .section-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 25px;
  margin: -40px auto 40px auto;
}

#como-funciona h2 {
  font-family: 'Sofia Pro Soft', sans-serif;
  font-weight: 700;
  color: var(--azul-bebe);
  font-size: 2rem;
  letter-spacing: 0.3px;
}

#como-funciona .line {
  flex-grow: 1;
  height: 1.5px;
  background-color: var(--azul-claro);
  border: none;
  opacity: 0.8;
  margin: 0 20px; /* espaço lateral entre o título e as linhas */
}

#como-funciona .como-box {
  background: var(--amarelo-login);
  border-radius: 30px;
  padding: 60px 40px;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.05);
}

.etapa-item {
  display: flex;
  align-items: stretch; /* mantém todas com mesma altura */
}

.etapa-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* título no topo, ícone embaixo */
  align-items: center;
  text-align: center;
  width: 100%;
  padding: 0 15px;
}

/* Linha 1 - Título */
.etapa-content h4 {
  font-weight: 700;
  color: #3b240c;
  font-size: 1.35rem;
  margin-bottom: 20px;
  min-height: 40px; /* garante alinhamento dos títulos */
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

/* Linha 2 - Texto */
.etapa-content p {
  font-weight: 400;
  color: #3b240c;
  font-size: 1rem;
  line-height: 1.55;
  flex-grow: 1; /* ocupa espaço flexível */
  max-width: 260px;
  margin: 10px auto 25px auto;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

/* Linha 3 - Ícone */
.etapa-icone {
  margin-top: auto;
}

.etapa-icone i {
  font-size: 55px;
  color: #fff;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.etapa-icone i:hover {
  transform: scale(1.1);
  opacity: 0.9;
}

/* Responsividade */
@media (max-width: 992px) {
  .etapa-item {
    margin-bottom: 30px;
  }
  .etapa-content h4 {
    font-size: 1.2rem;
    min-height: auto;
  }
  .etapa-content p {
    font-size: 0.95rem;
    margin-bottom: 20px;
  }
  .etapa-icone i {
    font-size: 45px;
  }
}

/* ---------- POR QUE ADOTAR O NOSSO PROJETO (versão 2 com texto em cruz) ---------- */
#destaques {
  background: #fff;
  padding: 100px 0;
}

/* Título */
#destaques .section-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 25px;
  margin-bottom: 60px;
}

#destaques .section-title h2 {
  font-family: 'Sofia Pro Soft', sans-serif;
  font-weight: 700;
  color: var(--azul-bebe);
  font-size: 2rem;
}

#destaques .section-title .line {
  flex: 1;
  height: 1.5px;
  background-color: var(--azul-claro);
  opacity: 0.8;
}

/* Imagem central */
.menina-central {
  max-width: 550px;
}

/* Parte superior - círculos */
.destaque-topo {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.destaque-img {
  width: 150px;
  height: 150px;
  border: 2px solid #f37721;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff8e1;
}

.destaque-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* GRADE 2x2 */
.destaques-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  position: relative;
}

/* Blocos individuais */
.destaque-box {
  padding: 40px 50px;
  text-align: center;
  color: #3b240c;
  font-family: 'Sofia Pro Soft', sans-serif;
  position: relative;
}

/* Linhas internas (apenas a cruz central) */
.destaque-box:nth-child(1),
.destaque-box:nth-child(2) {
  border-bottom: 1px solid rgba(243, 119, 33, 0.35); /* linha horizontal */
}

.destaque-box:nth-child(1),
.destaque-box:nth-child(3) {
  border-right: 1px solid rgba(243, 119, 33, 0.35); /* linha vertical */
}

/* Remove as bordas externas */
.destaque-box:nth-child(2),
.destaque-box:nth-child(4) {
  border-right: none;
}
.destaque-box:nth-child(3),
.destaque-box:nth-child(4) {
  border-bottom: none;
}


/* Título */
.destaque-box h4 {
  color: #f37721;
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 15px;
}

/* Texto */
.destaque-box p {
  font-weight: 400;
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0 auto;
  max-width: 400px;
}

/* Responsividade */
@media (max-width: 992px) {
  .destaques-grid {
    grid-template-columns: 1fr;
    border: none;
  }
  .destaque-box {
    border: none !important;
    padding: 30px 20px;
  }
}


/* ---------- GALERIA DOS ESCRITORES ---------- */
#galeria {
  background: #fff;
  padding: 100px 0;
}

#galeria .section-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 25px;
  margin-bottom: 60px;
}

#galeria .section-title h2 {
  font-family: 'Sofia Pro Soft', sans-serif;
  font-weight: 700;
  color: var(--azul-bebe);
  font-size: 2rem;
}

#galeria .section-title .line {
  flex: 1;
  height: 1.5px;
  background-color: var(--azul-claro);
  opacity: 0.8;
}

/* Itens da galeria */
.galeria-wrapper {
  position: relative;
}

.galeria-item {
  background-color: #fff2cc; /* amarelo pastel do PDF */
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 220px;
  transition: transform 0.3s ease;
}

.galeria-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.galeria-item:hover {
  transform: scale(1.03);
}

/* Carousel */
.owl-carousel .owl-nav button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 2rem;
  color: #f37721;
  transition: color 0.3s;
}

.owl-carousel .owl-nav button:hover {
  color: #d45f10;
}

.owl-carousel .owl-prev {
  left: -40px;
}

.owl-carousel .owl-next {
  right: -40px;
}

/* ---------- Indicação de Escola ---------- */
#indicacao {
  background: #fff;
  padding: 80px 0;
}

/* Título */
#indicacao .section-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 25px;
  margin-bottom: 60px;
}

#indicacao .section-title h2 {
  font-family: 'Sofia Pro Soft', sans-serif;
  font-weight: 700;
  color: var(--azul-bebe);
  font-size: 2rem;
}

#indicacao .section-title .line {
  flex: 1;
  height: 1.5px;
  background-color: var(--azul-claro);
  opacity: 0.8;
}

.indicacao-box {
  background: var(--laranja-cadastro);
  padding: 50px 50px;
  border-radius: 22px;
  max-width: 100%;
  margin: 40px auto 0;
}

.indicacao-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.indic-input {
  width: 100%;
  padding: 18px 25px;
  border-radius: 50px;
  border: 2px solid #fff;
  background: transparent;
  color: #fff;
  font-size: 1.1rem;
  text-align: center;
}

.indic-input::placeholder {
  color: #fff;
  opacity: 0.85;
}

.btn-indicar {
  background: #fff;
  color: var(--laranja-cadastro);
  padding: 14px 50px;
  font-size: 1.1rem;
  border-radius: 50px;
  border: none;
  font-weight: bold;
  transition: 0.3s;
}

.btn-indicar:hover {
  background: #f7f7f7;
  transform: translateY(-2px);
}


/* ---------- FOOTER ---------- */
#footer {
  background-color: #33c6c5;
  color: #fff;
  padding-top: 60px;
  font-family: 'Sofia Pro Soft', sans-serif;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  padding-bottom: 40px;
}

.footer-logo {
  max-width: 120px;
  margin-bottom: 20px;
}

.footer-social a {
  color: #fff;
  font-size: 1.6rem;
  margin-right: 15px;
  transition: opacity 0.3s;
}
.footer-social a:hover {
  color:  var(--amarelo-login);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  color: #fff;
  text-decoration: none;
  font-size: 0.95rem;
}
.footer-links a:hover {
  text-decoration: underline;
}

.footer-newsletter {
  text-align: left;
}
.footer-newsletter h5 {
  font-weight: 600;
  color: #fff;
  margin-bottom: 10px;
  font-size: 1rem;
}

.newsletter-form {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.newsletter-form input {
  flex: 1;
  border: none;
  border-radius: 6px;
  padding: 8px 12px;
  outline: none;
  color: #333;
}

.newsletter-form button {
  background: #fff;
  color: #33c6c5;
  border: none;
  border-radius: 6px;
  margin-left: 8px;
  padding: 8px 12px;
  cursor: pointer;
  transition: 0.3s;
}
.newsletter-form button:hover {
  background: #f37721;
  color: #fff;
}

/* ---------- BOTÕES DO FOOTER ---------- */
.footer-buttons {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.btn-footer {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 6px;
  text-decoration: none;
  transition: 0.3s;
}

/* WhatsApp */
.btn-footer.whatsapp {
  background: #25D366;
  color: #fff;
}
.btn-footer.whatsapp:hover {
  background: #1ebe5a;
}

/* Contato */
.btn-footer.contato {
  background: #fff;
  color: #33c6c5;
}
.btn-footer.contato:hover {
  background: #f37721;
  color: #fff;
}

/* ---------- FOOTER BOTTOM ---------- */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding: 25px 0; /* respiro maior no rodapé */
  font-size: 0.9rem;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-bottom p {
  margin: 0;
  line-height: 1.5;
}

/* Logo da Loviweb */
.footer-loviweb {
  display: inline-block;
}

.loviweb-logo {
  height: 44px; /* Aumentado para melhor equilíbrio visual */
  opacity: 0.9;
  transition: opacity 0.3s ease, transform 0.2s ease;
  margin-bottom: 5px; /* pequeno afastamento da base */
}

.loviweb-logo:hover {
  opacity: 1;
  transform: scale(1.05);
}

.footer-bottom .container-limit {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}


/* ---------- Blog Cais Educação ---------- */
#blog {
  background: #fff;
  padding: 20px 0 100px;
}

#blog .section-title h2 {
  font-family: 'Sofia Pro Soft', sans-serif;
  font-weight: 700;
  color: var(--azul-bebe);
  font-size: 2rem;
  margin-bottom: 20px;
}

#blog form {
  margin-bottom: 50px;
}

#blog select.form-select {
  border: 1.5px solid var(--azul-bebe);
  border-radius: 30px;
  padding: 8px 20px;
  color: var(--azul-escuro);
  font-size: 0.95rem;
}

/* Alinhamento dos cards do blog */
#blog .row {
  justify-content: flex-start; /* Alinha os cards à esquerda */
}

@media (max-width: 768px) {
  #blog .row {
    justify-content: center; /* Mantém centralizado no mobile */
  }
}

/* Cards */
#blog .card {
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#blog .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

#blog .card-body {
  padding: 1.2rem 1rem;
}

#blog .card-title {
  font-weight: 700;
  color: var(--texto);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

#blog .card-text {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.5;
}

/* Botão Ler Mais */
#blog .btn-pesquisar {
  border-radius: 25px;
  padding: 8px 24px;
  font-size: 0.9rem;
}


/* Responsividade */
@media (max-width: 768px) {
  #blog {
    padding: 40px 0 80px;
  }
  #blog .section-title h2 {
    font-size: 1.6rem;
  }
}



/* ---------- RESPONSIVIDADE ---------- */
@media (max-width: 992px) {
  /* Footer */
  .footer-content {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .footer-links {
    align-items: center;
  }

  .footer-newsletter {
    width: 100%;
  }

  .footer-bottom {
    text-align: center;
    flex-direction: column;
    gap: 14px;
  }

  .loviweb-logo {
    height: 36px;
  }

  /* Navbar e Hero */
  .navbar-nav {
    background-color: #fff;
    text-align: center;
    padding: 10px 0;
  }

  .navbar-nav .nav-link {
    display: block;
    margin: 10px 0;
  }

  .d-flex.ms-3 {
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
  }

  .hero-img {
    height: 55vh;
  }

  .carousel-caption {
    padding: 20px 25px;
    max-width: 90%;
  }

  .carousel-caption h2 {
    font-size: 1.7rem;
  }

  .carousel-caption p {
    font-size: 0.95rem;
  }
}
