/* ============================================================
   CCBI - Centro Cultural Beneficente Islâmico de Foz do Iguaçu
   Global Stylesheet
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&family=Merriweather:wght@300;400;700&display=swap');

/* ---- CSS Variables ---- */
:root {
  --green-dark:   #1B5C35;
  --green-mid:    #236b40;
  --green-light:  #2e8050;
  --gold:         #C9A84C;
  --gold-dark:    #a8882e;
  --white:        #FFFFFF;
  --bg-light:     #F0F7F2;
  --bg-gray:      #F5F5F5;
  --text-dark:    #2D2D2D;
  --text-muted:   #6c757d;
  --border-color: #dee2e6;
  --shadow-sm:    0 2px 8px rgba(0,0,0,0.08);
  --shadow-md:    0 4px 16px rgba(0,0,0,0.12);
  --transition:   all 0.3s ease;
  --radius:       6px;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Roboto', sans-serif;
  font-size: 16px;
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.7;
}

a { color: var(--green-dark); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--gold); }

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4, h5 {
  font-family: 'Merriweather', serif;
  font-weight: 700;
  line-height: 1.3;
  color: var(--green-dark);
}

p { margin-bottom: 1rem; }
ul { list-style: none; }

/* ---- Utility ---- */
.text-gold { color: var(--gold) !important; }
.text-green { color: var(--green-dark) !important; }
.bg-green { background-color: var(--green-dark) !important; }
.bg-light-green { background-color: var(--bg-light) !important; }
.section-title {
  font-size: 1.8rem;
  color: var(--green-dark);
  margin-bottom: 0.5rem;
  position: relative;
  display: inline-block;
}
.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--gold);
  margin-top: 8px;
}
.section-title.center { display: block; text-align: center; }
.section-title.center::after { margin: 8px auto 0; }

.section-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 2.5rem;
}

/* ---- TOP BAR ---- */
#top-bar {
  background-color: var(--green-dark);
  color: var(--white);
  font-size: 0.82rem;
  padding: 6px 0;
  border-bottom: 2px solid var(--gold);
}
#top-bar a {
  color: rgba(255,255,255,0.85);
  margin-left: 18px;
  font-weight: 500;
  letter-spacing: 0.5px;
}
#top-bar a:hover { color: var(--gold); }
#top-bar .top-date { color: rgba(255,255,255,0.75); font-size: 0.78rem; }
#top-bar .top-date span { margin-right: 12px; }

/* ---- NAVBAR ---- */
#main-navbar {
  background-color: var(--white);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 999;
}
#main-navbar .navbar-brand img {
  height: 68px;
  width: auto;
  filter: brightness(0) saturate(100%);
  transition: filter 0.3s ease;
}
#main-navbar .navbar-brand img:hover {
  filter: brightness(0) saturate(100%) invert(25%) sepia(60%) saturate(600%) hue-rotate(100deg);
}
#main-navbar .nav-link {
  color: var(--text-dark) !important;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 1.2rem 1rem !important;
  position: relative;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
#main-navbar .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%; right: 50%;
  height: 3px;
  background: var(--gold);
  transition: var(--transition);
}
#main-navbar .nav-link:hover::after,
#main-navbar .nav-link.active::after {
  left: 0; right: 0;
}
#main-navbar .nav-link:hover,
#main-navbar .nav-link.active { color: var(--green-dark) !important; }

.dropdown-menu {
  border: none;
  border-top: 3px solid var(--gold);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow-md);
  min-width: 220px;
  padding: 0.5rem 0;
}
.dropdown-item {
  font-size: 0.9rem;
  padding: 0.6rem 1.2rem;
  color: var(--text-dark);
  font-weight: 400;
}
.dropdown-item:hover {
  background-color: var(--bg-light);
  color: var(--green-dark);
  padding-left: 1.6rem;
}

/* ---- HERO SECTION ---- */
#hero {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-mid) 50%, #1a7a40 100%);
  min-height: 480px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('https://upload.wikimedia.org/wikipedia/commons/thumb/5/5b/Mesquita_de_Foz_do_Iguacu.jpg/1280px-Mesquita_de_Foz_do_Iguacu.jpg') center/cover no-repeat;
  opacity: 0.18;
}
#hero .hero-content { position: relative; z-index: 2; color: var(--white); }
#hero h1 {
  color: var(--white);
  font-size: 2.4rem;
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}
#hero p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.88);
  max-width: 600px;
  margin-bottom: 1.8rem;
}
#hero .btn-hero {
  background-color: var(--gold);
  color: var(--white);
  border: none;
  padding: 12px 32px;
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--radius);
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
#hero .btn-hero:hover {
  background-color: var(--gold-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
#hero .btn-hero-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.7);
  padding: 10px 28px;
  border-radius: var(--radius);
  font-weight: 500;
  transition: var(--transition);
  margin-left: 12px;
}
#hero .btn-hero-outline:hover {
  background: rgba(255,255,255,0.15);
  border-color: var(--white);
}

