/**
 * ZIN Fashion - About Page Styles
 * Location: /public_html/dev_staging/assets/css/about.css
 * 
 * Updated: Fixed RTL layout for Why Choose Us section
 */

/* ========================================
   About Hero Section
   ======================================== */
.about-hero {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.about-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('/assets/images/pattern.svg') repeat;
    opacity: 0.05;
}

.about-hero-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.about-hero .hero-title {
    font-size: 3.5rem;
    color: var(--gold-primary);
    margin-bottom: 20px;
    font-family: 'Playfair Display', serif;
}

.about-hero .hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ========================================
   Story Section
   ======================================== */
.about-story {
    padding: 80px 0;
    background: var(--bg-primary);
    overflow: hidden;
}

.story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.story-content .section-title {
    color: var(--gold-primary);
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
    display: inline-block;
}

/* Centered decoration line under title */
.story-content .section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--gradient-gold);
}

.story-content p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 15px;
}

.story-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    color: var(--gold-primary);
    font-weight: 700;
    margin-bottom: 10px;
    font-family: 'Playfair Display', serif;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.story-image {
    position: relative;
}

.story-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
}

.image-decoration {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100px;
    height: 100px;
    background: var(--gradient-gold);
    border-radius: 50%;
    z-index: -1;
}

/* ========================================
   Values Section
   ======================================== */
.about-values {
    padding: 80px 0;
    background: var(--bg-tertiary);
}

