/* =============================================
   Arabic Congregation of Jehovah's Witnesses
   Montreal, Quebec — Premium NPO Stylesheet
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:wght@400;600;700&display=swap');

/* ── CSS Variables ── */
:root {
  --navy:       #0d1b2a;
  --navy-mid:   #1b2e45;
  --teal:       #1a6b8a;
  --teal-light: #2193b0;
  --gold:       #c9a84c;
  --gold-light: #e8c878;
  --white:      #ffffff;
  --off-white:  #f4f7fa;
  --light-gray: #e8edf2;
  --mid-gray:   #8899aa;
  --text-dark:  #1a2535;
  --text-mid:   #3d5166;

  --font-body:    'Inter', sans-serif;
  --font-heading: 'Playfair Display', serif;

  --shadow-sm:  0 2px 8px rgba(13,27,42,.08);
  --shadow-md:  0 6px 24px rgba(13,27,42,.14);
  --shadow-lg:  0 16px 48px rgba(13,27,42,.20);

  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;

  --transition: .3s ease;
  --header-h:   80px;
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a  { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── Typography ── */
h1, h2, h3, h4 { font-family: var(--font-heading); line-height: 1.25; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); color: var(--navy); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.3rem; }
p  { margin-bottom: 1rem; }

/* ── Layout Helpers ── */
.container      { max-width: 1200px; margin-inline: auto; padding-inline: 24px; }
.section        { padding: 90px 0; }
.section-alt    { background: var(--off-white); }
.section-dark   { background: var(--navy); color: var(--white); }
.section-title  { text-align: center; margin-bottom: 56px; }
.section-title h2 { color: var(--navy); margin-bottom: 14px; }
.section-dark .section-title h2 { color: var(--gold-light); }
.section-title .subtitle {
  color: var(--mid-gray);
  font-size: 1.05rem;
  max-width: 600px;
  margin-inline: auto;
}
.gold-bar {
  width: 60px; height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 4px;
  margin: 12px auto 0;
}

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 30px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-weight: 600; font-size: .95rem;
  cursor: pointer; border: none;
  transition: var(--transition);
  text-decoration: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--teal), var(--teal-light));
  color: var(--white);
  box-shadow: 0 4px 18px rgba(26,107,138,.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(26,107,138,.45);
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--navy);
  box-shadow: 0 4px 18px rgba(201,168,76,.35);
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(201,168,76,.45);
}
.btn-outline {
  border: 2px solid var(--white);
  color: var(--white);
  background: transparent;
}
.btn-outline:hover { background: var(--white); color: var(--navy); }

/* ═══════════════════════════════════
   HEADER
═══════════════════════════════════ */
#site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--header-h);
  background: rgba(13,27,42,.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.07);
  transition: box-shadow var(--transition);
}
#site-header.scrolled { box-shadow: var(--shadow-md); }

.header-inner {
  max-width: 1280px; margin-inline: auto;
  padding-inline: 24px;
  height: 100%;
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px;
}

/* Brand */
.brand { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.brand .logo { width: 52px; height: 52px; object-fit: contain; border-radius: 50%; }
.brand .org-name {
  font-family: var(--font-heading);
  font-size: clamp(.75rem, 1.4vw, 1rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.25;
  max-width: 240px;
}
.brand .org-name span { color: var(--gold-light); display: block; font-size: .78em; font-style: italic; }

/* Main Nav */
.main-nav ul {
  display: flex; align-items: center;
  gap: 4px;
  flex-wrap: nowrap;
  white-space: nowrap;
}
.main-nav a {
  display: block;
  padding: 8px 13px;
  color: rgba(255,255,255,.85);
  font-size: .875rem; font-weight: 500;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  white-space: nowrap;
}
.main-nav a:hover,
.main-nav a.active {
  color: var(--gold-light);
  background: rgba(255,255,255,.07);
}

/* Hamburger */
.hamburger {
  display: none;
  background: none; border: none; cursor: pointer;
  flex-direction: column; gap: 5px; padding: 6px;
}
.hamburger span {
  display: block; width: 26px; height: 2px;
  background: var(--white); border-radius: 2px;
  transition: var(--transition);
}

/* Mobile Nav Drawer */
.mobile-nav {
  display: none;
  position: fixed; top: var(--header-h); left: 0; right: 0;
  background: var(--navy-mid);
  padding: 20px 24px 30px;
  z-index: 999;
  box-shadow: var(--shadow-md);
  border-top: 1px solid rgba(255,255,255,.08);
}
.mobile-nav.open { display: block; }
.mobile-nav a {
  display: block; padding: 12px 0;
  color: rgba(255,255,255,.88);
  font-size: 1rem; font-weight: 500;
  border-bottom: 1px solid rgba(255,255,255,.07);
  transition: var(--transition);
}
.mobile-nav a:hover { color: var(--gold-light); padding-left: 8px; }

/* Body offset */
body { padding-top: var(--header-h); }

/* ═══════════════════════════════════
   HERO
═══════════════════════════════════ */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex; align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transform: scale(1.06);
  transition: transform 8s ease;
}
.hero-bg.loaded { transform: scale(1); }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(13,27,42,.82) 0%, rgba(26,107,138,.55) 100%);
}
.hero-content {
  position: relative; z-index: 2;
  max-width: 800px; padding: 0 24px;
  margin: 0 auto;
  text-align: center;
  animation: fadeUp .9s ease both;
}
.hero-badge {
  display: inline-block;
  background: rgba(201,168,76,.18);
  border: 1px solid rgba(201,168,76,.45);
  color: var(--gold-light);
  padding: 6px 18px;
  border-radius: 50px;
  font-size: .85rem; font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 22px;
}
.hero-content h1 { color: var(--white); margin-bottom: 20px; }
.hero-content h1 em { color: var(--gold-light); font-style: normal; }
.hero-content .lead {
  font-size: 1.15rem; color: rgba(255,255,255,.88);
  margin-bottom: 36px; max-width: 640px; margin-inline: auto;
}
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ═══════════════════════════════════
   STATS BAR
