/* File: /website/assets/css/about-styles.css */
/* Page-specific styles for About page - Mobile-First Responsive Layout */
/* Hero section uses home page structure - no custom hero styles needed */

/* ==========================================================================
   CSS Custom Properties for About Page
   ========================================================================== */
:root {
    --about-section-padding-mobile: 2.5rem 0;
    --about-section-padding-tablet: 3.5rem 0;
    --about-section-padding-desktop: 4.5rem 0;
    --about-gap-mobile: 1.5rem;
    --about-gap-tablet: 2rem;
    --about-gap-desktop: 3rem;
}

/* ==========================================================================
   Section Base Styles (Mobile-First)
   ========================================================================== */
.our-story-section,
.factory-section,
.why-choose-about-section,
.team-section,
.testimonials-section,
.service-area-section,
.final-cta-section {
    padding: var(--about-section-padding-mobile);
}

/* Section Header - Consistent across all sections */
.our-story-section .section-header,
.factory-section .section-header,
.why-choose-about-section .section-header,
.team-section .section-header,
.testimonials-section .section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.our-story-section .section-title,
.factory-section .section-title,
.why-choose-about-section .section-title,
.team-section .section-title,
.testimonials-section .section-title,
.service-area-section .service-area-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: clamp(1.75rem, 5vw, 3rem);
    color: var(--color-a-light);
    text-transform: uppercase;
    letter-spacing: -0.5px;
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.our-story-section .section-subtitle,
.factory-section .section-subtitle,
.why-choose-about-section .section-subtitle,
.team-section .section-subtitle,
.testimonials-section .section-subtitle {
    color: var(--text-gray);
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ==========================================================================
   OUR STORY SECTION
   ========================================================================== */
.our-story-section {
    background: var(--bg-darker);
}

.story-content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--about-gap-mobile);
}

.story-text {
    order: 1;
}

.story-timeline {
    order: 2;
}

.story-heading {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 900;
    margin-bottom: 1.25rem;
    color: var(--text-light);
    line-height: 1.3;
}

.story-paragraph {
    color: var(--text-gray);
    font-size: clamp(1rem, 2vw, 1.1rem);
    line-height: 1.8;
    margin-bottom: 1.25rem;
}

/* Timeline Styles */
.story-timeline {
    position: relative;
    padding-left: 1.5rem;
}

.story-timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--gradient-primary);
    border-radius: 10px;
}

.timeline-item {
    position: relative;
    padding-bottom: 1.5rem;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: -2rem;
    top: 0.5rem;
    width: 14px;
    height: 14px;
    background: var(--brand-red);
    border-radius: 50%;
    border: 3px solid var(--bg-darker);
    z-index: 2;
}

.timeline-content {
    background: var(--glass-bg-light);
    backdrop-filter: blur(10px);
    padding: 1.25rem;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
}

.timeline-year {
    display: inline-block;
    background: var(--brand-red);
    color: var(--bg-dark);
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
}

.timeline-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    color: var(--text-light);
}

.timeline-text {
    color: var(--text-gray);
    line-height: 1.5;
    font-size: 0.95rem;
}

/* ==========================================================================
   FACTORY SECTION
   ========================================================================== */
.factory-section {
    background: var(--bg-dark);
}

.factory-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--about-gap-mobile);
}

.factory-media {
    order: 1;
}

.factory-details {
    order: 2;
}

.factory-video-wrapper {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.factory-video,
.factory-fallback {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 16px;
}

.video-caption {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--glass-bg-light);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    margin-top: 0.75rem;
    color: var(--brand-red);
    font-weight: 600;
    font-size: 0.9rem;
}

.factory-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.factory-gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.factory-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.factory-gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
    color: white;
    padding: 0.4rem;
    font-size: 0.75rem;
    text-align: center;
    font-weight: 600;
}

.factory-heading {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 900;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.factory-intro {
    color: var(--text-gray);
    font-size: clamp(1rem, 2vw, 1.1rem);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.factory-features-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
}

.factory-feature {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--glass-bg-light);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
}

.factory-feature:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--brand-red);
}

.feature-icon {
    flex-shrink: 0;
    width: 45px;
    height: 45px;
    background: var(--gradient-primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: white;
}

.feature-text h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
    color: var(--text-light);
}

.feature-text p {
    color: var(--text-gray);
    line-height: 1.5;
    margin: 0;
    font-size: 0.9rem;
}

