/* ==========================================
   RS Financial Solutions - Logo Cohesive Light CSS
   Theme: Bright, Modern, Cohesive Logo Colors
   Colors: Royal Blue & Scarlet Red (from logo)
   ========================================== */

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

:root {
  /* Color Palette - Logo Brand Colors */
  --bg-primary: #f8fafc; /* Premium soft slate-white */
  --bg-secondary: #f1f5f9; /* Slate 100 */
  --bg-tertiary: #e2e8f0; /* Slate 200 */
  --bg-glass: rgba(248, 250, 252, 0.85);
  --bg-glass-hover: rgba(241, 245, 249, 0.95);
  
  --text-primary: #0f172a; /* Slate 900 */
  --text-secondary: #334155; /* Slate 700 */
  --text-muted: #64748b; /* Slate 500 */
  
  /* Brand colors from Logo (R = Blue, S = Red) */
  --color-brand-blue: #1e40af; /* Deep Royal Blue */
  --color-brand-blue-hover: #1d4ed8;
  --color-brand-red: #e11d48; /* Premium Rose Red */
  --color-brand-red-hover: #be123c;
  
  --border-color: rgba(30, 64, 175, 0.08); /* Soft blue tint border */
  --border-color-light: rgba(15, 23, 42, 0.05);
  
  /* Gradient Sets - Logo Cohesive */
  --grad-brand: linear-gradient(135deg, var(--color-brand-blue) 0%, var(--color-brand-red) 100%);
  --grad-brand-hover: linear-gradient(135deg, var(--color-brand-blue-hover) 0%, var(--color-brand-red-hover) 100%);
  --grad-hero: linear-gradient(135deg, #f0f7ff 0%, #ffffff 100%);
  --grad-card: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  --grad-card-alt: linear-gradient(180deg, #f8fafc 0%, #eff6ff 100%);
  
  /* Shadow Sets */
  --shadow-sm: 0 4px 20px rgba(15, 23, 42, 0.02);
  --shadow-md: 0 12px 36px rgba(15, 23, 42, 0.04), 0 4px 12px rgba(15, 23, 42, 0.02);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.06), 0 8px 24px rgba(15, 23, 42, 0.03);
  --shadow-brand-blue: 0 4px 24px rgba(30, 64, 175, 0.15);
  --shadow-brand-red: 0 4px 24px rgba(225, 29, 72, 0.15);
  --shadow-brand-mix: 0 4px 24px rgba(30, 64, 175, 0.12);

  /* Font Families */
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;

  /* Standard Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  
  --border-radius-sm: 8px;
  --border-radius-md: 16px;
  --border-radius-lg: 24px;
}

/* ==========================================
   Page Loader / Splash Screen
   ========================================== */
.page-loader {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, #f0f7ff 0%, #ffffff 100%);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.page-loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-logo {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--text-muted);
  line-height: 1.2;
  text-align: center;
  margin-bottom: 5px;
}

.loader-logo .loader-dot {
  color: var(--color-brand-blue);
  font-weight: 700;
}

.loader-bar {
  width: 180px;
  height: 3px;
  background: rgba(30, 64, 175, 0.1);
  border-radius: 3px;
  position: relative;
  overflow: hidden;
}

.loader-progress {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0;
  background: var(--grad-brand);
  border-radius: 3px;
  animation: loaderFill 3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.loader-tagline {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  background: var(--grad-brand);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.5px;
  line-height: 1.2;
  text-align: center;
  max-width: 650px;
  padding: 0 20px;
  opacity: 0;
  animation: loaderFadeIn 1.2s 0.5s ease forwards;
}

html.loader-active,
body.loader-active {
  overflow: hidden !important;
  height: 100vh;
}

@keyframes loaderFill {
  0% {
    width: 0;
  }
  100% {
    width: 100%;
  }
}

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

/* Preloader Responsive Adjustments */
@media (max-width: 768px) {
  .loader-tagline {
    font-size: 1.5rem;
    max-width: 90%;
  }
  .loader-logo {
    font-size: 0.75rem;
    letter-spacing: 2px;
  }
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 10% 8%, rgba(30, 64, 175, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 90% 35%, rgba(225, 29, 72, 0.11) 0%, transparent 50%),
    radial-gradient(circle at 15% 65%, rgba(168, 85, 247, 0.10) 0%, transparent 50%),
    radial-gradient(circle at 80% 88%, rgba(234, 179, 8, 0.09) 0%, transparent 45%);
  pointer-events: none;
  z-index: -2;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

p {
  color: var(--text-secondary);
}

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

ul {
  list-style-type: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

input, select, textarea, button {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
}

button {
  cursor: pointer;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border: 2px solid var(--bg-secondary);
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-brand-blue);
}

/* Utility Classes */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.text-gradient-brand {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-padding {
  padding: 100px 0;
}

/* Alternating Section Backgrounds (Vibrant Gradient Tints) */
section.section-padding:nth-of-type(even) {
  background-color: #ffffff;
}

#services.section-padding {
  background: linear-gradient(180deg, #f8fafc 0%, #eff6ff 100%); /* very light blue gradient */
}

#partners.section-padding {
  background: linear-gradient(180deg, #f8fafc 0%, #faf5ff 100%); /* very light violet gradient */
}

#why-choose-us.section-padding {
  background: linear-gradient(180deg, #f8fafc 0%, #f0fdf4 100%); /* very light green gradient */
}

#careers.section-padding {
  background: linear-gradient(180deg, #f8fafc 0%, #fefbeb 100%); /* very light gold/amber gradient */
}

#contact.section-padding {
  background: linear-gradient(180deg, #ffffff 0%, #fff1f2 100%); /* very light rose gradient */
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-subtitle {
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--color-brand-blue);
  margin-bottom: 14px;
  display: block;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-header h2 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 18px;
  position: relative;
  display: inline-block;
  letter-spacing: -0.025em;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  padding-bottom: 6px;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--grad-brand);
  border-radius: 2px;
}

.section-header p {
  font-size: 1.15rem;
  max-width: 650px;
  margin: 12px auto 0 auto;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Button Component */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: var(--border-radius-sm);
  font-weight: 700;
  font-family: var(--font-body);
  letter-spacing: 0.5px;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

/* Diagonal Glare Shimmer Effect */
.btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -60%;
  width: 30%;
  height: 100%;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: skewX(-30deg);
  z-index: 2;
  pointer-events: none;
}

.btn:hover::after {
  left: 130%;
  transition: left 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary {
  background: var(--grad-brand);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(30, 64, 175, 0.22);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--grad-brand-hover);
  opacity: 0;
  transition: opacity var(--transition-normal);
  z-index: -1;
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 10px 25px rgba(225, 29, 72, 0.35), 0 4px 10px rgba(30, 64, 175, 0.15);
  color: #ffffff;
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-secondary {
  border: 1.5px solid rgba(30, 64, 175, 0.35);
  color: var(--color-brand-blue);
  background: rgba(30, 64, 175, 0.02);
  padding: 12.5px 30.5px; /* adjust padding slightly to balance border-width */
}

.btn-secondary:hover {
  background: rgba(30, 64, 175, 0.07);
  border-color: var(--color-brand-blue);
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 20px rgba(30, 64, 175, 0.1);
}

/* Header & Navigation */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  transition: var(--transition-normal);
  background-color: rgba(15, 23, 42, 0.95); /* Midnight Slate */
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

.header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--grad-brand);
}

.header.scrolled {
  padding: 6px 0;
  background-color: rgba(15, 23, 42, 0.98);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.3);
}

.header:not(.scrolled) {
  padding: 12px 0;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Logo Design */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon-svg {
  display: block;
  flex-shrink: 0;
  transition: transform var(--transition-normal);
}

.logo:hover .logo-icon-svg {
  transform: scale(1.05) rotate(3deg);
}

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

.logo-title {
  font-size: 1.2rem;
  font-weight: 800;
  font-family: var(--font-heading);
  color: #ffffff; /* White logo text for dark header */
  line-height: 1.1;
  letter-spacing: 0.5px;
}

.logo-tagline {
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #ffffff; /* White tagline */
  white-space: nowrap;
  margin-top: 1px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  position: relative;
  padding: 5px 0;
  color: #cbd5e1; /* Light slate links by default */
  transition: color var(--transition-fast);
  white-space: nowrap;
}

.nav-link:hover, .nav-link.active {
  color: #ffffff; /* White active link */
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-brand-red); /* Red underline accent */
  transition: var(--transition-normal);
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: transparent;
  cursor: pointer;
  z-index: 110;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: #ffffff;
  border-radius: 2px;
  transition: all var(--transition-normal);
}

.hero {
  position: relative;
  min-height: 650px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: 68px; /* Offset the fixed header ribbon height */
  padding-top: 60px;
  padding-bottom: 50px;
}

.hero-bg-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 58%; /* Balanced position to capture both heads and faces without cropping */
  animation: kenBurns 25s infinite alternate ease-in-out;
}

@keyframes kenBurns {
  0% { transform: scale(1); }
  100% { transform: scale(1.12); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(15, 23, 42, 0.72) 0%, rgba(15, 23, 42, 0.90) 100%);
  z-index: 1;
}

.hero-content-wrapper {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  text-align: center;
  padding: 40px 24px;
}

.hero-content-center {
  max-width: 800px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.badge-award {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  padding: 8px 18px;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 700;
  font-family: var(--font-body);
  margin-bottom: 16px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  max-width: max-content;
  backdrop-filter: blur(8px);
}

.badge-star {
  color: #eab308;
  flex-shrink: 0;
}

.hero-content-center h1 {
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 14px;
  color: #ffffff;
  letter-spacing: -0.02em;
  font-family: var(--font-heading);
}

.hero-content-center p {
  font-size: 1.05rem;
  margin-bottom: 24px;
  line-height: 1.6;
  max-width: 650px;
  color: #cbd5e1;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
}

.hero-stats-row {
  display: none; /* Hidden to keep the 260px height banner clean */
}

.stat-box {
  text-align: center;
}

.stat-box h3 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 6px;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

.stat-box p {
  font-size: 0.85rem;
  color: #cbd5e1;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

@media (max-width: 768px) {
  .hero {
    min-height: 400px; /* Slightly taller on mobile to accommodate stacked buttons */
  }
  .hero-content-center {
    width: 100%;
  }
  .hero-content-center h1 {
    font-size: 1.8rem;
    line-height: 1.25;
    margin-bottom: 12px;
  }
  .hero-content-center p {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 20px;
    padding: 0 10px;
  }
  .hero-buttons {
    flex-direction: column;
    width: 100%;
    max-width: 280px;
    gap: 10px;
    margin: 0 auto;
  }
  .hero-buttons .btn {
    width: 100%;
    text-align: center;
    padding: 12px 20px;
  }
  .hero-stats-row {
    gap: 30px;
    flex-wrap: wrap;
  }
  .stat-box h3 {
    font-size: 2rem;
  }
}

/* Hero Widget Container */
.hero-widget-container {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
}

.widget-glow-bg {
  position: absolute;
  top: 10%;
  left: 10%;
  width: 80%;
  height: 80%;
  background: var(--grad-brand);
  filter: blur(80px);
  opacity: 0.15;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

/* Widget Card */
.widget-card {
  width: 100%;
  max-width: 440px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--border-radius-lg);
  box-shadow: 0 30px 60px rgba(15, 23, 42, 0.1), 0 0 0 1px rgba(30, 64, 175, 0.05);
  overflow: hidden;
  z-index: 1;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.widget-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 40px 80px rgba(15, 23, 42, 0.15), 0 0 0 1px rgba(30, 64, 175, 0.08);
}

/* Header */
.widget-header {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(15, 23, 42, 0.03);
  padding: 12px 24px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.05);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: #22c55e;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 10px #22c55e;
  animation: pulseGreen 1.8s infinite ease-in-out;
}

@keyframes pulseGreen {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.widget-header-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-secondary);
  letter-spacing: 1.5px;
}

/* Body */
.widget-body {
  padding: 30px;
}

.widget-step h3 {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.widget-intro {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

/* Selector Buttons */
.widget-type-selector {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 24px;
}

.widget-type-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px 10px;
  border: 1px solid #cbd5e1;
  border-radius: var(--border-radius-sm);
  background: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.widget-type-btn svg {
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.widget-type-btn:hover {
  border-color: var(--color-brand-blue);
  background: rgba(30, 64, 175, 0.02);
}

.widget-type-btn.active {
  border-color: var(--color-brand-blue);
  background: rgba(30, 64, 175, 0.05);
  color: var(--color-brand-blue);
}

.widget-type-btn.active svg {
  color: var(--color-brand-blue);
}

/* Slider */
.widget-slider-group {
  margin-bottom: 28px;
}

.widget-slider-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.widget-slider-header label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
}

.widget-slider-val {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--color-brand-blue);
}

.widget-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: #cbd5e1;
  outline: none;
  margin-bottom: 8px;
}

.widget-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--grad-brand);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(30, 64, 175, 0.25);
  transition: transform var(--transition-fast);
}

