/* ============================================================
   style.css – 세계맥주 홈페이지
   ============================================================ */

/* ── Reset & Variables ───────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --gold:       #F5A623;
  --gold-dark:  #C27C0E;
  --gold-light: #FFD580;
  --dark:       #0D0D0D;
  --dark2:      #181818;
  --dark3:      #222222;
  --dark4:      #2C2C2C;
  --white:      #F9F6F0;
  --gray:       #888888;
  --gray-light: #CCCCCC;
  --red:        #C0392B;
  --radius:     12px;
  --shadow:     0 8px 32px rgba(0,0,0,0.5);
  --transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  --font-main:  'Noto Sans KR', 'Apple SD Gothic Neo', sans-serif;
  --font-en:    'Playfair Display', Georgia, serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-main);
  background: var(--dark);
  color: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a   { color: var(--gold); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--gold-light); }

/* ── Utility ─────────────────────────────────────────────── */
.container       { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section-title   { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; text-align: center; margin-bottom: 12px; }
.section-title span { color: var(--gold); }
.section-sub     { text-align: center; color: var(--gray); margin-bottom: 56px; font-size: 1rem; }
.gold-line       { display: block; width: 60px; height: 4px; background: var(--gold); border-radius: 2px; margin: 16px auto 0; }
.btn             { display: inline-flex; align-items: center; gap: 8px; padding: 14px 32px; border-radius: 50px; font-size: 1rem; font-weight: 700; cursor: pointer; border: none; transition: var(--transition); }
.btn-primary     { background: var(--gold); color: var(--dark); }
.btn-primary:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(245,166,35,0.4); }
.btn-outline     { background: transparent; color: var(--gold); border: 2px solid var(--gold); }
.btn-outline:hover { background: var(--gold); color: var(--dark); }
.tag             { display: inline-block; padding: 4px 12px; border-radius: 50px; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.5px; }
.tag-style       { background: rgba(245,166,35,0.15); color: var(--gold); border: 1px solid rgba(245,166,35,0.3); }
.tag-country     { background: rgba(255,255,255,0.08); color: var(--gray-light); border: 1px solid rgba(255,255,255,0.12); }

/* ── Navigation ──────────────────────────────────────────── */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(13,13,13,0.0);
  backdrop-filter: blur(0px);
  border-bottom: 1px solid transparent;
  transition: var(--transition);
  height: 72px; display: flex; align-items: center;
}
#navbar.scrolled {
  background: rgba(13,13,13,0.95);
  backdrop-filter: blur(20px);
  border-bottom-color: rgba(245,166,35,0.2);
}
.nav-inner    { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.nav-logo     { font-family: var(--font-en); font-size: 1.6rem; font-weight: 700; color: var(--gold); display: flex; align-items: center; gap: 10px; }
.nav-logo img { width: 36px; height: 36px; border-radius: 50%; }
.nav-links    { display: flex; gap: 32px; list-style: none; margin-left: auto; padding-left: 48px; }
.nav-links a  { color: var(--white); font-size: 0.95rem; font-weight: 500; position: relative; padding-bottom: 4px; }
.nav-links a::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background: var(--gold); transition: var(--transition); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a:hover { color: var(--gold); }
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;          /* 항상 우측으로 */
  background: transparent;
  border: none;
  border-radius: 6px;
  z-index: 1100;
  flex-shrink: 0;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: var(--transition);
  border-radius: 2px;
  transform-origin: center;
}
/* 햄버거 활성화 시 X 모양 */
.nav-hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Hero ────────────────────────────────────────────────── */
#hero {
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.85) 100%),
    url('https://images.unsplash.com/photo-1608270586620-248524c67de9?w=1600&q=80') center/cover no-repeat;
  display: flex; align-items: center; justify-content: center; text-align: center;
  padding: 120px 24px 80px;
  position: relative;
}
.hero-badge   { display: inline-flex; align-items: center; gap: 8px; background: rgba(245,166,35,0.15); border: 1px solid rgba(245,166,35,0.4); color: var(--gold); padding: 8px 20px; border-radius: 50px; font-size: 0.85rem; font-weight: 600; letter-spacing: 1px; margin-bottom: 28px; animation: fadeInDown 0.8s ease; }
.hero-title   { font-family: var(--font-en); font-size: clamp(3rem, 8vw, 6rem); font-weight: 900; line-height: 1.1; margin-bottom: 24px; animation: fadeInUp 0.9s ease 0.1s both; }
.hero-title em { font-style: normal; color: var(--gold); display: block; }
.hero-sub     { font-size: clamp(1rem, 2.5vw, 1.25rem); color: rgba(255,255,255,0.75); max-width: 560px; margin: 0 auto 40px; animation: fadeInUp 1s ease 0.2s both; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; animation: fadeInUp 1.1s ease 0.3s both; }
.hero-scroll  { position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--gray); font-size: 0.8rem; letter-spacing: 1px; animation: bounce 2s infinite; }
.hero-scroll i { font-size: 1.2rem; }