.factory-cta {
    background: var(--glass-bg-light);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    text-align: center;
}

.factory-cta-text {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 0.75rem;
}

/* ==========================================================================
   WHY CHOOSE US SECTION
   ========================================================================== */
.why-choose-about-section {
    background: var(--bg-darker);
}

.why-choose-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--about-gap-mobile);
}

.why-choose-card {
    padding: 1.75rem;
    border-radius: 16px;
    transition: all 0.3s ease;
}

.why-choose-card:hover {
    transform: translateY(-5px);
    border-color: var(--brand-red) !important;
}

.why-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1.25rem;
    color: white;
}

.why-title {
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-light);
}

.why-description {
    color: var(--text-gray);
    line-height: 1.7;
    font-size: clamp(0.95rem, 2vw, 1.05rem);
}

/* ==========================================================================
   TEAM SECTION
   ========================================================================== */
.team-section {
    background: var(--bg-dark);
}

.team-grid {
    display: grid;
    grid-template-columns: 2fr;
    gap: var(--about-gap-mobile);
    max-width: 500px;
    margin: 0 auto;
}

.team-member-card {
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.team-member-card:hover {
    transform: translateY(-5px);
    border-color: var(--brand-red) !important;
}

.team-image {
    aspect-ratio: 1;
    overflow: hidden;
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.team-member-card:hover .team-image img {
    transform: scale(1.03);
}

.team-info {
    padding: 1.5rem;
}

.team-name {
    font-size: clamp(1.4rem, 4vw, 1.75rem);
    font-weight: 900;
    margin-bottom: 0.4rem;
    color: var(--text-light);
}

.team-role {
    color: var(--brand-red);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.75rem;
    display: block;
}

.team-bio {
    color: var(--text-gray);
    line-height: 1.7;
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
}

.team-contact {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.team-contact-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--glass-bg-light);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 25px;
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.team-contact-link:hover {
    background: var(--brand-red);
    border-color: var(--brand-red);
    color: white;
}

.team-contact-link.whatsapp:hover {
    background: #25D366;
    border-color: #25D366;
}

/* ==========================================================================
   TESTIMONIALS SECTION
   ========================================================================== */
.testimonials-section {
    background: var(--bg-darker);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--about-gap-mobile);
}

.testimonial-card {
    padding: 1.5rem;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    border-color: var(--brand-red) !important;
}

.testimonial-quote {
    font-size: 2rem;
    color: var(--brand-red);
    margin-bottom: 0.75rem;
    opacity: 0.4;
}

.testimonial-text {
    color: var(--text-gray);
    line-height: 1.7;
    margin-bottom: 1.25rem;
    flex-grow: 1;
    font-size: 0.95rem;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: auto;
}

.author-name {
    display: block;
    font-weight: 700;
    color: var(--text-light);
    font-size: 1rem;
}

.author-role {
    display: block;
    font-size: 0.85rem;
    color: var(--text-gray);
}

.testimonial-rating {
    color: var(--brand-red);
    width: 100%;
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

/* ==========================================================================
   SERVICE AREA SECTION
   ========================================================================== */
.service-area-section {
    background: var(--bg-dark);
    border-top: 1px solid var(--border-color);
}

.service-area-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    padding: 0 1rem;
}

.service-area-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    color: var(--jetbrains-text-light);
    text-transform: uppercase;
    letter-spacing: -0.5px;
    margin-bottom: 1rem;
}

.service-area-description {
    color: var(--text-gray);
    font-size: clamp(1rem, 2vw, 1.15rem);
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

.service-area-cta {
    margin-top: 1.5rem;
}

.cta-subtext {
    color: var(--text-gray);
    margin-top: 0.75rem;
    font-size: 0.95rem;
}

/* ==========================================================================
   FINAL CTA SECTION
   ========================================================================== */
.final-cta-section {
    position: relative;
    background: var(--jetbrains-bg-section);
    overflow: hidden;
    text-align: center;
}

.final-cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../home/hero_1.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    z-index: 0;
}

.final-cta-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
            #000000 0%,
            #000000 15%,
            rgba(0, 0, 0, 0.8) 25%,
            rgba(0, 0, 0, 0.6) 40%,
            rgba(0, 0, 0, 0.4) 55%,
            rgba(11, 179, 156, 0.5) 70%,
            rgba(11, 179, 156, 0.7) 85%,
            rgba(8, 143, 124, 0.9) 100%);
    z-index: 1;
}

