/* ============================================
   KAMAKURA JAPANESE CUISINE
   Stylesheet
   ============================================ */

/* ---------- CSS Variables ---------- */
:root {
    /* Colors */
    --red: #C45B4A;
    --red-dark: #a84a3b;
    --red-light: #d4796b;
    --black: #0a0a0a;
    --black-soft: #1a1a1a;
    --black-card: #141414;
    --gray-dark: #2a2a2a;
    --gray: #666666;
    --gray-light: #999999;
    --cream: #f5f0eb;
    --cream-dark: #e8e0d8;
    --white: #ffffff;
    --white-off: #fafafa;

    /* Typography */
    --font-heading: 'Cormorant Garamond', 'Georgia', serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-accent: 'Caveat', cursive;

    /* Spacing */
    --section-padding: 120px;
    --container-width: 1200px;
    --gap: 24px;

    /* Transitions */
    --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

    /* Header */
    --header-height: 72px;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    font-weight: 300;
    color: var(--black);
    background-color: var(--white);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

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

::selection {
    background-color: var(--red);
    color: var(--white);
}

:focus-visible {
    outline: 2px solid var(--red);
    outline-offset: 2px;
}

button:focus-visible {
    outline: 2px solid var(--red);
    outline-offset: 2px;
}

a:focus-visible {
    outline: 2px solid var(--red);
    outline-offset: 2px;
    border-radius: 2px;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--gap);
}

.section {
    padding: var(--section-padding) 0;
}

/* ---------- Typography ---------- */
.section-label {
    display: block;
    font-family: var(--font-accent);
    font-size: 1.1rem;
    color: var(--red);
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.section-label--light {
    color: var(--red-light);
}

.section-title {
    font-family: var(--font-heading);
    font-weight: 300;
    font-size: clamp(2rem, 5vw, 3.2rem);
    line-height: 1.15;
    color: var(--black);
    margin-bottom: 32px;
    letter-spacing: -0.02em;
}

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

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 2px;
    transition: all 0.4s var(--ease);
    position: relative;
    overflow: hidden;
}

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

.btn--primary:hover {
    background-color: var(--red-dark);
    border-color: var(--red-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(196, 91, 74, 0.3);
}

.btn--outline {
    background-color: transparent;
    color: var(--white);
    border: 1px solid rgba(255,255,255,0.4);
}

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

.btn--dark {
    color: var(--black);
    border-color: var(--black);
}

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

.btn--large {
    padding: 18px 44px;
    font-size: 0.9rem;
}

/* ============================================
   HEADER / NAVIGATION
   ============================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--header-height);
    transition: all 0.4s var(--ease);
}

.site-header.scrolled {
    background-color: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(255,255,255,0.05);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--gap);
}

.header-logo-img {
    height: 44px;
    width: auto;
    transition: opacity 0.3s var(--ease);
}

.header-logo:hover .header-logo-img {
    opacity: 0.8;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 36px;
}

.nav-link {
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.7);
    transition: color 0.3s var(--ease);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--red);
    transition: width 0.3s var(--ease);
}

.nav-link:hover {
    color: var(--white);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link--phone {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--red-light);
    border: 1px solid rgba(196, 91, 74, 0.3);
    padding: 8px 16px;
    border-radius: 2px;
}

.nav-link--phone:hover {
    color: var(--white);
    background-color: var(--red);
    border-color: var(--red);
}

.nav-link--phone::after {
    display: none;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    z-index: 1001;
}

.hamburger-line {
    display: block;
    width: 24px;
    height: 1.5px;
    background-color: var(--white);
    transition: all 0.3s var(--ease);
    transform-origin: center;
}

.hamburger.active .hamburger-line:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
}

.hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger.active .hamburger-line:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
}

/* ============================================
   MOBILE SIDEBAR
   ============================================ */
.sidebar-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1100;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s var(--ease);
}

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

.mobile-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: min(320px, 85vw);
    height: 100vh;
    height: 100dvh;
    background-color: var(--black-soft);
    z-index: 1200;
    transform: translateX(100%);
    transition: transform 0.5s var(--ease-out);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.mobile-sidebar.active {
    transform: translateX(0);
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.sidebar-logo {
    height: 40px;
    width: auto;
}

.sidebar-close {
    color: rgba(255,255,255,0.5);
    padding: 4px;
    transition: color 0.3s var(--ease);
}

.sidebar-close:hover {
    color: var(--white);
}

.sidebar-links {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 32px 24px;
    gap: 0;
}

.sidebar-link {
    display: block;
    padding: 16px 0;
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 300;
    color: rgba(255,255,255,0.7);
    border-bottom: 1px solid rgba(255,255,255,0.04);
    transition: all 0.3s var(--ease);
}

.sidebar-link:hover,
.sidebar-link:active {
    color: var(--white);
    padding-left: 8px;
}

.sidebar-footer {
    padding: 24px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.sidebar-phone {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--red-light);
    font-size: 0.95rem;
    margin-bottom: 16px;
    transition: color 0.3s var(--ease);
}

.sidebar-phone:hover {
    color: var(--red);
}

.sidebar-address {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.35);
    line-height: 1.6;
}

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

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.05);
    animation: heroZoom 20s ease-in-out infinite alternate;
}

