/* About Page Styles */

/* Hero */
.about-hero {
    position: relative;
    min-height: 90vh;
    background-image: url('images/about/about-hero.jpg');
    background-image: image-set(
        url('images/about/about-hero.webp') type('image/webp'),
        url('images/about/about-hero.jpg') type('image/jpeg')
    );
    background-size: cover;
    background-position: center 30%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 200px 2rem 120px;
}

/* When announcement bar is visible, push hero content clear of navbar + bar */
body.coc-has-announcement .about-hero {
    padding-top: calc(var(--coc-announcement-h, 48px) + 200px);
}

.about-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        rgba(0,0,0,0.55) 0%,
        rgba(0,0,0,0.35) 40%,
        rgba(0,0,0,0.45) 70%,
        rgba(0,0,0,0.65) 100%
    );
}

.about-hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
    max-width: 900px;
    margin: 0 auto;
}

.about-title {
    font-family: 'Bebas Neue Pro', 'Bebas Neue', sans-serif;
    font-size: clamp(3.5rem, 10vw, 8rem);
    line-height: 0.95;
    margin-bottom: 2rem;
    text-shadow: 0 2px 12px rgba(0,0,0,0.7), 0 6px 30px rgba(0,0,0,0.5);
}

.highlight-text {
    color: var(--red-primary);
}

.about-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    opacity: 0.9;
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto;
    text-shadow: 0 2px 10px rgba(0,0,0,0.6);
}

/* In-Page Nav */
.about-nav {
    background: var(--dark);
    position: sticky;
    top: 0;
    z-index: 900;
    border-bottom: 3px solid var(--red-primary);
    overflow: hidden;
}

.about-nav-inner {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.about-nav-inner::-webkit-scrollbar {
    display: none;
}

.about-nav-link {
    font-family: 'Bebas Neue Pro', 'Bebas Neue', sans-serif;
    font-size: 1.25rem;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    padding: 1.25rem 2rem;
    position: relative;
    transition: color 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.about-nav-link:hover,
.about-nav-link.active {
    color: #ffffff;
}

.about-nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--red-primary);
}

/* Shared Section Styles */
.about-section {
    padding: 6rem 2rem;
}

.section-title-center {
    font-family: 'Bebas Neue Pro', 'Bebas Neue', sans-serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--dark);
    text-align: center;
    margin-bottom: 1.5rem;
    letter-spacing: 2px;
}

.section-intro {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #555;
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

/* Our Food Section */
.about-food {
    background: #ffffff;
    position: relative;
}

.about-food::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--noise);
    background-repeat: repeat;
    background-size: 200px 200px;
    pointer-events: none;
    z-index: 0;
}

.about-food > .container {
    position: relative;
    z-index: 1;
}

.food-pillars {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

.food-pillar {
    background: #ffffff;
    border-radius: 16px;
    padding: 2.5rem;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-top: 3px solid var(--red-primary);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.food-pillar:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.pillar-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.pillar-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1.25rem;
}

.pillar-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    transition: transform 0.4s ease;
}

.food-pillar:hover .pillar-image img {
    transform: scale(1.05);
}

.food-pillar h3 {
    font-family: 'Bebas Neue Pro', 'Bebas Neue', sans-serif;
    font-size: 1.75rem;
    letter-spacing: 1.5px;
    color: var(--dark);
    margin-bottom: 0.75rem;
}

.food-pillar p {
    font-size: 1rem;
    line-height: 1.7;
    color: #555;
}

/* Full-Width Image Break */
.about-image-break {
    width: 100%;
    max-height: 500px;
    overflow: hidden;
    position: relative;
}

.about-image-break img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    object-position: center center;
    display: block;
}

/* Our Story / Timeline */
.about-story {
    background: var(--dark);
}

.about-story .section-title-center {
    color: #ffffff;
}

.about-story .section-intro {
    color: rgba(255, 255, 255, 0.7);
}

.timeline {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    padding-left: 3rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--red-primary);
}

.timeline-item {
    position: relative;
    margin-bottom: 3.5rem;
    padding-left: 2.5rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -3rem;
    top: 0.5rem;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--red-primary);
    border: 3px solid var(--dark);
    box-shadow: 0 0 0 3px var(--red-primary);
    transform: translateX(-50%);
    left: -1.5rem;
}

.timeline-year {
    font-family: 'Bebas Neue Pro', 'Bebas Neue', sans-serif;
    font-size: 1.5rem;
    letter-spacing: 3px;
    color: var(--dark);
    margin-bottom: 0.5rem;
    background: var(--red-primary);
    display: inline-block;
    padding: 0.2rem 0.8rem;
    border-radius: 4px;
}

.timeline-content h3 {
    font-family: 'Bebas Neue Pro', 'Bebas Neue', sans-serif;
    font-size: 1.75rem;
    letter-spacing: 1.5px;
    color: #ffffff;
    margin-bottom: 0.75rem;
}

.timeline-content p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.75);
}

.timeline-image {
    margin-top: 1.5rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.timeline-image:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
}

.timeline-image img {
    width: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    aspect-ratio: 16 / 9;
}

/* Stats Banner */
.about-stats {
    background: var(--dark);
    padding: 4rem 2rem;
    border-top: 4px solid var(--red-primary);
    border-bottom: 4px solid var(--red-primary);
}

