:root {
  --navy: #1f3a5f;
  --blue: #2f7de1;
  --blue-light: #eaf3ff;
  --coral: #ff8a65;
  --bg: #ffffff;
  --bg-soft: #f5f9ff;
  --paper: #ffffff;
  --line: #e7edf5;
  --text: #2a3444;
  --text-soft: #6b7688;
  --radius: 12px;
  --max: 1140px;
  --font: 'Pretendard', 'Noto Sans KR', -apple-system, 'Apple SD Gothic Neo', sans-serif;
}

* { box-sizing: border-box; min-width: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; max-width: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  overflow-x: hidden;
  word-break: keep-all;
  overflow-wrap: break-word;
}
h1, h2, h3 {
  font-family: var(--font);
  color: var(--navy);
  font-weight: 800;
  margin: 0 0 .5em;
  line-height: 1.35;
  letter-spacing: -.01em;
}
p { margin: 0 0 1em; color: var(--text-soft); }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

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

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .78rem;
  color: var(--blue);
  font-weight: 700;
  margin-bottom: .8em;
}

.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: -.01em;
  border: 1px solid transparent;
  transition: all .2s ease;
}
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 8px 20px rgba(47,125,225,.28); }
.btn-primary:hover { background: #2568c9; }
.btn-outline { border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-ghost { border-color: var(--navy); color: var(--navy); background: #fff; }
.btn-ghost:hover { background: var(--bg-soft); }

/* Header */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,0);
  transition: background .3s ease, box-shadow .3s ease;
  padding: 22px 0;
}
.site-header.scrolled {
  background: rgba(255,255,255,.96);
  box-shadow: 0 2px 20px rgba(31,58,95,.08);
  padding: 14px 0;
  backdrop-filter: blur(6px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.logo-img { height: 34px; width: auto; display: block; }
.main-nav {
  display: flex;
  gap: 32px;
  margin: 0 auto;
}
.main-nav a {
  color: var(--navy);
  font-size: .95rem;
  font-weight: 500;
}
.main-nav a:hover { color: var(--blue); }
.phone-cta { color: var(--navy) !important; border-color: var(--navy) !important; white-space: nowrap; }
.phone-cta:hover { background: var(--bg-soft); }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--navy); }

/* Hero */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  color: var(--navy);
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center 70%;
  background-repeat: no-repeat;
}
.hero-bg::after {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 85% 10%, rgba(255,138,101,.18), transparent 40%),
    radial-gradient(circle at 10% 95%, rgba(47,125,225,.14), transparent 45%),
    linear-gradient(100deg, rgba(255,255,255,.96) 0%, rgba(255,255,255,.8) 22%, rgba(255,255,255,.38) 45%, rgba(255,255,255,.55) 65%, rgba(234,243,255,.85) 100%);
}
.hero-content { position: relative; z-index: 1; padding-top: 90px; width: 100%; }
.hero h1 {
  color: var(--navy);
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  font-weight: 900;
  max-width: 14ch;
}
.hero-sub {
  color: var(--text-soft);
  font-size: 1.05rem;
  max-width: min(46ch, 100%);
  margin-bottom: 2em;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* Section shared */
section { padding: 100px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-head h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }

/* Trust */
.trust { background: var(--bg-soft); }
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 72px;
}
.trust-card {
  text-align: center;
  padding: 32px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 4px 16px rgba(31,58,95,.05);
}
.trust-num {
  display: block;
  font-family: var(--font);
  font-size: 1.8rem;
  color: var(--blue);
  font-weight: 900;
  margin-bottom: .3em;
}
.trust-label { font-size: .88rem; color: var(--text-soft); }

