/**
 * About Page Styles — 5-section redesign
 * S1: Hero banner  S2: About intro  S3: What We Offer
 * S4: House of Brands  S5: Local Roots, Global Reach
 */

/* ==========================================
   SECTION 1 — HERO BANNER
   ========================================== */

.about-hero {
    position: relative;
    height: 409px;
    background: #2D1F1F;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-hero-hand {
    position: absolute;
    pointer-events: none;
}

.about-hero-hand--left {
    width: 580px;
    left: -19px;
    top: 67%;
    transform: translateY(-50%) rotate(-26deg);
}

.about-hero-hand--right {
    width: 620px;
    right: -22px;
    top: -16px;
    transform: rotate(159.81deg);
}

.about-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 0 20px;
}

.about-hero-content h1 {
    font-family: Georgia, 'Canela Text', serif;
    font-size: 64px;
    font-weight: 400;
    color: #fff;
    margin: 0;
    text-transform: capitalize;
    line-height: 1.1;
}

.about-hero-content p {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #fff;
    margin: 0;
    line-height: 1.5;
}

/* ==========================================
   SECTION 2 — ABOUT QTRSHOE (INTRO)
   ========================================== */

.about-intro {
    padding: 128px 150px;
    background: #fff;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.about-intro-label {
    font-family: 'Inter', sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: rgba(45, 31, 31, 0.6);
    line-height: 1.2;
}

.about-intro-text {
    font-family: Georgia, 'Canela Text', serif;
    font-size: 48px;
    font-weight: 400;
    color: #2D1F1F;
    margin: 0;
    max-width: 1174px;
    line-height: 1.3;
}

/* ==========================================
   SECTION 3 — WHAT WE OFFER
   ========================================== */

.about-offer {
    padding: 96px 150px;
    background: #fff;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.about-offer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.about-offer-header h2 {
    font-family: 'Inter', sans-serif;
    font-size: 32px;
    font-weight: 600;
    color: #2D1F1F;
    margin: 0;
    line-height: 1.2;
}

.about-offer-explore {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    background: #2D1F1F;
    color: #fff;
    border-radius: 900px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    transition: opacity 0.2s;
}

.about-offer-explore:hover {
    opacity: 0.85;
}

.about-offer-cards {
    display: flex;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 16px;
    overflow: hidden;
}

.about-offer-card {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
    gap: 24px;
    border-right: 1px solid rgba(0, 0, 0, 0.2);
    min-width: 0;
}

.about-offer-card:last-child {
    border-right: none;
}

.about-offer-card-name {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #2D1F1F;
    text-transform: capitalize;
}

.about-offer-card img {
    width: 100%;
    max-width: 200px;
    height: 200px;
    object-fit: contain;
    align-self: center;
}

/* ==========================================
   SECTION 4 — HOUSE OF BRANDS
   ========================================== */

.about-brands.brands-on-qatarshoes {
    padding: 128px 40px;
    background: #fff;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    position: relative;
    z-index: 1;
}

.about-brands .brands-header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 0;
}

.about-brands .brands-header h2 {
    font-size: 32px;
    font-weight: 600;
    margin: 0;
    color: #2D1F1F;
    font-family: Inter, sans-serif;
    text-transform: capitalize;
    line-height: 28px;
    text-align: center;
}

.about-brands .brands-grid {
    align-self: stretch;
    padding: 1px;
    display: flex;
    align-items: flex-start;
    gap: 24px;
}

.about-brands .brand-item {
    flex: 1 1 0;
    height: 208.75px;
    background: white;
    overflow: hidden;
    border-radius: 16px;
    outline: 1px solid #E0DCD3;
    outline-offset: -1px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background-color 0.2s ease;
    min-width: 0;
}

.about-brands .brand-item:hover {
    background: #f9f9f9;
}

.about-brands .brand-number {
    display: none !important;
}

.about-brands .brand-image-container {
    flex: 1 1 0;
    height: 359.25px;
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 120%;
    flex-shrink: 0;
}

.about-brands .brand-image-container img {
    width: 239.25px;
    max-width: 299.25px;
    max-height: 359.25px;
    object-fit: contain;
}