.widget-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.widget-slider-limits {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* Submit Button */
.widget-submit-btn {
  width: 100%;
  padding: 14px 20px;
  border-radius: var(--border-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(30, 64, 175, 0.15);
}

/* Step 2: Loader */
.widget-matching-loader {
  text-align: center;
  padding: 20px 0;
}

.matching-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid rgba(30, 64, 175, 0.1);
  border-left-color: var(--color-brand-blue);
  border-radius: 50%;
  margin: 0 auto 24px;
  animation: spin 1s infinite linear;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.widget-matching-loader h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.widget-matching-loader p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.matching-banks-progress {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.matching-bank-badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 9999px;
  background: #f1f5f9;
  color: var(--text-secondary);
  border: 1px solid #e2e8f0;
  animation: badgePulse 1.2s infinite ease-in-out;
}

.matching-bank-badge:nth-child(2) { animation-delay: 0.3s; }
.matching-bank-badge:nth-child(3) { animation-delay: 0.6s; }
.matching-bank-badge:nth-child(4) { animation-delay: 0.9s; }

@keyframes badgePulse {
  0%, 100% { background: #f1f5f9; border-color: #e2e8f0; }
  50% { background: rgba(30, 64, 175, 0.08); border-color: rgba(30, 64, 175, 0.2); color: var(--color-brand-blue); }
}

/* Step 3: Success Match */
.widget-success-header {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #16a34a;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.success-icon {
  background: rgba(22, 163, 74, 0.1);
  padding: 3px;
  border-radius: 50%;
}

.widget-rate-box {
  background: var(--grad-card-alt);
  border: 1px solid rgba(30, 64, 175, 0.12);
  border-radius: var(--border-radius-md);
  padding: 20px;
  margin-bottom: 20px;
  text-align: center;
}

.rate-desc {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  display: block;
  margin-bottom: 4px;
}

.rate-data h2 {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--color-brand-blue);
  line-height: 1.1;
}

.rate-per {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.rate-logo-list {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 10px;
  border-top: 1px solid rgba(30, 64, 175, 0.05);
  padding-top: 10px;
}

/* Advisor Profile */
.widget-advisor-box {
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: var(--border-radius-md);
  padding: 12px 16px;
  margin-bottom: 24px;
  position: relative;
}

.advisor-photo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--grad-brand);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.88rem;
  letter-spacing: 0.5px;
  margin-right: 12px;
}

.advisor-desc h4 {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-primary);
}

