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

:root {
  --primary: #1a1a2e;
  --accent: #c9a84c;
  --text-light: #ffffff;
  --text-dark: #1a1a2e;
  --text-muted: #777;
  --bg-white: #ffffff;
  --bg-dark: #111118;
  --bg-gray: #f4f4f6;
  --nav-height: 80px;
  --max-width: 1200px;
  --radius: 8px;
  --shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
  --shadow-lg: 0 20px 40px rgba(0,0,0,0.08);
  --transition: all 0.3s ease;
}

/* ===== Reset ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text-dark); line-height: 1.6; overflow-x: hidden; background: var(--bg-white);
}
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: 3px solid rgba(255,255,255,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(255,255,255,0.97);
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
}

.logo {
  font-size: 1.5rem; font-weight: 800; color: var(--text-light);
  letter-spacing: 1px; transition: color 0.3s;
}
.logo img { height: 36px; }
.header.scrolled .logo { color: var(--text-dark); }

.nav { display: flex; align-items: center; gap: 36px; }
.nav a {
  font-size: 0.92rem; font-weight: 500;
  color: rgba(255,255,255,0.8);
  transition: color 0.3s; position: relative;
}
.nav a::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 2px; background: var(--accent); transition: width 0.3s;
}
.nav a:hover::after { width: 100%; }
.header.scrolled .nav a { color: var(--text-dark); }

.btn-outline {
  padding: 10px 28px;
  border: 1.5px solid rgba(255,255,255,0.6);
  border-radius: 2px;
  font-size: 0.88rem; font-weight: 500;
  color: var(--text-light);
  transition: var(--transition);
  background: transparent;
}
.btn-outline:hover { background: var(--text-light); color: var(--text-dark); }
.btn-outline::after { display: none; }
.header.scrolled .btn-outline { border-color: var(--text-dark); color: var(--text-dark); }
.header.scrolled .btn-outline:hover { background: var(--text-dark); color: var(--text-light); }

.hamburger {
  display: none; flex-direction: column; gap: 5px; cursor: pointer;
  background: none; border: none; padding: 4px;
}
.hamburger span {
  width: 24px; height: 2px; background: var(--text-light);
  transition: var(--transition); display: block;
}
.header.scrolled .hamburger span { background: var(--text-dark); }
.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 SLIDER
   ============================================================= */
.hero {
  position: relative; height: 100vh; overflow: hidden;
}
.hero-slides {
  display: flex; height: 100%;
  transition: transform 0.8s cubic-bezier(0.65, 0, 0.35, 1);
}
.hero-slide {
  min-width: 100%; height: 100%; position: relative;
  background-size: cover; background-position: center;
}
.hero-slide::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.2) 100%);
}
.hero-content {
  position: absolute; top: 50%; left: 0; transform: translateY(-50%);
  padding: 0 max(40px, calc((100vw - var(--max-width)) / 2 + 40px));
  z-index: 2;
}
.hero-content h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 800; color: var(--text-light);
  line-height: 1.3; margin-bottom: 20px; letter-spacing: -1px;
}
.hero-content p {
  font-size: clamp(0.9rem, 1.2vw, 1.05rem);
  color: rgba(255,255,255,0.65); max-width: 480px;
}

