/* =============================================================
   RESTAURANT / CAFE FRANCHISE TEMPLATE - style.css
   색상/폰트만 :root에서 수정하면 전체 톤이 바뀝니다
   ============================================================= */

:root {
  --primary: #0d0d0d;
  --accent: #c9943c;
  --accent-light: #d4a94e;
  --text-light: #f5f0e8;
  --text-dark: #0d0d0d;
  --text-muted: #999;
  --bg-dark: #0d0d0d;
  --bg-dark-light: #151515;
  --bg-dark-card: #1a1a1a;
  --bg-warm: #f5f0e8;
  --nav-height: 80px;
  --max-width: 1200px;
  --radius: 4px;
  --shadow: 0 4px 6px -1px rgba(0,0,0,0.3);
  --shadow-lg: 0 20px 40px rgba(0,0,0,0.25);
  --transition: all 0.3s ease;
  --font-serif: 'Noto Serif KR', Georgia, 'Times New Roman', serif;
  --font-sans: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ===== Reset ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-sans);
  color: var(--text-light); line-height: 1.6; overflow-x: hidden;
  background: var(--bg-dark);
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; height: auto; }

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

/* ===== Loading ===== */
.loading-screen {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--bg-dark);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.5s;
}
.loading-screen.hidden { opacity: 0; pointer-events: none; }
.loading-spinner {
  width: 40px; height: 40px;
  border: 2px solid rgba(201,148,60,0.15);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* =============================================================
   HEADER
   ============================================================= */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-height);
  display: flex; align-items: center;
  transition: background 0.4s, box-shadow 0.4s;
}
.header.scrolled {
  background: rgba(13,13,13,0.97);
  box-shadow: 0 1px 0 rgba(201,148,60,0.15);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
}

.logo {
  font-family: var(--font-serif);
  font-size: 1.5rem; font-weight: 700; color: var(--accent);
  letter-spacing: 2px; transition: color 0.3s;
}
.logo img { height: 36px; }

.nav { display: flex; align-items: center; gap: 36px; }
.nav a {
  font-size: 0.88rem; font-weight: 400; letter-spacing: 0.5px;
  color: rgba(245,240,232,0.6);
  transition: color 0.3s; position: relative;
}
.nav a::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 1px; background: var(--accent); transition: width 0.3s;
}
.nav a:hover { color: var(--accent); }
.nav a:hover::after { width: 100%; }

.btn-outline {
  padding: 10px 28px;
  border: 1px solid var(--accent);
  border-radius: 0;
  font-size: 0.82rem; font-weight: 400; letter-spacing: 1px;
  color: var(--accent);
  transition: var(--transition);
  background: transparent; text-transform: uppercase;
}
.btn-outline:hover { background: var(--accent); color: var(--primary); }
.btn-outline::after { display: none; }

.hamburger {
  display: none; flex-direction: column; gap: 5px; cursor: pointer;
  background: none; border: none; padding: 4px;
}
.hamburger span {
  width: 24px; height: 1.5px; background: var(--text-light);
  transition: var(--transition); display: block;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* =============================================================
   HERO
   ============================================================= */
.hero {
  position: relative; height: 100vh; overflow: hidden;
  background-size: cover; background-position: center;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    180deg,
    rgba(13,13,13,0.4) 0%,
    rgba(13,13,13,0.55) 50%,
    rgba(13,13,13,0.85) 100%
  );
  z-index: 1;
}
.hero-content-wrap {
  position: absolute; inset: 0;
  display: flex; align-items: center;
  z-index: 2;
}
.hero-content {
  max-width: 600px;
}
.hero-accent-line {
  width: 48px; height: 2px;
  background: var(--accent);
  margin-bottom: 32px;
}
.hero-content h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 700; color: var(--text-light);
  line-height: 1.35; margin-bottom: 24px; letter-spacing: -0.5px;
}
.hero-content p {
  font-size: clamp(0.92rem, 1.1vw, 1.05rem);
  color: rgba(245,240,232,0.5); letter-spacing: 0.5px;
}

.hero-scroll-indicator {
  position: absolute; bottom: 40px; left: 50%;
  transform: translateX(-50%); z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.scroll-line {
  display: block; width: 1px; height: 48px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
.scroll-text {
  font-size: 0.65rem; letter-spacing: 3px;
  color: rgba(245,240,232,0.35); text-transform: uppercase;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.2); }
}

/* =============================================================
   STATS BAR
   ============================================================= */