.advisor-desc p {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
}

.widget-advisor-box .online-indicator {
  position: absolute;
  right: 16px;
  font-size: 0.68rem;
  font-weight: 700;
  color: #16a34a;
  background: rgba(22, 163, 74, 0.08);
  padding: 2px 8px;
  border-radius: 9999px;
  text-transform: uppercase;
}

.widget-whatsapp-btn {
  width: 100%;
  padding: 14px 20px;
  border-radius: var(--border-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  gap: 4px;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.25);
  background: #25d366;
}

.widget-whatsapp-btn:hover {
  background: #20ba59;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
}

/* Services Tabs Switcher (Headings as Tabs) */
.services-tabs-wrapper {
  display: flex;
  justify-content: center;
  border-bottom: 2px solid var(--border-color); /* full-width bottom border line */
  margin-bottom: 50px;
  position: relative;
  z-index: 5;
}

.services-tabs-container {
  display: flex;
  gap: 160px; /* very wide spacing between them */
  margin-bottom: -2px; /* overlap to block bottom border */
  padding-bottom: 15px;
}

.services-tab-btn {
  font-size: 2rem;
  font-family: var(--font-heading);
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  background: none;
  border: none;
  padding: 0 5px;
  color: var(--text-muted);
  transition: all var(--transition-normal);
  cursor: pointer;
  white-space: nowrap;
  position: relative;
}

