/* =========================================
   RESTAURANT EL BRIJA - MAIN STYLESHEET
   ========================================= */

/* --- Variables --- */
:root {
    --primary-color: #D4AF37; /* Gold / Bronze */
    --primary-hover: #b5952f;
    --dark-bg: #111111;
    --light-bg: #F9F9F9;
    --white: #ffffff;
    --text-dark: #333333;
    --text-light: #777777;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: var(--white);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--dark-bg);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

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

.section-padding {
    padding: 100px 0;
}

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

.center {
    text-align: center;
}

.subtitle {
    color: var(--primary-color);
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    display: block;
}

.section-title h2 {
    font-size: 2.8rem;
    margin-bottom: 20px;
}

.section-title p {
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto 50px;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--primary-color);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--dark-bg);
}

.btn-outline {
    background-color: transparent;
    color: var(--dark-bg);
    border: 2px solid var(--dark-bg);
}

.btn-outline:hover {
    background-color: var(--dark-bg);
    color: var(--white);
}

/* --- Navigation --- */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    transition: var(--transition);
}

#navbar.scrolled {
    background-color: var(--white);
    padding: 15px 0;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px;
    border-radius: 4px;
    transition: var(--transition);
}

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

.nav-links li a {
    font-weight: 500;
    color: var(--white);
    position: relative;
    padding-bottom: 5px;
}

#navbar.scrolled .nav-links li a {
    color: var(--dark-bg);
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-links li a:hover::after,
.nav-links li a.active::after {
    width: 100%;
}

.nav-links li a:hover,
.nav-links li a.active {
    color: var(--primary-color) !important;
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    color: var(--white);
    cursor: pointer;
}

#navbar.scrolled .hamburger {
    color: var(--dark-bg);
}

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

.slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.05);
    transition: opacity 1.2s ease, transform 6s ease;
    z-index: 0;
}

.slide.active {
    opacity: 1;
    transform: scale(1);
    z-index: 1;
}

.slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(17, 17, 17, 0.55) 0%,
        rgba(17, 17, 17, 0.4) 60%,
        rgba(17, 17, 17, 0.65) 100%
    );
}

/* Hero Content (on top of slider) */
.hero-slider .hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 820px;
    padding: 0 20px;
    animation: heroFadeUp 1s ease both;
}

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

.hero-content h1 {
    color: var(--white);
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.4);
}

.hero-content h1 span {
    color: var(--primary-color);
    font-style: italic;
}

.hero-content p {
    color: #e8e8e8;
    font-size: 1.2rem;
    margin-bottom: 40px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* Arrows */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: var(--white);
    width: 54px;
    height: 54px;
    border-radius: 50%;
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-arrow:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-50%) scale(1.1);
}

.slider-prev { left: 30px; }
.slider-next { right: 30px; }

/* Dots */
.slider-dots {
    position: absolute;
    bottom: 35px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    display: flex;
    gap: 12px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
}

.dot.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: scale(1.35);
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.6);
}

.dot:hover:not(.active) {
    background: rgba(255, 255, 255, 0.7);
}


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

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 25px;
}

.about-text p {
    color: var(--text-light);
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-color);
    font-weight: 600;
    margin-top: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.link-arrow:hover {
    gap: 15px;
}

.about-image {
    position: relative;
}

.about-image img {
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.experience-badge {
    position: absolute;
    bottom: -30px;
    right: -30px;
    background-color: var(--primary-color);
    color: var(--white);
    width: 150px;
    height: 150px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.3);
    text-align: center;
}

.experience-badge .years {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
}

.experience-badge .text {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 5px;
}

/* --- Menu Section --- */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.menu-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: var(--transition);
}

.menu-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.menu-img-wrap {
    height: 240px;
    overflow: hidden;
}

.menu-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.menu-card:hover .menu-img-wrap img {
    transform: scale(1.1);
}

.menu-info {
    padding: 25px;
}

.menu-title-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 1px dashed #ddd;
    padding-bottom: 15px;
}

.menu-title-price h3 {
    font-size: 1.3rem;
    margin: 0;
}

.menu-title-price .price {
    color: var(--primary-color);
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
}

.menu-desc {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* --- Gallery Section --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 250px;
    gap: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
}

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