.about-stats-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat-number {
    font-family: 'Bebas Neue Pro', 'Bebas Neue', sans-serif;
    font-size: clamp(3rem, 6vw, 5rem);
    color: var(--red-primary);
    display: block;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-family: 'Bebas Neue Pro', 'Bebas Neue', sans-serif;
    font-size: 1rem;
    letter-spacing: 3px;
    color: rgba(255, 255, 255, 0.6);
    display: block;
}

/* Community Section */
.about-community {
    background: #ffffff;
    position: relative;
}

.about-community::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--noise);
    background-repeat: repeat;
    background-size: 200px 200px;
    pointer-events: none;
    z-index: 0;
}

.about-community > .container {
    position: relative;
    z-index: 1;
}

/* Community Horizontal Scroll Strip */
.community-scroll-wrapper {
    /* overflow:hidden creates a BFC which properly contains the max-content track */
    overflow: hidden;
    width: 100%;
    margin-top: 3rem;
    padding: 1rem 0 2rem;
    position: relative;
}

/* Fade edges — pseudo-elements sit above the scroll track inside the clipped wrapper */
.community-scroll-wrapper::before,
.community-scroll-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 120px;
    z-index: 2;
    pointer-events: none;
}
.community-scroll-wrapper::before {
    left: 0;
    background: linear-gradient(to right, #ffffff 0%, transparent 100%);
}
.community-scroll-wrapper::after {
    right: 0;
    background: linear-gradient(to left, #ffffff 0%, transparent 100%);
}

.community-scroll-track {
    display: flex;
    gap: 1.5rem;
    width: max-content;
    animation: community-scroll 40s linear infinite;
}

.community-scroll-track:hover {
    animation-play-state: running;
}

.community-scroll-item {
    flex-shrink: 0;
    width: 420px;
    height: 300px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    transition: transform 0.4s ease;
}

.community-scroll-item:hover {
    transform: scale(1.03);
}

.community-scroll-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

@keyframes community-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* CTA Section */
.about-cta {
    background: var(--red-primary);
    padding: 5rem 2rem;
    text-align: center;
    border-top: 2px solid var(--dark);
    border-bottom: 2px solid var(--dark);
}

.about-cta h2 {
    font-family: 'Bebas Neue Pro', 'Bebas Neue', sans-serif;
    font-size: clamp(3rem, 7vw, 5rem);
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.about-cta p {
    font-size: 1.25rem;
    color: var(--dark);
    margin-bottom: 2rem;
    opacity: 0.8;
}

.about-cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-about-primary {
    display: inline-block;
    background: var(--dark);
    color: #ffffff;
    font-family: 'Bebas Neue Pro', 'Bebas Neue', sans-serif;
    font-size: 1.4rem;
    letter-spacing: 2px;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

.btn-about-primary:hover {
    background: #111;
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.35);
}

.btn-about-secondary {
    display: inline-block;
    background: transparent;
    color: var(--dark);
    font-family: 'Bebas Neue Pro', 'Bebas Neue', sans-serif;
    font-size: 1.4rem;
    letter-spacing: 2px;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    border: 2px solid var(--dark);
    transition: all 0.3s ease;
}

.btn-about-secondary:hover {
    background: var(--dark);
    color: #ffffff;
    transform: translateY(-3px);
}

/* Responsive */
@media (max-width: 1024px) {
    .about-hero {
        min-height: 60vh;
        padding: 160px 1.5rem 80px;
    }
    body.coc-has-announcement .about-hero {
        padding-top: calc(var(--coc-announcement-h, 48px) + 160px);
    }
    .food-pillars {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    .community-scroll-item {
        width: 300px;
        height: 220px;
    }
    .about-stats-inner {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .about-hero {
        min-height: auto;
        padding: 150px 1rem 60px;
    }
    body.coc-has-announcement .about-hero {
        padding-top: calc(var(--coc-announcement-h, 48px) + 150px);
    }
    .about-title {
        font-size: clamp(2.5rem, 12vw, 4.5rem);
        margin-bottom: 1.5rem;
    }
    .about-subtitle {
        font-size: 1.05rem;
    }
    .about-nav-link {
        font-size: 1rem;
        padding: 1rem 1.25rem;
        letter-spacing: 1px;
    }
    .about-section {
        padding: 4rem 1.5rem;
    }
    .food-pillars {
        grid-template-columns: 1fr;
    }
    .food-pillar {
        padding: 2rem;
    }
    .about-image-break img {
        height: 300px;
    }
    .timeline {
        padding-left: 2rem;
    }
    .timeline-item {
        padding-left: 1.5rem;
    }
    .about-stats {
        padding: 3rem 1.5rem;
    }
    .about-stats-inner {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    .about-cta {
        padding: 4rem 1.5rem;
    }
    .about-cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .about-hero {
        padding: 145px 0.75rem 50px;
    }
    body.coc-has-announcement .about-hero {
        padding-top: calc(var(--coc-announcement-h, 60px) + 140px);
    }
    .about-title {
        font-size: clamp(2rem, 14vw, 3.5rem);
    }
    .about-nav-link {
        font-size: 0.9rem;
        padding: 0.9rem 0.75rem;
    }
    .section-title-center {
        font-size: 2.25rem;
    }
}