/* ── Stats Bar ───────────────────────────────────────────── */
#stats {
  background: var(--dark2);
  border-top: 1px solid rgba(245,166,35,0.15);
  border-bottom: 1px solid rgba(245,166,35,0.15);
  padding: 48px 0;
}
.stats-grid   { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; text-align: center; }
.stat-item    { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.stat-number  { font-family: var(--font-en); font-size: clamp(2.4rem, 4vw, 3.5rem); font-weight: 900; color: var(--gold); line-height: 1; }
.stat-label   { color: var(--gray); font-size: 0.9rem; letter-spacing: 0.5px; }
.stat-icon    { font-size: 2rem; margin-bottom: 4px; }

/* ── Features ────────────────────────────────────────────── */
#features     { padding: 100px 0; background: var(--dark); }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.feature-card {
  background: var(--dark2);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  padding: 40px 32px;
  text-align: center;
  transition: var(--transition);
  position: relative; overflow: hidden;
}
.feature-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  transform: scaleX(0); transition: var(--transition);
}
.feature-card:hover::before { transform: scaleX(1); }
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: rgba(245,166,35,0.2); }
.feature-icon { font-size: 3rem; margin-bottom: 20px; }
.feature-card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 12px; }
.feature-card p  { color: var(--gray); font-size: 0.95rem; line-height: 1.7; }