.services-tab-btn:hover {
  transform: translateY(-2px) scale(1.03);
  color: var(--color-brand-blue);
}

.services-tab-btn.active {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transform: scale(1.05);
}

.services-tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -17px;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--grad-brand);
  border-radius: 4px;
}

@media (max-width: 768px) {
  .services-tabs-container {
    gap: 20px;
    width: 100%;
    justify-content: center;
  }
  .services-tab-btn {
    font-size: 1.1rem;
  }
  .services-tab-btn.active::after {
    bottom: -17px;
    height: 3px;
  }
}

@media (max-width: 480px) {
  .services-tabs-container {
    gap: 12px;
    padding-bottom: 12px;
  }
  .services-tab-btn {
    font-size: 0.85rem;
    letter-spacing: 0.2px;
  }
  .services-tab-btn.active::after {
    bottom: -14px;
    height: 3px;
  }
}

/* Services Grid */
.service-category {
  margin-bottom: 60px;
  transition: opacity var(--transition-normal), transform var(--transition-normal);
}

.service-category:last-child {
  margin-bottom: 0;
}

.service-category-title {
  display: none;
  font-size: 2rem;
  color: var(--color-brand-blue);
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--border-color);
  font-weight: 700;
  letter-spacing: -0.5px;
}

.products-grid {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

#insurance .products-grid {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.product-card {
  display: flex;
  flex-direction: row;
  padding: 0;
  background: #ffffff;
  border: 1px solid rgba(30, 64, 175, 0.06);
  border-radius: var(--border-radius-md);
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.02), inset 0 1px 1px rgba(255, 255, 255, 0.8);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.product-image {
  width: 380px;
  height: auto;
  min-height: 100%;
  flex-shrink: 0;
  margin: 0;
  border-right: 1px solid rgba(15, 23, 42, 0.04);
  border-bottom: none;
  position: relative;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-slow);
}

.product-card:hover .product-image img {
  transform: scale(1.06);
}

/* Alternating flex-row-reverse layout for odd/even variety on desktop */
@media (min-width: 769px) {
  .product-card:nth-child(even) {
    flex-direction: row-reverse;
  }
  .product-card:nth-child(even) .product-image {
    border-right: none;
    border-left: 1px solid rgba(15, 23, 42, 0.04);
  }
}

.product-card-body {
  padding: 40px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3.5px;
  background: var(--grad-brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-normal);
}

.product-card:hover {
  transform: translateY(-6px) scale(1.015);
}

