/* ========================================
   JS Downey Insurance - Custom Styles
   Blue Theme with Gradient Sections
   ======================================== */

/* ---------- Color Variables (Blue Theme) ---------- */
:root {
    --primary: #1e3a8a;       /* Deep blue */
    --primary-dark: #1e2b6e;  /* Darker blue */
    --primary-light: #3b82f6; /* Bright blue */
    --secondary: #60a5fa;     /* Soft blue */
    --accent: #93c5fd;        /* Light accent blue */
    --light-bg: #eff6ff;      /* Very light blue background */
    --dark-text: #1e293b;     /* Dark slate for text */
    --gray-text: #475569;     /* Medium gray */
}

/* ---------- Global Styles ---------- */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--dark-text);
    overflow-x: hidden;
    background-color: #ffffff;
}

/* ---------- Navigation (stays light with blue hover) ---------- */
.navbar {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    padding: 1rem 0;
}

.navbar-brand {
    color: var(--primary);
    font-size: 1.5rem;
}

.navbar-nav .nav-link {
    color: var(--dark-text);
    font-weight: 500;
    margin: 0 0.5rem;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary);
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 100%;
}

/* ---------- Hero Section (Gradient Blue) ---------- */
.hero-section {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    padding: 4rem 0;
    min-height: 90vh;
    display: flex;
    align-items: center;
    color: white;
}

.hero-section .badge,
.hero-section h1,
.hero-section p,
.hero-section .btn-light {
    color: white;
}

.hero-section .btn-light {
    background-color: white;
    color: var(--primary);
}

.hero-section .btn-light:hover {
    background-color: var(--accent);
    color: var(--primary-dark);
}

.min-vh-75 {
    min-height: 75vh;
}