/* ── Johnny Cat Section ──────────────────────────────────── */
#johnny {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--dark2) 0%, var(--dark3) 100%);
}
.johnny-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
}
.johnny-img-wrap {
  position: relative;
}
.johnny-img-wrap::before {
  content: ''; position: absolute; inset: -12px;
  border: 2px solid rgba(245,166,35,0.25);
  border-radius: calc(var(--radius) + 12px);
  animation: pulse-border 3s ease infinite;
}
.johnny-img {
  width: 100%; aspect-ratio: 1/1; object-fit: cover;
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.johnny-placeholder {
  width: 100%; aspect-ratio: 1/1;
  background: var(--dark4);
  border-radius: var(--radius);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  border: 2px dashed rgba(245,166,35,0.3);
  color: var(--gray);
}
.johnny-placeholder .ph-icon { font-size: 5rem; }
.johnny-placeholder p  { font-size: 0.9rem; text-align: center; line-height: 1.6; }
.johnny-text .eyebrow { color: var(--gold); font-size: 0.85rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 16px; }
.johnny-text h2 { font-size: clamp(2rem, 3.5vw, 2.8rem); font-weight: 800; margin-bottom: 20px; line-height: 1.2; }
.johnny-text h2 span { color: var(--gold); }
.johnny-text p  { color: var(--gray-light); line-height: 1.9; margin-bottom: 16px; }
.johnny-paw     { display: inline-block; font-size: 2rem; animation: sway 2s ease-in-out infinite; }

/* ── Beer Menu ───────────────────────────────────────────── */
#beers        { padding: 100px 0; background: var(--dark); }
.beer-controls { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; margin-bottom: 40px; }
.beer-search  { flex: 1; min-width: 240px; max-width: 360px; position: relative; }
.beer-search input {
  width: 100%; padding: 12px 20px 12px 44px;
  background: var(--dark2); border: 1px solid rgba(255,255,255,0.12);
  border-radius: 50px; color: var(--white); font-size: 0.95rem; outline: none;
  transition: var(--transition);
}
.beer-search input:focus { border-color: var(--gold); }
.beer-search .search-icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--gray); font-size: 1rem; }
.filter-select {
  padding: 12px 20px; background: var(--dark2); border: 1px solid rgba(255,255,255,0.12);
  border-radius: 50px; color: var(--white); font-size: 0.95rem; outline: none; cursor: pointer;
  transition: var(--transition);
}
.filter-select:focus { border-color: var(--gold); }
.filter-select option { background: var(--dark2); }
.beer-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px; min-height: 300px;
}
.beer-card {
  background: var(--dark2);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  overflow: hidden; transition: var(--transition);
  cursor: pointer; display: flex; flex-direction: column;
}
.beer-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: rgba(245,166,35,0.25); }
.beer-card-img {
  width: 100%; height: 200px; object-fit: cover; background: var(--dark4);
  display: flex; align-items: center; justify-content: center;
  font-size: 4rem; color: var(--gray);
}
.beer-card-img img { width: 100%; height: 100%; object-fit: cover; }
.beer-card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; gap: 10px; }
.beer-card-name { font-size: 1.05rem; font-weight: 700; }
.beer-card-name .en { color: var(--gray); font-size: 0.85rem; font-weight: 400; margin-top: 2px; }
.beer-card-meta { display: flex; gap: 8px; flex-wrap: wrap; }
.beer-card-desc { color: var(--gray); font-size: 0.88rem; line-height: 1.6; flex: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.beer-card-footer { display: flex; align-items: center; justify-content: space-between; padding-top: 12px; border-top: 1px solid rgba(255,255,255,0.07); margin-top: auto; }
.beer-abv   { font-size: 0.85rem; color: var(--gold); font-weight: 600; }
.beer-price { font-size: 1rem; font-weight: 700; color: var(--white); }
.beer-loading, .beer-empty { grid-column: 1/-1; text-align: center; padding: 60px; color: var(--gray); }
.beer-loading i { font-size: 2rem; animation: spin 1s linear infinite; display: block; margin-bottom: 12px; color: var(--gold); }
.beer-pagination { display: flex; justify-content: center; gap: 8px; margin-top: 48px; flex-wrap: wrap; }
.page-btn {
  width: 40px; height: 40px; border-radius: 50%; background: var(--dark2); border: 1px solid rgba(255,255,255,0.12);
  color: var(--white); cursor: pointer; font-size: 0.9rem; transition: var(--transition);
  display: flex; align-items: center; justify-content: center;
}
.page-btn:hover, .page-btn.active { background: var(--gold); color: var(--dark); border-color: var(--gold); }
.page-btn:disabled { opacity: 0.3; cursor: not-allowed; }

/* ── Beer Detail Modal ───────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.85);
  z-index: 2000; display: none; align-items: center; justify-content: center;
  padding: 24px; backdrop-filter: blur(8px);
}
.modal-overlay.open { display: flex; animation: fadeIn 0.25s ease; }
.modal-box {
  background: var(--dark2); border: 1px solid rgba(245,166,35,0.2);
  border-radius: 20px; max-width: 640px; width: 100%;
  overflow: hidden; box-shadow: 0 24px 80px rgba(0,0,0,0.8);
  animation: slideUp 0.3s ease;
}
.modal-img { width: 100%; height: 260px; object-fit: cover; background: var(--dark4); display: flex; align-items: center; justify-content: center; font-size: 6rem; }
.modal-img img { width: 100%; height: 100%; object-fit: cover; }
.modal-content { padding: 32px; }
.modal-close { position: absolute; top: 16px; right: 16px; background: rgba(0,0,0,0.5); border: none; color: var(--white); width: 36px; height: 36px; border-radius: 50%; cursor: pointer; font-size: 1.1rem; display: flex; align-items: center; justify-content: center; transition: var(--transition); }
.modal-close:hover { background: var(--red); }
.modal-box { position: relative; }
.modal-name { font-size: 1.5rem; font-weight: 800; margin-bottom: 4px; }
.modal-name-en { color: var(--gray); font-size: 0.95rem; margin-bottom: 16px; }
.modal-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.modal-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 20px; }
.modal-stat { background: var(--dark3); padding: 12px; border-radius: 8px; text-align: center; }
.modal-stat .val { font-size: 1.2rem; font-weight: 700; color: var(--gold); }
.modal-stat .lbl { font-size: 0.75rem; color: var(--gray); margin-top: 2px; }
.modal-desc { color: var(--gray-light); line-height: 1.8; font-size: 0.95rem; margin-bottom: 20px; }
.modal-price-row { display: flex; align-items: center; justify-content: space-between; }
.modal-price { font-size: 1.4rem; font-weight: 800; color: var(--gold); }

/* ── Random Recommendation ───────────────────────────────── */
#recommend    { padding: 100px 0; background: linear-gradient(135deg, var(--dark3) 0%, var(--dark2) 100%); }
.recommend-wrap { max-width: 720px; margin: 0 auto; text-align: center; }
.reco-card {
  background: var(--dark);
  border: 1px solid rgba(245,166,35,0.2);
  border-radius: 20px; padding: 48px; margin: 40px 0;
  min-height: 280px; display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden; transition: var(--transition);
}
.reco-card::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(245,166,35,0.1), transparent 60%);
}
.reco-placeholder { color: var(--gray); }
.reco-placeholder .big-icon { font-size: 5rem; margin-bottom: 16px; display: block; }
.reco-placeholder p { font-size: 1rem; }
.reco-result { width: 100%; position: relative; }
.reco-img-wrap { width: 140px; height: 140px; border-radius: 50%; overflow: hidden; background: var(--dark4); margin: 0 auto 24px; border: 3px solid var(--gold); display: flex; align-items: center; justify-content: center; font-size: 4rem; }
.reco-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.reco-name   { font-size: 1.6rem; font-weight: 800; margin-bottom: 4px; }
.reco-name-en { color: var(--gray); font-size: 1rem; margin-bottom: 16px; }
.reco-tags   { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.reco-desc   { color: var(--gray-light); line-height: 1.8; font-size: 0.95rem; max-width: 480px; margin: 0 auto 24px; }
.reco-abv    { font-size: 0.9rem; color: var(--gold); font-weight: 600; }
.reco-loading { position: absolute; inset: 0; background: var(--dark); display: none; align-items: center; justify-content: center; border-radius: 20px; }
.reco-loading.show { display: flex; }
.reco-loading .spin { font-size: 3rem; color: var(--gold); animation: spin 1s linear infinite; }
.reco-btn-wrap { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ── Kakao Map ───────────────────────────────────────────── */
#location     { padding: 100px 0; background: var(--dark); }
.location-inner { display: grid; grid-template-columns: 1fr 1.5fr; gap: 60px; align-items: start; }
.location-info { }
.location-info h3 { font-size: 1.5rem; font-weight: 800; margin-bottom: 24px; }
.loc-item     { display: flex; gap: 16px; margin-bottom: 20px; align-items: flex-start; }
.loc-icon     { width: 44px; height: 44px; background: rgba(245,166,35,0.12); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; }
.loc-text strong { display: block; font-size: 0.85rem; color: var(--gray); margin-bottom: 2px; }
.loc-text span   { font-size: 0.95rem; }
.map-container {
  width: 100%; height: 420px; border-radius: var(--radius);
  overflow: hidden; border: 1px solid rgba(245,166,35,0.2);
  box-shadow: var(--shadow); position: relative;
}
#kakaoMap     { width: 100%; height: 100%; }
.map-link     { display: flex; align-items: center; gap: 8px; margin-top: 20px; font-size: 0.95rem; color: var(--gold); }

/* ── Instagram ───────────────────────────────────────────── */
#instagram    { padding: 100px 0; background: var(--dark2); }
.insta-header { display: flex; align-items: center; justify-content: center; gap: 16px; margin-bottom: 16px; }
.insta-handle { font-size: 1.1rem; color: var(--gold); font-weight: 600; }
.insta-grid   { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 900px; margin: 0 auto; }
.insta-post   {
  aspect-ratio: 1/1; border-radius: var(--radius); overflow: hidden;
  background: var(--dark3); position: relative; cursor: pointer;
  border: 1px solid rgba(255,255,255,0.06); transition: var(--transition);
}
.insta-post:hover { transform: scale(1.03); border-color: rgba(245,166,35,0.3); }
.insta-post img   { width: 100%; height: 100%; object-fit: cover; }
.insta-overlay {
  position: absolute; inset: 0; background: rgba(0,0,0,0.55);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: var(--transition); flex-direction: column; gap: 8px;
}
.insta-post:hover .insta-overlay { opacity: 1; }
.insta-overlay span { font-size: 0.85rem; color: var(--white); max-width: 80%; text-align: center; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.insta-placeholder {
  aspect-ratio: 1/1; border-radius: var(--radius);
  background: var(--dark3); border: 2px dashed rgba(245,166,35,0.2);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; color: var(--gray); padding: 20px; text-align: center;
}
.insta-placeholder .ph-icon { font-size: 2.5rem; }
.insta-placeholder p { font-size: 0.82rem; line-height: 1.5; }
.insta-notice {
  max-width: 600px; margin: 32px auto 0;
  background: rgba(245,166,35,0.08); border: 1px solid rgba(245,166,35,0.2);
  border-radius: 12px; padding: 20px 24px; font-size: 0.88rem; color: var(--gray-light); line-height: 1.7;
}
.insta-notice strong { color: var(--gold); }
.insta-follow-btn {
  display: flex; align-items: center; gap: 8px; margin: 32px auto 0;
  background: linear-gradient(135deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888);
  color: #fff; padding: 14px 36px; border-radius: 50px; font-weight: 700; font-size: 1rem;
  width: fit-content; transition: var(--transition);
}
.insta-follow-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(220,39,67,0.4); color: #fff; }

/* ── Footer ──────────────────────────────────────────────── */
footer {
  background: var(--dark2);
  border-top: 1px solid rgba(245,166,35,0.15);
  padding: 60px 0 32px;
}
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 60px; margin-bottom: 48px; }
.footer-brand .logo { font-family: var(--font-en); font-size: 1.8rem; font-weight: 700; color: var(--gold); margin-bottom: 12px; }
.footer-brand p { color: var(--gray); font-size: 0.9rem; line-height: 1.8; max-width: 300px; }
.footer-col h4 { font-size: 1rem; font-weight: 700; margin-bottom: 16px; color: var(--gold); }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a { color: var(--gray); font-size: 0.9rem; transition: var(--transition); }
.footer-col ul li a:hover { color: var(--gold); padding-left: 4px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.06); padding-top: 28px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer-bottom p { color: var(--gray); font-size: 0.85rem; }
.footer-sns { display: flex; gap: 12px; }
.sns-btn { width: 36px; height: 36px; background: var(--dark3); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--gray); font-size: 1rem; transition: var(--transition); }
.sns-btn:hover { background: var(--gold); color: var(--dark); transform: translateY(-2px); }
.scroll-top { position: fixed; bottom: 32px; right: 32px; width: 48px; height: 48px; background: var(--gold); color: var(--dark); border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 4px 16px rgba(245,166,35,0.4); transition: var(--transition); opacity: 0; pointer-events: none; font-size: 1.1rem; z-index: 900; }
.scroll-top.show { opacity: 1; pointer-events: all; }
.scroll-top:hover { transform: translateY(-4px); }

/* ── Animations ──────────────────────────────────────────── */
@keyframes fadeIn       { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeInDown   { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInUp     { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideUp      { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }
@keyframes spin         { to { transform: rotate(360deg); } }
@keyframes bounce       { 0%,100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(8px); } }
@keyframes sway         { 0%,100% { transform: rotate(-10deg); } 50% { transform: rotate(10deg); } }
@keyframes pulse-border { 0%,100% { opacity: 0.4; } 50% { opacity: 1; } }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .features-grid  { grid-template-columns: repeat(2, 1fr); }
  .footer-inner   { grid-template-columns: 1fr 1fr; }
  .footer-brand   { grid-column: 1/-1; }
}

@media (max-width: 768px) {
  /* ── 네비게이션 ─────────────────────────────────── */
  .nav-inner {
    position: relative;
  }
  .nav-links {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 72px; left: 0; right: 0;
    background: rgba(13,13,13,0.98);
    backdrop-filter: blur(20px);
    padding: 16px 24px 24px;
    gap: 4px;
    border-bottom: 1px solid rgba(245,166,35,0.2);
    z-index: 999;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  }
  .nav-links.open { display: flex; }
  .nav-links li   { border-bottom: 1px solid rgba(255,255,255,0.06); }
  .nav-links li:last-child { border-bottom: none; }
  .nav-links a {
    display: block;
    padding: 14px 4px;
    font-size: 1rem;
    font-weight: 600;
  }
  .nav-hamburger  { display: flex; }
  /* 로고 + 햄버거 레이아웃 */
  .nav-logo { font-size: 1.3rem; }

  /* ── 레이아웃 ─────────────────────────────────────── */
  .stats-grid     { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .features-grid  { grid-template-columns: 1fr; }
  .johnny-inner   { grid-template-columns: 1fr; gap: 32px; }
  .location-inner { grid-template-columns: 1fr; }
  .insta-grid     { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .footer-inner   { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom  { flex-direction: column; align-items: flex-start; }

  /* ── 맥주 메뉴 ─────────────────────────────────────── */
  .beer-controls  { flex-direction: column; align-items: stretch; gap: 10px; }
  .beer-search    { max-width: 100%; }
  .filter-select  { width: 100%; }
  .beer-grid      { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .beer-card-desc { -webkit-line-clamp: 2; }

  /* ── 모달 ─────────────────────────────────────────────── */
  .modal-box {
    flex-direction: column;
    max-height: 90vh;
    overflow-y: auto;
    margin: 16px;
    border-radius: 14px;
  }
  .modal-img  { width: 100%; height: 200px; border-radius: 14px 14px 0 0; }
  .modal-content { padding: 20px; }

  /* ── 랜덤 추천 ─────────────────────────────────────── */
  .reco-card { padding: 28px 20px; }
  .reco-btn-wrap { gap: 10px; }
  .reco-btn-wrap .btn { padding: 12px 20px; font-size: 0.92rem; }

  /* ── 지도 ─────────────────────────────────────────────── */
  .map-container { height: 280px; }

  /* ── 허로 ─────────────────────────────────────────────── */
  .hero-actions { flex-direction: column; align-items: center; gap: 12px; }
  .hero-actions .btn { width: 100%; max-width: 280px; justify-content: center; }

  /* ── 페이지네이션 ─────────────────────────────────── */
  .beer-pagination { gap: 4px; }
  .page-btn { min-width: 34px; height: 34px; font-size: 0.82rem; }

  /* ── 섹션 ─────────────────────────────────────────────── */
  section { padding: 60px 0; }
  .section-sub { margin-bottom: 36px; }
}

@media (max-width: 480px) {
  .stats-grid  { grid-template-columns: 1fr 1fr; gap: 12px; }
  .insta-grid  { gap: 6px; }
  .beer-grid   { grid-template-columns: 1fr; }
  .insta-grid  { grid-template-columns: repeat(3, 1fr); }

  /* 햄버거 턽치업 없이 화면 가득 채우기 */
  .nav-links { padding: 12px 20px 20px; }
  .nav-links a { padding: 13px 4px; }

  /* 허로 타이포그래피 */
  .hero-title { font-size: clamp(2.2rem, 10vw, 3.5rem); }
  .hero-sub   { font-size: 0.95rem; }

  /* 맥주 카드 단일열 */
  .beer-card-body { padding: 14px; }
  .beer-card-name { font-size: 0.95rem; }

  /* stat */
  .stat-number { font-size: 2.2rem; }
  .stat-label  { font-size: 0.78rem; }

  /* 푸터 */
  .footer-inner { gap: 20px; }

  /* 세션 여백 */
  .container { padding: 0 16px; }
}
/* ============================================================
   가게 외관 이미지 영역 – style.css 맨 아래에 붙여넣으세요
   ============================================================ */

/* 외관 이미지 래퍼 */
.store-img-wrap {
  position: relative;
  width: 100%;
  height: 420px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0,0,0,0.5);
  background: #1a1a1a;
}

/* 실제 이미지 */
.store-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}
.store-img-wrap:hover .store-img {
  transform: scale(1.03);
}

/* 이미지 없을 때 플레이스홀더 */
.store-img-placeholder {
  display: none;           /* onerror 시 JS로 flex 전환 */
  width: 100%;
  height: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: #1e2128;
  border: 2px dashed rgba(245,166,35,0.3);
  border-radius: 16px;
  color: #888;
  text-align: center;
  padding: 20px;
}
.store-img-placeholder p {
  font-size: 1rem;
  color: #aaa;
  line-height: 1.6;
}
.store-img-placeholder small {
  font-size: 0.78rem;
  color: #555;
  font-family: monospace;
  background: rgba(255,255,255,0.05);
  padding: 4px 10px;
  border-radius: 6px;
}

/* 카카오맵 배지 버튼 */
.store-map-badge {
  position: absolute;
  bottom: 16px;
  right: 16px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(13,13,13,0.82);
  backdrop-filter: blur(8px);
  color: #F5A623 !important;
  border: 1px solid rgba(245,166,35,0.4);
  padding: 9px 18px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.25s;
  z-index: 2;
}
.store-map-badge:hover {
  background: #F5A623;
  color: #0D0D0D !important;
  border-color: #F5A623;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245,166,35,0.35);
}

/* 반응형 */
@media (max-width: 768px) {
  .store-img-wrap { height: 260px; border-radius: 12px; }
}
@media (max-width: 480px) {
  .store-img-wrap { height: 220px; }
  .store-map-badge { font-size: 0.78rem; padding: 7px 14px; }
}