/* Card Custom Hover Backgrounds (Soft glowing colors matching icon types) */
.product-card:hover:has(.icon-blue) {
  background: linear-gradient(180deg, #ffffff 0%, #eff6ff 100%);
  border-color: rgba(30, 64, 175, 0.22);
  box-shadow: 0 20px 45px rgba(30, 64, 175, 0.09), 0 4px 12px rgba(30, 64, 175, 0.03);
}

.product-card:hover:has(.icon-gold) {
  background: linear-gradient(180deg, #ffffff 0%, #fefbeb 100%);
  border-color: rgba(194, 120, 3, 0.22);
  box-shadow: 0 20px 45px rgba(194, 120, 3, 0.09), 0 4px 12px rgba(194, 120, 3, 0.03);
}

.product-card:hover:has(.icon-teal) {
  background: linear-gradient(180deg, #ffffff 0%, #f0fdfa 100%);
  border-color: rgba(13, 148, 136, 0.22);
  box-shadow: 0 20px 45px rgba(13, 148, 136, 0.09), 0 4px 12px rgba(13, 148, 136, 0.03);
}

.product-card:hover:has(.icon-red) {
  background: linear-gradient(180deg, #ffffff 0%, #fff1f2 100%);
  border-color: rgba(225, 29, 72, 0.22);
  box-shadow: 0 20px 45px rgba(225, 29, 72, 0.09), 0 4px 12px rgba(225, 29, 72, 0.03);
}

.product-card:hover:has(.icon-green) {
  background: linear-gradient(180deg, #ffffff 0%, #f0fdf4 100%);
  border-color: rgba(5, 150, 105, 0.22);
  box-shadow: 0 20px 45px rgba(5, 150, 105, 0.09), 0 4px 12px rgba(5, 150, 105, 0.03);
}

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

.product-icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 24px;
  transition: all var(--transition-normal);
}

/* Accent Brand-Cohesive Icons (Glowing gradients) */
.icon-blue {
  background: linear-gradient(135deg, rgba(30, 64, 175, 0.08) 0%, rgba(59, 130, 246, 0.12) 100%);
  color: var(--color-brand-blue);
}
.icon-red {
  background: linear-gradient(135deg, rgba(225, 29, 72, 0.08) 0%, rgba(244, 63, 94, 0.12) 100%);
  color: var(--color-brand-red);
}
.icon-gold {
  background: linear-gradient(135deg, rgba(194, 120, 3, 0.08) 0%, rgba(234, 179, 8, 0.12) 100%);
  color: #d97706;
}
.icon-green {
  background: linear-gradient(135deg, rgba(5, 150, 105, 0.08) 0%, rgba(16, 185, 129, 0.12) 100%);
  color: #059669;
}
.icon-teal {
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.08) 0%, rgba(20, 184, 166, 0.12) 100%);
  color: #0d9488;
}

.product-card:hover .product-icon.icon-blue { background: var(--color-brand-blue); color: #fff; box-shadow: var(--shadow-brand-blue); }
.product-card:hover .product-icon.icon-red { background: var(--color-brand-red); color: #fff; box-shadow: var(--shadow-brand-red); }
.product-card:hover .product-icon.icon-gold { background: #d97706; color: #fff; box-shadow: 0 4px 20px rgba(217, 119, 6, 0.25); }
.product-card:hover .product-icon.icon-green { background: #059669; color: #fff; box-shadow: 0 4px 20px rgba(5, 150, 105, 0.25); }
.product-card:hover .product-icon.icon-teal { background: #0d9488; color: #fff; box-shadow: 0 4px 20px rgba(13, 148, 136, 0.25); }

.product-card h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.product-card p {
  font-size: 0.95rem;
  margin-bottom: 24px;
  color: var(--text-secondary);
}

.product-features {
  margin-bottom: 30px;
}

.product-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.product-features li svg {
  color: var(--color-brand-blue);
  flex-shrink: 0;
}

.product-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--color-brand-blue);
}

.product-link svg {
  transition: transform var(--transition-fast);
}

.product-card:hover .product-link svg {
  transform: translateX(4px);
}

/* Calculator Section */
.calculator-container {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color-light);
  border-radius: var(--border-radius-lg);
  padding: 50px;
  box-shadow: var(--shadow-md);
}

.calc-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 50px;
}

.calc-sliders {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.slider-group {
  display: flex;
  flex-direction: column;
}

.slider-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.slider-header label {
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-primary);
}

.slider-value-box {
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: var(--border-radius-sm);
  padding: 6px 12px;
  font-weight: 700;
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}

.slider-value-box span {
  margin-right: 4px;
  color: var(--text-muted);
}

.slider-value-box input {
  width: 80px;
  text-align: right;
  font-weight: 700;
  outline: none;
}

#input-amount {
  width: 165px;
}

.range-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: #e2e8f0;
  outline: none;
}

.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--grad-brand);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(30, 64, 175, 0.35);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.range-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 0 14px rgba(225, 29, 72, 0.6);
}

.range-slider::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--grad-brand);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(30, 64, 175, 0.35);
  border: none;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.range-slider::-moz-range-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 0 14px rgba(225, 29, 72, 0.6);
}

.slider-limits {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 8px;
}

/* Calc Results Panel (Matching Logo Blue/Red) */
.calc-results {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(30, 64, 175, 0.12);
  border-radius: var(--border-radius-md);
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  box-shadow: var(--shadow-sm), inset 0 1px 1px rgba(255, 255, 255, 0.9);
  transition: all var(--transition-normal);
}

.calc-results:hover {
  border-color: rgba(30, 64, 175, 0.25);
  box-shadow: var(--shadow-md), 0 0 20px rgba(30, 64, 175, 0.08);
}

.calc-results::before {
  content: '';
  position: absolute;
  top: -1px;
  right: 40px;
  width: 100px;
  height: 3px;
  background: var(--grad-brand);
  border-radius: 0 0 3px 3px;
}

.result-item {
  margin-bottom: 24px;
}

.result-item:last-of-type {
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 24px;
  margin-bottom: 24px;
}

.result-item label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.result-item .value {
  font-size: 2.2rem;
  font-weight: 700;
  font-family: var(--font-heading);
  color: var(--text-primary);
}

.result-item.emi .value {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 3rem;
  font-weight: 800;
  display: inline-block;
}

.calc-chart-container {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 10px;
}

.calc-chart-visual {
  width: 80px;
  height: 80px;
  position: relative;
}

.calc-chart-legend {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.legend-color {
  width: 12px;
  height: 12px;
  border-radius: 3px;
}

/* Donut chart matching blue (principal) and red (interest) logo colors */
.donut-ring {
  stroke: var(--color-brand-blue);
}

.donut-segment {
  stroke: var(--color-brand-red);
}

.legend-color.principal {
  background: var(--color-brand-blue);
}

.legend-color.interest {
  background: var(--color-brand-red);
}

/* Associated Partner Banks Section */
.partners-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.partner-card {
  background: #ffffff;
  border: 1px solid rgba(30, 64, 175, 0.06);
  border-radius: var(--border-radius-md);
  padding: 24px;
  width: 100%;
  flex: 1 1 180px;
  max-width: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 90px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.02);
  transition: all var(--transition-normal);
}

