/* ======================================================
   ABOUT PAGE STYLES (Refactored for ThemeForest Standards)
====================================================== */

/* ======================================================
   RESET & GLOBAL UTILITIES
   ====================================================== */
.about-page {
    overflow-x: hidden; /* Prevents accidental horizontal scroll */
    width: 100%;
}

/* Ensure box-sizing is consistent globally */
.about-page *,
.about-page *::before,
.about-page *::after {
    box-sizing: border-box;
}

/* ======================================================
   ABOUT HERO SECTION
   ====================================================== */
.about-hero {
    position: relative;
    /* Modern mobile viewport handling */
    height: 100vh;
    min-height: 600px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    /* CRITICAL: Contain overflow effects */
    overflow: hidden;
    background-color: var(--color-text, #1a1a1a);
}

.hero-background {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
}

.hero-video, .hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

.hero-background .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.6));
    z-index: 1;
    pointer-events: none;
}

/* Parallax Elements - Safe positioning */
.parallax-element {
    position: absolute;
    z-index: 2;
    pointer-events: none;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    will-change: transform;
    max-width: 100%; /* Safety: never wider than viewport */
    top: 0;
    left: 0;
}

.steam { width: 300px; height: 300px; top: 20%; left: 10%; opacity: 0.7; }
.spice { width: 150px; height: 150px; bottom: 15%; right: 15%; opacity: 0.8; }
.grilled { width: 250px; height: 250px; top: 15%; right: 15%; opacity: 0.6; }

/* Performance: Remove heavy assets on mobile */
@media (max-width: 768px) {
    .parallax-element { display: none; }
}

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 800px;
    padding: 0 20px; /* Safe padding */
    color: #fff;
    width: 100%;
}

