/* ==========================================================================
   ABOUT PAGE STYLES
   ========================================================================== */

/* Google Material Symbols (loaded via about page template) */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* --- About Main --- */
.about-main {
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 5rem;
}

/* --- Breadcrumbs --- */
.about-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1.5rem 1rem;
}
.about-breadcrumbs a {
    color: #64748b;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
}
.about-breadcrumbs a:hover {
    color: var(--color-primary, #0d59a5);
}
.about-breadcrumbs .separator {
    color: #94a3b8;
    font-size: 0.875rem;
}
.about-breadcrumbs .current {
    color: var(--color-primary, #0d59a5);
    font-size: 0.875rem;
    font-weight: 700;
}

/* --- Hero Section --- */
.about-hero {
    padding: 0 1rem;
    margin-bottom: 4rem;
}
.about-hero-inner {
    position: relative;
    overflow: hidden;
    border-radius: 0.75rem;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background-size: cover;
    background-position: center;
}
.about-hero-inner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6));
    z-index: 1;
}
.about-hero-content {
    position: relative;
    z-index: 2;
    max-width: 48rem;
    text-align: center;
    color: #fff;
}
.about-hero-content h1 {
    font-size: 2.25rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    line-height: 1.15;
    color: #fff;
}
.about-hero-content p {
    font-size: 1.125rem;
    font-weight: 300;
    margin-bottom: 2rem;
    opacity: 0.9;
}
.about-hero-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}
.about-hero-buttons .btn-hero-primary {
    background: var(--color-primary, #0d59a5);
    color: #fff;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    font-weight: 700;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.95rem;
}
.about-hero-buttons .btn-hero-primary:hover {
    background: #fff;
    color: var(--color-primary, #0d59a5);
}
.about-hero-buttons .btn-hero-secondary {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.95rem;
}
.about-hero-buttons .btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.4);
}

/* --- Company Story --- */
.about-story {
    padding: 0 1rem;
    margin-bottom: 5rem;
}
.about-story-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}
.about-story-text h2 {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--color-primary, #0d59a5);
    margin-bottom: 1rem;
}
.about-story-text p {
    font-size: 1.125rem;
    line-height: 1.75;
    color: #475569;
    margin-bottom: 1rem;
}
.about-story-stats {
    display: flex;
    gap: 2rem;
    padding-top: 1rem;
}
.about-story-stats .stat-number {
    font-size: 1.875rem;
    font-weight: 800;
    color: var(--color-primary, #0d59a5);
    display: block;
}
.about-story-stats .stat-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: #64748b;
    text-transform: uppercase;
}
.about-story-image {
    position: relative;
}
.about-story-image .image-bg {
    position: absolute;
    inset: -1rem;
    background: rgba(13, 89, 165, 0.1);
    border-radius: 0.75rem;
    transform: rotate(-2deg);
    transition: transform 0.3s;
}
.about-story-image:hover .image-bg {
    transform: rotate(0deg);
}
.about-story-image img {
    position: relative;
    border-radius: 0.75rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    width: 100%;
    height: 400px;
    object-fit: cover;
}

