/* 
   Chicago Life Advisors - Style Guide
   Brand Identity: Trustworthy Professional x Empathetic Consultant
   Colors: Deep Navy, Soft Slate Grey, Vibrant Trust Green
*/

:root {
    /* Color Palette */
    --navy-dark: #051024;
    --navy-main: #0B2046;
    --navy-light: #1A365D;
    
    --slate-dark: #334155;
    --slate-main: #64748B;
    --slate-light: #F8FAFC;
    
    --trust-green: #10B981;
    --trust-green-hover: #059669;
    --trust-green-light: #D1FAE5;
    
    --white: #FFFFFF;
    --text-primary: #0F172A;
    --text-muted: #475569;

    --border-color: #E2E8F0;

    /* Shadows & Radii */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-card: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    
    /* Layout */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Styles & Accessibility */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-primary);
    background-color: var(--white);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

/* High Contrast Adjustments Ensure ratio > 4.5:1 */
h1, h2, h3, h4, h5, h6 {
    color: var(--navy-dark);
    line-height: 1.2;
    font-weight: 700;
}

p {
    color: var(--slate-dark);
    margin-bottom: 1rem;
}

a {
    color: var(--trust-green);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--trust-green-hover);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.text-center { text-align: center; }
.bg-light { background-color: var(--slate-light); }
.bg-professional-grey { background-color: #F4F7F9; }
.bg-navy { background-color: var(--navy-main); color: var(--white); }
.bg-navy h2, .bg-navy h3, .bg-navy p { color: var(--white); }
.text-white { color: var(--white); }

.section-header {
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.section-header p {
    font-size: 1.125rem;
    color: var(--slate-main);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--trust-green);
    color: var(--white);
    box-shadow: 0 4px 14px 0 rgba(16, 185, 129, 0.39);
}

.btn-primary:hover {
    background-color: var(--trust-green-hover);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--navy-main);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: var(--slate-light);
    color: var(--navy-dark);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-block {
    width: 100%;
    padding: 1rem;
}

/* Sticky Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: var(--transition);
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-image {
    max-height: 36px;
    width: auto;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--slate-dark);
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: var(--trust-green);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.75rem;
    color: var(--navy-dark);
    cursor: pointer;
}

/* Hero Section */
.hero {
    padding-top: 140px;
    padding-bottom: 6rem;
    background: linear-gradient(135deg, var(--white) 0%, var(--slate-light) 100%);
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.badge {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    background-color: var(--trust-green-light);
    color: var(--trust-green-hover);
    font-weight: 700;
    font-size: 0.875rem;
    border-radius: 2rem;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 3.5rem;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--slate-main);
    margin-bottom: 2rem;
    max-width: 90%;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.hero-trust {
    font-size: 0.95rem;
    color: var(--slate-dark);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-trust i {
    color: #F59E0B;
}

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

.hero-visual::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(26,54,93,0.05) 0%, rgba(255,255,255,0) 70%);
    z-index: -1;
}

.glass-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow-card);
    position: relative;
    max-width: 400px;
    margin: 0 auto;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.icon-circle {
    width: 48px;
    height: 48px;
    background-color: var(--trust-green-light);
    color: var(--trust-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.card-header h4 { margin-bottom: 0; font-size: 1.1rem;}
.card-header p { margin: 0; font-size: 0.85rem; color: var(--trust-green); font-weight: 600;}

.metric {
    height: 12px;
    background-color: var(--slate-light);
    border-radius: 1rem;
    margin-bottom: 1rem;
    overflow: hidden;
}

.metric .fill {
    height: 100%;
    background: linear-gradient(90deg, var(--navy-light), var(--navy-main));
    border-radius: 1rem;
}

.verified-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background-color: var(--white);
    padding: 0.75rem 1.25rem;
    border-radius: 2rem;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    color: var(--navy-main);
    font-size: 0.95rem;
}

.verified-badge i { color: var(--trust-green); font-size: 1.25rem; }

/* Carrier Logos Segment */
.carriers-section {
    padding: 3rem 0;
    border-bottom: 1px solid var(--border-color);
}

.section-label {
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--slate-main);
    margin-bottom: 2rem;
}

.carrier-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 4rem;
    opacity: 0.7;
    filter: grayscale(100%);
    transition: var(--transition);
}

.carrier-logos:hover {
    opacity: 1;
    filter: grayscale(0%);
}

.carrier-img {
    height: 40px;
    object-fit: contain;
}

/* Services */
.services-section {
    padding: 6rem 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    border-color: var(--trust-green);
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--navy-main);
    margin-bottom: 1.5rem;
    background-color: var(--slate-light);
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background-color: var(--trust-green-light);
    color: var(--trust-green);
}

