/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Hardware acceleration for specific elements only */
.gallery-item, .menu-item, .hero-text {
    -webkit-transform: translateZ(0);
    -moz-transform: translateZ(0);
    -ms-transform: translateZ(0);
    -o-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-perspective: 1000;
    perspective: 1000;
}

html {
    scroll-padding-top: 100px;
}

body {
    font-family: 'Radio Canada', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fefefe;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-feature-settings: "kern" 1;
    font-kerning: normal;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

p, span, div, a {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: #2c2c2c;
}

h3 {
    font-size: 1.8rem;
    color: #2c2c2c;
}

h4 {
    font-size: 1.2rem;
    color: #2c2c2c;
}

p {
    margin-bottom: 1rem;
    color: #555;
    font-size: 1rem;
    line-height: 1.7;
}

.lead {
    font-size: 1.2rem;
    font-weight: 500;
    color: #E53E3E;
    margin-bottom: 2rem;
}

/* Header */
.header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    background: transparent;
    z-index: 9999 !important;
    padding: 1.5rem 0;
    transition: all 0.3s ease;
    pointer-events: none;
}

.header * {
    pointer-events: auto;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.reservation-btn {
    background: #E53E3E;
    color: white !important;
    padding: 16px 32px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.4s ease;
    font-size: 1rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.reservation-btn:hover {
    background: #c53030;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(229, 62, 62, 0.3);
}

/* Hero Section */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6) 0%, rgba(229, 62, 62, 0.2) 100%);
    z-index: -1;
}

.hero-content {
    color: white;
    z-index: 1;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-text {
    animation: fadeInUp 1.2s ease-out;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-logo {
    margin-bottom: 3rem;
}

.hero-logo-img {
    height: 160px;
    width: auto;
}

.hero-title {
    font-size: 2.4rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0;
    letter-spacing: 0.1em;
    white-space: nowrap;
}

/* Story Section */
.story {
    padding: 8rem 0;
    background: #ECD3BD;
    position: relative;
}


.story-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 6rem;
    align-items: center;
    margin-bottom: 6rem;
}

.story-text h2 {
    text-align: left;
    margin-bottom: 3rem;
    font-size: 3.5rem;
    font-weight: 700;
    color: #1a1a1a;
}

.story-text .lead {
    font-size: 1.4rem;
    line-height: 1.6;
    margin-bottom: 2.5rem;
}

.story-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: #555;
}

.story-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.story-text h3 {
    color: #1a1a1a;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    font-size: 2.2rem;
}


/* Menu Section */
.menu {
    padding: 8rem 0;
    background: white;
}

.menu h2 {
    font-size: 3.5rem;
    margin-bottom: 2rem;
}

