/* ============================================
   Sunny Seoul Korean Kitchen — Main Stylesheet

   TABLE OF CONTENTS:
   1. Variables & Design Tokens
   2. Reset & Base
   3. Animations
   4. Navigation
   5. Mobile Drawer
   6. Hero Section
   7. Hanok Roof Divider
   8. Wind Chime (Punggyeong)
   9. Ticker / Marquee
   10. Section: Story
   11. Section: Menu
   12. Section: Catering
   13. Section: Visit
   14. Footer
   15. Utility Classes
   16. Responsive
   ============================================ */


/* === 1. Variables & Design Tokens === */

:root {
  /* Palette — Persimmon & Sun, hanbok-inspired */
  --bg:        #f5ecd9;
  --s1:        #eedfc6;
  --s2:        #e8d5b0;
  --ink:       #2a1d12;
  --accent:    #c34a2c;
  --accent2:   #f8d14c;
  --pink:      #ffaead;
  --muted:     #8a7c66;
  --rule:      rgba(42, 29, 18, 0.15);

  /* Typography */
  --display:   'Gowun Batang', 'Noto Serif KR', serif;
  --body:      'DM Sans', system-ui, sans-serif;
  --mono:      'JetBrains Mono', ui-monospace, monospace;

  /* Spacing */
  --px:        clamp(24px, 6vw, 96px);
  --section:   clamp(64px, 8vw, 112px);
}


/* === 2. Reset & Base === */

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a { -webkit-tap-highlight-color: transparent; }

::selection { background: var(--accent2); color: var(--ink); }

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
}

p { margin: 0; }


/* === 3. Animations === */

@keyframes tickerScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-33.333%); }
}

@keyframes chimeSway {
  from { transform: rotate(-5deg); }
  to   { transform: rotate(5deg); }
}

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

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


/* === 4. Navigation === */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px var(--px);
  transition: background 0.35s, box-shadow 0.35s;
}

.nav.scrolled {
  background: rgba(245, 236, 217, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--rule);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}

.nav-logo-dot {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--accent2);
  border: 1px solid var(--ink);
  flex-shrink: 0;
}

.nav-logo-name {
  font-family: var(--display);
  font-size: 18px;
  letter-spacing: -0.01em;
  line-height: 1.1;
  display: block;
}

.nav-logo-sub {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 3px;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  font-family: var(--body);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  position: relative;
  padding: 4px 0;
  white-space: nowrap;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--accent2);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.nav-link:hover::after,
.nav-link.active::after { transform: scaleX(1); }

.nav-cta {
  font-family: var(--body);
  font-size: 13px;
  font-weight: 600;
  color: var(--bg);
  background: var(--ink);
  padding: 10px 18px;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s;
}

.nav-cta:hover { background: var(--accent); }

.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  margin-right: -10px;
}

.nav-burger span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--ink);
  transition: transform 0.3s, opacity 0.3s;
}


/* === 5. Mobile Drawer === */

.drawer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(42, 29, 18, 0.4);
  z-index: 200;
  opacity: 0;
  transition: opacity 0.3s;
}

.drawer-overlay.open { opacity: 1; }

.drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(320px, 85vw);
  background: var(--bg);
  z-index: 201;
  display: flex;
  flex-direction: column;
  padding: 24px 28px 40px;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
}

.drawer.open { transform: translateX(0); }

.drawer-close {
  align-self: flex-end;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-right: -8px;
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
}

.drawer-links {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
}

.drawer-link {
  font-family: var(--display);
  font-size: 28px;
  color: var(--ink);
  text-decoration: none;
  padding: 14px 0;
  border-bottom: 0.5px solid var(--rule);
  letter-spacing: -0.01em;
}

.drawer-cta {
  display: block;
  font-family: var(--body);
  font-size: 14px;
  font-weight: 600;
  color: var(--bg);
  background: var(--ink);
  padding: 14px 20px;
  border-radius: 999px;
  text-decoration: none;
  text-align: center;
  margin-top: 36px;
}

.drawer-meta {
  margin-top: 40px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 2.2;
}


/* === 6. Hero Section === */

.hero {
  position: relative;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 80px;
  align-items: start;
  padding: 0 var(--px);
  padding-top: calc(72px + 60px);
  padding-bottom: 60px;
}

.hero-left { padding-top: 40px; }

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 34px;
}

.hero-eyebrow-rule {
  width: 38px; height: 1px;
  background: var(--ink);
  flex-shrink: 0;
}

