/* ==========================================================================
   D'REALDY WEBSITE
   Brands Page Stylesheet
   File: css/brands.css
   Version: 1.0.0
   ========================================================================== */


/* ==========================================================================
   1. PAGE HERO
   ========================================================================== */

.brands-hero {
    position: relative;
    min-height: 660px;
    display: flex;
    align-items: center;
    overflow: hidden;
    isolation: isolate;
    background:
        radial-gradient(
            circle at 82% 18%,
            rgba(255, 255, 255, 0.13),
            transparent 34%
        ),
        linear-gradient(
            125deg,
            var(--color-primary-darker) 0%,
            var(--color-primary) 56%,
            var(--color-primary-light) 100%
        );
}

.brands-hero::before {
    position: absolute;
    top: -210px;
    right: -130px;
    z-index: -1;
    width: 560px;
    height: 560px;
    content: "";
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-full);
    pointer-events: none;
}

.brands-hero::after {
    position: absolute;
    bottom: -250px;
    left: -150px;
    z-index: -1;
    width: 520px;
    height: 520px;
    content: "";
    background: rgba(178, 138, 88, 0.2);
    border-radius: var(--radius-full);
    filter: blur(2px);
    pointer-events: none;
}

.brands-hero .container {
    position: relative;
    z-index: 1;
    width: 100%;
}

.brands-hero-content {
    max-width: 780px;
    padding-block: var(--space-24);
}

.brands-hero .section-eyebrow {
    color: var(--color-secondary-light);
}

.brands-hero h1 {
    max-width: 760px;
    margin-bottom: var(--space-5);
    color: var(--color-white);
}

.brands-hero .page-hero-description {
    max-width: 680px;
    margin-bottom: var(--space-8);
    font-size: var(--font-size-20);
    color: rgba(255, 255, 255, 0.82);
}

.brands-hero .btn-primary {
    color: var(--color-white);
    background: var(--color-secondary);
    border-color: var(--color-secondary);
}

.brands-hero .btn-primary:hover {
    background: var(--color-secondary-dark);
    border-color: var(--color-secondary-dark);
}


/* ==========================================================================
   2. BRAND INTRODUCTION
   ========================================================================== */

.brands-introduction {
    overflow: hidden;
    background: var(--color-white);
}

.brands-introduction-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(420px, 0.98fr);
    align-items: center;
    gap: var(--space-16);
}

.brands-introduction-content {
    max-width: 650px;
}

.brands-introduction-content .section-title {
    margin-bottom: var(--space-6);
}

.brands-introduction-content p:not(.section-eyebrow) {
    margin-bottom: var(--space-4);
    font-size: var(--font-size-18);
}

.brands-introduction-content p:last-child {
    margin-bottom: 0;
}

.brands-introduction-media {
    position: relative;
}

.brands-introduction-media::before {
    position: absolute;
    top: -24px;
    right: -24px;
    width: 140px;
    height: 140px;
    content: "";
    background: var(--color-secondary-lighter);
    border-radius: var(--radius-full);
}

.brands-introduction-media::after {
    position: absolute;
    bottom: -20px;
    left: -20px;
    width: 110px;
    height: 110px;
    content: "";
    background: var(--color-primary-lighter);
    border-radius: var(--radius-full);
}

.brands-introduction-media .image-placeholder {
    position: relative;
    z-index: 1;
    min-height: 520px;
}


/* ==========================================================================
   3. BRAND PHILOSOPHY
   ========================================================================== */

.brands-philosophy {
    overflow: hidden;
    background:
        linear-gradient(
            180deg,
            var(--color-gray-50) 0%,
            var(--color-white) 100%
        );
}

.brands-philosophy-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-6);
}

.brands-philosophy-card {
    position: relative;
    min-height: 310px;
    padding: var(--space-8);
    overflow: hidden;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xs);
    transition:
        transform var(--transition-base),
        border-color var(--transition-base),
        box-shadow var(--transition-base);
}

.brands-philosophy-card::after {
    position: absolute;
    right: -65px;
    bottom: -65px;
    width: 150px;
    height: 150px;
    content: "";
    background: var(--color-primary-lighter);
    border-radius: var(--radius-full);
    transition: transform var(--transition-slow);
}

.brands-philosophy-card:hover {
    transform: translateY(-6px);
    border-color: var(--color-border-strong);
    box-shadow: var(--shadow-md);
}

.brands-philosophy-card:hover::after {
    transform: scale(1.2);
}