.gallery-item.item-large {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-item.item-wide {
    grid-column: span 2;
}

.gallery-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(17, 17, 17, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: var(--transition);
}

.gallery-overlay i {
    color: var(--white);
    font-size: 2rem;
    transform: scale(0.5);
    transition: var(--transition);
}

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

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover .gallery-overlay i {
    transform: scale(1);
}

/* --- Footer & Contact Section --- */
.footer {
    background-color: var(--dark-bg);
    color: #bbb;
    padding: 80px 0 20px;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 60px;
}

.footer-logo {
    max-width: 160px;
    margin-bottom: 20px;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.95);
    padding: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.brand-col p {
    margin-bottom: 25px;
    max-width: 300px;
}

.social-links a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    color: var(--white);
    margin-right: 10px;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-col h3 {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background-color: var(--primary-color);
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    gap: 15px;
}

.contact-info li i {
    color: var(--primary-color);
    margin-top: 5px;
}

.hours-info li {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 5px;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    font-size: 0.9rem;
}

/* =========================================
   RESPONSIVE DESIGN
   ========================================= */

/* --- Tablet (≤ 992px) --- */
@media (max-width: 992px) {
    /* Typography */
    .hero-content h1          { font-size: 3.2rem; }
    .section-title h2         { font-size: 2.2rem; }

    /* About */
    .about-grid               { grid-template-columns: 1fr; gap: 50px; text-align: center; }
    .about-text .link-arrow   { justify-content: center; }
    .experience-badge         { right: 0; transform: translateX(20%); }

    /* Gallery */
    .gallery-grid             { grid-template-columns: repeat(2, 1fr); }

    /* Footer */
    .footer-top               { grid-template-columns: 1fr; gap: 40px; text-align: center; }
    .footer-col h3::after     { left: 50%; transform: translateX(-50%); }
    .brand-col p              { margin: 0 auto 25px; }
    .contact-info li          { justify-content: center; }

    /* Reservation */
    .reservation-wrapper      { grid-template-columns: 1fr; gap: 40px; }
    .reservation-info         { text-align: center; }
    .res-contact-list         { align-items: center; }
    .res-contact-list li      { justify-content: center; }
    .reservation-form-wrap    { padding: 30px; }
}

/* --- Mobile (≤ 768px) --- */
@media (max-width: 768px) {
    /* Navbar */
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white);
        flex-direction: column;
        gap: 0;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: clip-path 0.4s ease-in-out;
        z-index: 999;
    }
    .nav-links.active         { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
    .nav-links li             { text-align: center; border-bottom: 1px solid #f0f0f0; }
    .nav-links li a           { display: block; padding: 14px; color: var(--text-dark); }
    .hamburger                { display: block; }
    #navbar.scrolled .nav-links { top: 100%; }

    /* Hero */
    .hero-content h1          { font-size: 2.4rem; }
    .hero-buttons             { flex-direction: column; align-items: center; gap: 12px; }
    .slider-arrow             { width: 40px; height: 40px; font-size: 0.9rem; }
    .slider-prev              { left: 15px; }
    .slider-next              { right: 15px; }

    /* Gallery */
    .gallery-grid             { grid-template-columns: 1fr 1fr; grid-auto-rows: 180px; }
    .gallery-item.item-large  { grid-column: span 2; grid-row: auto; }
    .gallery-item.item-wide   { grid-column: span 2; }

    /* Reservation — key fix */
    .reservation              { background-attachment: scroll; }
    .reservation-wrapper      { grid-template-columns: 1fr; gap: 30px; }
    .reservation-form-wrap    { padding: 24px 18px; border-radius: 12px; }
    .reservation-form .form-row {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-bottom: 16px;
    }
    .form-group label         { font-size: 0.82rem; }
    .form-group input,
    .form-group select,
    .form-group textarea      { padding: 12px 14px; font-size: 0.95rem; }
    .btn-full                 { padding: 14px; font-size: 0.95rem; }
    .reservation-info h2      { font-size: 2rem; }
    .reservation-info p       { font-size: 0.95rem; }
}

/* --- Small phones (≤ 480px) --- */
@media (max-width: 480px) {
    .hero-content h1          { font-size: 2rem; }
    .hero-content p           { font-size: 1rem; }
    .btn                      { padding: 12px 22px; font-size: 0.9rem; }
    .section-title h2         { font-size: 1.8rem; }
    .section-padding          { padding: 70px 0; }

    /* Menu */
    .menu-grid                { grid-template-columns: 1fr; }

    /* Gallery */
    .gallery-grid             { grid-template-columns: 1fr; grid-auto-rows: 220px; }
    .gallery-item.item-large,
    .gallery-item.item-wide   { grid-column: auto; }

    /* About badge */
    .experience-badge         { width: 120px; height: 120px; right: 50%; transform: translateX(50%); bottom: -60px; }
    .experience-badge .years  { font-size: 2.4rem; }

    /* Reservation */
    .reservation-form-wrap    { padding: 18px 14px; }
    .reservation-info h2      { font-size: 1.7rem; }
    .slider-arrow             { display: none; }
}

/* --- Reservation Section --- */
.reservation {
    position: relative;
    background-image: url('../images/slider.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.reservation-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(17,17,17,0.88) 0%, rgba(17,17,17,0.75) 100%);
}

.reservation .container {
    position: relative;
    z-index: 1;
}

.reservation-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 70px;
    align-items: center;
}

.reservation-info h2 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.reservation-info p {
    color: #ccc;
    margin-bottom: 35px;
    font-size: 1.05rem;
    line-height: 1.8;
}

.res-contact-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.res-contact-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #ddd;
    font-size: 1rem;
}

.res-contact-list li i {
    color: var(--primary-color);
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
}

/* Form */
.reservation-form-wrap {
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.reservation-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group.full-width {
    margin-bottom: 20px;
}

.form-group label {
    color: #ccc;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group label i {
    color: var(--primary-color);
    margin-right: 5px;
}

.form-group input,
.form-group select,
.form-group textarea {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    padding: 13px 16px;
    color: var(--white);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
    outline: none;
    width: 100%;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255,255,255,0.35);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}

.form-group select option {
    background-color: #222;
    color: var(--white);
}

.form-group textarea {
    resize: vertical;
    min-height: 90px;
}

.btn-full {
    width: 100%;
    text-align: center;
    padding: 16px;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 5px;
}

.res-success {
    margin-top: 20px;
    background: rgba(212, 175, 55, 0.15);
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 8px;
    padding: 16px 20px;
    text-align: center;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    animation: fadeIn 0.5s ease;
}

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