.stats-bar {
  background: var(--bg-dark-light);
  border-top: 1px solid rgba(201,148,60,0.15);
  border-bottom: 1px solid rgba(201,148,60,0.15);
  padding: 48px 0;
}
.stats-bar-inner {
  display: flex; justify-content: center; gap: 80px;
}
.stat-item { text-align: center; }
.stat-number {
  font-family: var(--font-serif);
  font-size: 2.6rem; font-weight: 700; color: var(--accent);
  line-height: 1; margin-bottom: 8px;
}
.stat-label {
  font-size: 0.78rem; color: rgba(245,240,232,0.35);
  letter-spacing: 2px; text-transform: uppercase;
}

/* =============================================================
   SECTION COMMON
   ============================================================= */
.section-dark { padding: 120px 0; background: var(--bg-dark); }
.section-story { padding: 120px 0; background: var(--bg-dark-light); }
.section-menu { padding: 120px 0; background: var(--bg-dark-light); }
.section-cta {
  padding: 120px 0;
  background: linear-gradient(135deg, var(--bg-dark) 0%, #1a1510 100%);
}

.section-label {
  display: inline-block;
  font-size: 0.72rem; font-weight: 400; letter-spacing: 4px; text-transform: uppercase;
  color: var(--accent); margin-bottom: 16px;
}
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  font-weight: 700; line-height: 1.35; letter-spacing: -0.5px;
  color: var(--text-light);
  margin-bottom: 20px;
}
.section-desc {
  font-size: 0.95rem; color: rgba(245,240,232,0.45);
  max-width: 540px; line-height: 1.8;
}
.section-header { margin-bottom: 64px; }
.section-header-center { text-align: center; margin-bottom: 64px; }
.section-header-center .section-desc { margin: 0 auto; }

/* =============================================================
   DIFFERENTIATION
   ============================================================= */
.diff-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
}
.diff-card {
  padding: 48px 36px;
  border: 1px solid rgba(201,148,60,0.12);
  background: var(--bg-dark-card);
  transition: border-color 0.4s, transform 0.3s;
  position: relative;
}
.diff-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}
.diff-number {
  font-family: var(--font-serif);
  font-size: 0.82rem; color: var(--accent);
  letter-spacing: 2px; display: block; margin-bottom: 24px;
}
.diff-icon {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px; font-size: 1.4rem; color: var(--accent);
  border: 1px solid rgba(201,148,60,0.25); border-radius: 50%;
}
.diff-card h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem; font-weight: 600; margin-bottom: 16px;
  color: var(--text-light); line-height: 1.5;
}
.diff-divider {
  width: 32px; height: 1px; background: var(--accent);
  margin-bottom: 16px; opacity: 0.5;
}
.diff-card p {
  font-size: 0.88rem; color: rgba(245,240,232,0.4); line-height: 1.75;
}

/* =============================================================
   BRAND STORY
   ============================================================= */
.story-layout {
  display: flex; align-items: center; gap: 80px;
}
.story-image {
  flex: 1; position: relative; overflow: hidden;
}
.story-image img {
  width: 100%; aspect-ratio: 4/5; object-fit: cover;
  filter: brightness(0.85);
  transition: transform 0.6s;
}
.story-image:hover img { transform: scale(1.03); }
.story-text { flex: 1; }
.story-divider {
  width: 48px; height: 1px; background: var(--accent);
  margin-bottom: 24px;
}
.story-features {
  margin-top: 32px; display: flex; flex-direction: column; gap: 14px;
}
.story-features li {
  display: flex; align-items: center; gap: 12px;
  font-size: 0.9rem; color: rgba(245,240,232,0.55);
}
.check-icon { color: var(--accent); font-size: 0.8rem; }

/* =============================================================
   POPULAR MENU
   ============================================================= */
