/* ==========================================================================
   DEEPAM TRUST — GLOBAL DESIGN SYSTEM & COMPONENT STYLES
   ========================================================================== */

/* ---------- CSS Custom Properties & Design Tokens ---------- */
:root {
  /* Brand Palette */
  --primary: #C11923;
  --primary-hover: #9E121B;
  --primary-dark: #7A0C13;
  --primary-deep: #5A080D;
  --primary-subtle: #FDF2F2;
  --primary-tint: rgba(193, 25, 35, 0.08);
  --primary-glow: rgba(193, 25, 35, 0.28);

  /* Gold / Amber Accents */
  --accent-gold: #FFD37A;
  --accent-warm: #F59E0B;
  --accent-dark: #D97706;
  --accent-light: #FEF3C7;
  --accent-gradient: linear-gradient(135deg, #FFD37A 0%, #F59E0B 100%);

  /* Neutrals & Surfaces */
  --bg-page: #FAF8F5;
  --bg-white: #FFFFFF;
  --bg-subtle: #F5F1EB;
  --bg-card: #FFFFFF;
  --bg-dark: #120304;

  /* Typography Colors */
  --text-main: #111827;
  --text-body: #374151;
  --text-muted: #6B7280;
  --text-light: #9CA3AF;
  --text-white: #FFFFFF;

  /* Borders & Dividers */
  --border-light: rgba(193, 25, 35, 0.12);
  --border-subtle: #E5E7EB;
  --border-glass: rgba(255, 255, 255, 0.25);

  /* Shadows */
  --shadow-xs: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 4px 12px rgba(193, 25, 35, 0.06);
  --shadow-md: 0 10px 25px -4px rgba(193, 25, 35, 0.10), 0 6px 12px -3px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 20px 40px -10px rgba(193, 25, 35, 0.16), 0 10px 20px -5px rgba(0, 0, 0, 0.05);
  --shadow-card: 0 12px 32px rgba(15, 23, 42, 0.06);
  --shadow-card-hover: 0 24px 48px -8px rgba(193, 25, 35, 0.18);

  /* Radii */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 9999px;

  /* Fonts */
  --font-heading: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);

  /* Max Widths */
  --container-max: 1240px;
  --header-height: 84px;
  --topbar-height: 42px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  overflow-x: clip;
}

body {
  font-family: var(--font-body);
  color: var(--text-body);
  background-color: var(--bg-page);
  line-height: 1.68;
  overflow-x: hidden;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #F3ECE6;
}
::-webkit-scrollbar-thumb {
  background: #C11923;
  border-radius: 999px;
  border: 2px solid #F3ECE6;
}
::-webkit-scrollbar-thumb:hover {
  background: #9E121B;
}

::selection {
  background: var(--primary);
  color: #FFFFFF;
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

button, input, textarea, select {
  font: inherit;
}

/* Container */
.site-container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* ---------- Mandatory Section Top and Bottom Padding (Strictly 40px) ---------- */
.section-pad,
section:not(.hero):not(.about-hero):not(.act-hero):not(.donate-hero):not(.contact-hero) {
  padding-top: 40px !important;
  padding-bottom: 40px !important;
  position: relative;
}

/* ---------- Scroll Progress Bar ---------- */
.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3.5px;
  width: 0%;
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent-gold) 100%);
  z-index: 2000;
  transition: width 0.1s linear;
}

/* ---------- Global Header & Sticky Positioning ---------- */
#global-header {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  display: block;
}

.site-header-wrapper {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  transition: var(--transition-smooth);
}