═══════════════════════════════════ */
.stats-bar {
  background: linear-gradient(135deg, var(--teal), var(--navy-mid));
  padding: 36px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px; text-align: center;
}
.stat-item h3 { font-size: 2.2rem; color: var(--gold-light); font-family: var(--font-body); font-weight: 700; }
.stat-item p  { color: rgba(255,255,255,.8); font-size: .9rem; text-transform: uppercase; letter-spacing: .05em; }

/* ═══════════════════════════════════
   CARDS
═══════════════════════════════════ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}
.card {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.card-img { width: 100%; height: 220px; object-fit: cover; }
.card-body { padding: 24px; }
.card-body h3 { color: var(--navy); margin-bottom: 10px; }
.card-body p  { color: var(--text-mid); font-size: .94rem; }

/* Glass card */
.glass-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-md);
  padding: 32px;
}

/* ═══════════════════════════════════
   FEATURE ROWS (2-col image + text)
═══════════════════════════════════ */
.feature-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px;
  align-items: center;
}
.feature-row.reverse { direction: rtl; }
.feature-row.reverse > * { direction: ltr; }
.feature-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.feature-img img { width: 100%; height: 400px; object-fit: cover; }
.feature-text h2 { color: var(--navy); margin-bottom: 20px; }
.feature-text p  { color: var(--text-mid); margin-bottom: 16px; }

/* ═══════════════════════════════════
   PAGE HERO (inner pages)
═══════════════════════════════════ */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--teal) 100%);
  padding: 80px 0 64px;
  text-align: center; color: var(--white);
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.page-hero .container { position: relative; }
.page-hero h1 { color: var(--white); margin-bottom: 14px; }
.page-hero .breadcrumb { color: rgba(255,255,255,.65); font-size: .9rem; }
.page-hero .breadcrumb a { color: var(--gold-light); }

/* ═══════════════════════════════════
   INFO BOXES
═══════════════════════════════════ */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.info-box {
  background: var(--off-white);
  border-left: 4px solid var(--teal);
  border-radius: var(--radius-sm);
  padding: 24px;
}
.info-box .icon { font-size: 2rem; margin-bottom: 12px; }
.info-box h3 { color: var(--navy); margin-bottom: 8px; }
.info-box p  { color: var(--text-mid); font-size: .93rem; margin: 0; }

/* ═══════════════════════════════════
   SCHEDULE TABLE
═══════════════════════════════════ */
.schedule-table { width: 100%; border-collapse: collapse; box-shadow: var(--shadow-sm); border-radius: var(--radius-md); overflow: hidden; }
.schedule-table thead { background: var(--navy); color: var(--white); }
.schedule-table th { padding: 16px 20px; text-align: left; font-weight: 600; font-size: .9rem; letter-spacing: .04em; }
.schedule-table td { padding: 15px 20px; font-size: .94rem; border-bottom: 1px solid var(--light-gray); }
.schedule-table tr:last-child td { border-bottom: none; }
.schedule-table tr:nth-child(even) td { background: var(--off-white); }
.schedule-table tr:hover td { background: rgba(26,107,138,.06); }

/* ═══════════════════════════════════
   CONTACT
═══════════════════════════════════ */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; }
.contact-info { display: flex; flex-direction: column; gap: 24px; }
.contact-detail {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--off-white);
  padding: 20px; border-radius: var(--radius-md);
}
.contact-detail .icon { font-size: 1.5rem; color: var(--teal); flex-shrink: 0; }
.contact-detail h4 { color: var(--navy); margin-bottom: 4px; font-size: .95rem; }
.contact-detail p, .contact-detail a { color: var(--text-mid); font-size: .9rem; }
.contact-detail a:hover { color: var(--teal); }

