/* ============================================================
   CCBI - Mesquita Omar Ibn Al-Khattab
   Design v2 — Sério, Histórico, Islâmico
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Cinzel:wght@400;600;700&family=Lato:wght@300;400;700&display=swap');

/* ---- Variables ---- */
:root {
  --black:      #080604;
  --dark:       #111009;
  --dark-2:     #1C1710;
  --dark-3:     #2A2118;
  --gold:       #C49A2E;
  --gold-light: #D4AE45;
  --gold-pale:  #EDD98A;
  --ivory:      #F5EDD8;
  --ivory-2:    #EDE4CC;
  --white:      #FFFFFF;
  --text-body:  #2C2618;
  --text-muted: #7A6B52;
  --border:     rgba(196,154,46,0.25);
  --shadow:     0 4px 24px rgba(0,0,0,0.3);
  --radius:     4px;
  --trans:      all 0.35s ease;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Lato', sans-serif; font-size: 16px; color: var(--text-body); background: var(--ivory); line-height: 1.75; }
a { color: var(--gold); text-decoration: none; transition: var(--trans); }
a:hover { color: var(--gold-light); }
img { max-width: 100%; height: auto; display: block; }
h1,h2,h3,h4,h5 { font-family: 'Playfair Display', serif; font-weight: 700; line-height: 1.3; color: var(--dark); }
p { margin-bottom: 1rem; }
ul { list-style: none; }

/* ---- Utilities ---- */
.text-gold { color: var(--gold) !important; }
.bg-dark-main { background: var(--dark) !important; }
.bg-ivory { background: var(--ivory) !important; }

.ornament {
  display: flex; align-items: center; gap: 16px; margin-bottom: 1.2rem;
}
.ornament::before, .ornament::after {
  content: ''; flex: 1; height: 1px; background: var(--gold);
}
.ornament-icon { color: var(--gold); font-size: 1.1rem; flex-shrink: 0; }

.section-label {
  font-family: 'Cinzel', serif; font-size: 0.75rem; font-weight: 600;
  letter-spacing: 3px; text-transform: uppercase; color: var(--gold);
  margin-bottom: 0.6rem; display: block;
}
.section-title-v2 {
  font-family: 'Playfair Display', serif; font-size: 2rem; font-weight: 700;
  color: var(--dark); margin-bottom: 1rem; line-height: 1.25;
}
.section-title-v2.light { color: var(--ivory); }
.section-subtitle-v2 { font-size: 1rem; color: var(--text-muted); margin-bottom: 2.5rem; font-weight: 300; }
.section-subtitle-v2.light { color: rgba(245,237,216,0.75); }

/* ---- Divider ---- */
.gold-divider {
  display: flex; align-items: center; gap: 12px; margin: 1.5rem 0;
}
.gold-divider::before, .gold-divider::after {
  content: ''; flex: 1; height: 1px; background: linear-gradient(to right, transparent, var(--gold), transparent);
}
.gold-divider span { color: var(--gold); font-size: 1rem; }

/* ---- TOP BAR ---- */
#top-bar {
  background: var(--black); color: rgba(245,237,216,0.7);
  font-size: 0.78rem; padding: 7px 0;
  border-bottom: 1px solid rgba(196,154,46,0.3);
  font-family: 'Cinzel', serif; letter-spacing: 0.5px;
}
#top-bar a { color: rgba(245,237,216,0.7); margin-left: 20px; transition: var(--trans); }
#top-bar a:hover { color: var(--gold); }
#top-bar .top-date { color: rgba(245,237,216,0.5); font-size: 0.73rem; }
#top-bar .top-date span { margin-right: 14px; }

/* ---- NAVBAR ---- */
#main-navbar {
  background: var(--dark-2);
  border-bottom: 2px solid var(--gold);
  padding: 0; position: sticky; top: 0; z-index: 999;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}
#main-navbar .navbar-brand img {
  height: 64px; width: auto;
  filter: brightness(0) invert(1);
  transition: var(--trans);
}
#main-navbar .navbar-brand img:hover {
  filter: brightness(0) saturate(100%) invert(75%) sepia(60%) saturate(400%) hue-rotate(5deg);
}
#main-navbar .nav-link {
  color: var(--ivory) !important; font-family: 'Cinzel', serif;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 1.5px;
  text-transform: uppercase; padding: 1.3rem 1rem !important;
  position: relative; transition: var(--trans);
}
#main-navbar .nav-link::after {
  content: ''; position: absolute; bottom: 0; left: 50%; right: 50%;
  height: 2px; background: var(--gold); transition: var(--trans);
}
#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(--gold) !important; }
#main-navbar .navbar-toggler { border-color: var(--gold); }
#main-navbar .navbar-toggler-icon { filter: brightness(0) invert(1); }

