/* ==========================================================================
   Eleven Shadow Welfare Society - Unified Master Stylesheet (style.css)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design Tokens & Root Variables
   -------------------------------------------------------------------------- */
:root {
  --bs-primary: #ff5e0e;
  --bs-primary-rgb: 255, 94, 14;
  --brand-orange: #ff5e0e;
  --brand-orange-rgb: 255, 94, 14;
  --brand-amber: #ffb020;
  --brand-dark: #0b0f17;
  --brand-surface: #111827;
  --brand-light: #f8fafc;
  --brand-border: #e2e8f0;
  --text-primary: #1e293b;
  --text-muted: #ffffff;
}

/* --------------------------------------------------------------------------
   2. Global Typography & Base Elements
   -------------------------------------------------------------------------- */
body {
  font-family: "Plus Jakarta Sans", sans-serif;
  color: #334155;
  background-color: #ffffff;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6,
.font-heading {
  font-family: "Outfit", sans-serif;
}

/* --------------------------------------------------------------------------
   3. Buttons & Component Utilities
   -------------------------------------------------------------------------- */
.btn-brand-primary {
  background-color: var(--brand-orange);
  border-color: var(--brand-orange);
  color: #ffffff;
  font-weight: 700;
  padding: 0.75rem 1.75rem;
  border-radius: 0.75rem;
  transition: all 0.25s ease-in-out;
  box-shadow: 0 10px 25px -5px rgba(255, 94, 14, 0.35);
}

.btn-brand-primary:hover {
  background-color: #e04e05;
  border-color: #e04e05;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 15px 30px -5px rgba(255, 94, 14, 0.45);
}

.btn-brand-outline {
  background-color: transparent;
  border: 2px solid var(--brand-orange);
  color: var(--brand-orange);
  font-weight: 700;
  padding: 0.7rem 1.7rem;
  border-radius: 0.75rem;
  transition: all 0.25s ease-in-out;
}

.btn-brand-outline:hover {
  background-color: var(--brand-orange);
  color: #ffffff;
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   4. Shared Navigation & Sticky Header
   -------------------------------------------------------------------------- */
.navbar {
  background-color: #fff !important;
  backdrop-filter: blur(14px);
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.navbar.scrolled {
  padding-top: 0.75rem !important;
  padding-bottom: 0.75rem !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.nav-link {
  font-weight: 600;
  color: #1e293b !important;
  transition: color 0.2s ease;
  padding: 0.5rem 1rem !important;
}

.nav-link:hover,
.nav-link.active {
  color: var(--brand-orange) !important;
}

.dropdown-menu {
  border: none;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border-radius: 1rem;
  padding: 0.5rem;
  animation: dropdownFade 0.2s ease forwards;
}

.dropdown-item {
  border-radius: 0.5rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  transition: all 0.15s ease;
}

.dropdown-item:hover {
  background-color: rgba(255, 94, 14, 0.08);
  color: var(--brand-orange);
}

.dropdown-item.active {
  background-color: #fff !important;
}

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

/* --------------------------------------------------------------------------
   5. Home Hero Section
   -------------------------------------------------------------------------- */
.hero-section {
  position: relative;
  background: linear-gradient(135deg, #0b0f17 0%, #111827 100%);
  color: #ffffff;
  padding: 160px 0 110px 0;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -20%;
  right: -10%;
  width: 650px;
  height: 650px;
  background: radial-gradient(
    circle,
    rgba(255, 94, 14, 0.22) 0%,
    rgba(255, 176, 32, 0.08) 50%,
    rgba(0, 0, 0, 0) 70%
  );
  border-radius: 50%;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   6. About Page Breadcrumb & Header Hero
   -------------------------------------------------------------------------- */
.about-hero {
  position: relative;
  background: linear-gradient(135deg, #0b0f17 0%, #111827 100%);
  color: #ffffff;
  padding: 160px 0 90px 0;
  overflow: hidden;
}

.about-hero-glow {
  position: absolute;
  top: -30%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(255, 94, 14, 0.25) 0%,
    rgba(255, 176, 32, 0.08) 55%,
    transparent 75%
  );
  border-radius: 50%;
  pointer-events: none;
}

.about-breadcrumb a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.2s ease;
}

.about-breadcrumb a:hover {
  color: var(--brand-orange);
}

/* --------------------------------------------------------------------------
   7. Home Page Specific Components
   -------------------------------------------------------------------------- */
/* Service Cards */
.service-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 1.25rem;
  transition: all 0.3s ease;
  overflow: hidden;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.12);
  border-color: rgba(255, 94, 14, 0.4);
}

.service-card .service-img-wrapper {
  overflow: hidden;
  height: 220px;
}

.service-card .service-img-wrapper img {
  transition: transform 0.5s ease;
}

.service-card:hover .service-img-wrapper img {
  transform: scale(1.08);
}

/* Feature Boxes */
.feature-box {
  background: #f8fafc;
  border-radius: 1rem;
  padding: 2rem;
  border: 1px solid #e2e8f0;
  transition: all 0.3s ease;
}

.feature-box:hover {
  background: #ffffff;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
  border-color: var(--brand-orange);
}

/* Project Gallery */
.gallery-item {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.gallery-item img {
  transition: transform 0.6s ease;
}

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

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(11, 15, 23, 0.88) 0%,
    rgba(11, 15, 23, 0.2) 60%,
    transparent 100%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.75rem;
}

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

/* --------------------------------------------------------------------------
   8. About Page Specific Components
   -------------------------------------------------------------------------- */
/* Story Image Stack & Badges */
.story-image-stack {
  position: relative;
}

.story-badge {
  position: absolute;
  bottom: -20px;
  right: -15px;
  background: linear-gradient(135deg, var(--brand-orange), var(--brand-amber));
  color: #ffffff;
  border-radius: 1.25rem;
  padding: 1.75rem;
  box-shadow: 0 20px 40px rgba(255, 94, 14, 0.35);
  border: 4px solid #ffffff;
}

/* Vision / Mission / Values Pillars */
.pillar-card {
  background: #ffffff;
  border: 1px solid var(--brand-border);
  border-radius: 1.25rem;
  padding: 2.5rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  display: flex;
  flex-direction: column;
}

.pillar-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 94, 14, 0.45);
  box-shadow: 0 25px 50px -12px rgba(11, 15, 23, 0.08);
}

.pillar-icon-box {
  width: 60px;
  height: 60px;
  border-radius: 1rem;
  background-color: rgba(255, 94, 14, 0.1);
  color: var(--brand-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}

.pillar-card:hover .pillar-icon-box {
  background-color: var(--brand-orange);
  color: #ffffff;
  transform: rotate(-6deg) scale(1.05);
}

/* Interactive Milestone Timeline */
.timeline-nav-pills {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.timeline-nav-btn {
  background: #0b0f17;
  border: 1px solid var(--brand-border);
  padding: 0.6rem 1.4rem;
  border-radius: 2rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.25s ease;
}

.timeline-nav-btn:hover {
  border-color: var(--brand-orange);
  color: var(--brand-orange);
}

.timeline-nav-btn.active {
  background: var(--brand-orange);
  color: #ffffff;
  border-color: var(--brand-orange);
  box-shadow: 0 8px 20px rgba(255, 94, 14, 0.3);
}

.timeline-pane {
  display: none;
  animation: fadeInPane 0.4s ease forwards;
}

.timeline-pane.active {
  display: block;
}

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

.milestone-box {
  background: #ffffff;
  border-radius: 1.5rem;
  border: 1px solid var(--brand-border);
  padding: 3rem;
  box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.05);
}

/* Leadership Team Grid */
.team-card {
  background: #ffffff;
  border: 1px solid var(--brand-border);
  border-radius: 1.25rem;
  overflow: hidden;
  transition: all 0.3s ease;
}

.team-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 94, 14, 0.4);
  box-shadow: 0 25px 45px -10px rgba(0, 0, 0, 0.1);
}

