/* ===== Base ===== */
:root {
  --bg: #F5EFE6;
  --brown: #6F4E37;
  --caramel: #C28E5D;
  --ink: #3E2C20;
  --white: #FFFCF8;
  --ink-soft: rgba(62, 44, 32, 0.72);
  --ink-mute: rgba(62, 44, 32, 0.5);
  --line: rgba(111, 78, 55, 0.18);
  --shadow-sm: 0 6px 24px rgba(62, 44, 32, 0.08);
  --shadow-md: 0 18px 48px rgba(62, 44, 32, 0.12);
  --radius: 18px;
  --radius-sm: 10px;
  --serif: "Noto Serif KR", "Cormorant Garamond", "Apple SD Gothic Neo", serif;
  --serif-en: "Cormorant Garamond", "Noto Serif KR", serif;
  --sans: "Noto Sans KR", -apple-system, "Apple SD Gothic Neo", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color 200ms ease, opacity 200ms ease; }
a:hover { color: var(--caramel); }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ===== Reveal animation ===== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 900ms ease, transform 900ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Header ===== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: transparent;
  transition: background 350ms ease, box-shadow 350ms ease, backdrop-filter 350ms ease;
}
.site-header.is-scrolled {
  background: rgba(255, 252, 248, 0.86);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  box-shadow: 0 1px 0 var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--serif);
  color: var(--ink);
}
.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--brown);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif-en);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.5px;
}
.brand-name {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.2px;
}
.site-header:not(.is-scrolled) .brand-name,
.site-header:not(.is-scrolled) .nav a {
  color: var(--white);
}
.site-header:not(.is-scrolled) .brand-mark {
  background: rgba(255, 252, 248, 0.92);
  color: var(--brown);
}

.nav {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav a {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.4px;
  position: relative;
  padding: 6px 0;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 300ms ease;
}
.nav a:hover::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.nav-toggle span {
  width: 22px;
  height: 1.5px;
  background: var(--white);
  transition: background 250ms ease, transform 250ms ease, opacity 250ms ease;
}
.site-header.is-scrolled .nav-toggle span { background: var(--ink); }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav-mobile {
  display: none;
  flex-direction: column;
  background: var(--white);
  border-top: 1px solid var(--line);
  padding: 8px 0 16px;
}
.nav-mobile a {
  padding: 14px 28px;
  font-size: 16px;
  font-weight: 500;
  border-bottom: 1px solid var(--line);
}
.nav-mobile a:last-child { border-bottom: none; }
.nav-mobile.is-open { display: flex; }

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  color: var(--white);
}
.hero-image {
  position: absolute;
  inset: 0;
  background-image:
    url("https://images.unsplash.com/photo-1495474472287-4d71bcdd2085?auto=format&fit=crop&w=2000&q=80");
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  animation: kenburns 18s ease-out forwards;
  z-index: -2;
}
@keyframes kenburns {
  from { transform: scale(1.12); }
  to   { transform: scale(1.02); }
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(40, 26, 16, 0.55) 0%, rgba(40, 26, 16, 0.35) 45%, rgba(40, 26, 16, 0.7) 100%);
  z-index: -1;
}

.hero-content {
  padding: 160px 28px 140px;
  max-width: 880px;
}
.hero-eyebrow {
  font-family: var(--serif-en);
  font-size: 14px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: rgba(255, 252, 248, 0.85);
  margin: 0 0 24px;
}
.hero-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(40px, 6vw, 76px);
  line-height: 1.18;
  margin: 0 0 28px;
  letter-spacing: -0.5px;
}
.hero-sub {
  font-size: 17px;
  line-height: 1.85;
  color: rgba(255, 252, 248, 0.88);
  margin: 0 0 44px;
  font-weight: 300;
}
.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: transform 250ms ease, background 250ms ease, color 250ms ease, border-color 250ms ease;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary {
  background: var(--caramel);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--brown);
  color: var(--white);
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 252, 248, 0.6);
}
.btn-ghost:hover {
  background: rgba(255, 252, 248, 0.12);
  color: var(--white);
  border-color: var(--white);
}

.scroll-hint {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 46px;
  border: 1.5px solid rgba(255, 252, 248, 0.7);
  border-radius: 14px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}
.scroll-hint span {
  width: 2px;
  height: 8px;
  background: var(--white);
  border-radius: 1px;
  animation: scrolldot 1.6s ease-in-out infinite;
}
@keyframes scrolldot {
  0% { transform: translateY(0); opacity: 0.2; }
  50% { transform: translateY(10px); opacity: 1; }
  100% { transform: translateY(18px); opacity: 0; }
}

/* ===== Section base ===== */
.section {
  padding: 140px 0;
  position: relative;
}
.section + .section { padding-top: 0; }
.section.menu, .section.location, .section.instagram, .section.hours {
  padding-top: 140px;
}