.contact-form { background: var(--white); padding: 36px; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.contact-form h3 { color: var(--navy); margin-bottom: 24px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; color: var(--text-mid); font-size: .88rem; font-weight: 600; margin-bottom: 6px; text-transform: uppercase; letter-spacing: .04em; }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%; padding: 12px 16px;
  border: 2px solid var(--light-gray);
  border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: .95rem;
  color: var(--text-dark);
  transition: var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(26,107,138,.12); }
.form-group textarea { resize: vertical; min-height: 140px; }
.map-wrap { border-radius: var(--radius-md); overflow: hidden; margin-top: 40px; box-shadow: var(--shadow-sm); }
.map-wrap iframe { width: 100%; height: 340px; border: none; display: block; }

/* ═══════════════════════════════════
   QUOTE / SCRIPTURE BANNER
═══════════════════════════════════ */
.scripture-banner {
  background: linear-gradient(135deg, var(--navy), var(--teal));
  padding: 72px 0; text-align: center; color: var(--white);
}
.scripture-banner blockquote {
  font-family: var(--font-heading); font-size: clamp(1.3rem, 3vw, 2rem);
  font-style: italic; max-width: 800px; margin: 0 auto 16px;
  line-height: 1.5;
}
.scripture-banner cite { color: var(--gold-light); font-size: .95rem; font-style: normal; }

/* ═══════════════════════════════════
   LANGUAGE CARDS
═══════════════════════════════════ */
.lang-card {
  background: var(--white); border-radius: var(--radius-md);
  padding: 36px; text-align: center;
  box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--teal);
  transition: var(--transition);
}
.lang-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.lang-flag { font-size: 3.5rem; margin-bottom: 16px; }
.lang-card h3 { color: var(--navy); margin-bottom: 10px; }
.lang-card p  { color: var(--text-mid); font-size: .93rem; }

/* ═══════════════════════════════════
   FOOTER
═══════════════════════════════════ */
#site-footer {
  background: var(--navy);
  color: rgba(255,255,255,.75);
  padding: 70px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 48px; margin-bottom: 50px;
}
.footer-brand { display: flex; align-items: flex-start; gap: 14px; }
.footer-brand .logo-footer { width: 52px; height: 52px; object-fit: contain; border-radius: 50%; flex-shrink: 0; }
.footer-brand .names { display: flex; flex-direction: column; gap: 4px; }
.footer-brand .names strong { color: var(--white); font-size: .98rem; line-height: 1.3; }
.footer-brand .names em    { color: var(--gold-light); font-style: italic; font-size: .83rem; }
.footer-about { margin-top: 16px; font-size: .88rem; line-height: 1.7; color: rgba(255,255,255,.6); }
.footer-col h4 { color: var(--white); font-size: .9rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 18px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { font-size: .88rem; color: rgba(255,255,255,.65); transition: var(--transition); }
.footer-col ul li a:hover { color: var(--gold-light); padding-left: 4px; }
.footer-contact-list li { display: flex; gap: 10px; font-size: .88rem; color: rgba(255,255,255,.65); margin-bottom: 12px; align-items: flex-start; }
.footer-contact-list li span.ico { font-size: 1rem; color: var(--teal-light); flex-shrink: 0; margin-top: 2px; }
.footer-contact-list a { color: rgba(255,255,255,.65); }
.footer-contact-list a:hover { color: var(--gold-light); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 22px 0;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { font-size: .83rem; color: rgba(255,255,255,.45); }
.footer-bottom a { color: var(--gold-light); }
.footer-registry { font-size: .78rem; color: rgba(255,255,255,.3); }

/* ═══════════════════════════════════
   ANIMATIONS
═══════════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-in { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ═══════════════════════════════════
   ACCORDION (beliefs / FAQ)
═══════════════════════════════════ */
.accordion { display: flex; flex-direction: column; gap: 12px; }
.accordion-item { border: 1px solid var(--light-gray); border-radius: var(--radius-sm); overflow: hidden; }
.accordion-header {
  width: 100%; background: var(--off-white); border: none;
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 22px; cursor: pointer;
  font-family: var(--font-body); font-size: 1rem; font-weight: 600;
  color: var(--navy); text-align: left;
  transition: var(--transition);
}
.accordion-header:hover { background: var(--light-gray); }
.accordion-header .arrow { font-size: 1.2rem; transition: transform var(--transition); }
.accordion-header.open .arrow { transform: rotate(180deg); }
.accordion-body { display: none; padding: 18px 22px; background: var(--white); font-size: .95rem; color: var(--text-mid); line-height: 1.75; }
.accordion-body.open { display: block; }

/* ═══════════════════════════════════
   RESPONSIVE
═══════════════════════════════════ */
@media (max-width: 1100px) {
  .main-nav a { padding: 8px 9px; font-size: .82rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .main-nav { display: none; }
  .hamburger { display: flex; }
  .feature-row,
  .feature-row.reverse { grid-template-columns: 1fr; direction: ltr; gap: 36px; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .hero { min-height: 80vh; }
}
