/* ===== 현장 브랜드: 강화 두산위브 센트럴 (로고 네이비 · 위브 브론즈) — 기준 사이트 CSS 위에 색만 덮어씀 ===== */
:root {
  --main: #0b2160;
  --point: #9a7a5f;
  --line: #e0e3ea;
  --bg-alt: #f3f4f8;
  --reg-dark1: #12296b;
  --reg-dark2: #071640;
  --reg-gold: #c9a989;
  --hero-title: #0b2160;
  --sub: #5b6683;
}
.tab-btn:hover { background: rgba(11,33,96,.06); }
.btn-primary { box-shadow: none; }
.info-table th { background: #f6f7fa; }

@media (min-width: 769px) {
  body.home .hero-sky { background: #8ec3f2; }
  .hero-sub { background: linear-gradient(90deg, rgba(11,33,96,.88), rgba(11,33,96,.6)) !important; }
  .hero-sub span::before { background: #c9a989; }
}

/* 글씨가 왼쪽 아파트 위에 걸림 → 흰 글씨 + 진한 그림자 */
@media (min-width: 769px) {
  .hero-copy { color: #fff; }
  .hero-copy h1 { color: #fff !important; text-shadow: 0 0 4px rgba(5,14,40,.9), 0 0 14px rgba(5,14,40,.75), 0 2px 34px rgba(5,14,40,.7), 0 0 60px rgba(5,14,40,.45) !important; }
  .hero-lead, body.home .hero-kicker { color: #fff !important; font-weight: 700 !important; text-shadow: 0 0 3px rgba(5,14,40,1), 0 0 8px rgba(5,14,40,.9), 0 0 22px rgba(5,14,40,.75) !important; }
  .hero-lead { font-size: 23px !important; }
  body.home .hero-kicker { color: #f1dcc4 !important; font-size: 15px !important; font-family: 'Pretendard Variable', Pretendard, sans-serif !important; font-weight: 800 !important; letter-spacing: .28em !important; }
}
/* 로고: 남색 박스형이라 투명 헤더에서는 흰색판(글씨 뚫림)으로 교체 */
.logo img { height: 56px; }
.logo .logo-w { display: none; }
@media (min-width: 769px) {
  body.home .site-header:not(.solid):not(.mega-open) .logo .logo-c { display: none; }
  body.home .site-header:not(.solid):not(.mega-open) .logo .logo-w { display: block; filter: drop-shadow(0 1px 6px rgba(5,14,40,.45)) !important; }
  /* 첫 화면 투명 헤더: 로고·메뉴가 하늘·건물 위에서도 읽히도록 위쪽만 은은하게 어둡게 */
  body.home .site-header::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: calc(100% + 70px); background: linear-gradient(rgba(6,20,60,.5) 0%, rgba(6,20,60,.32) 55%, rgba(6,20,60,0) 100%); pointer-events: none; z-index: -2; transition: opacity .45s ease; }
  body.home .site-header.solid::after, body.home .site-header.mega-open::after { opacity: 0; }
  body.home .site-header:not(.solid):not(.mega-open) .gnb > ul > li > a { font-weight: 700; text-shadow: 0 0 2px rgba(5,14,40,.8), 0 1px 10px rgba(5,14,40,.6) !important; }
}
.site-footer .footer-logo { height: 30px !important; filter: none !important; opacity: .9; }
@media (max-width: 768px) { .logo img { height: 34px; } body.home .hero-kicker { font-size: 11.5px !important; letter-spacing: .16em !important; } }

/* 사업개요: PC는 사진 높이 = 오른쪽(문구+표) 높이 */
.biz-grid .biz-img img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 1025px) {
  .biz-grid { align-items: stretch; }
  .biz-grid .biz-img { position: relative; margin: 0; overflow: hidden; min-height: 0; }
  .biz-grid .biz-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 45%; }
  .biz-grid > div { align-self: start; }
}
@media (max-width: 1024px) { .biz-grid .biz-img img { aspect-ratio: 4 / 3; height: auto; object-fit: cover; } }
.biz-slogan { margin: 0 0 16px; padding: 16px 20px; background: var(--main); color: #fff; font-size: 16px; line-height: 1.6; }
.biz-slogan strong { color: #e2c9ad; font-family: 'Noto Serif KR', serif; font-weight: 600; font-size: 19px; }

/* 프리미엄 카드 사진 */
.pcard.has-photo { padding-top: 0; overflow: hidden; }
.pcard .pc-photo { margin: 0 -26px 22px; aspect-ratio: 10 / 7; overflow: hidden; border-bottom: 1px solid var(--line); }
.pcard .pc-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.pcard.has-photo:hover .pc-photo img { transform: scale(1.04); }
@media (max-width: 768px) { .pcard .pc-photo { margin: 0 -20px 18px; } }

/* 프리미엄: 위 설명 상자 폭 = 아래 사진 카드 묶음 폭 */
[data-panel="b-premium"] .intro-card { max-width: none; }

/* We Have: 사진+설명 왼쪽 / 3x3 버튼 오른쪽 */
.special-block.have { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.special-block.have .figure { margin: 0 0 18px; max-width: none; }
.special-block.have .figure img { width: 100%; display: block; }
.special-block.have .sp-head { margin-bottom: 0; }
.special-block.have .tile-grid { height: 100%; grid-auto-rows: 1fr; }
.special-block.have .tile-grid li { display: flex; flex-direction: column; align-items: center; justify-content: center; }
@media (max-width: 768px) { .special-block.have { grid-template-columns: 1fr; gap: 18px; } .special-block.have .tile-grid { height: auto; } }

/* 카드 묶음 열 수 */
.point-grid.two { grid-template-columns: repeat(2, 1fr); }
.point-grid.three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 768px) { .point-grid.two, .point-grid.three { grid-template-columns: 1fr; } }
.photo-slider + .point-grid { margin-top: 22px; }

/* 상품특화 */
.special-block { max-width: var(--figure-max); margin: 46px auto 0; }
.sp-head { margin-bottom: 18px; }
.sp-head span { display: block; font-size: 28px; font-weight: 800; letter-spacing: -.01em; color: var(--point); font-family: 'Noto Serif KR', serif; }
.sp-head h3 { margin: 4px 0 6px; font-size: 20px; color: var(--main); }
.sp-head p { margin: 0; color: #555; line-height: 1.6; }
.tile-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tile-grid li { padding: 18px 10px; text-align: center; font-weight: 700; color: #fff; background: var(--point); font-size: 15px; line-height: 1.4; }
.tile-grid li:nth-child(odd) { background: var(--main); }
.tile-grid li small { display: block; font-weight: 500; font-size: 12px; opacity: .85; }
.special-block.live { display: grid; grid-template-columns: 300px 1fr; gap: 36px; align-items: center; }
.special-block.live .figure { margin: 0; max-width: none; }
.feature-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--main); }
.feature-list li { padding: 12px 4px; border-bottom: 1px solid var(--line); color: #666; font-size: 14px; }
.feature-list li b { display: inline-block; min-width: 190px; color: var(--main); font-size: 16px; }
.sp-note { margin: 10px 0 0; font-size: 12.5px; color: var(--muted); }
@media (max-width: 768px) {
  .sp-head span { font-size: 22px; }
  .tile-grid li { padding: 14px 6px; font-size: 13.5px; }
  .special-block.live { grid-template-columns: 1fr; gap: 18px; }
  .special-block.live .figure { max-width: 240px; margin: 0 auto; }
  .feature-list li b { display: block; min-width: 0; }
}

/* 커뮤니티 배치 탭 */
.comm-tabs { margin-top: 40px; }
.cm-desc { text-align: center; margin: 0 0 12px; color: var(--main); font-weight: 700; }

/* 타입 색 (06·07 범례 색) */
.type-table .t59a, .type-legend i.t59a { background: #f2ee8e; }
.type-table .t59b, .type-legend i.t59b { background: #b3d58a; }
.type-table .t72a, .type-legend i.t72a { background: #f6b52d; }
.type-table .t72b, .type-legend i.t72b { background: #ee7c22; color: #fff; }
.type-table .t84a, .type-legend i.t84a { background: #8db9e3; }

/* ===== 동호수배치도: 흰 테두리 이미지 + 동별 표 ===== */
.unit-split { max-width: var(--figure-max); margin: 0 auto 44px; }
.unit-frame img { background: #fff; padding: 22px; border: 1px solid #d6dae2 !important; }
.dong-grid { display: grid; gap: 12px; margin-top: 16px; }
.dong-grid.c4 { grid-template-columns: repeat(4, 1fr); }
.dong-card { background: #fff; border: 1px solid var(--line); }
.type-table.dong-mini { min-width: 0; width: 100%; border-top: 0; font-size: 13.5px; table-layout: fixed; }
.type-table.dong-mini caption { caption-side: top; padding: 9px 6px; background: var(--main); color: #fff; font-weight: 800; font-size: 15px; }
.type-table.dong-mini caption small { font-weight: 500; opacity: .85; }
.type-table.dong-mini th, .type-table.dong-mini td { padding: 7px 2px; }
.type-table.dong-mini th { width: 44px; font-size: 12px; }
.type-table.dong-mini td[class^="t"] { font-weight: 800; }
.type-legend { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; margin: 0 auto 18px; padding: 0; font-size: 14px; color: #444; }
.type-legend li { display: flex; align-items: center; gap: 6px; }
.type-legend i { width: 14px; height: 14px; display: inline-block; }
.type-legend li.sum { font-weight: 800; color: var(--main); }
@media (max-width: 1024px) { .dong-grid.c4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) { .unit-frame img { padding: 8px; } .dong-grid.c4 { grid-template-columns: 1fr; } }

/* ===== 평면: 면적 정보 카드 (이미지 속 면적 박스 → HTML) ===== */
.plan-info { max-width: 900px; margin: 0 auto 8px; display: flex; align-items: stretch; background: #fff; border: 1px solid var(--line); }
.plan-info .pi-name { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 16px 22px; background: var(--main); color: #fff; }
.plan-info .pi-name b { font-size: 34px; line-height: 1; font-weight: 800; }
.plan-info .pi-name span { font-size: 12px; letter-spacing: .25em; opacity: .8; }
.plan-info .pi-name em { font-style: normal; margin-top: 6px; padding: 2px 10px; background: var(--point); font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.plan-info dl { flex: 1; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); }
.plan-info dl div { display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 12px 6px; border-left: 1px solid var(--line); }
.plan-info dt { font-size: 13px; color: var(--muted); }
.plan-info dd { margin: 4px 0 0; font-size: 15.5px; font-weight: 700; color: var(--main); }
.plan-info dl div.em dd { color: var(--point); }
.plan-total { max-width: 900px; margin: 0 auto 14px; text-align: right; font-size: 13px; color: var(--muted); }
#floorplan .point-grid.two { max-width: 900px; margin: 0 auto 18px; }
.figure.plan { max-width: 900px; }
@media (max-width: 768px) {
  .plan-info { flex-direction: column; }
  .plan-info .pi-name { flex-direction: row; gap: 8px; padding: 12px; }
  .plan-info .pi-name b { font-size: 26px; }
  .plan-info .pi-name em { margin: 0 0 0 4px; }
  .plan-info dl { grid-template-columns: repeat(2, 1fr); }
  .plan-info dl div { border-left: 0; border-top: 1px solid var(--line); }
  .plan-info dl div.em { grid-column: 1 / -1; }
}