.service-card h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    margin-top: 1rem;
    font-size: 0.95rem;
}

.text-link i { transition: transform 0.2s; }
.text-link:hover i { transform: translateX(4px); }

/* Corporate Solutions */
.corporate-section {
    padding: 6rem 0;
}

.corporate-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.corporate-card {
    background-color: var(--white);
    padding: 2.5rem 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid transparent;
}

.corporate-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--border-color);
    transform: translateY(-3px);
}

.corporate-icon {
    font-size: 2.5rem;
    color: var(--navy-main);
    margin-bottom: 1.25rem;
}

.corporate-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.corporate-cta {
    margin-top: 3rem;
}

/* Process */
.process-section {
    padding: 6rem 0;
}

.process-grid {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    position: relative;
}

.process-step {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 2;
}

.step-number {
    width: 60px;
    height: 60px;
    background-color: var(--navy-main);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 auto 1.5rem;
    box-shadow: 0 0 0 8px rgba(11, 32, 70, 0.1);
}

.process-connector {
    flex: 0 0 100px;
    height: 2px;
    background-color: var(--border-color);
    margin-top: 30px;
}

.process-step h3 {
    margin-bottom: 1rem;
}

/* Testimonials */
.testimonials-section {
    padding: 6rem 0;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}

.testimonial-card {
    background-color: var(--slate-light);
    padding: 3rem;
    border-radius: var(--radius-xl);
    position: relative;
}

.quote-icon {
    position: absolute;
    top: -20px;
    left: 3rem;
    font-size: 3rem;
    color: var(--trust-green);
    opacity: 0.3;
}

.quote-text {
    font-size: 1.125rem;
    font-style: italic;
    color: var(--navy-dark);
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
}

.client-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.client-avatar {
    width: 50px;
    height: 50px;
    background-color: var(--navy-main);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
}

.client-info h4 { margin: 0; font-size: 1rem;}
.client-info p { margin: 0; font-size: 0.85rem; color: var(--slate-main);}

/* Contact */
.contact-section {
    padding: 6rem 0;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.contact-method, .method-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.method-item i {
    font-size: 1.5rem;
    color: var(--trust-green);
}

.contact-methods {
    margin: 2.5rem 0;
}

.calendar-cta h3, .calendar-cta p {
    color: var(--slate-light);
}

.contact-form-wrapper {
    background-color: var(--white);
    border-radius: var(--radius-xl);
    padding: 3rem;
    color: var(--text-primary);
    box-shadow: var(--shadow-card);
}

.lead-form h3 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.form-group input, .form-group select {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus, .form-group select:focus {
    outline: none;
    border-color: var(--trust-green);
    box-shadow: 0 0 0 3px var(--trust-green-light);
}

.privacy-note {
    font-size: 0.8rem;
    color: var(--slate-main);
    margin-top: 1rem;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
}

/* Footer */
.footer {
    background-color: var(--navy-dark);
    color: var(--slate-main);
    padding: 4rem 0 2rem;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-brand .footer-logo {
    display: inline-block;
    margin-bottom: 1rem;
}

.footer-logo .logo-image {
    filter: brightness(0) invert(1);
    max-height: 40px;
}

.footer-brand p {
    color: var(--slate-main);
    max-width: 300px;
}

.footer h4 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-links ul li, .footer-legal ul li {
    margin-bottom: 0.75rem;
}

.footer a {
    color: var(--slate-main);
}

.footer a:hover {
    color: var(--white);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-title { font-size: 3rem; }
    .hero-container, .contact-container { gap: 2rem; }
}

@media (max-width: 900px) {
    .corporate-grid { grid-template-columns: repeat(2, 1fr); }
    .process-grid { flex-direction: column; align-items: center; }
    .process-connector { width: 2px; height: 50px; flex: 0 0 50px; margin: 0; }
    .testimonials-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .corporate-grid { grid-template-columns: 1fr; }
    .hero-container, .contact-container, .footer-container { grid-template-columns: 1fr; }
    .hero { text-align: center; }
    .hero-subtitle { max-width: 100%; margin: 0 auto 2rem; }
    .hero-cta { justify-content: center; }
    .hero-trust { justify-content: center; }
    .desktop-nav { display: none; }
    .nav-links { display: none; }
    .nav-actions .btn { display: none; }
    .mobile-menu-toggle { display: block; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 2.25rem; }
    .section-header h2 { font-size: 2rem; }
    .glass-card { margin: 0 1rem; }
    .hero-cta { flex-direction: column; }
    .btn-large { width: 100%; }
}
