/*
 * Gateway M40 Custom Stylesheet
 * Premium, modern, and accessible design system for debt and financial support services.
 */

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

:root {
  --primary-color: #6C2D76;       /* Logo Purple/Plum */
  --primary-dark: #44184C;        /* Dark Purple for text/contrast */
  --primary-light: #5A9BD5;       /* Logo Sky Blue */
  --primary-rgb: 108, 45, 118;
  
  /* Bootstrap Built-in Overrides */
  --bs-primary: #6C2D76;
  --bs-primary-rgb: 108, 45, 118;
  
  --secondary-color: #2D3748;     /* Neutral charcoal */
  --accent-color: #D99E2B;        /* Logo Ochre Yellow */
  --accent-hover: #B57E1B;
  --success-color: #2F855A;       /* Calming green for relief */
  --bg-light: #F8FAFC;            /* Clean light grey */
  --bg-warm: #FAF6FC;             /* Tinted soft warm purple bg */
  --border-color: #E2E8F0;
  
  --font-heading: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-subtle: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-medium: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
  --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.03);
}

body {
  font-family: var(--font-body);
  color: var(--secondary-color);
  background-color: var(--bg-light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--primary-color);
}

/* Removed forceful global overrides to restore opacity utilities */

/* Common Section Styling */
.section-padding {
  padding: 5rem 0;
}
@media (max-width: 768px) {
  .section-padding {
    padding: 3.5rem 0;
  }
}

.section-title {
  position: relative;
  margin-bottom: 3rem;
}
.section-title h2 {
  font-size: 2.25rem;
  font-weight: 800;
  position: relative;
  display: inline-block;
  padding-bottom: 12px;
}
.section-title h2::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background-color: var(--accent-color);
  border-radius: 2px;
}
.section-title.text-start h2::after {
  left: 0;
  transform: none;
}

/* Custom Buttons */
.btn-primary-custom {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 600;
  padding: 0.8rem 1.8rem;
  border-radius: 8px;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 6px rgba(217, 158, 43, 0.2);
}
.btn-primary-custom:hover, .btn-primary-custom:focus {
  background-color: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(217, 158, 43, 0.3);
}

.btn-secondary-custom {
  background-color: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  font-family: var(--font-heading);
  font-weight: 600;
  padding: 0.8rem 1.8rem;
  border-radius: 8px;
  transition: var(--transition-smooth);
}
.btn-secondary-custom:hover, .btn-secondary-custom:focus {
  background-color: var(--primary-color);
  color: #fff;
  transform: translateY(-2px);
}

/* Top bar styles */
.top-emergency-bar {
  background-color: #FDF6E2;       /* Tinted soft logo gold */
  color: #5C3E08;                  /* Dark logo ochre/brown for AA/AAA contrast */
  font-size: 0.9rem;
  font-weight: 500;
  border-bottom: 1px solid #F5E6BE;
}
.top-emergency-bar a:hover {
  color: var(--primary-dark) !important;
  text-decoration: underline !important;
}

/* Navigation */
.navbar-custom {
  background-color: var(--primary-dark);
  border-bottom: 3px solid var(--accent-color);
  transition: var(--transition-smooth);
}
.navbar-custom .navbar-brand {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
}
.navbar-custom .nav-link {
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--font-heading);
  font-weight: 500;
  margin: 0 0.5rem;
  transition: var(--transition-smooth);
}
.navbar-custom .nav-link:hover {
  color: var(--primary-light);
}
.navbar-custom .nav-link.active {
  color: var(--accent-color);
}
.navbar-custom .navbar-toggler {
  border-color: rgba(255, 255, 255, 0.25);
}
.navbar-custom .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Hero Section */
.hero-section {
  position: relative;
  background-color: var(--primary-color);
  padding: 8rem 0 6rem;
  overflow: hidden;
  color: #fff;
}
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(68, 24, 76, 0.95) 0%, rgba(90, 155, 213, 0.85) 100%);
  z-index: 1;
}
.hero-bg-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-content {
  position: relative;
  z-index: 2;
}
.hero-tagline {
  color: var(--accent-color);
  font-weight: 700;
  letter-spacing: 1.5px;
  font-size: 0.9rem;
}
.hero-title {
  font-size: 3rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
}
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.2rem;
  }
}
.hero-description {
  font-size: 1.15rem;
  color: #E2E8F0;
}