.about-brands .brand-name-text {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-brands .brands-loading {
    padding: 60px;
    text-align: center;
    color: #999;
    font-size: 14px;
}

/* ==========================================
   SECTION 5 — LOCAL ROOTS, GLOBAL REACH
   ========================================== */

.about-reach {
    padding: 128px 150px;
    background: #fff;
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.about-reach-title {
    font-family: 'Inter', sans-serif;
    font-size: 32px;
    font-weight: 600;
    color: #2D1F1F;
    margin: 0;
    line-height: 1.2;
    text-align: center;
}

/* Desktop rows */
.about-reach-rows {
    display: flex;
    flex-direction: column;
}

.about-reach-row {
    display: flex;
    align-items: center;
    padding: 32px 0;
    border-bottom: 1px solid #E0DCD3;
}

.about-reach-row-title {
    font-family: 'Inter', sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: #2D1F1F;
    flex: 0 0 50%;
    line-height: 1.4;
}

.about-reach-row-desc {
    flex: 0 0 50%;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #2D1F1F;
    margin: 0;
    line-height: 1.6;
}

/* Mobile cards — hidden on desktop */
.about-reach-mobile {
    display: none;
}

/* ==========================================
   RESPONSIVE — MOBILE (max-width: 767px)
   ========================================== */

@media (max-width: 767px) {

    /* S1 — Hero */
    .about-hero {
        height: 239px;
    }

    .about-hero-hand--left {
        width: 180px;
        left: -41px;
        top: 88%;
        transform: translateY(-50%) rotate(-36deg);
    }

    .about-hero-hand--right {
        width: 200px;
        right: -40px;
        top: 10px;
        transform: rotate(159.81deg);
    }

    .about-hero-content h1 {
        font-size: 32px;
    }

    .about-hero-content p {
        font-size: 14px;
        width: 286px;
    }

    /* S2 — Intro */
    .about-intro {
        padding: 64px 20px;
        gap: 20px;
    }

    .about-intro-label {
        font-size: 14px;
    }

    .about-intro-text {
        font-size: 28px;
        line-height: 1.35;
    }

    /* S3 — What We Offer */
    .about-offer {
        padding: 64px 20px;
        gap: 24px;
    }

    .about-offer-header h2 {
        font-size: 24px;
    }

    .about-offer-cards {
        display: flex;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        gap: 12px;
        border: none;
        border-radius: 0;
        padding-bottom: 8px;
    }

    .about-offer-card {
        flex: 0 0 200px;
        border: 1px solid rgba(0, 0, 0, 0.2);
        border-radius: 16px;
        border-right: 1px solid rgba(0, 0, 0, 0.2);
        scroll-snap-align: start;
        padding: 24px 16px;
    }

    .about-offer-card img {
        max-width: 150px;
        height: 150px;
    }

    /* S4 — Brands */
    .about-brands.brands-on-qatarshoes {
        padding: 40px 15px;
        gap: 20px;
    }

    .about-brands .brands-header h2 {
        font-size: 24px;
        line-height: 28px;
    }

    .about-brands .brands-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }

    .about-brands .brand-item {
        flex: unset;
        width: auto;
        height: auto;
        aspect-ratio: 1/1;
        border-radius: 7.48px;
        outline: none;
        border: 0.47px solid #E5E5E5;
        overflow: hidden;
    }

    .about-brands .brand-image-container {
        flex: 0 0 120%;

    }

    .about-brands .brand-image-container img {
        width: 120%;
        height: 120%;
        max-width: none;
        max-height: none;
        object-fit: contain;
    }

    /* S5 — Local Roots */
    .about-reach {
        padding: 64px 20px;
        gap: 24px;
    }

    .about-reach-title {
        font-size: 24px;
    }

    /* Hide desktop rows, show mobile cards */
    .about-reach-rows {
        display: none;
    }

    .about-reach-mobile {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .about-reach-mobile-cards {
        border: 1px solid #E0DCD3;
        border-radius: 16px;
        overflow: hidden;
    }

    .about-reach-mobile-card {
        padding: 24px;
        display: flex;
        flex-direction: column;
        gap: 8px;
        border-bottom: 1px solid #E0DCD3;
    }

    .about-reach-mobile-card:last-child {
        border-bottom: none;
    }

    .about-reach-mobile-icon {
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(45, 31, 31, 0.06);
        border-radius: 10px;
        margin-bottom: 4px;
    }

    .about-reach-mobile-card-title {
        font-family: 'Inter', sans-serif;
        font-size: 16px;
        font-weight: 600;
        color: #2D1F1F;
        text-transform: uppercase;
    }

    .about-reach-mobile-card-desc {
        font-family: 'Inter', sans-serif;
        font-size: 14px;
        font-weight: 400;
        color: #555;
        margin: 0;
        line-height: 1.5;
    }

    .about-reach-mobile-summary {
        font-family: 'Inter', sans-serif;
        font-size: 14px;
        font-weight: 400;
        color: rgba(45, 31, 31, 0.6);
        margin: 0;
        line-height: 1.6;
    }
}

/* ==========================================
   RESPONSIVE — TABLET (768px - 1023px)
   ========================================== */

@media (min-width: 768px) and (max-width: 1023px) {

    /* S1 — Hero */
    .about-hero {
        height: 320px;
    }

    .about-hero-hand--left {
        width: 380px;
        left: -90px;
    }

    .about-hero-hand--right {
        width: 400px;
        right: -90px;
        top: -30px;
    }

    .about-hero-content h1 {
        font-size: 48px;
    }

    /* S2 — Intro */
    .about-intro {
        padding: 80px 40px;
    }

    .about-intro-text {
        font-size: 36px;
    }

    /* S3 — What We Offer */
    .about-offer {
        padding: 80px 40px;
    }

    /* S4 — Brands */
    .about-brands.brands-on-qatarshoes {
        padding: 80px 24px;
    }

    .about-brands .brands-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 16px;
    }

    .about-brands .brand-item {
        flex: unset;
        height: auto;
        aspect-ratio: 1/1;
    }

    /* S5 — Local Roots */
    .about-reach {
        padding: 80px 40px;
    }

    .about-reach-row-title {
        min-width: 220px;
        font-size: 20px;
    }

    .about-reach-row {
        gap: 40px;
    }
}

/* Hide scrollbar on offer cards */
.about-offer-cards::-webkit-scrollbar {
    display: none;
}

.about-offer-cards {
    -ms-overflow-style: none;
    scrollbar-width: none;
}
