/* style.css - Versão otimizada e aprimorada (ATUALIZADO) */

body {
  font-family: 'Open Sans', sans-serif;
  background-color: #F4F4F4;
  color: #333;
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
}

h1, h2, h3, .navbar-brand {
  font-family: 'Montserrat', sans-serif;
}

a {
  transition: color 0.3s ease, text-decoration 0.3s ease;
}

a:focus,
button:focus {
  outline: 2px solid #f57e20;
  outline-offset: 2px;
}

/* Navbar */
.navbar-brand {
  color: #2b3b93 !important;
}

.nav-link {
  color: #2b3b93 !important;
  font-weight: 500;
}

.nav-link.active {
  font-weight: 700;
  color: #f57e20 !important;
}

/* Hero Section (desktop/default) */
.hero {
  padding: 8rem 1rem;
  background: linear-gradient(rgba(255,255,255,0.9), rgba(255,255,255,0.9)), url('images/banner-hero.jpg') no-repeat center center/cover;
  color: #2b3b93;
  text-align: center;
  display: flex;
  align-items: center; /* vertical centering do conteúdo */
  justify-content: center;
  flex-direction: column;
  box-sizing: border-box;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.hero .btn {
  background-color: #f57e20;
  border: none;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-shadow: 0 4px 6px rgba(245,126,32,0.4);
  border-radius: 8px;
}

.hero .btn:hover {
  background-color: #e0691a;
  transform: scale(1.05);
  box-shadow: 0 6px 10px rgba(224,105,26,0.6);
}

/* Cards */
.card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.card-title {
  font-family: 'Montserrat', sans-serif;
  color: #2b3b93;
}

.card-text {
  font-size: 0.95rem;
  color: #555;
}

.card-footer {
  background-color: #fff;
  border-top: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
}

/* Botões */
.btn-warning {
  background-color: #f57e20;
  border: none;
  color: #fff;
  font-weight: 600;
  transition: background-color 0.7s ease, transform 0.4s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 6px rgba(245,126,32,0.5);
  border-radius: 8px;
  padding: 0.5rem 1.25rem;
}

.btn-warning:hover {
  background-color: #e0691a;
  transform: scale(1.05);
  box-shadow: 0 6px 12px rgba(224,105,26,0.7);
}

/* Botões específicos */
.btn-ver-ebooks,
.btn-ver-voltar {
  display: block;
  width: fit-content;
  margin: 2rem auto;
  font-weight: 600;
  border-radius: 8px;
  padding: 0.75rem 2rem;
  background-color: #f57e20;
  color: #fff;
  border: none;
  text-align: center;
  transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 6px rgba(245,126,32,0.5);
}

.btn-ver-ebooks:hover,
.btn-ver-voltar:hover {
  background-color: #f57e20;
  border: none;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-shadow: 0 4px 6px rgba(245,126,32,0.4);
  border-radius: 8px;
}

/* Banner promocional */
.banner-promocional {
  background-color: #f57e20;
  padding: 0.75rem 1rem;
  font-weight: bold;
  font-size: 1rem;
  color: #fff;
  text-align: center;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(245,126,32,0.7);
}

/* Footer */
footer {
  font-size: 0.9rem;
  background-color: #222;
  color: #fff;
  padding: 2rem 1rem;
  text-align: center;
  transition: padding 0.3s ease;
}

footer a {
  color: #FFD24C;
  text-decoration: none;
  transition: text-decoration 0.3s ease;
}

footer a:hover {
  text-decoration: underline;
}

/* Ajustes para dispositivos muito pequenos (ex: celulares muito estreitos) */
@media (max-width: 480px) {
  footer {
    padding: 1rem 0.75rem;
    font-size: 0.8rem;
  }
}

/* ==========================================================
   AJUSTES DE RESPONSIVIDADE PARA CELULARES (CORRETOS)
   ========================================================== */
@media (max-width: 768px) {
  /* HERO */
  .hero {
    padding: 3rem 1rem; /* altura reduzida mas ainda equilibrada */
    background-position: center top;
  }

  .hero h1 {
    font-size: 1.8rem; /* reduz título */
    margin-bottom: 0.6rem;
  }

  .hero p {
    font-size: 1rem;
    margin-bottom: 1rem;
  }

  .hero .btn {
    font-size: 0.9rem;
    padding: 0.6rem 1.2rem;
  }

  /* CARDS */
  .card {
    transform: none;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
    margin-bottom: 1.2rem;
    scale: 0.9;              /* redimensiona tudo de forma proporcional */
    transform-origin: center top;
  }

  .card img {
    border-radius: 8px 8px 0 0;
    object-fit: cover;
  }

  .card-title {
    font-size: 0.95rem;
    margin-bottom: 0.4rem;
  }

  .card-text {
    font-size: 0.85rem;
    line-height: 1.4;
  }

  .card-footer {
    padding: 0.5rem 0.75rem;
  }

  /* BOTÕES GERAIS (aplicados no mobile) */
  .btn-ver-ebooks,
  .btn-ver-voltar {
    width: 100%;
    max-width: 240px;
    font-size: 0.95rem;
    margin: 1rem auto;
    padding: 0.6rem 1rem;
  }

  /* BANNER PROMOCIONAL */
  .banner-promocional {
    font-size: 0.9rem;
    padding: 0.5rem 0.75rem;
  }

  /* NAVBAR */
  .navbar-brand {
    font-size: 1.1rem;
  }

  .nav-link {
    display: block;
    text-align: center;
    margin: 0.25rem 0;
  }




/* ==========================================================
   CABEÇALHO DA PÁGINA DE E-BOOKS
   ========================================================== */
header.bg-light {
  background: linear-gradient(135deg, #ffffff 0%, #f7f9ff 100%);
  padding: 4rem 1rem;
  text-align: center;
  border-bottom: 3px solid rgba(245, 126, 32, 0.2);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
}

/* efeito decorativo leve */
header.bg-light::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -30%;
  width: 80%;
  height: 200%;
  background: radial-gradient(circle, rgba(43, 59, 147, 0.08), transparent 70%);
  transform: rotate(-25deg);
  z-index: 0;
}

header.bg-light .container {
  position: relative;
  z-index: 2;
}

header.bg-light h1 {
  color: #2b3b93;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  letter-spacing: -0.5px;
}

header.bg-light p {
  color: #555;
  font-size: 1.1rem;
  font-weight: 400;
  max-width: 600px;
  margin: 0 auto;
}

/* Linha decorativa abaixo do título */
header.bg-light h1::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background-color: #f57e20;
  border-radius: 2px;
  margin: 0.75rem auto 0;
}

/* Responsivo */
@media (max-width: 768px) {
  header.bg-light {
    padding: 2.5rem 1rem;
  }

  header.bg-light h1 {
    font-size: 1.8rem;
  }

  header.bg-light p {
    font-size: 0.95rem;
  }

  header.bg-light h1::after {
    width: 45px;
    height: 3px;
  }
}










  /* FOOTER (ajuste específico mobile) */
  footer {
    padding: 1rem 0.75rem;
    font-size: 0.85rem;
  }
}
