/* 에코그린빌 16차 하귀 홈페이지 스타일 (구산 푸르지오·그랑라크 사이트 레이아웃 재사용) */
:root {
  --brand: #3f5f45;
  --brand-dark: #2d4632;
  --brand-soft: #eef2ec;
  --ink: #111;
  --sub: #666;
  --line: #e5e5e5;
  --bg-alt: #f4f7f2;
  --dark: #1a1a1a;
  --header-h: 72px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  font-family: 'Noto Sans KR', system-ui, -apple-system, 'Malgun Gothic', sans-serif;
  color: var(--ink);
  background: #fff;
  letter-spacing: -0.025em;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
b { font-weight: 700; }

/* ---------- 헤더 ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--header-h);
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
}
.header-inner {
  max-width: 1280px; height: 100%; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.logo { font-size: 22px; font-weight: 700; white-space: nowrap; }
.gnb { display: flex; gap: 40px; font-size: 15px; color: #333; }
.gnb a:hover { color: var(--brand); }
.header-tel { display: flex; align-items: center; gap: 6px; font-size: 20px; font-weight: 700; color: var(--brand); white-space: nowrap; }
.header-tel svg { width: 20px; height: 20px; fill: currentColor; }
.menu-btn { display: none; position: relative; flex: 0 0 40px; width: 40px; height: 40px; }
.menu-btn span, .menu-btn span::before, .menu-btn span::after {
  position: absolute; left: 10px; width: 20px; height: 2px; background: var(--ink); transition: .2s; content: '';
}
.menu-btn span { top: 19px; }
.menu-btn span::before { left: 0; top: -6px; }
.menu-btn span::after { left: 0; top: 6px; }
.menu-btn[aria-expanded="true"] span { background: transparent; }
.menu-btn[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

/* ---------- 메인 비주얼 ---------- */
.hero {
  position: relative; min-height: 66vh;
  /* 영상 비율(1920x900 = 46.875vw)만큼 높이를 주되 화면 높이는 넘지 않게 → 넓은 화면에서 위아래가 덜 잘림 */
  /* 투시도(2000x1090) 비율만큼 이미지 칸을 확보 — 헤더 아래부터 건물이 잘리지 않게 */
  min-height: max(70svh, min(100svh, calc(var(--header-h) + 54.5vw)));
  display: flex; align-items: flex-end; justify-content: center;
  color: #fff; text-align: center; overflow: hidden;
  padding: calc(var(--header-h) + 40px) 20px 80px;
}
.hero-video { position: absolute; inset: var(--header-h) 0 0; width: 100%; height: calc(100% - var(--header-h)); object-fit: cover; object-position: 50% 30%; background: #2d4632; }
/* 영상 위쪽 하늘과 단지명은 그대로 두고, 하단만 어둡게 해서 문구 가독성 확보 */
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,.72) 100%);
}
.hero-inner { position: relative; z-index: 2; }
.hero-kicker {
  display: inline-block; padding: 8px 20px; margin-bottom: 24px;
  border: 1px solid rgba(255,255,255,.7); border-radius: 40px;
  font-size: 18px; font-weight: 500;
}
.hero-title { font-size: clamp(40px, 6vw, 76px); font-weight: 900; line-height: 1.15; margin-bottom: 32px; text-shadow: 0 2px 12px rgba(0,0,0,.35); }
.hero-sub { display: block; font-size: .36em; font-weight: 500; margin-bottom: 8px; }
.hero-scroll {
  position: absolute; z-index: 2; bottom: 24px; left: 50%; transform: translateX(-50%);
  width: 44px; height: 44px; animation: bob 1.6s ease-in-out infinite;
}
.hero-scroll svg { width: 100%; height: 100%; fill: #fff; }
@keyframes bob { 50% { transform: translate(-50%, 8px); } }
/* 히어로 문구: 아래에서 위로 차례로 올라오며 등장 */
.hero-inner > * { opacity: 0; animation: rise .9s cubic-bezier(.2,.7,.2,1) forwards; }
.hero-inner > :nth-child(1) { animation-delay: .2s; }
.hero-inner > :nth-child(2) { animation-delay: .45s; }
.hero-inner > :nth-child(3) { animation-delay: .75s; }
@keyframes rise { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }

.btn-primary {
  display: inline-block; padding: 16px 56px;
  background: var(--brand); color: #fff; border-radius: 4px;
  font-size: 18px; font-weight: 700; transition: background .2s;
}
.btn-primary:hover { background: var(--brand-dark); }
.btn-primary.block { display: block; width: 100%; text-align: center; margin-top: 24px; }
.btn-outline {
  display: block; width: max-content; margin: 48px auto 0; padding: 14px 48px;
  border: 1px solid var(--brand); color: var(--brand); border-radius: 4px; font-weight: 700;
}
.btn-outline:hover { background: var(--brand); color: #fff; }

/* ---------- 조건 띠 ---------- */
.conditions { background: rgba(0,0,0,.88); color: #fff; padding: 36px 20px; text-align: center; }
.conditions-title { font-size: 18px; color: #f39a2d; margin-bottom: 20px; }
.conditions-list { list-style: none; display: flex; justify-content: center; flex-wrap: wrap; max-width: 1100px; margin: 0 auto; }
.conditions-list li { flex: 1 1 0; min-width: 180px; padding: 6px 20px; border-left: 1px solid rgba(255,255,255,.25); }
.conditions-list li:first-child { border-left: 0; }
.conditions-list em { display: block; font-style: normal; font-size: 15px; color: #bbb; }
.conditions-list strong { display: block; font-size: 28px; font-weight: 700; margin-top: 4px; }

/* ---------- 이미지 블록 ---------- */
.img-block { max-width: 1400px; margin: 0 auto; }
.img-block.narrow { max-width: 1200px; padding: 0 20px; }
.img-block img { width: 100%; }
.img-block .narrow-img { max-width: 1000px; margin: 16px auto; }
.img-block.narrow img + img { margin-top: 24px; }

/* ---------- 섹션 공통 헤드 ---------- */
.sec-head { text-align: center; margin-bottom: 48px; padding: 0 20px; }
.eyebrow { font-size: 14px; letter-spacing: .3em; color: var(--brand); font-weight: 500; margin-bottom: 12px; }
.sec-head h2 { font-size: clamp(26px, 3.4vw, 42px); font-weight: 700; line-height: 1.35; }
.sec-head p:not(.eyebrow) { color: var(--sub); margin-top: 14px; font-size: 17px; }
.sec-head.light h2 { color: #fff; }
.sec-head.light .eyebrow { color: #f7b45a; }

/* ---------- 입지 ---------- */
.location { padding: 100px 0; }
.loc-banner {
  max-width: 1200px; margin: 0 auto 48px; padding: 40px 24px; width: calc(100% - 40px);
  background: #232323; color: #fff; text-align: center; border-radius: 14px;
  box-shadow: 0 8px 30px rgba(0,0,0,.15);
}
.loc-eyebrow { letter-spacing: .4em; font-size: 14px; color: #ccc; margin-bottom: 14px; }
.loc-banner h2 { font-size: clamp(24px, 3.6vw, 44px); font-weight: 700; }
.loc-banner h2 b { color: #f39a2d; }
.loc-desc { margin-top: 14px; font-size: 18px; color: #ddd; }
.loc-desc b { color: #f39a2d; }
.loc-points {
  list-style: none; max-width: 1200px; margin: 40px auto 0; padding: 0 20px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px;
}
.loc-points li { background: var(--bg-alt); border-radius: 10px; padding: 20px; font-size: 15px; line-height: 1.6; color: #444; }
.loc-points b { display: block; font-size: 18px; color: var(--brand); margin-bottom: 6px; }

/* ---------- 사업개요 ---------- */
.overview { background: var(--bg-alt); padding: 100px 20px; }
.overview-inner { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: start; }
.overview-copy h2 { font-size: clamp(28px, 3.4vw, 44px); font-weight: 300; line-height: 1.35; }
.overview-copy h2 b { font-weight: 900; }
.overview-copy h2 span { font-weight: 500; color: var(--brand); }
.overview-copy p { margin-top: 24px; color: var(--sub); line-height: 1.8; font-size: 16px; }
.circle-tabs { display: flex; gap: 16px; margin-top: 40px; }
.circle-tabs button {
  width: 110px; height: 110px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 6px rgba(0,0,0,.1);
  font-size: 15px; font-weight: 500; transition: .2s;
}
.circle-tabs button.active, .circle-tabs button:hover { background: var(--brand); color: #fff; }
.panel { display: none; }
.panel.active { display: block; animation: fadeIn .4s; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } }
.overview-panels img { border-radius: 8px; box-shadow: 0 1px 8px rgba(0,0,0,.12); background: #fff; }
.spec { margin-top: 20px; background: #fff; border-radius: 8px; padding: 8px 24px; }
.spec div { display: flex; gap: 20px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.spec div:last-child { border: 0; }
.spec dt { flex: 0 0 56px; font-weight: 700; color: var(--brand); }
.spec dd { color: #333; line-height: 1.6; }

/* ---------- 평형 ---------- */
.units { padding: 100px 20px; }
.unit-tabs { display: flex; max-width: 1000px; margin: 0 auto; }
.unit-tabs button {
  flex: 1; padding: 16px 0; font-size: 16px; font-weight: 500;
  background: #3a3a3a; color: #ccc; border-right: 1px solid #555;
}
.unit-tabs button:last-child { border-right: 0; }
.unit-tabs button.active { background: var(--brand); color: #fff; }
.unit-panels { max-width: 1000px; margin: 0 auto; border: 1px solid var(--line); border-top: 0; padding: 32px; }
.unit-meta { display: flex; align-items: baseline; gap: 20px; margin-bottom: 20px; }
.unit-meta strong { font-size: 56px; font-weight: 700; color: var(--brand); line-height: 1; white-space: nowrap; }
.unit-meta small { font-size: .45em; }
.unit-meta span { font-size: 18px; color: var(--sub); }
.unit-panels img { margin: 0 auto; }

/* ---------- 프리미엄 카드 ---------- */
.premium { background: var(--bg-alt); padding: 100px 20px; }
.card-grid { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,.12); }
.card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.card h3 { font-size: 20px; padding: 20px 20px 6px; }
.card p { font-size: 15px; color: var(--sub); padding: 0 20px 24px; line-height: 1.6; }

/* ---------- 커뮤니티 ---------- */
.community { padding: 100px 0; }

/* ---------- 슬라이더 ---------- */
.gallery { background: var(--dark); padding: 100px 20px; }
.slider { position: relative; max-width: 1100px; margin: 0 auto; overflow: hidden; border-radius: 8px; }
.slides { display: flex; transition: transform .6s ease; }
.slides img { flex: 0 0 100%; width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.slides .slide { position: relative; flex: 0 0 100%; margin: 0; }
.slides .slide img { display: block; }
.cap-slider { margin-top: 32px; }
.cap-slider .slide::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.72) 100%); pointer-events: none; }
.cap-slider figcaption {
  position: absolute; z-index: 1; left: 0; right: 0; bottom: 44px; padding: 0 72px; color: #fff; text-align: left;
  opacity: 0; transform: translateY(16px); transition: opacity .9s ease .35s, transform .9s ease .35s;
}
.cap-slider .slide.active figcaption { opacity: 1; transform: none; }
.cap-slider figcaption b { display: block; font-size: 15px; letter-spacing: .2em; color: #f39a2d; margin-bottom: 8px; }
.cap-slider figcaption p { font-size: 22px; font-weight: 700; line-height: 1.45; text-shadow: 0 2px 10px rgba(0,0,0,.4); }
.location .cap-slider, .community .slider { max-width: 1160px; margin-left: auto; margin-right: auto; }
.community .slider { margin-top: 8px; margin-bottom: 24px; }
.slider-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(0,0,0,.45); color: #fff; font-size: 30px; line-height: 44px;
}
.slider-btn.prev { left: 16px; }
.slider-btn.next { right: 16px; }
.slider-dots { position: absolute; bottom: 16px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; }
.slider-dots button { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.5); }
.slider-dots button.active { background: #fff; }

/* ---------- 홍보영상 + e모델하우스 ---------- */
.media { padding: 100px 20px; }
.media-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 3fr 2fr; gap: 24px; }
.media-grid > * { min-width: 0; }
.yt { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: 10px; overflow: hidden; }
.yt iframe, .yt video, .yt-play, .yt-play img { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt-play img { object-fit: cover; }
.yt-icon {
  position: absolute; left: 50%; top: 50%; width: 72px; height: 50px; transform: translate(-50%, -50%);
  background: var(--brand); border-radius: 12px; transition: transform .2s;
}
.yt-icon::after { content: ''; position: absolute; left: 29px; top: 15px; border-style: solid; border-width: 10px 0 10px 18px; border-color: transparent transparent transparent #fff; }
.yt-play:hover .yt-icon { transform: translate(-50%, -50%) scale(1.08); }
.emh-stack { display: grid; gap: 16px; }
.emh-stack .emh { min-height: 200px; }
.emh-stack .emh-body { padding: 22px 24px; }
.emh { position: relative; display: block; border-radius: 10px; overflow: hidden; min-height: 240px; color: #fff; }
.emh img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.emh:hover img { transform: scale(1.05); }
.emh-body {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; padding: 28px;
  background: linear-gradient(180deg, rgba(0,0,0,.05), rgba(10,59,51,.9));
}
.emh-body em { font-style: normal; font-size: 13px; letter-spacing: .25em; color: #f7b45a; }
.emh-body strong { font-size: 26px; }
.emh-body span { font-size: 15px; color: #eee; }
.emh-body b { margin-top: 10px; align-self: flex-start; padding: 10px 20px; border: 1px solid #fff; border-radius: 4px; font-size: 15px; }

/* ---------- 방문예약 ---------- */
.reserve { position: relative; padding: 100px 20px; color: #fff; }
.reserve-bg { position: absolute; inset: 0; background: center / cover no-repeat; }
.reserve-bg::after { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,.72); }
.reserve-inner { position: relative; max-width: 640px; margin: 0 auto; }
.recent { margin-top: 20px; padding: 18px 20px; background: rgba(0,0,0,.45); border-radius: 12px; }
.recent-title { font-size: 14px; color: #f7b45a; letter-spacing: .1em; margin-bottom: 10px; }
.recent ul { list-style: none; }
.recent li { display: flex; align-items: center; gap: 10px; font-size: 15px; padding: 6px 0; border-top: 1px solid rgba(255,255,255,.1); }
.recent li:first-child { border-top: 0; }
.recent li::before { content: ''; flex: 0 0 7px; height: 7px; border-radius: 50%; background: #3ecf6e; }
.recent li span { color: #ccc; flex: 1; }
.recent li em { font-style: normal; font-size: 13px; color: #999; }

.reserve-form { background: rgba(255,255,255,.97); color: var(--ink); border-radius: 12px; padding: 40px 36px; box-shadow: 0 8px 30px rgba(0,0,0,.3); }
.reserve-form h2 { font-size: 28px; text-align: center; }
.form-sub { text-align: center; font-size: 14px; color: var(--brand); margin: 6px 0 24px; }
.privacy-title { font-weight: 700; font-size: 15px; margin-bottom: 8px; }
.privacy-body { font-size: 13px; line-height: 1.7; color: var(--sub); background: #f3f3f3; border-radius: 6px; padding: 12px 14px; max-height: 110px; overflow: auto; }
.check { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; margin: 12px 0 8px; cursor: pointer; }
.check input { margin-top: 3px; accent-color: var(--brand); width: 16px; height: 16px; }
.field { display: block; border: 0; margin-top: 18px; }
.field > span { display: block; font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.field i { color: var(--brand); font-style: normal; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; font: inherit; font-size: 16px;
  border: 1px solid #ccc; border-radius: 6px; background: #fff; color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--brand); border-color: transparent; }
.tel-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
/* 입력칸 기본 최소폭 때문에 작은 화면에서 그리드가 넘치지 않도록 */
.tel-row > *, .reserve-inner > *, .overview-inner > * { min-width: 0; }
.tel-row.two { grid-template-columns: 1fr 1fr; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; cursor: pointer; }
.chips input { position: absolute; left: 0; top: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.chips b { display: inline-block; padding: 9px 16px; border: 1px solid #ccc; border-radius: 40px; font-size: 15px; font-weight: 500; transition: .15s; }
.chips input:checked + b { background: var(--brand); border-color: var(--brand); color: #fff; }
.chips input:focus-visible + b { outline: 2px solid var(--brand); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; }
.form-msg { margin-top: 12px; text-align: center; font-size: 15px; min-height: 1.4em; }
.form-msg.error { color: #c0262d; }
.form-msg.ok { color: #1b7f3b; font-weight: 700; }

/* ---------- 푸터 ---------- */
.footer { background: #222; color: #aaa; text-align: center; padding: 48px 20px 40px; font-size: 14px; line-height: 1.8; }
.footer-nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-bottom: 32px; }
.footer-nav a { padding: 10px 24px; background: var(--brand); color: #fff; border-radius: 30px; font-weight: 500; }
.footer-name { font-size: 24px; color: #fff; font-weight: 700; margin-bottom: 8px; }
.footer-tel { color: #fff; font-size: 16px; margin-bottom: 8px; }
.footer-note { max-width: 720px; margin: 16px auto; font-size: 13px; color: #888; }
.footer-blog a { color: #ddd; text-decoration: underline; }
.copyright { font-size: 12px; color: #777; }

/* ---------- 하위 페이지 공통 ---------- */
.gnb a.active { color: var(--brand); font-weight: 700; }
.page-hero {
  position: relative; margin-top: var(--header-h); height: 320px;
  display: flex; align-items: center; justify-content: center; text-align: center; color: #fff;
  background: center / cover no-repeat;
}
.page-hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.35), rgba(10,59,51,.78)); }
.page-hero-inner { position: relative; }
.page-hero .eyebrow { color: #f7b45a; }
.page-hero h1 { font-size: clamp(32px, 4vw, 48px); font-weight: 700; }
.sub-section { padding: 60px 20px 100px; }
.sub-tabs { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-bottom: 40px; }
.sub-tabs button {
  min-width: 140px; padding: 14px 24px; border: 1px solid var(--line); border-radius: 40px;
  font-size: 16px; font-weight: 500; color: #555; background: #fff; transition: .2s;
}
.sub-tabs button.active, .sub-tabs button:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.sub-panels { max-width: 1200px; margin: 0 auto; }
.sub-panels .panel > img { width: 100%; border-radius: 8px; box-shadow: 0 1px 8px rgba(0,0,0,.12); }
.sub-panels .panel > img + img { margin-top: 24px; }
.sub-panels .narrow-img { max-width: 720px; margin-left: auto; margin-right: auto; }
.sub-panels .loc-points { padding: 0; }
.way-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 24px; }
.way-cards > * { min-width: 0; }
.way-card { background: var(--bg-alt); border-radius: 10px; padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.way-card em { font-style: normal; font-size: 14px; font-weight: 700; color: var(--brand); }
.way-card strong { font-size: 18px; line-height: 1.5; }
.way-card span { font-size: 14px; color: var(--sub); }
.way-card > a { margin-top: auto; align-self: flex-start; padding: 8px 16px; border: 1px solid var(--brand); border-radius: 4px; color: var(--brand); font-size: 14px; font-weight: 700; }
.map-embed { position: relative; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: var(--bg-alt); }
.map-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- 모바일 하단 고정바 ---------- */
.quick-bar { display: none; }

/* ---------- 스크롤 등장 ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s, transform .7s; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-scroll { animation: none; }
  .hero-inner > * { opacity: 1; animation: none; }
  .cap-slider figcaption { transition: none; }
}

/* ---------- 반응형 ---------- */
@media (max-width: 996px) {
  :root { --header-h: 60px; }
  .gnb { display: none; }
  .header-tel { margin-left: auto; }
  .menu-btn { display: block; }
  .gnb.open {
    display: flex; flex-direction: column; gap: 0;
    position: fixed; top: var(--header-h); left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 8px 20px rgba(0,0,0,.1);
  }
  .gnb.open a { padding: 16px 20px; border-top: 1px solid var(--line); font-size: 16px; }
  .logo { font-size: 18px; }
  .header-tel { font-size: 17px; }
  .overview-inner, .reserve-inner { grid-template-columns: 1fr; gap: 40px; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .media-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { padding-bottom: 56px; }
  .header-inner { padding: 0 16px; }
  .logo { font-size: 16px; }
  /* 모바일: 영상을 화면 가득(cover) 채우고 문구를 영상 위 하단에 겹침 (영상 안에 글자가 없어 잘려도 됨) */
  .hero { min-height: 55svh; padding: calc(var(--header-h) + 24px) 16px 64px; }
  .hero::before { background: linear-gradient(180deg, rgba(0,0,0,.05) 30%, rgba(0,0,0,.75) 100%); }
  .hero-scroll { bottom: 14px; width: 36px; height: 36px; }
  .hero-kicker { font-size: 14px; margin-bottom: 16px; }
  .hero-title { font-size: 38px; margin-bottom: 24px; }
  .btn-primary { padding: 14px 44px; font-size: 16px; }
  .conditions { padding: 28px 16px; }
  .conditions-list li { flex: 0 0 50%; min-width: 0; padding: 12px 8px; border-left: 0; }
  .conditions-list strong { font-size: 22px; }
  .conditions-list li:last-child:nth-child(odd) { flex-basis: 100%; }
  .location, .overview, .units, .premium, .community, .gallery, .reserve { padding-top: 64px; padding-bottom: 64px; }
  .overview, .units, .premium, .gallery, .reserve { padding-left: 16px; padding-right: 16px; }
  .img-block.narrow { padding: 0 16px; }
  .loc-banner { width: calc(100% - 32px); padding: 28px 16px; }
  .loc-desc { font-size: 15px; }
  .loc-points { padding: 0 16px; }
  .cap-slider, .community .slider { margin-left: 16px; margin-right: 16px; }
  .cap-slider .slides img { aspect-ratio: 4 / 5; }
  .cap-slider figcaption { bottom: 40px; padding: 0 20px; }
  .cap-slider figcaption p { font-size: 17px; }
  .circle-tabs button { width: 88px; height: 88px; font-size: 14px; }
  .unit-tabs { flex-wrap: wrap; }
  .unit-tabs button { flex: 1 0 30%; font-size: 14px; padding: 12px 0; border-bottom: 1px solid #555; }
  .unit-panels { padding: 20px 12px; }
  .unit-meta { flex-direction: column; align-items: flex-start; gap: 8px; }
  .unit-meta strong { font-size: 40px; }
  .unit-meta span { font-size: 15px; }
  .card-grid { grid-template-columns: 1fr; }
  .slider-btn { width: 36px; height: 36px; font-size: 24px; line-height: 32px; }
  .reserve-form { padding: 28px 18px; }
  .footer-nav a { padding: 8px 16px; font-size: 13px; }
  .quick-bar {
    display: grid; grid-template-columns: repeat(3, 1fr);
    position: fixed; inset: auto 0 0; z-index: 60; height: 56px;
    background: var(--brand); box-shadow: 0 -2px 10px rgba(0,0,0,.2);
  }
  .quick-bar a { display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 16px; border-left: 1px solid rgba(255,255,255,.25); }
  .quick-bar a:first-child { border-left: 0; background: var(--brand-dark); }
  /* Netlify 무료 요금제 배지(우하단 약 63px)가 있으면 고정바를 그 위로 올림 */
  body.has-nf-badge { padding-bottom: 124px; }
  body.has-nf-badge .quick-bar { bottom: 64px; }
}

/* 작은 폰(320~400px)에서 헤더 전화번호가 밀려나지 않도록 (640px 규칙보다 뒤에 있어야 함) */
@media (max-width: 400px) {
  .header-inner { gap: 10px; }
  .logo { font-size: 15px; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  .header-tel { font-size: 15px; }
  .header-tel svg { width: 16px; height: 16px; }
  .hero-title { font-size: 34px; }
}

/* 하위 페이지 반응형 */
@media (max-width: 996px) {
  .way-cards { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .page-hero { height: 200px; }
  .sub-section { padding: 36px 16px 64px; }
  .sub-tabs { margin-bottom: 24px; }
  .sub-tabs button { min-width: 0; flex: 1 1 0; padding: 12px 8px; font-size: 14px; }
  .sub-panels .panel > img + img { margin-top: 16px; }
  .map-embed { aspect-ratio: 4 / 3; }
}

/* ---------- 메인 이벤트 팝업 ---------- */
.event-pop { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(0,0,0,.65); }
.event-pop[hidden] { display: none; }
.event-box {
  position: relative; width: 100%; max-width: 520px; max-height: calc(100svh - 32px); overflow-y: auto;
  background: var(--brand-dark); color: #fff; border: 1px solid #7ab531; border-radius: 14px; padding: 32px 28px 20px; text-align: center;
}
.event-x { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border: 1px solid rgba(255,255,255,.3); border-radius: 50%; font-size: 24px; line-height: 1; color: #fff; }
.event-eyebrow { font-size: 13px; letter-spacing: .3em; color: #f7b45a; }
.event-box h2 { font-size: 23px; margin: 8px 0 20px; }
.event-card { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 10px; padding: 16px; margin-bottom: 12px; }
.event-tag { font-size: 15px; color: #f7b45a; margin-bottom: 12px; }
.event-tag b { color: #fff; }
.gift-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.gift-row figure { background: #fff; color: var(--ink); border-radius: 8px; overflow: hidden; }
.gift-row img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.gift-row figcaption { font-size: 14px; font-weight: 700; padding: 0 8px 12px; line-height: 1.4; }
.gift-row small { display: block; font-size: 11px; font-weight: 400; color: var(--sub); margin-top: 2px; word-break: break-all; }
.event-card.voucher { border-color: #7ab531; }
.event-card.voucher .event-tag { margin-bottom: 4px; }
.event-card.voucher strong { display: block; font-size: 24px; color: #fff; }
.event-card.voucher span { display: block; font-size: 14px; color: #ccc; margin-top: 4px; }
.event-benefits { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 16px 0 8px; }
.event-benefits li { font-size: 13px; padding: 6px 12px; border: 1px solid #f39a2d; border-radius: 999px; color: #d6efb0; }
.event-note { font-size: 12px; color: #999; }
.event-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }
.event-cta .btn-primary { padding: 14px 0; background: #7ab531; color: #1a1a1a; }
.event-tel { display: flex; flex-direction: column; justify-content: center; border: 1px solid rgba(255,255,255,.35); border-radius: 4px; font-size: 13px; font-weight: 700; }
.event-tel span { font-size: 16px; }
.event-today { margin-top: 14px; font-size: 13px; color: #aaa; text-decoration: underline; }
@media (max-width: 640px) {
  .event-box { padding: 28px 16px 16px; }
  .event-box h2 { font-size: 19px; padding: 0 32px; }
  .event-card.voucher strong { font-size: 20px; }
  .event-card { padding: 12px; }
  .gift-row { gap: 8px; }
  .gift-row figcaption { font-size: 13px; padding: 0 6px 10px; }
}

/* ---------- 예시 이미지 표기 (AI 생성 컷) ---------- */
.ex-wrap { position: relative; }
.card, .hero { position: relative; }
.ex-badge {
  position: absolute; top: 10px; left: 10px; z-index: 2; pointer-events: none;
  padding: 3px 8px; border-radius: 4px; font-size: 12px; font-weight: 500; line-height: 1.4;
  background: rgba(0,0,0,.6); color: #fff; letter-spacing: 0;
}
.hero .ex-badge { top: auto; bottom: 12px; left: auto; right: 12px; }
.ex-note { max-width: 1100px; margin: 14px auto 0; font-size: 13px; color: #999; text-align: center; }
.unit-panels .ex-wrap { max-width: 900px; margin: 0 auto; }
.unit-panels .ex-wrap img { width: 100%; border-radius: 6px; }
.area-table { width: 100%; max-width: 900px; margin: 24px auto 0; border-collapse: collapse; font-size: 15px; text-align: center; }
.area-table th, .area-table td { padding: 10px 6px; border-bottom: 1px solid var(--line); }
.area-table thead th { background: var(--brand); color: #fff; font-weight: 500; }
.area-table tbody th { background: var(--brand-soft); color: var(--brand); }
@media (max-width: 640px) { .area-table { font-size: 13px; } }

/* 평형 탭 7개 → 모바일 4개씩 두 줄 */
@media (max-width: 640px) {
  .unit-tabs button { flex: 1 0 24%; }
}

/* ---------- e모델하우스 (내덕) ---------- */
.emodel { padding: 100px 20px; background: var(--bg-alt); }
.emodel-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.emodel-grid > * { min-width: 0; }
.emodel-card { display: flex; flex-direction: column; background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,.12); transition: transform .2s, box-shadow .2s; }
.emodel-card:hover { transform: translateY(-4px); box-shadow: 0 8px 20px rgba(0,0,0,.14); }
.emodel-img { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #ddd; }
.emodel-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.emodel-card:hover .emodel-img img { transform: scale(1.05); }
.emodel-img::after { content: '360°'; position: absolute; left: 12px; top: 12px; padding: 4px 10px; border-radius: 20px; background: rgba(10,59,51,.8); color: #fff; font-size: 13px; font-weight: 700; }
.emodel-body { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; background: var(--brand); color: #fff; }
.emodel-body strong { font-size: 20px; }
.emodel-body b { font-size: 14px; color: #f39a2d; white-space: nowrap; }
.emodel .ex-note { text-align: center; }
@media (max-width: 640px) {
  .emodel { padding: 64px 16px; }
  .emodel-grid { grid-template-columns: 1fr; gap: 14px; }
}

/* 내덕: 히어로 글자 가독성 (밝은 하늘·흰 건물 위) */
.hero::before { background: linear-gradient(180deg, rgba(0,0,0,.18) 0%, rgba(0,0,0,.08) 35%, rgba(0,0,0,.55) 75%, rgba(0,0,0,.78) 100%); }
.hero-kicker { background: rgba(10, 30, 24, .55); border-color: rgba(255,255,255,.55); text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.hero-sub { text-shadow: 0 1px 3px rgba(0,0,0,.8), 0 2px 12px rgba(0,0,0,.6); }
.hero-title { text-shadow: 0 2px 4px rgba(0,0,0,.7), 0 4px 24px rgba(0,0,0,.55); }

/* 조건 띠 제목 두 줄 (회사보유분 / 평당가) */
.conditions-title.has-sub { margin-bottom: 4px; }

/* 메인 조감도: 크게, 위아래 간격 좁게 */
#business { padding-top: 40px; }
#business .narrow-img { max-width: 1200px; margin: 0 auto; border-radius: 8px; }
#location { padding-top: 40px; }
@media (max-width: 640px) {
  #business { padding-top: 24px; }
  #location { padding-top: 24px; }
}

/* ---------- 세로 홍보영상 (9:16) ---------- */
.media-grid.vert { grid-template-columns: minmax(0, 360px) minmax(0, 1fr); align-items: start; justify-content: center; }
.yt.vertical { aspect-ratio: 9 / 16; }
@media (max-width: 760px) {
  .media-grid.vert { grid-template-columns: 1fr; }
  .yt.vertical { max-width: 360px; width: 100%; margin: 0 auto; }
}

/* ---------- 기본 옵션 사진 격자 (에코그린빌) ---------- */
.photo-grid {
  max-width: 1100px; margin: 0 auto; padding: 0 20px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
}
.photo-grid img { width: 100%; border-radius: 6px; }
@media (max-width: 720px) { .photo-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; } }

/* 모바일: 글자가 건물을 덮지 않게 이미지를 위에 크게, 문구는 아래 초록 배경에 */
@media (max-width: 720px) {
  .hero { display: block; min-height: 0; padding: var(--header-h) 0 0; background: var(--brand-dark); }
  .hero::before { display: none; }
  .hero-video { position: relative; inset: auto; height: min(50svh, 106vw); object-position: 50% 40%; }
  .hero-inner { padding: 28px 20px 36px; }
  .hero-scroll { display: none; }
}

/* 메인 이미지: 멀리서 천천히 줌인 (한 번만, 끝나면 그 자리에 멈춤) */
.hero-video { transform-origin: 50% 25%; animation: hero-zoom 20s cubic-bezier(.25,.1,.25,1) forwards; will-change: transform; }
@keyframes hero-zoom { from { transform: scale(1); } to { transform: scale(1.1); } }
@media (prefers-reduced-motion: reduce) { .hero-video { animation: none; } }

/* 모바일: 단지명·분양가 문구는 이미지 아래쪽에 겹치고, 방문예약 버튼만 이미지 아래에 */
@media (max-width: 720px) {
  .hero-text {
    position: absolute; z-index: 2; left: 0; right: 0; top: var(--header-h); height: min(50svh, 106vw);
    display: flex; flex-direction: column; justify-content: flex-end; align-items: center;
    padding: 0 16px 18px; background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,.7) 100%);
  }
  .hero-text .hero-kicker { margin-bottom: 10px; }
  .hero-text .hero-title { font-size: 32px; margin-bottom: 0; }
  .hero-inner { position: static; padding: 20px 20px 28px; }
}

/* 입지 슬라이드: 사진 안에 이름이 박혀 있어서 자르지 않고 원본 비율 그대로(늘리지 않게 폭 제한), 설명은 사진 아래 */
.location .cap-slider { max-width: 900px; }
.location .cap-slider .slide::after { display: none; }
.location .cap-slider .slides img { aspect-ratio: 2.4 / 1; object-fit: contain; background: #1f2b22; }
.location .cap-slider figcaption { position: static; padding: 18px 24px 46px; background: #1f2b22; text-align: center; }
.location .cap-slider figcaption p { font-size: 18px; text-shadow: none; }
.location .cap-slider .slider-btn { top: calc(min(100vw, 900px) / 4.8); }
@media (max-width: 720px) {
  .location .cap-slider .slides img { aspect-ratio: 2.4 / 1; }
  .location .cap-slider figcaption { padding: 14px 16px 42px; }
  .location .cap-slider figcaption p { font-size: 15px; }
}
