/* ===================================
   CSS Variables & Reset
   =================================== */
:root {
    /* Colors - Japanese Restaurant Theme */
    --primary: #1a1a1a;
    --primary-light: #2a2a2a;
    --accent: #d4a574;
    --accent-dark: #b88a5e;
    --text: #333;
    --text-light: #666;
    --white: #fff;
    --bg: #f8f8f8;
    --border: #e0e0e0;
    --shadow: rgba(0, 0, 0, 0.1);
    --overlay: rgba(0, 0, 0, 0.6);

    /* Typography */
    --font-heading: 'Georgia', serif;
    --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;

    /* Spacing */
    --container-width: 1140px;
    --section-padding: 80px 0;
    --gap: 2rem;

    /* Transitions */
    --transition: 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

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

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

ul {
    list-style: none;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

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

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.section-subtitle {
    color: var(--text-light);
    font-size: 1.125rem;
}

.button {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 4px;
    font-weight: 600;
    text-align: center;
    transition: var(--transition);
    white-space: nowrap;
}

.button--primary {
    background: var(--accent);
    color: var(--white);
}

.button--primary:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow);
}

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

.button--secondary:hover {
    background: var(--accent);
    color: var(--white);
}

/* Stars Rating */
.stars {
    display: inline-flex;
    gap: 2px;
    color: #ffa500;
}

.stars--large .star {
    font-size: 1.5rem;
}

.star {
    font-size: 1.2rem;
}

.star.half::before {
    content: '★';
    position: absolute;
    width: 50%;
    overflow: hidden;
}

/* ===================================
   Navigation
   =================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--white);
    box-shadow: 0 2px 10px var(--shadow);
    transition: var(--transition);
}

.navbar.navbar--scrolled {
    padding: 0.5rem 0;
}

.navbar__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.navbar__logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary);
}

.navbar__toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    padding: 8px;
}

.navbar__toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
    transition: var(--transition);
}

.navbar__menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.navbar__link {
    color: var(--text);
    font-weight: 500;
    position: relative;
}

.navbar__link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: var(--transition);
}

.navbar__link:hover::after {
    width: 100%;
}

.navbar__button {
    background: var(--accent);
    color: var(--white);
    padding: 10px 24px;
    border-radius: 4px;
}

.navbar__button:hover {
    background: var(--accent-dark);
}

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

.hero__background {
    position: absolute;
    inset: 0;
    background: url('https://lh3.googleusercontent.com/gps-cs-s/AC9h4nqXX1RP2O2M1IQ_ZGFGUi3pC5KUOkRBGlEhCiCgBUP3fdj0FLUOqoKmGbqCYrZh1LPQIc-4_7n3jlS9gMcevCNLFKxEBAK3RkuZd4aslQ27d9mDrz4rjOPcdzG__bvE5x5Ow_6L=w1920-h1080-k-no') center/cover no-repeat;
    animation: parallax 30s ease-in-out infinite alternate;
}

@keyframes parallax {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.7));
}

.hero__content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--white);
    animation: fadeInUp 1s ease-out;
}

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

.hero__title {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 6vw, 5rem);
    margin-bottom: 1rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
}

.hero__subtitle {
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.hero__rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.hero__rating-text {
    font-size: 1.1rem;
}

.hero__buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero__scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: var(--white);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

.hero__scroll-arrow {
    width: 20px;
    height: 20px;
    border-left: 2px solid var(--white);
    border-bottom: 2px solid var(--white);
    transform: rotate(-45deg);
    margin: 10px auto 0;
}

/* ===================================
   About Section
   =================================== */
.about {
    padding: var(--section-padding);
    background: var(--white);
}

.about__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--gap);
    align-items: center;
}

.about__text h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.about__text p {
    margin-bottom: 1rem;
    line-height: 1.8;
    color: var(--text-light);
}

