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

:root {
    --color-black: #000000;
    --color-dark-red: #8B1A1A;
    --color-white: #FFFFFF;
    --color-light-gray: #F5F5F5;
    --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
}

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

body {
    font-family: var(--font-primary);
    background-color: var(--color-black);
    color: var(--color-white);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Skip to main content link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--color-dark-red);
    color: var(--color-white);
    padding: 0.75rem 1rem;
    text-decoration: none;
    z-index: 100;
    font-weight: 600;
}

.skip-link:focus {
    top: 0;
    outline: 3px solid var(--color-white);
    outline-offset: 2px;
}

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

/* Header */
header {
    padding: 2rem 1.5rem;
    background-color: var(--color-black);
}

.logo-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: flex-start;
}

.logo {
    max-width: 300px;
    height: auto;
    display: block;
}

/* Main Content */
main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
}

.hero {
    max-width: 800px;
    width: 100%;
    text-align: center;
}

.hero h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.content {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.intro-text {
    font-size: 1.125rem;
    font-weight: 400;
    color: var(--color-white);
    line-height: 1.8;
    margin-top: -1rem;
}

.services-text {
    font-size: 1.125rem;
    color: var(--color-white);
    line-height: 1.8;
    margin-bottom: 1rem;
    font-weight: 600;
}

.services-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.services-table-container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    overflow-x: auto;
}

.services-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 auto;
}

.services-table td {
    padding: 1rem;
    vertical-align: top;
    text-align: left;
}

.service-toggle {
    background: none;
    border: none;
    color: var(--color-white);
    font-family: var(--font-primary);
    font-size: 1.125rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.25rem;
    text-align: left;
    width: 100%;
    min-height: 44px;
    transition: color 0.3s ease;
    border-radius: 2px;
}

.service-toggle:hover,
.service-toggle:focus {
    color: var(--color-dark-red);
    outline: 2px solid var(--color-dark-red);
    outline-offset: 4px;
}

.service-toggle:focus-visible {
    outline: 3px solid var(--color-dark-red);
    outline-offset: 2px;
    background-color: rgba(139, 26, 26, 0.1);
}

.service-arrow {
    color: var(--color-dark-red);
    font-weight: bold;
    font-size: 1.25rem;
    transition: transform 0.3s ease;
    display: inline-block;
    min-width: 1.25rem;
}

.service-name {
    font-size: 1.125rem;
    color: var(--color-white);
    line-height: 1.8;
}

.services-sublist {
    list-style: none;
    margin-top: 0.75rem;
    margin-left: 2rem;
    padding: 0;
    transition: opacity 0.3s ease;
}

.services-sublist[hidden] {
    display: none;
}

.services-sublist li {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 0.5rem;
    line-height: 1.6;
    position: relative;
    padding-left: 1.25rem;
}

.services-sublist li::before {
    content: "•";
    color: var(--color-dark-red);
    position: absolute;
    left: 0;
    font-size: 1.25rem;
    line-height: 1.4;
}

.contact-text {
    font-size: 1.125rem;
    color: var(--color-white);
    line-height: 1.8;
}

.contact-link {
    color: var(--color-dark-red);
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
    transition: color 0.3s ease, text-decoration-color 0.3s ease;
    font-weight: 500;
}

.contact-link:hover,
.contact-link:focus {
    color: #A52A2A;
    text-decoration-color: #A52A2A;
    outline: 2px solid var(--color-dark-red);
    outline-offset: 4px;
}

.contact-link:focus-visible {
    outline: 3px solid var(--color-dark-red);
    outline-offset: 2px;
    background-color: rgba(139, 26, 26, 0.1);
    padding: 2px 4px;
    border-radius: 2px;
}

/* Footer */
footer {
    padding: 2rem 1.5rem;
    text-align: center;
    background-color: var(--color-black);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

footer p {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Responsive Design */
@media (max-width: 768px) {
    header {
        padding: 1.5rem 1rem;
    }

    .logo {
        max-width: 250px;
    }

    main {
        padding: 2rem 1rem;
    }

    .intro-text {
        font-size: 1rem;
        margin-top: -0.75rem;
    }

    .hero h1 {
        font-size: 1.75rem;
    }

    .services-text {
        font-size: 1rem;
    }

    .services-table td {
        padding: 0.75rem;
    }

    .service-toggle {
        font-size: 1rem;
    }

    .service-name {
        font-size: 1rem;
    }

    .services-sublist li {
        font-size: 0.9375rem;
    }

    .contact-text {
        font-size: 1rem;
    }

    footer {
        padding: 1.5rem 1rem;
    }
}

@media (max-width: 480px) {
    .logo {
        max-width: 200px;
    }

    .intro-text {
        font-size: 0.9375rem;
        margin-top: -0.5rem;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    .services-text {
        font-size: 0.9375rem;
    }

    .services-table {
        display: block;
    }

    .services-table tbody {
        display: block;
    }

    .services-table tr {
        display: block;
        margin-bottom: 1rem;
    }

    .services-table td {
        display: block;
        padding: 0.5rem 0;
        width: 100% !important;
    }

    .service-toggle {
        font-size: 0.9375rem;
    }

    .service-name {
        font-size: 0.9375rem;
    }

    .services-sublist li {
        font-size: 0.875rem;
    }

    .contact-text {
        font-size: 0.9375rem;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .contact-link {
        color: var(--color-white);
        text-decoration: underline;
    }
    
    .contact-link:hover,
    .contact-link:focus {
        background-color: var(--color-dark-red);
        color: var(--color-white);
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .service-arrow {
        transition: none !important;
    }
    
    .services-sublist {
        transition: none !important;
    }
}