.hero-controls {
  position: absolute; bottom: 40px; left: 0; z-index: 3;
  padding: 0 max(40px, calc((100vw - var(--max-width)) / 2 + 40px));
  display: flex; align-items: center; gap: 14px;
}
.ctrl-btn {
  background: none; border: none; color: rgba(255,255,255,0.5);
  font-size: 1.1rem; cursor: pointer; transition: color 0.3s;
  padding: 4px;
}
.ctrl-btn:hover { color: #fff; }
.hero-counter { color: rgba(255,255,255,0.45); font-size: 0.82rem; font-weight: 500; }
.hero-progress {
  width: 120px; height: 2px; background: rgba(255,255,255,0.15);
  border-radius: 1px; overflow: hidden;
}
.hero-progress-bar {
  height: 100%; background: #fff; width: 33%;
  transition: width 0.4s;
}

/* =============================================================
   SECTION COMMON
   ============================================================= */
.section-white { padding: 120px 0; background: var(--bg-white); }
.section-dark { padding: 120px 0; background: var(--bg-dark); color: var(--text-light); }
.section-gray { padding: 120px 0; background: var(--bg-gray); }
.section-cta { padding: 100px 0; background: var(--primary); color: var(--text-light); }

.section-label {
  display: inline-block;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 3px; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px;
}
.section-title {
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  font-weight: 800; line-height: 1.35; letter-spacing: -0.5px;
  margin-bottom: 18px;
}
.section-desc {
  font-size: 1rem; color: var(--text-muted); max-width: 540px; line-height: 1.7;
}
.header-row {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 56px;
}
.link-arrow {
  color: var(--accent); font-weight: 600; font-size: 0.88rem;
  transition: opacity 0.3s;
}
.link-arrow:hover { opacity: 0.7; }

/* =============================================================
   ABOUT / STATS (다크 섹션)
   ============================================================= */
.about-layout { display: flex; align-items: center; gap: 80px; flex-wrap: wrap; }
.about-text { flex: 1; min-width: 280px; }
.about-image {
  flex: 0 0 280px;
  height: 320px;
  border-radius: var(--radius);
  background-size: cover;
  background-position: center;
  background-color: rgba(255,255,255,0.04);
}
.section-dark .section-desc { color: rgba(255,255,255,0.45); }
.section-dark .section-title { color: var(--text-light); }
.section-dark::before {
  content: ''; position: absolute; right: -200px; top: -200px;
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(201,168,76,0.06) 0%, transparent 70%);
}
.section-dark { position: relative; overflow: hidden; }

.stats-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; flex: 1;
}
.stat-card {
  padding: 32px; border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius); transition: border-color 0.3s;
}
.stat-card:hover { border-color: var(--accent); }
.stat-number {
  font-size: 2.8rem; font-weight: 800; color: var(--accent);
  line-height: 1; margin-bottom: 8px;
}
.stat-label { font-size: 0.88rem; color: rgba(255,255,255,0.4); }

/* =============================================================
   FEATURES
   ============================================================= */
.features-center { text-align: center; }
.features-center .section-desc { margin: 0 auto 56px; }

.features-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
}
.feature-card {
  padding: 44px 28px; border-radius: 12px; background: var(--bg-gray);
  transition: transform 0.3s, box-shadow 0.3s; text-align: left;
}
.feature-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.feature-icon {
  width: 52px; height: 52px; border-radius: 12px; background: var(--primary);
  display: flex; align-items: center; justify-content: center; margin-bottom: 22px;
  font-size: 1.3rem; color: var(--accent);
}
.feature-img {
  width: 100%; height: 160px; border-radius: var(--radius); margin-bottom: 22px;
  background-size: cover; background-position: center; background-color: var(--bg-gray);
}
.feature-card h3 { font-size: 1.12rem; font-weight: 700; margin-bottom: 10px; }
.feature-card p { font-size: 0.92rem; color: var(--text-muted); line-height: 1.65; }

/* =============================================================
   SHOWCASE
   ============================================================= */
.showcase-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.showcase-card {
  position: relative; border-radius: 12px; overflow: hidden;
  aspect-ratio: 4/3;
}
.showcase-card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s;
}
.showcase-card:hover img { transform: scale(1.06); }
.showcase-card .overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 55%);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 26px;
}
.showcase-card .overlay h3 { color: #fff; font-size: 1.1rem; font-weight: 700; }
.showcase-card .overlay p { color: rgba(255,255,255,0.55); font-size: 0.82rem; margin-top: 4px; }

/* =============================================================
   CTA
   ============================================================= */
.cta-center { text-align: center; }
.section-cta .section-title { color: var(--text-light); }
.section-cta .section-desc {
  color: rgba(255,255,255,0.45); margin: 0 auto 36px;
}
.btn-cta {
  display: inline-block; padding: 15px 48px;
  background: var(--accent); color: var(--primary);
  font-size: 0.95rem; font-weight: 700; border-radius: 3px;
  transition: transform 0.3s, box-shadow 0.3s;
  border: none; cursor: pointer;
}
.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201,168,76,0.3);
}

/* =============================================================
   LOCATION
   ============================================================= */