.hero-image-wrapper {
    position: relative;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* ---------- Features Section (Light Blue Gradient) ---------- */
.features-section {
    background: linear-gradient(135deg, #dbeafe 0%, #eff6ff 100%);
    padding: 4rem 0;
}

.feature-card {
    background: white;
    border-radius: 20px;
    transition: all 0.3s ease;
    height: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(30, 58, 138, 0.1);
    border-radius: 50%;
}

/* ---------- What Makes Us Different Section (Medium Blue Gradient) ---------- */
.bg-light {
    background: linear-gradient(135deg, #bfdbfe 0%, #dbeafe 100%) !important;
}

/* ---------- CTA Section (Deep Blue Gradient) ---------- */
.cta-section {
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
    color: white;
}

.cta-section .btn-light {
    background-color: white;
    color: var(--primary);
}

.cta-section .btn-light:hover {
    background-color: var(--accent);
    color: var(--primary-dark);
}

/* ---------- Service Cards ---------- */
.service-card {
    background: white;
    border-radius: 16px;
    transition: all 0.3s ease;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

/* ---------- Step Cards ---------- */
.step-card {
    background: white;
    border-radius: 20px;
    transition: all 0.3s ease;
    position: relative;
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

/* ---------- Value Cards ---------- */
.value-card {
    background: white;
    border-radius: 16px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.value-card:hover {
    transform: translateY(-5px);
}

/* ---------- Testimonial Cards ---------- */
.testimonial-card {
    background: white;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1) !important;
}

/* ---------- Carrier Cards ---------- */
.carrier-card {
    background: white;
    border-radius: 16px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.carrier-card:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* ---------- News Items ---------- */
.news-item {
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
}

.news-item:last-child {
    border-bottom: none;
}

/* ---------- Page Headers (Gradient Blue) ---------- */
.page-header {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
}

/* ---------- Footer ---------- */
.footer {
    background-color: var(--primary-dark);
    color: #ffffff;
    padding: 3rem 0 1rem;
}

.footer a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: var(--accent);
}

.footer ul {
    padding-left: 0;
}

.footer ul li {
    margin-bottom: 0.5rem;
}

/* ---------- Contact Form ---------- */
.contact-form-wrapper {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.contact-info {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    height: 100%;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: var(--secondary);
    transform: translateY(-3px);
}

/* ---------- Form Controls ---------- */
.form-control, .form-select {
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(30, 58, 138, 0.25);
}

/* ---------- Buttons ---------- */
.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    border-radius: 50px;
    padding: 0.75rem 2rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(30, 58, 138, 0.3);
}

.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
    border-radius: 50px;
}

.btn-outline-primary:hover {
    background-color: var(--primary);
    border-color: var(--primary);
}

.btn-light {
    background-color: white;
    color: var(--primary);
    border-radius: 50px;
}

.btn-light:hover {
    background-color: var(--accent);
    color: var(--primary-dark);
    transform: translateY(-2px);
}

/* ========================================
   SWAY EFFECT ANIMATION
   ======================================== */
.sway-hover {
    transition: transform 0.3s ease;
}

.sway-hover:hover {
    animation: sway 0.5s ease-in-out;
}

@keyframes sway {
    0% { transform: rotate(0deg); }
    25% { transform: rotate(5deg); }
    50% { transform: rotate(-5deg); }
    75% { transform: rotate(3deg); }
    100% { transform: rotate(0deg); }
}

/* ---------- Scroll Animation ---------- */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- Page Transition (View Transitions API) ---------- */
.page-transition {
    view-transition-name: main-content;
}

@keyframes fade-in {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fade-out {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(-20px); }
}

::view-transition-old(main-content) {
    animation: fade-out 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

::view-transition-new(main-content) {
    animation: fade-in 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* ---------- Responsive Adjustments ---------- */
@media (max-width: 768px) {
    .hero-section {
        text-align: center;
        padding: 2rem 0;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .feature-card, .service-card {
        margin-bottom: 1rem;
    }
    
    .navbar-brand {
        font-size: 1.2rem;
    }
}

/* ---------- Additional Section Backgrounds (for homepage sections) ---------- */
/* Ensure all major sections on home page have gradient blue backgrounds */
.hero-section,
.features-section,
.bg-light,
.cta-section {
    background-attachment: local;
}

/* If any section doesn't have a class, we can add a generic wrapper */
section:not(.footer):not(.navbar):not(.page-header) {
    /* This will apply to any section without specific class */
    /* But we already covered the main ones, so this is optional */
}
/* ========================================
   FLOATING SHAPES & DECORATIVE ELEMENTS
   ======================================== */

/* Shared shape styles */
.shape {
    position: absolute;
    z-index: 0;
    pointer-events: none;
    opacity: 0.1;
}

/* Hero Section Shapes */
.hero-section {
    position: relative;
    overflow: hidden;
}
.hero-section::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}
.hero-section::after {
    content: '';
    position: absolute;
    bottom: -15%;
    left: -5%;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}
.hero-section .container {
    position: relative;
    z-index: 2;
}

/* Features Section Shapes */
.features-section {
    position: relative;
    overflow: hidden;
}
.features-section::before {
    content: '';
    position: absolute;
    top: 10%;
    left: -5%;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(30,58,138,0.15) 0%, rgba(30,58,138,0) 70%);
    border-radius: 50%;
    z-index: 0;
}
.features-section::after {
    content: '';
    position: absolute;
    bottom: 5%;
    right: -5%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(59,130,246,0.15) 0%, rgba(59,130,246,0) 70%);
    border-radius: 50%;
    z-index: 0;
}
.features-section .container {
    position: relative;
    z-index: 2;
}

/* "What Makes Us Different" Section Shapes */
.bg-light {
    position: relative;
    overflow: hidden;
}
.bg-light::before {
    content: '';
    position: absolute;
    top: 20%;
    right: 0;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(30,64,175,0.2) 0%, rgba(30,64,175,0) 70%);
    border-radius: 50%;
    z-index: 0;
}
.bg-light::after {
    content: '';
    position: absolute;
    bottom: 10%;
    left: 0;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(96,165,250,0.15) 0%, rgba(96,165,250,0) 70%);
    border-radius: 50%;
    z-index: 0;
}
.bg-light .container {
    position: relative;
    z-index: 2;
}

/* CTA Section Shapes */
.cta-section {
    position: relative;
    overflow: hidden;
}
.cta-section::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    z-index: 0;
}
.cta-section::after {
    content: '';
    position: absolute;
    bottom: -80px;
    right: -80px;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    z-index: 0;
}
.cta-section .container {
    position: relative;
    z-index: 2;
}

/* Page Header Shapes (for inner pages) */
.page-header {
    position: relative;
    overflow: hidden;
}
.page-header::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    z-index: 0;
}
.page-header::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -5%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    z-index: 0;
}
.page-header .container {
    position: relative;
    z-index: 2;
}

/* Optional: Floating abstract blobs (more organic shapes) */
@keyframes floatShape {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

.floating-shape {
    animation: floatShape 8s ease-in-out infinite;
}

/* Add a floating blob to hero section (additional) */
.hero-section .floating-blob {
    position: absolute;
    bottom: 10%;
    left: 5%;
    width: 150px;
    height: 150px;
    background: rgba(255,255,255,0.08);
    border-radius: 60% 40% 50% 50% / 45% 50% 50% 55%;
    z-index: 0;
    pointer-events: none;
    animation: floatShape 12s ease-in-out infinite;
}

/* Make sure content stays above shapes */
section > .container,
section > .container-fluid {
    position: relative;
    z-index: 2;
}

/* Responsive adjustments for shapes */
@media (max-width: 768px) {
    .hero-section::before,
    .hero-section::after,
    .features-section::before,
    .features-section::after,
    .bg-light::before,
    .bg-light::after,
    .cta-section::before,
    .cta-section::after {
        transform: scale(0.7);
    }
}
/* Team Card Styles - Gradient Blue */
.team-card {
    transition: all 0.3s ease;
    border: none;
    overflow: hidden;
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    color: white;
}

.team-card h4,
.team-card p,
.team-card .team-social a {
    color: white;
}

.team-card .text-primary {
    color: #ffd966 !important;  /* Gold for job titles */
}

.team-card .text-muted {
    color: rgba(255, 255, 255, 0.8) !important;
}

.team-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 1rem 2rem rgba(0,0,0,.25) !important;
    background: linear-gradient(135deg, #0b5ed7 0%, #084298 100%);
}

.team-image {
    width: 150px;
    height: 150px;
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 3px solid white;
    transition: all 0.3s ease;
}

.team-card:hover .team-image img {
    border-color: #ffd966;
    transform: scale(1.02);
}

.team-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    transition: all 0.2s ease;
    background: rgba(255,255,255,0.2);
}

