﻿/* ===================================================================
   CUSTOM FONTS
   =================================================================== */

@font-face {
    font-family: 'Gismonda';
    src: url('/fonts/gismonda-regular.woff2') format('woff2'), url('/fonts/gismonda-regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}


/* ===================================================================
   HERO SECTION
   =================================================================== */

.hero-section {
    background: url('/images/insurance.jpg') center/cover no-repeat;
    color: white;
    padding: 100px 0;
    text-align: center;
    position: relative;
}

    .hero-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1;
    }

    .hero-section > * {
        position: relative;
        z-index: 2;
    }

.hero-title {
    font-family: 'Gismonda', serif;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    color: white;
}

.hero-tagline {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
    color: white;
}

.hero-description {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
    color: white;
}

/* Hero Buttons - New Design */
.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.hero-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 3rem;
    min-width: 300px;
    text-decoration: none;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    border: 2px solid transparent;
}

    .hero-btn::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(135deg, transparent 0%, rgba(255, 255, 255, 0.1) 50%, transparent 100%);
        transform: translateX(-100%);
        transition: transform 0.6s ease;
    }

    .hero-btn:hover::before {
        transform: translateX(100%);
    }

.btn-text {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.btn-subtext {
    font-size: 0.9rem;
    font-weight: 400;
    opacity: 0.95;
    line-height: 1.4;
    max-width: 250px;
    position: relative;
    z-index: 1;
    transition: opacity 0.3s ease;
}

/* Primary Button (Get Quote) */
.hero-btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #2c5aa0 100%);
    color: white;
    box-shadow: 0 8px 25px rgba(44, 90, 160, 0.35);
    border-color: rgba(255, 255, 255, 0.2);
}

    .hero-btn-primary:hover {
        transform: translateY(-8px) scale(1.02);
        box-shadow: 0 15px 40px rgba(44, 90, 160, 0.45);
        background: linear-gradient(135deg, #2c5aa0 0%, var(--primary-color) 100%);
        color: white;
        border-color: rgba(255, 255, 255, 0.4);
    }

        .hero-btn-primary:hover .btn-text {
            transform: translateY(-2px);
        }

        .hero-btn-primary:hover .btn-subtext {
            opacity: 1;
        }

/* Secondary Button (Contact) */
.hero-btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

    .hero-btn-secondary:hover {
        transform: translateY(-8px) scale(1.02);
        background: rgba(255, 255, 255, 0.95);
        color: var(--primary-color);
        border-color: white;
        box-shadow: 0 15px 40px rgba(255, 255, 255, 0.4);
    }

        .hero-btn-secondary:hover .btn-text {
            transform: translateY(-2px);
        }

        .hero-btn-secondary:hover .btn-subtext {
            opacity: 1;
        }

/* Responsive Hero Section */
@media (max-width: 768px) {
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }

    .hero-btn {
        min-width: 100%;
        max-width: 400px;
        padding: 1.75rem 2rem;
    }

    .btn-text {
        font-size: 1.2rem;
    }

    .btn-subtext {
        font-size: 0.85rem;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 80px 0;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-tagline {
        font-size: 1.2rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-btn {
        padding: 1.5rem 1.5rem;
    }

    .btn-text {
        font-size: 1.1rem;
    }

    .btn-subtext {
        font-size: 0.8rem;
    }
}


/* ===================================================================
   FEATURES SECTION
   =================================================================== */

.features-section {
    padding: 80px 0;
    background-color: var(--secondary-color);
}

.feature-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    height: 100%;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
}

    .feature-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    }

.feature-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.feature-description {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.feature-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

    .feature-link:hover {
        color: var(--accent-color);
        text-decoration: none;
    }


/* ===================================================================
   STATS SECTION
   =================================================================== */

.stats-section {
    background: #ffffff;
    color: var(--text-dark);
    padding: 60px 0;
}

.stat-item {
    text-align: center;
    margin-bottom: 2rem;
}

.stat-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.8;
    color: var(--primary-color);
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.9;
    color: var(--text-dark);
}


/* ===================================================================
   CTA SECTION
   =================================================================== */

.cta-section {
    padding: 80px 0;
    text-align: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.btn-primary-custom {
    background: var(--primary-color);
    border: none;
    padding: 12px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    color: white;
}

    .btn-primary-custom:hover {
        background: var(--accent-color);
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(0,0,0,0.2);
        color: white;
    }

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 46px;
    line-height: 1;
    text-align: center;
}

    .btn-outline-primary i {
        margin-right: 8px;
        line-height: 1;
        vertical-align: middle;
    }

    .btn-outline-primary:hover {
        background: var(--primary-color);
        color: #ffffff;
        box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    }

        .btn-outline-primary:hover i {
            color: #ffffff;
        }

/* Responsive CTA Buttons */
@media (max-width: 768px) {
    .btn-outline-primary {
        padding: 0 25px;
        font-size: 1rem;
        height: 42px;
    }
}

