/* GetLifeIns Landing Page - Accessibility Enhanced Styles */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #1f2937; /* Improved contrast */
    background-color: #fff;
}

/* Skip Navigation Link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #1e3a8a;
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    z-index: 1001;
    border-radius: 4px;
    font-weight: 600;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 6px;
    outline: 3px solid #fbbf24;
    outline-offset: 2px;
}

/* Screen Reader Only Text */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 15px 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    border-radius: 8px;
}

.brand-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e3a8a;
}

.header-cta {
    background: linear-gradient(135deg, #16a34a, #15803d);
    color: white;
    padding: 12px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(22, 163, 74, 0.3);
    min-height: 44px; /* Touch target compliance */
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-cta:hover, .header-cta:focus {
    background: linear-gradient(135deg, #15803d, #166534);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(22, 163, 74, 0.4);
    outline: 3px solid #fbbf24;
    outline-offset: 2px;
}

/* Typography */
h1, h2, h3 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #1e3a8a; /* Consistent heading color */
}

h1 {
    font-size: 2rem;
}

h2 {
    font-size: 1.75rem;
    text-align: center;
    margin-bottom: 2rem;
}

h3 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: #374151; /* Improved body text contrast */
}

/* Buttons and CTAs */
.cta-primary, .cta-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 18px 32px;
    font-size: 1.2rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    min-height: 60px; /* Touch target compliance */
    margin: 0 auto;
    max-width: 100%;
}

.cta-primary {
    background: linear-gradient(135deg, #16a34a, #15803d);
    color: white;
    box-shadow: 0 4px 15px rgba(22, 163, 74, 0.3);
}

.cta-primary:hover, .cta-primary:focus {
    background: linear-gradient(135deg, #15803d, #166534);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(22, 163, 74, 0.4);
    outline: 3px solid #fbbf24;
    outline-offset: 2px;
}

.cta-secondary {
    background: #1e3a8a;
    color: white;
    box-shadow: 0 4px 15px rgba(30, 58, 138, 0.3);
}

.cta-secondary:hover, .cta-secondary:focus {
    background: #1e40af;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 58, 138, 0.4);
    outline: 3px solid #fbbf24;
    outline-offset: 2px;
}

.cta-large {
    font-size: 1.4rem;
    padding: 24px 40px;
    min-height: 70px;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%); /* Improved contrast */
    color: white;
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.1;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
    text-align: center;
}

.hero-text {
    order: 2;
}

.hero-image {
    order: 1;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.hero-headline {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    color: white;
}

.hero-subtext {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    color: #f1f5f9; /* Better contrast on blue background */
}

.trust-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 2rem;
}

.badge {
    background: rgba(255, 255, 255, 0.9); /* Improved contrast */
    color: #1e3a8a; /* Dark text on light background */
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Sections */
section {
    padding: 60px 0;
}

.benefits {
    background: #f8fafc;
}

.benefits-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 3rem;
}

.benefit-item {
    text-align: center;
    padding: 30px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid transparent; /* For focus indicator */
}

.benefit-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.benefit-item:focus {
    outline: none;
    border-color: #1e3a8a;
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.2);
}

.benefit-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* How It Works */
.how-it-works {
    background: white;
}

.steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 3rem;
    list-style: none; /* Remove default list styling */
}

.step {
    text-align: center;
    position: relative;
    padding: 20px;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.step:focus {
    outline: none;
    border-color: #1e3a8a;
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.2);
    background: #f8fafc;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #16a34a, #15803d);
    color: white;
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

/* FAQ Section */
.faq {
    background: white;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto 3rem;
}

.faq-item {
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 1rem;
}

.faq-question {
    width: 100%;
    padding: 20px 0;
    background: none;
    border: none;
    text-align: left;
    font-size: 1.2rem;
    font-weight: 600;
    color: #1e3a8a;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    min-height: 44px; /* Touch target compliance */
    border-radius: 4px;
}

.faq-question:hover {
    color: #16a34a;
    background: #f8fafc;
}

.faq-question:focus {
    outline: 3px solid #fbbf24;
    outline-offset: 2px;
    color: #16a34a;
    background: #f8fafc;
}

.faq-icon {
    font-size: 1.5rem;
    font-weight: 300;
    transition: transform 0.3s ease;
}

.faq-question[aria-expanded="true"] .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-answer.active {
    max-height: 200px;
    padding-bottom: 20px;
}

.faq-answer p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #4b5563;
}

/* Final CTA Section */
.final-cta {
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%); /* Improved contrast */
    color: white;
    text-align: center;
}

.final-cta h2 {
    color: white;
    font-size: 2rem;
}

.final-cta p {
    color: #f1f5f9; /* Better contrast */
}

.urgency-points {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin: 2rem 0 3rem;
}

.urgency-item {
    font-size: 1.2rem;
    font-weight: 600;
    padding: 15px;
    background: rgba(255, 255, 255, 0.15); /* Slightly more opaque */
    border-radius: 8px;
    backdrop-filter: blur(10px);
    color: #f1f5f9; /* Better contrast */
}

