/* Gateway Page Styles */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --accent: #8b7355;
    --accent-hover: #a08660;
    --text-primary: #e6edf3;
    --text-muted: #8b949e;
    --border: rgba(255, 255, 255, 0.08);
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-bg-hover: rgba(255, 255, 255, 0.06);
}

html, body {
    height: 100%;
}

body {
    background-color: #0a0a0a;
    color: var(--text-primary);
    font-family: 'DM Sans', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem 1.5rem;
}

.gateway {
    width: 100%;
    max-width: 860px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
}

/* Name heading */
.gateway-heading {
    text-align: center;
}

.gateway-heading h1 {
    font-family: 'Crimson Pro', serif;
    font-weight: 300;
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    color: var(--text-muted);
    letter-spacing: 0.04em;
}

.gateway-heading h1 span {
    color: var(--text-primary);
    font-weight: 400;
}

/* Company cards row */
.gateway-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    width: 100%;
}

.gateway-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    padding: 2.5rem 2rem;
    background: var(--card-bg);
    border: 1px solid var(--border);
    text-decoration: none;
    color: var(--text-primary);
    transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
    cursor: pointer;
    min-height: 200px;
}

.gateway-card:hover {
    border-color: var(--accent);
    background: var(--card-bg-hover);
    transform: translateY(-3px);
}

.card-logo {
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-logo img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 50%;
    opacity: 0.9;
    transition: opacity 0.25s ease;
}

.gateway-card:hover .card-logo img {
    opacity: 1;
}

/* Fallback when image is hidden */
.card-logo-text {
    font-family: 'Crimson Pro', serif;
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: 0.06em;
    color: var(--text-primary);
    display: none;
}

.card-logo img[data-error="true"] + .card-logo-text,
.card-logo img.error + .card-logo-text {
    display: block;
}

.card-name {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-muted);
    transition: color 0.25s ease;
}

.gateway-card:hover .card-name {
    color: var(--accent);
}

/* Divider */
.gateway-divider {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.gateway-divider::before,
.gateway-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.gateway-divider span {
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    white-space: nowrap;
    flex-shrink: 0;
}

/* Portfolio link */
.gateway-portfolio {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.25s ease, gap 0.25s ease;
    padding: 0.5rem 0;
}

.gateway-portfolio:hover {
    color: var(--text-primary);
    gap: 0.75rem;
}

.gateway-portfolio .arrow {
    display: inline-block;
    transition: transform 0.25s ease;
}

.gateway-portfolio:hover .arrow {
    transform: translateX(3px);
}

/* Responsive */
@media (max-width: 600px) {
    .gateway-cards {
        grid-template-columns: 1fr;
        max-width: 320px;
    }

    .gateway-card {
        min-height: 160px;
        padding: 2rem 1.5rem;
    }
}