/* ---- INFO STRIP ---- */
#info-strip {
  background-color: var(--gold);
  padding: 18px 0;
}
#info-strip .info-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
}
#info-strip .info-item i { font-size: 1.4rem; color: rgba(255,255,255,0.9); }
#info-strip .info-item span { font-size: 0.85rem; opacity: 0.85; display: block; }
#info-strip .info-item strong { font-size: 0.95rem; display: block; }

/* ---- PAGE HERO (inner pages) ---- */
.page-hero {
  background: linear-gradient(to right, var(--green-dark), var(--green-mid));
  padding: 48px 0 36px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  right: -60px; top: -60px;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
}
.page-hero h1 {
  color: var(--white);
  font-size: 2rem;
  margin-bottom: 0.4rem;
}
.page-hero .breadcrumb {
  background: transparent;
  padding: 0;
  margin: 0;
}
.page-hero .breadcrumb-item a { color: rgba(255,255,255,0.75); }
.page-hero .breadcrumb-item.active { color: rgba(255,255,255,0.95); }
.page-hero .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,0.5); }

/* ---- NEWS SECTION ---- */
#news-section { padding: 64px 0; }
.news-card {
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  height: 100%;
  background: var(--white);
  display: flex;
  flex-direction: column;
}
.news-card > img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
}
.news-card .card-body { flex: 1; display: flex; flex-direction: column; }
.news-card .card-excerpt { flex: 1; }
.news-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: var(--gold);
}
.news-card .card-category {
  display: inline-block;
  background: var(--green-dark);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}
.news-card .card-body { padding: 1.2rem; }
.news-card .card-title {
  font-family: 'Merriweather', serif;
  font-size: 1rem;
  color: var(--text-dark);
  line-height: 1.4;
  margin-bottom: 0.6rem;
  font-weight: 700;
}
.news-card .card-title a { color: var(--text-dark); }
.news-card .card-title a:hover { color: var(--green-dark); }
.news-card .card-date {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.8rem;
}
.news-card .card-date i { margin-right: 4px; }
.news-card .card-excerpt {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1rem;
}
.news-card .card-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--green-dark);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.news-card .card-link:hover { color: var(--gold); }
.news-card .card-link i { transition: var(--transition); }
.news-card .card-link:hover i { transform: translateX(4px); }

/* ---- ABOUT STRIP ---- */
#about-strip {
  background-color: var(--bg-light);
  padding: 64px 0;
}
#about-strip .about-icon {
  font-size: 2.5rem;
  color: var(--gold);
  margin-bottom: 12px;
}
#about-strip .about-feature h5 {
  font-size: 1.05rem;
  color: var(--green-dark);
  margin-bottom: 6px;
}
#about-strip .about-feature p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0;
}

/* ---- VISIT HOURS ---- */
#visit-hours { padding: 64px 0; }
.hours-table { border-collapse: separate; border-spacing: 0; width: 100%; }
.hours-table th {
  background: var(--green-dark);
  color: var(--white);
  padding: 12px 16px;
  text-align: left;
  font-weight: 500;
  font-size: 0.9rem;
}
.hours-table td {
  padding: 11px 16px;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border-color);
}
.hours-table tr:last-child td { border-bottom: none; }
.hours-table tr:nth-child(even) td { background: var(--bg-light); }
.hours-table tr:hover td { background: #e8f4ec; }
.closed { color: #d9534f; font-weight: 600; }

/* ---- NEWSLETTER ---- */
#newsletter {
  background: linear-gradient(135deg, var(--green-dark), var(--green-mid));
  padding: 56px 0;
  color: var(--white);
}
#newsletter h3 { color: var(--white); font-size: 1.6rem; margin-bottom: 0.5rem; }
#newsletter p { color: rgba(255,255,255,0.8); margin-bottom: 0; }
#newsletter .input-group { max-width: 480px; }
#newsletter .form-control {
  border-radius: var(--radius) 0 0 var(--radius) !important;
  border: none;
  padding: 12px 16px;
  font-size: 0.95rem;
}
#newsletter .btn-subscribe {
  background: var(--gold);
  border: none;
  color: var(--white);
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 0 var(--radius) var(--radius) 0 !important;
  transition: var(--transition);
}
#newsletter .btn-subscribe:hover { background: var(--gold-dark); }

/* ---- FOOTER ---- */
#main-footer {
  background-color: #111;
  color: rgba(255,255,255,0.75);
  padding: 56px 0 0;
}
#main-footer h5 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 1.2rem;
  font-family: 'Roboto', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  padding-bottom: 10px;
}
#main-footer h5::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 36px; height: 2px;
  background: var(--gold);
}
#main-footer a { color: rgba(255,255,255,0.65); font-size: 0.9rem; }
#main-footer a:hover { color: var(--gold); }
#main-footer .footer-links li { margin-bottom: 8px; }
#main-footer .footer-links li a::before {
  content: '›';
  color: var(--gold);
  margin-right: 6px;
}
#main-footer .footer-contact p {
  font-size: 0.88rem;
  margin-bottom: 10px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