.team-img-wrapper {
  position: relative;
  height: 290px;
  overflow: hidden;
}

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

.team-card:hover .team-img-wrapper img {
  transform: scale(1.07);
}

.team-social-overlay {
  position: absolute;
  inset: 0;
  background: rgba(11, 15, 23, 0.6);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.team-card:hover .team-social-overlay {
  opacity: 1;
}

.team-social-overlay a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #ffffff;
  color: var(--brand-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.team-social-overlay a:hover {
  background: var(--brand-orange);
  color: #ffffff;
  transform: translateY(-3px);
}

/* --------------------------------------------------------------------------
   9. Shared Statistics, CTA, Footer & Utilities
   -------------------------------------------------------------------------- */
/* Statistics Section */
.stats-section {
  background: linear-gradient(135deg, #0b0f17 0%, #111827 100%);
  color: #ffffff;
  padding: 80px 0;
}

.stat-number {
  font-size: 36px;
  font-weight: 800;
  color: var(--brand-orange);
  font-family: "Outfit", sans-serif;
}

/* Call to Action Banner */
.cta-banner {
  background: linear-gradient(
    135deg,
    var(--brand-orange) 0%,
    #e04e05 50%,
    var(--brand-amber) 100%
  );
  color: #ffffff;
  border-radius: 1.5rem;
  padding: 4rem 2rem;
  box-shadow: 0 25px 50px -12px rgba(255, 94, 14, 0.35);
}

/* Footer */
footer {
  background-color: #0b0f17;
  color: #94a3b8;
  padding-top: 80px;
  padding-bottom: 30px;
}

footer h5 {
  color: #ffffff;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

footer a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.2s ease;
}

footer a:hover {
  color: var(--brand-orange);
}

/* Back to Top Floating Button */
#back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  background-color: var(--brand-orange);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(255, 94, 14, 0.4);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  border: none;
}

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

#back-to-top:hover {
  background-color: #e04e05;
  transform: translateY(-4px);
}

/* --------------------------------------------------------------------------
   10. Contact Page Specific Components
   -------------------------------------------------------------------------- */
.contact-info-card {
  background: #ffffff;
  border: 1px solid var(--brand-border);
  border-radius: 1.25rem;
  padding: 2rem;
  transition: all 0.3s ease;
  height: 100%;
}

.contact-info-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 94, 14, 0.45);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.08);
}

