/* style.css - BUDU BAKE Brand Homepage */
@import url('https://fonts.googleapis.com/css2?family=Georgia&family=Outfit:wght@300;400;600;800&family=Noto+Sans+KR:wght@300;400;500;700;900&display=swap');

:root {
  --color-forest: #224c38;      /* 바다초록 */
  --color-mint: #709a80;        /* 자연그린 */
  --color-wheat: #e0b889;       /* 골드 / 통밀브라운 */
  --color-cream: #f8f6f0;       /* 샌드베이지 / 크림화이트 */
  --color-white: #ffffff;
  --color-charcoal: #282828;    /* 텍스트 어두운색 */
  --color-light-gray: #ece9e2;
  
  --font-title: 'Georgia', 'Outfit', 'Noto Sans KR', sans-serif;
  --font-body: 'Outfit', 'Noto Sans KR', sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-cream);
  color: var(--color-charcoal);
  line-height: 1.75;
  letter-spacing: -0.02em;
  overflow-x: hidden;
  word-break: keep-all; /* 한글 단어 잘림 방지 (모바일 가독성 핵심) */
}

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

li {
  list-style: none;
}

/* Header & Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background-color: rgba(248, 246, 240, 0.9);
  backdrop-filter: blur(10px);
  z-index: 100;
  border-bottom: 1px solid rgba(34, 76, 56, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 4%;
}

.logo {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 26px;
  letter-spacing: 1px;
  color: var(--color-forest);
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo span {
  color: var(--color-wheat);
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  font-weight: 600;
  font-size: 15px;
  color: var(--color-forest);
  transition: color 0.3s;
}

.nav-links a:hover {
  color: var(--color-wheat);
}

.btn-toggle-detail {
  background-color: var(--color-forest);
  color: var(--color-white);
  padding: 10px 20px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 14px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(34, 76, 56, 0.2);
  transition: all 0.3s;
}

.btn-toggle-detail:hover {
  background-color: var(--color-wheat);
  transform: translateY(-2px);
}

/* Mobile Menu Toggle Button */
.btn-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 18px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 210; /* Higher than mobile overlay and header */
}

.btn-menu-toggle .hamburger-line {
  width: 100%;
  height: 2px;
  background-color: var(--color-forest);
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-menu-toggle.active .hamburger-line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.btn-menu-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.btn-menu-toggle.active .hamburger-line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Nav Overlay & Backdrop */
.mobile-nav-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(34, 76, 56, 0.3);
  backdrop-filter: blur(4px);
  z-index: 190;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-nav-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-overlay {
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  height: 100vh;
  background-color: rgba(248, 246, 240, 0.98);
  backdrop-filter: blur(10px);
  z-index: 200;
  box-shadow: -10px 0 30px rgba(34, 76, 56, 0.15);
  transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 100px 30px 40px;
  display: flex;
  flex-direction: column;
}

.mobile-nav-overlay.active {
  right: 0;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mobile-nav-links a {
  font-family: var(--font-title);
  font-size: 20px;
  font-weight: 700;
  color: var(--color-forest);
  border-bottom: 1px solid rgba(34, 76, 56, 0.08);
  padding-bottom: 12px;
  transition: all 0.3s;
}

.mobile-nav-links a:hover, .mobile-nav-links a.active {
  color: var(--color-wheat);
  padding-left: 8px;
}

.mobile-nav-links .mobile-only-btn {
  margin-top: 20px;
  width: 100%;
}

/* Hero Section */
.hero {
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  padding: 0 6%;
  background-image: linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.45)), url('images/exterior.png');
  background-size: cover;
  background-position: center;
  color: var(--color-white);
}

.hero-content {
  max-width: 650px;
}