.about-values .section-title {
    text-align: center;
    color: var(--gold-primary);
    margin-bottom: 60px;
    font-size: 2.5rem;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.value-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 40px 30px;
    text-align: center;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.value-card:hover {
    transform: translateY(-10px);
    border-color: var(--gold-primary);
    box-shadow: var(--shadow-lg);
}

.value-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: var(--gradient-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 35px;
    color: var(--bg-primary);
    transition: transform 0.3s ease;
}

.value-card:hover .value-icon {
    transform: rotate(360deg);
}

.value-card h3 {
    color: var(--gold-primary);
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.value-card p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.7;
}

/* ========================================
   Mission Section
   ======================================== */
.about-mission {
    padding: 100px 0;
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

.mission-content {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.mission-text {
    background: var(--bg-card);
    padding: 60px;
    border-radius: 8px;
    text-align: center;
    position: relative;
    z-index: 2;
    border: 2px solid var(--gold-primary);
}

.mission-text h2 {
    color: var(--gold-primary);
    font-size: 2.5rem;
    margin-bottom: 30px;
    font-family: 'Playfair Display', serif;
}

.mission-statement {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-primary);
    font-style: italic;
    position: relative;
    padding: 0 40px;
}

.mission-statement::before,
.mission-statement::after {
    content: '"';
    position: absolute;
    font-size: 4rem;
    color: var(--gold-primary);
    opacity: 0.3;
    font-family: 'Playfair Display', serif;
}

.mission-statement::before {
    top: -20px;
    left: 0;
}

.mission-statement::after {
    bottom: -40px;
    right: 0;
}

.mission-image {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.1;
    pointer-events: none;
}

.mission-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ========================================
   Team Section
   ======================================== */
.about-team {
    padding: 80px 0;
    background: var(--bg-primary);
}

.about-team .section-title {
    text-align: center;
    color: var(--gold-primary);
    margin-bottom: 60px;
    font-size: 2.5rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.team-member {
    text-align: center;
}

.member-image {
    position: relative;
    width: 100%;
    height: 350px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 20px;
}

.member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.team-member:hover .member-image img {
    transform: scale(1.1);
}

.member-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.team-member:hover .member-overlay {
    opacity: 1;
}

.member-overlay .social-links {
    display: flex;
    gap: 15px;
}

.member-overlay .social-links a {
    width: 40px;
    height: 40px;
    background: var(--gold-primary);
    color: var(--bg-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.member-overlay .social-links a:hover {
    transform: scale(1.1);
    background: var(--gold-secondary);
}

.team-member h3 {
    color: var(--text-primary);
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.member-role {
    color: var(--gold-primary);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ========================================
   Why Choose Us Section
   ======================================== */
.about-why-us {
    padding: 80px 0;
    background: var(--bg-tertiary);
}

.about-why-us .section-title {
    text-align: center;
    color: var(--gold-primary);
    margin-bottom: 50px;
    font-size: 2.5rem;
}

.features-list {
    max-width: 900px;
    margin: 0 auto;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 25px;
    margin-bottom: 35px;
    padding: 25px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.feature-item:hover {
    border-color: var(--gold-primary);
    transform: translateX(10px);
    box-shadow: var(--shadow-md);
}

.feature-item i {
    font-size: 24px;
    color: var(--gold-primary);
    flex-shrink: 0;
    margin-top: 5px;
}

.feature-content {
    flex: 1;
}

.feature-content h4 {
    color: var(--text-primary);
    margin-bottom: 8px;
    font-size: 1.2rem;
}

.feature-content p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

/* ========================================
   CTA Section
   ======================================== */
.about-cta {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-secondary) 100%);
    text-align: center;
}

.cta-content h2 {
    color: var(--bg-primary);
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-family: 'Playfair Display', serif;
}

.cta-content p {
    color: var(--bg-primary);
    font-size: 1.1rem;
    margin-bottom: 35px;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.about-cta .btn-primary {
    background: var(--bg-primary);
    color: var(--gold-primary);
    border-color: var(--bg-primary);
}

.about-cta .btn-primary:hover {
    background: transparent;
    color: var(--bg-primary);
}

.about-cta .btn-outline {
    background: transparent;
    color: var(--bg-primary);
    border-color: var(--bg-primary);
}

.about-cta .btn-outline:hover {
    background: var(--bg-primary);
    color: var(--gold-primary);
}

/* ========================================
   RTL Support for About Page
   ======================================== */
html[dir="rtl"] .story-content .section-title::after {
    /* Decoration line stays centered */
    left: 50%;
    right: auto;
    transform: translateX(-50%);
}

/* RTL fixes for Why Choose Us section */
html[dir="rtl"] .feature-item {
    flex-direction: row-reverse;
}

html[dir="rtl"] .feature-item:hover {
    transform: translateX(-10px);
}

html[dir="rtl"] .feature-item i {
    margin-left: 25px;
    margin-right: 0;
}

html[dir="rtl"] .mission-statement::before {
    left: auto;
    right: 0;
}

html[dir="rtl"] .mission-statement::after {
    right: auto;
    left: 0;
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 991px) {
    body {
        overflow-x: hidden;
    }
    
    .about-hero,
    .about-story,
    .about-values,
    .about-mission,
    .about-team,
    .about-why-us,
    .about-cta {
        overflow-x: hidden;
    }
    
    .story-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    /* Center the story title on mobile */
    .story-content .section-title {
        display: block;
        text-align: center;
        width: 100%;
    }
    
    .story-image {
        order: -1;
        overflow: hidden;
    }
    
    .image-decoration {
        display: none;
    }
    
    .about-hero .hero-title {
        font-size: 2.5rem;
    }
    
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 767px) {
    .about-hero {
        padding: 60px 0;
    }
    
    .about-hero .hero-title {
        font-size: 2rem;
    }
    
    .about-hero .hero-subtitle {
        font-size: 1rem;
    }
    
    .story-stats {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .mission-text {
        padding: 40px 20px;
    }
    
    .mission-statement {
        font-size: 1rem;
        padding: 0 20px;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
        padding: 0 20px;
    }
    
    .cta-buttons .btn {
        width: 100%;
    }
    
    section {
        padding: 50px 0;
    }
    
    .section-title {
        font-size: 1.8rem !important;
    }
    
    /* Mobile styles for feature items */
    .feature-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 20px;
        margin-bottom: 25px;
    }
    
    .feature-item i {
        margin-bottom: 10px;
        margin-top: 0;
        font-size: 22px;
    }
    
    .feature-content h4 {
        margin-bottom: 5px;
    }
    
    .feature-item:hover {
        transform: translateY(-5px);
    }
    
    /* RTL support for centered mobile layout */
    html[dir="rtl"] .feature-item {
        flex-direction: column;
        align-items: center;
    }
    
    html[dir="rtl"] .feature-item i {
        margin-left: 0;
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    html[dir="rtl"] .feature-item:hover {
        transform: translateY(-5px);
    }
}

@media (max-width: 575px) {
    .about-hero .hero-title {
        font-size: 1.5rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .value-card {
        padding: 30px 20px;
    }
    
    /* Even tighter spacing on smallest screens */
    .feature-item {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .feature-item i {
        font-size: 20px;
        margin-bottom: 8px;
    }
    
    .feature-content h4 {
        font-size: 1.1rem;
        margin-bottom: 4px;
    }
    
    .feature-content p {
        margin-bottom: 0;
        font-size: 13px;
    }
}