/**
 * Our Brands Home Block Styles
 *
 * Brand cards grid section with header and CTA.
 * Displays brands from the Brands CPT with logo and home page description.
 *
 * Based on the EverSmith HTML design (home-brands section).
 */

/* ============================================================
   Main Block Container
   ============================================================ */

.our-brands-home-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    padding: 100px 80px 80px;
    width: 100%;
    box-sizing: border-box;
}

/* ============================================================
   Section Header
   ============================================================ */

.our-brands-home-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
    width: 100%;
    max-width: 1280px;
}

/* Label crown: theme .es-icon-titles */

/* Section label styling - uses shared .home-section-label class */
.our-brands-home-header .home-section-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.our-brands-home-header .home-section-label span {
    font-family: 'Inter', system-ui, sans-serif;
    font-weight: 700;
    font-size: 16px;
    line-height: 1.5;
    color: #0097a7;
    text-transform: uppercase;
    white-space: nowrap;
}

/* Title styling with serif teal highlight support */
.our-brands-home-title {
    margin: 0;
    font-family: 'Inter', system-ui, sans-serif;
    font-weight: 700;
    font-size: 40px;
    line-height: normal;
    color: var(--smith-grey, #404a50);
}

/* Serif teal highlight for emphasized words */
.our-brands-home-title .serif-teal {
    font-family: 'PT Serif', serif;
    font-weight: 700;
    font-style: normal;
    color: #0097a7;
}

/* Subtitle paragraph */
.our-brands-home-subtitle {
    margin: 0;
    font-family: 'Inter', system-ui, sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 1.5;
    color: var(--smith-grey, #404a50);
}

/* ============================================================
   Brand Cards Grid
   ============================================================ */

.our-brands-home-row {
    display: flex;
    gap: 40px;
    width: 100%;
    max-width: 1280px;
}

.our-brands-home-card {
    flex: 1 0 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 40px 24px;
    overflow: hidden;
}

/* Brand logo container - dynamic height based on aspect ratio */
.our-brands-home-logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: auto;
    /* height is set dynamically via inline style in PHP based on aspect ratio */
}

.our-brands-home-logo img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Brand description text */
.our-brands-home-card p {
    margin: 0;
    font-family: 'Inter', system-ui, sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.5;
    color: var(--smith-grey, #404a50);
}

/* Photo card in bottom row - no padding, full-bleed image */
.our-brands-home-card--photo {
    padding: 0;
    justify-content: center;
    align-items: center;
}

.our-brands-home-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ============================================================
   CTA Button
   ============================================================ */

.home-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    padding: 8px 32px;
    border-radius: 8px;
    background-color: #e57440;
    color: #fff;
    font-family: 'Inter', system-ui, sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 1.5;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.home-cta-btn:hover {
    background-color: #f26828;
    box-shadow: 0px 6px 14px rgba(1, 13, 20, 0.1);
}

.home-cta-btn:active {
    background-color: #c87400;
    box-shadow: none;
}

.home-cta-btn:focus-visible {
    outline: 2px solid #c87400;
    outline-offset: 2px;
}

/* ============================================================
   Responsive Styles - Tablet
   ============================================================ */

@media (max-width: 1024px) {
    .our-brands-home-block {
        padding: 60px 32px;
    }

    .our-brands-home-title {
        font-size: 32px;
    }

    .our-brands-home-row {
        flex-wrap: wrap;
    }

    .our-brands-home-card {
        flex: 1 1 calc(50% - 12px);
        min-width: 240px;
    }

    .our-brands-home-logo {
        justify-content: center;
    }

    .our-brands-home-card p {
        text-align: center;
    }
}

/* ============================================================
   Responsive Styles - Mobile
   ============================================================ */

@media (max-width: 768px) {
    .our-brands-home-block {
        padding: 48px 20px;
        gap: 24px;
    }

    .our-brands-home-title {
        font-size: 28px;
    }

    .our-brands-home-subtitle {
        font-size: 16px;
    }

    .our-brands-home-row {
        flex-direction: column;
    }

    .our-brands-home-card {
        min-width: 0;
    }

    .our-brands-home-logo {
        justify-content: center;
    }

    .our-brands-home-card p {
        text-align: center;
    }

    .our-brands-home-card--photo {
        justify-content: center;
        padding-left: 30px;
        padding-right: 30px;
    }
}

/* ============================================================
   Small Mobile
   ============================================================ */

@media (max-width: 480px) {
    .our-brands-home-title {
        font-size: 24px;
    }

    .home-cta-btn {
        width: 100%;
        max-width: 300px;
    }
}
