@charset "utf-8";
@import './reset.css';
@import './joint.css';

#section {
    border-radius: 30px;
    margin: 60px auto;
    max-width: 1200px;
    background-color: #ffffff;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

/* Remove space between header and first About section */
main .container #section:first-of-type {
    margin-top: 0 !important;
}

/* Remove space between last About section and footer */
main .container #section:last-of-type {
    margin-bottom: 0 !important;
}

.about-hero {
    text-align: center;
    padding: 60px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    background-color: #fce896;
    overflow: hidden;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    border-radius: 0;
}

/* Remove container styling only for the hero section */
main .container > section:first-of-type {
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    border-radius: 0;
    background-color: transparent;
}

.about-hero h2 {
    position: absolute;
    font-size: 100px;
    color: #fff;
    line-height: 0.8;
    margin-bottom: 20px;
    transform: translateX(-50%, -50%);
    z-index: 2;
    transition: transform 0.4s ease;
}

.about-hero img {
    width: 500px;
    height: 400px;
    border-radius: 12px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
    filter: brightness(45%);
    z-index: 1;
}

.about-history {
    display: flex;
    justify-content: space-evenly;
    gap: 80px;
    padding: 100px 80px;
}

.about-history-text, .about-restaurant-text { 
    max-width: 400px;
    line-height: 1.7;
    font-size: 16px;
}

.about-history h3, .our {
    display: inline-block;
    font-size: 70px;
    color: #ff7a00;
    margin-bottom: 20px;
    line-height: 1;
}

.about-image {
    width: 400px;
    margin-bottom: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
    transition: transform 0.6s ease, box-shadow 0.6s ease
}

.about-image:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
}


.about-image img {
    width: 100%;
    height: auto;
    display: block;
}

.about-restaurant {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    gap: 80px;
    padding: 100px 80px;
}

.about-restaurant h3{
    position: relative;
    font-size: 70px;
    color: #fbc02d;
    display: inline-block;
    margin-bottom: 20px;
    line-height: 1;
    margin-bottom: 30px;
}

.about-history h3::after,
.about-restaurant h3::after {
    content: "";
    left: 0;
    display: block;
    width: 80px;
    height: 5px;
    background-color: #ff7a00;
    margin-top: 10px;
    border-radius: 10px;
}

/* Testimonial */
.testimonial-layout {
    text-align: center;
    padding: 30px 0;
}

.testimonial-layout ul {
    display: flex; /* Use Flexbox instead of Grid */
    flex-wrap: wrap;  /* Allows items to move to next line */
    justify-content: center;
    gap: 30px; /* Space between columns */
    list-style: none;
}

.stars i {
    font-size: 15px;
}


.column {
    max-width: calc(25% - 15px);
    flex: 0 0 calc(33.333% - 30px);
    background-color:#fff6e5;
    padding: 20px;
    border-radius: 8px;
    transition: transform 0.3s ease;
    text-align: center;
}

.column:hover {
    transform: translateY(-10px);
}

.column img {
    width: 100%;
    height: 200px;
    object-fit: cover; /* Keeps aspect ratio clean */
    border-radius: 4px;
    margin-bottom: 15px;
}

.customer {
    display: block;        /* moves name to its own line */
    margin-top: 10px;
    font-weight: 700;      /* strong bold */
}

/* Fade‑In Animation */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.about-hero img,
.about-history,
.about-restaurant {
    animation: fadeUp 1.2s ease forwards;
}

/* RESPONSIVENESS */

/* Tablets */
@media (max-width: 1024px) {
    .about-hero {
        flex-direction: column;
        padding: 80px 40px;
        gap: 40px;
        text-align: center;
    }

    .about-hero h2 {
        font-size: clamp(48px, 8vw, 72px);
        left: 50%;
        transform: translateX(-50%);
    }

    .about-hero img {
        width: 90%;
        max-width: 420px;
    }

    .about-history,
    .about-restaurant {
        flex-direction: column;
        padding: 80px 40px;
        gap: 60px;
        text-align: center;
        align-items: center;
    }

    .about-history-text,
    .about-restaurant-text {
        margin: 0 auto;
    }
    
    .column {
        flex: 0 0 48%;
        max-width: 48%;
    }

    .column:nth-child(3) {
        margin-left: auto;
        margin-right: auto;
    }

    .testimonial-layout ul {
        justify-content: space-evenly;
    }

    /* Center last card */
    .testimonial-layout ul li:last-child {
         margin-left: auto;
         margin-right: auto;
    }
}

/* Mobile Phones */

@media (max-width: 768px) {
    section {
        margin: 40px 16px;
        border-radius: 20px;
    }

    .about-hero {
        padding: 60px 20px;
    }

    .about-hero h2 {
        font-size: clamp(36px, 10vw, 56px);
        position: relative;
        margin-bottom: 20px;
        opacity: 0.3;
    }

    .about-hero img {
        width: 100%;
        max-width: 350px;
        /* border-radius: 16px; */
    }

    .about-history,
    .about-restaurant {
        padding: 60px 20px;
        gap: 40px;
    }

    .about-image {
        width: 100%;
        max-width: 340px;
        margin: 0 auto;
    }

    .about-history h3,
    .about-restaurant h3 {
        font-size: 48px;
    }

    .about-history-text,
    .about-restaurant-text {
        max-width: 100%;
        bottom: -10px;
        font-size: 15px;
        line-height: 1.7;
    }
    
    .column {
        flex: 0 0 100%;
        max-width: 50%;
        margin-left: auto;
        margin-right: auto;
    }

    .nav {
        width: 100%;
    }

    .nav-list {
        display: none;
        flex-direction: column;
        background-color: #ff7a00;
        width: 100%;
        margin-top: 1rem;
    }

    /* Show nav on hover (CSS-only fallback) */
    .header:hover .nav-list {
        display: flex;
    }
}

/* RESPONSIVE OVERRIDE FOR HERO TEXT */
.about-hero h2 {
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 100%;
    padding: 0 1rem;
}

/* Restore original hero text behavior on mobile */
@media (max-width: 768px) {
    .about-hero h2 {
        position: absolute;
        /* color: #dd2803; */
    }
}