.cta-subtext {
    margin-top: 1rem;
    font-size: 1rem;
    opacity: 0.9;
    color: #f1f5f9;
}

/* CTA Sections */
.cta-section {
    text-align: center;
    margin-top: 2rem;
}

/* Disclosure Section */
.disclosure {
    background: #f9fafb;
    padding: 60px 0;
    border-top: 1px solid #e5e7eb;
}

.disclosure h2 {
    color: #1e3a8a;
    margin-bottom: 2rem;
    text-align: center;
}

.disclosure-content {
    max-width: 900px;
    margin: 0 auto;
}

.disclosure-content p {
    font-size: 0.8rem;
    line-height: 1.3;
    color: #4b5563;
    margin-bottom: 1.2rem;
    text-align: justify;
}

/* Footer */
.footer {
    background: #1f2937;
    color: white;
    padding: 40px 0;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.footer-content p {
    color: #e5e7eb; /* Better contrast on dark background */
}

.footer-links {
    display: flex;
    gap: 30px;
}

.footer-links a {
    color: #e5e7eb; /* Improved contrast */
    text-decoration: none;
    transition: color 0.3s ease;
    padding: 8px 12px;
    border-radius: 4px;
    min-height: 44px;
    display: flex;
    align-items: center;
}

.footer-links a:hover, .footer-links a:focus {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    outline: 3px solid #fbbf24;
    outline-offset: 2px;
}

/* Sticky Call Button */
.sticky-call-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #16a34a, #15803d);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(22, 163, 74, 0.4);
    z-index: 1000;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
    min-width: 44px; /* Touch target compliance */
    min-height: 44px;
}

.sticky-call-btn:hover, .sticky-call-btn:focus {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(22, 163, 74, 0.5);
    outline: 3px solid #fbbf24;
    outline-offset: 2px;
}

@keyframes pulse {
    0% {
        box-shadow: 0 4px 20px rgba(22, 163, 74, 0.4);
    }
    50% {
        box-shadow: 0 4px 20px rgba(22, 163, 74, 0.4), 0 0 0 10px rgba(22, 163, 74, 0.1);
    }
    100% {
        box-shadow: 0 4px 20px rgba(22, 163, 74, 0.4);
    }
}

/* Tablet Styles */
@media (min-width: 768px) {
    .container {
        padding: 0 40px;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .hero-content {
        grid-template-columns: 1fr 1fr;
        text-align: left;
    }
    
    .hero-text {
        order: 1;
    }
    
    .hero-image {
        order: 2;
    }
    
    .hero-headline {
        font-size: 2.8rem;
    }
    
    .hero-subtext {
        font-size: 1.4rem;
    }
    
    .benefits-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .steps {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .urgency-points {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
    }
    
    .trust-badges {
        gap: 25px;
    }
    
    .badge {
        font-size: 1rem;
        padding: 10px 20px;
    }
    
    .brand-name {
        font-size: 1.75rem;
    }
    
    .header-cta {
        font-size: 1.1rem;
        padding: 14px 24px;
    }
}

/* Desktop Styles */
@media (min-width: 1024px) {
    section {
        padding: 80px 0;
    }
    
    .hero {
        padding: 100px 0;
    }
    
    h1 {
        font-size: 3rem;
    }
    
    h2 {
        font-size: 2.5rem;
    }
    
    .hero-headline {
        font-size: 3.5rem;
    }
    
    .hero-subtext {
        font-size: 1.5rem;
    }
    
    .benefits-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .benefit-item {
        padding: 40px 30px;
    }
    
    .final-cta h2 {
        font-size: 2.5rem;
    }
    
    .cta-primary, .cta-secondary {
        max-width: 400px;
    }
    
    .sticky-call-btn {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
    }
    
    .brand-name {
        font-size: 2rem;
    }
    
    .header-cta {
        font-size: 1.2rem;
        padding: 16px 28px;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .hero {
        background: #000080;
    }
    
    .badge {
        background: white;
        color: black;
        border: 2px solid black;
    }
    
    .benefit-item, .step {
        border: 2px solid #333;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .sticky-call-btn {
        animation: none;
    }
    
    .hero::before {
        display: none;
    }
}

/* Print Styles */
@media print {
    .sticky-call-btn, .skip-link {
        display: none;
    }
    
    .hero {
        background: #1e3a8a;
        color: white;
    }
    
    .cta-primary, .cta-secondary {
        background: #1e3a8a;
        color: white;
        border: 2px solid #1e3a8a;
    }
    
    .faq-answer {
        max-height: none !important;
        padding-bottom: 20px !important;
    }
}

/* Focus Management for Screen Readers */
.focus-trap {
    position: relative;
}

/* Ensure sufficient color contrast for all interactive elements */
button, a, input, select, textarea {
    min-height: 44px;
}

/* High DPI Display Support */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero::before {
        background-size: 50px 50px;
    }
}
