/* =========================================================
   덕수궁 디팰리스 — Site Style
   Palette: Gold #9B8039 / Deep Gold #7D6628 / Light Gold #BFA660
            Charcoal #2A2A2A / Soft Ivory #FAF7EF
   Font   : Pretendard (시니어 가독성 우선 — 본문 18~19px)
   ========================================================= */
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.css');

:root {
  --gold:        #9B8039;
  --gold-dark:   #7D6628;
  --gold-light:  #BFA660;
  --gold-soft:   #E8DDB8;
  --ivory:       #FAF7EF;
  --beige:       #F2EBD9;
  --charcoal:    #2A2A2A;
  --text:        #1F1F1F;
  --text-soft:   #555555;
  --border:      #DCD3BC;
  --white:       #FFFFFF;
  --shadow-sm:   0 2px 8px rgba(60, 50, 20, .08);
  --shadow-md:   0 6px 22px rgba(60, 50, 20, .12);
  --shadow-lg:   0 14px 40px rgba(60, 50, 20, .18);
  --radius:      14px;
  --header-h:    78px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Pretendard', -apple-system, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  font-size: 18px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-dark); text-decoration: none; }
a:hover { color: var(--gold); }
button { font-family: inherit; cursor: pointer; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ===== Header (sticky) ===== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  height: var(--header-h);
}
.header-inner {
  max-width: 1280px; height: 100%;
  margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px;
}
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand img { height: 46px; width: auto; }
.brand-text { line-height: 1.2; }
.brand-text strong { font-size: 17px; color: var(--charcoal); display: block; letter-spacing: -.3px; }
.brand-text span { font-size: 13px; color: var(--gold-dark); font-weight: 600; }

.nav { display: flex; align-items: center; gap: 2px; }
.nav a {
  color: var(--text); font-weight: 600; font-size: 16px;
  padding: 9px 12px; border-radius: 8px;
  transition: all .18s;
  white-space: nowrap;
}
.nav a:hover, .nav a.active { background: var(--ivory); color: var(--gold-dark); }

/* ─ 타입정보 드롭다운 ─ */
.nav-dropdown { position: relative; }
.nav-dropdown-toggle {
  background: none; border: none; cursor: pointer;
  color: var(--text); font-weight: 600; font-size: 16px;
  font-family: inherit; padding: 9px 12px; border-radius: 8px;
  display: flex; align-items: center; gap: 4px;
  white-space: nowrap; transition: all .18s;
}
.nav-dropdown-toggle:hover,
.nav-dropdown-toggle.active { background: var(--ivory); color: var(--gold-dark); }
.dropdown-arrow { font-size: 9px; display: inline-block; transition: transform .2s; }
.nav-dropdown-menu {
  display: none; position: absolute; top: calc(100% + 6px); left: 0;
  background: #fff; border: 1px solid var(--border);
  border-radius: 8px; min-width: 120px;
  box-shadow: 0 6px 20px rgba(0,0,0,.12);
  z-index: 200; padding: 6px 0;
}
.nav-dropdown-menu a {
  display: block; padding: 10px 18px;
  color: var(--text); font-size: 15px; font-weight: 600;
}
.nav-dropdown-menu a:hover,
.nav-dropdown-menu a.active { background: var(--ivory); color: var(--gold-dark); }
.nav-dropdown:hover .nav-dropdown-menu { display: block; }
.nav-dropdown:hover .dropdown-arrow { transform: rotate(180deg); }

.header-cta {
  display: flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: #fff !important;
  padding: 11px 22px;
  border-radius: 999px;
  font-weight: 700; font-size: 16px;
  box-shadow: 0 4px 14px rgba(155, 128, 57, .35);
  transition: transform .18s, box-shadow .18s;
}
.header-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(155, 128, 57, .45);
  color: #fff;
}

.menu-toggle {
  display: none; background: transparent; border: 0;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  color: var(--charcoal);
}
.menu-toggle svg { width: 28px; height: 28px; }