.contact-form-container {
  background: #ffffff;
  border: 1px solid var(--brand-border);
  border-radius: 1.5rem;
  padding: 3rem;
  box-shadow: 0 20px 45px -12px rgba(0, 0, 0, 0.07);
}

.form-control-custom,
.form-select-custom {
  background-color: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 0.85rem 1.15rem;
  font-size: 0.95rem;
  color: #1e293b;
  transition: all 0.2s ease;
}

.form-control-custom:focus,
.form-select-custom:focus {
  background-color: #ffffff;
  border-color: var(--brand-orange);
  box-shadow: 0 0 0 4px rgba(255, 94, 14, 0.15);
  outline: none;
}

.form-label-custom {
  font-weight: 700;
  font-size: 0.875rem;
  color: #1e293b;
  margin-bottom: 0.5rem;
}

.map-wrapper {
  border-radius: 1.5rem;
  overflow: hidden;
  border: 1px solid var(--brand-border);
  box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.06);
}

.map-wrapper iframe {
  width: 100%;
  height: 480px;
  border: 0;
  display: block;
}

.faq-accordion .accordion-item {
  border: 1px solid var(--brand-border);
  border-radius: 1rem !important;
  margin-bottom: 1rem;
  overflow: hidden;
}

.faq-accordion .accordion-button {
  font-family: "Outfit", sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: #1e293b;
  padding: 1.25rem 1.5rem;
  background-color: #ffffff;
  box-shadow: none !important;
}

.faq-accordion .accordion-button:not(.collapsed) {
  color: var(--brand-orange);
  background-color: rgba(255, 94, 14, 0.05);
}

.faq-accordion .accordion-body {
  color: #64748b;
  font-size: 0.925rem;
  line-height: 1.7;
  padding: 1rem 1.5rem 1.5rem;
}

/* Brand Logo Styling */
.navbar-brand-logo {
  height: 85px;
  width: auto;
  transition: transform 0.25s ease;
}

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

.footer-brand-logo {
  height: 75px;
  width: auto;
  object-fit: contain;
  background-color: #ffffff;
}

/* ==========================================================================
   Elevated Modern Service Details Design System
   ========================================================================== */

/* Modern Breadcrumb Banner with subtle mesh gradient */
.service-hero-mesh {
  position: relative;
  background:
    radial-gradient(
      circle at 85% 15%,
      rgba(255, 94, 14, 0.18) 0%,
      transparent 45%
    ),
    linear-gradient(135deg, #0b0f17 0%, #111827 100%);
  color: #ffffff;
  padding: 160px 0 75px 0;
  overflow: hidden;
}

.service-hero-mesh::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 25px;
  background: linear-gradient(to top, rgba(255, 255, 255, 0.05), transparent);
}

/* Feature Image Frame with Floating Floating Trust Card */
.service-img-hero-box {
  position: relative;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.2);
}

