/* ============================================
   소반 SOBAN - Fine Dining Website
   Classic French Style for Korean Market
   ============================================ */

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

:root {
    --ivory: #faf9f6;
    --cream: #f5f3ef;
    --stone: #e8e4dc;
    --taupe: #a69b8d;
    --bronze: #8b7355;
    --charcoal: #3d3d3d;
    --black: #1a1a1a;
    --burgundy: #722f37;
    --gold: #c9a962;
    --white: #ffffff;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Cormorant Garamond', 'Noto Serif KR', serif;
    background: var(--ivory);
    color: var(--charcoal);
    line-height: 1.8;
    font-size: 17px;
    overflow-x: hidden;
}

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

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 400;
    line-height: 1.3;
}

.section-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--bronze);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.section-label::before {
    content: '';
    width: 40px;
    height: 1px;
    background: var(--bronze);
}

.section-title {
    font-family: 'Playfair Display', 'Noto Serif KR', serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400;
    line-height: 1.3;
    color: var(--charcoal);
    margin-bottom: 30px;
}

.section-title em {
    font-style: italic;
    color: var(--bronze);
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--ivory);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader-logo {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 400;
    letter-spacing: 0.4em;
    color: var(--charcoal);
    margin-bottom: 30px;
}

.preloader-line {
    width: 100px;
    height: 1px;
    background: var(--stone);
    position: relative;
    overflow: hidden;
}

.preloader-line::after {
    content: '';
    position: absolute;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--bronze);
    animation: loadingLine 1.5s ease-in-out infinite;
}

@keyframes loadingLine {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 30px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.5s ease;
}

.nav.scrolled {
    background: rgba(250, 249, 246, 0.98);
    padding: 20px 60px;
    box-shadow: 0 1px 0 var(--stone);
}

.nav-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.nav-logo-main {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 400;
    letter-spacing: 0.3em;
    color: var(--charcoal);
}

.nav-logo-sub {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.55rem;
    letter-spacing: 0.15em;
    color: var(--taupe);
    margin-top: 2px;
}

.nav-links {
    display: flex;
    gap: 40px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav-link {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--charcoal);
    position: relative;
    padding: 5px 0;
}

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

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

.nav-reserve {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--ivory);
    background: var(--charcoal);
    padding: 14px 28px;
    transition: all 0.4s ease;
}

.nav-reserve:hover {
    background: var(--bronze);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    width: 24px;
    height: 1px;
    background: var(--charcoal);
    transition: all 0.3s ease;
}

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

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, 
        rgba(250, 249, 246, 0.3) 0%,
        rgba(250, 249, 246, 0.6) 50%,
        rgba(250, 249, 246, 0.8) 100%);
}

.hero-content {
    text-align: center;
    max-width: 900px;
    padding: 0 40px;
    position: relative;
    z-index: 1;
}

.hero-stars {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 30px;
}

.hero-star {
    font-size: 0.9rem;
    color: var(--gold);
}

.hero-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--taupe);
    margin-bottom: 20px;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(3.5rem, 10vw, 7rem);
    font-weight: 400;
    letter-spacing: 0.12em;
    line-height: 1.1;
    color: var(--charcoal);
    margin-bottom: 25px;
}

.hero-tagline {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem;
    font-style: italic;
    font-weight: 400;
    color: var(--bronze);
    letter-spacing: 0.05em;
}

.hero-scroll {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.hero-scroll-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.6rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--taupe);
}

.hero-scroll-line {
    width: 1px;
    height: 50px;
    background: var(--taupe);
    animation: scrollPulse 2s ease-in-out infinite;
}

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

/* Page Header (for inner pages) */
.page-header {
    height: 60vh;
    min-height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.page-header-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.page-header-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, 
        rgba(250, 249, 246, 0.4) 0%,
        rgba(250, 249, 246, 0.7) 100%);
}

.page-header-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.page-header-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 400;
    letter-spacing: 0.15em;
    color: var(--charcoal);
    margin-bottom: 15px;
}

.page-header-subtitle {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    font-style: italic;
    color: var(--bronze);
}

/* Content Sections */
.section {
    padding: 120px 60px;
}

.section-dark {
    background: var(--charcoal);
    color: var(--ivory);
}