.topbar {
  background: linear-gradient(100deg, var(--primary-deep) 0%, var(--primary-dark) 50%, var(--primary) 100%);
  color: var(--text-white);
  padding: 8px 0;
  font-size: 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform var(--transition-smooth), opacity var(--transition-smooth);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.topbar-contacts {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.topbar-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: rgba(255, 255, 255, 0.94);
  font-weight: 500;
  letter-spacing: 0.01em;
  font-size: 13px;
  position: relative;
}

.topbar-link:hover {
  color: #FFFFFF;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.topbar-link svg {
  flex-shrink: 0;
  color: var(--accent-gold);
}

/* Topbar Regd No Pill added next to email */
.topbar-regd-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 211, 122, 0.35);
  color: var(--accent-gold);
  padding: 2px 10px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.topbar-regd-pill svg {
  color: var(--accent-gold);
}

.topbar-social {
  display: flex;
  align-items: center;
  gap: 8px;
}

.social-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  transition: var(--transition-fast);
}

.social-circle:hover {
  background: #FFFFFF;
  color: var(--primary);
  transform: translateY(-2px);
}

/* ---------- Main Header ---------- */
.main-header {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.site-header-wrapper.scrolled,
#global-header.scrolled .site-header-wrapper {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.site-header-wrapper.scrolled .main-header,
#global-header.scrolled .main-header {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border-bottom-color: rgba(193, 25, 35, 0.12);
}

.site-header-wrapper.scrolled .topbar,
#global-header.scrolled .topbar {
  padding: 5px 0;
}

.site-header-wrapper.scrolled .nav-container,
#global-header.scrolled .nav-container {
  height: 66px;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
  gap: 24px;
  transition: height var(--transition-smooth);
}

/* Brand */
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-logo-glow {
  position: relative;
}

.brand-logo-glow::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(193, 25, 35, 0.3) 0%, transparent 70%);
  z-index: 0;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.brand:hover .brand-logo-glow::after {
  opacity: 1;
}

.brand-img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 2px solid var(--primary-subtle);
  box-shadow: var(--shadow-xs);
  object-fit: contain;
  padding: 3px;
  position: relative;
  z-index: 1;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.brand:hover .brand-img {
  transform: scale(1.05) rotate(-3deg);
  border-color: var(--primary);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 20px;
  line-height: 1.15;
  color: var(--primary-dark);
  letter-spacing: -0.02em;
}

.brand-tagline {
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: 2px;
}

/* Desktop Navigation */
.desktop-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-body);
  padding: 8px 0;
  position: relative;
  transition: color var(--transition-fast);
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 2.5px;
  background: var(--primary);
  border-radius: var(--radius-full);
  transition: width var(--transition-smooth);
}

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

.nav-link:hover::after {
  width: 100%;
}

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

.nav-link.active::after {
  width: 100%;
}

/* Header Buttons & Hamburger */
.header-action-group {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14.5px;
  line-height: 1;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: var(--transition-fast);
  white-space: nowrap;
}

.btn-donate-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--text-white);
  box-shadow: 0 4px 14px rgba(193, 25, 35, 0.28);
  position: relative;
  overflow: hidden;
}

.btn-donate-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transform: skewX(-20deg);
  transition: left 0.75s ease;
}

.btn-donate-header:hover::before {
  left: 130%;
}

.btn-donate-header:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(193, 25, 35, 0.38);
  color: #FFFFFF;
}

.btn-donate-header .btn-icon {
  transition: transform var(--transition-fast);
}

.btn-donate-header:hover .btn-icon {
  transform: translateX(3px);
}

/* Hamburger Button */
.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: #FFFFFF;
  border: 1.5px solid var(--border-light);
  cursor: pointer;
  padding: 0;
  transition: var(--transition-fast);
}

.hamburger-btn:hover {
  background: var(--primary-subtle);
  border-color: var(--primary);
}

.hamburger-btn .bar {
  width: 20px;
  height: 2px;
  background-color: var(--primary-dark);
  border-radius: 2px;
  transition: transform var(--transition-smooth), opacity var(--transition-smooth);
}

.hamburger-btn[aria-expanded="true"] .bar-1 {
  transform: translateY(7px) rotate(45deg);
}
.hamburger-btn[aria-expanded="true"] .bar-2 {
  opacity: 0;
}
.hamburger-btn[aria-expanded="true"] .bar-3 {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Mobile Drawer Navigation ---------- */
.mobile-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(18, 3, 4, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1100;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-smooth), visibility var(--transition-smooth);
}

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