.dropdown-menu {
  background: var(--dark-3); border: 1px solid var(--gold);
  border-top: 2px solid var(--gold); border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: 0 8px 32px rgba(0,0,0,0.5); min-width: 240px; padding: 0.5rem 0;
}
.dropdown-item {
  color: var(--ivory); font-size: 0.82rem; padding: 0.7rem 1.4rem;
  font-family: 'Lato', sans-serif; letter-spacing: 0.3px; transition: var(--trans);
}
.dropdown-item:hover { background: rgba(196,154,46,0.15); color: var(--gold); padding-left: 1.8rem; }

/* ---- HERO ---- */
#hero {
  position: relative; min-height: 560px;
  display: flex; align-items: center; overflow: hidden;
  background: var(--black);
}
#hero .hero-bg {
  position: absolute; inset: 0;
  background: url('images/df1fb3b29af62ca897d0fb1799a17771.jpg') center/cover no-repeat;
  opacity: 0.35; transform: scale(1.05);
  transition: transform 8s ease;
}
#hero:hover .hero-bg { transform: scale(1); }
#hero::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(8,6,4,0.92) 40%, rgba(8,6,4,0.4) 100%);
}
#hero .hero-content { position: relative; z-index: 2; color: var(--ivory); }
#hero .hero-label {
  font-family: 'Cinzel', serif; font-size: 0.75rem; letter-spacing: 4px;
  color: var(--gold); text-transform: uppercase; margin-bottom: 1rem;
  display: flex; align-items: center; gap: 12px;
}
#hero .hero-label::before { content: ''; width: 40px; height: 1px; background: var(--gold); }
#hero h1 {
  color: var(--ivory); font-size: 3rem; line-height: 1.15;
  margin-bottom: 1.2rem; text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}
#hero h1 span { color: var(--gold); }
#hero p { font-size: 1.05rem; color: rgba(245,237,216,0.8); max-width: 540px; margin-bottom: 2rem; font-weight: 300; }
.btn-gold {
  background: var(--gold); color: var(--black); border: none;
  padding: 13px 34px; font-family: 'Cinzel', serif; font-size: 0.8rem;
  font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  border-radius: var(--radius); transition: var(--trans); display: inline-block;
}
.btn-gold:hover { background: var(--gold-light); color: var(--black); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(196,154,46,0.4); }
.btn-outline-gold {
  background: transparent; color: var(--gold); border: 1px solid var(--gold);
  padding: 12px 30px; font-family: 'Cinzel', serif; font-size: 0.78rem;
  font-weight: 600; letter-spacing: 2px; text-transform: uppercase;
  border-radius: var(--radius); transition: var(--trans); display: inline-block;
}
.btn-outline-gold:hover { background: var(--gold); color: var(--black); }

/* ---- INFO STRIP ---- */
#info-strip {
  background: var(--dark); border-top: 1px solid rgba(196,154,46,0.2);
  border-bottom: 1px solid rgba(196,154,46,0.2); padding: 22px 0;
}
#info-strip .info-item { display: flex; align-items: center; gap: 14px; }
#info-strip .info-item i { color: var(--gold); font-size: 1.5rem; }
#info-strip .info-item span { font-size: 0.8rem; color: rgba(245,237,216,0.6); display: block; font-family: 'Cinzel', serif; letter-spacing: 1px; }
#info-strip .info-item strong { font-size: 0.9rem; color: var(--ivory); display: block; font-weight: 400; }

/* ---- PAGE HERO (inner pages) ---- */
.page-hero {
  background: var(--dark); padding: 52px 0 40px;
  border-bottom: 2px solid var(--gold); position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background: url('images/df1fb3b29af62ca897d0fb1799a17771.jpg') center/cover no-repeat;
  opacity: 0.08;
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { color: var(--ivory); font-size: 2rem; margin-bottom: 0.4rem; }
.page-hero .breadcrumb { background: transparent; padding: 0; margin: 0; }
.page-hero .breadcrumb-item a { color: var(--gold); font-size: 0.85rem; }
.page-hero .breadcrumb-item.active { color: rgba(245,237,216,0.7); font-size: 0.85rem; }
.page-hero .breadcrumb-item + .breadcrumb-item::before { color: var(--gold); }

/* ---- NEWS CARDS ---- */
.news-card-v2 {
  background: var(--white); border: 1px solid rgba(196,154,46,0.2);
  transition: var(--trans); height: 100%; display: flex; flex-direction: column;
}
.news-card-v2:hover { box-shadow: 0 8px 30px rgba(0,0,0,0.15); border-color: var(--gold); transform: translateY(-3px); }
.news-card-v2 > img { width: 100%; height: 210px; object-fit: cover; flex-shrink: 0; }
.news-card-v2 .nc-body { padding: 1.3rem; flex: 1; display: flex; flex-direction: column; }
.news-card-v2 .nc-cat {
  font-family: 'Cinzel', serif; font-size: 0.65rem; letter-spacing: 2px;
  text-transform: uppercase; color: var(--gold); margin-bottom: 6px; display: block;
}
.news-card-v2 .nc-title { font-size: 1rem; font-weight: 700; color: var(--dark); margin-bottom: 0.5rem; line-height: 1.4; flex: 1; }
.news-card-v2 .nc-title a { color: var(--dark); }
.news-card-v2 .nc-title a:hover { color: var(--gold); }
.news-card-v2 .nc-date { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 0.8rem; }
.news-card-v2 .nc-link { font-family: 'Cinzel', serif; font-size: 0.72rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--gold); }
.news-card-v2 .nc-link:hover { color: var(--dark); }