.brands-philosophy-number {
    position: relative;
    z-index: 1;
    display: inline-flex;
    margin-bottom: var(--space-8);
    font-size: var(--font-size-14);
    font-weight: var(--font-weight-bold);
    letter-spacing: var(--letter-spacing-wider);
    color: var(--color-secondary-dark);
}

.brands-philosophy-card h3 {
    position: relative;
    z-index: 1;
    margin-bottom: var(--space-4);
    font-size: var(--font-size-24);
}

.brands-philosophy-card p {
    position: relative;
    z-index: 1;
}


/* ==========================================================================
   4. PRODUCT CATEGORIES
   ========================================================================== */

.product-categories {
    background: var(--color-white);
}

.product-categories-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-6);
}

.product-category-card {
    display: grid;
    grid-template-columns: minmax(180px, 0.78fr) minmax(0, 1.22fr);
    min-height: 360px;
    overflow: hidden;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xs);
    transition:
        transform var(--transition-base),
        border-color var(--transition-base),
        box-shadow var(--transition-base);
}

.product-category-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-border-strong);
    box-shadow: var(--shadow-md);
}

.product-category-featured {
    grid-column: 1 / -1;
    grid-template-columns: minmax(360px, 1fr) minmax(0, 1fr);
    min-height: 460px;
}

.product-category-media {
    position: relative;
    min-width: 0;
    overflow: hidden;
    background: var(--color-gray-100);
}

.product-category-media .image-placeholder {
    min-height: 100%;
    border-radius: 0;
}

.product-category-content {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: var(--space-8);
}

.product-category-label {
    margin-bottom: var(--space-3);
    font-size: var(--font-size-12);
    font-weight: var(--font-weight-bold);
    letter-spacing: var(--letter-spacing-wider);
    color: var(--color-secondary-dark);
    text-transform: uppercase;
}

.product-category-content h3 {
    margin-bottom: var(--space-4);
    font-size: var(--font-size-28);
}

.product-category-content p:not(.product-category-label) {
    margin-bottom: var(--space-5);
}

.product-category-featured .product-category-content {
    padding: var(--space-12);
}

.product-category-featured .product-category-content h3 {
    font-size: var(--font-size-36);
}


/* ==========================================================================
   5. FEATURED PRODUCTS
   ========================================================================== */

.featured-products {
    background: var(--color-surface);
}

.featured-products-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--space-6);
}

.featured-product-card {
    min-width: 0;
    overflow: hidden;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xs);
    transition:
        transform var(--transition-base),
        border-color var(--transition-base),
        box-shadow var(--transition-base);
}

.featured-product-card:hover {
    transform: translateY(-6px);
    border-color: var(--color-border-strong);
    box-shadow: var(--shadow-md);
}

.featured-product-link {
    display: flex;
    height: 100%;
    flex-direction: column;
}

.featured-product-media {
    position: relative;
    overflow: hidden;
    background: var(--color-gray-100);
}

.featured-product-media .image-placeholder {
    min-height: 340px;
    border-radius: 0;
    transition: transform var(--transition-slow);
}

.featured-product-card:hover .featured-product-media .image-placeholder {
    transform: scale(1.025);
}

.featured-product-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    padding: var(--space-6);
}

.featured-product-category {
    margin-bottom: var(--space-2);
    font-size: var(--font-size-12);
    font-weight: var(--font-weight-bold);
    letter-spacing: var(--letter-spacing-wider);
    color: var(--color-secondary-dark);
    text-transform: uppercase;
}

.featured-product-content h3 {
    margin-bottom: var(--space-3);
    font-size: var(--font-size-24);
}

.featured-product-content p:not(.featured-product-category) {
    margin-bottom: var(--space-5);
}

.featured-product-content .link {
    margin-top: auto;
}


/* ==========================================================================
   6. INNOVATION
   ========================================================================== */

.brands-innovation {
    overflow: hidden;
    background: var(--color-white);
}

.brands-innovation-layout {
    display: grid;
    grid-template-columns: minmax(420px, 0.95fr) minmax(0, 1.05fr);
    align-items: center;
    gap: var(--space-16);
}

.brands-innovation-media {
    position: relative;
}

.brands-innovation-media::before {
    position: absolute;
    top: -22px;
    left: -22px;
    width: 120px;
    height: 120px;
    content: "";
    background: var(--color-accent-light);
    border-radius: var(--radius-full);
}