.hero-subtitle {
  font-family: var(--font-title);
  font-size: 18px;
  font-weight: 600;
  color: var(--color-wheat);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.hero-title {
  font-family: var(--font-title);
  font-size: 52px;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 24px;
}

.hero-desc {
  font-size: 18px;
  margin-bottom: 32px;
  opacity: 0.95;
  line-height: 1.7;
}

.btn-primary {
  display: inline-block;
  background-color: var(--color-wheat);
  color: var(--color-forest);
  padding: 14px 30px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 16px;
  transition: all 0.3s;
}

.btn-primary:hover {
  background-color: var(--color-white);
  transform: translateY(-2px);
}

/* Section Common Styling */
section {
  padding: 100px 6%;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-title {
  font-family: var(--font-title);
  font-size: 38px;
  font-weight: 800;
  color: var(--color-forest);
  margin-bottom: 12px;
  line-height: 1.3;
}

.section-subtitle {
  font-size: 16px;
  color: var(--color-mint);
  font-weight: 600;
  letter-spacing: 1px;
}

/* Story Section */
.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.story-text h3 {
  font-family: var(--font-title);
  font-size: 28px;
  color: var(--color-forest);
  margin-bottom: 20px;
  line-height: 1.4;
}

.story-text p {
  font-size: 16px;
  margin-bottom: 20px;
  color: #444;
}

.story-image {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(0,0,0,0.1);
  height: 400px;
}

.story-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Secrets Section - Premium Stacked Layout */
.secret-stacked-container {
  display: flex;
  flex-direction: column;
  gap: 40px;
  max-width: 850px;
  margin: 0 auto;
}

.secret-image-box {
  width: 100%;
  height: 480px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0,0,0,0.08);
}

.secret-image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.secret-text-content {
  background: var(--color-white);
  padding: 40px 50px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(34, 76, 56, 0.05);
  border: 1px solid rgba(112, 154, 128, 0.1);
}

.secret-text-content h3 {
  font-family: var(--font-title);
  font-size: 26px;
  color: var(--color-forest);
  margin-bottom: 24px;
  line-height: 1.4;
  text-align: center;
}

.secret-text-content p {
  font-size: 16px;
  line-height: 1.85;
  margin-bottom: 20px;
  color: #444;
}

.secret-text-content p:last-child {
  margin-bottom: 0;
}

.mobile-only-br {
  display: none;
}

/* Menu Section */
.menu-slider-wrapper {
  position: relative;
  width: 100%;
  padding: 20px 0;
}

.menu-slider-container {
  overflow: hidden;
  width: 100%;
}

.menu-slider-track {
  display: flex;
  gap: 30px;
  width: max-content;
  transition: transform 0.4s ease-in-out;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--color-white);
  color: var(--color-forest);
  border: 1px solid rgba(112, 154, 128, 0.2);
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.slider-btn:hover {
  background-color: var(--color-forest);
  color: var(--color-wheat);
}

.slider-btn.prev {
  left: -25px;
}

.slider-btn.next {
  right: -25px;
}

.menu-card {
  width: 280px;
  flex-shrink: 0;
  background-color: var(--color-white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0,0,0,0.05);
  border: 1px solid rgba(112, 154, 128, 0.15);
  transition: transform 0.3s;
  display: flex;
  flex-direction: column;
}

.menu-card:hover {
  transform: translateY(-8px);
}

.menu-card-img {
  width: 100%;
  height: 220px;
  overflow: hidden;
}

.menu-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.menu-card:hover .menu-card-img img {
  transform: scale(1.05);
}

.menu-info {
  padding: 28px;
}


.menu-tag.tag-open {
  background-color: #e67e22;
  color: #ffffff;
}

.menu-tag.tag-original {
  background-color: var(--color-forest);
  color: var(--color-white);
  border: 1px solid var(--color-forest);
  font-family: 'Georgia', serif;
}

.menu-tag.tag-new {
  background-color: var(--color-mint);
  color: var(--color-white);
  border: 1px solid var(--color-mint);
  font-style: italic;
}

.menu-tag.tag-daily {
  background-color: var(--color-charcoal);
  color: var(--color-white);
  border: 1px solid var(--color-charcoal);
  letter-spacing: 1px;
}

.menu-tag.tag-best {
  background-color: var(--color-wheat);
  color: var(--color-forest);
  border: 1px solid var(--color-wheat);
  font-weight: 800;
  box-shadow: 0 0 5px rgba(224, 184, 137, 0.4);
}

.menu-tag {
  display: inline-block;
  background-color: var(--color-light-gray);
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
  color: var(--color-forest);
  margin-bottom: 12px;
}

.menu-card h4 {
  font-size: 20px;
  color: var(--color-forest);
  margin-bottom: 12px;
  font-weight: 700;
}

.menu-card p {
  font-size: 14.5px;
  color: #555;
  line-height: 1.6;
}

/* Space Showroom Section */
.space-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 30px;
}

.space-card {
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 15px 30px rgba(0,0,0,0.1);
  height: 450px;
}

.space-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: scale 0.5s;
}

.space-card:hover img {
  scale: 1.05;
}

.space-info-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 40px 30px;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
  color: var(--color-white);
}

.space-info-overlay h3 {
  font-family: var(--font-title);
  font-size: 24px;
  margin-bottom: 8px;
}

.space-info-overlay p {
  font-size: 14.5px;
  opacity: 0.9;
  line-height: 1.6;
}

/* Sidebar simulated detail page panel */
.detail-drawer {
  position: fixed;
  top: 0;
  right: -550px;
  width: 500px;
  height: 100vh;
  background-color: var(--color-forest);
  box-shadow: -10px 0 40px rgba(0,0,0,0.3);
  z-index: 200;
  transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 30px 20px;
}

