/* ============================================
   BAROK RESTAURANT - COMPONENTS
   ============================================ */

/* === HEADER & NAVIGATION === */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-fixed);
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    transition: all var(--transition-base);
}

.header.scrolled {
    background: rgba(10, 10, 10, 0.95);
    box-shadow: var(--shadow-lg);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
}

.nav__logo {
    height: 50px;
    width: auto;
    transition: transform var(--transition-base);
}

.nav__logo:hover {
    transform: scale(1.05);
}

.nav__menu {
    display: flex;
    align-items: center;
    gap: var(--space-8);
    list-style: none;
}

.nav__link {
    font-family: var(--font-sans);
    font-size: var(--text-sm);
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--color-text-primary);
    position: relative;
    padding: var(--space-2) 0;
    transition: color var(--transition-fast);
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-gold-primary);
    transition: width var(--transition-base);
}

.nav__link:hover,
.nav__link.active {
    color: var(--color-gold-primary);
}

.nav__link:hover::after,
.nav__link.active::after {
    width: 100%;
}

.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: var(--space-2);
}

.nav__toggle span {
    width: 25px;
    height: 2px;
    background: var(--color-gold-primary);
    transition: all var(--transition-base);
}

.nav__toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.nav__toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav__toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Show hamburger menu on mobile */
@media (max-width: 768px) {
    .nav__toggle {
        display: flex;
    }
}

/* Desktop Header CTA Button */
.nav__cta {
    display: none;
}

/* Explicitly hide on mobile */
@media (max-width: 768px) {
    .nav__cta {
        display: none !important;
    }
}

@media (min-width: 769px) {
    .nav__cta {
        display: inline-flex;
        margin-left: var(--space-4);
    }
}

/* Mobile Menu */
@media (max-width: 768px) {

    .nav__menu {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        flex-direction: column;
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(20px);
        padding: var(--space-8);
        gap: var(--space-6);
        transform: translateX(100%);
        transition: transform var(--transition-base);
        border-top: 1px solid var(--glass-border);
    }

    .nav__menu.active {
        transform: translateX(0);
    }

    .nav__link {
        font-size: var(--text-lg);
    }
}

/* === MOBILE STICKY CTA BAR === */
.mobile-cta-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: calc(var(--z-fixed) - 1);
    padding: var(--space-3) var(--space-4);
}

@media (max-width: 768px) {
    .mobile-cta-bar {
        display: block;
    }
}

.mobile-cta-bar__buttons {
    display: flex;
    gap: var(--space-3);
    max-width: 600px;
    margin: 0 auto;
}

.mobile-cta-bar__buttons .btn {
    flex: 1;
    padding: var(--space-4) var(--space-3);
    font-size: var(--text-sm);
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.30) !important;
    backdrop-filter: blur(25px) saturate(150%) !important;
    -webkit-backdrop-filter: blur(25px) saturate(150%) !important;
    border: 2px solid var(--color-gold-primary) !important;
    color: var(--color-gold-primary) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.3) !important;
}

.mobile-cta-bar__buttons .btn:hover {
    background: var(--color-gold-primary) !important;
    color: var(--color-bg-primary) !important;
    box-shadow: 0 4px 30px rgba(212, 175, 55, 0.4) !important;
}

/* Adjust body padding to account for sticky bar on mobile */
@media (max-width: 768px) {
    body {
        padding-bottom: 70px;
    }
}

/* === BUTTONS === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-4) var(--space-8);
    font-family: var(--font-sans);
    font-size: var(--text-base);
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border: 2px solid transparent;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-gold-primary), var(--color-gold-secondary));
    color: var(--color-bg-primary);
    border-color: var(--color-gold-primary);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--color-gold-secondary), var(--color-gold-dark));
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold);
    color: var(--color-bg-primary);
}

.btn-secondary {
    background: transparent;
    color: var(--color-gold-primary);
    border-color: var(--color-gold-primary);
}

.btn-secondary:hover {
    background: var(--color-gold-primary);
    color: var(--color-bg-primary);
    transform: translateY(-2px);
}

.btn-ghost {
    background: transparent;
    color: var(--color-text-primary);
    border-color: var(--color-text-secondary);
}

.btn-ghost:hover {
    border-color: var(--color-gold-primary);
    color: var(--color-gold-primary);
}

.btn-lg {
    padding: var(--space-5) var(--space-10);
    font-size: var(--text-lg);
}

.btn-sm {
    padding: var(--space-3) var(--space-6);
    font-size: var(--text-sm);
}

/* === CARDS === */
.card {
    background: var(--color-bg-secondary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-base);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--glass-border);
}