/* ===== Page wrapper ===== */
main { padding-top: var(--header-h); }

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 620px;
  color: #fff;
  display: flex; align-items: center;
  padding: 80px 0;
  overflow: hidden;
  background: #1a1a1a; /* fallback */
}
.hero-bg {
  position: absolute; inset: 0;
  z-index: 0;
}
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  animation: heroFade 24s infinite cubic-bezier(.45,.0,.55,1);
  will-change: opacity;
}
.hero-slide:nth-child(1) { animation-delay: 0s; }
.hero-slide:nth-child(2) { animation-delay: 6s; }
.hero-slide:nth-child(3) { animation-delay: 12s; }
.hero-slide:nth-child(4) { animation-delay: 18s; }

@keyframes heroFade {
   0%   { opacity: 0; }
   4%   { opacity: 1; }   /* 페이드 인 ~1s */
  25%   { opacity: 1; }   /* 6초까지 유지 */
  29%   { opacity: 0; }   /* ~1s 페이드 아웃 */
 100%   { opacity: 0; }
}
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(135deg, rgba(20, 18, 10, .68), rgba(40, 30, 10, .48));
}
.hero .hero-inner { position: relative; z-index: 2; }
.hero-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; width: 100%; }
.hero-eyebrow {
  display: inline-block;
  font-size: 14px; font-weight: 700; letter-spacing: 4px;
  color: var(--gold-light);
  border: 1px solid var(--gold-light);
  padding: 8px 18px; border-radius: 999px;
  margin-bottom: 24px;
}
.hero h1 {
  font-size: 52px; line-height: 1.18; letter-spacing: -1.5px;
  margin: 0 0 18px;
  font-weight: 800;
  text-shadow: 0 2px 18px rgba(0,0,0,.45);
}
.hero h1 .accent { color: var(--gold-light); }
.hero p.lead {
  font-size: 20px; line-height: 1.7; margin: 0 0 32px;
  color: rgba(255,255,255,.92);
  text-shadow: 0 1px 8px rgba(0,0,0,.4);
  word-break: keep-all;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 30px;
  border-radius: 999px;
  font-weight: 700; font-size: 17px;
  border: 0; cursor: pointer;
  transition: all .2s;
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: #fff !important;
  box-shadow: 0 8px 24px rgba(155, 128, 57, .4);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(155, 128, 57, .55); color: #fff; }
.btn-outline {
  background: rgba(255,255,255,.1); color: #fff !important;
  border: 2px solid rgba(255,255,255,.6);
  backdrop-filter: blur(4px);
}
.btn-outline:hover { background: #fff; color: var(--gold-dark) !important; border-color: #fff; }
.btn-ghost {
  background: transparent; color: var(--gold-dark) !important;
  border: 2px solid var(--gold);
}
.btn-ghost:hover { background: var(--gold); color: #fff !important; }

/* ===== Hero spec card ===== */
.hero-card {
  background: rgba(255,255,255,.97);
  color: var(--text);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-lg);
}
.hero-card h3 {
  margin: 0 0 18px; font-size: 22px; color: var(--charcoal);
  border-left: 4px solid var(--gold); padding-left: 12px;
}
.hero-card dl { margin: 0; display: grid; grid-template-columns: 1fr 1.6fr; gap: 12px 16px; }
.hero-card dt { color: var(--text-soft); font-weight: 600; font-size: 16px; }
.hero-card dd { margin: 0; color: var(--charcoal); font-weight: 600; font-size: 17px; }

/* ===== Section ===== */
section.block { padding: 90px 0; }
section.block.alt { background: var(--ivory); }

.section-head { text-align: center; margin-bottom: 50px; }
.section-head .eyebrow {
  display: inline-block;
  font-size: 14px; letter-spacing: 4px; color: var(--gold-dark); font-weight: 700;
  margin-bottom: 14px;
}
.section-head h2 {
  font-size: 40px; line-height: 1.25; margin: 0 0 14px;
  letter-spacing: -1px; color: var(--charcoal);
  font-weight: 800;
}
.section-head p {
  font-size: 19px; color: var(--text-soft); max-width: 760px; margin: 0 auto;
  line-height: 1.7;
}

/* ===== Feature grid ===== */
.feature-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
}
.feature-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  transition: all .25s;
}
.feature-card:hover { border-color: var(--gold); transform: translateY(-4px); box-shadow: var(--shadow-md); }
.feature-icon {
  width: 64px; height: 64px; margin: 0 auto 18px;
  border-radius: 50%; background: linear-gradient(135deg, var(--gold-soft), var(--gold-light));
  display: flex; align-items: center; justify-content: center;
  color: var(--gold-dark);
}
.feature-icon svg { width: 32px; height: 32px; }
.feature-card h3 { font-size: 22px; margin: 0 0 10px; color: var(--charcoal); }
.feature-card p { color: var(--text-soft); margin: 0; font-size: 17px; line-height: 1.7; }