@media (max-width: 576px) {
    .btn-outline-primary {
        padding: 0 20px;
        font-size: 0.9rem;
        height: 38px;
    }
}


/* ===================================================================
   INSURERS SECTION
   =================================================================== */

.insurers-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-dark);
}

.section-subtitle {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.insurers-carousel-container {
    overflow: hidden;
    position: relative;
    padding: 20px 0;
}

.insurers-track {
    display: flex;
    animation: scroll 40s linear infinite;
    gap: 2rem;
    padding: 1rem 0;
    width: max-content;
}

.insurer-card {
    flex: 0 0 300px;
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    border: 2px solid transparent;
}

    .insurer-card:hover {
        transform: translateY(-10px) scale(1.05);
        box-shadow: 0 15px 40px rgba(0,0,0,0.15);
        border-color: var(--primary-color);
    }

.insurer-logo-container {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.insurer-logo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.insurer-card:hover .insurer-logo {
    transform: scale(1.1);
}

.insurer-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}

/* Updated animation for 16 insurers (300px width + 2rem gap = 332px per card) */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        /* 16 insurers * 332px per card = 5312px */
        transform: translateX(calc(-332px * 16));
    }
}

.insurers-carousel-container:hover .insurers-track {
    animation-play-state: paused;
}

/* Responsive Insurers */
@media (max-width: 768px) {
    .insurer-card {
        flex: 0 0 250px;
    }

    /* Update animation for mobile with 16 insurers */
    @keyframes scroll {
        0% {
            transform: translateX(0);
        }

        100% {
            /* 250px card width + 2rem gap = 250px + 32px = 282px per card */
            /* 16 insurers * 282px = 4512px */
            transform: translateX(calc(-282px * 16));
        }
    }
}

@media (max-width: 576px) {
    .insurer-card {
        flex: 0 0 200px;
        padding: 1.5rem;
    }

    .insurer-logo-container {
        height: 80px;
    }

    .insurers-track {
        gap: 1rem;
    }

    /* Update animation for small mobile with 16 insurers */
    @keyframes scroll {
        0% {
            transform: translateX(0);
        }

        100% {
            /* 200px card width + 1rem gap = 200px + 16px = 216px per card */
            /* 16 insurers * 216px = 3456px */
            transform: translateX(calc(-216px * 16));
        }
    }
}


/* ===================================================================
   INSURER DETAIL PAGE
   =================================================================== */

.insurer-detail-card {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    border: 1px solid #e9ecef;
}

.insurer-detail-logo {
    max-width: 200px;
    max-height: 100px;
    object-fit: contain;
    margin-bottom: 2rem;
}

.insurer-detail-name {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 2rem;
}

.insurer-info {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 2rem;
    margin: 2rem 0;
}

.info-item {
    display: flex;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #dee2e6;
}

    .info-item:last-child {
        border-bottom: none;
    }

    .info-item i {
        font-size: 1.5rem;
        color: var(--primary-color);
        width: 30px;
    }

.website-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

    .website-link:hover {
        color: var(--accent-color);
        text-decoration: underline;
    }

.assist-number {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
}

/* Contact Numbers */
.contact-numbers-section {
    margin: 1.5rem 0;
}

.contact-numbers-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
    text-align: center;
}

.contact-numbers-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.contact-number-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: white;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

    .contact-number-item:hover {
        background: #f8f9fa;
        border-color: var(--primary-color);
    }

.contact-number-name {
    font-weight: 500;
    color: var(--text-dark);
    flex: 1;
}

.contact-number-link {
    display: flex;
    align-items: center;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    background: #f8f9fa;
    transition: all 0.3s ease;
    white-space: nowrap;
}

    .contact-number-link:hover {
        background: var(--primary-color);
        color: white;
        text-decoration: none;
    }

/* Responsive Insurer Details */
@media (max-width: 768px) {
    .insurer-detail-card {
        padding: 2rem;
        margin: 1rem;
    }

    .insurer-detail-name {
        font-size: 2rem;
    }

    .info-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

        .info-item i {
            margin-bottom: 0.5rem;
        }

    .contact-number-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .contact-number-link {
        align-self: stretch;
        text-align: center;
    }
}


/* ===================================================================
   MODAL STYLES
   =================================================================== */

.modal-content {
    border-radius: 15px;
    border: none;
    box-shadow: 0 10px 50px rgba(0,0,0,0.2);
}

.modal-header {
    border-bottom: 1px solid #e9ecef;
    background: var(--primary-color);
    color: white;
    border-radius: 15px 15px 0 0;
}

    .modal-header .btn-close {
        filter: invert(1);
    }

.insurer-modal-logo {
    max-width: 200px;
    max-height: 80px;
    object-fit: contain;
}

.insurer-modal-name {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-dark);
}

.insurer-modal-info {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}


/* ===================================================================
   UTILITY CLASSES
   =================================================================== */