#main-footer .footer-contact i { color: var(--gold); margin-top: 3px; flex-shrink: 0; }
#main-footer .footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 16px 0;
  margin-top: 40px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
  text-align: center;
}
#main-footer .social-links { display: flex; gap: 10px; margin-top: 12px; }
#main-footer .social-links a {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.65);
  font-size: 0.95rem;
  transition: var(--transition);
}
#main-footer .social-links a:hover {
  background: var(--gold);
  color: var(--white);
}

/* ---- SOBRE PAGE ---- */
.about-content h2 { font-size: 1.5rem; margin: 1.8rem 0 0.8rem; }
.about-content p { color: #444; font-size: 0.95rem; line-height: 1.8; }
.contact-info-box {
  background: var(--bg-light);
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.5rem;
}
.contact-info-box p { margin-bottom: 10px; font-size: 0.9rem; }
.contact-info-box i { color: var(--green-dark); margin-right: 8px; }

/* ---- NEWS FILTER ---- */
.filter-bar { margin-bottom: 2rem; }
.filter-btn {
  background: transparent;
  border: 2px solid var(--border-color);
  border-radius: 30px;
  padding: 6px 20px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-dark);
  cursor: pointer;
  transition: var(--transition);
  margin: 4px;
}
.filter-btn:hover, .filter-btn.active {
  background: var(--green-dark);
  border-color: var(--green-dark);
  color: var(--white);
}

/* ---- CONTACT FORM ---- */
.contact-form .form-label { font-weight: 500; font-size: 0.9rem; color: var(--text-dark); }
.contact-form .form-control {
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 11px 14px;
  font-size: 0.93rem;
  transition: var(--transition);
}
.contact-form .form-control:focus {
  border-color: var(--green-dark);
  box-shadow: 0 0 0 3px rgba(27,92,53,0.1);
}
.btn-submit {
  background: var(--green-dark);
  color: var(--white);
  border: none;
  padding: 12px 32px;
  font-weight: 600;
  border-radius: var(--radius);
  transition: var(--transition);
}
.btn-submit:hover {
  background: var(--green-mid);
  transform: translateY(-2px);
}

/* ---- DONATIONS ---- */
.donation-box {
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
}
.donation-box .donation-amount {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--green-dark);
}

/* ---- ISLAM PAGE ---- */
.islam-content h2 { font-size: 1.3rem; margin: 2rem 0 0.8rem; color: var(--green-dark); }
.islam-content h3 { font-size: 1.1rem; margin: 1.5rem 0 0.6rem; color: var(--green-mid); }
.islam-content p { color: #444; font-size: 0.93rem; line-height: 1.85; text-align: justify; }
.islam-content blockquote {
  border-left: 4px solid var(--gold);
  padding: 1rem 1.5rem;
  background: var(--bg-light);
  margin: 1.5rem 0;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: #555;
  font-size: 0.92rem;
}
.toc-sidebar {
  position: sticky;
  top: 80px;
  background: var(--bg-light);
  border-radius: var(--radius);
  padding: 1.5rem;
  border-left: 3px solid var(--green-dark);
}
.toc-sidebar h6 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--green-dark);
  margin-bottom: 1rem;
}
.toc-sidebar a {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 5px 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.toc-sidebar a:hover { color: var(--green-dark); padding-left: 4px; }

/* ---- MAP WRAPPER ---- */
.map-wrapper {
  border-radius: var(--radius);
  overflow: hidden;
  border: 3px solid var(--border-color);
}
.map-wrapper iframe { display: block; width: 100%; height: 300px; border: 0; }

/* ---- BACK TO TOP ---- */
#back-to-top {
  position: fixed;
  bottom: 28px; right: 28px;
  width: 44px; height: 44px;
  background: var(--green-dark);
  color: var(--white);
  border: none;
  border-radius: 50%;
  font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  opacity: 0; pointer-events: none;
  transition: var(--transition);
  box-shadow: var(--shadow-md);
  z-index: 9999;
}
#back-to-top.visible { opacity: 1; pointer-events: all; }
#back-to-top:hover { background: var(--gold); transform: translateY(-3px); }

/* ---- ANIMATIONS ---- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ---- RESPONSIVE ---- */
@media (max-width: 767px) {
  #hero h1 { font-size: 1.7rem; }
  #hero { min-height: 360px; }
  .section-title { font-size: 1.4rem; }
  #main-navbar .navbar-brand img { height: 48px; filter: brightness(0) saturate(100%); }
  #top-bar .top-date { display: none; }
  #info-strip .info-item { margin-bottom: 16px; }
}

@media (max-width: 991px) {
  #main-navbar .nav-link { padding: 0.7rem 1rem !important; }
  #main-navbar .nav-link::after { display: none; }
}