.partner-logo-img {
  max-height: 40px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  opacity: 0.9;
  transition: opacity var(--transition-normal), transform var(--transition-normal);
}

.partner-card:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: rgba(30, 64, 175, 0.15);
  box-shadow: var(--shadow-md);
}

.partner-card:hover .partner-logo-img {
  opacity: 1;
  transform: scale(1.04);
}

/* Alternate colors of our logo for bank partners */
.partner-card:nth-child(odd) {
  border-top: 3.5px solid var(--color-brand-blue);
}
.partner-card:nth-child(even) {
  border-top: 3.5px solid var(--color-brand-red);
}

.partner-card:nth-child(odd):hover {
  border-color: rgba(30, 64, 175, 0.25);
  box-shadow: 0 12px 30px rgba(30, 64, 175, 0.08);
}
.partner-card:nth-child(even):hover {
  border-color: rgba(225, 29, 72, 0.25);
  box-shadow: 0 12px 30px rgba(225, 29, 72, 0.08);
}


/* Branches Section styling */
.branches-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.branch-card {
  background: #ffffff;
  border: 1px solid rgba(30, 64, 175, 0.06);
  border-radius: var(--border-radius-md);
  padding: 30px;
  position: relative;
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.02);
  transition: all var(--transition-normal);
}

.branch-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  font-family: var(--font-heading);
  padding: 3px 8px;
  border-radius: 4px;
  background: #f1f5f9;
  color: var(--text-secondary);
  border: 1px solid rgba(30, 64, 175, 0.08);
}

/* HO branch gets highlighting and banner style */
.branch-card.ho {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 32px;
  padding: 40px;
  background: var(--grad-brand);
  color: #ffffff;
  border: none;
  box-shadow: var(--shadow-lg);
  border-radius: var(--border-radius-lg);
  text-align: left;
}

#branch-hyderabad.ho {
  background: linear-gradient(135deg, var(--color-brand-red) 0%, var(--color-brand-blue) 100%); /* Reversed brand gradient (Red to Blue) */
}

#branch-hyderabad.ho:hover {
  box-shadow: 0 20px 40px rgba(225, 29, 72, 0.22);
}

.branch-card.ho .ho-image {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.4);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: #ffffff;
  transition: border-color var(--transition-normal);
}

.branch-card.ho .ho-image-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.branch-card.ho:hover .ho-image-img {
  transform: scale(1.1);
}

.branch-card.ho .ho-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.branch-card.ho .branch-badge {
  position: relative;
  top: auto;
  right: auto;
  margin-bottom: 12px;
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 6px 16px;
  font-size: 0.8rem;
}

.branch-card.ho h3 {
  font-size: 2.2rem;
  color: #ffffff;
  margin-bottom: 8px;
}

.branch-card.ho .branch-address {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
}

.branch-card h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.branch-address {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

.branch-card:hover {
  transform: translateY(-5px) scale(1.015);
  border-color: rgba(30, 64, 175, 0.15);
  box-shadow: var(--shadow-md);
}

.branch-card.ho:hover {
  transform: translateY(-5px) scale(1.01);
  box-shadow: 0 20px 40px rgba(30, 64, 175, 0.20);
  border-color: transparent;
}

/* Alternate colors of our logo for standard branch offices below */
.branch-card:not(.ho):nth-child(odd) {
  border-top: 3.5px solid var(--color-brand-blue);
}
.branch-card:not(.ho):nth-child(even) {
  border-top: 3.5px solid var(--color-brand-red);
}

.branch-card:not(.ho):nth-child(odd) .branch-badge {
  background: rgba(30, 64, 175, 0.06);
  color: var(--color-brand-blue);
  border-color: rgba(30, 64, 175, 0.15);
}
.branch-card:not(.ho):nth-child(even) .branch-badge {
  background: rgba(225, 29, 72, 0.06);
  color: var(--color-brand-red);
  border-color: rgba(225, 29, 72, 0.15);
}

.branch-card:not(.ho):nth-child(odd):hover {
  border-color: rgba(30, 64, 175, 0.25);
  box-shadow: 0 15px 35px rgba(30, 64, 175, 0.08);
}
.branch-card:not(.ho):nth-child(even):hover {
  border-color: rgba(225, 29, 72, 0.25);
  box-shadow: 0 15px 35px rgba(225, 29, 72, 0.08);
}

/* Why Choose Us styling */
.why-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.why-card {
  flex: 1 1 300px;
  max-width: 360px;
  background: #ffffff;
  border: 1px solid rgba(30, 64, 175, 0.06);
  border-radius: var(--border-radius-md);
  padding: 32px;
  text-align: center;
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.02);
  transition: all var(--transition-normal);
}

.why-card:hover {
  transform: translateY(-5px) scale(1.015);
  border-color: rgba(30, 64, 175, 0.15);
  box-shadow: var(--shadow-md);
}

.why-icon {
  width: 50px;
  height: 50px;
  background: rgba(30, 64, 175, 0.06);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-brand-blue);
  font-size: 1.3rem;
  margin: 0 auto 20px;
  transition: transform var(--transition-normal), background var(--transition-normal), color var(--transition-normal);
}

