/* ==========================================================================
   GBFC PAKISTAN - HEADER (LEFT LOGO, 4 QUICK LINKS, 3-LINES SLIDE DRAWER)
   ========================================================================== */

/* --------------------------------------------------------------------------
   Top Contact Bar
   -------------------------------------------------------------------------- */
.top-bar {
  background: linear-gradient(90deg, var(--primary-dark), #3D0609);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.85rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(255, 184, 0, 0.3);
}

.top-bar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.top-info {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}

.top-info li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.top-info i {
  color: var(--accent);
}

.top-info a {
  color: rgba(255, 255, 255, 0.95);
  font-weight: 500;
}

.top-info a:hover {
  color: var(--accent);
}

/* --------------------------------------------------------------------------
   HEADER (LOGO LEFT, 4 QUICK LINKS, 3-LINES HAMBURGER TOGGLE)
   -------------------------------------------------------------------------- */
.header-nav {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 3px solid var(--accent);
  box-shadow: 0 4px 20px rgba(122, 20, 26, 0.12);
  transition: var(--transition);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 1.5rem;
}

/* Prominent Left Logo */
.brand-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.brand-logo:hover {
  transform: scale(1.04);
}

.logo-img-wrapper {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  padding: 4px;
  background: linear-gradient(135deg, var(--accent), var(--flame-orange));
  box-shadow: 0 6px 20px rgba(122, 20, 26, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
  background: #FFF;
}

/* Header Right Actions (4 Main Links + 3-Lines Toggle) */
.header-right-actions {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.quick-nav-menu {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  list-style: none;
}

.quick-nav-link {
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--neutral-dark);
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.25s ease;
}

.quick-nav-link i {
  color: var(--primary);
}

.quick-nav-link:hover {
  background-color: var(--primary-glow);
  color: var(--primary-dark);
}

.quick-nav-link.active {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: var(--white);
  box-shadow: 0 4px 14px rgba(122, 20, 26, 0.3);
}

.quick-nav-link.active i {
  color: var(--accent);
}

/* 3-Lines Hamburger Icon Button */
.hamburger-toggle-btn {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: var(--white);
  border: 2px solid var(--accent);
  padding: 0.65rem 1.3rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  box-shadow: 0 4px 15px rgba(122, 20, 26, 0.25);
  transition: var(--transition);
}

.hamburger-toggle-btn:hover {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(122, 20, 26, 0.4);
}

.hamburger-toggle-btn i {
  color: var(--accent);
  font-size: 1.1rem;
}

/* --------------------------------------------------------------------------
   SLIDE-OUT SIDE DRAWER FOR ALL 9 PAGES
   -------------------------------------------------------------------------- */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
  z-index: 2500;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.drawer-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.side-drawer {
  position: fixed;
  top: 0;
  right: -380px;
  width: 360px;
  height: 100vh;
  background-color: var(--white);
  z-index: 2600;
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  transition: right 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
  overflow-y: auto;
}

.drawer-backdrop.active .side-drawer {
  right: 0;
}

.drawer-header {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: var(--white);
  padding: 1.5rem 1.8rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 3px solid var(--accent);
}

.drawer-title {
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 1.2rem;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.drawer-close {
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.8rem;
  cursor: pointer;
  line-height: 1;
}

.drawer-body {
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex-grow: 1;
}

.drawer-menu-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1.2rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 1rem;
  color: var(--neutral-dark);
  background-color: var(--neutral-light);
  border: 1px solid var(--neutral-border);
  transition: var(--transition);
  cursor: pointer;
  text-decoration: none;
}

.drawer-menu-item i {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary-glow);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  transition: var(--transition);
}

.drawer-menu-item:hover,
.drawer-menu-item.active {
  background-color: var(--primary-dark);
  color: var(--white);
  border-color: var(--primary-dark);
  transform: translateX(4px);
}

.drawer-menu-item:hover i,
.drawer-menu-item.active i {
  background: var(--accent);
  color: var(--neutral-dark);
}

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
.hero-section {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, rgba(80, 10, 14, 0.88), rgba(122, 20, 26, 0.75)), 
              url('https://images.unsplash.com/photo-1548625149-fc4a29cf7092?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
  color: var(--white);
  padding: 4rem 0;
  overflow: hidden;
}

.hero-content {
  max-width: 780px;
  z-index: 2;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255, 184, 0, 0.2);
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 0.4rem 1.2rem;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.hero-title {
  color: var(--white);
  font-size: clamp(2.4rem, 5.5vw, 3.8rem);
  line-height: 1.15;
  margin-bottom: 1.2rem;
}

.hero-title span {
  color: var(--accent);
  background: linear-gradient(90deg, #FFB800, #FF7700);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
  max-width: 650px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   Impact Stats Counter Bar
   -------------------------------------------------------------------------- */
.stats-bar {
  background-color: var(--white);
  margin-top: -3.5rem;
  position: relative;
  z-index: 10;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 2.5rem 2rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: center;
}

.stat-card {
  padding: 0.5rem;
  position: relative;
}

.stat-card:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -1rem;
  top: 15%;
  height: 70%;
  width: 1px;
  background-color: var(--neutral-border);
}

.stat-icon {
  width: 54px;
  height: 54px;
  background-color: var(--primary-glow);
  color: var(--primary);
  font-size: 1.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.8rem auto;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary-dark);
  line-height: 1;
  margin-bottom: 0.3rem;
}

.stat-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--neutral-muted);
}