.popular-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.popular-card {
  background: var(--bg-dark-card);
  border: 1px solid rgba(201,148,60,0.08);
  overflow: hidden;
  transition: border-color 0.4s, transform 0.3s;
}
.popular-card:hover {
  border-color: rgba(201,148,60,0.3);
  transform: translateY(-4px);
}
.popular-img-wrap {
  position: relative; aspect-ratio: 1/1; overflow: hidden;
}
.popular-img-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s;
}
.popular-card:hover .popular-img-wrap img { transform: scale(1.06); }
.popular-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(13,13,13,0.4) 0%, transparent 50%);
}
.popular-info {
  padding: 24px 20px;
}
.popular-info h3 {
  font-family: var(--font-serif);
  font-size: 1rem; font-weight: 600; margin-bottom: 8px;
  color: var(--text-light);
}
.popular-info p {
  font-size: 0.8rem; color: rgba(245,240,232,0.35);
  line-height: 1.6; margin-bottom: 14px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.popular-price {
  font-family: var(--font-serif);
  font-size: 1.05rem; font-weight: 600; color: var(--accent);
}

/* =============================================================
   FULL MENU
   ============================================================= */
.menu-tabs-wrap {
  display: flex; justify-content: center; margin-bottom: 48px;
}
.menu-tabs {
  display: flex; gap: 0;
  border: 1px solid rgba(201,148,60,0.2);
}
.menu-tab {
  padding: 14px 36px;
  background: transparent; border: none;
  color: rgba(245,240,232,0.45);
  font-family: var(--font-sans);
  font-size: 0.88rem; font-weight: 400; letter-spacing: 0.5px;
  cursor: pointer; transition: var(--transition);
  border-right: 1px solid rgba(201,148,60,0.2);
}
.menu-tab:last-child { border-right: none; }
.menu-tab:hover { color: var(--accent); }
.menu-tab.active {
  background: var(--accent); color: var(--primary); font-weight: 600;
}

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

.menu-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 0;
  border-bottom: 1px solid rgba(245,240,232,0.06);
}
.menu-item:first-child { border-top: 1px solid rgba(245,240,232,0.06); }
.menu-item-info {
  display: flex; align-items: center; gap: 16px; flex: 1;
}
.menu-item-info h4 {
  font-family: var(--font-serif);
  font-size: 1rem; font-weight: 400; color: var(--text-light);
  white-space: nowrap;
}
.menu-dots {
  flex: 1; height: 1px;
  border-bottom: 1px dotted rgba(245,240,232,0.12);
  min-width: 40px;
}
.menu-price {
  font-family: var(--font-serif);
  font-size: 1rem; font-weight: 600; color: var(--accent);
  white-space: nowrap; margin-left: 16px;
}

/* =============================================================
   CTA
   ============================================================= */
.cta-center { text-align: center; }
.section-cta .section-title { color: var(--text-light); margin-bottom: 16px; }
.section-cta .section-desc {
  color: rgba(245,240,232,0.4); margin: 0 auto 40px;
}
.btn-cta {
  display: inline-block; padding: 16px 52px;
  background: var(--accent); color: var(--primary);
  font-size: 0.9rem; font-weight: 600; letter-spacing: 1px;
  border: none; cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
}
.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(201,148,60,0.3);
  background: var(--accent-light);
}

/* =============================================================
   CTA 다중 버튼 (BASIC 표준 3장 — 외부 링크형)
   ============================================================= */
.cta-buttons {
  display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
  margin-top: 24px;
}
.btn-cta-outline {
  background: transparent !important;
  color: var(--accent) !important;
  border: 2px solid var(--accent);
}
.btn-cta-outline:hover {
  background: var(--accent) !important;
  color: var(--bg-dark) !important;
}

/* =============================================================
   GALLERY (BASIC 매장 사진 — 카드 그리드)
   ============================================================= */
.section-gallery {
  padding: 120px 0;
  background: var(--bg-dark-light, var(--bg-dark));
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 56px;
}
.gallery-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: 4px;
}
.gallery-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.gallery-card:hover img { transform: scale(1.06); }
.gallery-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 55%);
  display: flex; align-items: flex-end; padding: 20px;
  opacity: 0; transition: opacity 0.3s;
}
.gallery-card:hover .gallery-overlay { opacity: 1; }
.gallery-overlay h3 {
  color: #fff; font-size: 1rem; font-weight: 600;
}

/* =============================================================
   LOCATION
   ============================================================= */
.section-location {
  padding: 120px 0;
  background: var(--bg-dark-light);
}
.location-content {
  max-width: 700px; margin: 0 auto;
  text-align: center;
}
.location-address {
  display: flex; align-items: center; justify-content: center;
  gap: 12px; margin-bottom: 40px;
  padding: 24px;
  border: 1px solid rgba(201,148,60,0.15);
  background: var(--bg-dark-card);
}
.location-icon { font-size: 1.4rem; }
.location-address p {
  font-family: var(--font-serif);
  font-size: 1.05rem; color: var(--text-light);
}
.location-transport {
  display: flex; gap: 32px; justify-content: center;
}
.transport-item {
  display: flex; align-items: flex-start; gap: 14px;
  text-align: left; flex: 1; max-width: 320px;
  padding: 24px;
  border: 1px solid rgba(201,148,60,0.1);
  background: var(--bg-dark-card);
}
.transport-icon { font-size: 1.6rem; flex-shrink: 0; }
.transport-info strong {
  display: block; font-family: var(--font-serif);
  font-size: 0.95rem; color: var(--accent);
  margin-bottom: 6px;
}
.transport-info p {
  font-size: 0.85rem; color: rgba(245,240,232,0.45);
  line-height: 1.6;
}

