/* ==========================================================================
   Deliciously Pro Theme - Chefs & Team Styles
   ==========================================================================*/

/* --- Hero Section --- */
.hero-section.chefs-hero {
    position: relative;
    min-height: 100vh; /* Full viewport height */
    display: flex;
    align-items: center;
    justify-content: center;
    
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    
    /* FIXED: Performance fix. Parallax 'fixed' kills mobile performance.
       We keep it for Desktop (min-width: 1024px) but disable it for mobile. */
    background-attachment: scroll; 
    
    overflow: hidden;
    background-color: var(--color-bg);
    color: var(--color-text);
}

@media (min-width: 1024px) {
    .hero-section.chefs-hero {
        background-attachment: fixed; /* Re-enabled only for desktop */
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(17, 17, 17, 0.3), rgba(17, 17, 17, 0.8));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 2rem;
    text-align: center;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--color-text);
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--color-text-muted);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* --- Team Section --- */
.chef-team {
    padding: 6rem 0;
    background-color: var(--color-surface);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.team-card {
    background-color: var(--color-bg);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* FIXED: Added Focus state for Accessibility */
.team-card:focus-visible {
    outline: 3px solid var(--color-accent);
    outline-offset: 4px;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.team-image {
    position: relative;
    height: 320px;
    overflow: hidden;
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.team-card:hover .team-image img {
    transform: scale(1.05);
}

.team-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 0%, rgba(17,17,17,0.8) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-end;
    padding: 2rem;
    color: var(--color-bg);
}

.team-card:hover .team-overlay {
    opacity: 1;
}

.team-info h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: #fff;
}

.team-info p {
    font-size: 0.875rem;
    margin-bottom: 1rem;
    opacity: 0.9;
    color: rgba(255,255,255,0.8);
}

.chef-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-tag {
    /* FIXED: Replaced hardcoded Gold color with dynamic variable mix.
       Now it adapts if user changes Accent Color in Customizer. */
    background-color: color-mix(in srgb, var(--color-accent), transparent 85%);
    color: var(--color-accent);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* --- Signature Dishes Section --- */
.signature-dishes {
    padding: 6rem 0;
    background-color: var(--color-bg);
}

.dishes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.dish-card {
    background-color: var(--color-surface);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* FIXED: Added Focus state */
.dish-card:focus-visible {
    outline: 3px solid var(--color-accent);
    outline-offset: 4px;
}

.dish-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.dish-image {
    height: 200px;
    overflow: hidden;
}

.dish-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.dish-card:hover .dish-image img {
    transform: scale(1.05);
}

.dish-info {
    padding: 1.5rem;
}

.dish-name {
    font-family: var(--font-serif);
    font-size: 1.125rem;
    color: var(--color-text);
    margin-bottom: 0.5rem;
}

.dish-description {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.dish-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dish-price {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-accent);
}

.dish-btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* --- Awards Section --- */
.awards-recognition {
    padding: 6rem 0;
    background-color: var(--color-surface);
}

.awards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.award-card {
    background-color: var(--color-bg);
    border-radius: var(--radius-md);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease;
}

/* FIXED: Added Focus state */
.award-card:focus-visible {
    outline: 3px solid var(--color-accent);
    outline-offset: 4px;
}

.award-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.award-icon {
    font-size: 3rem;
    color: var(--color-accent);
    margin-bottom: 1.5rem;
}

.award-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 0.5rem;
}

.award-description {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.award-year {
    font-size: 0.875rem;
    color: var(--color-accent);
    font-weight: 600;
}

/* --- Press Section --- */
.press-features {
    padding: 6rem 0;
    background-color: var(--color-bg);
}

.press-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.press-quotes {
    margin-bottom: 2rem;
}

.press-quote {
    background-color: var(--color-surface);
    border-left: 4px solid var(--color-accent);
    padding: 2rem;
    margin-bottom: 1.5rem;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.press-quote p {
    font-size: 1.125rem;
    font-style: italic;
    margin-bottom: 1rem;
    color: var(--color-text);
}

.press-source {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    font-weight: 600;
}

.press-logos {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.press-logo {
    background-color: var(--color-surface);
    padding: 2rem;
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.press-logo img {
    max-width: 100%;
    height: auto;
    margin-bottom: 1rem;
}

/* --- Section Headers --- */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-family: var(--font-serif);
    font-size: 2.25rem;
    color: var(--color-text);
    margin-bottom: 1rem;
}

.divider {
    width: 60px;
    height: 3px;
    background-color: var(--color-accent);
    margin: 0 auto 1rem;
}

/* --- Animations (Fixed Logic) --- */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

/* Fade/Slide helper classes */
.animate-fade-in { opacity:0; animation:fadeIn 0.8s ease forwards; }
.animate-slide-up { opacity:0; transform:translateY(20px); animation:slideUp 0.8s ease forwards; }

/* FIXED: Updated classes to use correct specific keyframes so they don't glitch */
.animate-fade-left { opacity:0; transform:translateX(-30px); animation:fadeLeft 0.8s ease forwards; }
.animate-fade-right { opacity:0; transform:translateX(30px); animation:fadeRight 0.8s ease forwards; }

@keyframes fadeIn { to { opacity: 1; } }
@keyframes slideUp { to { opacity: 1; transform: translateY(0); } }
/* FIXED: New keyframes for horizontal movement */
@keyframes fadeLeft { to { opacity: 1; transform: translateX(0); } }
@keyframes fadeRight { to { opacity: 1; transform: translateX(0); } }

/* --- Responsive Design --- */
@media (max-width: 992px) {
    .press-content { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .press-logos { grid-template-columns: 1fr; }
    .hero-title { font-size: clamp(2rem, 5vw, 3rem); }
}

@media (max-width: 480px) {
    .section-title { font-size: 1.75rem; }
    .btn { gap:0.5rem; padding:0.5rem 1rem; font-size:0.875rem; }
    .team-grid, .dishes-grid, .awards-grid { grid-template-columns: 1fr; }
}