/* ===== BENEFITS RESPONSE - 2025 DESIGN SYSTEM ===== */

/* CSS Variables - 2025 Gradient Color Palette */
:root {
  /* Primary Gradient: Indigo to Cyan */
  --primary-gradient: linear-gradient(135deg, #4F46E5 0%, #06B6D4 100%);
  --primary-color: #4F46E5;
  --primary-dark: #4338CA;
  --teal-color: #06B6D4;
  
  /* Secondary Gradient: Slate */
  --secondary-gradient: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
  --secondary-color: #0F172A;
  --indigo-color: #1E293B;
  
  /* Accent Color */
  --accent-color: #F97316;
  --accent-hover: #EA580C;
  
  /* Background & Text */
  --bg-color: #F8FAFC;
  --text-color: #0F172A;
  --text-light: #475569;
  --white: #FFFFFF;
  
  /* Shadows & Effects */
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.15);
  --shadow-lg: 0 8px 25px rgba(0,0,0,0.2);
  
  /* Typography */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-weight-light: 300;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  
  /* Spacing */
  --section-padding: 5rem 0;
  --border-radius: 12px;
  --border-radius-lg: 20px;

  --bs-primary: var(--primary-color);
  --bs-primary-rgb: 79, 70, 229;
  --bs-secondary: var(--secondary-color);
  --bs-secondary-rgb: 15, 23, 42;
  --bs-body-color: var(--text-color);
  --bs-body-bg: var(--bg-color);
  --bs-link-color: var(--primary-color);
  --bs-link-hover-color: var(--primary-dark);
  --bs-border-radius: var(--border-radius);
  --bs-border-radius-lg: var(--border-radius-lg);
}

/* ===== GLOBAL STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-family);
  color: var(--text-color);
  background-color: var(--bg-color);
  line-height: 1.6;
  font-weight: var(--font-weight-normal);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  scroll-behavior: smooth;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-weight: var(--font-weight-bold);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.display-4 {
  font-weight: var(--font-weight-bold);
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.lead {
  font-size: 1.25rem;
  font-weight: var(--font-weight-normal);
  color: var(--text-light);
}

/* ===== NAVIGATION ===== */
.navbar {
  backdrop-filter: blur(10px);
  background-color: rgba(255, 255, 255, 0.95) !important;
  border-bottom: 1px solid rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: var(--font-weight-bold);
  color: var(--text-color) !important;
}

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

.nav-link {
  font-weight: var(--font-weight-medium);
  color: var(--text-color) !important;
  transition: all 0.3s ease;
  position: relative;
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary-gradient);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

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

.dropdown-menu {
  border: none;
  box-shadow: var(--shadow-lg);
  border-radius: var(--border-radius);
  padding: 1rem 0;
}

.dropdown-item {
  padding: 0.75rem 1.5rem;
  font-weight: var(--font-weight-medium);
  transition: all 0.3s ease;
}

.dropdown-item:hover {
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.10) 0%, rgba(6, 182, 212, 0.10) 100%);
  color: var(--primary-color);
}

/* ===== BUTTONS ===== */
.btn {
  font-weight: var(--font-weight-semibold);
  border-radius: var(--border-radius);
  padding: 0.75rem 2rem;
  transition: all 0.3s ease;
  border: none;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--primary-gradient);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #4338CA 0%, #0891B2 100%);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: var(--white);
}

.btn-outline-primary {
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  background: transparent;
}

.btn-outline-primary:hover {
  background: var(--primary-gradient);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-accent {
  background: var(--accent-color);
  color: var(--white);
}

.btn-accent:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: var(--white);
}

/* ===== HERO SECTION ===== */
.hero-section {
  background: linear-gradient(135deg, rgba(248, 250, 252, 1) 0%, rgba(238, 242, 255, 1) 50%, rgba(240, 253, 250, 1) 100%);
  position: relative;
  overflow: hidden;
}

/* When a hero has an image, layer a subtle gradient over the photo */
.hero-section.has-image {
  background-image: linear-gradient(135deg, rgba(15, 23, 42, 0.70), rgba(79, 70, 229, 0.35)), var(--hero-image, none);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 200%;
  background: radial-gradient(circle, rgba(79, 70, 229, 0.12) 0%, transparent 70%);
  animation: float 6s ease-in-out infinite;
}

.hero-section::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(1200px 500px at 15% 15%, rgba(6, 182, 212, 0.12), transparent 65%),
              radial-gradient(900px 420px at 90% 20%, rgba(79, 70, 229, 0.14), transparent 60%);
  opacity: 0.9;
}

.hero-section > .container {
  position: relative;
  z-index: 1;
}

.hero-section.has-image .display-4,
.hero-section.has-image .section-title {
  background: none;
  -webkit-text-fill-color: currentColor;
}

.hero-content {
  max-width: 42rem;
}

.hero-section.has-image .hero-content {
  background: rgba(15, 23, 42, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  padding: 2.25rem;
  backdrop-filter: blur(12px);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.35);
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.02em;
}

.hero-section.has-image .hero-kicker {
  color: rgba(255, 255, 255, 0.92);
}