/* Services Cards */
.service-card {
  background-color: #fff;
  border: none;
  border-radius: 12px;
  box-shadow: var(--shadow-subtle);
  transition: var(--transition-smooth);
  height: 100%;
  overflow: hidden;
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}
.service-icon-wrapper {
  width: 60px;
  height: 60px;
  border-radius: 10px;
  background-color: rgba(90, 155, 213, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: var(--transition-smooth);
}
.service-card:hover .service-icon-wrapper {
  background-color: var(--primary-light);
}
.service-card:hover .service-icon-wrapper i {
  color: #fff !important;
}
.service-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

/* Steps Timeline */
.step-item {
  position: relative;
  text-align: center;
  padding: 0 1rem;
}
.step-number {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background-color: #fff;
  border: 3px solid var(--primary-light);
  color: var(--primary-color);
  font-size: 1.5rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  position: relative;
  z-index: 2;
  box-shadow: var(--shadow-subtle);
  transition: var(--transition-smooth);
}
.step-item:hover .step-number {
  background-color: var(--primary-light);
  color: #fff;
  transform: scale(1.1);
}
.step-item:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 35px;
  left: calc(50% + 35px);
  width: calc(100% - 70px);
  height: 3px;
  background-color: var(--border-color);
  z-index: 1;
}
@media (max-width: 991px) {
  .step-item:not(:last-child)::after {
    display: none;
  }
  .step-item {
    margin-bottom: 2.5rem;
  }
}

/* Stats Section */
.stats-section {
  background-color: var(--primary-dark);
  color: #fff;
  position: relative;
}
.stat-box {
  text-align: center;
}
.stat-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--accent-color);
  margin-bottom: 0.5rem;
}
.stat-label {
  font-size: 1rem;
  color: #E2E8F0;
  font-weight: 500;
}

/* Crisis support box */
.crisis-box {
  background-color: #fff;
  border-left: 5px solid var(--accent-color);
  border-radius: 8px;
  padding: 2rem;
  box-shadow: var(--shadow-medium);
}

/* Testimonial Section */
.testimonial-section {
  background-color: var(--bg-warm);
}
.testimonial-card {
  background-color: #fff;
  border: none;
  border-radius: 12px;
  box-shadow: var(--shadow-subtle);
  padding: 2.5rem;
  margin: 1rem;
  position: relative;
}
.testimonial-quote {
  font-size: 1.1rem;
  font-style: italic;
  margin-bottom: 1.5rem;
}
.testimonial-author {
  font-weight: 700;
  color: var(--primary-color);
}
.testimonial-meta {
  font-size: 0.85rem;
  color: #718096;
}

/* Partners Logos */
.partner-logo-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: var(--shadow-subtle);
  transition: var(--transition-smooth);
}
.partner-logo-wrapper:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-medium);
}
.partner-logo-wrapper img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  opacity: 0.75;
  transition: var(--transition-smooth);
}
.partner-logo-wrapper:hover img {
  opacity: 1;
}

/* Contact Area */
.contact-info-card {
  background-color: #fff;
  border-radius: 12px;
  padding: 2.5rem;
  box-shadow: var(--shadow-subtle);
  height: 100%;
}
.contact-form-card {
  background-color: #fff;
  border-radius: 12px;
  padding: 2.5rem;
  box-shadow: var(--shadow-medium);
}
.contact-item {
  display: flex;
  margin-bottom: 1.5rem;
}
.contact-item-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: rgba(90, 155, 213, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1.25rem;
  flex-shrink: 0;
  color: var(--primary-light);
  font-size: 1.2rem;
}
.form-control:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 0.25rem rgba(90, 155, 213, 0.25);
}

/* Footer */
.footer-main {
  background-color: var(--primary-color);
  color: rgba(255, 255, 255, 0.85);
  padding: 4rem 0 2rem;
  font-size: 0.95rem;
}
.footer-main h4 {
  color: #fff;
  font-size: 1.15rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
}
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links li {
  margin-bottom: 0.75rem;
}
.footer-links a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: var(--transition-smooth);
}
.footer-links a:hover {
  color: #fff;
  padding-left: 5px;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  margin-top: 3rem;
  font-size: 0.85rem;
}
.fca-disclosure {
  font-size: 0.8rem;
  line-height: 1.5;
  color: #718096;
}

/* Custom Utilities */
.text-accent {
  color: var(--accent-color) !important;
}
.text-primary-custom {
  color: var(--primary-color) !important;
}
.bg-primary-custom {
  background-color: var(--primary-color) !important;
}
.bg-accent-custom {
  background-color: var(--accent-color) !important;
}

