/* ===========================================
   Insurance Landing Page - Custom Styles
   Brand: Primary #3740a5 | Secondary #3ea4cc
   =========================================== */

   :root {
    --primary: #002f6b;
    --primary-dark: #2d3584;
    --secondary: #3ea4cc;
    --white: #ffffff;
    --font-heading: "Poppins", sans-serif;
    --font-body: "Inter", sans-serif;
  }
  
  /* Base & Typography */
  html {
    scroll-behavior: smooth;
    scroll-padding-top: 70px;
  }
  
  body {
    font-family: var(--font-body);
    color: #333;
    overflow-x: hidden;
  }
  
  h1, h2, h3, h4, h5, h6,
  .hero-headline,
  .section-title,
  .navbar-brand {
    font-family: var(--font-heading);
  }
  
  /* Navigation */
  #mainNav {
    background: #002f6b;
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 20px rgba(0, 0, 0);
    transition: background 0.3s ease;
  }
  
  #mainNav .nav-link {
    color: rgba(255, 255, 255) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: color 0.2s ease;
  }
  
  #mainNav .nav-link:hover {
    color: var(--white) !important;
  }
  
  #mainNav .nav-link.btn {
    color: var(--white) !important;
    border: 1px solid rgba(255, 255, 255, 0.5);
  }
  
  #mainNav .nav-link.btn:hover {
    background: var(--white) !important;
    color: var(--primary) !important;
    border-color: var(--white);
  }
  
  .nav-logo {
    max-height: 40px;
    width: auto;  
  }
  
  .navbar-brand {
    font-weight: 600;
  }
  
  /* Hero Section */
  .hero-section {
    background: linear-gradient(180deg, rgba(26, 29, 46, 0.75) 0%, rgba(26, 29, 46, 0.6) 50%, rgba(26, 29, 46, 0.5) 100%),
      url("../images/slider/dental-insurance.jpg") center / cover no-repeat;
    color: #1a1d2e;
    position: relative;
    min-height: 100vh;
  }
  
  .hero-section .container {
    position: relative;
    z-index: 1;
  }
  
  .hero-section .hero-headline,
  .hero-section .hero-subheadline {
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  }
  
  .hero-section .hero-headline .accent {
    color: #a8d4f0;
  }
  
  .hero-section .hero-subheadline {
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
  }
  
  .hero-section .hero-logo {
    filter: brightness(1.05);
  }
  
  .hero-headline {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #1a1d2e;
  }
  
  .hero-headline .accent {
    color: var(--primary);
  }
  
  .hero-subheadline {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: #555;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-cta .btn-primary {
    background-color: var(--primary);
    color: var(--white);
    border: none;
    font-weight: 600;
    box-shadow: 0 4px 14px rgba(55, 64, 165, 0.25);
  }
  
  .hero-cta .btn-primary:hover {
    background-color: var(--primary-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(55, 64, 165, 0.35);
  }
  
  .hero-cta .btn-outline-primary {
    border-color: var(--primary);
    color: var(--primary);
  }
  
  .hero-cta .btn-outline-primary:hover {
    background-color: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
  }
  
  .hero-section .hero-cta .btn-outline-primary {
    border-color: rgba(255, 255, 255, 0.9);
    color: #fff;
  }
  
  .hero-section .hero-cta .btn-outline-primary:hover {
    background-color: rgba(255, 255, 255, 0.95);
    color: var(--primary);
    border-color: #fff;
  }
  
  .hero-cta .btn {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }
  
  .hero-logo {
    max-height: 80px;
    width: auto;
    max-width: 100%;
    filter: none;
  }
  
  /* Hero Option 2: Split with Image */
  .hero-split {
    background: #ffffff;
    border-bottom: none;
  }
  
  .hero-split .hero-split-row {
    min-height: 85vh;
  }
  
  .hero-split .hero-split-image {
    background: #e8eaef;
  }
  
  .hero-split .hero-split-image img {
    width: 100%;
    height: 100%;
    min-height: 85vh;
    max-height: 85vh;
    object-fit: cover;
    display: block;
  }
  
  .hero-split .hero-split-content {
    background: linear-gradient(135deg, rgba(62, 164, 204, 0.08) 0%, #f5f7fa 40%, #fefefe 100%);
    padding: 3rem 2rem;
    position: relative;
    border-left: 4px solid var(--secondary);
  }
  
  .hero-split .hero-split-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse 80% 50% at 0% 50%, rgba(62, 164, 204, 0.05) 0%, transparent 60%);
    pointer-events: none;
  }
  
  .hero-split .hero-split-inner {
    max-width: 520px;
    margin: 0 auto;
  }
  
  .hero-split .hero-headline {
    text-align: left;
  }
  
  .hero-split .hero-subheadline {
    margin-left: 0;
    margin-right: 0;
    text-align: left;
  }
  
  .hero-split .hero-cta {
    justify-content: flex-start;
  }
  
  @media (max-width: 991.98px) {
    .hero-split .hero-split-row {
      min-height: auto;
    }
  
    .hero-split .hero-split-image {
      order: 1;
      min-height: 45vh;
    }
  
    .hero-split .hero-split-image img {
      min-height: 45vh;
      max-height: 45vh;
    }
  
    .hero-split .hero-split-content {
      order: 2;
      padding: 2.5rem 1.5rem;
      border-left: none;
      border-top: 4px solid var(--secondary);
      text-align: center;
    }
  
    .hero-split .hero-split-inner {
      max-width: 100%;
    }
  
    .hero-split .hero-headline,
    .hero-split .hero-subheadline {
      text-align: center;
    }
  
    .hero-split .hero-cta {
      justify-content: center;
    }
  
    .hero-split .hero-logo {
      margin-left: auto;
      margin-right: auto;
      display: block;
    }
  }
  
  .footer-logo {
    max-height: 50px;
    width: auto;
    max-width: 180px;
    opacity: 0.95;
  }
  
  /* Section Titles */
  .section-title {
    color: var(--primary);
    font-weight: 700;
    font-size: clamp(1.5rem, 3vw, 2rem);
  }
  
  .section-subtitle {
    color: var(--primary);
    font-weight: 600;
    font-size: clamp(1.15rem, 2.5vw, 1.35rem);
  }
  
  /* Services – grouped sections (professional split) */
  .services-group {
    margin-bottom: 3rem;
  }
  
  .services-group:last-child {
    margin-bottom: 0;
  }
  
  .services-group-title {
    margin: 0 0 0.5rem 0;
    font-size: clamp(1.4rem, 2.8vw, 1.75rem);
    font-weight: 700;
    color: var(--primary);
    font-family: var(--font-heading);
    text-align: center;
    position: relative;
    padding-bottom: 0.75rem;
    display: inline-block;
    width: 100%;
    letter-spacing: 0.02em;
  }
  
  .services-group-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px;
  }
  
  .services-group-header {
    text-align: center;
    padding: 1.25rem 1rem 1.5rem;
    margin-bottom: 1.5rem;  
  }
  
  .services-group-desc {
    font-size: 0.95rem;
    max-width: 32rem;
    margin-left: auto;
    margin-right: auto;
  }
  
  /* About Section */
  .about-section {
    background: linear-gradient(180deg, #f5f7ff 0%, #fafbff 50%, #ffffff 100%);
  }
  
  .about-image-wrapper {
    position: relative;
  }
  
  .about-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    max-height: 420px;
  }
  
  .about-badge {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background: var(--primary);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(55, 64, 165, 0.4);
  }
  
  .about-badge .badge-text {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.9;
  }
  
  .about-badge .badge-detail {
    display: block;
    font-weight: 700;
    font-size: 1rem;
  }
  
  .agent-name {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 0.5px;
  }
  
  .about-intro {
    color: #555;
    line-height: 1.7;
  }
  
  .about-feature-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(55, 64, 165, 0.1) 0%, rgba(62, 164, 204, 0.1) 100%);
    color: var(--primary);
    border-radius: 10px;
    font-size: 1.25rem;
  }
  
  .about-features li {
    transition: transform 0.2s ease;
  }
  
  .about-features li:hover {
    transform: translateX(4px);
  }
  
  /* Services Section – distinct from About */
  .services-section {
    background-color: #f0f2f5;
  }
  
  /* Service Cards */
  .service-card {
    border-radius: 12px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
  }
  
  .service-card .card-img-top.service-card-img {
    height: 240px;
    object-fit: cover;
    border-radius: 12px 12px 0 0;
  }
  
  .service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(55, 64, 165, 0.15) !important;
  }
  
  .service-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
    border-radius: 12px;
    font-size: 1.5rem;
  }
  
  .service-card.bg-primary .service-icon {
    background: rgba(255, 255, 255, 0.25);
  }
  
  .service-card .btn-primary {
    background-color: var(--primary);
    border: none;
  }
  
  .service-card .btn-primary:hover {
    background-color: var(--primary-dark);
    transform: none;
  }
  
  /* Feature / Why Choose Us Cards */
  .feature-card {
    border-radius: 12px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
  }
  
  .feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(55, 64, 165, 0.12) !important;
  }
  
  .feature-icon {
    font-size: 2rem;
    color: var(--secondary);
  }
  
  .feature-card.bg-primary .feature-icon {
    color: var(--white);
    opacity: 0.9;
  }
  
  /* CTA Section */
  .cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
  }
  
  .cta-headline {
    font-weight: 700;
    font-size: clamp(1.5rem, 3vw, 2rem);
  }
  
  .cta-text {
    font-size: 1.1rem;
    opacity: 0.95;
  }
  
  .cta-section .btn-light {
    color: var(--primary);
    font-weight: 600;
  }
  
  .cta-section .btn-light:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
  }
  
  .cta-section .btn-outline-light:hover {
    background: var(--white) !important;
    color: var(--primary) !important;
    border-color: var(--white);
  }
  
  .cta-section .btn {
    transition: transform 0.2s ease;
  }
  
  /* Contact Section */
  .contact-card-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    position: relative;
    padding-bottom: 0.75rem;
    margin-bottom: 1rem;
  }
  
  .contact-card-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 48px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px;
  }
  
  /* Contact form validation */
  .form-field-error {
    font-size: 0.8rem;
    color: #dc3545;
    margin-top: 0.25rem;
    min-height: 1.25rem;
  }
  
  #form-submit-error.text-success {
    color: #198754;
  }
  
  #contact .form-control.is-invalid,
  #contact .form-select.is-invalid {
    border-color: #dc3545;
  }
  
  #contact .form-control:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 0.2rem rgba(62, 164, 204, 0.25);
  }
  
  #contact .btn-primary {
    background-color: var(--primary);
    border: none;
  }
  
  #contact .btn-primary:hover {
    background-color: var(--primary-dark);
  }
  
  #contact .map-embed {
    min-height: 320px;
  }
  
  #contact .map-embed.flex-grow-1 {
    flex: 1;
  }
  
  #contact .map-embed iframe {
    display: block;
  }
  
  /* Footer */
  .footer {
    background-color: var(--primary);
    color: var(--white);
  }
  
  .footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
  }
  
  .footer-nav a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
  }
  
  .footer-nav a:hover {
    color: var(--white);
  }
  
  /* Go to Top Button */
  .go-to-top {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    box-shadow: 0 4px 16px rgba(55, 64, 165, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    z-index: 1000;
    text-decoration: none;
  }
  
  .go-to-top:hover {
    background: var(--primary-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(55, 64, 165, 0.5);
  }
  
  .go-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  
  /* Partners & Member Benefits Section */
  .partners-section .partners-intro {
    font-size: 1.05rem;
  }

  .partners-section .partners-discount {
    font-family: var(--font-heading);
    font-size: 1.55rem;
    font-weight: 700;
    color: var(--primary) !important;
  }
  
  .partners-section .partners-card {
    min-height: 280px;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
  }
  
  .partners-section .partners-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1) !important;
    transform: translateY(-2px);
  }
  
  .partners-section .partners-logo {
    max-height: 80px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
  }
  
  .partners-section .partners-logo-medpro {
    max-height: 70px;
  }
  
  .partners-section .partners-logo-pds {
    max-height: 90px;
  }
  
  .partners-section .partners-quote {
    line-height: 1.6;
    max-width: 28rem;
  }
  
  .partners-section .partners-benefit {
    font-size: 1.05rem;
    line-height: 1.5;
  }
  
  /* Button hover effects (global) */
  .btn {
    transition: all 0.2s ease;
  }
  
  /* Card shadows - soft as per PRD */
  .card {
    border-radius: 12px;
  }
  
  .shadow-sm {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
    background-color: #f0f8ff;
  }
  
  .shadow-lg {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08) !important;
    background-color: #f0f8ff;
  }
  