:root {
    /* High-contrast color system */
    --navy-primary: #0a1e33;
    --navy-dark: #051220;
    --teal-accent: #2abfc7;
    --teal-light: #a8d8e6;
    --orange-cta: #ff6a3d;
    --orange-hover: #ff5226;
    --gray-light: #f8f9fa;
    --gray-medium: #6c757d;
    --gray-dark: #212529;
    --white: #ffffff;
    --border-radius: 12px;
    --box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

/* Accessibility enhancements */
@media (prefers-contrast: high) {
    :root {
        --navy-primary: #000000;
        --navy-dark: #000000;
        --teal-accent: #008080;
        --orange-cta: #cc5500;
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--gray-dark);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    line-height: 1.2;
    color: var(--navy-primary);
}

.section {
    padding: 5rem 0;
}

.section-title {
    font-size: 2.8rem;
    position: relative;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 70px;
    height: 4px;
    background: var(--orange-cta);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.3rem;
    color: var(--gray-dark);
    max-width: 700px;
    margin: 1.5rem auto 3rem;
    font-weight: 500;
}

/* Navigation */
.navbar-trisafe {
    background-color: var(--navy-primary);
    padding: 1rem 0;
    transition: var(--transition);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.navbar-trisafe.scrolled {
    background-color: var(--navy-dark);
    padding: 0.75rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.navbar-brand {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 1.8rem;
    color: var(--white) !important;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.navbar-brand span {
    background: var(--orange-cta);
    color: var(--white);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.85em;
    font-weight: 700;
}

.nav-link {
    color: var(--white) !important;
    font-weight: 600;
    font-size: 1.05rem;
    margin: 0 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
    background-color: rgba(255, 255, 255, 0.15);
    color: var(--white) !important;
}

.btn-quote {
    background: var(--orange-cta);
    color: var(--white) !important;
    padding: 0.75rem 1.75rem;
    border-radius: 50px;
    font-weight: 700;
    border: none;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(255, 106, 61, 0.4);
    font-size: 1.05rem;
}

.btn-quote:hover {
    background: var(--orange-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 106, 61, 0.55);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--navy-primary) 0%, var(--navy-dark) 100%);
    color: var(--white);
    padding: 7rem 0 6rem;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(83, 179, 203, 0.15) 0%, transparent 70%);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}

.hero-section h1 {
    font-size: 3.8rem;
    color: var(--white);
    margin-bottom: 1.5rem;
}

.hero-section .hero-subtitle {
    font-size: 1.8rem;
    color: var(--teal-light);
    margin-bottom: 2rem;
    font-weight: 600;
}

.hero-tagline {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.92);
    margin-bottom: 2.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Coverage Tiles */
.coverage-tile {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 2.2rem;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    height: 100%;
    border-top: 4px solid var(--teal-accent);
    margin-bottom: 1.5rem;
}

.coverage-tile:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
    border-top-color: var(--orange-cta);
}

