@import url('fonts.css');

:root {
  --primary-red: #f40b17;
  --primary-red-hover: #d60813;
  --primary-red-light: rgba(244, 11, 23, 0.08);
  --primary-red-glow: rgba(244, 11, 23, 0.35);
  --primary-blue: #002984;
  --primary-blue-dark: #001a54;
  --primary-blue-deep: #002984;
  --primary-blue-light: rgba(0, 41, 132, 0.08);
  --primary-blue-glow: rgba(0, 41, 132, 0.25);
  --accent-gold: #ba871b;
  --accent-gold-light: #f9e081;
  --accent-gold-hover: #9e7215;
  --gold-gradient: linear-gradient(135deg, #ba871b 0%, #f9e081 50%, #ba871b 100%);
  --bg-cream: #faf9f6;
  --bg-slate: #f8fafc;
  --text-dark: #0f172a;
  --text-muted: #526079;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif !important;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif !important;
  color: var(--text-dark);
  background-color: #ffffff;
  overflow-x: hidden;
  line-height: 1.65;
}
.bg-brand-blueDeep,
.bg-brand-blueDeep\/95 {
  background-color: var(--primary-blue-deep) !important;
}
.text-brand-blueDeep {
  color: var(--primary-blue-deep) !important;
}
/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 9px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #002984;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #f40b17;
}

/* ==================== MODERN PRELOADER ==================== */
#page-preloader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: radial-gradient(circle at center, #002984 0%, #001648 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

#page-preloader.preloader-hidden {
  opacity: 0;
  transform: scale(1.04);
  pointer-events: none;
}

.preloader-circle-wrapper {
  position: relative;
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preloader-glow-orb {
  position: absolute;
  inset: -15px;
  background: radial-gradient(circle, rgba(244, 11, 23, 0.45) 0%, rgba(186, 135, 27, 0.3) 40%, rgba(0, 41, 132, 0.3) 70%, transparent 80%);
  border-radius: 50%;
  animation: orbPulse 2s ease-in-out infinite alternate;
}

.preloader-ring-outer {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2.5px solid transparent;
  border-top-color: #f40b17;
  border-right-color: rgba(186, 135, 27, 0.6);
  animation: preloaderSpin 1.2s cubic-bezier(0.5, 0.1, 0.5, 0.9) infinite;
}

.preloader-ring-inner {
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  border: 2px solid transparent;
  border-bottom-color: #f9e081;
  border-left-color: rgba(255, 255, 255, 0.5);
  animation: preloaderSpinReverse 1.5s cubic-bezier(0.5, 0.1, 0.5, 0.9) infinite;
}

.preloader-logo-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  z-index: 10;
  animation: preloaderLogoPulse 2s ease-in-out infinite;
}

.preloader-progress-track {
  width: 160px;
  height: 3px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 9999px;
  overflow: hidden;
  margin-top: 24px;
  position: relative;
}

.preloader-progress-bar {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, #f40b17, #f9e081, #ba871b, #f40b17);
  background-size: 200% 100%;
  border-radius: 9999px;
  animation: preloaderBar 1.6s ease-in-out infinite;
}

@keyframes preloaderSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes preloaderSpinReverse {
  0% { transform: rotate(360deg); }
  100% { transform: rotate(0deg); }
}

@keyframes orbPulse {
  0% { transform: scale(0.9); opacity: 0.5; }
  100% { transform: scale(1.15); opacity: 0.9; }
}

@keyframes preloaderLogoPulse {
  0%, 100% { transform: scale(0.96); opacity: 0.9; }
  50% { transform: scale(1.04); opacity: 1; }
}

@keyframes preloaderBar {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Page View Transition */
@keyframes pageFadeIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.page-view {
  display: none;
  animation: pageFadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.page-view.active {
  display: block;
}

/* Float Keyframes */
@keyframes floatAnimation {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes floatSlow {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-14px) rotate(1.2deg);
  }
}

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(186, 135, 27, 0.55);
  }
  50% {
    box-shadow: 0 0 0 14px rgba(186, 135, 27, 0);
  }
}