.brands-innovation-media .image-placeholder {
    position: relative;
    z-index: 1;
    min-height: 520px;
}

.brands-innovation-content {
    max-width: 650px;
}

.brands-innovation-content .section-title {
    margin-bottom: var(--space-6);
}

.brands-innovation-content > p:not(.section-eyebrow) {
    margin-bottom: var(--space-4);
    font-size: var(--font-size-18);
}

.brands-feature-list {
    display: grid;
    gap: var(--space-4);
    margin-top: var(--space-7);
    list-style: none;
}

.brands-feature-list li {
    position: relative;
    padding-left: var(--space-8);
    color: var(--color-text);
}

.brands-feature-list li::before {
    position: absolute;
    top: 0.55em;
    left: 0;
    width: 10px;
    height: 10px;
    content: "";
    background: var(--color-accent);
    border-radius: var(--radius-full);
    box-shadow: 0 0 0 5px var(--color-accent-light);
}


/* ==========================================================================
   7. QUALITY COMMITMENT
   ========================================================================== */

.brands-quality {
    background:
        linear-gradient(
            180deg,
            var(--color-primary-lighter) 0%,
            var(--color-white) 100%
        );
}

.brands-quality-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--space-5);
}

.brands-quality-card {
    min-height: 280px;
    padding: var(--space-7);
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(10, 58, 128, 0.12);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xs);
    backdrop-filter: blur(8px);
    transition:
        transform var(--transition-base),
        box-shadow var(--transition-base),
        background-color var(--transition-base);
}

.brands-quality-card:hover {
    background: var(--color-white);
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

.brands-quality-icon {
    display: inline-flex;
    width: 52px;
    height: 52px;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-6);
    font-size: var(--font-size-13);
    font-weight: var(--font-weight-bold);
    color: var(--color-white);
    background: var(--color-primary);
    border-radius: var(--radius-full);
}

.brands-quality-card h3 {
    margin-bottom: var(--space-3);
    font-size: var(--font-size-20);
}


/* ==========================================================================
   8. SUSTAINABILITY
   ========================================================================== */

.brands-sustainability {
    overflow: hidden;
    background: var(--color-white);
}

.brands-sustainability-card {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(400px, 0.95fr);
    min-height: 520px;
    overflow: hidden;
    color: var(--color-white);
    background:
        linear-gradient(
            135deg,
            var(--color-accent-dark) 0%,
            var(--color-accent) 100%
        );
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-lg);
}

.brands-sustainability-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: var(--space-16);
}

.brands-sustainability-content .section-eyebrow {
    color: rgba(255, 255, 255, 0.76);
}

.brands-sustainability-content h2 {
    max-width: 650px;
    margin-bottom: var(--space-5);
    color: var(--color-white);
}

.brands-sustainability-content p {
    max-width: 620px;
    margin-bottom: var(--space-8);
    font-size: var(--font-size-18);
    color: rgba(255, 255, 255, 0.8);
}

.brands-sustainability-media {
    min-width: 0;
}

.brands-sustainability-media .image-placeholder {
    min-height: 100%;
    border-radius: 0;
    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.18),
            rgba(255, 255, 255, 0.05)
        );
    border: 0;
    color: rgba(255, 255, 255, 0.75);
}


/* ==========================================================================
   9. CALL TO ACTION
   ========================================================================== */

.brands-cta {
    position: relative;
    overflow: hidden;
    text-align: center;
    background:
        radial-gradient(
            circle at 20% 20%,
            rgba(178, 138, 88, 0.18),
            transparent 30%
        ),
        radial-gradient(
            circle at 85% 80%,
            rgba(49, 95, 159, 0.22),
            transparent 34%
        ),
        var(--color-primary-darker);
}

.brands-cta::before {
    position: absolute;
    top: -120px;
    right: -100px;
    width: 300px;
    height: 300px;
    content: "";
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: var(--radius-full);
}

.brands-cta-content {
    position: relative;
    z-index: 1;
    max-width: 860px;
    margin-inline: auto;
}

.brands-cta .section-eyebrow {
    color: var(--color-secondary-light);
}

.brands-cta h2 {
    margin-bottom: var(--space-5);
    color: var(--color-white);
}

.brands-cta p {
    max-width: 700px;
    margin: 0 auto var(--space-8);
    font-size: var(--font-size-18);
    color: rgba(255, 255, 255, 0.78);
}

.brands-cta-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: var(--space-4);
}

