/* Insure Solutions - Main Stylesheet */
/* Professional Insurance Website - 2025 Design Standards */

/* CSS Variables for consistent theming */
:root {
  --primary-navy: #081225;
  --primary-blue: #1b9c85;
  --accent-teal: #f5b400;
  --secondary-gray: #4b5563;
  --light-gray: #f3f4f6;
  --white: #ffffff;
  --dark-text: #111827;
  --success-green: #12b981;
  --warning-orange: #f97316;
  --border-color: #e5e7eb;
  --shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.12);
  --shadow-lg: 0 18px 40px rgba(15, 23, 42, 0.22);
  --transition: all 0.3s ease;
  --border-radius: 12px;
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* 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(--white);
}

/* 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: var(--white) !important;
  box-shadow: var(--shadow);
  padding: 0.9rem 0;
}

.navbar.navbar-scrolled {
  background-color: rgba(255, 255, 255, 0.98) !important;
  box-shadow: var(--shadow-lg);
  backdrop-filter: saturate(1.8) blur(10px);
}

.navbar-brand {
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: 0.03em;
  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,
.navbar-nav .nav-link:focus {
  color: var(--primary-blue) !important;
}

.navbar-nav .nav-link.active {
  color: var(--primary-blue) !important;
}

/* Hero Section */
.hero-section {
  position: relative;
  background: radial-gradient(circle at top left, rgba(245, 180, 0, 0.18), transparent 55%), radial-gradient(circle at bottom right, rgba(27, 156, 133, 0.18), transparent 55%), linear-gradient(135deg, var(--primary-navy) 0%, #0c243d 40%, #102a43 100%);
  color: var(--white);
  padding: 6rem 0;
  min-height: 70vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-section::before,
.hero-section::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(245, 180, 0, 0.22), transparent 60%);
  opacity: 0.7;
  filter: blur(0.5px);
  pointer-events: none;
}

.hero-section::before {
  width: 520px;
  height: 520px;
  top: -160px;
  right: -120px;
  animation: heroOrb 18s linear infinite;
}

.hero-section::after {
  width: 380px;
  height: 380px;
  bottom: -140px;
  left: -80px;
  animation: heroOrb 22s linear infinite reverse;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.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.2rem;
  margin-bottom: 2rem;
}

.hero-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.hero-metric {
  display: flex;
  flex-direction: column;
}

.hero-metric-value {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent-teal);
}

.hero-metric-label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
}

.hero-image {
  position: relative;
  z-index: 1;
}

.hero-visual {
  position: relative;
  display: inline-flex;
  padding: 1.75rem 2rem;
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.45);
}

.hero-visual-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.hero-visual-card {
  padding: 0.9rem 1rem;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.6);
  min-width: 110px;
}

.hero-visual-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(209, 213, 219, 0.9);
}

.hero-visual-value {
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 0.4rem;
}

.hero-visual-trend {
  display: inline-flex;
  align-items: center;
  margin-top: 0.35rem;
  font-size: 0.78rem;
}

.hero-visual-trend span {
  margin-left: 0.25rem;
}

.hero-visual-trend.positive {
  color: var(--success-green);
}

.hero-visual-trend.neutral {
  color: var(--accent-teal);
}

.hero-pill {
  position: absolute;
  right: -18px;
  top: 18px;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.6);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(229, 231, 235, 0.95);
}

.hero-orbit {
  position: absolute;
  inset: -18px;
  border-radius: 24px;
  border: 1px dashed rgba(148, 163, 184, 0.5);
  opacity: 0.8;
}

@keyframes heroOrb {
  0% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  50% {
    transform: translate3d(12px, -18px, 0) rotate(6deg);
  }
  100% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
}

/* 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-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);
}

/* Light Outline for Dark Backgrounds */
.btn-outline-light {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.9);
}

.btn-outline-light:hover {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: var(--white);
}

/* 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.service-card {
  position: relative;
  overflow: hidden;
}

.card.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(245, 180, 0, 0.08), transparent 55%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.card.service-card:hover::before {
  opacity: 1;
}

.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-color: rgba(27, 156, 133, 0.12);
  border: 1px solid rgba(148, 163, 184, 0.45);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: var(--primary-blue);
  font-size: 2rem;
  transition: var(--transition);
}

.service-card:hover .service-icon {
  transform: translateY(-3px) scale(1.03);
  background-color: var(--primary-blue);
  border-color: transparent;
  color: var(--white);
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.trust-stat .display-4 {
  font-size: 2.25rem;
}

.trust-stat p {
  margin-bottom: 0;
}

.partner-logo {
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.partner-logo:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.testimonial-card {
  border-radius: 24px;
  background-color: var(--white);
  box-shadow: var(--shadow-lg);
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background-color: rgba(15, 23, 42, 0.04);
}

.social-links a i {
  font-size: 1.1rem;
}

.social-links a:hover {
  background-color: rgba(27, 156, 133, 0.12);
}

.newsletter-form .form-control-lg {
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

/* 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 rgba(59, 130, 246, 0.25);
}

.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);
}

@media (max-width: 768px) {
  .hero-visual-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-section {
    padding-top: 5rem;
  }
}

@media (max-width: 576px) {
  .hero-visual-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-visual {
    width: 100%;
    justify-content: center;
  }

  .hero-pill {
    right: 12px;
  }
}

/* Utility Classes */
.section-padding {
  padding: 5rem 0;
}

.text-primary-custom {
  color: var(--primary-blue) !important;
}

.bg-light-custom {
  background-color: var(--light-gray) !important;
}

/* 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(--accent-teal);
  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);
}