.detail-drawer.open {
  right: 0;
}

.detail-drawer-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  color: var(--color-white);
}

.detail-drawer-header h3 {
  font-size: 18px;
  font-weight: 700;
}

.btn-close-drawer {
  background: none;
  border: none;
  color: var(--color-white);
  font-size: 24px;
  cursor: pointer;
  opacity: 0.8;
}

.btn-close-drawer:hover {
  opacity: 1;
}

/* Simulated Smartphone */
.phone-container {
  width: 375px;
  height: 720px;
  background-color: var(--color-cream);
  border-radius: 40px;
  border: 12px solid #111;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
  overflow-y: auto;
  position: relative;
}

/* Hide scrollbar in simulator */
.phone-container::-webkit-scrollbar {
  display: none;
}

/* Detail Page Slides inside Simulator */
.sim-slide {
  padding: 35px 24px;
  border-bottom: 1px dashed rgba(34, 76, 56, 0.2);
  background-color: var(--color-cream);
}

.sim-slide-header {
  font-size: 11px;
  font-weight: 700;
  color: var(--color-mint);
  margin-bottom: 12px;
  text-transform: uppercase;
}

.sim-slide-title {
  font-family: var(--font-title);
  font-size: 22px;
  font-weight: 800;
  color: var(--color-forest);
  margin-bottom: 16px;
  line-height: 1.35;
}

.sim-slide-body {
  font-size: 14px;
  color: var(--color-charcoal);
  margin-bottom: 20px;
  line-height: 1.7;
}

.sim-slide-img {
  width: 100%;
  height: 190px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.sim-slide-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Special Slides */
.sim-slide.dark {
  background-color: var(--color-forest);
  color: var(--color-white);
}

.sim-slide.dark .sim-slide-title {
  color: var(--color-white);
}

.sim-slide.dark .sim-slide-body {
  color: rgba(255,255,255,0.9);
}

/* SWOT styling in simulator */
.sim-swot-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
}

.sim-swot-card {
  padding: 12px;
  border-radius: 8px;
  font-size: 11px;
  line-height: 1.5;
}

.sim-swot-card.dark {
  background-color: var(--color-forest);
  color: var(--color-white);
}

.sim-swot-card.light {
  background-color: var(--color-white);
  border: 1px solid rgba(34,76,56,0.15);
}

/* Timeline in simulator */
.sim-timeline {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sim-timeline-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.sim-timeline-quarter {
  font-weight: 700;
  font-size: 12px;
  color: var(--color-wheat);
  background-color: var(--color-forest);
  padding: 2px 8px;
  border-radius: 4px;
}

.sim-timeline-desc {
  font-size: 13.5px;
  line-height: 1.6;
}

/* Backdrop when drawer is open */
.backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0,0,0,0.5);
  z-index: 150;
  display: none;
}

.backdrop.show {
  display: block;
}

/* Footer */
footer {
  background-color: var(--color-forest);
  color: var(--color-white);
  padding: 60px 6% 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4 {
  font-family: var(--font-title);
  font-size: 18px;
  color: var(--color-wheat);
  margin-bottom: 20px;
}

.footer-col p {
  font-size: 14px;
  opacity: 0.8;
  margin-bottom: 10px;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 12px;
  opacity: 0.6;
}

/* --- MOBILE RESPONSIVE MEDIA QUERIES --- */
/* ============================================
   BRAND STORY — 3-Act Narrative Section
   ============================================ */

.story-narrative-section {
  background-color: var(--color-white);
  padding: 80px 5% 40px;
}

/* Song Quote Banner */
.story-song-banner {
  max-width: 760px;
  margin: 0 auto 80px;
  padding: 36px 48px;
  background: linear-gradient(135deg, var(--color-forest) 0%, #1a3829 100%);
  border-radius: 16px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.story-song-banner::before {
  content: '\275D';
  position: absolute;
  top: -10px;
  left: 20px;
  font-size: 80px;
  color: rgba(224, 184, 137, 0.15);
  font-family: Georgia, serif;
  line-height: 1;
}

.story-song-lyric {
  font-family: var(--font-title);
  font-size: 18px;
  line-height: 1.8;
  color: var(--color-wheat);
  font-weight: 500;
  margin-bottom: 16px;
}

.story-song-source {
  font-size: 13px;
  color: rgba(224, 184, 137, 0.65);
  letter-spacing: 0.02em;
}

/* Act blocks */
.story-act {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto 100px;
  padding: 60px 0;
  border-bottom: 1px solid var(--color-light-gray);
}

.story-act:last-child {
  border-bottom: none;
  margin-bottom: 20px;
}

/* Act 2: content left, image right */
.act-2 .story-act-content {
  order: 1;
}
.act-2 .story-act-image {
  order: 2;
}

/* Act image */
.story-act-image {
  position: relative;
}

.story-act-image img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 16px;
  display: block;
  box-shadow: 0 20px 50px rgba(0,0,0,0.12);
}

.story-act-image-caption {
  margin-top: 12px;
  font-size: 12px;
  color: #999;
  text-align: center;
  font-style: italic;
  letter-spacing: 0.02em;
}

/* Act content */
.story-act-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.story-act-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-wheat);
  background: var(--color-forest);
  padding: 6px 16px;
  border-radius: 20px;
  width: fit-content;
}