.hero-actions {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-visual {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 26px 80px rgba(15, 23, 42, 0.25);
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.12), rgba(6, 182, 212, 0.10));
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-visual > svg,
.hero-visual > img {
  display: block;
}

@media (max-width: 992px) {
  .hero-section.has-image .hero-content {
    padding: 1.75rem;
  }
}

.hero-image img {
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
}

/* ===== ANIMATIONS ===== */
@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(2deg); }
}

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

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.fade-in {
  animation: fadeInUp 0.8s ease-out;
}

.fade-in-delay {
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.fade-in-delay-2 {
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

.fade-in-right {
  animation: fadeInRight 0.8s ease-out 0.3s both;
}

/* ===== CARDS ===== */
.card {
  border: none;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.card-header {
  background: var(--primary-gradient);
  color: var(--white);
  border: none;
  padding: 1.5rem;
}

.card-body {
  padding: 2rem;
}

/* ===== SECTIONS ===== */
.section {
  padding: var(--section-padding);
}

.section-title {
  font-size: 2.5rem;
  font-weight: var(--font-weight-bold);
  text-align: center;
  margin-bottom: 3rem;
  background: var(--secondary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== FORMS ===== */
.form-control {
  border: 2px solid #E9ECEF;
  border-radius: var(--border-radius);
  padding: 0.75rem 1rem;
  font-weight: var(--font-weight-medium);
  transition: all 0.3s ease;
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(79, 70, 229, 0.22);
}

/* ===== BREADCRUMBS ===== */
.breadcrumb-wrapper {
  background: #f8f9fa;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  padding: 0.75rem 0;
}

.breadcrumb {
  margin-bottom: 0;
}

.breadcrumb .breadcrumb-item a {
  color: var(--text-color);
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumb .breadcrumb-item a:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

.breadcrumb-item + .breadcrumb-item::before {
  color: #adb5bd;
}

/* Footer contrast and spacing on dark background */
.footer.bg-dark {
  background: #0f1114 !important;
}

.footer .social-links a {
  background: rgba(255, 255, 255, 0.08);
}

.footer .social-links a:hover {
  background: var(--white);
  color: var(--primary-color) !important;
}

@media (max-width: 576px) {
  .breadcrumb-wrapper { padding: 0.5rem 0; }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
  .display-4 {
    font-size: 2.5rem;
  }
  
  .hero-section {
    padding: 2rem 0;
  }
  
  .section {
    padding: 3rem 0;
  }
  
  .btn {
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 576px) {
  .display-4 {
    font-size: 2rem;
  }
  
  .lead {
    font-size: 1.1rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
}

/* ===== SERVICE CARDS ===== */
.service-card {
  transition: all 0.3s ease;
  border: 1px solid rgba(0,0,0,0.05);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.service-icon {
  transition: all 0.3s ease;
}

.service-card:hover .service-icon {
  transform: scale(1.1);
}

/* ===== TESTIMONIALS ===== */
.testimonial-card {
  background: var(--white);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,0.05);
}

.carousel-control-prev,
.carousel-control-next {
  width: 5%;
  color: var(--primary-color);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: var(--primary-color);
  border-radius: 50%;
  width: 40px;
  height: 40px;
}

/* ===== TRUST STATS ===== */
.trust-stat {
  padding: 1rem;
}

.trust-stat h3 {
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* ===== CERTIFICATIONS ===== */
.certification-badge {
  transition: all 0.3s ease;
  cursor: pointer;
}

.certification-badge:hover {
  transform: scale(1.1);
}

/* ===== NEWSLETTER FORM ===== */
.newsletter-form .form-control {
  border-radius: var(--border-radius);
  border: 2px solid #E9ECEF;
}

.newsletter-form .form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(79, 70, 229, 0.22);
}

/* ===== SOCIAL LINKS ===== */
.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: var(--white);
  color: var(--primary-color) !important;
  transform: translateY(-2px);
}

/* ===== SCROLL TO TOP ===== */
.scroll-to-top {
  transition: all 0.3s ease;
}

.scroll-to-top:hover {
  transform: translateY(-2px);
}

/* ===== NAVBAR SCROLLED STATE ===== */
.navbar.scrolled {
  background-color: rgba(255, 255, 255, 0.98) !important;
  backdrop-filter: blur(15px);
  box-shadow: var(--shadow-md);
}

/* ===== UTILITY CLASSES ===== */
.text-gradient-primary {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.bg-gradient-primary {
  background: var(--primary-gradient);
}

.bg-gradient-secondary {
  background: var(--secondary-gradient);
}

.shadow-custom {
  box-shadow: var(--shadow-lg);
}

.rounded-custom {
  border-radius: var(--border-radius-lg);
}

/* Improve text contrast over hero images */
.hero-section.has-image .display-4,
.hero-section.has-image .lead,
.hero-section.has-image .section-title,
.hero-section.has-image, 
.hero-section.has-image h1,
.hero-section.has-image h2,
.hero-section.has-image p,
.hero-section.has-image .btn-outline-light {
  color: #fff;
}

/* Responsive adjustments for hero sections with images */
@media (max-width: 768px) {
  .hero-section.has-image { min-height: 50vh; }
}

@media (max-width: 576px) {
  .hero-section.has-image { min-height: 45vh; }
}
