@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap");

:root {
    --primary: #1976d2;

    /* Original balanced blue */
    --secondary: #1de9b6;

    /* Original balanced teal */
    --bg: #f5f8fa;
    --text: #444;

    /* Balanced text for excellent readability */
    --accent: #00bfae;

    /* Original balanced accent */
    --focus-color: #ff6f00;

    /* High contrast focus indicator */
    --logo-gradient: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}

/* 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;
}

/* Skip link for keyboard navigation */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--focus-color);
    color: #fff;
    padding: 8px 16px;
    text-decoration: none;
    font-weight: 600;
    border-radius: 4px;
    z-index: 100;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 6px;
}

/* Enhanced focus indicators for AAA compliance */
*:focus {
    outline: 3px solid var(--focus-color);
    outline-offset: 2px;
}

/* (removed duplicate *:focus-visible rule block) */
*:focus-visible {
    outline: 3px solid var(--focus-color);
    outline-offset: 2px;
}

/* Remove default outline for mouse users, keep for keyboard */
*:focus:not(:focus-visible) {
    outline: none;
}

body {
    margin: 0;
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

/* Enhanced text spacing for readability */
p {
    line-height: 1.7;
    margin-bottom: 1.2em;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    line-height: 1.4;
    margin-bottom: 0.8em;
}

h2 {
    color: var(--primary);
    margin-top: 0;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

h3 {
    color: var(--secondary);
    margin-bottom: 0.25rem;
    font-size: 1.2rem;
}

/* Logo Styles */
.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.logo-icon {
    width: 60px;
    height: 60px;
    filter: drop-shadow(0 2px 8px rgb(0 0 0 / 10%));
    transition: transform 0.3s ease;
}

.logo-icon:hover {
    transform: scale(1.05);
}

.logo-header {
    height: 120px;
    width: auto;
    filter: drop-shadow(0 2px 8px rgb(0 0 0 / 10%));
}

.logo-wordmark {
    font-family: Inter, sans-serif;
    font-size: 2.8rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #fff;
    text-shadow: 0 2px 4px rgb(0 0 0 / 10%);
}

.logo-wordmark .accent {
    color: var(--secondary);
}

/* Compact logo for navigation */
.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--primary);
    font-weight: 600;
    font-size: 1.2rem;
}

.nav-logo .logo-icon {
    width: 48px;
    height: 48px;
}

.nav-logo:hover {
    color: var(--accent);
}

footer .footer-logo .logo-icon {
    width: 44px;
    height: 44px;
}

.nav-logo:hover .logo-icon {
    transform: scale(1.1);
}

.nav-logo:focus {
    outline: 3px solid var(--focus-color);
    outline-offset: 2px;
    border-radius: 4px;
}

header {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    color: #fff;
    padding: 3rem 1rem 2rem;
    text-align: center;
}

header h1 {
    margin: 0.5rem 0 0.25rem;
    font-size: 1.4rem;
    font-weight: 500;
    color: #fff;
    text-align: center;
    opacity: 95%;
}

header p {
    font-size: 1.25rem;
    margin: 0;
    font-weight: 300;
}

nav {
    background: #fff;
    box-shadow: 0 2px 8px rgb(0 0 0 / 4%);
    padding: 0.75rem 1rem;
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    gap: 3rem;
}

nav ul {
    display: flex;
    justify-content: center;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

nav a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s, background-color 0.2s;
    white-space: nowrap;
    padding: 8px 12px;
    border-radius: 4px;
    display: block;
}

nav a:hover {
    color: var(--accent);
    background-color: rgb(21 101 192 / 10%);
}

nav a:focus {
    background-color: rgb(255 111 0 / 10%);
}

/* Hamburger menu styles */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 44px;
    height: 44px;
    background: transparent;
    border: 2px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    padding: 8px;
    z-index: 10;
    transition: background-color 0.2s, border-color 0.2s;
}

.hamburger:hover {
    background-color: rgb(21 101 192 / 10%);
    border-color: var(--primary);
}

.hamburger:focus {
    background-color: rgb(21 101 192 / 10%);
    border-color: var(--focus-color);
}

