/* ===================================
   참맛집 이모카세 — 노포 스타일
   세련된 올드함, 오래된 맛집의 신뢰감
   =================================== */

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

:root {
    --bg-cream: #F5EFE6;
    --bg-warm: #EDE4D3;
    --bg-paper: #FAF6F0;
    --text-dark: #2C2418;
    --text-body: #4A3F35;
    --text-muted: #7A6E62;
    --accent-red: #8B3A2F;
    --accent-brown: #6B4C3B;
    --border-light: #D4C7B5;
    --border-dark: #B8A898;
    --transition: all 0.25s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Gowun Batang', serif;
    line-height: 1.8;
    color: var(--text-dark);
    background: var(--bg-cream);
    overflow-x: hidden;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== 네비게이션 ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(245, 239, 230, 0.97);
    border-bottom: 1px solid var(--border-light);
    z-index: 1000;
    padding: 0.8rem 0;
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: 0 1px 8px rgba(44, 36, 24, 0.08);
}

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

.logo {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-dark);
    font-family: 'Nanum Myeongjo', serif;
    letter-spacing: -0.5px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    color: var(--text-body);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.92rem;
    font-family: 'Gowun Batang', serif;
}

.nav-menu a:hover {
    color: var(--accent-red);
}

.btn-reserve-nav {
    padding: 0.5rem 1.3rem;
    background: var(--accent-red);
    border-radius: 2px;
    color: #FAF6F0 !important;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.btn-reserve-nav:hover {
    background: #7A3328;
    color: #FAF6F0 !important;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 22px;
    height: 2px;
    background: var(--text-dark);
    transition: var(--transition);
}

/* =========================================
   히어로 섹션 — 컨베이어 벨트 미디어아트
   ========================================= */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1E1812;
    overflow: hidden;
}

/* 마퀴 컨테이너 — 히어로 전체를 채움 */
.hero-marquee {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
    padding: 40px 0;
    will-change: transform;
    transition: transform 0.15s ease-out;
}

/* 각 행 */
.marquee-row {
    overflow: visible;
    flex-shrink: 0;
}

.row-1 {
    transform: rotate(-2.5deg) translateX(-40px);
}

.row-2 {
    transform: rotate(1.5deg) translateX(20px);
}

.row-3 {
    transform: rotate(-1deg) translateX(-60px);
}

/* 트랙 — 이미지가 흘러가는 레일 */
.marquee-track {
    display: flex;
    width: max-content;
}

.marquee-set {
    display: flex;
    gap: 14px;
    padding-right: 14px;
    flex-shrink: 0;
}

/* 스크롤 애니메이션 */
.track-right {
    animation: marquee-right 40s linear infinite;
}

.track-left {
    animation: marquee-left 32s linear infinite;
}

.row-3 .track-right {
    animation-duration: 48s;
}

@keyframes marquee-right {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes marquee-left {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

/* 개별 이미지 카드 */
.marquee-item {
    width: 220px;
    height: 165px;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.marquee-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: brightness(0.65) saturate(0.55) sepia(0.12);
    transition: filter 0.35s ease, transform 0.35s ease;
}

/* 호버: 행 멈춤 + 이미지 팝업 */
.marquee-row:hover .marquee-track {
    animation-play-state: paused;
}

.marquee-item:hover {
    transform: scale(1.12);
    z-index: 10;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.marquee-item:hover img {
    filter: brightness(1) saturate(1.05) sepia(0);
    transform: scale(1.05);
}

/* 히어로 오버레이 — 중앙 텍스트 가독성 */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        ellipse 70% 60% at 50% 50%,
        rgba(30, 24, 18, 0.82) 0%,
        rgba(30, 24, 18, 0.55) 50%,
        rgba(30, 24, 18, 0.35) 100%
    );
    z-index: 2;
    pointer-events: none;
}

/* 히어로 텍스트 */
.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: #FAF6F0;
    animation: fadeInUp 0.8s ease-out;
    pointer-events: auto;
}

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

.subtitle {
    display: block;
    font-size: 0.85rem;
    color: rgba(250, 246, 240, 0.5);
    margin-bottom: 0.8rem;
    letter-spacing: 4px;
    font-weight: 400;
    font-family: 'Gowun Batang', serif;
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    font-family: 'Nanum Myeongjo', serif;
    letter-spacing: -1px;
    line-height: 1.3;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}

.hero-description {
    font-size: 1.05rem;
    margin-bottom: 2.5rem;
    color: rgba(250, 246, 240, 0.75);
    line-height: 1.9;
    font-weight: 400;
    font-family: 'Gowun Batang', serif;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.3);
}