.why-card:hover .why-icon {
  transform: scale(1.1);
  background: var(--color-brand-blue);
  color: #ffffff;
}

.why-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.why-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* Timeline/How it Works */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 0;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  background: #cbd5e1;
}

.timeline-item {
  position: relative;
  margin-bottom: 60px;
  width: 50%;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-item:nth-child(odd) {
  left: 0;
  padding-right: 40px;
  text-align: right;
}

.timeline-item:nth-child(even) {
  left: 50%;
  padding-left: 40px;
}

.timeline-dot {
  position: absolute;
  top: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ffffff;
  border: 4px solid var(--color-brand-blue);
  z-index: 5;
  box-shadow: 0 0 8px rgba(29, 78, 216, 0.2);
  transition: background var(--transition-fast);
}

.timeline-item:nth-child(odd) .timeline-dot {
  right: -9px;
}

.timeline-item:nth-child(even) .timeline-dot {
  left: -9px;
}

.timeline-item:hover .timeline-dot {
  background: var(--color-brand-red);
  border-color: var(--color-brand-red);
}

.timeline-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  color: #cbd5e1;
  line-height: 1;
  margin-bottom: 8px;
  transition: color var(--transition-normal);
}

.timeline-item:hover .timeline-number {
  color: rgba(29, 78, 216, 0.15);
}

.timeline-content h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.timeline-content p {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

/* Contact & Lead Capture Section */
.contact-container {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 60px;
  background: var(--bg-secondary);
  border: 1px solid #cbd5e1;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.contact-info {
  background: #ffffff;
  padding: 50px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid #cbd5e1;
}

.contact-info-header h3 {
  font-size: 1.8rem;
  margin-bottom: 4px;
  display: inline-block;
}

.contact-tagline {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-brand-blue);
  margin-top: 6px;
  line-height: 1.4;
}

.proprietor-tag {
  font-size: 0.85rem;
  color: var(--color-brand-red);
  font-weight: 600;
  margin-bottom: 12px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin: 32px 0;
}

.contact-detail-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-detail-icon {
  width: 40px;
  height: 40px;
  background: rgba(29, 78, 216, 0.08);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-brand-blue);
  flex-shrink: 0;
}

.contact-detail-text h4 {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.contact-detail-text p {
  color: var(--text-primary);
  font-size: 0.95rem;
  line-height: 1.5;
}

.phone-link {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-primary);
  letter-spacing: 0.5px;
}

.email-link {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 600;
  transition: color var(--transition-fast);
}

.email-link:hover {
  color: var(--color-brand-blue);
}

.contact-socials {
  display: flex;
  gap: 16px;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 10px; /* Rounded square */
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff !important;
  transition: all var(--transition-normal);
  text-decoration: none;
}

.social-link:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.12);
  color: #ffffff !important;
}

.contact-form-wrapper {
  padding: 50px;
  background: #ffffff;
}

.contact-form-wrapper h3 {
  font-size: 1.8rem;
  color: var(--text-primary);
  margin-bottom: 24px;
}

