/**
 * AKS Theme - About Us Page Styles
 * Path: wp-content/themes/aks/assets/css/about.css
 */

/* ==========================================================================
   GLOBAL CONTAINER (Exactly matching homepage blocks grid)
   ========================================================================== */
.aks-about-main {
    max-width: 1300px;
    margin: 0 auto !important;
    width: 100%;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box;
}

/* Horizontal padding below 1300px viewport, matching .aks-homepage-blocks-wrapper */
@media (max-width: 1300px) {
    .aks-about-main {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}

/* ==========================================================================
   1. HERO SECTION (Strict Left-Alignment Spec)
   ========================================================================== */
/* ==========================================================================
   HEADER BORDER OVERRIDES (Matches Homepage Header Vibe)
   ========================================================================== */
.aks-header-wrapper,
.aks-header-row-3 {
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
}

/* ==========================================================================
   1. HERO COVER BANNER (Matches Homepage Slider Vibe & Layout)
   ========================================================================== */
.aks-about-hero-wrapper {
    position: relative;
    width: 100%;
    margin-top: -1px !important;
    background: transparent;
    padding-top: 0;
    padding-bottom: 0;
}

.aks-about-hero-wrapper::before {
    content: '';
    position: absolute;
    top: -5px; 
    left: 0; 
    width: 100%; 
    height: 160px; /* Extends header background down */
    background-color: #44485d;
    pointer-events: none;
    z-index: 0;
}

.aks-about-hero-wrapper::after {
    content: '';
    position: absolute;
    top: -5px; 
    left: 5px; 
    width: calc(100% - 10px); 
    height: 160px; 
    background-image: url('../user-pattern.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: bottom center;
    filter: invert(1) contrast(500%);
    mix-blend-mode: screen;
    opacity: 0.15;
    pointer-events: none;
    z-index: 1;
}

.aks-about-cover-container {
    position: relative;
    width: 100%;
    height: 300px; /* Smaller in height than the 440px homepage slider */
    background-color: #44485d;
    overflow: hidden;
    margin-top: 0 !important;
    margin-bottom: 40px !important;
    border-radius: 16px;
    box-shadow: none;
    z-index: 2;
    padding: 0 !important;
}

.aks-about-cover-container .wp-block-html {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    pointer-events: none !important;
    z-index: 1 !important;
}

.aks-about-cover-bg {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-image: url('https://images.unsplash.com/photo-1541888946425-d81bb19240f5?auto=format&fit=crop&w=1600&q=80') !important;
    background-size: cover !important;
    background-position: center !important;
    transition: transform 6s cubic-bezier(0.1, 0.8, 0.2, 1) !important;
    z-index: 1 !important;
}

.aks-about-cover-container:hover .aks-about-cover-bg {
    transform: scale(1.05) !important;
}

.aks-about-cover-overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: 
        linear-gradient(to right, rgba(21, 17, 15, 0.8) 0%, rgba(21, 17, 15, 0.4) 60%, rgba(21, 17, 15, 0.15) 100%),
        linear-gradient(135deg, rgba(230, 36, 41, 0.15) 0%, rgba(21, 17, 15, 0.4) 100%) !important;
    z-index: 2 !important;
}

.aks-about-cover-content {
    position: relative;
    height: 100%;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: flex-start !important;
    padding: 0 80px !important;
    box-sizing: border-box;
    z-index: 3;
    text-align: left !important;
}

.aks-about-cover-content > * {
    margin-left: 0 !important;
    margin-right: auto !important;
    text-align: left !important;
}

.aks-about-cover-title {
    font-size: 42px !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    line-height: 1.2 !important;
    margin: 0 0 12px 0 !important;
    font-family: var(--wp--preset--font-family--loos-normal), sans-serif !important;
}

.aks-about-cover-subtitle {
    font-size: 16px !important;
    color: rgba(255, 255, 255, 0.85) !important;
    max-width: 580px;
    margin: 0 0 24px 0 !important;
    line-height: 1.6 !important;
}

/* Button styles */
.aks-about-cover-buttons {
    display: flex !important;
    justify-content: flex-start !important;
    margin-left: 0 !important;
    margin-right: auto !important;
    width: 100%;
}

.aks-about-cover-btn {
    margin-left: 0 !important;
    margin-right: auto !important;
    display: inline-block !important;
}

.aks-about-cover-btn .wp-block-button__link {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
    background-color: var(--aks-red-primary) !important;
    border-color: var(--aks-red-primary) !important;
    color: #ffffff !important;
    padding: 0 28px !important;
    height: 48px !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(230, 36, 41, 0.3) !important;
    box-sizing: border-box !important;
}

.aks-about-cover-btn-text {
    display: inline-block !important;
    line-height: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: translateY(-2px) !important;
}

.aks-about-cover-btn svg {
    display: inline-block !important;
    width: 18px !important;
    height: 18px !important;
    margin: 0 !important;
    padding: 0 !important;
    flex-shrink: 0 !important;
    line-height: 1 !important;
    transition: transform 0.3s ease !important;
}

.aks-about-cover-btn .wp-block-button__link:hover {
    background-color: #ffffff !important;
    border-color: #ffffff !important;
    color: #15110f !important;
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.2) !important;
    transform: translateY(-2px) !important;
}