/* =============================================================
   FOOTER
   ============================================================= */
.footer {
  background: #080808; color: rgba(245,240,232,0.3);
  padding: 64px 0 36px; font-size: 0.82rem;
}
.footer-top {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 48px; margin-bottom: 40px;
}
.footer-brand { flex: 0 0 auto; }
.footer-logo {
  font-family: var(--font-serif);
  font-size: 1.5rem; font-weight: 700; color: var(--accent);
  margin-bottom: 8px;
}
.footer-slogan {
  font-size: 0.82rem; color: rgba(245,240,232,0.3);
}
.footer-cols {
  display: flex; gap: 48px;
}
.footer-col h4 {
  color: var(--accent); font-size: 0.72rem; font-weight: 400;
  letter-spacing: 2px; text-transform: uppercase; margin-bottom: 14px;
}
.footer-col p, .footer-col a {
  line-height: 2; color: rgba(245,240,232,0.3);
}
.footer-col a:hover { color: var(--accent); }
.footer-sns a { margin-right: 10px; font-size: 1.1rem; }

.footer-divider {
  width: 100%; height: 1px;
  background: rgba(201,148,60,0.1);
  margin-bottom: 20px;
}
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.75rem;
}
.footer-bottom a { margin-left: 18px; color: rgba(245,240,232,0.3); }
.footer-bottom a:hover { color: var(--accent); }
.footer-copyright {
  text-align: center; margin-top: 16px; font-size: 0.72rem;
  color: rgba(245,240,232,0.15);
}

/* =============================================================
   TOP BUTTON
   ============================================================= */
.btn-top {
  position: fixed; bottom: 32px; right: 32px; z-index: 900;
  width: 44px; height: 44px;
  background: var(--accent); color: var(--primary);
  border: none; font-size: 1rem; cursor: pointer;
  opacity: 0; transform: translateY(10px);
  transition: opacity 0.3s, transform 0.3s, background 0.3s;
  box-shadow: 0 4px 16px rgba(201,148,60,0.25);
}
.btn-top.visible { opacity: 1; transform: translateY(0); }
.btn-top:hover { background: var(--accent-light); }

/* =============================================================
   SCROLL REVEAL
   ============================================================= */
.reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* =============================================================
   RESPONSIVE
   ============================================================= */
@media (max-width: 1024px) {
  .diff-grid { grid-template-columns: repeat(2, 1fr); }
  .popular-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .story-layout { flex-direction: column; gap: 48px; }
  .stats-bar-inner { gap: 48px; }
}

@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .section-dark, .section-story, .section-menu, .section-cta { padding: 80px 0; }

  /* Nav mobile */
  .nav {
    display: none; flex-direction: column;
    position: fixed; top: var(--nav-height); left: 0; right: 0; bottom: 0;
    background: rgba(13,13,13,0.98); padding: 36px 24px; gap: 20px;
    z-index: 999;
  }
  .nav.open { display: flex; }
  .nav.open a { color: var(--text-light); font-size: 1.15rem; }
  .nav.open a::after { display: none; }
  .nav.open .btn-outline { text-align: center; }
  .hamburger { display: flex; }

  .hero-content h1 { font-size: 2rem; }
  .hero-content p { font-size: 0.88rem; }

  .stats-bar { padding: 32px 0; }
  .stats-bar-inner {
    flex-direction: column; gap: 24px; align-items: center;
  }
  .stat-number { font-size: 2rem; }

  .diff-grid { grid-template-columns: 1fr; }
  .diff-card { padding: 36px 28px; }

  .story-layout { flex-direction: column; gap: 40px; }
  .story-image img { aspect-ratio: 16/9; }

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

  .cta-buttons { flex-direction: column; align-items: stretch; max-width: 320px; margin: 24px auto 0; }

  .footer-top { flex-direction: column; gap: 28px; }
  .footer-cols { flex-direction: column; gap: 24px; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
  .footer-bottom span { font-size: 0.68rem; line-height: 1.6; }
}

@media (max-width: 480px) {
  .section-title { font-size: 1.5rem; }
  .hero-content h1 { font-size: 1.7rem; }
  .hero-accent-line { width: 36px; margin-bottom: 24px; }
  .btn-cta { padding: 14px 36px; font-size: 0.85rem; }
  .menu-tab { padding: 10px 16px; font-size: 0.78rem; }
}
