/*
Theme Name: IYI Dining v3 (FSE)
Theme URI: https://iyidining.co.uk
Author: IYI Web Team
Author URI: https://iyidining.co.uk
Description: A modern, 2026-standard Block Theme for IYI Dining built to eliminate layout bugs.
Version: 3.0.0
Tested up to: 7.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: block-theme, dark-mode, custom-colors
Text Domain: iyi-v3
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

/* --- DESIGN SYSTEM (VARIABLES) --- */
:root {
    --color-gold: #C5A059;
    --color-flame: #E1B85A;
    --color-black: #000000;
    --color-charcoal: #050505;
    --color-text-muted: rgba(255, 255, 255, 0.7);
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    --transition-smooth: all 0.3s ease;
}

/* --- RESET & FOUNDATION --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    width: 100vw;
    max-width: 100vw;
    /* The 2026 standard for strictly locking horizontal scroll without hacks: */
    overflow-x: clip; 
    background-color: var(--color-black);
    color: #ffffff;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    /* Physically disable horizontal swipe gestures on mobile: */
    touch-action: pan-y;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-gold);
    line-height: 1.2;
    text-align: center;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

h1 { font-size: 5rem; }
h2 { font-size: 3rem; }
h3 { font-size: 2rem; }

.section-subtitle {
    display: block;
    color: var(--color-gold);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    text-align: center;
    margin-bottom: 1rem;
}

.text-gold { color: var(--color-gold); }
.text-muted { color: var(--color-text-muted); }

/* --- BUTTONS --- */
.btn-gold-outline, .btn-flame {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    transition: var(--transition-smooth);
    cursor: pointer;
    text-align: center;
}

.btn-gold-outline {
    border: 1px solid var(--color-gold);
    color: var(--color-gold);
    background: transparent;
}

.btn-gold-outline:hover {
    background-color: var(--color-gold);
    color: var(--color-black);
}

.btn-flame {
    background-color: transparent;
    border: 1px solid var(--color-flame);
    color: var(--color-flame);
}

.btn-flame:hover {
    background-color: var(--color-flame);
    color: #ffffff;
}

/* --- LAYOUT UTILITIES --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 5rem 0;
}

.bg-black { background-color: var(--color-black); }
.bg-charcoal { background-color: var(--color-charcoal); }

/* --- HEADER & NAVIGATION --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    background-color: rgba(5, 5, 5, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(197, 160, 89, 0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px;
    width: auto;
}

.desktop-nav .nav-links {
    display: flex;
    gap: 30px;
}

.desktop-nav .nav-links a {
    color: var(--color-gold);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 500;
    transition: var(--transition-smooth);
}

.desktop-nav .nav-links a:hover, .desktop-nav .nav-links a.active {
    color: #ffffff;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* HAMBURGER MENU ICON (MOBILE ONLY) */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 2000;
    width: 30px;
    height: 24px;
    flex-direction: column;
    justify-content: space-between;
}

.hamburger-line {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--color-gold);
    transition: var(--transition-smooth);
    border-radius: 2px;
}

/* --- MOBILE MENU OVERLAY --- */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--color-black);
    z-index: 1500; /* Below hamburger, above header */
    display: flex;
    justify-content: center;
    align-items: center;
    
    /* Animation defaults (Hidden securely WITHOUT moving bounds) */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-container {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.mobile-nav-links a {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--color-gold);
    transition: var(--transition-smooth);
}

.mobile-nav-links a:hover, .mobile-nav-links a.active {
    color: #ffffff;
}

/* --- HERO SECTION --- */
.hero {
    position: relative;
    height: 100vh;
    width: 100vw;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden; /* Contains the video */
    padding-top: 80px; /* Offset for header */
}

.video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 3rem;
    border: 1px solid rgba(197, 160, 89, 0.2);
    background: rgba(5, 5, 5, 0.4);
    backdrop-filter: blur(8px);
    max-width: 800px;
}

.hero-subtitle {
    display: block;
    color: #ffffff;
    letter-spacing: 0.2em;
    font-size: 14px;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.9);
}

/* --- ABOUT SECTION --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text {
    text-align: center;
}

.about-text h2, .about-text .section-subtitle {
    text-align: center;
}

.about-text p {
    margin-bottom: 1.5rem;
    color: var(--color-text-muted);
}

.about-image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 100%; /* Square aspect ratio hack */
}

.about-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 2;
}

.about-image-accent {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100%;
    height: 100%;
    border: 1px solid var(--color-gold);
    z-index: 1;
}

/* --- MEDIA GRID --- */
.media-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.media-item {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(197, 160, 89, 0.2);
}

.media-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.media-item:hover img {
    transform: scale(1.1);
}

.reservation-teaser {
    max-width: 800px;
    margin: 0 auto;
}

.reservation-teaser p {
    margin-bottom: 3rem;
}

/* --- ANIMATIONS --- */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- RESPONSIVE MEDIA QUERIES (MOBILE FIRST MINDSET) --- */

@media screen and (max-width: 992px) {
    .desktop-nav {
        display: none; /* Hide standard nav */
    }

    .desktop-only {
        display: none; /* Hide desktop CTA */
    }

    .hamburger {
        display: flex; /* Show hamburger */
    }

    h1 { font-size: 3.5rem; }
    h2 { font-size: 2.5rem; }
    
    .hero-content {
        padding: 2rem;
        margin: 0 20px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-text, .about-text h2, .about-text .section-subtitle {
        text-align: center;
    }

    .about-image-accent {
        /* Keep accent entirely inside container on mobile so it NEVER overflows */
        top: 10px;
        right: 10px;
        width: calc(100% - 20px);
        height: calc(100% - 20px);
    }
    
    .media-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 480px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    
    .media-grid {
        grid-template-columns: 1fr;
    }
    
    .section-padding {
        padding: 3rem 0;
    }
}