.aks-about-cover-btn .wp-block-button__link:hover svg {
    transform: translateX(4px) !important;
}

.aks-about-stats {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 20px !important;
    padding: 30px 0 !important;
    background: transparent !important;
    border-radius: 0 !important;
    margin: 10px 0 50px 0 !important;
    text-align: center !important;
    border: none !important;
    box-shadow: none !important;
    position: relative !important;
    overflow: visible !important;
}

.aks-about-stats::before {
    content: none !important;
}

.aks-stat-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    margin: 0 !important; /* Overrides Gutenberg sibling top margins */
    padding: 0 !important;
    width: 100% !important;
}

.aks-stat-item:not(:last-child)::after {
    content: '' !important;
    position: absolute !important;
    right: -10px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 1px !important;
    height: 40px !important;
    background: #e2e8f0 !important;
}

.aks-stat-item h3 {
    font-size: 38px !important;
    color: var(--aks-red-primary) !important;
    font-weight: 800 !important;
    margin: 0 0 6px 0 !important;
    line-height: 1 !important;
    text-shadow: none !important;
}

.aks-stat-item p {
    font-size: 13px !important;
    color: #5d6174 !important;
    text-transform: uppercase !important;
    font-weight: 700 !important;
    letter-spacing: 0.8px !important;
    margin: 0 !important;
}

/* ==========================================================================
   3. OUR STORY SECTION
   ========================================================================== */
.aks-about-story {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 60px;
    align-items: center;
    padding: 40px 0 80px 0;
}

.aks-about-story-image {
    position: relative;
    border-radius: 16px; /* Consistent 16px border-radius */
    overflow: hidden;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.08);
    aspect-ratio: 4/3;
    background: #f7f8f9;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.aks-about-story-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.aks-about-story-image::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px; /* Consistent 16px border-radius */
    pointer-events: none;
    z-index: 2;
}

.aks-about-story-image:hover img {
    transform: scale(1.04);
}

.aks-about-story-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.aks-about-story-text h2 {
    font-size: clamp(28px, 4.5vw, 38px) !important;
    font-weight: 800 !important;
    color: #44485d;
    margin: 0 0 25px 0;
    line-height: 1.2;
    position: relative;
}

.aks-about-story-text h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 3.5px;
    background: var(--aks-red-primary);
    margin-top: 12px;
    border-radius: 2px;
}

.aks-about-story-text p {
    font-size: 15.5px;
    line-height: 1.75;
    color: #5d6174;
    margin: 0;
}

/* ==========================================================================
   4. E-COMMERCE ADVANTAGES GRID (Why Choose Us - 4 Columns)
   ========================================================================== */
.aks-about-values-section {
    padding: 40px 0 80px 0;
}

.aks-about-section-title {
    font-size: clamp(28px, 4.5vw, 38px) !important;
    font-weight: 800 !important;
    color: #44485d;
    margin: 0 0 50px 0;
    text-align: center;
    position: relative;
}

.aks-about-section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 4px;
    background: var(--aks-red-primary);
    margin: 15px auto 0 auto;
    border-radius: 2px;
}

.aks-about-values-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important; /* Strict 4 columns on desktop */
    gap: 24px !important;
    margin: 0;
}

.aks-value-card {
    padding: 35px 25px !important;
    background: #ffffff !important;
    border: 1px solid #e9ebe8 !important;
    border-radius: 16px !important; /* Consistent 16px border-radius */
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative;
    box-sizing: border-box;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.02) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important; /* Left-aligned elements inside card */
    text-align: left !important;
}

/* Force left-alignment on all card children, overriding FSE layouts */
.aks-value-card > * {
    margin-left: 0 !important;
    margin-right: auto !important;
    text-align: left !important;
}

/* Hover: Border colors and soft shadow scale */
.aks-value-card:hover {
    transform: translateY(-6px) !important;
    border-color: var(--aks-red-primary) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06) !important;
}

.aks-value-card-icon {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(230, 36, 41, 0.06) !important;
    color: var(--aks-red-primary) !important;
    border-radius: 10px !important;
    flex-shrink: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    margin-bottom: 20px !important;
}

.aks-value-card:hover .aks-value-card-icon {
    background: var(--aks-red-primary) !important;
    color: #ffffff !important;
    transform: scale(1.05) !important;
}