/* ==========================================================================
   10TH ANNIVERSARY CELEBRATION STYLES
   ========================================================================== */
.celebration-active {
  position: relative;
}

.celebration-decorations {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 2;
}

/* Sparkles styling */
.sparkle {
  position: absolute;
  width: 15px;
  height: 15px;
  background-color: var(--accent-color);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  opacity: 0.8;
  animation: float-sparkle 4s ease-in-out infinite alternate;
}
.sparkle-1 { top: 15%; left: 15%; scale: 1.2; animation-delay: 0s; }
.sparkle-2 { top: 35%; left: 85%; scale: 0.8; animation-delay: 1.5s; }
.sparkle-3 { top: 65%; left: 10%; scale: 1; animation-delay: 0.5s; }

/* Confetti styling (continuous small background drift) */
.confetti {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  opacity: 0.4;
  animation: drift-confetti 7s linear infinite;
}
.confetti-1 {
  background-color: var(--primary-light);
  left: 20%;
  top: -20px;
  animation-duration: 5s;
  animation-delay: 1s;
}
.confetti-2 {
  background-color: var(--accent-color);
  left: 50%;
  top: -20px;
  animation-duration: 8s;
  animation-delay: 0.2s;
}
.confetti-3 {
  background-color: var(--primary-color);
  left: 80%;
  top: -20px;
  animation-duration: 6.5s;
  animation-delay: 2s;
}

/* Banner Drop ribbon styling */
.banner-drop-wrapper {
  position: absolute;
  top: 0;
  right: 12%;
  width: 150px;
  height: 220px;
  background-color: var(--accent-color);
  clip-path: polygon(0px 0px, 100% 0px, 100% calc(100% - 25px), 50% 100%, 0px calc(100% - 25px));
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  transform: translateY(-100%);
  /* Elastic dropdown ribbon animation with 0.5s load delay */
  animation: banner-drop-in 1.2s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.5s forwards;
  pointer-events: none;
}

.banner-drop-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 3px;
  right: 3px;
  bottom: 3px;
  background: linear-gradient(180deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  clip-path: polygon(0px 0px, 100% 0px, 100% calc(100% - 22px), 50% 100%, 0px calc(100% - 22px));
  z-index: -1;
}

.banner-drop-text-large {
  font-family: var(--font-heading);
  font-size: 3.6rem;
  font-weight: 800;
  color: var(--accent-color);
  line-height: 0.9;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.banner-drop-text-sub {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 5px;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.banner-drop-years {
  font-size: 0.8rem;
  color: var(--primary-light);
  font-weight: 600;
  margin-top: 10px;
  letter-spacing: 0.5px;
}

/* Confetti Spill dynamic particles */
.confetti-spill-particle {
  position: absolute;
  pointer-events: none;
}

@keyframes banner-drop-in {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(0); }
}

@keyframes float-sparkle {
  0% { transform: translateY(0) rotate(0deg); opacity: 0.3; }
  100% { transform: translateY(-20px) rotate(45deg); opacity: 0.9; }
}

@keyframes drift-confetti {
  0% { transform: translateY(-20px) translateX(0) rotate(0deg); opacity: 1; }
  50% { transform: translateY(40vh) translateX(30px) rotate(180deg); opacity: 0.7; }
  100% { transform: translateY(85vh) translateX(-20px) rotate(360deg); opacity: 0; }
}

/* fall-down keyframe for initial massive spill tumbles & flutters */
@keyframes fall-down {
  0% {
    transform: translateY(-20px) rotate(0deg) translateX(0);
    opacity: 0.8;
  }
  50% {
    transform: translateY(45vh) rotate(180deg) translateX(50px);
    opacity: 0.6;
  }
  100% {
    transform: translateY(90vh) rotate(360deg) translateX(-30px);
    opacity: 0;
  }
}

/* Anniversary badge styling */
.anniversary-badge .badge {
  background: linear-gradient(135deg, var(--accent-color) 0%, #E6A82C 100%) !important;
  box-shadow: 0 4px 15px rgba(217, 158, 43, 0.4) !important;
  animation: pulse-glow 2s infinite alternate;
}

@keyframes pulse-glow {
  0% { box-shadow: 0 4px 15px rgba(217, 158, 43, 0.3); }
  100% { box-shadow: 0 4px 25px rgba(217, 158, 43, 0.6); }
}
/* ==========================================================================
   END 10TH ANNIVERSARY CELEBRATION STYLES
   ========================================================================== */
/* Stats Card pulse animation on toggle */
.animate-pulse-stats {
  animation: pulse-stats 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes pulse-stats {
  0% { transform: scale(1); }
  50% { transform: scale(1.04); background-color: rgba(255, 255, 255, 0.22) !important; }
  100% { transform: scale(1); }
}

/* Logo Marquee Ticker */
.logo-marquee-wrapper {
  overflow: hidden;
  width: 100%;
  position: relative;
  display: flex;
  background-color: #fff;
  padding: 1.25rem 0;
}

/* Gradients on the sides for soft fade out */
.logo-marquee-wrapper::before, .logo-marquee-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  width: 120px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}
.logo-marquee-wrapper::before {
  left: 0;
  background: linear-gradient(to right, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%);
}
.logo-marquee-wrapper::after {
  right: 0;
  background: linear-gradient(to left, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%);
}

.logo-marquee-inner {
  display: flex;
  width: max-content;
  animation: marquee-scroll 35s linear infinite;
  gap: 8.5rem;
  align-items: center;
  padding-left: 2.25rem;
}

.logo-item {
  flex-shrink: 0;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-item img {
  height: 100%;
  max-width: 140px;
  object-fit: contain;
  opacity: 0.8;
}

@keyframes marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-50% - 2.25rem)); }
}

