/* =============================================
   케이캠핑카연구소 — 공통 디자인 시스템
   Primary: #0f1e3c (Dark Navy)
   Accent:  #c9a84c (Gold)
============================================= */

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #2d3748;
  background: #fff;
}

/* --- Design Tokens --- */
:root {
  --navy:        #0f1e3c;
  --navy-mid:    #1a3260;
  --navy-light:  #243b6e;
  --gold:        #c9a84c;
  --gold-light:  #e8c96b;
  --gold-pale:   #fdf6e3;
  --white:       #ffffff;
  --bg-light:    #f5f7fa;
  --bg-section:  #eef1f7;
  --text-dark:   #0f1e3c;
  --text-body:   #4a5568;
  --text-muted:  #718096;
  --border:      #e2e8f0;
  --radius:      12px;
  --radius-sm:   8px;
  --shadow-sm:   0 2px 8px rgba(15,30,60,0.08);
  --shadow-md:   0 8px 24px rgba(15,30,60,0.12);
  --shadow-lg:   0 20px 60px rgba(15,30,60,0.16);
  --transition:  all 0.25s ease;
  --max-width:   1160px;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: 'Noto Serif KR', serif;
  color: var(--navy);
  line-height: 1.3;
}
h1 { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 700; }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }
p  { color: var(--text-body); }

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

/* --- Layout --- */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-sm { padding: 56px 0; }

/* --- Label / Badge --- */
.label {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.label-navy { background: var(--navy); color: var(--gold); }
.label-gold { background: var(--gold-pale); color: var(--gold); border: 1px solid var(--gold); }
.label-outline { background: transparent; color: var(--navy); border: 1px solid var(--navy); }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
}
.btn-gold {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}
.btn-gold:hover { background: var(--gold-light); border-color: var(--gold-light); transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn-navy {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.btn-navy:hover { background: var(--navy-mid); border-color: var(--navy-mid); transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.6);
}
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: var(--white); }

.btn-outline-navy {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline-navy:hover { background: var(--navy); color: var(--white); }

/* --- Cards --- */
.card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 32px;
  transition: var(--transition);
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }

.card-gold-border { border-top: 4px solid var(--gold); }
.card-navy { background: var(--navy); color: var(--white); border-color: var(--navy); }
.card-navy h3, .card-navy h4 { color: var(--white); }
.card-navy p { color: rgba(255,255,255,0.75); }

/* --- Grid --- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .container { padding: 0 16px; }
}

/* ============================================================
   HEADER / NAVIGATION
============================================================ */
#site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--navy);
  box-shadow: 0 2px 20px rgba(15,30,60,0.3);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-logo-mark {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nav-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}
.nav-logo-text .logo-main {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--white);
  letter-spacing: 0.03em;
}
.nav-logo-text .logo-sub {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.02em;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-menu a {
  display: block;
  padding: 8px 14px;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255,255,255,0.8);
  border-radius: 6px;
  transition: var(--transition);
  white-space: nowrap;
}
.nav-menu a:hover { color: var(--white); background: rgba(255,255,255,0.08); }
.nav-menu a.active { color: var(--gold); font-weight: 600; }
.nav-menu .nav-cta a {
  background: transparent;
  color: var(--gold);
  font-weight: 600;
  border: 1.5px solid rgba(201,168,76,0.5);
  padding: 6px 16px;
  border-radius: 6px;
  letter-spacing: 0.02em;
}
.nav-menu .nav-cta a:hover {
  background: rgba(201,168,76,0.1);
  border-color: var(--gold);
  color: var(--gold);
}

.nav-toggle { display: none; }

@media (max-width: 860px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: 68px;
    left: 0; right: 0;
    background: var(--navy);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 16px 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    gap: 2px;
  }
  .nav-menu.open { display: flex; }
  .nav-menu a { padding: 12px 16px; }
  .nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
  }
  .nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: var(--transition);
  }
}

/* ============================================================
   FOOTER
============================================================ */
#site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
}

.footer-top {
  padding: 60px 24px 40px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand .logo-main { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 1.2rem; color: var(--white); }
.footer-brand .logo-sub { font-size: 0.75rem; color: rgba(255,255,255,0.45); margin-bottom: 16px; }
.footer-brand p { font-size: 0.875rem; line-height: 1.8; color: rgba(255,255,255,0.55); }

.footer-col h5 {
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { font-size: 0.875rem; color: rgba(255,255,255,0.6); transition: var(--transition); }
.footer-col ul li a:hover { color: var(--white); }

.footer-contact-item { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; font-size: 0.875rem; }
.footer-contact-item .icon { color: var(--gold); flex-shrink: 0; margin-top: 2px; }

.footer-bottom {
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { font-size: 0.8rem; color: rgba(255,255,255,0.35); }
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { font-size: 0.8rem; color: rgba(255,255,255,0.4); transition: var(--transition); }
.footer-bottom-links a:hover { color: rgba(255,255,255,0.7); }

@media (max-width: 768px) {
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   PAGE HERO (내부 페이지용)
============================================================ */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  padding: 72px 0 64px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: -50%; right: -10%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(201,168,76,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.page-hero .label { margin-bottom: 12px; }
.page-hero h1 { color: var(--white); margin-bottom: 16px; }
.page-hero p { color: rgba(255,255,255,0.7); font-size: 1.1rem; max-width: 560px; }

/* ============================================================
   STAT BOX
============================================================ */
.stat-box {
  text-align: center;
  padding: 28px 20px;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.stat-box .stat-num {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-box .stat-num span { color: var(--gold); }
.stat-box .stat-label { font-size: 0.82rem; color: var(--text-muted); }

/* ============================================================
   SECTION HEADER (공통)
============================================================ */
.section-header { text-align: center; margin-bottom: 56px; }
.section-header h2 { margin-bottom: 16px; }
.section-header p { font-size: 1.05rem; color: var(--text-body); max-width: 540px; margin: 0 auto; }

/* ============================================================
   ICON BOX
============================================================ */
.icon-box {
  width: 56px; height: 56px;
  background: var(--gold-pale);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.5rem;
}
.icon-box-navy {
  background: rgba(201,168,76,0.15);
}

/* ============================================================
   CTA BANNER
============================================================ */
.cta-banner {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  border-radius: var(--radius);
  padding: 56px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  right: -40px; top: -40px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(201,168,76,0.15) 0%, transparent 70%);
}
.cta-banner h2 { color: var(--white); margin-bottom: 12px; }
.cta-banner p { color: rgba(255,255,255,0.7); }
.cta-banner-actions { display: flex; gap: 12px; flex-wrap: wrap; flex-shrink: 0; position: relative; }

@media (max-width: 768px) {
  .cta-banner { flex-direction: column; align-items: flex-start; padding: 40px 28px; }
}
