/* ============================================================
   VITDAM 빛담 — Brand Design System
   Clean Korean Premium Aesthetic
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;700;900&family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=DM+Mono:wght@300;400&display=swap');

/* ── CSS Variables ─────────────────────────────────────────── */
:root {
  --orange:     #E8620A;
  --orange-lt:  #F07A2A;
  --orange-dk:  #C04F06;
  --charcoal:   #1A1A1A;
  --warm-gray:  #5A5550;
  --mid-gray:   #9A9390;
  --light-gray: #F5F3F0;
  --cream:      #FAF8F5;
  --white:      #FFFFFF;
  --border:     rgba(90,85,80,0.15);

  --font-ko:    'Noto Sans KR', sans-serif;
  --font-en:    'Playfair Display', serif;
  --font-mono:  'DM Mono', monospace;

  --img-hero:   800px 560px;
  --img-card:   400px 280px;
  --img-thumb:  280px 200px;
  --img-square: 260px 260px;
  --img-wide:   560px 320px;

  --radius:     4px;
  --radius-lg:  12px;
  --shadow-sm:  0 2px 12px rgba(0,0,0,0.08);
  --shadow-md:  0 8px 32px rgba(0,0,0,0.12);
  --shadow-lg:  0 20px 60px rgba(0,0,0,0.16);

  --transition: 0.32s cubic-bezier(0.4,0,0.2,1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-ko);
  background: var(--cream);
  color: var(--charcoal);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
  object-fit: cover;
}

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

/* ── Navigation ─────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 48px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(250,248,245,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.nav.scrolled {
  height: 60px;
  box-shadow: var(--shadow-sm);
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav__logo-mark {
  width: 36px; height: 36px;
  background: var(--orange);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

.nav__logo-mark svg {
  width: 20px; height: 20px;
  fill: white;
}

.nav__logo-text {
  font-family: var(--font-en);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--charcoal);
  letter-spacing: 0.04em;
}

.nav__logo-sub {
  font-family: var(--font-ko);
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--orange);
  letter-spacing: 0.08em;
  margin-top: -2px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav__links a {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--warm-gray);
  letter-spacing: 0.03em;
  transition: color var(--transition);
  position: relative;
}

.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--orange);
  transition: width var(--transition);
}

.nav__links a:hover {
  color: var(--charcoal);
}

.nav__links a:hover::after,
.nav__links a.active::after { width: 100%; }

.nav__cta {
  background: var(--orange);
  color: white !important;
  padding: 8px 20px;
  border-radius: var(--radius);
  font-weight: 600 !important;
  font-size: 0.78rem !important;
  letter-spacing: 0.04em !important;
  transition: background var(--transition) !important;
}

.nav__cta:hover { background: var(--orange-dk) !important; }
.nav__cta::after { display: none !important; }

/* ── Section Layout ─────────────────────────────────────────── */
section {
  padding: 96px 0;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 48px;
}

.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-ko);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700;
  color: var(--charcoal);
  line-height: 1.25;
  margin-bottom: 20px;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--warm-gray);
  max-width: 560px;
  line-height: 1.75;
}

/* ── Image Standard Sizes ───────────────────────────────────── */
.img-hero    { width: 100%; height: 560px; }
.img-card    { width: 100%; height: 280px; }
.img-thumb   { width: 100%; height: 200px; }
.img-square  { width: 100%; height: 260px; }
.img-wide    { width: 100%; height: 320px; }
.img-portrait{ width: 100%; height: 380px; }

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-ko);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 12px 28px;
  border-radius: var(--radius);
  cursor: pointer;
  border: none;
  transition: all var(--transition);
}

.btn-primary {
  background: var(--orange);
  color: white;
}
.btn-primary:hover { background: var(--orange-dk); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(232,98,10,0.3); }

.btn-outline {
  background: transparent;
  color: var(--charcoal);
  border: 1.5px solid var(--border);
}
.btn-outline:hover { border-color: var(--charcoal); transform: translateY(-2px); }

.btn-ghost {
  background: transparent;
  color: var(--orange);
  padding-left: 0;
}
.btn-ghost:hover { gap: 14px; }

/* ── Cards ────────────────────────────────────────────────────── */
.card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.card__img {
  overflow: hidden;
}

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

.card:hover .card__img img { transform: scale(1.06); }

.card__body {
  padding: 24px;
}

.card__tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
  background: rgba(232,98,10,0.08);
  padding: 4px 10px;
  border-radius: 2px;
  margin-bottom: 12px;
}

.card__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--charcoal);
  line-height: 1.4;
  margin-bottom: 8px;
}

.card__desc {
  font-size: 0.82rem;
  color: var(--warm-gray);
  line-height: 1.65;
}

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

/* ── Tabs ─────────────────────────────────────────────────────── */
.tabs {
  display: flex;
  gap: 4px;
  padding: 6px;
  background: white;
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 48px;
  overflow-x: auto;
}

.tab-btn {
  flex-shrink: 0;
  padding: 10px 24px;
  background: none;
  border: none;
  border-radius: 8px;
  font-family: var(--font-ko);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--warm-gray);
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.tab-btn:hover { color: var(--charcoal); background: var(--light-gray); }
.tab-btn.active { background: var(--orange); color: white; font-weight: 700; }