.mobile-drawer {
  position: fixed;
  top: 0;
  right: -320px;
  width: 310px;
  max-width: 85vw;
  height: 100vh;
  background: #FFFFFF;
  z-index: 1200;
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 35px rgba(0, 0, 0, 0.2);
  transition: right var(--transition-smooth);
  overflow-y: auto;
}

.mobile-drawer.active {
  right: 0;
}

.drawer-header {
  padding: 22px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-subtle);
}

.drawer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.drawer-logo {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1.5px solid var(--primary);
  background: #fff;
  padding: 2px;
}

.drawer-brand-text {
  display: flex;
  flex-direction: column;
}

.drawer-brand-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 17px;
  color: var(--primary-dark);
}

.drawer-brand-sub {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.drawer-close-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  background: #FFFFFF;
  color: var(--text-body);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.drawer-close-btn:hover {
  background: var(--primary);
  color: #FFFFFF;
  border-color: var(--primary);
}

.drawer-links {
  display: flex;
  flex-direction: column;
  padding: 16px 12px;
  gap: 6px;
}

.drawer-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 16px;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-body);
  transition: var(--transition-fast);
}

.drawer-link-icon {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: var(--primary-subtle);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.drawer-link:hover,
.drawer-link.active {
  background: var(--primary-subtle);
  color: var(--primary);
}

.drawer-link:hover .drawer-link-icon,
.drawer-link.active .drawer-link-icon {
  background: var(--primary);
  color: #FFFFFF;
}

.drawer-footer {
  margin-top: auto;
  padding: 20px;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-subtle);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.btn-donate-full {
  width: 100%;
  background: var(--primary);
  color: #FFFFFF;
  box-shadow: 0 4px 15px rgba(193, 25, 35, 0.3);
}

.btn-donate-full:hover {
  background: var(--primary-dark);
}

.drawer-contacts-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.drawer-info-line {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
}

.drawer-info-line a {
  color: var(--text-body);
  font-weight: 500;
}

.drawer-social-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 4px;
}

.drawer-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: var(--radius-md);
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  color: var(--text-dark);
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: var(--shadow-xs);
  transition: var(--transition-fast);
}

.drawer-social-btn:hover {
  background: var(--primary);
  color: #FFFFFF;
  border-color: var(--primary);
  transform: translateY(-1px);
}

.drawer-social-btn svg {
  flex-shrink: 0;
}

.drawer-info-line svg {
  color: var(--primary);
}

/* ---------- Global Footer (Matching User Image 3) ---------- */
.site-footer {
  background: #50070B; /* Solid rich deep maroon matching Image 3 */
  color: rgba(255, 255, 255, 0.88);
  position: relative;
  padding-top: 50px;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-gold), var(--primary), var(--accent-gold));
}

.footer-top-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr 1.25fr 1.15fr;
  gap: 36px;
  padding-bottom: 44px;
  align-items: start;
}

.footer-col {
  min-width: 0; /* CRITICAL: Prevents CSS grid column blowout & content cutoff */
}

.footer-col-brand .footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

/* Clean circular round logo frame matching Image 3 */
.footer-logo-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 3px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
  border: 2px solid var(--accent-gold);
  flex-shrink: 0;
  aspect-ratio: 1 / 1;
}

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

.footer-brand-name {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 22px;
  color: #FFFFFF;
  letter-spacing: -0.01em;
}

.footer-bio {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 22px;
}

.footer-social-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.footer-social-link {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  transition: var(--transition-fast);
}

.footer-social-link:hover {
  background: var(--accent-gold);
  color: var(--primary-deep);
  transform: translateY(-3px);
}

.footer-heading {
  font-family: var(--font-heading);
  color: #FFFFFF;
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 22px;
  letter-spacing: 0.01em;
  position: relative;
  display: inline-block;
}