@keyframes heroZoom {
    0% { transform: scale(1.05); }
    100% { transform: scale(1.12); }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.4) 0%,
        rgba(0, 0, 0, 0.25) 40%,
        rgba(0, 0, 0, 0.5) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 0 var(--gap);
    animation: heroFadeIn 1.2s var(--ease-out) both;
    animation-delay: 0.3s;
}

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

.hero-logo {
    width: min(340px, 60vw);
    height: auto;
    margin: 0 auto 24px;
    filter: drop-shadow(0 4px 30px rgba(0,0,0,0.3));
}

.hero-tagline {
    font-family: var(--font-heading);
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    font-weight: 300;
    color: rgba(255,255,255,0.85);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.hero-location {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
    letter-spacing: 0.08em;
    margin-bottom: 40px;
}

.hero-ctas {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 1;
    animation: scrollIndicatorFadeIn 1.2s var(--ease-out) both;
    animation-delay: 1.5s;
}

@keyframes scrollIndicatorFadeIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.scroll-indicator-text {
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.4);
}

.scroll-indicator-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 1; transform: scaleY(1); }
    50% { opacity: 0.3; transform: scaleY(0.6); }
}

/* ============================================
   ABOUT
   ============================================ */
.about {
    background-color: var(--cream);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-description {
    font-size: 1rem;
    line-height: 1.85;
    color: var(--gray);
    margin-bottom: 24px;
}

.about-description:last-of-type {
    margin-bottom: 36px;
}

.about-image {
    position: relative;
    border-radius: 4px;
}

.about-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.8s var(--ease);
}

.about-image:hover img {
    transform: scale(1.03);
}

.about-image::after {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 120px;
    height: 120px;
    border: 1px solid var(--red);
    opacity: 0.2;
    border-radius: 2px;
    pointer-events: none;
    z-index: 1;
}

/* ============================================
   GALLERY / SLIDESHOW
   ============================================ */
.gallery {
    background-color: var(--white);
    padding-bottom: 80px;
}

.gallery-slideshow {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.slideshow-track {
    display: flex;
    transition: transform 0.6s var(--ease-out);
    will-change: transform;
}

.slide {
    flex: 0 0 calc(100% / 3);
    padding: 0 8px;
}

.slide img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 4px;
    transition: transform 0.5s var(--ease);
}

.slide img:hover {
    transform: scale(1.02);
}

.slideshow-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 32px;
}

.slideshow-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--gray-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-dark);
    transition: all 0.3s var(--ease);
}

.slideshow-btn:hover {
    background-color: var(--red);
    border-color: var(--red);
    color: var(--white);
}

.slideshow-dots {
    display: flex;
    gap: 8px;
}

.slideshow-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--cream-dark);
    border: none;
    cursor: pointer;
    transition: all 0.3s var(--ease);
    padding: 0;
}

.slideshow-dot.active {
    background-color: var(--red);
    transform: scale(1.2);
}

/* ============================================
   MENU CTA
   ============================================ */
.menu-cta {
    position: relative;
    padding: var(--section-padding) 0;
    overflow: hidden;
}

.menu-cta-bg {
    position: absolute;
    inset: 0;
}

.menu-cta-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.3);
}

.menu-cta-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(10,10,10,0.8), rgba(10,10,10,0.6));
}

.menu-cta-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 600px;
}

.menu-cta-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: rgba(255,255,255,0.65);
    margin-bottom: 40px;
}

/* ============================================
   HOURS
   ============================================ */
.hours {
    background-color: var(--cream);
}

.hours-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.hours-note {
    font-size: 1rem;
    color: var(--gray);
    line-height: 1.8;
    margin-bottom: 32px;
}

.hours-table {
    background-color: var(--white);
    border-radius: 4px;
    padding: 8px 0;
    box-shadow: 0 2px 20px rgba(0,0,0,0.04);
}

.hours-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 32px;
    border-bottom: 1px solid var(--cream);
    transition: background-color 0.3s var(--ease);
}