.brands-cta .btn-primary {
    background: var(--color-secondary);
}

.brands-cta .btn-primary:hover {
    background: var(--color-secondary-dark);
}

.brands-cta .btn-secondary {
    color: var(--color-white);
    background: transparent;
    border-color: rgba(255, 255, 255, 0.6);
}

.brands-cta .btn-secondary:hover {
    color: var(--color-primary-darker);
    background: var(--color-white);
    border-color: var(--color-white);
}


/* ==========================================================================
   10. IMAGE PLACEHOLDERS
   Temporary blocks until official images are added
   ========================================================================== */

.brands-hero + .brands-introduction .image-placeholder,
.brands-introduction .image-placeholder,
.product-categories .image-placeholder,
.featured-products .image-placeholder,
.brands-innovation .image-placeholder,
.brands-sustainability .image-placeholder {
    position: relative;
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: var(--space-6);
    text-align: center;
    background:
        linear-gradient(
            145deg,
            var(--color-primary-lighter),
            var(--color-secondary-lighter)
        );
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
}

.brands-hero + .brands-introduction .image-placeholder::before,
.brands-introduction .image-placeholder::before,
.product-categories .image-placeholder::before,
.featured-products .image-placeholder::before,
.brands-innovation .image-placeholder::before {
    position: absolute;
    top: 14%;
    right: 12%;
    width: 120px;
    height: 120px;
    content: "";
    background: rgba(255, 255, 255, 0.34);
    border-radius: var(--radius-full);
}

.brands-hero + .brands-introduction .image-placeholder::after,
.brands-introduction .image-placeholder::after,
.product-categories .image-placeholder::after,
.featured-products .image-placeholder::after,
.brands-innovation .image-placeholder::after {
    position: absolute;
    bottom: 12%;
    left: 10%;
    width: 80px;
    height: 80px;
    content: "";
    background: rgba(10, 58, 128, 0.08);
    border-radius: var(--radius-full);
}

.image-placeholder span {
    position: relative;
    z-index: 1;
    max-width: 260px;
    font-size: var(--font-size-14);
    font-weight: var(--font-weight-semibold);
    letter-spacing: var(--letter-spacing-wide);
    color: var(--color-primary-dark);
    text-transform: uppercase;
}


/* ==========================================================================
   11. FOCUS AND INTERACTION
   ========================================================================== */

.featured-product-link:focus-visible {
    outline: 3px solid rgba(10, 58, 128, 0.35);
    outline-offset: -3px;
}

.product-category-card,
.featured-product-card,
.brands-philosophy-card,
.brands-quality-card {
    will-change: transform;
}


/* ==========================================================================
   12. RESPONSIVE — LARGE DESKTOP
   ========================================================================== */

@media (max-width: 1200px) {

    .brands-introduction-layout,
    .brands-innovation-layout {
        gap: var(--space-10);
    }

    .featured-products-grid,
    .brands-quality-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .brands-sustainability-content {
        padding: var(--space-12);
    }

}


/* ==========================================================================
   13. RESPONSIVE — TABLET
   ========================================================================== */

@media (max-width: 992px) {

    .brands-hero {
        min-height: 580px;
    }

    .brands-hero-content {
        max-width: 700px;
        padding-block: var(--space-20);
    }

    .brands-introduction-layout,
    .brands-innovation-layout {
        grid-template-columns: 1fr;
    }

    .brands-introduction-content,
    .brands-innovation-content {
        max-width: none;
    }

    .brands-introduction-media,
    .brands-innovation-media {
        max-width: 760px;
    }

    .brands-introduction-media .image-placeholder,
    .brands-innovation-media .image-placeholder {
        min-height: 440px;
    }

    .brands-philosophy-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .brands-philosophy-card:last-child {
        grid-column: 1 / -1;
    }

    .product-categories-grid {
        grid-template-columns: 1fr;
    }

    .product-category-featured {
        grid-column: auto;
    }

    .product-category-card,
    .product-category-featured {
        grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
        min-height: 380px;
    }

    .product-category-featured .product-category-content {
        padding: var(--space-8);
    }

    .brands-sustainability-card {
        grid-template-columns: 1fr;
    }

    .brands-sustainability-media .image-placeholder {
        min-height: 360px;
    }

}


/* ==========================================================================
   14. RESPONSIVE — SMALL TABLET
   ========================================================================== */

