/* ============================================================
   Neungpyeong Residence — Premium Townhouse Brochure
   Palette: charcoal #2C2C2C / beige #E8DFD3 / off-white #F7F5F1 / gold #8B6F47
   ============================================================ */

:root {
  --charcoal: #2C2C2C;
  --charcoal-soft: #3a3a3a;
  --beige: #E8DFD3;
  --offwhite: #F7F5F1;
  --gold: #8B6F47;
  --gold-deep: #6f5635;
  --line: rgba(44, 44, 44, 0.12);
  --line-strong: rgba(44, 44, 44, 0.22);
  --shadow-sm: 0 6px 18px rgba(44, 44, 44, 0.06);
  --shadow-md: 0 18px 40px rgba(44, 44, 44, 0.10);
  --shadow-lg: 0 28px 60px rgba(44, 44, 44, 0.14);
  --serif: "Noto Serif KR", "Times New Roman", serif;
  --sans: "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --max: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 300;
  color: var(--charcoal);
  background: var(--offwhite);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, picture, video, canvas, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(247, 245, 241, 0);
  transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(247, 245, 241, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--charcoal);
}
.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 40px; height: 40px;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-family: var(--serif);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.5px;
}
.brand-name {
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: 0.18em;
  font-size: 14px;
}
.brand-name em {
  font-style: normal;
  color: var(--gold);
  font-weight: 500;
  margin-left: 4px;
}
.brand-name.big {
  font-size: 20px;
  letter-spacing: 0.22em;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.site-nav a {
  font-size: 13.5px;
  letter-spacing: 0.06em;
  color: var(--charcoal-soft);
  font-weight: 400;
  transition: color 0.2s ease;
  position: relative;
}
.site-nav a:hover { color: var(--gold); }
.nav-cta {
  border: 1px solid var(--charcoal);
  padding: 10px 18px;
  color: var(--charcoal) !important;
  font-weight: 500 !important;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.nav-cta:hover {
  background: var(--charcoal);
  color: var(--offwhite) !important;
  border-color: var(--charcoal);
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  color: var(--offwhite);
  overflow: hidden;
  padding: 120px 0 80px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(28, 28, 28, 0.55) 0%, rgba(28, 28, 28, 0.78) 100%),
    radial-gradient(ellipse at 70% 30%, rgba(139, 111, 71, 0.32), transparent 60%),
    linear-gradient(135deg, #1c1c1c 0%, #2c2c2c 55%, #3a342a 100%);
  z-index: 0;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 80%, rgba(232, 223, 211, 0.06) 0, transparent 40%),
    radial-gradient(circle at 80% 20%, rgba(139, 111, 71, 0.18) 0, transparent 45%);
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max);
}
.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 24px;
}
.hero .eyebrow { color: #d6b988; }
.hero-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(36px, 6vw, 68px);
  line-height: 1.22;
  letter-spacing: -0.01em;
  margin: 0 0 32px;
  color: #fbf8f2;
}
.hero-sub {
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.85;
  color: rgba(251, 248, 242, 0.82);
  max-width: 640px;
  margin: 0 0 56px;
  font-weight: 300;
}
.hero-stats {
  display: flex;
  gap: 64px;
  margin-bottom: 56px;
  flex-wrap: wrap;
}
.stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.stat-num {
  font-family: var(--serif);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 700;
  color: #fbf8f2;
  line-height: 1;
}
.stat-num em {
  font-style: normal;
  font-size: 0.5em;
  font-weight: 500;
  color: var(--gold);
  margin-left: 4px;
  letter-spacing: 0.05em;
}
.stat-label {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(251, 248, 242, 0.6);
}
.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  letter-spacing: 0.4em;
  color: rgba(251, 248, 242, 0.5);
  z-index: 1;
}
.hero-scroll::after {
  content: "";
  display: block;
  width: 1px;
  height: 40px;
  background: linear-gradient(180deg, rgba(251, 248, 242, 0.6), transparent);
  margin: 12px auto 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 32px;
  border: 1px solid transparent;
  font-size: 14px;
  letter-spacing: 0.1em;
  font-weight: 500;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
  background: transparent;
  text-align: center;
}
.btn-primary {
  background: var(--gold);
  color: #fff;
  border-color: var(--gold);
}
.btn-primary:hover {
  background: var(--gold-deep);
  border-color: var(--gold-deep);
}
.btn-ghost {
  color: var(--offwhite);
  border-color: rgba(251, 248, 242, 0.4);
}
.btn-ghost:hover {
  border-color: var(--offwhite);
  background: rgba(251, 248, 242, 0.06);
}
.btn-wide { padding: 18px 40px; min-width: 220px; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }

/* ---------- Sections ---------- */
.section {
  padding: 140px 0;
  background: var(--offwhite);
}
.section-alt { background: var(--beige); }
.section-head {
  max-width: 760px;
  margin: 0 auto 80px;
  text-align: center;
}
.section-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin: 0 0 24px;
  color: var(--charcoal);
}
.section-lead {
  font-size: 16px;
  line-height: 1.95;
  color: var(--charcoal-soft);
  margin: 0;
  font-weight: 300;
}

/* ---------- Location cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.card {
  background: #fff;
  padding: 44px 32px;
  border: 1px solid var(--line);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold);
}
.card-num {
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.3em;
  color: var(--gold);
  margin-bottom: 28px;
}
.card-title {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 18px;
  color: var(--charcoal);
}
.card-body {
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--charcoal-soft);
  margin: 0;
}

/* ---------- Floors ---------- */
.floor-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 48px;
  align-items: start;
}
.floor-table {
  background: var(--offwhite);
  border: 1px solid var(--line);
  padding: 8px;
}
.section-alt .floor-table { background: #fff; }
.floor-table-inner { overflow-x: auto; }
.floor-table table,
.spec-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.floor-table th,
.floor-table td,
.spec-table th,
.spec-table td {
  text-align: left;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  font-weight: 300;
}
.floor-table thead th,
.spec-table thead th {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  border-bottom: 1px solid var(--gold);
}
.floor-table tbody th,
.spec-table tbody th {
  width: 140px;
  color: var(--charcoal);
  font-weight: 500;
}
.floor-tag {
  display: inline-block;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 20px;
  color: var(--charcoal);
  letter-spacing: 0.04em;
}
.floor-table td.num {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 500;
  color: var(--gold-deep);
}
.floor-table tr.sum th,
.floor-table tr.sum td {
  border-bottom: none;
  border-top: 2px solid var(--charcoal);
  padding-top: 22px;
  font-weight: 500;
  color: var(--charcoal);
}
.floor-table tr.sum td.num {
  font-size: 18px;
  color: var(--charcoal);
}

.floor-aside {
  padding: 12px 4px;
}
.floor-aside h3 {
  font-family: var(--serif);
  font-size: 22px;
  margin: 0 0 18px;
  color: var(--charcoal);
}
.floor-aside p {
  font-size: 15px;
  line-height: 1.9;
  color: var(--charcoal-soft);
  margin: 0 0 28px;
}
.floor-points {
  list-style: none;
  padding: 0;
  margin: 0;
}
.floor-points li {
  padding: 14px 0;
  border-top: 1px solid var(--line);
  font-size: 14.5px;
  color: var(--charcoal-soft);
  position: relative;
  padding-left: 22px;
}
.floor-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 24px;
  width: 10px;
  height: 1px;
  background: var(--gold);
}
.floor-points li:last-child { border-bottom: 1px solid var(--line); }

/* ---------- Options ---------- */
.options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-bottom: 64px;
}
.option-card {
  padding: 36px 32px;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.option-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.option-card h3 {
  font-family: var(--serif);
  font-size: 19px;
  margin: 0 0 12px;
  color: var(--charcoal);
}
.option-card p {
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--charcoal-soft);
  margin: 0;
}
.spec-table {
  background: #fff;
  border: 1px solid var(--line);
  padding: 8px;
}
.spec-table-inner { overflow-x: auto; }
.spec-table tbody th {
  width: 180px;
}
.spec-table td {
  color: var(--charcoal-soft);
  line-height: 1.8;
}
.spec-table tbody tr:last-child th,
.spec-table tbody tr:last-child td { border-bottom: none; }