.about__highlights {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.highlight {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.highlight__icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.highlight__content h4 {
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.highlight__content p {
    color: var(--text-light);
    margin: 0;
}

.about__image {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px var(--shadow);
}

.about__image img {
    transition: transform 0.5s ease;
}

.about__image:hover img {
    transform: scale(1.05);
}

/* ===================================
   Features Section
   =================================== */
.features {
    padding: var(--section-padding);
    background: var(--bg);
}

.features__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 15px var(--shadow);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px var(--shadow);
}

.feature-card__icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card__title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.feature-card__text {
    color: var(--text-light);
}

/* ===================================
   Menu Highlights Section
   =================================== */
.menu-highlights {
    padding: var(--section-padding);
    background: var(--white);
}

.menu-highlights__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.menu-item {
    padding: 2rem;
    background: var(--bg);
    border-radius: 8px;
    border-left: 4px solid var(--accent);
}

.menu-item__name {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.menu-item__description {
    color: var(--text-light);
}

.price-info {
    text-align: center;
    padding: 2rem;
    background: var(--primary);
    color: var(--white);
    border-radius: 8px;
}

.price-info p {
    margin-bottom: 0.5rem;
}

.price-info__note {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* ===================================
   Gallery Section
   =================================== */
.gallery {
    padding: var(--section-padding);
    background: var(--bg);
}

.gallery__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

.gallery__item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    aspect-ratio: 4/3;
}

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

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

.gallery__item::after {
    content: '🔍';
    position: absolute;
    inset: 0;
    background: var(--overlay);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    opacity: 0;
    transition: var(--transition);
}

.gallery__item:hover::after {
    opacity: 1;
}

/* ===================================
   Reviews Section
   =================================== */
.reviews {
    padding: var(--section-padding);
    background: var(--white);
}

.reviews__summary {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 3rem;
    max-width: 800px;
    margin: 0 auto 3rem;
    align-items: center;
}

.reviews__score {
    text-align: center;
}

.reviews__score-number {
    font-size: 4rem;
    font-weight: bold;
    color: var(--primary);
    display: block;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.reviews__score-stars {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.reviews__score-count {
    color: var(--text-light);
    font-size: 0.9rem;
}

.reviews__distribution {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.rating-bar {
    display: grid;
    grid-template-columns: 40px 1fr 40px;
    gap: 1rem;
    align-items: center;
}

.rating-bar__label {
    color: var(--text-light);
    font-size: 0.9rem;
}

.rating-bar__track {
    height: 8px;
    background: var(--border);
    border-radius: 4px;
    overflow: hidden;
}

.rating-bar__fill {
    height: 100%;
    background: var(--accent);
    transition: width 1s ease;
}

.rating-bar__count {
    color: var(--text-light);
    font-size: 0.9rem;
    text-align: right;
}

.reviews__slider {
    position: relative;
    overflow: hidden;
}

.reviews__track {
    display: flex;
    gap: 2rem;
    transition: transform 0.5s ease;
}

.review-card {
    flex: 0 0 100%;
    background: var(--bg);
    padding: 2rem;
    border-radius: 8px;
    border-left: 4px solid var(--accent);
}

.review-card__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.review-card__meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.review-card__author {
    font-weight: 600;
    color: var(--primary);
}

.review-card__date {
    font-size: 0.9rem;
    color: var(--text-light);
}

.review-card__text {
    line-height: 1.8;
    color: var(--text);
    margin-bottom: 1rem;
}

.review-card__details {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

.review-card__detail {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.review-card__detail strong {
    color: var(--primary);
}

.reviews__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--white);
    color: var(--primary);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px var(--shadow);
    transition: var(--transition);
    z-index: 10;
}

.reviews__arrow:hover {
    background: var(--accent);
    color: var(--white);
}

.reviews__arrow--prev {
    left: -25px;
}

.reviews__arrow--next {
    right: -25px;
}

/* ===================================
   Hours Section
   =================================== */
.hours {
    padding: var(--section-padding);
    background: var(--bg);
}

.hours__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--gap);
}

.hours__schedule {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px var(--shadow);
}

.hours__day {
    display: flex;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
}

.hours__day:last-child {
    border-bottom: none;
}

.hours__day-name {
    font-weight: 600;
    color: var(--primary);
}

.hours__day-time {
    color: var(--accent);
}

.hours__day-time--closed {
    color: var(--text-light);
}

.hours__info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-box {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px var(--shadow);
}

.info-box h3 {
    font-family: var(--font-heading);
    color: var(--primary);
    margin-bottom: 1rem;
}

.info-box ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.info-box li {
    color: var(--text-light);
    padding-left: 1.5rem;
    position: relative;
}

.info-box li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

/* ===================================
   Reserve Section
   =================================== */
.reserve {
    padding: var(--section-padding);
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white);
}

.reserve .section-title {
    color: var(--white);
}

.reserve .section-subtitle {
    color: rgba(255, 255, 255, 0.8);
}

.reserve__options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.reserve__card {
    background: var(--white);
    padding: 3rem 2rem;
    border-radius: 8px;
    text-align: center;
    color: var(--text);
}

.reserve__card h3 {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.reserve__card p {
    color: var(--text-light);
    margin-bottom: 2rem;
}

/* ===================================
   Contact Section
   =================================== */
.contact {
    padding: var(--section-padding);
    background: var(--white);
}

.contact__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--gap);
}

.contact__info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact__item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.contact__item-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.contact__item-content h3 {
    font-family: var(--font-heading);
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.contact__item-content p {
    color: var(--text-light);
    line-height: 1.8;
}

.contact__item-content a {
    color: var(--accent);
}

.contact__item-content a:hover {
    text-decoration: underline;
}

.contact__map {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#map {
    width: 100%;
    height: 400px;
    background: var(--bg);
    border-radius: 8px;
    overflow: hidden;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><text x="50%" y="50%" text-anchor="middle" dy=".3em" fill="%23999" font-size="16">Map Loading...</text></svg>');
    background-size: cover;
    background-position: center;
}

/* ===================================
   Footer
   =================================== */
.footer {
    background: var(--primary);
    color: var(--white);
    padding: 3rem 0 1.5rem;
}

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

.footer__title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.footer__section p {
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.footer__section a {
    opacity: 0.9;
}

.footer__section a:hover {
    opacity: 1;
    color: var(--accent);
}

.footer__rating {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}

.footer__link {
    display: inline-block;
    color: var(--accent);
    font-weight: 600;
}

.footer__link:hover {
    text-decoration: underline;
}

.footer__bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.8;
    font-size: 0.9rem;
}

/* ===================================
   Lightbox
   =================================== */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox__close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: var(--white);
    font-size: 3rem;
    z-index: 2001;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.lightbox__close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox__prev,
.lightbox__next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: var(--white);
    font-size: 3rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.lightbox__prev:hover,
.lightbox__next:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox__prev {
    left: 30px;
}

.lightbox__next {
    right: 30px;
}

.lightbox__image {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
}

.lightbox__counter {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--white);
    background: rgba(0, 0, 0, 0.5);
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
}

/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 1023px) {
    .navbar__toggle {
        display: flex;
    }

    .navbar__menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 2rem;
        box-shadow: 0 4px 15px var(--shadow);
        transition: left 0.3s ease;
    }

    .navbar__menu.active {
        left: 0;
    }

    .about__content,
    .hours__content,
    .contact__content {
        grid-template-columns: 1fr;
    }

    .reviews__summary {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .reviews__arrow {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }

    .reviews__arrow--prev {
        left: 10px;
    }

    .reviews__arrow--next {
        right: 10px;
    }
}

@media (max-width: 767px) {
    :root {
        --section-padding: 60px 0;
    }

    .hero {
        min-height: 500px;
    }

    .hero__buttons {
        flex-direction: column;
        width: 100%;
        padding: 0 20px;
    }

    .hero__buttons .button {
        width: 100%;
    }

    .features__grid,
    .menu-highlights__grid {
        grid-template-columns: 1fr;
    }

    .gallery__grid {
        grid-template-columns: 1fr;
    }

    .footer__content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .lightbox__prev,
    .lightbox__next {
        width: 50px;
        height: 50px;
        font-size: 2rem;
    }

    .lightbox__prev {
        left: 10px;
    }

    .lightbox__next {
        right: 10px;
    }

    .lightbox__close {
        top: 10px;
        right: 10px;
        font-size: 2rem;
        width: 40px;
        height: 40px;
    }
}

/* ===================================
   Animations & Loading States
   =================================== */
.fade-in {
    animation: fadeIn 0.6s ease-out;
}

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

.slide-in-left {
    animation: slideInLeft 0.6s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-right {
    animation: slideInRight 0.6s ease-out;
}

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

/* Intersection Observer Classes */
.observe {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.observe.visible {
    opacity: 1;
    transform: translateY(0);
}