.service-img-hero-box img {
  width: 100%;
  height: 440px;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-img-hero-box:hover img {
  transform: scale(1.04);
}

.floating-impact-badge {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: rgba(11, 15, 23, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 1.25rem;
  padding: 1.25rem 1.5rem;
  color: #ffffff;
  max-width: 320px;
  box-shadow: 0 20px 35px rgba(0, 0, 0, 0.3);
}

/* Interactive Tabs for Service Detail Pages */
.service-nav-tabs {
  border-bottom: 2px solid #e2e8f0;
  display: flex;
  gap: 0.75rem;
  margin-bottom: 2rem;
  overflow-x: auto;
}

.service-nav-tabs .nav-link {
  border: none;
  background: transparent;
  color: #64748b !important;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.9rem 1.4rem !important;
  border-radius: 0.75rem 0.75rem 0 0;
  position: relative;
  transition: all 0.25s ease;
}

.service-nav-tabs .nav-link:hover {
  color: var(--brand-orange) !important;
}

.service-nav-tabs .nav-link.active {
  color: var(--brand-orange) !important;
  background-color: transparent;
}

.service-nav-tabs .nav-link.active::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--brand-orange);
  border-radius: 3px 3px 0 0;
}

/* Impact Calculation Widget */
.donation-calc-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 1.25rem;
  padding: 2rem;
  box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.05);
}

.calc-btn-pill {
  border: 1.5px solid #e2e8f0;
  background: #f8fafc;
  color: #1e293b;
  font-weight: 700;
  border-radius: 2rem;
  padding: 0.5rem 1.2rem;
  transition: all 0.2s ease;
  cursor: pointer;
}

.calc-btn-pill:hover,
.calc-btn-pill.active {
  border-color: var(--brand-orange);
  background-color: var(--brand-orange);
  color: #ffffff;
}

/* Key Intervention Card Upgrades */
.card-hover-border {
  border: 1.5px solid #edf2f7;
  border-radius: 1.25rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  background: #ffffff;
}

.card-hover-border:hover {
  border-color: rgba(255, 94, 14, 0.45);
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.08);
}

/* Sidebar Upgraded Sticky Menu */
.sidebar-sticky-wrapper {
  position: -webkit-sticky;
  position: sticky;
  top: 105px;
}

.service-sidebar-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.service-sidebar-item a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-radius: 0.85rem;
  margin-bottom: 0.5rem;
  background: #f8fafc;
  color: #1e293b;
  font-weight: 600;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: all 0.25s ease;
}

.service-sidebar-item a:hover {
  background: #fff;
  border-color: rgba(255, 94, 14, 0.3);
  color: var(--brand-orange);
  padding-left: 1.5rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
}

.service-sidebar-item a.active {
  background: linear-gradient(135deg, var(--brand-orange), #ff843a);
  color: #ffffff;
  box-shadow: 0 10px 25px rgba(255, 94, 14, 0.35);
}

/* Verified Badge Box */
.trust-shield-box {
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 1rem;
  padding: 1.25rem;
}

/* --------------------------------------------------------------------------
   11. Service Details Specific Styling
   -------------------------------------------------------------------------- */
.service-details-content img {
  border-radius: 1.25rem;
  box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.08);
}

.service-feature-pill {
  background: #f8fafc;
  border: 1px solid var(--brand-border);
  border-radius: 1rem;
  padding: 1.25rem;
  transition: all 0.3s ease;
}

.service-feature-pill:hover {
  background: #ffffff;
  border-color: var(--brand-orange);
  transform: translateY(-4px);
  box-shadow: 0 12px 25px rgba(255, 94, 14, 0.08);
}

.service-sidebar-widget {
  background: #ffffff;
  border: 1px solid var(--brand-border);
  border-radius: 1.25rem;
  padding: 1.75rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.service-nav-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.15rem;
  background-color: #f8fafc;
  border-radius: 0.75rem;
  color: var(--text-primary);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  margin-bottom: 0.5rem;
  border: 1px solid transparent;
}

.service-nav-list a:hover,
.service-nav-list a.active {
  background-color: rgba(255, 94, 14, 0.08);
  color: var(--brand-orange);
  border-color: rgba(255, 94, 14, 0.3);
  padding-left: 1.4rem;
}

.service-nav-list a.active {
  background-color: var(--brand-orange);
  color: #ffffff;
}

.service-sidebar-cta {
  background: linear-gradient(135deg, #0b0f17 0%, #1e293b 100%);
  border-radius: 1.25rem;
  padding: 2rem;
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.whatsapp-btn {
  position: fixed;
  right: 30px;
  bottom: 90px;
  width: 50px;
  height: 50px;
  z-index: 9999;
  border-radius: 50%;
  background: #25d366;
  padding: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
  transition: 0.3s ease;
}

.whatsapp-btn img {
  width: 100%;
  height: 100%;
}

.whatsapp-btn:hover {
  transform: scale(1.1);
}