.eyebrow {
  font-family: var(--serif-en);
  font-size: 13px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--caramel);
  margin: 0 0 18px;
  font-weight: 500;
}
.section-title {
  font-family: var(--serif);
  font-size: clamp(30px, 4.2vw, 50px);
  font-weight: 500;
  line-height: 1.25;
  color: var(--ink);
  margin: 0 0 24px;
  letter-spacing: -0.3px;
}
.lede {
  font-size: 16.5px;
  line-height: 1.95;
  color: var(--ink-soft);
  max-width: 640px;
  margin: 0;
  font-weight: 300;
}
.lede.center { margin: 18px auto 0; text-align: center; }
.section-head { text-align: center; margin-bottom: 56px; }
.section-head .section-title { margin-left: auto; margin-right: auto; }

/* ===== Intro ===== */
.intro { padding-top: 140px; padding-bottom: 60px; text-align: center; }
.intro .eyebrow { display: block; }
.intro .section-title { margin-left: auto; margin-right: auto; }
.intro .lede { margin: 24px auto 0; text-align: center; }

/* ===== Menu ===== */
.tabs {
  display: inline-flex;
  gap: 6px;
  background: var(--white);
  border-radius: 999px;
  padding: 6px;
  margin: 0 auto 48px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
}
.menu .section-head { margin-bottom: 36px; }
.menu .tabs { display: flex; width: max-content; margin-left: auto; margin-right: auto; }

.menu { text-align: center; }
.menu .container { display: flex; flex-direction: column; align-items: center; }
.menu .tab-panels { width: 100%; text-align: left; }

.tab {
  padding: 12px 32px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-soft);
  letter-spacing: 0.5px;
  transition: background 250ms ease, color 250ms ease;
}
.tab.is-active {
  background: var(--brown);
  color: var(--white);
}
.tab:hover:not(.is-active) {
  color: var(--ink);
}

.tab-panels { position: relative; }
.tab-panel {
  display: none;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 500ms ease, transform 500ms ease;
}
.tab-panel.is-active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
}

.menu-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 400ms ease, box-shadow 400ms ease;
  display: flex;
  flex-direction: column;
}
.menu-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}
.menu-card-img {
  aspect-ratio: 4 / 3;
  background-size: cover;
  background-position: center;
  background-color: #ead8c5;
}
.menu-card-body {
  padding: 26px 26px 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.menu-card-title {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 500;
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.2px;
}
.menu-card-en {
  font-family: var(--serif-en);
  font-size: 13px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--caramel);
  margin: 0;
}
.menu-card-desc {
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--ink-soft);
  margin: 6px 0 0;
  font-weight: 300;
  flex: 1;
}
.menu-card-foot {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
}
.menu-card-price {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
  color: var(--brown);
}
.menu-card-tag {
  font-size: 12px;
  color: var(--ink-mute);
  letter-spacing: 0.6px;
}

/* ===== Location ===== */
.location-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.info-list {
  list-style: none;
  margin: 32px 0 28px;
  padding: 0;
  border-top: 1px solid var(--line);
}
.info-list li {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
}
.info-label {
  font-family: var(--serif-en);
  font-size: 12px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--caramel);
  font-weight: 500;
}
.info-value {
  font-size: 15.5px;
  color: var(--ink);
  line-height: 1.7;
}
.location-note {
  font-size: 15px;
  line-height: 1.95;
  color: var(--ink-soft);
  margin: 24px 0 0;
  font-weight: 300;
  padding-left: 16px;
  border-left: 2px solid var(--caramel);
}

