/* ===== DECLARAÇÃO DOUTRINÁRIA - ESTILOS ===== */

:root {
  --primary-color: #101f48fa;
  --secondary-color: #F23545;
  --accent-color: #3a5088;
  --light-color: #f8f9fa;
  --dark-color: #212529;
  --text-color: #333;
  --transition: all 0.3s ease;
  --detail-color: #FFDE59;
  --section-light: #f8f9fa;
  --section-white: #ffffff;
}

/* Hero Section */
#hero-declaracao {
  background: linear-gradient(rgba(16, 31, 72, 0.65), rgba(16, 31, 72, 0.75)), url('../imagens/Fé.jpg') center/cover no-repeat;
  color: white;
  padding: 140px 20px 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
  margin-top: -80px;
  padding-top: 80px;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#hero-declaracao::before {
  display: none;
}

#hero-declaracao-container {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
}

#hero-declaracao h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  animation: slideInDown 0.8s ease;
}

#hero-declaracao p {
  font-size: 1.3rem;
  margin-bottom: 30px;
  opacity: 0.95;
  animation: slideInUp 0.8s ease;
}

.btn-hero {
  display: inline-block;
  padding: 12px 30px;
  background-color: var(--secondary-color);
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 600;
  transition: var(--transition);
  animation: slideInUp 0.8s ease 0.2s both;
}

.btn-hero:hover {
  background-color: darken(var(--secondary-color), 10%);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  color: white;
}

/* Introdução */
#introducao-doutrina {
  background-color: var(--section-light);
  padding: 100px 20px;
}

.intro-content {
  max-width: 850px;
  margin: 0 auto;
  text-align: center;
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-color);
}

.intro-content p {
  margin-bottom: 0;
  color: #555;
  font-weight: 500;
}

/* Seção de Artigos */
#artigos-fe {
  background-color: var(--section-white);
  padding: 100px 20px;
}

.artigos-container {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  gap: 30px;
}

.artigo {
  display: flex;
  gap: 30px;
  padding: 35px;
  background: white;
  border-radius: 8px;
  border-left: 5px solid var(--secondary-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  align-items: flex-start;
}

.artigo:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
  transform: translateY(-5px);
}

.artigo-numero {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(16, 31, 72, 0.3);
}

.artigo-conteudo h3 {
  font-size: 1.3rem;
  color: var(--primary-color);
  margin-bottom: 12px;
  font-weight: 600;
}

.artigo-conteudo p {
  color: #666;
  line-height: 1.7;
  margin: 0;
  text-align: justify;
}

/* CTA Section with people image */
#cta-section {
  /* overlay gradient + background image (people) */
  background: linear-gradient(rgba(16,31,72,0.65), rgba(16,31,72,0.65)), url('/imagens/home-background.jpg') right/cover no-repeat;
  background-position: center right;
  color: white;
  padding: 80px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s ease;
  min-height: 320px;
}

#cta-section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* decorative pattern removed to keep image legible */
#cta-section::before {
  display: none;
}

/* On larger screens, align text to left for better composition with background image */
@media (min-width: 992px) {
  #cta-section {
    background-position: right center;
    padding: 80px 40px;
  }

  .cta-content {
    text-align: left;
    max-width: 900px;
    margin-left: 0;
  }
}

@media (max-width: 576px) {
  /* mobile: keep image but position center and reduce height for readability */
  #cta-section {
    background: linear-gradient(rgba(16,31,72,0.75), rgba(16,31,72,0.75)), url('../imagens/pessoas.jpg') center/cover no-repeat;
    padding: 60px 16px;
    min-height: 420px;
  }
  .cta-content {
    text-align: center;
  }
}

.cta-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  margin: 0 auto;
}

.cta-content h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  font-weight: 700;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.cta-content p {
  font-size: 1.1rem;
  margin-bottom: 45px;
  opacity: 0.95;
  font-weight: 500;
}

.cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  align-items: center;
}