/* Custom font-weight helper for Plus Jakarta Sans (Extrabold) */
.fw-extrabold {
  font-weight: 800 !important;
}

/* Crisis Widget */
.crisis-widget {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 320px;
  z-index: 1040;
  transform: translateY(150%);
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: none;
}
.crisis-widget.show-widget {
  display: block;
  animation: slide-up-widget 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes slide-up-widget {
  0% { transform: translateY(150%); }
  100% { transform: translateY(0); }
}

@media (max-width: 575.98px) {
  .crisis-widget {
    bottom: 10px;
    right: 10px;
    left: 10px;
    width: auto;
  }
}

/* Fresh Start Section */
.fresh-start-section {
  background-color: #38b6ff; /* Cyan blue matching image */
  clip-path: polygon(0 4vw, 100% 0, 100% calc(100% - 4vw), 0 100%);
  margin-top: -4vw;
  margin-bottom: -4vw;
  padding-top: 6vw;
  padding-bottom: 6vw;
  z-index: 3;
}

/* Custom button for Fresh Start section */
.btn-fresh-start {
  background-color: transparent;
  color: #fff !important;
  border: 2px solid var(--primary-color) !important;
  transition: var(--transition-smooth);
}
.btn-fresh-start:hover {
  background-color: var(--primary-color) !important;
  color: #fff !important;
}

/* Make sure the container content stays within safe bounds on mobile */
@media (max-width: 768px) {
  .fresh-start-section {
    clip-path: polygon(0 8vw, 100% 0, 100% calc(100% - 8vw), 0 100%);
    margin-top: -8vw;
    margin-bottom: -8vw;
    padding-top: 10vw;
    padding-bottom: 10vw;
  }
}

/* Vertical Timeline Section */
.timeline-container {
  padding: 2rem 0;
}
.timeline-line {
  width: 4px;
  background-color: var(--primary-light);
  border-radius: 4px;
  opacity: 0.3;
}
.step-badge {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 10px 20px rgba(108, 45, 118, 0.2);
  flex-shrink: 0;
}
.timeline-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: var(--accent-color);
  border: 4px solid #fff;
  box-shadow: 0 0 0 4px rgba(217, 158, 43, 0.2);
  z-index: 2;
}
.timeline-list {
  padding-left: 0;
}
.timeline-list li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 1rem;
  color: var(--secondary-color);
  line-height: 1.6;
}
.timeline-list li i {
  position: absolute;
  left: 0;
  top: 2px;
  color: var(--primary-color);
  font-size: 1.2rem;
}
.timeline-img-wrapper img {
  border: 1px solid rgba(0,0,0,0.05);
}

/* Quick Exit Button */
.quick-exit-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1050;
  border-radius: 50px;
  padding: 12px 25px;
  font-weight: 800;
  box-shadow: 0 4px 15px rgba(220, 53, 69, 0.4);
}
@media (max-width: 768px) {
  .quick-exit-btn {
    bottom: 20px;
    right: 20px;
    padding: 10px 20px;
    font-size: 0.9rem;
  }
}