/* ===== Spec table (사업개요) ===== */
.spec-table {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); border: 1px solid var(--border);
}
.spec-row {
  display: grid; grid-template-columns: 220px 1fr; gap: 0;
  border-bottom: 1px solid var(--border);
}
.spec-row:last-child { border-bottom: 0; }
.spec-key {
  background: var(--ivory); padding: 18px 24px;
  font-weight: 700; color: var(--charcoal); font-size: 17px;
  border-right: 1px solid var(--border);
}
.spec-val { padding: 18px 24px; font-size: 17px; color: var(--text); }

/* ===== Gallery ===== */
.gallery {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.gallery-item {
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); cursor: zoom-in;
  background: var(--ivory);
  aspect-ratio: 4/3;
}
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s;
}
.gallery-item:hover img { transform: scale(1.05); }

/* ===== Highlight banner ===== */
.banner-cta {
  background:
    linear-gradient(135deg, rgba(20, 15, 5, .55), rgba(20, 15, 5, .65)),
    url('../img/banner/cta-bg.jpg') center/cover no-repeat;
  color: #fff;
  padding: 100px 24px;
  text-align: center;
  border-radius: var(--radius);
  margin: 60px auto;
  max-width: 1200px;
}
.banner-cta h2 { font-size: 38px; margin: 0 0 18px; color: #fff; letter-spacing: -1px; }
.banner-cta p { font-size: 19px; opacity: .92; margin: 0 0 28px; }

/* ===== Form ===== */
.form-section { background: var(--ivory); padding: 90px 0; }
.form-wrap {
  max-width: 720px; margin: 0 auto;
  background: #fff; border-radius: var(--radius);
  padding: 48px 44px; box-shadow: var(--shadow-md);
  border-top: 6px solid var(--gold);
}
.form-wrap h2 {
  text-align: center; font-size: 32px; margin: 0 0 12px; color: var(--charcoal);
}
.form-wrap p.intro { text-align: center; color: var(--text-soft); margin: 0 0 36px; font-size: 18px; }
.field { margin-bottom: 22px; }
.field label {
  display: block; font-weight: 700; font-size: 17px;
  color: var(--charcoal); margin-bottom: 8px;
}
.field label .required { color: #c8392f; margin-left: 4px; }
.field input, .field textarea {
  width: 100%; font-family: inherit; font-size: 18px;
  padding: 14px 16px;
  border: 2px solid var(--border); border-radius: 10px;
  background: #fff; color: var(--text);
  transition: border-color .18s, box-shadow .18s;
}
.field input:focus, .field textarea:focus {
  outline: 0; border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(155, 128, 57, .15);
}
.field textarea { min-height: 130px; resize: vertical; }

.terms {
  background: var(--ivory); border: 1px solid var(--border);
  border-radius: 10px; padding: 16px 18px;
  font-size: 15px; line-height: 1.7; color: var(--text-soft);
  max-height: 150px; overflow-y: auto;
  margin-bottom: 12px;
}
.checkbox-row { display: flex; align-items: center; gap: 10px; }
.checkbox-row input[type="checkbox"] { width: 22px; height: 22px; accent-color: var(--gold); }
.checkbox-row label { font-size: 17px; font-weight: 600; cursor: pointer; }

.form-submit {
  width: 100%; padding: 18px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: #fff; border: 0; border-radius: 999px;
  font-size: 19px; font-weight: 700;
  box-shadow: 0 8px 22px rgba(155, 128, 57, .4);
  transition: all .2s;
  margin-top: 8px;
}
.form-submit:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(155, 128, 57, .55); }
.form-submit:disabled { opacity: .55; cursor: not-allowed; }

.form-msg { margin-top: 18px; padding: 14px 18px; border-radius: 10px; text-align: center; font-weight: 600; display: none; }
.form-msg.success { background: #E8F5E9; color: #2E7D32; display: block; }
.form-msg.error { background: #FFEBEE; color: #C62828; display: block; }

/* ===== Floating CTA (mobile + desktop) ===== */
.fab {
  position: fixed; right: 22px; bottom: 22px;
  z-index: 90; display: flex; flex-direction: column; gap: 12px;
}
.fab a {
  display: flex; align-items: center; gap: 10px;
  padding: 16px 22px;
  border-radius: 999px;
  font-weight: 700; font-size: 17px;
  box-shadow: var(--shadow-lg);
  transition: transform .2s;
}
.fab a:hover { transform: translateY(-3px); }
.fab .fab-call {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: #fff !important;
}
.fab .fab-form {
  background: var(--charcoal); color: #fff !important;
}
.fab svg { width: 22px; height: 22px; }

/* ===== Footer ===== */
.site-footer {
  background: #1A1A1A; color: #C8C2B0;
  padding: 60px 0 30px;
  font-size: 16px; line-height: 1.85;
}
.site-footer a { color: var(--gold-light); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.footer-brand img { height: 50px; margin-bottom: 18px; filter: brightness(0) invert(1) sepia(.3) saturate(2); }
.footer-brand strong { color: #fff; font-size: 18px; display: block; margin-bottom: 6px; }
.footer-col h4 { color: #fff; font-size: 17px; margin: 0 0 16px; }
.footer-col p, .footer-col li { margin: 6px 0; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-bottom {
  max-width: 1200px; margin: 40px auto 0; padding: 24px 24px 0;
  border-top: 1px solid #333;
  font-size: 14px; color: #888; line-height: 1.8;
}
.disclaimer {
  background: rgba(255,255,255,.04);
  border-left: 3px solid var(--gold);
  padding: 14px 18px;
  margin-top: 18px;
  font-size: 14px; color: #B8B0A0;
}

/* ===== Lightbox ===== */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.92);
  z-index: 1000;
  display: none; align-items: center; justify-content: center;
  padding: 30px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 90vh; border-radius: 8px; }
.lightbox-close {
  position: absolute; top: 22px; right: 26px;
  background: transparent; border: 0; color: #fff;
  font-size: 38px; cursor: pointer; line-height: 1;
}

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .hero { min-height: 420px; padding: 60px 0; }
  .hero h1 { font-size: 32px; }
  .hero p.lead { font-size: 17px; }
  .feature-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .nav.open {
    display: flex; flex-direction: column; align-items: stretch;
    position: absolute; top: var(--header-h); left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--border);
    padding: 12px 16px; gap: 4px;
    box-shadow: var(--shadow-md);
  }
  .nav.open a { padding: 14px 16px; border-bottom: 1px solid var(--ivory); border-radius: 0; }
  .nav-dropdown-toggle {
    width: 100%; padding: 14px 16px; border-radius: 0;
    border-bottom: 1px solid var(--ivory);
    justify-content: space-between;
  }
  .nav-dropdown-menu {
    position: static; box-shadow: none; border: none;
    border-radius: 0; padding: 0; background: var(--ivory);
  }
  .nav-dropdown-menu.open { display: block; }
  .nav-dropdown-menu a { padding: 12px 28px; border-bottom: 1px solid var(--border); }
  .header-cta { display: none; }
  .section-head h2 { font-size: 30px; }
  .form-wrap { padding: 32px 22px; }
  .spec-row { grid-template-columns: 110px 1fr; }
  .spec-key { padding: 14px 14px; font-size: 15px; }
  .spec-val { padding: 14px 14px; font-size: 15px; }
  .fab a { padding: 13px 18px; font-size: 15px; }
}

@media (max-width: 480px) {
  body { font-size: 17px; }
  .hero { min-height: 460px; padding: 48px 0; }
  .hero h1 { font-size: 26px; }
  .hero p.lead { font-size: 15px; margin: 0 0 18px; }
  .hero-actions { gap: 8px; }
  .hero .btn { padding: 11px 20px; font-size: 15px; gap: 6px; }
  .hero .btn svg { width: 16px; height: 16px; }
  .gallery { grid-template-columns: 1fr; }
  .banner-cta h2 { font-size: 26px; }
  .section-head h2 { font-size: 26px; }
  .brand-text strong { font-size: 15px; }
  .brand-text span { font-size: 11px; }
  .brand img { height: 38px; }
}