@media (max-width: 768px) {

    .brands-hero {
        min-height: 520px;
    }

    .brands-hero::before {
        top: -170px;
        right: -230px;
        width: 470px;
        height: 470px;
    }

    .brands-hero::after {
        bottom: -260px;
        left: -220px;
    }

    .brands-hero-content {
        padding-block: var(--space-16);
    }

    .brands-hero .page-hero-description {
        font-size: var(--font-size-18);
    }

    .brands-philosophy-grid,
    .featured-products-grid,
    .brands-quality-grid {
        grid-template-columns: 1fr;
    }

    .brands-philosophy-card:last-child {
        grid-column: auto;
    }

    .brands-philosophy-card,
    .brands-quality-card {
        min-height: auto;
    }

    .product-category-card,
    .product-category-featured {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .product-category-media .image-placeholder {
        min-height: 320px;
    }

    .product-category-content,
    .product-category-featured .product-category-content {
        padding: var(--space-7);
    }

    .product-category-featured .product-category-content h3 {
        font-size: var(--font-size-28);
    }

    .featured-product-media .image-placeholder {
        min-height: 380px;
    }

    .brands-sustainability-content {
        padding: var(--space-10);
    }

    .brands-sustainability-card {
        border-radius: var(--radius-xl);
    }

}


/* ==========================================================================
   15. RESPONSIVE — MOBILE
   ========================================================================== */

@media (max-width: 576px) {

    .brands-hero {
        min-height: 500px;
    }

    .brands-hero-content {
        padding-block: var(--space-12);
    }

    .brands-hero h1 {
        margin-bottom: var(--space-4);
    }

    .brands-hero .page-hero-description {
        margin-bottom: var(--space-6);
        font-size: var(--font-size-16);
    }

    .brands-hero .btn {
        width: 100%;
    }

    .brands-introduction-media .image-placeholder,
    .brands-innovation-media .image-placeholder {
        min-height: 320px;
    }

    .brands-introduction-media::before,
    .brands-introduction-media::after,
    .brands-innovation-media::before {
        display: none;
    }

    .brands-introduction-content p:not(.section-eyebrow),
    .brands-innovation-content > p:not(.section-eyebrow) {
        font-size: var(--font-size-16);
    }

    .brands-philosophy-card,
    .brands-quality-card {
        padding: var(--space-6);
        border-radius: var(--radius-lg);
    }

    .brands-philosophy-number {
        margin-bottom: var(--space-5);
    }

    .product-category-card,
    .featured-product-card {
        border-radius: var(--radius-lg);
    }

    .product-category-media .image-placeholder,
    .featured-product-media .image-placeholder {
        min-height: 290px;
    }

    .product-category-content,
    .product-category-featured .product-category-content,
    .featured-product-content {
        padding: var(--space-6);
    }

    .brands-feature-list li {
        padding-left: var(--space-7);
    }

    .brands-sustainability-content {
        padding: var(--space-8) var(--space-6);
    }

    .brands-sustainability-content p {
        font-size: var(--font-size-16);
    }

    .brands-sustainability-media .image-placeholder {
        min-height: 280px;
    }

    .brands-cta-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .brands-cta-actions .btn {
        width: 100%;
    }

}


/* ==========================================================================
   16. REDUCED MOTION
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {

    .brands-philosophy-card,
    .product-category-card,
    .featured-product-card,
    .brands-quality-card,
    .featured-product-media .image-placeholder {
        transition: none;
    }

    .brands-philosophy-card:hover,
    .product-category-card:hover,
    .featured-product-card:hover,
    .brands-quality-card:hover {
        transform: none;
    }

    .featured-product-card:hover .featured-product-media .image-placeholder {
        transform: none;
    }

}


/* ==========================================================================
   17. PRINT
   ========================================================================== */

@media print {

    .brands-hero,
    .brands-cta,
    .brands-sustainability-card {
        color: var(--color-black);
        background: transparent;
    }

    .brands-hero {
        min-height: auto;
    }

    .brands-hero::before,
    .brands-hero::after,
    .brands-cta::before,
    .brands-introduction-media::before,
    .brands-introduction-media::after,
    .brands-innovation-media::before {
        display: none;
    }

    .brands-hero h1,
    .brands-cta h2,
    .brands-sustainability-content h2 {
        color: var(--color-black);
    }

    .brands-hero .page-hero-description,
    .brands-cta p,
    .brands-sustainability-content p {
        color: var(--color-text);
    }

}