.aks-value-card-icon svg {
    width: 22px !important;
    height: 22px !important;
}

.aks-value-card h3 {
    font-size: 18px !important;
    color: #44485d;
    font-weight: 700 !important;
    margin: 0 0 12px 0 !important;
    line-height: 1.25;
}

.aks-value-card p {
    font-size: 14px !important;
    color: #616474 !important;
    line-height: 1.65 !important;
    margin: 0 !important;
}

/* ==========================================================================
   5. CALL TO ACTION (CTA) BANNER
   ========================================================================== */
.aks-about-cta {
    background: linear-gradient(135deg, #44485d 0%, #323547 100%);
    color: #ffffff;
    padding: 75px 40px;
    border-radius: 16px; /* Consistent 16px border-radius */
    text-align: center;
    margin: 40px 0 0 0 !important; /* No bottom margin, the FSE Spacer handles it cleanly */
    border-bottom: 5px solid var(--aks-red-primary);
    position: relative;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.12);
}

.aks-about-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('../pattern.svg');
    background-size: cover;
    opacity: 0.035;
    pointer-events: none;
    z-index: 1;
}

.aks-about-cta h2 {
    font-size: clamp(26px, 4.5vw, 36px) !important;
    color: #ffffff;
    margin: 0 0 18px 0;
    font-weight: 800 !important;
    line-height: 1.2;
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.aks-about-cta p {
    font-size: 15.5px;
    color: rgba(255, 255, 255, 0.7);
    max-width: 600px;
    margin: 0 auto 35px auto;
    line-height: 1.65;
    position: relative;
    z-index: 2;
}

.aks-about-cta .wp-block-buttons {
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.aks-about-cta .wp-block-button__link {
    background: var(--aks-red-primary) !important;
    border: 1px solid var(--aks-red-primary) !important;
    color: #ffffff !important;
    padding: 13px 38px !important;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 6px;
    font-size: 13px;
    letter-spacing: 0.5px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(230, 36, 41, 0.25);
}

.aks-about-cta .wp-block-button__link:hover {
    background: var(--aks-red-dark) !important;
    border-color: var(--aks-red-dark) !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(230, 36, 41, 0.35);
}

/* ==========================================================================
   6. RESPONSIVENESS (Mobile-First Centering & Stacking)
   ========================================================================== */

@media (max-width: 991px) {
    .aks-about-cover-container {
        height: 260px;
    }
    .aks-about-cover-content {
        padding: 0 40px !important;
    }
    .aks-about-cover-title {
        font-size: 32px !important;
    }
    
    .aks-about-values-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
    }
    
    .aks-value-card {
        padding: 30px 20px !important;
    }
}

@media (max-width: 768px) {
    .aks-about-hero-wrapper::before,
    .aks-about-hero-wrapper::after {
        height: 160px !important;
    }
    .aks-about-cover-container {
        height: auto;
        min-height: 280px;
        width: calc(100% - 30px) !important;
        margin: 0 auto 30px auto !important;
        padding: 40px 20px !important;
    }
    .aks-about-cover-content {
        padding: 0 !important;
        align-items: center !important;
        text-align: center !important;
    }
    .aks-about-cover-content > * {
        margin-left: auto !important;
        margin-right: auto !important;
        text-align: center !important;
    }
    .aks-about-cover-title {
        font-size: 26px !important;
    }
    .aks-about-cover-subtitle {
        font-size: 14px !important;
    }
    .aks-about-cover-buttons {
        justify-content: center !important;
    }
    .aks-about-cover-btn {
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .aks-about-stats {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 20px 0;
        margin: 10px 0 40px 0;
    }
    
    .aks-stat-item:not(:last-child)::after {
        right: 50%;
        left: 50%;
        bottom: -12px;
        top: auto;
        transform: translateX(-50%);
        width: 80px;
        height: 1px;
        background: #e2e8f0 !important;
    }
    
    .aks-about-story {
        grid-template-columns: 1fr;
        gap: 35px;
        padding: 30px 0 50px 0;
        text-align: center;
    }
    
    .aks-about-story-text {
        align-items: center;
        text-align: center;
    }
    
    .aks-about-story-text h2 {
        text-align: center !important;
    }
    
    .aks-about-story-text h2::after {
        margin: 15px auto 0 auto;
    }
    
    .aks-about-story-image {
        max-width: 500px;
        margin: 0 auto;
        width: 100%;
    }
    
    .aks-about-values-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    
    .aks-value-card {
        align-items: center !important;
        text-align: center !important;
    }
    
    .aks-value-card > * {
        margin-left: auto !important;
        margin-right: auto !important;
        text-align: center !important;
    }
    
    .aks-value-card-icon {
        margin-bottom: 20px !important;
    }
    
    .aks-about-cta {
        padding: 50px 20px;
        margin: 40px 0 60px 0;
    }
}