.card__image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    position: relative;
}

.card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.card:hover .card__image img {
    transform: scale(1.1);
}

.card__content {
    padding: var(--space-6);
}

.card__title {
    font-size: var(--text-2xl);
    margin-bottom: var(--space-3);
    color: var(--color-gold-primary);
}

.card__text {
    color: var(--color-text-secondary);
    line-height: 1.6;
}

/* === REVIEW CARD === */
.review-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    transition: all var(--transition-base);
}

.review-card:hover {
    border-color: var(--color-gold-primary);
    box-shadow: var(--shadow-gold);
}

.review-card__header {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    margin-bottom: var(--space-4);
}

.review-card__avatar {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-full);
    background: var(--color-gold-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--color-bg-primary);
}

.review-card__info h4 {
    font-size: var(--text-lg);
    margin-bottom: var(--space-1);
    color: var(--color-text-primary);
}

.review-card__stars {
    display: flex;
    gap: var(--space-1);
    color: var(--color-gold-primary);
}

.review-card__text {
    color: var(--color-text-secondary);
    font-style: italic;
    line-height: 1.7;
}

.review-card__date {
    margin-top: var(--space-3);
    font-size: var(--text-sm);
    color: var(--color-text-tertiary);
    font-family: var(--font-sans);
}

/* === FORMS === */
.form-group {
    margin-bottom: var(--space-6);
}

.form-label {
    display: block;
    margin-bottom: var(--space-2);
    font-family: var(--font-sans);
    font-size: var(--text-sm);
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--color-gold-primary);
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: var(--space-4);
    font-family: var(--font-body);
    font-size: var(--text-base);
    color: var(--color-text-primary);
    background: var(--color-bg-secondary);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--color-gold-primary);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

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

.form-error {
    display: block;
    margin-top: var(--space-2);
    font-size: var(--text-sm);
    color: var(--color-error);
}

.form-success {
    padding: var(--space-4);
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid var(--color-success);
    border-radius: var(--radius-md);
    color: var(--color-success);
    text-align: center;
}

/* === MODAL / LIGHTBOX === */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: var(--z-modal);
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    align-items: center;
    justify-content: center;
    padding: var(--space-4);
}

.modal.active {
    display: flex;
}

.modal__content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    animation: scaleIn var(--transition-base);
}

.modal__image {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: var(--radius-lg);
}

.modal__close {
    position: absolute;
    top: -40px;
    right: 0;
    background: transparent;
    border: none;
    color: var(--color-text-primary);
    font-size: var(--text-4xl);
    cursor: pointer;
    transition: color var(--transition-fast);
    padding: var(--space-2);
}

.modal__close:hover {
    color: var(--color-gold-primary);
}

.modal__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-full);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-base);
    color: var(--color-text-primary);
    font-size: var(--text-2xl);
}

.modal__nav:hover {
    background: var(--color-gold-primary);
    color: var(--color-bg-primary);
}

.modal__nav--prev {
    left: var(--space-4);
}

.modal__nav--next {
    right: var(--space-4);
}

/* === HERO SECTION === */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Optimize hero height for mobile to reduce vertical stretching */
@media (max-width: 768px) {
    .hero {
        height: 70vh;
        min-height: 500px;
        max-height: 650px;
    }
}

.hero__background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.hero__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    position: absolute;
    transition: opacity 1s ease-in-out;
}

.hero__image.active {
    opacity: 1;
}

.hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.7));
    z-index: 1;
}

.hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: var(--space-6);
}