.row .insurer-card {
    cursor: pointer;
    transition: all 0.3s ease;
}

    .row .insurer-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    }

/* ===================================================================
   INSURER FLIP CARDS - IMPROVED DESIGN
   =================================================================== */

.insurer-flip-card {
    background: transparent;
    perspective: 1000px;
    height: 280px; /* Reduced height for better fit */
    cursor: pointer;
    margin-bottom: 1.5rem;
}

.insurer-flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

.insurer-flip-card.flipped .insurer-flip-card-inner {
    transform: rotateY(180deg);
}

.insurer-flip-card-front,
.insurer-flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 15px;
    padding: 1.5rem; /* Reduced padding */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.insurer-flip-card-front {
    background: white;
}

.insurer-flip-card-back {
    background: white;
    transform: rotateY(180deg);
    border-color: var(--primary-color);
}

.insurer-flip-card:hover .insurer-flip-card-front {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.insurer-flip-card:hover .insurer-flip-card-back {
    transform: rotateY(180deg) translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* Front Card Styles */
.insurer-flip-card .insurer-logo-container {
    height: 100px; /* Reduced height */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.insurer-flip-card .insurer-logo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.insurer-flip-card:hover .insurer-logo {
    transform: scale(1.05);
}

.insurer-flip-card .insurer-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

/* Back Card Styles - Clean White Design */
.insurer-back-name {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    text-align: center;
}

.insurer-contact-info {
    width: 100%;
    text-align: left;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem; /* Reduced spacing */
    padding: 0.5rem; /* Reduced padding */
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

    .contact-item:hover {
        background: #e9ecef;
        border-color: var(--primary-color);
    }

    .contact-item i {
        font-size: 1rem;
        margin-right: 0.75rem;
        width: 20px;
        text-align: center;
        color: var(--primary-color);
    }

.website-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

    .website-link:hover {
        color: var(--accent-color);
        text-decoration: underline;
    }

.phone-info {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.phone-name {
    font-size: 0.75rem; /* Smaller font */
    opacity: 0.8;
    margin-bottom: 0.2rem;
    font-weight: 500;
    color: #666;
}

.phone-link {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem; /* Smaller font */
    transition: all 0.3s ease;
}

    .phone-link:hover {
        color: var(--primary-color);
        text-decoration: none;
    }

/* Flip Hint */
.flip-hint {
    position: absolute;
    bottom: 0.75rem;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    opacity: 0.7;
    transition: all 0.3s ease;
}

    .flip-hint i {
        font-size: 0.7rem;
    }

.insurer-flip-card-front .flip-hint {
    color: #666;
}

.insurer-flip-card-back .flip-hint {
    color: #666;
}

.insurer-flip-card:hover .flip-hint {
    opacity: 1;
}

/* Responsive Flip Cards */
@media (max-width: 768px) {
    .insurer-flip-card {
        height: 250px;
    }

    .insurer-flip-card-front,
    .insurer-flip-card-back {
        padding: 1.25rem;
    }

    .insurer-flip-card .insurer-logo-container {
        height: 80px;
        margin-bottom: 0.75rem;
    }

    .insurer-flip-card .insurer-name {
        font-size: 1rem;
    }

    .insurer-back-name {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }

    .contact-item {
        margin-bottom: 0.75rem;
        padding: 0.4rem;
    }

    .phone-link {
        font-size: 0.85rem;
    }
}

@media (max-width: 576px) {
    .insurer-flip-card {
        height: 220px;
    }

    .insurer-flip-card-front,
    .insurer-flip-card-back {
        padding: 1rem;
    }

    .insurer-flip-card .insurer-logo-container {
        height: 70px;
    }

    .flip-hint {
        font-size: 0.7rem;
    }

        .flip-hint span {
            display: none;
        }

        .flip-hint i {
            font-size: 0.8rem;
        }
}

/* Adjust spacing for cards with only website */
.insurer-contact-info:has(.website-item:only-child) {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
}

    .insurer-contact-info:has(.website-item:only-child) .website-item {
        margin-bottom: 0;
    }

    .insurer-contact-info:has(.website-item:only-child) .no-phone-message {
        margin-top: 1rem;
    }


/* ===================================================================
   MULTIPLE PHONE NUMBERS STYLING
   =================================================================== */

.multiple-numbers {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.number-separator {
    color: #666;
    font-weight: 400;
    margin: 0 0.25rem;
    font-size: 0.9rem;
}

/* Special styling for multiple numbers on same line */
.phone-info .multiple-numbers .phone-link {
    display: inline-block;
    margin: 0;
    padding: 0;
    background: transparent;
    border-radius: 0;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

    .phone-info .multiple-numbers .phone-link:hover {
        background: transparent;
        color: var(--primary-color);
        text-decoration: none;
    }

/* Responsive multiple numbers */
@media (max-width: 768px) {
    .multiple-numbers {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }

    .number-separator {
        display: none;
    }
}