.hamburger span {
    display: block;
    height: 3px;
    width: 24px;
    background-color: var(--primary);
    border-radius: 2px;
    transition: all 0.3s ease;
    margin: 0 auto;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0%;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

@media (width <= 1024px) {
    nav {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 0.75rem 1rem;
        position: relative;
    }
    
    .hamburger {
        display: flex;
        width: 48px;
        height: 48px;
        padding: 12px;
    }

    .hamburger span {
        height: 4px;
        width: 20px;
    }
    
    nav ul {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        gap: 0;
        margin: 0;
        padding: 0;
        box-shadow: 0 2px 8px rgb(0 0 0 / 10%);
        transform: translateY(-100%);
        opacity: 0%;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 5;
    }
    
    nav ul.active {
        transform: translateY(0);
        opacity: 100%;
        visibility: visible;
    }

    nav ul li {
        border-bottom: 1px solid #f0f4f8;
    }
    
    nav ul li:last-child {
        border-bottom: none;
    }
    
    /* Enhanced mobile accessibility */
    nav a {
        padding: 16px 24px;
        font-size: 1.1rem;
    }

    nav ul li a {
        display: block;
        padding: 1rem 1.5rem;
        transition: background-color 0.2s;
    }
    
    nav ul li a:hover {
        background-color: #f0f4f8;
    }

    nav ul.active li a:focus {
        background-color: rgb(21 101 192 / 10%);
        outline: 2px solid var(--focus-color);
        outline-offset: -2px;
    }

    .logo-container {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .logo-wordmark {
        font-size: 2.2rem;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    section {
        padding: 0 1rem;
    }

    .differentiators {
        flex-direction: column;
    }
}

section {
    max-width: 900px;
    margin: 2.5rem auto;
    padding: 0 1.5rem;
}

.benefits-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgb(0 0 0 / 3%);
    border: 2px solid var(--primary);
}

.benefits-table th {
    background: var(--primary);
    color: #fff;
    font-weight: 600;
    border: 1px solid rgb(255 255 255 / 30%);
    padding: 12px 16px;
    text-align: left;
}

.benefits-table td {
    border: 1px solid #ddd;
    padding: 12px 16px;
    text-align: left;
}

.benefits-table tr:nth-child(even) {
    background: #f0f4f8;
}

.benefits-table tr:hover {
    background-color: rgb(21 101 192 / 5%);
}

.timeline {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin: 2rem 0;
    border-left: 4px solid var(--secondary);
    padding-left: 1.5rem;
    position: relative;
}

.timeline::before {
    content: "";
    position: absolute;
    left: -8px;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--secondary);
    border-radius: 2px;
}

.timeline-step {
    position: relative;
    padding: 16px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.timeline-step::before {
    content: "";
    position: absolute;
    left: -1.6rem;
    top: 0.4rem;
    width: 18px;
    height: 18px;
    background: var(--primary);
    border: 3px solid var(--secondary);
    border-radius: 50%;
    z-index: 1;
}

.timeline-step:hover {
    background-color: rgb(21 101 192 / 3%);
}

.timeline-step strong {
    color: var(--primary);
    font-size: 1.1rem;
}

.differentiators {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin: 1.5rem 0 2.5rem;
}

.diff-card {
    background: #fff;
    border-left: 5px solid var(--secondary);
    border-radius: 8px;
    padding: 1rem 1.25rem;
    flex: 1 1 220px;
    min-width: 220px;
    box-shadow: 0 2px 8px rgb(0 0 0 / 3%);
    border: 1px solid #e0e0e0;
    transition: box-shadow 0.2s, border-color 0.2s;
}

.diff-card:hover {
    box-shadow: 0 4px 12px rgb(0 0 0 / 8%);
    border-color: var(--primary);
}

.contact-section {
    background: linear-gradient(90deg, var(--secondary), var(--primary));
    color: #fff;
    text-align: center;
    padding: 2.5rem 1rem 2rem;
    border-radius: 12px;
    margin-bottom: 2.5rem;
}

footer p {
    margin: 0.5rem 0 0;
    opacity: 90%;
    font-size: 0.9rem;
}

.contact-section h2 {
    color: #fff;
    margin-bottom: 0.5rem;
}

.contact-section p {
    font-size: 1.15rem;
    margin-bottom: 1.5rem;
}

.cta-btn {
    background: #fff;
    color: var(--primary);
    padding: 0.9rem 2.2rem;
    border: 2px solid var(--primary);
    border-radius: 24px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 8px rgb(0 0 0 / 7%);
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
    min-height: 44px;
    min-width: 44px;
    text-align: center;
}

.cta-btn:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    transform: translateY(-1px);
}

.cta-btn:focus {
    outline: 3px solid var(--focus-color);
    outline-offset: 2px;
}

/* Brand enhancement elements */
.section-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.section-icon {
    width: 24px;
    height: 24px;
    opacity: 80%;
}

.brand-accent {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 600;
}

/* Enhanced footer with branding */
footer {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    text-align: center;
    padding: 2rem 1rem 1rem;
    margin-top: 3rem;
}

footer .footer-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
}


/* Enhanced button styles for accessibility */
button {
    min-height: 44px;
    min-width: 44px;
    padding: 12px 24px;
    border: 2px solid transparent;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

button:focus {
    outline: 3px solid var(--focus-color);
    outline-offset: 2px;
}

/* Reduced motion support for accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms;
        animation-iteration-count: 1;
        transition-duration: 0.01ms;
        scroll-behavior: auto;
    }
    
    .logo-icon:hover {
        transform: none;
    }
    
    .nav-logo:hover .logo-icon {
        transform: none;
    }
    
    .cta-btn:hover {
        transform: none;
    }
}

/* High contrast mode support */
@media (prefers-contrast: more) {
    :root {
        --primary: #000;
        --secondary: #000;
        --text: #000;
        --accent: #000;
        --focus-color: #ff0;
        --bg: #fff;
    }
    
    .hamburger span {
        background-color: #000;
    }
    
    nav a {
        border: 1px solid #000;
    }
    
    .cta-btn {
        border: 2px solid #000;
        background: #fff;
        color: #000;
    }
}

/* Print styles for accessibility */
@media print {
    .skip-link,
    .hamburger,
    nav ul {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    a {
        color: #000;
        text-decoration: underline;
    }
    
    h1,
    h2,
    h3 {
        color: #000;
    }
}