/* --- Vision & Mission --- */
.about-vision {
    padding: 0 1rem;
    margin-bottom: 5rem;
}
.about-vision-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
.about-vision-card {
    background: #fff;
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid #f1f5f9;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
.about-vision-card .card-icon {
    width: 3rem;
    height: 3rem;
    background: rgba(13, 89, 165, 0.1);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}
.about-vision-card .card-icon .material-symbols-outlined {
    font-size: 1.875rem;
    color: var(--color-primary, #0d59a5);
}
.about-vision-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}
.about-vision-card p {
    color: #475569;
    line-height: 1.75;
}

/* --- Core Values --- */
.about-values {
    padding: 0 1rem;
    margin-bottom: 5rem;
}
.about-values-header {
    text-align: center;
    margin-bottom: 3rem;
}
.about-values-header h2 {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 1rem;
}
.about-values-header .title-bar {
    width: 5rem;
    height: 0.25rem;
    background: var(--color-primary, #0d59a5);
    margin: 0 auto;
    border-radius: 9999px;
}
.about-values-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}
.about-value-item {
    text-align: center;
    padding: 1.5rem;
}
.about-value-item .material-symbols-outlined {
    font-size: 2.5rem;
    color: var(--color-primary, #0d59a5);
    margin-bottom: 1rem;
    display: block;
}
.about-value-item h4 {
    font-weight: 700;
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}
.about-value-item p {
    font-size: 0.875rem;
    color: #64748b;
}

/* --- Timeline --- */
.about-timeline {
    padding: 0 1rem;
    margin-bottom: 5rem;
}
.about-timeline-inner {
    background: rgba(13, 89, 165, 0.05);
    padding: 4rem 1rem;
    border-radius: 1.5rem;
}
.about-timeline-header {
    text-align: center;
    margin-bottom: 4rem;
}
.about-timeline-header h2 {
    font-size: 1.875rem;
    font-weight: 700;
}
.about-timeline-entries {
    position: relative;
    max-width: 56rem;
    margin: 0 auto;
    padding: 0 1rem;
}
.about-timeline-entries .timeline-line {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: rgba(13, 89, 165, 0.2);
}
.timeline-entry {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 3rem;
}
.timeline-entry:last-child {
    margin-bottom: 0;
}
.timeline-entry .timeline-dot {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background: var(--color-primary, #0d59a5);
    border: 4px solid #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    z-index: 2;
}
.timeline-entry .timeline-left,
.timeline-entry .timeline-right {
    width: 45%;
}
.timeline-entry .timeline-left {
    text-align: right;
}
.timeline-entry .timeline-right {
    padding-left: 2rem;
}
.timeline-entry h5 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-primary, #0d59a5);
}
.timeline-entry p {
    color: #475569;
}
/* Mobile timeline: stack left */
.timeline-entry .timeline-mobile {
    display: none;
    width: 45%;
    padding-left: 2rem;
}
.timeline-entry .timeline-desktop {
    display: block;
}

/* --- Factory & Certification --- */
.about-factory {
    padding: 0 1rem;
    margin-bottom: 5rem;
}
.about-factory-header {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}
.about-factory-header h2 {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.about-factory-header p {
    color: #64748b;
}
.about-factory-header .gallery-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-primary, #0d59a5);
    font-weight: 700;
    text-decoration: none;
    transition: text-decoration 0.2s;
}
.about-factory-header .gallery-link:hover {
    text-decoration: underline;
}
.about-factory-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}
.about-factory-item {
    aspect-ratio: 1;
    border-radius: 0.75rem;
    overflow: hidden;
}
.about-factory-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.about-factory-item:hover img {
    transform: scale(1.1);
}

/* --- Team --- */
.about-team {
    padding: 0 1rem;
}
.about-team-header {
    text-align: center;
    margin-bottom: 3rem;
}
.about-team-header h2 {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 1rem;
}
.about-team-header p {
    color: #64748b;
    max-width: 42rem;
    margin: 0 auto;
}
.about-team-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 2rem;
}
.about-team-member {
    text-align: center;
}
.about-team-member .member-photo {
    margin-bottom: 1rem;
    overflow: hidden;
    border-radius: 0.75rem;
}
.about-team-member .member-photo img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    transition: transform 0.3s;
}
.about-team-member:hover .member-photo img {
    transform: scale(1.05);
}
.about-team-member h5 {
    font-size: 1.125rem;
    font-weight: 700;
}
.about-team-member .member-position {
    color: var(--color-primary, #0d59a5);
    font-weight: 500;
    font-size: 0.875rem;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (min-width: 640px) {
    .about-team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .about-breadcrumbs,
    .about-hero,
    .about-story,
    .about-vision,
    .about-values,
    .about-timeline,
    .about-factory,
    .about-team {
        padding-left: 2.5rem;
        padding-right: 2.5rem;
    }

    .about-hero-content h1 {
        font-size: 3.75rem;
    }
    .about-hero-content p {
        font-size: 1.25rem;
    }

    .about-story-grid {
        grid-template-columns: 1fr 1fr;
    }

    .about-vision-grid {
        grid-template-columns: 1fr 1fr;
    }

    .about-factory-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-end;
    }

    .about-factory-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1024px) {
    .about-values-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .about-team-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Mobile-only: hide desktop timeline layout and show mobile */
@media (max-width: 767px) {
    .timeline-entry .timeline-desktop {
        display: none;
    }
    .timeline-entry .timeline-mobile {
        display: block;
    }
    .timeline-entry .timeline-left.timeline-desktop,
    .timeline-entry .timeline-right.timeline-desktop {
        display: none;
    }
}