.location-header { margin-bottom: 48px; }
.location-body {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start;
}
.location-map {
  height: 360px; background: var(--bg-gray); border-radius: var(--radius); overflow: hidden;
}
.location-map iframe { display: block; }
.map-placeholder {
  height: 100%; display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: 1rem; text-align: center;
  flex-direction: column; gap: 12px;
}
.btn-map {
  display: inline-block; margin-top: 12px; padding: 10px 24px;
  background: var(--primary); color: var(--text-light); border-radius: var(--radius);
  font-size: 0.9rem; font-weight: 600; transition: var(--transition);
}
.btn-map:hover { background: var(--accent); color: var(--primary); }
.map-btn-group { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 12px; }
.map-btn-group .btn-map { margin-top: 0; }
.location-info { padding-top: 4px; }
.location-address {
  margin-bottom: 28px; color: var(--text-muted); line-height: 1.8; font-size: 0.95rem;
}
.location-hours h4 {
  font-size: 0.85rem; font-weight: 700; color: var(--text-dark);
  margin-bottom: 14px; letter-spacing: 0.04em;
}
.hours-list { list-style: none; margin: 0 0 20px; }
.hours-list li {
  display: flex; justify-content: space-between; padding: 12px 0;
  border-bottom: 1px solid rgba(0,0,0,0.06); font-size: 0.9rem;
}
.hours-list li.closed { color: var(--text-muted); }
.hours-day  { font-weight: 500; }
.location-note { font-size: 0.83rem; color: var(--text-muted); line-height: 1.7; }

/* CTA 복수 버튼 */
.cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.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(--primary) !important;
}

/* about.points 텍스트 카드 */
.stat-point { font-size: 1rem; font-weight: 600; color: var(--accent); line-height: 1.6; }

/* =============================================================
   FOOTER
   ============================================================= */
.footer {
  background: var(--bg-dark); color: rgba(255,255,255,0.35);
  padding: 56px 0 36px; font-size: 0.82rem;
}
.footer-top {
  display: flex; justify-content: space-between; gap: 48px;
  margin-bottom: 36px;
}
.footer-col h4 {
  color: #fff; font-size: 0.85rem; font-weight: 600; margin-bottom: 14px;
}
.footer-col p, .footer-col a {
  line-height: 2; color: rgba(255,255,255,0.35);
}
.footer-col a:hover { color: var(--accent); }
.footer-sns a { margin-right: 10px; font-size: 1.1rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06); padding-top: 20px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.78rem;
}
.footer-bottom a { margin-left: 18px; }
.footer-bottom a:hover { color: var(--accent); }
.footer-copyright {
  text-align: center; margin-top: 16px; font-size: 0.75rem;
  color: rgba(255,255,255,0.2);
}

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

/* =============================================================
   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) {
  .about-layout { flex-direction: column; gap: 48px; }
  .about-image { flex: none; width: 100%; height: 240px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .showcase-grid { grid-template-columns: repeat(2, 1fr); }
}

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

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

  .hero-content h1 { font-size: 1.9rem; }
  .hero-content p { font-size: 0.88rem; }
  .hero-controls { bottom: 24px; }

  /* [FIX] 모바일에서 stats 2x2 그리드 유지 */
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .stat-card { padding: 24px; }
  .stat-number { font-size: 2.2rem; }

  .features-grid { grid-template-columns: 1fr; }
  .feature-card { padding: 32px 24px; }

  .showcase-grid { grid-template-columns: 1fr; }

  .header-row { flex-direction: column; align-items: flex-start; gap: 14px; }

  /* Location */
  .location-body { grid-template-columns: 1fr; gap: 32px; }
  .location-map { height: 240px; }

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

@media (max-width: 480px) {
  .section-title { font-size: 1.5rem; }
  .hero-content h1 { font-size: 1.6rem; }
  .btn-cta { padding: 13px 36px; font-size: 0.88rem; }
  .stats-grid { grid-template-columns: 1fr; }
}

@media (max-width: 360px) {
  .hero-content h1 { font-size: 1.4rem; }
  .hero-content p { font-size: 0.82rem; }
  .section-title { font-size: 1.3rem; }
  .btn-cta { padding: 12px 24px; font-size: 0.85rem; width: 100%; text-align: center; }
  .cta-buttons { flex-direction: column; align-items: center; }
  .feature-card { padding: 28px 20px; }
}