.menu-subtitle {
    text-align: center;
    font-size: 1.3rem;
    color: #666;
    margin-bottom: 6rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.menu-categories {
    display: grid;
    gap: 6rem;
    max-width: 900px;
    margin: 0 auto;
}

.menu-category h3 {
    color: #E53E3E;
    margin-bottom: 3rem;
    font-size: 2.2rem;
    font-weight: 600;
    position: relative;
}


.menu-items {
    display: grid;
    gap: 0;
}

.menu-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.menu-icon {
    width: 50px;
    height: 50px;
    object-fit: contain;
    flex-shrink: 0;
    opacity: 0.8;
    transition: all 0.3s ease;
}


.menu-item:last-child {
    border-bottom: none;
}

.item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.item-info h4 {
    margin-bottom: 0.3rem;
    color: #1a1a1a;
    font-size: 1.3rem;
    font-weight: 600;
}

.item-info p {
    color: #666;
    font-size: 1rem;
    margin-bottom: 0;
    line-height: 1.6;
}

.menu-button-container {
    text-align: center;
    margin-top: 3rem;
}

.menu-btn {
    background: #E53E3E;
    color: white !important;
    padding: 16px 32px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.4s ease;
    font-size: 1rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    display: inline-block;
}

.menu-btn:hover {
    background: #c53030;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(229, 62, 62, 0.3);
}

/* Gallery Section */
.gallery {
    padding: 8rem 0;
    background: linear-gradient(180deg, #ffffff 0%, #f8f8f8 100%);
    position: relative;
}


.gallery h2 {
    font-size: 3.5rem;
    margin-bottom: 4rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto;
}

.gallery-item {
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    opacity: 1 !important;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #1a1a1a 0%, #2c2c2c 100%);
    color: white;
    padding: 6rem 0 3rem;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, #E53E3E 50%, transparent 100%);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3,
.footer-section h4 {
    color: white;
    margin-bottom: 1rem;
}

.footer-section p {
    color: #ccc;
    margin-bottom: 0.5rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.footer-logo-img {
    height: 60px;
    width: auto;
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #E53E3E;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: #E53E3E;
    transform: translateY(-2px);
}

.social-icon svg {
    width: 20px;
    height: 20px;
}

.footer-bottom {
    border-top: 1px solid #444;
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom p {
    color: #999;
    margin-bottom: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-container {
        padding: 0 20px;
    }
    
    .hero {
        align-items: center;
        text-align: center;
    }
    
    .hero-logo-img {
        height: 100px;
    }
    
    .hero-title {
        font-size: 1.8rem;
        white-space: normal;
    }
    
    .story-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .story-image {
        order: -1;
    }
    
    .story-text h2 {
        font-size: 2.5rem;
        text-align: center;
    }
    
    .chef-section {
        padding: 2.5rem;
    }
    
    .menu h2, .gallery h2 {
        font-size: 2.5rem;
    }
    
    .menu-item {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .menu-icon {
        width: 40px;
        height: 40px;
    }
    
    .price {
        margin-left: 0;
        order: 3;
        width: 100%;
        text-align: right;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .header-container {
        padding: 0 15px;
    }
    
    .hero-logo-img {
        height: 80px;
    }
    
    .hero-title {
        font-size: 1.4rem;
        white-space: normal;
    }
    
    .story-text h2,
    .menu h2,
    .gallery h2 {
        font-size: 2rem;
    }
    
    .story,
    .menu,
    .gallery {
        padding: 5rem 0;
    }
    
    .menu-categories {
        gap: 4rem;
    }
    
    .reservation-btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }
}

/* Smooth scrolling animations */
@media (prefers-reduced-motion: no-preference) {
    .gallery-item,
    .menu-item,
    .chef-section,
    .story-text,
    .story-image {
        opacity: 0;
        transform: translateY(30px);
        animation: fadeInUp 0.8s ease forwards;
    }
    
    .gallery-item:nth-child(1) { animation-delay: 0.1s; }
    .gallery-item:nth-child(2) { animation-delay: 0.2s; }
    .gallery-item:nth-child(3) { animation-delay: 0.3s; }
    .gallery-item:nth-child(4) { animation-delay: 0.4s; }
    .gallery-item:nth-child(5) { animation-delay: 0.5s; }
    .gallery-item:nth-child(6) { animation-delay: 0.6s; }
    
    .menu-item:nth-child(1) { animation-delay: 0.1s; }
    .menu-item:nth-child(2) { animation-delay: 0.2s; }
    .menu-item:nth-child(3) { animation-delay: 0.3s; }
    .menu-item:nth-child(4) { animation-delay: 0.4s; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Cookie Consent Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(20, 20, 20, 0.98);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(229, 62, 62, 0.3);
    padding: 1.5rem;
    z-index: 10000;
    animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.cookie-text h3 {
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.cookie-text p {
    color: #ccc;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

.cookie-buttons {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-family: 'Radio Canada', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.cookie-btn-primary {
    background: #E53E3E;
    color: white;
}

.cookie-btn-primary:hover {
    background: #c53030;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(229, 62, 62, 0.3);
}

.cookie-btn-secondary {
    background: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.cookie-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.cookie-btn-tertiary {
    background: transparent;
    color: #E53E3E;
    border: 1px solid rgba(229, 62, 62, 0.5);
}

.cookie-btn-tertiary:hover {
    background: rgba(229, 62, 62, 0.1);
    border-color: #E53E3E;
}

/* Cookie Modal */
.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.cookie-modal-content {
    background: #1a1a1a;
    border: 1px solid rgba(229, 62, 62, 0.3);
    border-radius: 8px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cookie-modal-header h3 {
    color: white;
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0;
}

.cookie-close {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.cookie-close:hover {
    color: #E53E3E;
}

.cookie-modal-body {
    padding: 1.5rem;
}

.cookie-category {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cookie-category:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.cookie-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.cookie-category-header h4 {
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

.cookie-category p {
    color: #ccc;
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

.cookie-always-active {
    color: #E53E3E;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
}

/* Toggle Switch */
.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.cookie-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #444;
    transition: 0.3s;
    border-radius: 26px;
}

.cookie-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.cookie-toggle input:checked + .cookie-slider {
    background-color: #E53E3E;
}

.cookie-toggle input:checked + .cookie-slider:before {
    transform: translateX(24px);
}

.cookie-modal-footer {
    padding: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        align-items: stretch;
    }
    
    .cookie-buttons {
        flex-direction: column;
    }
    
    .cookie-btn {
        width: 100%;
        text-align: center;
    }
    
    .cookie-modal-footer {
        flex-direction: column;
    }
    
    .cookie-modal-footer .cookie-btn {
        width: 100%;
    }
}