/* ---- ABOUT SECTION ---- */
.about-v2 { padding: 80px 0; background: var(--ivory); }
.about-v2 .about-img {
  position: relative; border: 1px solid var(--gold);
  box-shadow: 8px 8px 0 rgba(196,154,46,0.3);
}
.about-v2 .about-img img { width: 100%; height: 420px; object-fit: cover; display: block; }
.about-v2 .stat-box {
  position: absolute; bottom: -20px; right: -20px;
  background: var(--dark); color: var(--gold); padding: 1.5rem 2rem;
  border: 1px solid var(--gold); text-align: center;
}
.about-v2 .stat-box .num { font-family: 'Cinzel', serif; font-size: 2.2rem; font-weight: 700; display: block; }
.about-v2 .stat-box .lbl { font-size: 0.75rem; letter-spacing: 2px; text-transform: uppercase; color: rgba(196,154,46,0.7); }
.feature-item { display: flex; gap: 14px; margin-bottom: 1.5rem; align-items: flex-start; }
.feature-item .fi-icon { width: 44px; height: 44px; background: rgba(196,154,46,0.12); border: 1px solid rgba(196,154,46,0.3); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.feature-item .fi-icon i { color: var(--gold); font-size: 1.2rem; }
.feature-item h6 { font-family: 'Cinzel', serif; font-size: 0.8rem; letter-spacing: 1px; text-transform: uppercase; color: var(--dark); margin-bottom: 4px; }
.feature-item p { font-size: 0.88rem; color: var(--text-muted); margin: 0; line-height: 1.6; }

/* ---- GALLERY ---- */
.gallery-v2 { padding: 80px 0; background: var(--dark-2); }
.gallery-v2 .g-item { overflow: hidden; position: relative; border: 1px solid rgba(196,154,46,0.2); }
.gallery-v2 .g-item img { width: 100%; height: 220px; object-fit: cover; transition: transform 0.6s ease; display: block; }
.gallery-v2 .g-item:hover img { transform: scale(1.08); }
.gallery-v2 .g-item .g-overlay { position: absolute; inset: 0; background: rgba(8,6,4,0.6); opacity: 0; transition: var(--trans); display: flex; align-items: center; justify-content: center; }
.gallery-v2 .g-item:hover .g-overlay { opacity: 1; }
.gallery-v2 .g-item .g-overlay i { color: var(--gold); font-size: 2rem; }

/* ---- HOURS TABLE ---- */
.hours-v2 { padding: 80px 0; background: var(--ivory); }
.hours-table-v2 { width: 100%; border-collapse: collapse; }
.hours-table-v2 thead th { background: var(--dark); color: var(--gold); font-family: 'Cinzel', serif; font-size: 0.78rem; letter-spacing: 1.5px; text-transform: uppercase; padding: 14px 18px; border-bottom: 2px solid var(--gold); }
.hours-table-v2 tbody td { padding: 12px 18px; font-size: 0.9rem; border-bottom: 1px solid rgba(196,154,46,0.15); color: var(--text-body); }
.hours-table-v2 tbody tr:last-child td { border-bottom: none; }
.hours-table-v2 tbody tr:hover td { background: rgba(196,154,46,0.06); }
.hours-table-v2 .closed { color: #8B2020; font-weight: 600; }

/* ---- NEWSLETTER ---- */
#newsletter {
  background: var(--dark); padding: 60px 0;
  border-top: 1px solid rgba(196,154,46,0.3);
  border-bottom: 1px solid rgba(196,154,46,0.3);
}
#newsletter h3 { color: var(--ivory); font-size: 1.6rem; margin-bottom: 0.4rem; }
#newsletter p { color: rgba(245,237,216,0.65); margin: 0; font-weight: 300; }
#newsletter .form-control { background: rgba(255,255,255,0.06); border: 1px solid rgba(196,154,46,0.4); color: var(--ivory); padding: 12px 16px; font-size: 0.9rem; border-radius: var(--radius) 0 0 var(--radius) !important; }
#newsletter .form-control::placeholder { color: rgba(245,237,216,0.4); }
#newsletter .form-control:focus { background: rgba(255,255,255,0.1); border-color: var(--gold); box-shadow: none; color: var(--ivory); }
#newsletter .btn-subscribe { background: var(--gold); border: none; color: var(--black); font-family: 'Cinzel', serif; font-size: 0.78rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; padding: 12px 22px; border-radius: 0 var(--radius) var(--radius) 0 !important; transition: var(--trans); }
#newsletter .btn-subscribe:hover { background: var(--gold-light); }

/* ---- FOOTER ---- */
#main-footer { background: var(--black); color: rgba(245,237,216,0.6); padding: 64px 0 0; border-top: 2px solid var(--gold); }
#main-footer h5 { font-family: 'Cinzel', serif; font-size: 0.8rem; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); margin-bottom: 1.4rem; padding-bottom: 10px; border-bottom: 1px solid rgba(196,154,46,0.25); }
#main-footer a { color: rgba(245,237,216,0.55); font-size: 0.88rem; transition: var(--trans); }
#main-footer a:hover { color: var(--gold); }
#main-footer .footer-links li { margin-bottom: 9px; }
#main-footer .footer-links li a::before { content: '›'; color: var(--gold); margin-right: 8px; }
#main-footer .footer-contact p { font-size: 0.85rem; display: flex; align-items: flex-start; gap: 10px; margin-bottom: 10px; }
#main-footer .footer-contact i { color: var(--gold); flex-shrink: 0; margin-top: 3px; }
#main-footer .social-links { display: flex; gap: 10px; margin-top: 14px; }
#main-footer .social-links a { width: 38px; height: 38px; border: 1px solid rgba(196,154,46,0.3); display: flex; align-items: center; justify-content: center; color: rgba(245,237,216,0.55); font-size: 0.95rem; transition: var(--trans); }
#main-footer .social-links a:hover { border-color: var(--gold); color: var(--gold); background: rgba(196,154,46,0.08); }
#main-footer .footer-bottom { border-top: 1px solid rgba(196,154,46,0.15); padding: 18px 0; margin-top: 48px; font-size: 0.78rem; color: rgba(245,237,216,0.3); text-align: center; font-family: 'Cinzel', serif; letter-spacing: 1px; }

/* ---- BACK TO TOP ---- */
#back-to-top { position: fixed; bottom: 28px; right: 28px; width: 46px; height: 46px; background: var(--gold); color: var(--black); border: none; font-size: 1rem; display: flex; align-items: center; justify-content: center; cursor: pointer; opacity: 0; pointer-events: none; transition: var(--trans); box-shadow: 0 4px 16px rgba(196,154,46,0.4); z-index: 9999; }
#back-to-top.visible { opacity: 1; pointer-events: all; }
#back-to-top:hover { background: var(--gold-light); transform: translateY(-3px); }

/* ---- FADE IN ---- */
.fade-in { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ---- FILTER BTNS ---- */
.filter-btn-v2 { background: transparent; border: 1px solid rgba(196,154,46,0.35); padding: 6px 18px; font-family: 'Cinzel', serif; font-size: 0.7rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-muted); cursor: pointer; transition: var(--trans); margin: 4px; }
.filter-btn-v2.active, .filter-btn-v2:hover { background: var(--dark); border-color: var(--gold); color: var(--gold); }

/* ---- CONTACT FORM ---- */
.contact-form-v2 .form-label { font-family: 'Cinzel', serif; font-size: 0.72rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--dark); margin-bottom: 6px; }
.contact-form-v2 .form-control { border: 1px solid rgba(196,154,46,0.3); border-radius: var(--radius); padding: 11px 14px; font-size: 0.9rem; background: #fff; transition: var(--trans); color: var(--text-body); }
.contact-form-v2 .form-control:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(196,154,46,0.1); }

/* ---- RESPONSIVE ---- */
@media (max-width: 767px) {
  #hero h1 { font-size: 1.9rem; }
  #hero { min-height: 400px; }
  .section-title-v2 { font-size: 1.5rem; }
  #main-navbar .navbar-brand img { height: 48px; }
  #top-bar .top-date { display: none; }
  #info-strip .info-item { margin-bottom: 16px; }
  .about-v2 .stat-box { right: 0; bottom: 0; }
}
@media (max-width: 991px) {
  #main-navbar .nav-link { padding: 0.7rem 1rem !important; }
  #main-navbar .nav-link::after { display: none; }
  #main-navbar { background: var(--dark); }
}