.coverage-icon {
    width: 75px;
    height: 75px;
    background: var(--navy-primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 28px;
    margin-bottom: 1.75rem;
    flex-shrink: 0;
}

.coverage-tile h4 {
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
}

.coverage-link {
    color: var(--teal-accent);
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    font-size: 1.05rem;
}

.coverage-link:hover {
    color: var(--orange-cta);
    gap: 0.85rem;
}

/* Pillars Section */
.pillar-card {
    background: var(--gray-light);
    border-radius: var(--border-radius);
    padding: 2.8rem 2rem;
    text-align: center;
    height: 100%;
    transition: var(--transition);
    border: 2px solid transparent;
}

.pillar-card:hover {
    border-color: var(--teal-accent);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.pillar-icon {
    width: 90px;
    height: 90px;
    background: var(--teal-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 36px;
    margin: 0 auto 1.75rem;
    font-weight: 600;
}

.pillar-card h3 {
    font-size: 1.7rem;
    margin-bottom: 1.25rem;
}

/* Steps Section */
.steps-container {
    max-width: 900px;
    margin: 0 auto;
}

.step-item {
    display: flex;
    gap: 2rem;
    margin-bottom: 3.5rem;
    align-items: flex-start;
}

.step-number {
    width: 65px;
    height: 65px;
    background: var(--orange-cta);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 2rem;
    font-weight: 800;
    flex-shrink: 0;
    border: 3px solid var(--white);
    box-shadow: 0 4px 15px rgba(255, 106, 61, 0.4);
}

.step-content h4 {
    font-size: 1.6rem;
    margin-bottom: 0.85rem;
}

/* Path Cards */
.path-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 3rem;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    height: 100%;
    text-align: center;
    border: 3px solid transparent;
}

.path-card:hover {
    border-color: var(--teal-accent);
    transform: translateY(-10px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
}

.path-icon {
    width: 110px;
    height: 110px;
    background: var(--navy-primary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 3.5rem;
    margin: 0 auto 2rem;
    font-weight: 300;
}

.path-card h3 {
    font-size: 2.1rem;
    margin-bottom: 1.5rem;
}

/* Testimonials */
.review-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    box-shadow: var(--box-shadow);
    height: 100%;
    border-left: 4px solid var(--teal-accent);
}

.review-stars {
    color: #ffc107;
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
}

.review-text {
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: 1.75rem;
    color: var(--gray-dark);
    font-weight: 500;
}

.review-author {
    font-weight: 700;
    color: var(--navy-primary);
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
}

.review-company {
    color: var(--gray-medium);
    font-size: 1rem;
}

/* Service Cards */
.service-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--box-shadow);
    height: 100%;
    transition: var(--transition);
    border-left: 4px solid var(--teal-accent);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    border-left-color: var(--orange-cta);
}

.service-card-icon {
    width: 60px;
    height: 60px;
    background: var(--navy-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 28px;
    margin-bottom: 1.5rem;
}

.service-card h4 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

/* Forms */
.form-container {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 3rem;
    box-shadow: var(--box-shadow);
}

/* CTA Section */
.bg-navy {
    background: var(--navy-dark);
    color: var(--white);
    padding: 5.5rem 0;
}

.bg-navy h2 {
    color: var(--white);
    font-size: 2.7rem;
    margin-bottom: 1.5rem;
}

/* Footer */
.footer {
    background: var(--navy-dark);
    color: var(--white);
    padding: 4.5rem 0 2.5rem;
}

.footer-logo {
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    display: inline-block;
}

.footer-logo span {
    color: var(--orange-cta);
}

.footer h5 {
    color: var(--teal-accent);
    font-weight: 700;
    margin-bottom: 1.75rem;
    font-size: 1.3rem;
    position: relative;
    padding-bottom: 8px;
}

.footer h5:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--orange-cta);
}

.footer a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: var(--transition);
    display: block;
    margin-bottom: 0.85rem;
    font-size: 1.05rem;
}

.footer a:hover {
    color: var(--teal-accent);
    padding-left: 8px;
    transform: translateX(3px);
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.05rem;
}

.footer-contact-item i {
    color: var(--teal-accent);
    width: 24px;
    font-size: 1.3rem;
    margin-top: 3px;
}

.footer-disclaimer {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 2rem;
    margin-top: 2.5rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Utility Classes */
.bg-light {
    background-color: var(--gray-light);
}

.text-teal {
    color: var(--teal-accent) !important;
}

.text-navy {
    color: var(--navy-primary) !important;
}

.text-orange {
    color: var(--orange-cta) !important;
}

/* Skip link for accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--orange-cta);
    color: white;
    padding: 8px;
    z-index: 100;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-section h1 {
        font-size: 3.2rem;
    }
    .hero-section .hero-subtitle {
        font-size: 1.6rem;
    }
    .section-title {
        font-size: 2.5rem;
    }
    .step-item {
        flex-direction: column;
        text-align: center;
    }
    .step-number {
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .navbar-nav {
        margin-top: 1rem;
    }
    .hero-section h1 {
        font-size: 2.7rem;
    }
    .hero-section .hero-subtitle {
        font-size: 1.4rem;
    }
    .hero-tagline {
        font-size: 1.2rem;
    }
    .section {
        padding: 3.5rem 0;
    }
    .section-title {
        font-size: 2.2rem;
    }
    .btn-quote {
        width: 100%;
        max-width: 320px;
        margin-bottom: 0.75rem;
    }
    .coverage-icon {
        width: 65px;
        height: 65px;
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 5.5rem 0 5rem;
    }
    .hero-section h1 {
        font-size: 2.4rem;
    }
    .section-title {
        font-size: 2rem;
    }
    .coverage-tile {
        padding: 1.8rem;
    }
    .step-number {
        width: 55px;
        height: 55px;
        font-size: 1.7rem;
    }
}

/* Accessibility Focus States */
a:focus, button:focus, .nav-link:focus, .form-control:focus {
    outline: 3px solid var(--teal-accent);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    body {
        background: white;
        color: black;
    }
    .navbar-trisafe, .hero-section, .bg-navy, .footer {
        background: black !important;
        color: white !important;
    }
    .coverage-tile, .pillar-card, .path-card, .review-card, .footer {
        border: 2px solid currentColor !important;
    }
    .btn-hero-primary, .btn-quote {
        background: #cc5500 !important;
        border: 3px solid #8b3a00 !important;
    }
    .btn-hero-secondary {
        background: white !important;
        color: black !important;
        border: 3px solid black !important;
    }
}