.final-cta-section .final-cta-content,
.final-cta-section .final-cta-actions,
.final-cta-section .final-cta-title,
.final-cta-section .final-cta-description {
    position: relative;
    z-index: 2;
}

.final-cta-title {
    color: #FFFFFF;
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: clamp(1.75rem, 5vw, 3rem);
    margin-bottom: 0.75rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5), 0 4px 20px rgba(0, 0, 0, 0.3);
}

.final-cta-description {
    color: #F0F0F0;
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    margin-bottom: 2rem;
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.4);
    line-height: 1.6;
}

.final-cta-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.final-cta-actions .btn {
    min-width: 160px;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS - Tablet Portrait (>= 576px)
   ========================================================================== */
@media (min-width: 576px) {

    .our-story-section,
    .factory-section,
    .why-choose-about-section,
    .team-section,
    .testimonials-section,
    .service-area-section,
    .final-cta-section {
        padding: var(--about-section-padding-tablet);
    }

    .why-choose-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--about-gap-tablet);
    }

    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--about-gap-tablet);
    }

    /* Third testimonial spans full width on 2-col */
    .testimonials-grid .testimonial-card:nth-child(3) {
        grid-column: 1 / -1;
        max-width: 500px;
        margin: 0 auto;
    }

    .team-grid {
        max-width: 450px;
    }

    .testimonial-author {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-end;
    }
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS - Tablet Landscape (>= 768px)
   ========================================================================== */
@media (min-width: 768px) {
    .story-content-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--about-gap-tablet);
        align-items: start;
    }

    .story-text {
        order: 1;
    }

    .story-timeline {
        order: 2;
        padding-left: 2rem;
    }

    .timeline-marker {
        left: -2.5rem;
        width: 16px;
        height: 16px;
    }

    .factory-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--about-gap-tablet);
        align-items: start;
    }

    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .testimonials-grid .testimonial-card:nth-child(3) {
        grid-column: auto;
        max-width: none;
    }

    .team-grid {
        max-width: 500px;
    }

    .factory-gallery {
        gap: 1rem;
    }

    .gallery-caption {
        font-size: 0.85rem;
        padding: 0.5rem;
    }
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS - Desktop (>= 992px)
   ========================================================================== */
@media (min-width: 992px) {

    .our-story-section,
    .factory-section,
    .why-choose-about-section,
    .team-section,
    .testimonials-section,
    .service-area-section,
    .final-cta-section {
        padding: var(--about-section-padding-desktop);
    }

    .our-story-section .section-header,
    .factory-section .section-header,
    .why-choose-about-section .section-header,
    .team-section .section-header,
    .testimonials-section .section-header {
        margin-bottom: 3rem;
    }

    .story-content-grid,
    .factory-grid {
        gap: var(--about-gap-desktop);
    }

    .why-choose-grid,
    .testimonials-grid {
        gap: var(--about-gap-desktop);
    }

    .why-choose-card {
        padding: 2.25rem;
    }

    .why-icon {
        width: 70px;
        height: 70px;
        font-size: 2rem;
    }

    .team-grid {
        max-width: 100%;
    }

    .team-info {
        padding: 2rem;
    }

    .testimonial-card {
        padding: 2rem;
    }

    .testimonial-quote {
        font-size: 2.5rem;
    }

    .feature-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .factory-cta {
        padding: 2rem;
    }
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS - Large Desktop (>= 1200px)
   ========================================================================== */
@media (min-width: 1200px) {

    .story-content-grid,
    .factory-grid {
        gap: 4rem;
    }

    .why-choose-card {
        padding: 2.5rem;
    }

    .why-icon {
        width: 80px;
        height: 80px;
        font-size: 2.5rem;
    }

    .team-grid {
        max-width: 600px;
    }
}

/* ==========================================================================
   ACCESSIBILITY & REDUCED MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {

    .factory-gallery-item img,
    .team-image img,
    .testimonial-card,
    .why-choose-card,
    .team-member-card,
    .factory-feature {
        transition: none !important;
    }
}

/* ==========================================================================
   PRINT STYLES
   ========================================================================== */
@media print {

    .final-cta-section,
    .whatsapp-float,
    .mobile-menu-toggle {
        display: none !important;
    }

    .our-story-section,
    .factory-section,
    .why-choose-about-section,
    .team-section,
    .testimonials-section,
    .service-area-section {
        padding: 1rem 0;
        page-break-inside: avoid;
    }
}