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

:root {
    --dark: #0d1b2e;
    --dark-card: #112240;
    --dark-footer: #091526;
    --white: #e8eef2;
    --yellow: #DAA520;
    --text-muted: rgba(255, 255, 255, 0.65);
    --border-subtle: rgba(201, 168, 76, 0.2);
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--dark);
    color: var(--white);
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ─── Header ──────────────────────────────────── */

header {
    padding: 75px 0;
    border-bottom: none;
    position: relative;
}

header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--yellow) 30%, var(--yellow) 70%, transparent);
    opacity: 0.4;
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 5rem;
}

.logo-block {
    flex-shrink: 0;
}

.logo {
    font-size: clamp(1.6rem, 4vw, 3rem);
    font-weight: 300;
    letter-spacing: 0.45em;
    text-transform: uppercase;
    color: var(--white);
    line-height: 1;
}

.logo span {
    font-weight: 800;
    color: var(--yellow);
}

.logo-sub {
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-top: 0.6rem;
}

.header-divider {
    width: 1px;
    height: 60px;
    background: var(--border-subtle);
    flex-shrink: 0;
}

.tagline {
    font-size: 0.88rem;
    font-weight: 300;
    color: var(--text-muted);
    line-height: 1.95;
    letter-spacing: 0.03em;
}

/* ─── Brands ──────────────────────────────────── */

.brands {
    padding: 80px 0 90px;
}

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

.brand-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--white);
    border-radius: 6px;
    overflow: hidden;
    background: var(--dark-card);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.brand-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
}

/* Image + overlay */

.brand-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
}

.brand-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.brand-card:hover .brand-image img {
    transform: scale(1.07);
}

.brand-overlay {
    position: absolute;
    inset: 0;
    background: rgba(13, 27, 46, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.brand-card:hover .brand-overlay {
    background: rgba(13, 27, 46, 0.8);
}

.overlay-content {
    text-align: center;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
}

.brand-logo {
    max-width: 160px;
    max-height: 55px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
    drop-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
    transition: filter 0.3s ease;
}

.brand-card:hover .brand-logo {
    filter: brightness(0) saturate(100%) invert(68%) sepia(50%) saturate(500%) hue-rotate(5deg) brightness(95%);
}

.visit-link {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--yellow);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.3s ease 0.05s, transform 0.3s ease 0.05s;
}

.brand-card:hover .visit-link {
    opacity: 1;
    transform: translateY(0);
}

/* Info section below image */

.brand-info {
    padding: 1.5rem 1.5rem 1.75rem;
    border-top: 2px solid var(--yellow);
    flex: 1;
}

.brand-info h3 {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--yellow);
    margin-bottom: 0.75rem;
}

.brand-info p {
    font-size: 0.875rem;
    font-weight: 300;
    color: var(--text-muted);
    line-height: 1.85;
}

/* ─── Footer ──────────────────────────────────── */

footer {
    background: var(--dark-footer);
    padding: 55px 0 35px;
    text-align: center;
    border-top: 1px solid var(--border-subtle);
}

.contact-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 0.03em;
    transition: color 0.2s ease;
}

.contact-link:hover {
    color: var(--yellow);
}

.contact-link svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
    flex-shrink: 0;
}

.copyright {
    font-size: 0.75rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.22);
    letter-spacing: 0.05em;
}

/* ─── Responsive ──────────────────────────────── */

@media (max-width: 900px) {
    .brands-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }

    .header-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
        text-align: left;
    }

    .header-divider {
        width: 40px;
        height: 1px;
    }
}

@media (max-width: 600px) {
    header {
        padding: 60px 0 50px;
    }

    .brands {
        padding: 50px 0 60px;
    }

    .contact-links {
        gap: 1.75rem;
    }
}