.tab-content { display: none; }
.tab-content.active { display: block; }

/* ── Divider ──────────────────────────────────────────────────── */
.divider {
  width: 48px; height: 3px;
  background: var(--orange);
  margin: 24px 0;
}

/* ── Badge ───────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
  background: rgba(232,98,10,0.1);
  color: var(--orange);
}

/* ── Hero Section ─────────────────────────────────────────────── */
#hero {
  margin-top: 72px;
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 0;
  background: var(--charcoal);
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.35;
}

.hero__content {
  position: relative;
  z-index: 1;
  padding: 0 48px;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
}

.hero__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.2s forwards;
}

.hero__title {
  font-family: var(--font-ko);
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  font-weight: 900;
  color: white;
  line-height: 1.1;
  margin-bottom: 28px;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.4s forwards;
}

.hero__title em {
  font-style: normal;
  color: var(--orange);
}

.hero__subtitle {
  font-size: 1rem;
  color: rgba(255,255,255,0.7);
  max-width: 500px;
  line-height: 1.75;
  margin-bottom: 40px;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.6s forwards;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.8s forwards;
}

.hero__stats {
  position: absolute;
  bottom: 48px; right: 48px;
  display: flex;
  gap: 40px;
  opacity: 0;
  animation: fadeUp 0.8s ease 1s forwards;
}

.hero__stat-number {
  font-family: var(--font-en);
  font-size: 2.5rem;
  font-weight: 700;
  color: white;
  line-height: 1;
}

.hero__stat-label {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.55);
  margin-top: 4px;
}

/* ── About Section ───────────────────────────────────────────── */
#about {
  background: white;
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about__img-wrap {
  position: relative;
  height: 480px;
  overflow-y: auto;
  border-radius: var(--radius-lg);
}

.about__img-main {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-lg);
}

.about__img-accent {
  width: 100%;
  height: auto;
  display: block;
  margin-top: 24px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.about__features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 40px;
}

.about__feature {
  padding: 20px;
  background: var(--light-gray);
  border-radius: var(--radius);
  border-left: 3px solid var(--orange);
}

.about__feature-title {
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.about__feature-desc {
  font-size: 0.78rem;
  color: var(--warm-gray);
  line-height: 1.6;
}

/* ── Timeline (History) ──────────────────────────────────────── */
#history {
  background: var(--charcoal);
  color: white;
}

#history .section-title { color: white; }
#history .section-subtitle { color: rgba(255,255,255,0.6); }

.timeline {
  position: relative;
  margin-top: 64px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 60px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%; top: 0; bottom: 0;
  width: 1px;
  background: rgba(255,255,255,0.15);
  transform: translateX(-50%);
}

.timeline-item {
  padding: 20px 0;
  position: relative;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.timeline-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.timeline-item:nth-child(odd) {
  text-align: right;
  padding-right: 40px;
}

.timeline-item:nth-child(even) {
  padding-left: 40px;
  margin-top: 40px;
}

.timeline-year {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--orange);
  margin-bottom: 4px;
}

.timeline-text {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.6;
}

/* ── Products Section ────────────────────────────────────────── */
#products {
  background: var(--cream);
}

/* ── Contact Section ─────────────────────────────────────────── */
#contact {
  background: white;
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact__info-item {
  display: flex;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

.contact__info-icon {
  width: 40px; height: 40px;
  background: rgba(232,98,10,0.1);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.contact__info-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mid-gray);
  margin-bottom: 4px;
}

.contact__info-value {
  font-size: 0.9rem;
  color: var(--charcoal);
  font-weight: 500;
}

.contact__certifications {
  margin-top: 40px;
}

.cert-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.cert-tag {
  padding: 8px 16px;
  background: var(--light-gray);
  border-radius: var(--radius);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--warm-gray);
  border: 1px solid var(--border);
}

/* ── Footer ─────────────────────────────────────────────────── */
footer {
  background: #111;
  color: rgba(255,255,255,0.6);
  padding: 48px 0;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.footer__logo {
  color: white;
  font-family: var(--font-en);
  font-size: 1.2rem;
  font-weight: 700;
}

.footer__links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer__links a {
  font-size: 0.78rem;
  transition: color var(--transition);
}

.footer__links a:hover { color: var(--orange); }

.footer__copy {
  font-size: 0.75rem;
}

/* ── Animations ──────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-5 { grid-template-columns: repeat(3, 1fr); }
  .about__grid,
  .contact__grid,
  .timeline { grid-template-columns: 1fr; gap: 40px; }
  .timeline::before { left: 16px; }
  .timeline-item:nth-child(odd),
  .timeline-item:nth-child(even) {
    text-align: left;
    padding-left: 40px;
    padding-right: 0;
    margin-top: 0;
  }
}

@media (max-width: 768px) {
  .nav { padding: 0 24px; }
  .nav__links { display: none; }
  .container { padding: 0 24px; }
  section { padding: 64px 0; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .grid-4, .grid-5 { grid-template-columns: repeat(2, 1fr); }
  .hero__stats { position: static; margin-top: 48px; }
  .about__img-accent { display: none; }
}