.footer-heading::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 32px;
  height: 2.5px;
  background: var(--accent-gold);
  border-radius: var(--radius-full);
}

.footer-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-nav-link {
  color: rgba(255, 255, 255, 0.85);
  font-size: 14.5px;
  transition: var(--transition-fast);
  display: inline-block;
}

.footer-nav-link:hover {
  color: #FFFFFF;
  padding-left: 6px;
}

.footer-contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  word-break: break-word;
}

.footer-contact-icon {
  flex-shrink: 0;
  color: var(--accent-gold);
  margin-top: 3px;
}

.footer-contact-text {
  word-break: break-word;
}

.footer-contact-link {
  color: rgba(255, 255, 255, 0.88);
  transition: var(--transition-fast);
  word-break: break-all;
}

.footer-contact-link:hover {
  color: var(--accent-gold);
  text-decoration: underline;
}

.footer-phone-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.phone-separator {
  color: rgba(255, 255, 255, 0.5);
}

/* Footer Media Frame matching Image 3 */
.footer-figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-media-frame {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  background: rgba(0, 0, 0, 0.25);
}

.footer-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-smooth);
}

.footer-media-frame:hover .footer-img {
  transform: scale(1.05);
}

.footer-figcaption {
  font-size: 13px;
  font-style: italic;
  color: rgba(255, 255, 255, 0.85);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  line-height: 1.5;
}

.footer-heart-symbol {
  color: #FF5E68;
}

/* Footer Bottom Bar matching Image 3 */
.footer-bottom-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: #3B0407; /* Darker maroon bottom bar matching Image 3 */
  padding: 18px 0;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.75);
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.regd-badge {
  background: #6B161B;
  color: #FFD37A;
  padding: 5px 16px;
  border-radius: var(--radius-full);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  border: 1px solid rgba(255, 211, 122, 0.35);
}

/* ---------- Back to Top Button ---------- */
.back-to-top-btn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--primary);
  color: #FFFFFF;
  border: 2px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 8px 24px rgba(193, 25, 35, 0.4);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 990;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: opacity var(--transition-smooth), transform var(--transition-smooth), visibility var(--transition-smooth), background var(--transition-fast);
}

.back-to-top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(193, 25, 35, 0.55);
}

/* ---------- Motion & Scroll Reveal Utility Classes ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal.in, .reveal.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* Subtle Ambient Gradient Blobs */
.ambient-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.45;
  animation: floatBlob 16s ease-in-out infinite alternate;
}

@keyframes floatBlob {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -25px) scale(1.08); }
  100% { transform: translate(-20px, 35px) scale(0.95); }
}

/* ---------- Responsive Breakpoints for Global Elements ---------- */
@media (max-width: 1080px) {
  .footer-top-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 36px;
  }
}

@media (max-width: 991px) {
  .desktop-nav {
    display: none;
  }
  .hamburger-btn {
    display: flex;
  }
  .header-action-group .btn-donate-header {
    display: none;
  }
  .topbar-contacts {
    gap: 14px;
  }
  .topbar-contacts a:not(:first-child) {
    display: none;
  }
}

@media (max-width: 640px) {
  .topbar {
    padding: 6px 0;
    font-size: 12px;
  }
  .site-header-wrapper.scrolled .topbar,
  #global-header.scrolled .topbar {
    padding: 4px 0;
  }
  .topbar-social {
    display: none;
  }
  .nav-container {
    height: 64px;
  }
  .site-header-wrapper.scrolled .nav-container,
  #global-header.scrolled .nav-container {
    height: 56px;
  }
  .brand-img {
    width: 44px;
    height: 44px;
  }
  .brand-title {
    font-size: 18px;
  }
  .brand-tagline {
    font-size: 10px;
  }
  .footer-top-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
  .back-to-top-btn {
    bottom: 20px;
    right: 20px;
    width: 42px;
    height: 42px;
  }
}