.section-cream {
    background: var(--cream);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

/* Two Column Layout */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.two-col.reverse {
    direction: rtl;
}

.two-col.reverse > * {
    direction: ltr;
}

/* Image with Frame */
.image-frame {
    position: relative;
}

.image-frame img {
    width: 100%;
    display: block;
}

.image-frame::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    border: 1px solid var(--stone);
    z-index: -1;
}

/* Quote Section */
.quote-section {
    padding: 100px 60px;
    background: var(--cream);
    text-align: center;
}

.quote-inner {
    max-width: 900px;
    margin: 0 auto;
}

.quote-mark {
    font-family: 'Playfair Display', serif;
    font-size: 5rem;
    color: var(--stone);
    line-height: 1;
    margin-bottom: 15px;
}

.quote-text {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.4rem, 2.5vw, 1.8rem);
    font-style: italic;
    font-weight: 400;
    line-height: 1.8;
    color: var(--charcoal);
    margin-bottom: 30px;
}

.quote-author {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--bronze);
}

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

.gallery-item {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
}

.gallery-item.wide {
    grid-column: span 2;
    aspect-ratio: 2/1;
}

.gallery-item.tall {
    grid-row: span 2;
    aspect-ratio: 1/2;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Menu Cards */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.menu-card {
    padding: 50px;
    border: 1px solid var(--stone);
    text-align: center;
    background: var(--white);
    transition: all 0.5s ease;
}

.menu-card:hover {
    border-color: var(--bronze);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.menu-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 25px;
    border: 1px solid var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-size: 1.2rem;
}

.menu-type {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.6rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--bronze);
    margin-bottom: 12px;
}

.menu-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 8px;
    color: var(--charcoal);
}

.menu-name-kr {
    font-family: 'Noto Serif KR', serif;
    font-size: 0.95rem;
    color: var(--taupe);
    margin-bottom: 20px;
}

.menu-desc {
    font-size: 0.95rem;
    color: var(--taupe);
    line-height: 1.8;
    margin-bottom: 25px;
}

.menu-price {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    color: var(--bronze);
}

.menu-price span {
    font-size: 0.8rem;
    color: var(--taupe);
}

/* Course List */
.course-list {
    max-width: 800px;
    margin: 0 auto;
}

.course-item {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 30px;
    padding: 35px 0;
    border-bottom: 1px solid var(--stone);
}

.course-item:first-child {
    border-top: 1px solid var(--stone);
}

.course-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.course-desc {
    font-size: 0.95rem;
    color: var(--taupe);
    line-height: 1.7;
}

.course-price {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    color: var(--bronze);
    white-space: nowrap;
}

/* Team/Chef Section */
.chef-profile {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: center;
}

.chef-image img {
    width: 100%;
    display: block;
    filter: grayscale(20%);
}

.chef-bio {
    font-size: 1.05rem;
    color: var(--charcoal);
    line-height: 2;
    margin-bottom: 25px;
}

.chef-awards {
    margin-top: 50px;
    padding-top: 35px;
    border-top: 1px solid var(--stone);
}

.chef-awards h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--bronze);
    margin-bottom: 20px;
}

.awards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.award-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--charcoal);
}

.award-item::before {
    content: '★';
    font-size: 0.55rem;
    color: var(--gold);
}

/* Contact/Visit Info */
.visit-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 80px;
    align-items: start;
}

.visit-info h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 40px;
}

.visit-detail {
    display: flex;
    padding: 20px 0;
    border-bottom: 1px solid var(--stone);
}

.visit-detail:first-of-type {
    border-top: 1px solid var(--stone);
}

.visit-label {
    width: 120px;
    flex-shrink: 0;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--bronze);
}

.visit-value {
    font-size: 1rem;
    color: var(--charcoal);
    line-height: 1.7;
}

.visit-map {
    position: relative;
    background: var(--cream);
    min-height: 400px;
}

.visit-map img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 400px;
}

/* Reservation Form */
.reservation-form {
    max-width: 600px;
    margin: 0 auto;
}

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

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

.form-group label {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--bronze);
    margin-bottom: 10px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    border: 1px solid var(--stone);
    background: var(--white);
    font-family: 'Cormorant Garamond', serif;
    font-size: 1rem;
    color: var(--charcoal);
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--bronze);
}

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 18px 50px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    transition: all 0.4s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--charcoal);
    color: var(--ivory);
}

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

