/* ========================================
   BRANDS LANDING PAGE STYLES
   ======================================== */

/* Hero Section */
.brands-hero {
    position: relative;
    min-height: 450px;
    overflow: visible;
    margin-bottom: 80px;
}

/* Hero Background Image - Full Width */
.brands-hero__image {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1;
    overflow: hidden;
}

.brands-hero__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Hero Content Container */
.brands-hero__content {
    position: relative;
    z-index: 2;
    min-height: 450px;
    display: flex;
    align-items: center;
}

/* Hero Text Box - Beige Box on Left */
.brands-hero__text {
    position: absolute;
    bottom: 0;
    left: 10%;
    transform: translateY(20%);
    background-color: #EAD5AF; /* Primary Gold */
    border-radius: 0px 0px 30px 0px; /* Bottom-right corner rounded */
    padding: 60px 50px;
    max-width: 557px;
    width: 100%;
    margin-left: 0;
    z-index: 5;
}

.brands-hero__title {
    font-size: 3.5rem;
    color: #1e3a5f; /* Dark blue */
    margin-bottom: 20px;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

.brands-hero__description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #333;
}

/* Grid Section */
.brands-grid-section {
    padding: 80px 0;
    background-color: #fff;
}

.brands-grid-section__title {
    font-size: 2.5rem;
    color: #1e3a5f;
    text-align: center;
    margin-bottom: 60px;
    line-height: 1.3;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    text-transform: uppercase;
    letter-spacing: -0.01em;
}

/* Brand Cards Grid */
.brands-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

/* ----------------------------------------
   Individual Brand Card — Hover Redesign
   ----------------------------------------
   Desktop: shows only logo, overlay appears on hover.
   Mobile:  whole card is clickeable via .brand-card__mobile-link,
            overlay is hidden entirely.
   ---------------------------------------- */
.brand-card {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    width: 100%;
    max-width: 402px;
    aspect-ratio: 1 / 1;
    margin: 0 auto;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.brand-card:hover {
    box-shadow: 0 0 0 2px #f5f5f5;
}

/* Mobile full-card link (covers entire card, sits above logo, below overlay) */
.brand-card__mobile-link {
    display: none;
    position: absolute;
    inset: 0;
    z-index: 10;
}

/* Logo wrapper — fills the entire card, image centered within */
.brand-card__logo {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
    z-index: 1;
    transition: transform 0.3s ease;
}

.brand-card__logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Subtle scale on hover (logo) */
.brand-card:hover .brand-card__logo {
    transform: scale(1.04);
}

/* Logo-only variant */
.brand-card--logo-only .brand-card__logo {
    padding: 32px;
}

/* Overlay — hidden by default, revealed on hover */
.brand-card__overlay {
    position: absolute;
    inset: 0;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    text-align: left;
    padding: 36px;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.35s ease, transform 0.35s ease;
    z-index: 2;
}

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

/* Card content inside overlay */
.brand-card__title {
    font-size: 1.5rem;
    color: #111111;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.brand-card__description {
    font-size: 1rem;
    line-height: 1.6;
    color: #333333;
    margin-bottom: 20px;
}

.brand-card__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    color: #111111;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: gap 0.3s ease;
    position: relative;
    z-index: 3;
}

.brand-card__link:hover {
    gap: 12px;
    color: #0f2847;
}

.brand-card__link-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid #111111;
    font-size: 0.95rem;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.brand-card__link:hover .brand-card__link-icon {
    background-color: #111111;
    color: #ffffff;
    transform: translateX(4px);
}

/* Empty State */
.brands-grid__empty {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    padding: 60px 20px;
    grid-column: 1 / -1;
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

/* Large Tablets and Small Desktops */
@media (max-width: 1200px) {
    .brands-hero__text {
        max-width: 500px;
        padding: 50px 40px;
    }
    
    .brands-hero__title {
        font-size: 3rem;
    }
    
    .brands-grid-section__title {
        font-size: 2.2rem;
    }
}

/* Tablets */
@media (max-width: 992px) {
    .brands-hero {
        min-height: 400px;
    }
    
    .brands-hero__content {
        min-height: 400px;
    }
    
    .brands-hero__text {
        max-width: 450px;
        padding: 40px 30px;
        border-radius: 0px 0px 20px 0px;
    }
    
    .brands-hero__title {
        font-size: 2.5rem;
    }
    
    .brands-hero__description {
        font-size: 1rem;
    }
    
    .brands-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .brands-grid-section__title {
        font-size: 2rem;
        margin-bottom: 40px;
    }
}

/* Large Mobile — switch to direct-click mode */
@media (max-width: 768px) {
    .brands-hero {
        min-height: 350px;
    }
    
    .brands-hero__content {
        min-height: 350px;
    }
    
    .brands-hero__text {
        max-width: 100%;
        padding: 30px 25px;
        border-radius: 0px 0px 15px 0px;
        left: 0;
    }
    
    .brands-hero__title {
        font-size: 2rem;
    }
    
    .brands-hero__description {
        font-size: 0.95rem;
    }
    
    .brands-grid-section {
        padding: 60px 0;
    }
    
    .brands-grid-section__title {
        font-size: 1.75rem;
    }

    /* Show the full-card mobile link */
    .brand-card__mobile-link {
        display: block;
    }

    /* Kill hover overlay on touch devices */
    .brand-card__overlay {
        display: none;
    }

    /* No hover effects on mobile */
    .brand-card:hover .brand-card__logo {
        transform: none;
    }
}

/* Mobile */
@media (max-width: 576px) {
    .brands-hero {
        min-height: 300px;
        margin-bottom: 0px;
    }
    
    .brands-hero__content {
        min-height: 300px;
    }
    
    .brands-hero__text {
        padding: 25px 20px;
        border-radius: 0px;
    }
    
    .brands-hero__title {
        font-size: 1.75rem;
        margin-bottom: 15px;
    }
    
    .brands-hero__description {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .brands-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .brands-grid-section__title {
        font-size: 1.5rem;
        margin-bottom: 30px;
    }
    
    .brand-card {
        max-width: 402px;
        min-height: unset;
    }
    
    .brand-card__title {
        font-size: 1.3rem;
    }
    
    .brand-card__description {
        font-size: 0.95rem;
    }
}

/* Extra Small Mobile */
@media (max-width: 375px) {
    .brands-hero__title {
        font-size: 1.5rem;
    }
    
    .brands-hero__description {
        font-size: 0.85rem;
    }
    
    .container {
        padding: 0 15px;
    }
}