.btn-primary {
    display: inline-block;
    padding: 0.9rem 2.2rem;
    background: var(--accent-red);
    color: #FAF6F0;
    text-decoration: none;
    border-radius: 2px;
    font-weight: 500;
    transition: var(--transition);
    border: 1px solid var(--accent-red);
    font-family: 'Gowun Batang', serif;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

.btn-primary:hover {
    background: #7A3328;
    border-color: #7A3328;
    color: #FAF6F0;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: gentleBounce 3s infinite;
    z-index: 3;
}

.scroll-indicator span {
    display: block;
    width: 18px;
    height: 28px;
    border: 1.5px solid rgba(250, 246, 240, 0.3);
    border-radius: 12px;
    position: relative;
}

.scroll-indicator span::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 6px;
    background: rgba(250, 246, 240, 0.3);
    border-radius: 2px;
    animation: scrollDot 2s infinite;
}

@keyframes gentleBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-6px); }
}

@keyframes scrollDot {
    0% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(12px); }
}

/* ===== 섹션 공통 ===== */
section {
    padding: 90px 0;
}

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

.section-subtitle {
    display: none;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    font-family: 'Nanum Myeongjo', serif;
    color: var(--text-dark);
    letter-spacing: -0.5px;
}

.section-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background: var(--accent-red);
    margin: 16px auto 0;
}

.section-description {
    font-size: 0.95rem;
    color: var(--text-muted);
    max-width: 500px;
    margin: 16px auto 0;
    line-height: 1.8;
}

/* ===== 소개 섹션 ===== */
.about {
    background: var(--bg-paper);
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

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

.about-text h3 {
    font-size: 1.4rem;
    margin-bottom: 1.2rem;
    color: var(--text-dark);
    font-family: 'Nanum Myeongjo', serif;
    line-height: 1.6;
    letter-spacing: -0.3px;
}

.about-text p {
    font-size: 0.95rem;
    line-height: 2;
    margin-bottom: 1.2rem;
    color: var(--text-body);
}

.about-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 32px;
}

.feature-item {
    text-align: center;
    padding: 20px 12px;
    background: var(--bg-cream);
    border: 1px solid var(--border-light);
    border-radius: 0;
    transition: var(--transition);
}

.feature-item:hover {
    border-color: var(--border-dark);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.feature-item h4 {
    font-size: 0.88rem;
    line-height: 1.5;
    color: var(--text-dark);
    font-family: 'Nanum Myeongjo', serif;
}

.about-image {
    height: 460px;
    position: relative;
}

.chef-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    box-shadow: none;
    border: 1px solid var(--border-light);
    transition: var(--transition);
}

.chef-image:hover {
    transform: none;
    box-shadow: none;
}

/* ===== 메뉴 섹션 ===== */
.menu {
    background: var(--text-dark);
    color: var(--bg-paper);
}

.menu .section-title {
    color: var(--bg-paper);
}

.menu .section-title::after {
    background: var(--accent-red);
}

.menu .section-description {
    color: rgba(250, 246, 240, 0.6);
}

.menu-grid-simple {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 700px;
    margin: 0 auto 32px;
}

.menu-card-simple {
    background: rgba(250, 246, 240, 0.04);
    border: 1px solid rgba(250, 246, 240, 0.12);
    border-radius: 0;
    padding: 40px 32px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.menu-card-simple::before {
    display: none;
}

.menu-card-simple:hover {
    background: rgba(250, 246, 240, 0.06);
    transform: none;
    box-shadow: none;
}

.menu-card-simple.featured {
    background: rgba(139, 58, 47, 0.1);
    border: 1px solid rgba(139, 58, 47, 0.4);
}

.menu-description {
    font-size: 0.92rem;
    line-height: 1.9;
    color: rgba(250, 246, 240, 0.65);
    margin-top: 20px;
}

.menu-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--accent-red);
    color: #FAF6F0;
    padding: 3px 12px;
    border-radius: 0;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.menu-card-header {
    margin-bottom: 20px;
    text-align: center;
}

.menu-card-header h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
    font-family: 'Nanum Myeongjo', serif;
    color: var(--bg-paper);
}