.btn-outline {
    background: transparent;
    color: var(--charcoal);
    border: 1px solid var(--charcoal);
}

.btn-outline:hover {
    background: var(--charcoal);
    color: var(--ivory);
}

.btn-gold {
    background: transparent;
    color: var(--ivory);
    border: 1px solid var(--gold);
}

.btn-gold:hover {
    background: var(--gold);
    color: var(--charcoal);
}

/* CTA Section */
.cta-section {
    padding: 120px 60px;
    background: var(--charcoal);
    text-align: center;
    color: var(--ivory);
}

.cta-section .section-title {
    color: var(--ivory);
    margin-bottom: 15px;
}

.cta-subtitle {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    font-style: italic;
    color: var(--gold);
    margin-bottom: 40px;
}

/* Footer */
.footer {
    padding: 80px 60px 40px;
    background: var(--black);
    color: var(--ivory);
}

.footer-main {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
    padding-bottom: 50px;
    border-bottom: 1px solid rgba(250, 249, 246, 0.1);
}

.footer-brand h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    margin-bottom: 12px;
}

.footer-tagline {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1rem;
    font-style: italic;
    color: var(--gold);
}

.footer-col h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.6rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 20px;
}

.footer-col a {
    display: block;
    color: rgba(250, 249, 246, 0.6);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.footer-col a:hover {
    color: var(--gold);
}

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

.footer-bottom p {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    color: rgba(250, 249, 246, 0.4);
}

.footer-social {
    display: flex;
    gap: 25px;
}

.footer-social a {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    color: rgba(250, 249, 246, 0.5);
}

.footer-social a:hover {
    color: var(--gold);
}

/* Responsive */
@media (max-width: 1200px) {
    .nav { padding: 25px 40px; }
    .section { padding: 100px 40px; }
    .two-col { gap: 60px; }
    .chef-profile { gap: 60px; }
    .visit-grid { gap: 60px; }
    .footer { padding: 60px 40px 30px; }
}

@media (max-width: 992px) {
    .nav-links { display: none; }
    .nav-reserve { display: none; }
    .menu-toggle { display: flex; }
    
    .two-col { grid-template-columns: 1fr; }
    .two-col.reverse { direction: ltr; }
    
    .menu-grid { grid-template-columns: 1fr; }
    
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-item.wide { grid-column: auto; aspect-ratio: 1; }
    .gallery-item.tall { grid-row: auto; aspect-ratio: 1; }
    
    .chef-profile { grid-template-columns: 1fr; }
    .visit-grid { grid-template-columns: 1fr; }
    
    .footer-main { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav { padding: 20px 25px; }
    .nav.scrolled { padding: 15px 25px; }
    
    .hero { min-height: 600px; }
    .page-header { min-height: 350px; }
    
    .section { padding: 80px 25px; }
    .quote-section { padding: 80px 25px; }
    .cta-section { padding: 80px 25px; }
    
    .image-frame::before { display: none; }
    
    .menu-card { padding: 35px 25px; }
    
    .form-row { grid-template-columns: 1fr; }
    
    .awards-grid { grid-template-columns: 1fr; }
    
    .gallery-grid { grid-template-columns: 1fr; }
    
    .footer { padding: 50px 25px 25px; }
    .footer-main { grid-template-columns: 1fr; text-align: center; gap: 30px; }
    .footer-bottom { flex-direction: column; gap: 20px; }
}

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

.fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 10, 10, 0.98);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

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

.mobile-menu-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    padding: 30px;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}

.mobile-nav-link {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--ivory);
    letter-spacing: 0.1em;
    transition: color 0.3s ease;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    color: var(--gold);
}

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

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

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

body.menu-open {
    overflow: hidden;
}

/* Utility Classes */
.text-center { text-align: center; }
.mt-60 { margin-top: 60px; }
.mb-60 { margin-bottom: 60px; }


/* [auto-fix] Korean typography: prevent postposition particles from
   being orphaned on their own line, and prevent long English/URL
   strings from overflowing narrow mobile viewports. */
body, h1, h2, h3, h4, h5, h6, p, a, span, li, button, input, textarea, div {
    word-break: keep-all;
    overflow-wrap: break-word;
}