.team-social a:hover {
    background: #ffd966;
    color: #0d6efd !important;
    transform: translateY(-2px);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .team-card {
        max-width: 320px;
        margin: 0 auto;
    }
}   
/* Make the whole card clickable like a button */
.team-card-link {
    transition: transform 0.2s ease;
}

.team-card-link:hover {
    transform: translateY(-4px);
}

.team-card-link:active .team-card {
    transform: scale(0.98);
}

/* Ensures card background stays gradient and consistent */
.team-card {
    cursor: pointer;
}
 font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
        }
        .footer {
            background-color: #0a2b3e;
            color: #e0e9f0;
            padding-top: 3rem;
            padding-bottom: 1.5rem;
            margin-top: 2rem;
        }
        .footer h5, .footer h6 {
            color: white;
            font-weight: 600;
            letter-spacing: 0.5px;
        }
        .footer a {
            color: #cbdbe2;
            text-decoration: none;
            transition: color 0.2s ease;
        }
        .footer a:hover {
            color: #ffc107;
            text-decoration: underline;
        }
        .footer .list-unstyled li {
            margin-bottom: 0.5rem;
        }
        .footer .border-top-light {
            border-top: 1px solid rgba(255,255,255,0.15);
        }
        .footer .payment-method-block {
            background: rgba(255,255,255,0.05);
            border-radius: 16px;
            padding: 0.8rem 1rem;
            margin-top: 1.2rem;
            transition: all 0.2s;
        }
        .footer .payment-method-block:hover {
            background: rgba(255,255,255,0.08);
        }
        .footer .card-icon-wrapper {
            display: inline-flex;
            flex-direction: column;
            align-items: center;
            background: white;
            padding: 6px 12px;
            border-radius: 32px;
            color: #1f2f3e;
            font-size: 0.75rem;
            font-weight: 500;
            gap: 0.3rem;
            transition: transform 0.2s ease;
            box-shadow: 0 2px 6px rgba(0,0,0,0.1);
        }
        .footer .card-icon-wrapper i {
            font-size: 1.8rem;
        }
        .footer .card-icon-wrapper:hover {
            transform: translateY(-3px);
        }
        .text-accent {
            color: #ffcd7e;
        }
        .btn-outline-pay {
            border: 1px solid #ffcd7e;
            background: transparent;
            color: #ffcd7e;
            border-radius: 40px;
            padding: 0.3rem 1rem;
            font-size: 0.8rem;
            transition: all 0.2s;
        }
        .btn-outline-pay:hover {
            background: #ffcd7e;
            color: #0a2b3e;
        }
        /* keep original hero / feature styles from external but we embed minimal fallback */
        .min-vh-75 {
            min-height: 75vh;
        }
        .feature-card {
            background: white;
            border-radius: 28px;
            box-shadow: 0 20px 35px -12px rgba(0,0,0,0.08);
            transition: transform 0.3s ease, box-shadow 0.3s;
            height: 100%;
        }
        .feature-card:hover {
            transform: translateY(-6px);
            box-shadow: 0 25px 40px -14px rgba(0,0,0,0.12);
        }
        .btn-primary {
            background-color: #1e6f5c;
            border-color: #1e6f5c;
            border-radius: 50px;
            padding: 0.7rem 1.8rem;
            font-weight: 600;
        }
        .btn-primary:hover {
            background-color: #0e5a48;
            border-color: #0e5a48;
        }
        .bg-light-custom {
            background-color: #f8fbfe;
        }
        .hero-section {
            padding: 4rem 0 2rem;
        }
        .sway-hover {
            transition: transform 0.2s ease;
        }
        .sway-hover:hover {
            transform: translateY(-3px);
        }
        .animate-on-scroll {
            transition: all 0.5s ease-out;
        }
        @media (max-width: 768px) {
            .footer .card-icon-wrapper {
                padding: 4px 10px;
            }
            .footer .card-icon-wrapper i {
                font-size: 1.4rem;
            }
        }
        /* Position the shape absolutely on the right side */
.banner-three__shape-right {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    z-index: 1;
    pointer-events: none; /* so it doesn't block clicks */
    width: auto;
    max-width: 180px; /* adjust as needed */
}

/* Sway animation for the image inside */
.sway__animationX {
    display: inline-block;
    animation: swayX 4s infinite ease-in-out;
}

@keyframes swayX {
    0% { transform: translateX(0); }
    50% { transform: translateX(15px); }
    100% { transform: translateX(0); }
}

/* Responsive: hide or resize on smaller screens if needed */
@media (max-width: 768px) {
    .banner-three__shape-right {
        max-width: 100px;
        opacity: 0.6;
    }
}