.menu-label {
    font-size: 0.78rem;
    color: rgba(250, 246, 240, 0.4);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.menu-card-body {
    text-align: center;
}

.menu-price {
    margin-bottom: 0;
}

.menu-price .currency {
    font-size: 1rem;
    color: var(--accent-red);
}

.menu-price .amount {
    font-size: 2rem;
    font-weight: 700;
    color: var(--bg-paper);
    margin-left: 3px;
    font-family: 'Nanum Myeongjo', serif;
}

.menu-notice {
    text-align: center;
    padding: 20px;
    background: rgba(250, 246, 240, 0.04);
    border-radius: 0;
    border: 1px solid rgba(250, 246, 240, 0.08);
}

.menu-notice p {
    color: rgba(250, 246, 240, 0.5);
    margin: 4px 0;
    font-size: 0.88rem;
}

/* ===== 갤러리 섹션 ===== */
.gallery {
    background: var(--bg-cream);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 0;
}

.gallery-item {
    position: relative;
    aspect-ratio: 1;
    height: auto;
    overflow: hidden;
    border-radius: 0;
    cursor: default;
    transition: var(--transition);
    box-shadow: none;
}

.gallery-item:hover {
    transform: none;
    box-shadow: none;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
    filter: saturate(0.9);
}

.gallery-item:hover img {
    transform: none;
    filter: saturate(1);
}

/* ===== 위치 섹션 ===== */
.location {
    background: var(--bg-paper);
    border-top: 1px solid var(--border-light);
}

.location-content {
    max-width: 600px;
    margin: 0 auto;
}

.location-info {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.info-item {
    padding-bottom: 28px;
    border-bottom: 1px solid var(--border-light);
}

.info-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.info-item h3 {
    font-size: 1rem;
    margin-bottom: 8px;
    color: var(--text-dark);
    font-family: 'Nanum Myeongjo', serif;
}

.info-item p {
    color: var(--text-body);
    line-height: 1.9;
    font-size: 0.95rem;
}

/* ===== 예약 섹션 ===== */
.reservation {
    background: var(--text-dark);
    color: var(--bg-paper);
}

.reservation .section-title {
    color: var(--bg-paper);
}

.reservation .section-title::after {
    background: var(--accent-red);
}

.reservation .section-description {
    color: rgba(250, 246, 240, 0.6);
}

.reservation-box {
    max-width: 480px;
    margin: 0 auto;
    text-align: center;
    background: rgba(250, 246, 240, 0.04);
    padding: 48px 36px;
    border-radius: 0;
    border: 1px solid rgba(250, 246, 240, 0.12);
}

.reservation-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.phone-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--bg-paper);
    text-decoration: none;
    margin-bottom: 12px;
    transition: var(--transition);
    letter-spacing: 1px;
    font-family: 'Nanum Myeongjo', serif;
}

.phone-number:hover {
    color: rgba(250, 246, 240, 0.7);
    transform: none;
}

.reservation-text {
    font-size: 0.92rem;
    color: rgba(250, 246, 240, 0.55);
    margin-bottom: 28px;
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-large span {
    font-size: 1.1rem;
}

.reservation-notice {
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid rgba(250, 246, 240, 0.08);
    text-align: left;
}

.reservation-notice p {
    color: rgba(250, 246, 240, 0.45);
    margin: 8px 0;
    font-size: 0.88rem;
    line-height: 1.8;
}

/* ===== 푸터 ===== */
.footer {
    background: #1E1812;
    color: var(--bg-paper);
    padding: 50px 0 24px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.footer-section h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
    color: var(--bg-paper);
    font-family: 'Nanum Myeongjo', serif;
}

.footer-section h4 {
    font-size: 0.95rem;
    margin-bottom: 12px;
    color: rgba(250, 246, 240, 0.7);
    font-family: 'Nanum Myeongjo', serif;
}

.footer-section p {
    color: rgba(250, 246, 240, 0.5);
    line-height: 1.8;
    font-size: 0.88rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid rgba(250, 246, 240, 0.08);
}

.footer-bottom p {
    color: rgba(250, 246, 240, 0.3);
    font-size: 0.82rem;
}

/* ===== 반응형 ===== */
@media (max-width: 1024px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 56px;
        flex-direction: column;
        background: rgba(245, 239, 230, 0.98);
        width: 100%;
        padding: 2rem;
        transition: var(--transition);
        gap: 1.5rem;
        border-bottom: 1px solid var(--border-light);
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .hero-title {
        font-size: 2.6rem;
    }

    .marquee-item {
        width: 180px;
        height: 135px;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .about-image {
        height: 350px;
    }

    .menu-grid-simple {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }

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

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

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-description {
        font-size: 0.95rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .marquee-item {
        width: 150px;
        height: 112px;
    }

    .hero-marquee {
        gap: 10px;
    }

    .marquee-set {
        gap: 10px;
        padding-right: 10px;
    }

    .row-1 { transform: rotate(-2deg) translateX(-20px); }
    .row-2 { transform: rotate(1deg) translateX(10px); }
    .row-3 { transform: rotate(-0.5deg) translateX(-30px); }

    .about-features {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 4px;
    }

    .phone-number {
        font-size: 1.6rem;
    }

    .reservation-box {
        padding: 36px 20px;
    }

    .menu-card-simple {
        padding: 32px 24px;
    }
}

/* ===== 스크롤 애니메이션 ===== */
.reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: all 0.5s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

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

.fade-in {
    animation: fadeIn 0.8s ease-in;
}