@keyframes pulseRedGlow {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(244, 11, 23, 0.55);
  }
  50% {
    box-shadow: 0 0 0 14px rgba(244, 11, 23, 0);
  }
}

@keyframes pulseBlueGlow {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(0, 41, 132, 0.55);
  }
  50% {
    box-shadow: 0 0 0 14px rgba(0, 41, 132, 0);
  }
}

.animate-float {
  animation: floatAnimation 4s ease-in-out infinite;
}

.animate-float-slow {
  animation: floatSlow 6s ease-in-out infinite;
}

.animate-pulse-glow {
  animation: pulseGlow 2.5s infinite;
}

.animate-pulse-red {
  animation: pulseRedGlow 2.5s infinite;
}

.animate-pulse-blue {
  animation: pulseBlueGlow 2.5s infinite;
}

/* Scroll Reveal Initial States */
.reveal-fade-up {
  opacity: 0;
  transform: translateY(32px);
  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-fade-left {
  opacity: 0;
  transform: translateX(-35px);
  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-fade-right {
  opacity: 0;
  transform: translateX(35px);
  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-zoom-in {
  opacity: 0;
  transform: scale(0.94);
  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;
}

.is-revealed {
  opacity: 1 !important;
  transform: translate(0, 0) scale(1) !important;
}

.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }
.delay-500 { transition-delay: 500ms; }

/* Custom Background Patterns */
.bg-mesh-pattern {
  background-color: #fcfcfd;
  background-image: 
    radial-gradient(at 0% 0%, rgba(0, 41, 132, 0.05) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(244, 11, 23, 0.05) 0px, transparent 50%),
    radial-gradient(at 50% 50%, rgba(248, 250, 252, 0.5) 0px, transparent 100%);
}

.bg-mesh-dark {
  background-color: #002984;
  background-image: 
    radial-gradient(at 10% 20%, rgba(244, 11, 23, 0.25) 0px, transparent 40%),
    radial-gradient(at 90% 80%, rgba(0, 41, 132, 0.85) 0px, transparent 50%),
    radial-gradient(at 50% 50%, rgba(0, 22, 72, 0.98) 0px, transparent 100%);
}

.bg-gradient-subtle {
  background: linear-gradient(180deg, #fbfcfe 0%, #f1f5f9 100%);
}

/* Badges & Pills */
.brand-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1rem;
  border-radius: 9999px;
  background: rgba(244, 11, 23, 0.08);
  border: 1px solid rgba(244, 11, 23, 0.25);
  color: #f40b17;
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.brand-pill-gold {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1rem;
  border-radius: 9999px;
  background: rgba(186, 135, 27, 0.1);
  border: 1px solid rgba(186, 135, 27, 0.3);
  color: #ba871b;
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.brand-pill-blue {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1rem;
  border-radius: 9999px;
  background: rgba(0, 41, 132, 0.08);
  border: 1px solid rgba(0, 41, 132, 0.25);
  color: #002984;
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.brand-kicker {
  display: inline-block;
  border-top: 2.5px solid #f40b17;
  padding-top: 10px;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #002984;
  font-weight: 700;
  margin-bottom: 14px;
}

.brand-kicker-gold {
  display: inline-block;
  border-top: 2.5px solid #ba871b;
  padding-top: 10px;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #002984;
  font-weight: 700;
  margin-bottom: 14px;
}

.brand-kicker-white {
  display: inline-block;
  border-top: 2.5px solid #f40b17;
  padding-top: 10px;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #f8fafc;
  font-weight: 700;
  margin-bottom: 14px;
}

/* Card Hover Effects */
.premium-card {
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.premium-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3.5px;
  background: linear-gradient(90deg, #f40b17, #ba871b, #002984);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}

.premium-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 35px -10px rgba(0, 41, 132, 0.16), 0 10px 15px -5px rgba(0, 0, 0, 0.04);
}

.premium-card:hover::before {
  transform: scaleX(1);
}

/* Dark Card Hover */
.premium-card-dark {
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.premium-card-dark:hover {
  transform: translateY(-6px);
  border-color: rgba(244, 11, 23, 0.6) !important;
  box-shadow: 0 20px 35px -10px rgba(0, 0, 0, 0.5), 0 0 25px rgba(244, 11, 23, 0.25);
}

/* ==================== BUTTON STYLINGS ==================== */
/* Primary Metallic Gold Gradient Buttons (Matching User Reference #ba871b to #f9e081) */
.btn-primary-red,
.btn-primary-gold,
.btn-gold {
  background: linear-gradient(135deg, #ba871b 0%, #f9e081 50%, #ba871b 100%) !important;
  color: #002984 !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em;
  border: 1px solid rgba(186, 135, 27, 0.45) !important;
  text-shadow: 0 0.5px 0 rgba(255, 255, 255, 0.4);
  box-shadow: 0 6px 18px -2px rgba(186, 135, 27, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.45);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary-red::after,
.btn-primary-gold::after,
.btn-gold::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transition: left 0.7s ease;
  z-index: -1;
}

.btn-primary-red:hover,
.btn-primary-gold:hover,
.btn-gold:hover {
  transform: translateY(-2.5px);
  background: linear-gradient(135deg, #f9e081 0%, #ba871b 50%, #f9e081 100%) !important;
  color: #001a54 !important;
  box-shadow: 0 12px 28px -4px rgba(186, 135, 27, 0.6), 0 4px 14px rgba(0, 41, 132, 0.2) !important;
  border-color: rgba(186, 135, 27, 0.8) !important;
}

.btn-primary-red:hover::after,
.btn-primary-gold:hover::after,
.btn-gold:hover::after {
  left: 100%;
}

.btn-primary-blue {
  background: linear-gradient(135deg, #002984 0%, #001a54 100%);
  color: #ffffff;
  font-weight: 600;
  border: 1.5px solid rgba(249, 224, 129, 0.35);
  transition: all 0.35s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary-blue:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #ba871b 0%, #f9e081 50%, #ba871b 100%);
  color: #002984;
  border-color: #ba871b;
  box-shadow: 0 10px 25px -4px rgba(186, 135, 27, 0.5);
}

.btn-outline-blue {
  background: transparent;
  color: #002984;
  border: 1.5px solid #002984;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-outline-blue:hover {
  background: linear-gradient(135deg, #ba871b 0%, #f9e081 50%, #ba871b 100%);
  color: #002984;
  border-color: #ba871b;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -5px rgba(186, 135, 27, 0.45);
}

.btn-outline-red {
  background: transparent;
  color: #f40b17;
  border: 1.5px solid #f40b17;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-outline-red:hover {
  background: linear-gradient(135deg, #ba871b 0%, #f9e081 50%, #ba871b 100%);
  color: #002984;
  border-color: #ba871b;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -5px rgba(186, 135, 27, 0.45);
}

.btn-outline-gold {
  background: transparent;
  color: #ba871b;
  border: 1.5px solid #ba871b;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-outline-gold:hover {
  background: linear-gradient(135deg, #ba871b 0%, #f9e081 50%, #ba871b 100%);
  color: #002984;
  border-color: #ba871b;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -5px rgba(186, 135, 27, 0.45);
}

/* Sub-Nav Scroll & Active Tab */
.sub-nav-scroll {
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.sub-nav-scroll::-webkit-scrollbar {
  display: none;
}

.sub-nav-link {
  transition: all 0.2s ease;
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.2rem;
  color: #475569;
  font-weight: 500;
  white-space: nowrap;
}

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

.sub-nav-link.active {
  color: var(--primary-red) !important;
  font-weight: 700 !important;
}

.sub-nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 0;
  right: 0;
  height: 2.5px;
  background-color: var(--primary-red);
  border-radius: 2px;
}

.main-nav-link {
  transition: all 0.25s ease;
  position: relative;
}

.main-nav-link.active {
  color: #002984 !important;
  font-weight: 700;
}

.main-nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -17px;
  left: 0;
  right: 0;
  height: 3px;
  background-color: #f40b17;
  border-radius: 2px;
}

/* Image Placeholder Box with fallback artwork */
.img-placeholder {
  position: relative;
  background: linear-gradient(135deg, #f8fafc 0%, #edf2f7 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 2px dashed #cbd5e1;
  border-radius: 1.25rem;
  overflow: hidden;
  min-height: 240px;
}

.img-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Quote Card */
.quote-card {
  position: relative;
}

.quote-card::before {
  content: "“";
  position: absolute;
  top: -15px;
  left: 20px;
  font-size: 5rem;
  color: rgba(0, 41, 132, 0.08);
  font-family: Georgia, serif !important;
  line-height: 1;
  pointer-events: none;
}

/* Checkmark List */
.check-item {
  position: relative;
  padding-left: 1.75rem;
}

.check-item::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0.15rem;
  width: 1.25rem;
  height: 1.25rem;
  background: rgba(244, 11, 23, 0.12);
  color: #f40b17;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
}

/* WhatsApp Floating Button */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
  transition: all 0.3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.08) translateY(-3px);
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.45);
}

/* Back to Top */
#back-to-top {
  position: fixed;
  bottom: 88px;
  right: 24px;
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

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

/* Mobile Drawer */
#mobile-drawer {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
#mobile-drawer.open {
  transform: translateX(0);
}
#mobile-backdrop {
  transition: opacity 0.3s ease;
}
#mobile-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

/* Accordion Smooth Height */
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  opacity: 0;
}

.accordion-item.active .accordion-content {
  max-height: 500px;
  opacity: 1;
}

.accordion-item.active .accordion-icon {
  transform: rotate(180deg);
  color: #f40b17;
}

/* ==================== MODERN MOBILE DEVICE ONLY OPTIMIZATIONS (< 640px) ==================== */
@media (max-width: 640px) {
  body {
    line-height: 1.55;
    -webkit-tap-highlight-color: transparent;
  }

  /* Compact Brand Kickers & Pills */
  .brand-kicker,
  .brand-kicker-white {
    font-size: 0.6875rem !important;
    letter-spacing: 0.12em !important;
    padding-top: 6px !important;
    margin-bottom: 8px !important;
    border-top-width: 2px !important;
  }

  .brand-pill,
  .brand-pill-blue {
    padding: 0.25rem 0.75rem !important;
    font-size: 0.75rem !important;
    gap: 0.375rem !important;
  }

  /* Modern Card Spacing */
  .premium-card,
  .premium-card-dark {
    border-radius: 1rem !important;
  }

  .premium-card:hover,
  .premium-card-dark:hover {
    transform: none !important;
  }

  /* Touch Buttons */
  .btn-primary-red,
  .btn-primary-blue,
  .btn-outline-blue {
    padding: 0.85rem 1.25rem !important;
    font-size: 0.875rem !important;
    border-radius: 0.75rem !important;
  }

  /* WhatsApp & Back to Top Floating Buttons */
  .whatsapp-float {
    bottom: 18px !important;
    right: 18px !important;
    width: 48px !important;
    height: 48px !important;
  }
  .whatsapp-float svg {
    width: 24px !important;
    height: 24px !important;
  }

  #back-to-top {
    bottom: 74px !important;
    right: 18px !important;
    width: 40px !important;
    height: 40px !important;
  }
  #back-to-top svg {
    width: 20px !important;
    height: 20px !important;
  }

  /* Sub-Navigation Smooth Scroll on Mobile */
  .sub-nav-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .sub-nav-scroll::-webkit-scrollbar {
    display: none;
  }
}