.hero-eyebrow-text {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.hero-h1 {
  font-family: var(--display);
  font-size: clamp(44px, 6.5vw, 88px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 400;
  animation: fadeUp 0.8s ease both;
}

.hero-h1 .highlight {
  background-image: linear-gradient(transparent 64%, var(--accent2) 64%, var(--accent2) 94%, transparent 94%);
  background-repeat: no-repeat;
  padding: 0 0.04em;
}

.hero-h1 .period { color: var(--accent); }

.hero-p {
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--muted);
  max-width: 460px;
  margin-top: 32px;
  animation: fadeUp 0.8s 0.15s ease both;
}

.hero-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 40px;
  flex-wrap: wrap;
  animation: fadeUp 0.8s 0.25s ease both;
}

.btn-primary {
  font-family: var(--body);
  font-size: 14px;
  font-weight: 600;
  color: var(--bg);
  background: var(--ink);
  padding: 13px 22px;
  border-radius: 999px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s;
}

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

.btn-secondary {
  font-family: var(--body);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  background: transparent;
  padding: 13px 22px;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid rgba(42, 29, 18, 0.25);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: border-color 0.2s;
}

.btn-secondary:hover { border-color: var(--ink); }

.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 0.5px solid var(--rule);
  margin-top: 80px;
  padding-top: 22px;
  animation: fadeUp 0.8s 0.35s ease both;
}

.hero-meta-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.hero-meta-value {
  font-family: var(--display);
  font-size: 20px;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

.hero-meta-sub {
  font-family: var(--body);
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}

.hero-right {
  position: relative;
  animation: fadeIn 1s 0.1s ease both;
}

.hero-img-frame {
  position: relative;
  z-index: 1;
}

.hero-img-frame img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  display: block;
}

.hero-img-border {
  position: absolute;
  top: -28px; right: -32px; bottom: 64px; left: 60px;
  border: 1.5px solid var(--pink);
  z-index: 0;
  pointer-events: none;
}


/* === 7. Hanok Roof Divider === */

.hanok-wrap {
  position: relative;
  width: 100%;
  overflow: visible;
  line-height: 0;
  margin-top: 45px;
}

.hanok-wrap svg { display: block; width: 100%; }


/* === 8. Wind Chime === */

.chime {
  display: inline-block;
  transform-origin: 50% 0;
  will-change: transform;
  animation: chimeSway 4.0s ease-in-out 0.2s infinite alternate;
}

.chime-wrap {
  position: absolute;
  top: 53px; /* aligns cord top to the visual bottom of the scallop arcs */
  right: 7%;
  z-index: 10;
  pointer-events: none;
}


/* === 9. Ticker === */

.ticker {
  border-top: 0.5px solid var(--rule);
  border-bottom: 0.5px solid var(--rule);
  background: var(--bg);
  overflow: hidden;
  padding: 12px 0;
}

.ticker-track {
  display: flex;
  gap: 48px;
  white-space: nowrap;
  width: max-content;
  animation: tickerScroll 42s linear infinite;
}

.ticker-item {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--ink);
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 22px;
}

.ticker-dot {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}


/* === 10. Section: Story === */