.page-title {
    font-family: var(--font-serif, serif);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.1;
    text-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.page-subtitle {
    font-family: var(--font-sans, sans-serif);
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 300;
    margin: 0 auto 2.5rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.btn-hero {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.875rem;
    border-radius: 50px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    text-decoration: none;
    cursor: pointer;
    min-height: 44px; /* Accessibility: Touch Target */
}

.btn-hero-gold {
    background-color: var(--color-accent, #d4af37);
    color: var(--color-bg, #ffffff);
    border: 2px solid var(--color-accent, #d4af37);
}
.btn-hero-gold:hover {
    background-color: #fff;
    color: var(--color-text, #1a1a1a);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg, 0 10px 30px rgba(0,0,0,0.1));
}

.btn-hero-outline {
    background-color: transparent;
    color: #fff;
    border: 2px solid #fff;
}
.btn-hero-outline:hover {
    background-color: #fff;
    color: var(--color-text, #1a1a1a);
    transform: translateY(-3px);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    text-align: center;
    color: rgba(255,255,255,0.7);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: rgba(255,255,255,0.3);
    margin: 10px auto 0;
    position: relative;
    overflow: hidden;
}

.scroll-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    transform: translateY(-100%);
    animation: scrollLine 2s cubic-bezier(0.77,0,0.175,1) infinite;
}

@keyframes scrollLine {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

/* =========================================
   PHILOSOPHY SECTION
   ========================================= */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-family: var(--font-serif, serif);
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1.5rem;
    color: var(--color-text, #1a1a1a);
}

.gold-separator {
    width: 80px;
    height: 2px;
    background-color: var(--color-accent, #d4af37);
    margin: 0 auto;
}

.philosophy-section {
    padding: 6rem 0;
    background-color: var(--color-bg, #ffffff);
}

.philosophy-grid {
    display: grid;
    /* Responsive grid: 1 col mobile, 2 cols tablet, 3 cols desktop */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-bottom: 5rem;
    max-width: 1200px;
    margin-inline: auto;
    padding-inline: 20px;
}

.philosophy-item {
    text-align: center;
    padding: 2.5rem;
    background-color: var(--color-surface, #f9f9f9);
    border: 1px solid var(--color-border, #e0e0e0);
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

.philosophy-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg, 0 10px 30px rgba(0,0,0,0.08));
}
.philosophy-quote {
    background-color: #e9e1d4; 
    padding: 4rem 3rem;
    margin: 4rem auto;
    max-width: 1100px;
    position: relative;
    text-align: center;
}


.philosophy-quote::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background-color: #c7a24b;
}

.philosophy-quote blockquote {
    margin: 0;
}

.philosophy-quote p {
    font-family: "Playfair Display", serif;
    font-size: 2rem;
    line-height: 1.6;
    font-style: italic;
    color: #111;
    margin-bottom: 1.5rem;
}

.philosophy-quote cite {
    font-family: "Poppins", sans-serif;
    font-size: 1.1rem;
    font-style: italic;
    color: #111;
}

/* ========================= */
/* 📱 Responsive */
/* ========================= */

@media (max-width: 1024px) {
    .philosophy-quote {
        padding: 3rem 2rem;
    }

    .philosophy-quote p {
        font-size: 1.75rem;
    }
}

@media (max-width: 768px) {
    .philosophy-quote {
        padding: 2.5rem 1.75rem;
    }

    .philosophy-quote p {
        font-size: 1.5rem;
    }

    .philosophy-quote cite {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .philosophy-quote {
        padding: 2rem 1.25rem;
    }

    .philosophy-quote p {
        font-size: 1.25rem;
    }

    .philosophy-quote::before {
        width: 3px;
    }
}

/* =========================================
   STORY TIMELINE (REFACTORED)
   ========================================= */
.story-section {
    padding: 5rem 20px; /* Safe inline padding */
    background-color: var(--color-text, #1a1a1a);
    color: var(--color-bg, #ffffff);
    position: relative;
    overflow: hidden; /* Safety containment */
}

.story-section .section-title { color: var(--color-bg); }
.story-section h3 { color: var(--color-bg); }

.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 0;
}

/* 
   TIMELINE LINE 
   Mobile: Aligns to the left.
   Desktop: Aligns to the center (50%).
*/
.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: var(--color-accent, #d4af37);
    opacity: 0.3;
    
    /* Mobile Default: Left Aligned */
    left: 20px; /* Matches container padding roughly for alignment */
}

/* 
   TIMELINE ITEM CONTAINER 
   Mobile: 100% width, stacked.
   Desktop: 50% width, alternating.
*/
.timeline-item {
    position: relative;
    width: 100%;
    margin-bottom: 50px;
    padding-left: 50px; /* Space for the left-side line on mobile */
    clear: both;
}

.timeline-content {
    display: flex;
    flex-direction: column; /* Stack text and image on mobile */
    gap: 20px;
    background: rgba(255,255,255,0.05);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.1);
}

/* Mobile Text Alignment */
.timeline-left, .timeline-right {
    text-align: left;
}

/* Mobile Image Styling */
.timeline-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border: 5px solid rgba(212, 175, 55, 0.3);
    border-radius: 4px;
}

.timeline-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.timeline-item:hover .timeline-image img { transform: scale(1.05); }

.timeline-text { flex: 1; }

.timeline-year {
    display: inline-block;
    padding: 5px 15px;
    background-color: var(--color-accent, #d4af37);
    color: var(--color-text, #1a1a1a);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    border-radius: 4px;
}

/* 
   TIMELINE DOT
   Logic: Positioned absolutely relative to the .timeline-item.
   Mobile: Positioned left to meet the line.
   Desktop: Positioned right or left to meet the center line.
*/
.timeline-dot {
    position: absolute;
    top: 24px;
    width: 16px;
    height: 16px;
    background-color: var(--color-accent, #d4af37);
    border: 2px solid var(--color-bg, #ffffff);
    border-radius: 50%;
    z-index: 2;
    
    /* Mobile: Left aligned to line (20px left offset) */
    left: 12px; /* 20px (line) - 8px (half dot) - padding correction */
    transform: translateX(0); /* Reset any transforms */
}


/* =========================================
   DESKTOP LAYOUT (≥ 992px)
   ========================================= */
@media (min-width: 992px) {
    
    /* Center the line */
    .timeline::before {
        left: 50%;
        transform: translateX(-50%);
    }

    .timeline-item {
        width: 50%;
        padding-left: 0; /* Reset mobile padding */
        margin-bottom: 60px;
    }

    /* Left Side Items */
    .timeline-left {
        padding-right: 40px; /* Gap from center line */
        text-align: right;
    }

    /* Left Item Content: Reverse row (Text Left, Image Right visually inside? No, standard is Text Right of center) */
    /* Usually timeline left means: Text on Left, Line Center. */
    .timeline-left .timeline-content {
        align-items: flex-end; /* Align items to right */
    }

    /* Right Side Items */
    .timeline-right {
        margin-left: 50%; /* Push to right side */
        padding-left: 40px; /* Gap from center line */
        text-align: left;
    }
    
    .timeline-right .timeline-content {
        align-items: flex-start;
    }

    /* Desktop: Side-by-side Image and Text */
    .timeline-content {
        flex-direction: row; /* Horizontal layout on desktop */
        align-items: center;
    }

    .timeline-left .timeline-content {
        flex-direction: row-reverse; /* Image on left of text for Left Item */
    }
    
    /* Desktop Image Size */
    .timeline-image {
        width: 150px;
        height: 150px;
        flex-shrink: 0;
    }

    /* Desktop Dot Positioning */
    /* Left Item: Dot is on the far right edge of the item container */
    .timeline-left .timeline-dot {
        right: -9px; /* Half dot width (8px) + 1px border/line width */
        left: auto;
    }

    /* Right Item: Dot is on the far left edge of the item container */
    .timeline-right .timeline-dot {
        left: -9px; /* Half dot width + border */
        right: auto;
    }
}

/* =========================================
   TESTIMONIALS SECTION
   ========================================= */
.testimonials-section {
    padding: 6rem 20px;
    background-color: var(--color-bg, #ffffff);
    position: relative;
    overflow: hidden;
}

.testimonials-slider {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    padding-bottom: 20px;
    -webkit-overflow-scrolling: touch;
    /* Hide scrollbar */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.testimonials-slider::-webkit-scrollbar { display: none; }

.testimonial-item {
    flex: 0 0 100%; /* Mobile: 1 per slide */
    scroll-snap-align: center;
}

@media (min-width: 768px) {
    .testimonial-item { flex: 0 0 calc(50% - 15px); } /* Tablet: 2 per slide */
}
@media (min-width: 1200px) {
    .testimonial-item { flex: 0 0 calc(33.333% - 20px); } /* Desktop: 3 per slide */
}

.testimonial-content {
    background: var(--color-surface, #f9f9f9);
    border-radius: 12px;
    padding: 40px 30px;
    box-shadow: var(--shadow-sm, 0 4px 10px rgba(0,0,0,0.05));
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid var(--color-border, #e0e0e0);
}

.author-image {
    width: 80px; height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 20px;
    border: 2px solid var(--color-accent, #d4af37);
}

.author-image img { width: 100%; height: 100%; object-fit: cover; }

.testimonial-content blockquote p {
    font-family: var(--font-serif, serif);
    font-size: 1.1rem;
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 30px;
    color: var(--color-text, #1a1a1a);
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: auto;
}

.testimonials-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    position: relative;
    z-index: 2;
}

.testimonial-prev, .testimonial-next {
    width: 52px; height: 52px;
    border-radius: 50%;
    background: var(--color-surface);
    border: 1px solid var(--color-accent);
    color: var(--color-accent);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.testimonial-prev:hover, .testimonial-next:hover {
    background: var(--color-accent);
    color: var(--color-bg);
    box-shadow: var(--shadow-md);
}
/* =========================================
   CHEF SECTION
   ========================================= */
.chef-section {
    padding: 6rem 20px;
    background-color: var(--color-text, #1a1a1a);
    color: var(--color-bg, #ffffff);
}

.chef-content {
    display: flex;
    align-items: center;
    gap: 60px;
    max-width: 1100px;
    margin: 0 auto;
    flex-direction: column; /* Mobile stack */
}

@media (min-width: 992px) {
    .chef-content { flex-direction: row; } /* Desktop side-by-side */
}

.chef-image { flex: 1; position: relative; width: 100%; }
.chef-image img {
    width: 100%;
    border: 10px solid rgba(212, 175, 55, 0.2);
    display: block;
    border-radius: 8px;
}

.chef-info { flex: 1; }

.chef-name {
    font-family: var(--font-serif, serif);
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 10px;
    color: var(--color-bg);
}

.chef-title {
    font-family: var(--font-sans, sans-serif);
    font-size: 1.2rem;
    font-weight: 300;
    margin-bottom: 30px;
    color: var(--color-accent, #d4af37);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* =========================================
   CTA SECTION
   ========================================= */
.cta-section {
    padding: 6rem 0;
    background-color: var(--color-text);
    /* CRITICAL FIX: Combined shorthand ensures color acts as fallback */
    background: linear-gradient(rgba(0,0,0,0), rgba(0,0,0,0.6)), var(--bg-image) center/cover no-repeat;
    background: linear-gradient(rgba(0,0,0,0), rgba(0,0,0,0.6)), url('../img/luxury-image.png') center/cover no-repeat; /* Kept path here for CSS functionality, but please move to PHP */
    position: relative;
}

.cta-background{
    position: absolute;
    inset: 0;
    /* Duplicate of gradient above, but keeping structure if needed */
    background: linear-gradient(rgba(0,0,0,0), rgba(0,0,0,0.6));
    z-index: 1;
    pointer-events: none;
}
.cta-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    color: var(--color-bg);
}

.gold-line {
    width: 100px; height: 1px;
    background-color: var(--color-accent);
    margin: 0 auto;
}
.gold-line.top { margin-bottom: 2rem; }
.gold-line.bottom { margin-top: 2rem; }

.cta-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 1.5rem;
}

.cta-content p {
    font-family: var(--font-sans);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 2.5rem;
    color: rgba(255,255,255,0.9);
}

/* =========================================
   ACCESSIBILITY & ANIMATIONS
   ========================================= */

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .parallax-element { display: none; }
}

/* Entrance Animations (Safe & Simple) */
.animate-fade-in { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease, transform 0.8s ease; }
.animate-fade-in.in-view { opacity: 1; transform: translateY(0); }

.animate-delay-1 { transition-delay: 0.2s; }
.animate-delay-2 { transition-delay: 0.4s; }