/* Insure Solutions - Main Stylesheet */
/* Professional Insurance Website - 2025 Design Standards */

/* CSS Variables for consistent theming */
:root {
  --primary-navy: #0b2a3f;
  --primary-blue: #16a394;
  --secondary-gray: #54616d;
  --light-gray: #f3f6f7;
  --white: #ffffff;
  --dark-text: #0f172a;
  --success-green: #16a34a;
  --warning-orange: #f97316;
  --border-color: #e3eaee;
  --shadow: 0 6px 14px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 18px 40px rgba(15, 23, 42, 0.14);
  --transition: all 0.3s ease;
  --border-radius: 12px;
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --surface: #ffffff;
  --surface-2: #f7fafb;
  --ring: rgba(22, 163, 148, 0.25);
  --hero-glow: rgba(22, 163, 148, 0.42);
  --hero-glow-2: rgba(249, 115, 22, 0.25);
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-primary);
  line-height: 1.6;
  color: var(--dark-text);
  background-color: var(--surface);
}

/* Accessibility - Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--primary-navy);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
  margin-bottom: 1rem;
  color: var(--secondary-gray);
}

/* Navigation Styles */
.navbar {
  background-color: rgba(255, 255, 255, 0.9) !important;
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  box-shadow: var(--shadow);
  padding: 1rem 0;
}

.navbar.navbar-scrolled {
  padding: 0.65rem 0;
  box-shadow: var(--shadow-lg);
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--primary-navy) !important;
}

.navbar-nav .nav-link {
  color: var(--dark-text) !important;
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  transition: var(--transition);
}

.navbar-nav .nav-link:hover {
  color: var(--primary-blue) !important;
}

.navbar-nav .nav-link.active {
  color: var(--primary-navy) !important;
}

.dropdown-menu {
  border: 1px solid var(--border-color);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  padding: 0.5rem;
}

.dropdown-item {
  border-radius: 10px;
  font-weight: 500;
  padding: 0.6rem 0.75rem;
}

.dropdown-item:hover,
.dropdown-item:focus {
  background: rgba(22, 163, 148, 0.10);
}

/* Hero Section */
.hero-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1200px 600px at 15% 20%, var(--hero-glow) 0%, rgba(22, 163, 148, 0) 60%),
    radial-gradient(900px 500px at 85% 25%, var(--hero-glow-2) 0%, rgba(249, 115, 22, 0) 60%),
    linear-gradient(135deg, var(--primary-navy) 0%, rgba(11, 42, 63, 0.92) 45%, var(--primary-blue) 100%);
  color: var(--white);
  padding: 6rem 0;
  min-height: 70vh;
  display: flex;
  align-items: center;
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: -2px;
  background:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.10) 0 2px, rgba(255, 255, 255, 0) 3px) 0 0 / 18px 18px;
  opacity: 0.35;
  pointer-events: none;
}

.hero-section::after {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  right: -200px;
  top: 10%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0));
  filter: blur(2px);
  transform: rotate(10deg);
  pointer-events: none;
}

.hero-home {
  min-height: 78vh;
}

.hero-service {
  min-height: 58vh;
  padding: 5.25rem 0;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.92);
  font-weight: 600;
  letter-spacing: 0.2px;
}

.hero-content h1 {
  color: var(--white);
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.hero-content p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.25rem;
  margin-bottom: 2rem;
}

/* Buttons */
.btn-primary {
  background-color: var(--primary-blue);
  border-color: var(--primary-blue);
  padding: 0.75rem 2rem;
  font-weight: 600;
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.btn-primary:hover {
  background-color: var(--primary-navy);
  border-color: var(--primary-navy);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-outline-light {
  border-radius: var(--border-radius);
  border-width: 2px;
  padding: 0.75rem 2rem;
  font-weight: 600;
}

.btn-outline-primary {
  color: var(--primary-blue);
  border-color: var(--primary-blue);
  padding: 0.75rem 2rem;
  font-weight: 600;
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.btn-outline-primary:hover {
  background-color: var(--primary-blue);
  border-color: var(--primary-blue);
  transform: translateY(-2px);
}

/* Cards */
.card {
  border: none;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
  height: 100%;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.card-header {
  background-color: var(--light-gray);
  border-bottom: 1px solid var(--border-color);
  font-weight: 600;
}

/* Service Cards */
.service-card {
  text-align: center;
  padding: 2rem;
}

.service-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary-blue), rgba(249, 115, 22, 0.95));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: var(--white);
  font-size: 2rem;
}

/* Forms */
.form-control {
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 0.75rem;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 0.2rem var(--ring);
}

.form-label {
  font-weight: 600;
  color: var(--dark-text);
  margin-bottom: 0.5rem;
}

/* Footer */
.footer {
  background-color: var(--primary-navy);
  color: var(--white);
  padding: 3rem 0 1rem;
}

.footer h5 {
  color: var(--white);
  margin-bottom: 1rem;
}

.footer a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: var(--transition);
}

.footer a:hover {
  color: var(--white);
}

/* Utility Classes */
.section-padding {
  padding: 5rem 0;
}

.text-primary-custom {
  color: var(--primary-blue) !important;
}

.bg-light-custom {
  background-color: var(--light-gray) !important;
}

.section-kicker {
  color: var(--primary-blue);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.82rem;
}

.content-panel {
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .hero-content p {
    font-size: 1rem;
  }
  
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }
}

/* Focus Styles for Accessibility */
.btn:focus,
.form-control:focus,
.nav-link:focus {
  outline: 2px solid var(--primary-blue);
  outline-offset: 2px;
}

/* Loading Animation */
.loading {
  opacity: 0;
  animation: fadeIn 0.5s ease-in-out forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--light-gray);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-blue);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-navy);
}