.act-2 .story-act-label {
  background: #2c3e50;
  color: #a0b4c5;
}

.act-3 .story-act-label {
  background: #7a4e2d;
  color: var(--color-wheat);
}

.story-act-title {
  font-family: var(--font-title);
  font-size: 32px;
  font-weight: 700;
  color: var(--color-forest);
  line-height: 1.3;
  margin: 0;
}

.act-2 .story-act-title {
  color: #2c3e50;
}

.act-3 .story-act-title {
  color: #7a4e2d;
}

.story-act-content p {
  font-size: 15.5px;
  line-height: 1.9;
  color: #444;
}

/* Blockquote for Act 2 */
.story-act-quote {
  margin: 0;
  padding: 24px 28px;
  border-left: 4px solid #2c3e50;
  background: #f4f6f8;
  border-radius: 0 12px 12px 0;
  font-family: var(--font-title);
  font-size: 17px;
  line-height: 1.7;
  color: #2c3e50;
  font-weight: 500;
}

/* Act 3 CTA */
.story-act-cta {
  margin-top: 10px;
}

/* Act visual tone overlays */
.act-1 .story-act-image img {
  filter: sepia(20%) contrast(1.05) brightness(1.02);
}

.act-2 .story-act-image img {
  filter: saturate(0.7) brightness(0.92) contrast(1.1);
}

@media (max-width: 992px) {

  .hero-title {
    font-size: 42px;
  }
  .space-grid {
    grid-template-columns: 1fr;
  }
  .space-card {
    height: 380px;
  }
}

/* Brand Story Mobile — 992px */
@media (max-width: 992px) {
  .story-act {
    grid-template-columns: 1fr;
    gap: 36px;
    margin-bottom: 60px;
    padding: 40px 0;
  }

  /* Reset act-2 order on mobile (image goes first) */
  .act-2 .story-act-content {
    order: 2;
  }
  .act-2 .story-act-image {
    order: 1;
  }

  .story-act-image img {
    height: 300px;
  }

  .story-act-title {
    font-size: 26px;
  }

  .story-song-banner {
    padding: 28px 24px;
    margin-bottom: 50px;
  }

  .story-song-lyric {
    font-size: 16px;
  }
}

@media (max-width: 768px) {

  header {
    height: 70px;
    padding: 0 5%;
  }
  .logo {
    font-size: 22px;
  }
  .nav-links {
    display: none; /* 모바일에서는 내비게이션 숨김 */
  }
  header .btn-toggle-detail {
    display: none; /* 모바일 헤더에서는 디테일 버튼 숨김 */
  }
  .btn-menu-toggle {
    display: flex; /* 모바일 토글 스위치(햄버거 버튼) 활성화 */
  }
  
  section {
    padding: 60px 5%;
  }
  .section-title {
    font-size: 24px; /* 모바일 제목 크기 최적화 */
    line-height: 1.4;
  }
  
  .mobile-only-br {
    display: block; /* 모바일에서만 줄바꿈 활성화 */
  }
  
  .hero {
    padding: 0 5%;
    text-align: center;
    justify-content: center;
  }
  .hero-title {
    font-size: 26px; /* 모바일에서 너무 커서 줄바꿈이 깨지지 않도록 축소 */
    line-height: 1.4;
  }
  .hero-desc {
    font-size: 14px;
    line-height: 1.6;
  }
  
  .story-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .story-text h3 {
    font-size: 20px;
    line-height: 1.4;
  }
  .story-image {
    height: 280px;
  }
  
  /* Secrets Section Mobile Stacked Layout */
  .secret-image-box {
    height: 280px;
  }
  .secret-text-content {
    padding: 30px 20px;
  }
  .secret-text-content h3 {
    font-size: 20px;
    margin-bottom: 16px;
  }
  .secret-text-content p {
    font-size: 14.5px;
    line-height: 1.7;
  }
  
  .detail-drawer {
    width: 100vw;
    right: -105vw;
    padding: 20px 10px;
  }
  .phone-container {
    width: 100%;
    height: calc(100vh - 80px);
    border: none;
    border-radius: 20px;
  }
  
  footer {
    padding: 40px 5% 20px;
  }
}