.hours-row:last-child {
    border-bottom: none;
}

.hours-row:hover {
    background-color: var(--cream);
}

.hours-day {
    font-weight: 400;
    font-size: 0.95rem;
    color: var(--black);
}

.hours-time {
    font-size: 0.9rem;
    color: var(--gray);
}

.hours-row--closed .hours-time {
    color: var(--red);
    font-weight: 400;
}

/* ============================================
   LOCATION
   ============================================ */
.location {
    background-color: var(--white);
}

.location-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 48px;
    align-items: start;
}

.location-map {
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 4px 30px rgba(0,0,0,0.08);
}

.location-map iframe {
    display: block;
    width: 100%;
    height: 420px;
}

.location-card {
    display: flex;
    flex-direction: column;
    gap: 32px;
    padding-top: 8px;
}

.location-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.location-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--cream);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--red);
}

.location-item h3 {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 1.1rem;
    margin-bottom: 4px;
    color: var(--black);
}

.location-item p {
    font-size: 0.9rem;
    color: var(--gray);
    line-height: 1.7;
}

.location-item a {
    color: var(--red);
}

.location-item a:hover {
    color: var(--red-dark);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background-color: var(--black);
    color: var(--white);
    padding: 80px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 60px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.footer-logo {
    height: 60px;
    width: auto;
    margin-bottom: 16px;
}

.footer-tagline {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.4);
    line-height: 1.7;
}

.footer-links h4,
.footer-contact h4 {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--white);
}

.footer-links a {
    display: block;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.45);
    padding: 4px 0;
    transition: color 0.3s var(--ease);
}

.footer-links a:hover {
    color: var(--white);
}

.footer-contact a {
    display: block;
    font-size: 0.85rem;
    color: var(--red-light);
    margin-bottom: 12px;
}

.footer-contact a:hover {
    color: var(--red);
}

.footer-contact p {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.35);
    line-height: 1.7;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
}

.footer-bottom p {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.25);
}

.footer-credit a {
    color: rgba(255,255,255,0.35);
    transition: color 0.3s var(--ease);
}

.footer-credit a:hover {
    color: var(--red);
}

/* ============================================
   ANIMATIONS (scroll-triggered)
   ============================================ */
[data-animate] {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

[data-animate].visible {
    opacity: 1;
    transform: translateY(0);
}

[data-delay="200"] {
    transition-delay: 0.2s;
}

[data-delay="400"] {
    transition-delay: 0.4s;
}

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

/* Tablet */
@media (max-width: 1024px) {
    :root {
        --section-padding: 80px;
    }

    .about-grid {
        gap: 48px;
    }

    .hours-grid {
        gap: 48px;
    }

    .slide {
        flex: 0 0 50%;
    }

    .location-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

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

/* Mobile */
@media (max-width: 768px) {
    :root {
        --section-padding: 64px;
        --header-height: 64px;
        --gap: 20px;
    }

    .desktop-nav {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .hero-logo {
        width: min(260px, 65vw);
    }

    .hero-tagline {
        font-size: 0.9rem;
        letter-spacing: 0.1em;
    }

    .hero-ctas {
        flex-direction: column;
        align-items: center;
    }

    .hero-ctas .btn {
        width: 200px;
        justify-content: center;
    }

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

    .about-image img {
        height: 320px;
    }

    .about-image::after {
        display: none;
    }

    .slide {
        flex: 0 0 85%;
    }

    .slide img {
        height: 280px;
    }

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

    .hours-row {
        padding: 14px 20px;
    }

    .location-map iframe {
        height: 300px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .scroll-indicator {
        bottom: 20px;
    }

    .section-title {
        margin-bottom: 24px;
    }
}

/* Small phones */
@media (max-width: 420px) {
    :root {
        --section-padding: 52px;
    }

    .hero-logo {
        width: min(220px, 70vw);
    }

    .slide {
        flex: 0 0 92%;
    }

    .slide img {
        height: 240px;
    }

    .hours-day {
        font-size: 0.85rem;
    }

    .hours-time {
        font-size: 0.8rem;
    }

    .btn--large {
        padding: 14px 32px;
        font-size: 0.82rem;
    }
}

/* Tall phones for hero section */
@media (max-height: 700px) and (max-width: 768px) {
    .hero {
        min-height: 100vh;
        min-height: 100dvh;
    }

    .hero-logo {
        width: min(200px, 50vw);
        margin-bottom: 16px;
    }

    .hero-tagline {
        font-size: 0.85rem;
    }
}

/* Prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    .hero-bg-img {
        animation: none;
        transform: none;
    }
}