/* --------------------------------------------------------------------------
   Cards (Ministry, Location, Values, Leadership, Teachers)
   -------------------------------------------------------------------------- */
.card {
  background-color: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--neutral-border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(122, 20, 26, 0.2);
}

.card-img-wrapper {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.card:hover .card-img {
  transform: scale(1.05);
}

.card-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
}

.card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background-color: var(--primary-glow);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.card-title {
  font-size: 1.25rem;
  margin-bottom: 0.6rem;
  color: var(--neutral-dark);
}

.card-text {
  font-size: 0.95rem;
  color: var(--neutral-body);
  flex-grow: 1;
  margin-bottom: 1.2rem;
}

/* Core Values Cards */
.value-card {
  background-color: var(--white);
  padding: 2rem 1.5rem;
  border-radius: var(--radius-md);
  text-align: center;
  border: 1px solid var(--neutral-border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.value-card:hover {
  background-color: var(--primary-dark);
  color: var(--white);
  transform: translateY(-6px);
  box-shadow: var(--shadow-primary);
}

.value-card:hover h3,
.value-card:hover p {
  color: var(--white);
}

.value-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--accent-light);
  color: var(--primary-dark);
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.2rem auto;
  transition: var(--transition);
}

.value-card:hover .value-icon {
  background: var(--accent);
  color: var(--neutral-dark);
}

/* Leadership Message Card */
.leadership-card {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 2.5rem;
  align-items: center;
  border-left: 6px solid var(--primary);
}

.leader-avatar {
  width: 100%;
  height: 280px;
  border-radius: var(--radius-md);
  object-fit: cover;
  box-shadow: var(--shadow-md);
}

.leader-name {
  font-size: 1.6rem;
  color: var(--primary-dark);
  margin-bottom: 0.2rem;
}

.leader-role {
  font-size: 0.95rem;
  color: var(--pk-green);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}

.leader-quote {
  font-family: var(--font-scripture);
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--neutral-body);
  font-style: italic;
  position: relative;
  padding-left: 1.5rem;
  border-left: 3px solid var(--accent);
}

/* --------------------------------------------------------------------------
   Church Locations & Map Section
   -------------------------------------------------------------------------- */
.map-container {
  height: 480px;
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 2px solid var(--neutral-border);
  z-index: 1;
}

.filter-pills {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--neutral-border);
  background-color: var(--white);
  color: var(--neutral-dark);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background-color: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.location-info-list {
  list-style: none;
  margin-bottom: 1.2rem;
  font-size: 0.9rem;
}