.hero__subtitle {
    font-family: var(--font-body);
    font-size: var(--text-xl);
    font-style: italic;
    color: var(--color-gold-light);
    margin-bottom: var(--space-4);
    animation: fadeIn 1s ease-out 0.3s both;
}

.hero__title {
    font-size: clamp(var(--text-5xl), 8vw, var(--text-7xl));
    color: var(--color-text-primary);
    margin-bottom: var(--space-6);
    animation: fadeIn 1s ease-out 0.6s both;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}

.hero__actions {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeIn 1s ease-out 0.9s both;
}

/* Make hero buttons same size on mobile */
@media (max-width: 768px) {
    .hero__actions {
        display: none;
    }

    .hero__actions .btn {
        flex: 1;
        min-width: 0;
        padding: var(--space-3) var(--space-2);
        font-size: 0.85rem;
        white-space: normal;
        text-align: center;
        line-height: 1.2;
    }
}

/* === SECTION HEADER === */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--space-12);
}

.section-header__subtitle {
    font-family: var(--font-body);
    font-size: var(--text-xl);
    font-style: italic;
    color: var(--color-gold-primary);
    margin-bottom: var(--space-3);
}

.section-header__title {
    font-size: clamp(var(--text-3xl), 5vw, var(--text-5xl));
    margin-bottom: var(--space-4);
}

.section-header__description {
    color: var(--color-text-secondary);
    font-size: var(--text-lg);
}

/* === FOOTER === */
.footer {
    background: var(--color-bg-secondary);
    border-top: 1px solid var(--glass-border);
    padding: var(--space-12) 0 var(--space-6);
}

.footer__content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-8);
    margin-bottom: var(--space-8);
}

.footer__section h3 {
    font-size: var(--text-xl);
    color: var(--color-gold-primary);
    margin-bottom: var(--space-4);
}

.footer__section p,
.footer__section a {
    color: var(--color-text-secondary);
    margin-bottom: var(--space-2);
    display: block;
}

.footer__section a:hover {
    color: var(--color-gold-primary);
}

.footer__bottom {
    text-align: center;
    padding-top: var(--space-6);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--color-text-tertiary);
    font-size: var(--text-sm);
    font-family: var(--font-sans);
}

/* Optimize footer for mobile to reduce vertical height */
@media (max-width: 768px) {
    .footer {
        padding: var(--space-8) 0 var(--space-4);
    }

    .footer__content {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "logo logo"
            "links contact"
            "hours hours";
        gap: var(--space-4) var(--space-3);
        margin-bottom: var(--space-4);
    }

    /* Assign grid areas to sections */
    .footer__section:nth-child(1) {
        grid-area: logo;
        margin-bottom: 0;
    }

    .footer__section:nth-child(2) {
        grid-area: links;
    }

    .footer__section:nth-child(3) {
        grid-area: contact;
    }

    .footer__section:nth-child(4) {
        grid-area: hours;
    }

    /* Reduce logo size */
    .footer__section:first-child img {
        height: 40px !important;
        margin-bottom: var(--space-2) !important;
    }

    .footer__section:first-child p {
        font-size: var(--text-sm);
        margin-bottom: var(--space-2);
    }

    /* Tighter typography */
    .footer__section h3 {
        font-size: var(--text-lg);
        margin-bottom: var(--space-2);
    }

    .footer__section p {
        font-size: var(--text-sm);
        line-height: 1.4;
        margin-bottom: var(--space-1);
    }

    .footer__section a {
        font-size: var(--text-sm);
        margin-bottom: var(--space-1);
    }

    .footer__bottom {
        padding-top: var(--space-4);
        font-size: var(--text-xs);
    }
}

/* === WORKING HOURS === */
.hours-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--space-6);
    margin-top: var(--space-8);
}

.hours-item {
    text-align: center;
    padding: var(--space-4);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
}

.hours-item__day {
    font-family: var(--font-sans);
    font-size: var(--text-sm);
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--color-gold-primary);
    margin-bottom: var(--space-2);
}

.hours-item__time {
    font-size: var(--text-base);
    color: var(--color-text-secondary);
}