.about-body {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  align-items: center;
}
.about-photo {
  aspect-ratio: 3/4;
  border-radius: var(--radius);
  background: linear-gradient(160deg, #eaf3ff, #fff0e9);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font);
  font-weight: 700;
  font-size: 1.1rem;
  text-align: center;
  padding: 20px;
  border: 1px solid var(--line);
}
.about-text h3 { font-size: 1.3rem; }
.about-note { font-size: .82rem; color: #9aa3b2; margin-top: 1.5em; }

/* Complexes */
.complex-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.complex-card {
  display: block;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  box-shadow: 0 4px 16px rgba(31,58,95,.05);
  transition: transform .25s ease, box-shadow .25s ease;
}
.complex-card:hover { transform: translateY(-4px); box-shadow: 0 16px 32px rgba(31,58,95,.12); }
.complex-visual {
  aspect-ratio: 16/10;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  font-family: var(--font);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -.01em;
}
.complex-1 { background: linear-gradient(135deg, #eaf3ff, #dceeff); }
.complex-2 { background: linear-gradient(135deg, #fff0e9, #ffe3d6); }
.complex-3 { background: linear-gradient(135deg, #eafaf3, #d9f5e6); }
.complex-4 { background: linear-gradient(135deg, #f3edff, #e6dcff); }
.complex-5 { background: linear-gradient(135deg, #fff8e0, #ffefc0); }
.complex-body { padding: 24px; }
.complex-body h3 { font-size: 1.1rem; margin-bottom: .3em; }
.complex-body p { font-size: .9rem; margin-bottom: 1.2em; }
.complex-link { color: var(--blue); font-weight: 700; font-size: .9rem; }
.complex-card-cta {
  background: linear-gradient(160deg, var(--blue), #1f5fc0);
  display: flex;
  align-items: center;
}
.complex-body-cta h3 { color: #fff; }
.complex-body-cta p { color: #dbe9ff; }
.complex-body-cta .btn-primary { background: #fff; color: var(--blue); box-shadow: none; }
.complex-body-cta .btn-primary:hover { background: #f0f6ff; }

/* Reviews */
.reviews { background: #fff; text-align: center; }
.reviews-placeholder { max-width: 560px; margin: 0 auto 28px; font-size: .92rem; }

/* Location */
.location-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: stretch;
}
.location-list { list-style: none; padding: 0; margin: 24px 0 32px; }
.location-list li { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.location-list a { color: var(--blue); font-weight: 600; }
.location-map { min-height: 320px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.location-map iframe { width: 100%; height: 100%; min-height: 320px; }

/* Contact */
.contact {
  background: linear-gradient(135deg, var(--blue), #1f5fc0);
  color: #fff;
  text-align: center;
}
.contact h2 { color: #fff; }
.contact-sub { color: #dbe9ff; max-width: 480px; margin: 0 auto 2em; }
.contact-inner .hero-actions { justify-content: center; }
.contact .btn-ghost { background: transparent; border-color: rgba(255,255,255,.7); color: #fff; }
.contact .btn-ghost:hover { background: rgba(255,255,255,.15); }
.contact .btn-primary { background: #fff; color: var(--blue); box-shadow: none; }
.contact .btn-primary:hover { background: #f0f6ff; }

/* Footer */
.site-footer { background: var(--bg-soft); color: var(--text-soft); padding: 40px 0; font-size: .85rem; border-top: 1px solid var(--line); }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 16px; }
.footer-brand { color: var(--navy); font-family: var(--font); font-weight: 800; font-size: 1.1rem; margin-bottom: .4em; }
.footer-note { color: #9aa3b2; font-size: .78rem; }
.footer-copy { white-space: nowrap; }

/* Detail pages (단지 상세) */
.detail-hero {
  position: relative;
  margin-top: 78px;
  height: 46vh;
  min-height: 280px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.detail-hero img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.detail-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(15,25,40,.55) 0%, rgba(15,25,40,.05) 55%);
}
.detail-hero-title {
  position: relative;
  z-index: 1;
  padding: 40px 0;
  width: 100%;
}
.detail-hero-title h1 { color: #fff; margin: 0; }
.detail-hero-title .eyebrow { color: #cfe3ff; }
.detail-hero-title.on-color h1,
.detail-hero-title.on-color .eyebrow { color: var(--navy); }
.detail-hero-title.on-color .eyebrow { color: rgba(31,58,95,.7); }

.back-link { display: inline-block; margin: 32px 0 8px; color: var(--blue); font-weight: 600; font-size: .92rem; }

.detail-body { padding: 24px 0 20px; }
.detail-body p { max-width: 68ch; }

.spec-table { width: 100%; border-collapse: collapse; margin: 24px 0 32px; max-width: 720px; }
.spec-table th, .spec-table td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: .92rem; }
.spec-table th { width: 140px; color: var(--navy); font-weight: 700; background: var(--bg-soft); }
.spec-table td { color: var(--text-soft); }
.spec-note { font-size: .8rem; color: #9aa3b2; margin-top: -8px; }

.detail-actions { display: flex; gap: 16px; flex-wrap: wrap; margin: 32px 0 56px; }

.related-title { font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: 16px; }
.related-list { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 60px; }
.related-list a {
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .88rem;
  font-weight: 600;
  color: var(--navy);
  background: #fff;
}
.related-list a:hover { border-color: var(--blue); color: var(--blue); }

/* Floating action button */
.fab {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 56px; height: 56px;
  background: var(--coral);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(255,138,101,.45);
  z-index: 90;
}

/* Responsive */
@media (max-width: 900px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .phone-cta { display: none; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .about-body { grid-template-columns: 1fr; }
  .about-photo { max-width: 200px; margin: 0 auto; }
  .complex-grid { grid-template-columns: repeat(2, 1fr); }
  .location-grid { grid-template-columns: 1fr; }
  section { padding: 64px 0; }

  .main-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: rgba(255,255,255,.98);
    box-shadow: 0 12px 24px rgba(31,58,95,.1);
    padding: 20px 24px;
    gap: 18px;
  }
}
@media (max-width: 560px) {
  .complex-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .hero-actions .btn, .contact-inner .btn { width: 100%; text-align: center; }
}