.location-info-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
}

.location-info-list i {
  color: var(--primary);
  margin-top: 0.2rem;
}

/* --------------------------------------------------------------------------
   Gallery Grid & Lightbox Modal
   -------------------------------------------------------------------------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 260px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  border: 2px solid var(--white);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(122, 20, 26, 0.92), transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.2rem;
  color: var(--white);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-caption {
  font-size: 1.05rem;
  font-weight: 700;
}

.gallery-tag {
  font-size: 0.75rem;
  color: var(--accent);
  text-transform: uppercase;
  font-weight: 700;
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.92);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lightbox-modal.active {
  display: flex;
}

.lightbox-content {
  max-width: 950px;
  width: 100%;
  position: relative;
  text-align: center;
}

.lightbox-img {
  max-height: 82vh;
  max-width: 100%;
  border-radius: var(--radius-sm);
  margin: 0 auto;
  box-shadow: var(--shadow-lg);
  border: 3px solid var(--accent);
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  color: var(--white);
  font-size: 2.2rem;
  cursor: pointer;
}

.lightbox-caption {
  color: var(--white);
  margin-top: 1rem;
  font-size: 1.15rem;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   Forms & Donation Calculator Modal
   -------------------------------------------------------------------------- */
.form-group {
  margin-bottom: 1.4rem;
}

.form-label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
  color: var(--neutral-dark);
}

.form-control {
  width: 100%;
  padding: 0.8rem 1.2rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--neutral-border);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(5px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-backdrop.active {
  display: flex;
}

.modal-card {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  max-width: 600px;
  width: 100%;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
  animation: modalSlide 0.3s ease-out forwards;
}

@keyframes modalSlide {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.modal-header {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: var(--white);
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  color: var(--white);
  margin: 0;
}

.modal-close {
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
}

.modal-body {
  padding: 2rem;
  max-height: 80vh;
  overflow-y: auto;
}

/* Donation Preset Buttons */
.amount-presets {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}

.preset-btn {
  padding: 0.75rem;
  border: 2px solid var(--neutral-border);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.preset-btn.active,
.preset-btn:hover {
  border-color: var(--accent);
  background-color: var(--accent-light);
  color: var(--neutral-dark);
}

/* --------------------------------------------------------------------------
   Floating WhatsApp Button & Toast System
   -------------------------------------------------------------------------- */
.whatsapp-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 60px;
  height: 60px;
  background-color: #25D366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  z-index: 1500;
  transition: var(--transition);
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  color: white;
}

.back-to-top {
  position: fixed;
  bottom: 95px;
  right: 25px;
  width: 44px;
  height: 44px;
  background-color: var(--primary-dark);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: var(--shadow-md);
  z-index: 1400;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  cursor: pointer;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.toast-container {
  position: fixed;
  top: 90px;
  right: 25px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.toast {
  background-color: var(--neutral-dark);
  color: var(--white);
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.8rem;
  border-left: 4px solid var(--accent);
  animation: toastIn 0.3s ease forwards;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateX(50px); }
  to { opacity: 1; transform: translateX(0); }
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background-color: var(--primary-dark);
  color: rgba(255, 255, 255, 0.8);
  padding: 4.5rem 0 1.5rem 0;
  border-top: 4px solid var(--accent);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
  margin-top: 1rem;
}

.footer-title {
  font-size: 1.15rem;
  color: var(--white);
  margin-bottom: 1.2rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 35px;
  height: 2px;
  background-color: var(--accent);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.6rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--accent);
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
}

/* Responsive Component Adjustments */
@media (max-width: 992px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .leadership-card { grid-template-columns: 1fr; }
  .stat-card:not(:last-child)::after { display: none; }
  .quick-nav-menu { display: none; }
}

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; }
  .amount-presets { grid-template-columns: repeat(2, 1fr); }
  .top-info { display: none; }
  .side-drawer { width: 300px; }
}