.section-story {
  padding: var(--section) var(--px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.story-imgs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.story-img-main { grid-column: 1 / -1; }
.story-img-main img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.story-img-a img,
.story-img-b img { width: 100%; aspect-ratio: 3/4; object-fit: cover; background: var(--s2); }

.section-eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}

.section-eyebrow-rule {
  width: 28px; height: 1px;
  background: var(--ink);
  flex-shrink: 0;
}

.section-eyebrow-text {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.section-h2 {
  font-family: var(--display);
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 400;
}

.section-h2 em { font-style: italic; color: var(--accent); }

.section-body {
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
  margin-top: 24px;
}

.story-actions {
  margin-top: 36px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.stamp-wrap {
  margin-top: 32px;
}


/* === 11. Section: Menu === */

.section-menu {
  padding: var(--section) var(--px);
  background: var(--s1);
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.menu-tabs {
  display: flex;
  gap: 4px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 4px;
  background: var(--bg);
}

.menu-tab {
  font-family: var(--body);
  font-size: 12.5px;
  font-weight: 500;
  padding: 7px 16px;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  min-height: 44px;
}

.menu-tab.active {
  background: var(--ink);
  color: var(--bg);
}

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

.menu-panel { display: none; }
.menu-panel.active { display: block; }

.menu-card { cursor: default; transition: transform 0.25s; }
.menu-card:hover { transform: translateY(-4px); }

.menu-card-img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  display: block;
  background: var(--s2);
}

.menu-card-body { padding: 14px 0 0; }

.menu-card-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}

.menu-card-name {
  font-family: var(--display);
  font-size: 18px;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.menu-card-price {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  white-space: nowrap;
  flex-shrink: 0;
}

.menu-card-desc {
  font-family: var(--body);
  font-size: 13px;
  color: var(--muted);
  margin-top: 5px;
  line-height: 1.5;
}

.blossom-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: var(--section) var(--px);
}

.blossom-divider-rule {
  flex: 1;
  max-width: 180px;
  height: 1px;
  background: var(--ink);
  opacity: 0.18;
}


/* === 12. Section: Catering === */

.section-catering {
  padding: var(--section) var(--px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.catering-img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  display: block;
  background: var(--s2);
}

.catering-perks {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
}

.catering-perk {
  display: flex;
  gap: 16px;
  padding: 20px 0;
  border-top: 0.5px solid var(--rule);
}

.catering-perk:first-child { border-top: none; padding-top: 0; }

.catering-perk-num {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--accent);
  padding-top: 3px;
  flex-shrink: 0;
}

.catering-perk-title {
  font-family: var(--display);
  font-size: 18px;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.catering-perk-desc {
  font-family: var(--body);
  font-size: 13.5px;
  color: var(--muted);
  margin-top: 4px;
  line-height: 1.55;
}


/* === 13. Section: Visit === */

.section-visit {
  padding: var(--section) var(--px);
  background: var(--ink);
  color: var(--bg);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.section-visit .section-eyebrow-text { color: rgba(245,236,217,0.5); }
.section-visit .section-eyebrow-rule { background: rgba(245,236,217,0.3); }
.section-visit .section-h2 { color: var(--bg); }
.section-visit .section-h2 em { color: var(--accent2); }
.section-visit .section-body { color: rgba(245,236,217,0.6); }

.visit-details {
  display: flex;
  flex-direction: column;
}

.visit-detail {
  padding: 22px 0;
  border-top: 0.5px solid rgba(245,236,217,0.12);
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 16px;
  align-items: start;
}

.visit-detail:last-child { border-bottom: 0.5px solid rgba(245,236,217,0.12); }

.visit-detail-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(245,236,217,0.4);
  padding-top: 3px;
}

.visit-detail-value {
  font-family: var(--display);
  font-size: 20px;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.visit-detail-value a {
  color: var(--bg);
  text-decoration: none;
  border-bottom: 1px solid rgba(245,236,217,0.3);
  transition: border-color 0.2s;
}

.visit-detail-value a:hover { border-color: var(--accent2); }

.visit-detail-sub {
  font-family: var(--body);
  font-size: 13px;
  color: rgba(245,236,217,0.45);
  margin-top: 5px;
}

.visit-actions {
  margin-top: 40px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.visit-actions .btn-primary { background: var(--bg); color: var(--ink); }
.visit-actions .btn-primary:hover { background: var(--accent2); }
.visit-actions .btn-secondary { color: var(--bg); border-color: rgba(245,236,217,0.3); }
.visit-actions .btn-secondary:hover { border-color: rgba(245,236,217,0.7); }


/* === 14. Footer === */

.footer {
  background: var(--ink);
  color: var(--bg);
  border-top: 0.5px solid rgba(245,236,217,0.1);
  padding: 56px var(--px) 40px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
}

.footer-brand-name {
  font-family: var(--display);
  font-size: 22px;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}

.footer-brand-desc {
  font-family: var(--body);
  font-size: 14px;
  color: rgba(245,236,217,0.5);
  line-height: 1.65;
  max-width: 300px;
}

.footer-col-title {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(245,236,217,0.35);
  margin-bottom: 18px;
}

.footer-links {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-family: var(--body);
  font-size: 14px;
  color: rgba(245,236,217,0.7);
  text-decoration: none;
  transition: color 0.2s;
}

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

.footer-hour-row {
  font-family: var(--body);
  font-size: 13px;
  color: rgba(245,236,217,0.65);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 6px 0;
  border-bottom: 0.5px solid rgba(245,236,217,0.07);
}

.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 0.5px solid rgba(245,236,217,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-copy {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(245,236,217,0.3);
}

.footer-tagline {
  font-family: var(--display);
  font-size: 13px;
  font-style: italic;
  color: rgba(245,236,217,0.3);
}


/* === 15. Utility === */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

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


/* === 16. Responsive === */

@media (max-width: 1024px) {
  .menu-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .nav-links,
  .nav-cta { display: none; }

  .nav-burger { display: flex; }

  .drawer-overlay { display: block; }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-top: calc(68px + 36px);
  }

  .hero-right { order: -1; }
  .hero-img-border { display: none; }
  .hero-img-frame img { aspect-ratio: 16/10; }

  .hero-meta {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 48px;
  }

  .section-story,
  .section-catering,
  .section-visit { grid-template-columns: 1fr; gap: 48px; }

  .catering-img { aspect-ratio: 16/10; }

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

  .section-header { flex-direction: column; align-items: flex-start; }

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

  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .menu-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .hero-h1 { font-size: clamp(36px, 10vw, 60px); }
  .menu-tab { padding: 7px 12px; font-size: 11.5px; }
}
