﻿/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    background: #f9f9f9;
    color: #333;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Header */
.header-container {
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.header {
    text-align: center;
    margin-bottom: 2rem;
}

.avatar {
    width: 128px;
    height: 128px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    object-fit: cover;
}

@media (max-width: 800px) {
    .avatar {
        width: 104px;
        height: 104px;
    }
}

.header h1 {
    font-size: 2.5rem;
    margin-bottom: .5rem;
    font-weight: 700;
}

.header p {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 1.5rem;
}

.social {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

    .social a {
        font-size: 1.6rem;
        color: #333;
    }

.btn-primary {
    display: inline-block;
    font-weight: 700;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: 4px;
    border: 2px solid #000;
    background: transparent;
    color: #000;
    position: relative;
    transition: all .2s ease;
    margin-bottom: 2.5rem;
    cursor: pointer;
}

    .btn-primary::before {
        content: '●';
        color: #4caf50;
        font-size: 1rem;
        position: absolute;
        left: 14px;
        top: 50%;
        transform: translateY(-50%);
    }

    .btn-primary:hover {
        background: #000;
        color: #fff;
    }

/* Grid Container */
.grid-container {
    max-width: 1100px;
    margin: 0 auto 2rem;
    padding: 0 1rem;
}

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

.card {
    position: relative;
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    cursor: pointer;
    transition: all .3s ease;
}

.card-icon {
    width: 48px;
    height: 48px;
    background: #eee;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.2rem;
}

    .card-icon i {
        font-size: 1.4rem;
        color: #888;
    }

.card h3 {
    font-size: 1.3rem;
    margin-bottom: .7rem;
    font-weight: 700;
}

.card p {
    font-size: 1rem;
    color: #666;
    margin-bottom: 1rem;
}

.hidden-content {
    display: none;
    margin-top: 1.2rem;
    font-size: 1rem;
    color: #444;
}

.card.expanded .hidden-content {
    display: block;
}

.expand-icon {
    position: absolute;
    top: 2rem;
    right: 2rem;
    width: 28px;
    height: 28px;
    background: #fff;
    border: 0;
    padding: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: background .2s ease;
}

    .expand-icon:hover {
        background: #f1f1f1;
    }

    .expand-icon i {
        font-size: 1.1rem;
        color: #888;
        transition: transform .3s ease;
        transform: rotate(45deg);
    }

.card.expanded {
    grid-column: 1 / -1;
    cursor: default;
}

.card-hidden {
    display: none;
}

    .card.expanded .expand-icon i {
        transform: rotate(225deg);
    }

/* Keyboard focus visibility for icon buttons */
.expand-icon:focus-visible {
    outline: 2px solid #000;
    outline-offset: 2px;
}

/* Accessibility utility: visually hide content but keep for AT */
.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* Next Steps */
.next-steps {
    background: #fff;
    padding: 4rem 0;
}

    .next-steps h2 {
        text-align: center;
        font-size: 2.4rem;
        margin-bottom: 4rem;
        font-weight: 700;
    }

.step {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto 5rem;
    padding: 0 1rem;
}

.step-content {
    font-size: 1.1rem;
    color: #333;
}

    .step-content h4 {
        text-transform: uppercase;
        font-size: 0.9rem;
        letter-spacing: 1px;
        margin-bottom: 0.5rem;
        color: #777;
    }

    .step-content h3 {
        font-size: 2rem;
        font-weight: 600;
        margin-bottom: 1rem;
    }

    .step-content p {
        margin-bottom: 1rem;
    }

.text-right {
    text-align: right;
}

.process-connector {
    --connector-color: #ccc;
    --connector-accent: #000;
    min-height: 250px;
    position: relative;
    width: 100%;
}

    .process-connector::before,
    .process-connector::after {
        background: var(--connector-color);
        border-radius: 999px;
        content: "";
        position: absolute;
    }

    .process-connector::before {
        bottom: 50%;
        left: 50%;
        top: -3.5rem;
        transform: translateX(-50%);
        width: 3px;
    }

    .process-connector::after {
        height: 3px;
        top: 50%;
    }

.process-connector--to-requirements::after {
    left: 50%;
    right: 0;
}

.process-connector--to-delivery::after {
    left: 0;
    right: 50%;
}

.process-connector__node {
    background: #fff;
    border: 3px solid var(--connector-accent);
    border-radius: 50%;
    height: 16px;
    position: absolute;
    top: 50%;
    width: 16px;
    z-index: 1;
}

.process-connector--to-requirements .process-connector__node {
    right: 0;
    transform: translate(50%, -50%);
}

.process-connector--to-delivery .process-connector__node {
    left: 0;
    transform: translate(-50%, -50%);
}

.form-container form {
    display: flex;
    flex-direction: column;
}

.contact-honeypot {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.form-container input, .form-container textarea {
    width: 100%;
    padding: .75rem;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
}

.form-container button {
    padding: .75rem 1.5rem;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    border: none;
    border-radius: 4px;
    background: #000;
    color: #fff;
    cursor: pointer;
    margin: 0 auto;
}

@media (max-width: 800px) {
    .grid {
        grid-template-columns: 1fr;
    }

    .step {
        grid-template-columns: 1fr;
        margin-bottom: 3rem;
    }

    .text-right {
        text-align: left;
    }

    .step--delivery .process-connector {
        order: -1;
    }

    .process-connector {
        min-height: 8rem;
    }

        .process-connector::before {
            bottom: 0;
            left: 50%;
            top: 0;
        }

        .process-connector::after {
            display: none;
        }

    .process-connector__node,
    .process-connector--to-requirements .process-connector__node,
    .process-connector--to-delivery .process-connector__node {
        bottom: 0;
        left: 50%;
        right: auto;
        top: auto;
        transform: translate(-50%, 50%);
    }
}

/* Footer */
.site-footer {
    background: #000;
    color: #fff;
    font-family: 'Inter', sans-serif;
    margin-top: -1px;
    padding: 2rem 1rem;
}

.footer-container {
    align-items: center;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    max-width: 1100px;
    margin: 0 auto;
    text-align: left;
}

    .footer-container strong {
        font-size: 1.5rem;
    }

    .footer-container span {
        color: #ccc;
        font-size: 1rem;
    }

@media (max-width: 800px) {
    .footer-container {
        align-items: flex-start;
        flex-direction: column;
        gap: .5rem;
    }
}