.cta-btn {
  display: inline-block;
  padding: 14px 35px;
  background-color: var(--secondary-color);
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.cta-btn:hover {
  background-color: #e01d3d;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  color: white;
}

.cta-btn-outline {
  display: inline-block;
  padding: 14px 35px;
  background-color: transparent;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  border: 2px solid white;
  font-weight: 600;
  transition: all 0.3s ease;
}

.cta-btn-outline:hover {
  background-color: white;
  color: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

/* Headliner (título de seção) */
.headliner {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 60px;
  color: var(--primary-color);
  position: relative;
  padding-bottom: 20px;
}

.headliner::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--secondary-color), transparent);
  border-radius: 2px;
}

/* Seções alternadas */
.section-light {
  background-color: var(--section-light);
}

.section-white {
  background-color: var(--section-white);
}

/* Scroll Indicator */
#scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

#scroll-indicator i {
  color: white;
  font-size: 1.5rem;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-15px);
  }
  60% {
    transform: translateY(-7px);
  }
}

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Back to Top */
.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background-color: var(--secondary-color);
  color: white;
  text-align: center;
  line-height: 50px;
  border-radius: 50%;
  display: none;
  text-decoration: none;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  z-index: 99;
}

.back-to-top:hover {
  background-color: #e01d3d;
  transform: translateY(-5px);
}

.back-to-top.show {
  display: block;
}

/* Footer */
footer {
  background-color: var(--dark-color);
  color: white;
  padding: 50px 0 20px;
  margin-top: 0;
}

footer h4 {
  color: var(--detail-color);
  font-weight: 600;
  margin-bottom: 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand h3 {
  font-size: 1.3rem;
  margin: 15px 0 10px;
}

.footer-brand p {
  color: #ccc;
}

#logo-footer {
  max-width: 100px;
}

.footer-contacts a,
.footer-contacts div {
  display: block;
  color: #ccc;
  text-decoration: none;
  margin-bottom: 10px;
  transition: var(--transition);
}

.footer-contacts a:hover {
  color: var(--detail-color);
}

.footer-links a {
  display: block;
  color: #ccc;
  text-decoration: none;
  margin-bottom: 10px;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--detail-color);
  padding-left: 5px;
}

.social-icons {
  display: flex;
  gap: 15px;
}

.social-icons a {
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  transition: var(--transition);
}

.social-icons a:hover {
  background-color: var(--secondary-color);
  transform: translateY(-5px);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #999;
}

/* Responsivo */
@media (max-width: 768px) {
  #hero-declaracao {
    padding: 120px 20px 80px;
  }

  #hero-declaracao h1 {
    font-size: 2rem;
  }

  #hero-declaracao p {
    font-size: 1rem;
  }

  .headliner {
    font-size: 2rem;
  }

  .artigo {
    flex-direction: column;
    gap: 20px;
  }

  .artigo-numero {
    margin: 0 auto;
  }

  .cta-content h2 {
    font-size: 1.8rem;
  }

  .cta-buttons {
    gap: 10px;
  }

  .cta-btn,
  .cta-btn-outline {
    padding: 10px 20px;
    font-size: 0.95rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 480px) {
  #hero-declaracao {
    padding: 120px 15px 80px;
    min-height: 500px;
  }

  #hero-declaracao h1 {
    font-size: 1.8rem;
  }

  #hero-declaracao p {
    font-size: 1rem;
    margin-bottom: 20px;
  }

  .headliner {
    font-size: 1.8rem;
    margin-bottom: 50px;
  }

  .artigo {
    padding: 25px;
    gap: 20px;
    flex-direction: column;
  }

  .artigo-numero {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }

  .artigo-conteudo h3 {
    font-size: 1.2rem;
  }

  .artigo-conteudo p {
    font-size: 0.95rem;
  }

  .cta-content h2 {
    font-size: 1.5rem;
  }

  .cta-content p {
    font-size: 1rem;
    margin-bottom: 30px;
  }

  .cta-buttons {
    flex-direction: column;
  }

  .cta-btn,
  .cta-btn-outline {
    width: 100%;
  }
}