/* ---------- Features & distances ---------- */
.features-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.features,
.distances {
  background: var(--offwhite);
  padding: 48px 40px;
  border: 1px solid var(--line);
}
.section-alt .features,
.section-alt .distances { background: #fff; }
.features-title {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--gold);
  color: var(--charcoal);
}
.features-list,
.distance-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.features-list li,
.distance-list li {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.features-list li:last-child,
.distance-list li:last-child { border-bottom: none; }
.feature-key,
.distance-place {
  font-weight: 500;
  color: var(--charcoal);
  flex: 0 0 auto;
}
.feature-val,
.distance-meta {
  color: var(--charcoal-soft);
  text-align: right;
  font-weight: 300;
  font-size: 14.5px;
}
.distance-meta {
  font-family: var(--serif);
  color: var(--gold-deep);
}

/* ---------- Inquiry ---------- */
.section-inquiry {
  background: var(--charcoal);
  color: var(--offwhite);
}
.section-inquiry .section-title { color: var(--offwhite); }
.section-inquiry .section-lead { color: rgba(247, 245, 241, 0.72); }
.section-inquiry .eyebrow { color: #d6b988; }

.inquiry-form {
  max-width: 820px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.field-full { grid-column: 1 / -1; }
.field label {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(247, 245, 241, 0.7);
}
.field input,
.field textarea {
  width: 100%;
  padding: 16px 18px;
  background: transparent;
  color: var(--offwhite);
  border: 1px solid rgba(247, 245, 241, 0.25);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 300;
  transition: border-color 0.2s ease, background 0.2s ease;
  border-radius: 0;
}
.field input::placeholder,
.field textarea::placeholder { color: rgba(247, 245, 241, 0.35); }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(247, 245, 241, 0.04);
}
.field textarea { resize: vertical; min-height: 140px; }
.form-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.form-note {
  margin: 0;
  font-size: 14px;
  color: rgba(247, 245, 241, 0.7);
  min-height: 1.4em;
}
.form-note.is-success { color: #d6b988; }
.form-note.is-error { color: #e8b8b8; }

/* ---------- Footer ---------- */
.site-footer {
  background: #1c1c1c;
  color: rgba(247, 245, 241, 0.6);
  padding: 60px 0 40px;
  font-size: 13px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  flex-wrap: wrap;
}
.footer-brand p { margin: 12px 0 0; max-width: 420px; line-height: 1.8; }
.footer-meta { text-align: right; max-width: 420px; }
.footer-meta p { margin: 0 0 6px; line-height: 1.8; }
.copyright {
  margin-top: 12px !important;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(247, 245, 241, 0.4);
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .floor-grid { grid-template-columns: 1fr; gap: 32px; }
  .features-wrap { grid-template-columns: 1fr; gap: 24px; }
  .site-nav { gap: 18px; }
  .site-nav a:not(.nav-cta) { display: none; }
  .section { padding: 100px 0; }
  .section-head { margin-bottom: 56px; }
}

@media (max-width: 640px) {
  .container { padding: 0 20px; }
  .header-inner { height: 64px; }
  .brand-name { font-size: 12px; letter-spacing: 0.16em; }
  .brand-mark { width: 36px; height: 36px; font-size: 13px; }
  .hero { padding: 110px 0 80px; min-height: 92vh; }
  .hero-stats { gap: 28px 36px; margin-bottom: 40px; }
  .hero-sub { margin-bottom: 40px; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .btn { padding: 14px 24px; }
  .btn-wide { width: 100%; min-width: 0; }
  .section { padding: 80px 0; }
  .section-head { margin-bottom: 44px; }
  .cards { grid-template-columns: 1fr; }
  .card { padding: 36px 24px; }
  .options-grid { grid-template-columns: 1fr; margin-bottom: 40px; }
  .option-card { padding: 28px 24px; }
  .features, .distances { padding: 32px 24px; }
  .features-list li, .distance-list li {
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
  }
  .feature-val, .distance-meta { text-align: left; }
  .inquiry-form { grid-template-columns: 1fr; gap: 22px; }
  .floor-table th, .floor-table td,
  .spec-table th, .spec-table td {
    padding: 14px 14px;
    font-size: 14px;
  }
  .floor-table tbody th, .spec-table tbody th { width: 90px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-meta { text-align: left; }
}