.lead-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group.full-width {
  grid-column: span 2;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.form-input {
  background: var(--bg-secondary);
  border: 1px solid #cbd5e1;
  border-radius: var(--border-radius-sm);
  padding: 12px 16px;
  color: var(--text-primary);
  font-weight: 500;
  transition: border-color var(--transition-fast);
  outline: none;
}

.form-input::placeholder {
  color: #94a3b8;
}

.form-input:focus {
  border-color: var(--color-brand-blue);
  background: #ffffff;
}

input[type="file"].form-input {
  padding: 8px 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
}

input[type="file"].form-input::-webkit-file-upload-button {
  background: var(--grad-brand);
  border: none;
  color: white;
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 700;
  font-family: var(--font-body);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-right: 12px;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

input[type="file"].form-input::-webkit-file-upload-button:hover {
  opacity: 0.9;
  transform: scale(1.02);
}

select.form-input option {
  background: #ffffff;
  color: var(--text-primary);
}

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

.form-submit-btn {
  grid-column: span 2;
  margin-top: 12px;
}

.form-success-message {
  display: none;
  grid-column: span 2;
  text-align: center;
  padding: 30px;
  background: rgba(220, 38, 38, 0.04);
  border: 1px solid rgba(220, 38, 38, 0.15);
  border-radius: var(--border-radius-md);
  margin-top: 10px;
}

.form-success-message svg {
  color: var(--color-brand-red);
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
}

.form-success-message h4 {
  font-size: 1.25rem;
  margin-bottom: 8px;
  color: var(--color-brand-red);
}

/* Footer Section */
.footer {
  background: #0f172a;
  color: #f1f5f9;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 80px 0 30px;
}

.footer h1, .footer h2, .footer h3, .footer h4, .footer h5, .footer .logo-title {
  color: #ffffff;
}

.footer p, .footer .footer-link {
  color: #94a3b8;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-brand p {
  margin-top: 16px;
  font-size: 0.95rem;
  max-width: 280px;
}

.footer-nav-col h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 24px;
  position: relative;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-link {
  font-size: 0.9rem;
}

.footer-link:hover {
  color: #ffffff;
  transform: translateX(4px);
}

.footer-newsletter h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.footer-newsletter p {
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.newsletter-form {
  display: flex;
  gap: 8px;
}

.newsletter-input {
  flex-grow: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius-sm);
  padding: 10px 14px;
  font-size: 0.9rem;
  color: #ffffff;
  outline: none;
}

.newsletter-input::placeholder {
  color: #475569;
}

.newsletter-input:focus {
  border-color: var(--color-brand-blue);
}

.newsletter-btn {
  padding: 10px 18px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 30px;
  display: flex;
  justify-content: center;
  text-align: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-bottom p {
  font-size: 0.85rem;
  color: #64748b;
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
}

.footer-bottom-link {
  font-size: 0.85rem;
  color: #64748b;
}

.footer-bottom-link:hover {
  color: #94a3b8;
}

.footer-disclaimer {
  grid-column: span 3;
  font-size: 0.75rem;
  color: #475569;
  line-height: 1.5;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 24px;
  margin-top: 20px;
}

/* ==========================================
   Alternating Card Styles
   ========================================== */
.product-card:nth-child(even),
.branch-card:nth-child(even):not(.ho),
.why-card:nth-child(even),
.step-card:nth-child(even) {
  background: var(--grad-card-alt);
  border-color: rgba(29, 78, 216, 0.15);
}

/* ==========================================
   Responsive Adjustments (Media Queries)
   ========================================== */

@media (max-width: 1024px) {
  .hero-content h1 {
    font-size: 3rem;
  }
  .calc-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .contact-container {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .contact-info {
    border-right: none;
    border-bottom: 1px solid #cbd5e1;
    gap: 30px;
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-disclaimer {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .section-padding {
    padding: 70px 0;
  }
  .section-header h2 {
    font-size: 2rem;
  }
  .menu-toggle {
    display: flex;
  }
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background-color: #ffffff;
    border-left: 1px solid #cbd5e1;
    flex-direction: column;
    align-items: flex-start;
    padding: 100px 40px;
    gap: 24px;
    transition: right var(--transition-normal);
    z-index: 105;
  }
  .nav-links.active {
    right: 0;
  }
  .nav-actions {
    display: none;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-cards-container {
    order: -1;
  }
  .timeline::before {
    left: 20px;
  }
  .timeline-item {
    width: 100%;
    padding-left: 40px !important;
    padding-right: 0 !important;
    text-align: left !important;
  }
  .timeline-dot {
    left: 11px !important;
  }
  .timeline-item:nth-child(even) {
    left: 0;
  }
  .lead-form {
    grid-template-columns: 1fr;
  }
  .form-group.full-width {
    grid-column: span 1;
  }
  .form-submit-btn {
    grid-column: span 1;
  }
}

@media (max-width: 480px) {
  .header:not(.scrolled) {
    padding: 6px 0;
  }
  .header.scrolled {
    padding: 4px 0;
  }
  .logo img {
    max-height: 32px !important;
  }
  .logo-title {
    font-size: 1.05rem;
  }
  .logo-tagline {
    font-size: 0.52rem;
    letter-spacing: 1px;
  }
  .hero-content h1 {
    font-size: 2.3rem;
  }
  .hero-buttons {
    flex-direction: column;
  }
  .hero-stats {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-disclaimer {
    grid-column: span 1;
  }
  .calculator-container {
    padding: 24px;
  }
  .calc-results {
    padding: 24px;
  }
  .contact-info, .contact-form-wrapper {
    padding: 30px;
  }
}

/* Floating Social Container & Buttons */
.floating-social-container {
  position: fixed;
  bottom: 100px; /* Moved up as requested */
  right: 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 999;
}

.floating-social-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  text-decoration: none;
}

.floating-social-btn:hover {
  transform: translateY(-5px) scale(1.08);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

.floating-social-btn.whatsapp {
  background: #25d366;
}
.floating-social-btn.facebook {
  background: #1877f2;
}
.floating-social-btn.instagram {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}
.floating-social-btn.youtube {
  background: #ff0000;
}

/* Footer Socials Layout */
.footer-socials {
  display: flex;
  gap: 16px;
  margin-top: 20px;
}

/* Original Brand Logo Colors by Default for inline/footer links */
.social-link.whatsapp {
  background: #25d366 !important;
}
.social-link.facebook {
  background: #1877f2 !important;
}
.social-link.instagram {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%) !important;
}
.social-link.youtube {
  background: #ff0000 !important;
}

/* Hover shadow effects for inline/footer links */
.social-link.whatsapp:hover {
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.35);
}
.social-link.facebook:hover {
  box-shadow: 0 8px 20px rgba(24, 119, 242, 0.35);
}
.social-link.instagram:hover {
  box-shadow: 0 8px 20px rgba(220, 39, 67, 0.35);
}
.social-link.youtube:hover {
  box-shadow: 0 8px 20px rgba(255, 0, 0, 0.35);
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
  .floating-social-container {
    bottom: 80px; /* Moved up on mobile as well */
    right: 20px;
    gap: 10px;
  }
  .floating-social-btn {
    width: 44px;
    height: 44px;
  }
  .product-card {
    flex-direction: column;
  }
  .product-image {
    width: 100%;
    height: 220px;
    border-right: none;
    border-bottom: 1px solid rgba(15, 23, 42, 0.04);
  }
  .product-card-body {
    padding: 30px;
  }
}

/* Services Summary Grid */
.services-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  margin-bottom: 50px;
}

@media (max-width: 992px) {
  .services-summary-grid {
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .services-summary-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

