/* ==========================================================================
   HANOK — shared stylesheet
   ========================================================================== */

:root {
  --bg: #0e0e0d;
  --bg-alt: #17110f;
  --bg-card: #1c1614;
  --text: #f3ece2;
  --text-muted: #b9ac9c;
  --accent: #9c3131;
  --accent-soft: #7a2626;
  --tan: #d7a374;
  --border: rgba(243, 236, 226, 0.12);
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.45);

  --font-heading: 'Playfair Display', Georgia, 'Noto Serif', serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --max-width: 1180px;
}

html:lang(ja) {
  --font-heading: 'Noto Serif JP', serif;
  --font-body: 'Noto Sans JP', sans-serif;
}

html:lang(ko) {
  --font-heading: 'Noto Serif KR', serif;
  --font-body: 'Noto Sans KR', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.5em;
}

p { margin: 0 0 1em; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--tan);
  margin-bottom: 0.75em;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 16px 34px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.02em;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: #b13939; }

.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: rgba(243, 236, 226, 0.4);
}
.btn-outline:hover {
  border-color: var(--text);
  background: rgba(243, 236, 226, 0.06);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 2em;
}

/* ---- Header / Nav ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(14, 14, 13, 0.15);
}

/* Blur lives on a pseudo-element rather than .site-header itself, because
   backdrop-filter on an ancestor becomes the containing block for any
   position:fixed descendant — which collapsed the mobile nav-links overlay
   down to the header's own height instead of the full viewport. */
.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(215, 163, 116, 0.96);
  backdrop-filter: blur(10px);
  z-index: -1;
}

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

.nav-logo img {
  height: 46px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #2b1810;
  transition: color 0.2s ease;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.nav-links .nav-book {
  color: var(--text);
  background: var(--accent);
  padding: 10px 22px;
  border-radius: 999px;
  border-bottom: none !important;
}
.nav-links .nav-book:hover { background: #b13939; }

.lang-switch {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
  border-left: 1px solid rgba(14, 14, 13, 0.2);
  padding-left: 20px;
}

.lang-switch a {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: rgba(43, 24, 16, 0.7);
  padding: 6px 8px;
  border-radius: 6px;
}
.lang-switch a.active { color: var(--accent); }
.lang-switch a:hover { color: var(--accent); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #2b1810;
  font-size: 1.6rem;
  cursor: pointer;
}

@media (max-width: 900px) {
  .nav-toggle { display: block; }

  .nav-links {
    display: none;
    position: fixed;
    inset: 72px 0 0 0;
    background: var(--tan);
    flex-direction: column;
    align-items: flex-start;
    padding: 30px 24px;
    gap: 22px;
    overflow-y: auto;
  }

  .nav-links.open { display: flex; }

  .lang-switch {
    border-left: none;
    padding-left: 0;
    margin-left: 0;
    padding-top: 12px;
    border-top: 1px solid rgba(14, 14, 13, 0.2);
    width: 100%;
  }
}

/* ---- Hero ---- */
.hero {
  position: relative;
  padding: 110px 0 90px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14,14,13,0.55), rgba(14,14,13,0.92));
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  margin-bottom: 0.4em;
}

.hero p.lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

.hero .btn-row { justify-content: center; }

/* ---- Gallery strip ---- */
.gallery-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}
.gallery-strip img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

/* ---- Section ---- */
.section {
  padding: 90px 0;
}
.section-alt { background: var(--bg-alt); }

.section-tan {
  background: var(--tan);
}
.section-tan .eyebrow { color: var(--accent); }
.section-tan h2 { color: #2b1810; }
.section-tan .experience-circle {
  border-color: rgba(43, 24, 16, 0.35);
  color: #2b1810;
}
.section-tan .experience-item:hover .experience-circle {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.section-tan .experience-item h3 { color: #2b1810; }
.section-tan .experience-item p { color: rgba(43, 24, 16, 0.7); }
.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3em;
}

/* ---- Reviews ---- */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}

.review-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 32px;
  text-align: center;
}

.review-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  margin: 0 auto 14px;
}

.review-name {
  font-family: var(--font-heading);
  font-weight: 700;
  margin-bottom: 10px;
}

.review-stars {
  color: var(--tan);
  letter-spacing: 2px;
  margin-bottom: 10px;
  font-size: 0.95rem;
}

.review-quote {
  color: var(--text-muted);
  font-size: 0.98rem;
}

/* ---- Visit us ---- */
.visit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}

.visit-info { text-align: left; }

.visit-block {
  margin-bottom: 28px;
}
.visit-block h3 {
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tan);
  font-family: var(--font-body);
  font-weight: 600;
  margin-bottom: 0.4em;
}
.visit-block p { color: var(--text-muted); margin: 0; }

.map-frame {
  width: 100%;
  min-height: 380px;
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  filter: grayscale(0.2) contrast(1.05);
}
.map-frame iframe { width: 100%; height: 100%; min-height: 380px; border: 0; }

@media (max-width: 800px) {
  .visit-grid { grid-template-columns: 1fr; }
}

/* ---- Footer ---- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}
.site-footer .footer-logo {
  height: 34px;
  margin: 0 auto 14px;
  opacity: 0.85;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 18px;
}

.social-links a {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-muted);
  transition: all 0.2s ease;
}

.social-links a:hover {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}

.social-links svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.social-links.large {
  justify-content: flex-start;
  margin-bottom: 0;
  gap: 14px;
}

.social-links.large a {
  width: 56px;
  height: 56px;
  color: var(--tan);
  border-color: rgba(215, 163, 116, 0.4);
}

.social-links.large svg {
  width: 26px;
  height: 26px;
}

.social-links.large a:hover {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}

/* ---- Menu page ---- */
.menu-page-header {
  padding: 150px 0 60px;
  text-align: center;
}
.menu-page-header h1 { font-size: clamp(2rem, 4.5vw, 3rem); }