.map {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(135deg, #ede2d3 0%, #e2d4c0 100%);
  box-shadow: var(--shadow-md);
}
.map-inner {
  position: absolute;
  inset: 0;
}
.map-streets {
  position: absolute;
  inset: 0;
}
.street {
  position: absolute;
  background: rgba(255, 252, 248, 0.7);
}
.street-h { height: 22px; left: -10%; right: -10%; }
.street-v { width: 22px; top: -10%; bottom: -10%; }
.s1 { top: 28%; transform: rotate(-3deg); }
.s2 { top: 68%; transform: rotate(2deg); }
.s3 { left: 22%; transform: rotate(4deg); }
.s4 { left: 64%; transform: rotate(-2deg); }
.map-pin {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 24px;
  height: 24px;
  z-index: 2;
}
.pin-dot {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 18px;
  height: 18px;
  background: var(--brown);
  border-radius: 50%;
  border: 4px solid var(--white);
  box-shadow: 0 4px 14px rgba(62, 44, 32, 0.35);
  z-index: 2;
}
.pin-pulse {
  position: absolute;
  inset: -16px;
  border: 2px solid var(--brown);
  border-radius: 50%;
  opacity: 0;
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0% { transform: scale(0.4); opacity: 0.7; }
  100% { transform: scale(1.4); opacity: 0; }
}
.map-label {
  position: absolute;
  top: calc(50% - 56px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  padding: 8px 16px;
  border-radius: 999px;
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 600;
  color: var(--brown);
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
}
.map-caption {
  position: absolute;
  bottom: 22px;
  left: 22px;
  font-size: 12.5px;
  letter-spacing: 1px;
  color: var(--ink-soft);
  background: rgba(255, 252, 248, 0.85);
  padding: 6px 12px;
  border-radius: 6px;
}

/* ===== Instagram ===== */
.insta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 60px 0 48px;
}
.insta-tile {
  position: relative;
  aspect-ratio: 1 / 1;
  background-size: cover;
  background-position: center;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 500ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
.insta-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(62, 44, 32, 0);
  transition: background 350ms ease;
}
.insta-tile:hover {
  transform: scale(1.04);
  z-index: 1;
}
.insta-tile:hover::after {
  background: rgba(62, 44, 32, 0.18);
}
.insta-tile .insta-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.7);
  opacity: 0;
  z-index: 2;
  transition: opacity 350ms ease, transform 350ms ease;
  color: var(--white);
  font-family: var(--serif-en);
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.insta-tile:hover .insta-icon {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
.insta-cta { text-align: center; }

/* ===== Hours ===== */
.hours { padding-bottom: 160px; }
.hours-wrap { text-align: center; }
.hours-card {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 0;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  text-align: left;
  margin-top: 48px;
}

.hours-table {
  width: 100%;
  border-collapse: collapse;
  padding: 36px;
}
.hours-table th, .hours-table td {
  padding: 18px 36px;
  font-size: 15.5px;
}
.hours-table th {
  text-align: left;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: 0.3px;
  font-family: var(--serif);
  font-size: 17px;
  width: 35%;
}
.hours-table td {
  text-align: right;
  color: var(--ink-soft);
  font-family: var(--serif-en);
  font-size: 17px;
  letter-spacing: 1px;
}
.hours-table tr {
  border-bottom: 1px solid var(--line);
}
.hours-table tr:last-child { border-bottom: none; }
.hours-table tr:first-child th, .hours-table tr:first-child td { padding-top: 32px; }
.hours-table tr:last-child th, .hours-table tr:last-child td { padding-bottom: 32px; }
.hours-table tr.closed td { color: var(--caramel); }

.hours-side {
  background: linear-gradient(135deg, var(--brown) 0%, #5a3f2b 100%);
  color: var(--white);
  padding: 44px 40px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(255, 252, 248, 0.12);
  width: max-content;
  font-size: 14.5px;
  letter-spacing: 0.3px;
}
.status .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #9bdca0;
  box-shadow: 0 0 0 4px rgba(155, 220, 160, 0.22);
}
.status.is-closed .dot { background: #e8a89a; box-shadow: 0 0 0 4px rgba(232, 168, 154, 0.22); }
.notes {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.notes li {
  font-size: 14.5px;
  line-height: 1.7;
  color: rgba(255, 252, 248, 0.82);
  font-weight: 300;
  padding-left: 16px;
  position: relative;
}
.notes li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 1px;
  background: var(--caramel);
}

/* ===== Footer ===== */
.site-footer {
  background: var(--ink);
  color: rgba(255, 252, 248, 0.78);
  padding-top: 70px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  padding-bottom: 50px;
}
.footer-brand .brand-name { color: var(--white); }
.footer-brand .brand-mark { background: var(--caramel); color: var(--ink); }
.footer-tag {
  margin: 18px 0 0;
  font-family: var(--serif);
  font-size: 15.5px;
  line-height: 1.8;
  color: rgba(255, 252, 248, 0.66);
  max-width: 280px;
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.footer-col h4 {
  font-family: var(--serif-en);
  font-size: 12.5px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--caramel);
  margin: 0 0 18px;
  font-weight: 500;
}
.footer-col p {
  margin: 0 0 10px;
  font-size: 14.5px;
  line-height: 1.7;
  font-weight: 300;
}
.footer-col a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255, 252, 248, 0.1);
  padding: 22px 0;
  font-size: 13px;
  letter-spacing: 0.5px;
  color: rgba(255, 252, 248, 0.5);
  font-family: var(--serif-en);
}
.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .nav { display: none; }
  .nav-toggle { display: flex; }
  .hero-content { padding: 140px 28px 120px; }
  .section { padding: 100px 0; }
  .menu-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .location-grid { grid-template-columns: 1fr; gap: 48px; }
  .map { aspect-ratio: 4 / 3; }
  .hours-card { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 40px; }
  .footer-cols { gap: 28px; }
}

@media (max-width: 600px) {
  .container { padding: 0 20px; }
  .hero-content { padding: 130px 20px 110px; }
  .hero-title { font-size: 38px; }
  .section { padding: 80px 0; }
  .section.menu, .section.location, .section.instagram, .section.hours { padding-top: 80px; }
  .intro { padding-top: 80px; }
  .menu-grid { grid-template-columns: 1fr; gap: 20px; }
  .insta-grid { gap: 6px; margin: 40px 0 32px; }
  .footer-cols { grid-template-columns: 1fr; }
  .info-list li { grid-template-columns: 90px 1fr; gap: 14px; }
  .hours-table th, .hours-table td { padding: 14px 22px; font-size: 14.5px; }
  .hours-side { padding: 32px 26px; }
  .footer-bottom .container { flex-direction: column; align-items: flex-start; }
}