.menu-group {
  border-top: 1px solid var(--border);
}

.menu-group-head {
  text-align: center;
  padding: 76px 0 6px;
}

.menu-group-head .eyebrow { margin-bottom: 0.6em; }

.menu-group-head h2 {
  font-size: clamp(1.9rem, 4.2vw, 2.8rem);
  margin: 0;
}

.menu-category {
  padding: 56px 0;
  border-top: 1px solid var(--border);
}

.menu-category.no-divider { border-top: none; padding-top: 30px; }

/* ---- Menu dish-card grid: 2 dish types per row ---- */
.menu-group-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  padding: 10px 0 60px;
}

.menu-dish-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.menu-dish-card.wide { grid-column: 1 / -1; }

.menu-dish-card .menu-category-head { margin-bottom: 0; }

.menu-dish-card .menu-dish {
  background: none;
  border: none;
  padding: 0;
}

.menu-dish-card .menu-items {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

@media (max-width: 760px) {
  .menu-group-grid { grid-template-columns: 1fr; }
  .menu-dish-card .menu-items { grid-template-columns: 1fr; }
}

.menu-category-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 34px;
  flex-wrap: wrap;
}

.menu-category-head h2 {
  font-size: 1.7rem;
  color: var(--tan);
  margin: 0;
}
.menu-category-weight {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.menu-items {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}

.menu-dish {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
}

.menu-dish.no-photo {
  grid-template-columns: 1fr;
  padding: 20px 22px;
}

.menu-dish-photo {
  width: 96px;
  height: 96px;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.menu-dish-photo img { width: 100%; height: 100%; object-fit: cover; }

.menu-dish-body { display: flex; flex-direction: column; gap: 6px; }

.menu-dish-title-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: baseline;
}

.menu-dish-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
}

.menu-dish-price {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--tan);
  white-space: nowrap;
}

.menu-dish-desc {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin: 0;
}

.menu-subitems {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.menu-subitem-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.95rem;
}
.menu-subitem-row .name { color: var(--text); }
.menu-subitem-row .price { color: var(--tan); font-weight: 600; white-space: nowrap; }

.menu-hero-photo {
  border-radius: 20px;
  overflow: hidden;
  height: 100%;
  min-height: 260px;
  background: #000;
}
.menu-hero-photo img { width: 100%; height: 100%; object-fit: cover; }

.menu-drinks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 40px;
}
.drink-group { margin-bottom: 28px; }
.drink-group h3 {
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--tan);
  border-bottom: 1px solid var(--border);
  padding-bottom: 10px;
  margin-bottom: 14px;
}
.drink-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  font-size: 0.95rem;
}
.drink-row .price { color: var(--tan); font-weight: 600; white-space: nowrap; }

/* ---- Contact page ---- */
.contact-page-header {
  padding: 150px 0 20px;
  text-align: center;
}
.contact-page-header .contact-address {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0.6em auto 0;
}

/* ---- Our Story page ---- */
.story-hero {
  padding: 150px 0 30px;
}

.story-hero-grid {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 70px;
  align-items: center;
}

.story-photo-placeholder {
  aspect-ratio: 4 / 5;
  border: 1px dashed var(--border);
  border-radius: 18px;
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  padding: 30px;
  line-height: 1.5;
}

.story-photo-placeholder .icon {
  display: block;
  font-size: 2rem;
  margin-bottom: 14px;
  opacity: 0.6;
}

.story-text .eyebrow { display: block; }
.story-text h1 { margin-bottom: 0.5em; }
.story-text p { color: var(--text-muted); }

@media (max-width: 860px) {
  .story-hero { padding-top: 130px; }
  .story-hero-grid { grid-template-columns: 1fr; }
  .story-photo-placeholder { max-width: 340px; margin: 0 auto; }
}

/* ---- Experience section (circle icons) ---- */
.experience-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-top: 2.5em;
}

.experience-item { text-align: center; }

.experience-circle {
  width: 80px;
  height: 80px;
  margin: 0 auto 22px;
  border: 2px solid rgba(215, 163, 116, 0.35);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--tan);
  transition: all 0.3s ease;
}

.experience-item:hover .experience-circle {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.experience-item h3 {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tan);
  margin-bottom: 0.5em;
  font-family: var(--font-body);
  font-weight: 600;
}

.experience-item p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0;
}

@media (max-width: 820px) {
  .experience-grid { grid-template-columns: repeat(2, 1fr); gap: 36px 24px; }
}

/* ---- Booking modal ---- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 6, 6, 0.72);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 1000;
}
.modal-overlay.open { display: flex; }

.modal-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  max-width: 460px;
  width: 100%;
  padding: 40px;
  position: relative;
  box-shadow: var(--shadow);
  max-height: 90vh;
  overflow-y: auto;
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
}
.modal-close:hover { color: var(--text); }

.modal-box h2 { font-size: 1.5rem; margin-bottom: 0.2em; }
.modal-sub { color: var(--text-muted); font-size: 0.92rem; margin-bottom: 1.8em; }

.field {
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.field label {
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}
.field input {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 13px 14px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.98rem;
}
.field input:focus {
  outline: none;
  border-color: var(--accent);
}
.field input::-webkit-calendar-picker-indicator { filter: invert(0.9); }

.modal-box .btn { width: 100%; margin-top: 6px; }

.form-status {
  margin-top: 14px;
  font-size: 0.9rem;
  text-align: center;
  display: none;
}
.form-status.show { display: block; }
.form-status.ok { color: #8fcf8f; }
.form-status.err { color: #e28c8c; }

body.modal-locked { overflow: hidden; }
