/* ==========================================================================
   이천 휴먼빌 클래스원 분양사무소 — 서브페이지 16종 공통 스타일
   Theme: Architectural Deep Navy + Crisp Pure White + Warm Ivory
   ========================================================================== */

/* Subpage Architectural Hero Banner */
.sub-hero {
  position: relative;
  padding: calc(var(--header-h) + 64px) 0 58px;
  background:
    radial-gradient(circle at 82% 24%, rgba(242, 237, 227, 0.14), transparent 46%),
    linear-gradient(135deg, var(--navy-950) 0%, var(--navy-900) 58%, var(--navy-800) 100%);
  color: var(--white);
  overflow: hidden;
  text-align: center;
}

.sub-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(242, 237, 227, 0.05) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(242, 237, 227, 0.05) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: 0.7;
  pointer-events: none;
}

.sub-hero-inner {
  position: relative;
  z-index: 2;
}

.sub-hero-en {
  font-family: var(--font-serif-en);
  font-size: clamp(1rem, 1.8vw, 1.24rem);
  font-weight: 600;
  letter-spacing: 0.42em;
  color: var(--ivory-300);
  text-transform: uppercase;
}

.sub-hero-kr {
  font-family: var(--font-serif-kr);
  font-size: clamp(2rem, 3.6vw, 3rem);
  font-weight: 600;
  margin-top: 10px;
  letter-spacing: 0.06em;
}

.sub-hero-desc {
  margin-top: 12px;
  font-size: 0.96rem;
  color: rgba(242, 237, 227, 0.76);
}

.sub-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  padding: 7px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(242, 237, 227, 0.2);
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.76);
}

.sub-breadcrumb strong {
  color: var(--white);
  font-weight: 600;
}

/* Sibling Submenu Tab Bar */
.sub-nav-bar {
  position: sticky;
  top: calc(var(--header-h) - 1px);
  z-index: 90;
  background: var(--white);
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 6px 20px rgba(7, 17, 32, 0.05);
}

.sub-nav-list {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px;
  padding: 0 12px;
}

.sub-nav-link {
  position: relative;
  padding: 17px 22px;
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--ink-500);
  white-space: nowrap;
  transition: color 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
}

.sub-nav-link::after {
  content: '';
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 0;
  height: 3px;
  background: var(--navy-900);
  transform: scaleX(0);
  transition: transform 0.3s var(--ease-luxury);
}

.sub-nav-link:hover,
.sub-nav-link.is-active {
  color: var(--navy-900);
}

.sub-nav-link.is-active::after {
  transform: scaleX(1);
}

/* Main Subpage Content Area */
.sub-main {
  padding: 68px 0 92px;
  min-height: 54vh;
}

/* Spec Summary Strip */
.spec-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 38px;
}

.spec-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-top: 3px solid var(--navy-900);
  border-radius: 12px;
  padding: 22px 24px;
  box-shadow: var(--shadow-sm);
}

.spec-card-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--navy-700);
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.spec-card-val {
  font-size: 1.06rem;
  font-weight: 700;
  color: var(--navy-950);
}

/* Content Image Showcase Frame with Click-to-Zoom */
.content-sheet {
  position: relative;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 18px;
  padding: 24px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.content-sheet-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-light);
  flex-wrap: wrap;
}

.content-sheet-label {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--navy-900);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.content-sheet-label::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--navy-900);
}

.zoom-trigger-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 15px;
  border-radius: 999px;
  background: var(--ivory-200);
  color: var(--navy-900);
  font-size: 0.82rem;
  font-weight: 700;
  transition: all 0.25s ease;
}

.zoom-trigger-btn:hover {
  background: var(--navy-900);
  color: var(--white);
}

.content-sheet-img {
  width: 100%;
  margin-inline: auto;
  border-radius: 10px;
  cursor: zoom-in;
}

/* Interactive Pill Tabs */
.inner-tabs-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 34px;
}

.inner-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  padding: 7px;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}

.inner-tab-btn {
  padding: 12px 30px;
  border-radius: 999px;
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--ink-500);
  transition: all 0.32s var(--ease-luxury);
}

.inner-tab-btn:hover {
  color: var(--navy-900);
}

.inner-tab-btn.is-active {
  background: var(--navy-900);
  color: var(--white);
  box-shadow: 0 8px 22px rgba(12, 27, 51, 0.22);
}

.inner-tab-panel {
  display: none;
  animation: tabPanelFade 0.55s var(--ease-luxury) forwards;
}

.inner-tab-panel.is-active {
  display: block;
}

@keyframes tabPanelFade {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Unit Action Buttons */
.unit-popup-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

/* VR Container */
.vr-stage-shell {
  background: var(--navy-950);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(242, 237, 227, 0.24);
  box-shadow: var(--shadow-lg);
}

.vr-stage-bar {
  padding: 16px 24px;
  background: linear-gradient(90deg, var(--navy-950), var(--navy-800));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.vr-stage-bar strong {
  font-size: 1rem;
  color: var(--ivory-200);
}

.vr-stage-bar span {
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.68);
  margin-left: 10px;
}

.vr-iframe-box {
  position: relative;
  width: 100%;
  height: min(72vh, 720px);
  min-height: 500px;
  background: var(--navy-900);
}

.vr-iframe-box iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* PDF Download Hero Panel */
.pdf-action-panel {
  background: linear-gradient(135deg, var(--navy-950), var(--navy-800));
  color: var(--white);
  border-radius: 18px;
  padding: 34px 36px;
  margin-bottom: 32px;
  border: 1px solid rgba(242, 237, 227, 0.22);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  box-shadow: var(--shadow-md);
}

.pdf-action-info h3 {
  font-family: var(--font-serif-kr);
  font-size: 1.48rem;
  font-weight: 600;
  margin-top: 6px;
}

.pdf-action-info p {
  font-size: 0.9rem;
  color: rgba(242, 237, 227, 0.76);
  margin-top: 6px;
}

.pdf-btn-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Notice / Disclaimer Box */
.sub-notice-box {
  margin-top: 32px;
  padding: 24px 28px;
  border-radius: 14px;
  background: var(--ivory-200);
  border: 1px solid var(--border-light);
  font-size: 0.86rem;
  color: var(--ink-500);
  line-height: 1.75;
}

.sub-notice-box strong {
  display: block;
  color: var(--navy-900);
  margin-bottom: 8px;
  font-size: 0.92rem;
}

.sub-notice-box li + li {
  margin-top: 4px;
}

/* Brand Story Custom Editorial Layout */
.brand-hero-card {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  min-height: 440px;
  display: flex;
  align-items: flex-end;
  color: var(--white);
  box-shadow: var(--shadow-lg);
  margin-bottom: 52px;
}

.brand-hero-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-hero-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 17, 32, 0.16) 0%, rgba(7, 17, 32, 0.88) 100%);
}

.brand-hero-content {
  position: relative;
  z-index: 2;
  padding: 46px 48px;
  max-width: 780px;
}

.brand-hero-content h3 {
  font-family: var(--font-serif-kr);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 600;
  line-height: 1.35;
  margin-top: 12px;
}

.brand-hero-content p {
  font-size: 1rem;
  color: rgba(242, 237, 227, 0.86);
  margin-top: 14px;
  line-height: 1.8;
}

.brand-pillars-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin: 44px 0 56px;
}

.brand-pillar-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 34px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease-luxury), border-color 0.35s ease;
}

.brand-pillar-card:hover {
  transform: translateY(-4px);
  border-color: var(--navy-800);
}

.brand-pillar-en {
  font-family: var(--font-serif-en);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--navy-700);
}

.brand-pillar-card h4 {
  font-family: var(--font-serif-kr);
  font-size: 1.3rem;
  color: var(--navy-900);
  margin: 10px 0 12px;
}

.brand-pillar-card p {
  font-size: 0.94rem;
  color: var(--ink-500);
  line-height: 1.78;
}

.brand-naming-banner {
  background: var(--navy-900);
  color: var(--white);
  border-radius: 20px;
  padding: 46px 48px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  border: 1px solid rgba(242, 237, 227, 0.22);
}

.brand-naming-banner h4 {
  font-family: var(--font-serif-kr);
  font-size: 1.65rem;
  margin: 10px 0 14px;
}

.brand-naming-banner p {
  font-size: 0.96rem;
  color: rgba(242, 237, 227, 0.8);
  line-height: 1.8;
}

.brand-naming-visual {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(242, 237, 227, 0.28);
}

/* Subpage Bottom Consultation CTA Banner */
.sub-cta-banner {
  margin-top: 64px;
  background: linear-gradient(135deg, var(--navy-950), var(--navy-800));
  border: 1px solid rgba(242, 237, 227, 0.22);
  border-radius: 20px;
  padding: 36px 42px;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  box-shadow: var(--shadow-md);
}

.sub-cta-banner h3 {
  font-family: var(--font-serif-kr);
  font-size: 1.48rem;
  margin-top: 6px;
}

.sub-cta-banner p {
  font-size: 0.92rem;
  color: rgba(242, 237, 227, 0.74);
  margin-top: 4px;
}

.sub-cta-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Location Cards */
.location-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin-bottom: 34px;
}

.location-info-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-top: 3px solid var(--navy-900);
  border-radius: 16px;
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.location-info-card h3 {
  font-family: var(--font-serif-kr);
  font-size: 1.24rem;
  color: var(--navy-900);
  margin: 10px 0 8px;
}

.location-info-card p {
  font-size: 0.92rem;
  color: var(--ink-500);
  margin-bottom: 18px;
}

.address-label {
  display: inline-block;
  padding: 4px 11px;
  border-radius: 4px;
  background: var(--navy-900);
  color: var(--ivory-100);
  font-size: 0.78rem;
  font-weight: 700;
}

.map-btn-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.map-mini-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  border-radius: 8px;
  font-size: 0.84rem;
  font-weight: 700;
  border: 1px solid var(--border-light);
  background: var(--ivory-100);
  color: var(--ink-900);
  transition: all 0.25s ease;
}

.map-mini-btn.is-naver:hover {
  background: #03c75a;
  color: var(--white);
  border-color: #03c75a;
}

.map-mini-btn.is-kakao:hover {
  background: #fee500;
  color: #191919;
  border-color: #fee500;
}

.map-mini-btn.is-copy:hover {
  background: var(--navy-900);
  color: var(--white);
  border-color: var(--navy-900);
}

@media (max-width: 960px) {
  .brand-naming-banner,
  .location-cards-grid {
    grid-template-columns: 1fr;
  }

  .spec-cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .spec-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  .brand-pillars-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .sub-hero {
    padding: calc(var(--header-h) + 38px) 0 36px;
  }

  .sub-nav-link {
    padding: 13px 16px;
    font-size: 0.88rem;
  }

  .sub-main {
    padding: 40px 0 64px;
  }

  .brand-hero-content,
  .brand-naming-banner,
  .sub-cta-banner,
  .pdf-action-panel {
    padding: 26px 22px;
  }

  .vr-iframe-box {
    height: 60vh;
    min-height: 380px;
  }
}

@media (max-width: 640px) {
  .sub-hero {
    padding: calc(var(--header-h) + 26px) 0 26px;
  }

  .sub-hero-en {
    font-size: 0.8rem;
    letter-spacing: 0.18em;
  }

  .sub-hero-kr {
    font-size: 1.62rem;
    margin-top: 6px;
    letter-spacing: 0.02em;
  }

  .sub-hero-desc {
    font-size: 0.84rem;
    margin-top: 8px;
    line-height: 1.56;
  }

  .sub-breadcrumb {
    margin-top: 14px;
    padding: 5px 13px;
    font-size: 0.74rem;
    gap: 6px;
  }

  .sub-nav-bar {
    box-shadow: 0 4px 14px rgba(7, 17, 32, 0.06);
  }

  .sub-nav-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    padding: 10px 10px;
    overflow: visible;
  }

  .sub-nav-link {
    padding: 7px 11px;
    font-size: 0.79rem;
    line-height: 1.25;
    border-radius: 999px;
    background: var(--ivory-100);
    border: 1px solid var(--border-light);
    color: var(--ink-700);
  }

  .sub-nav-link::after {
    display: none;
  }

  .sub-nav-link.is-active {
    background: var(--navy-900);
    border-color: var(--navy-900);
    color: var(--white);
    font-weight: 700;
  }

  .sub-main {
    padding: 30px 0 54px;
  }

  .spec-cards-grid {
    gap: 10px;
    margin-bottom: 22px;
  }

  .spec-card {
    padding: 14px 13px;
    border-radius: 10px;
  }

  .spec-card-label {
    font-size: 0.72rem;
    margin-bottom: 4px;
  }

  .spec-card-val {
    font-size: 0.9rem;
    line-height: 1.42;
  }

  .content-sheet {
    padding: 14px;
    border-radius: 14px;
  }

  .content-sheet-toolbar {
    margin-bottom: 12px;
    padding-bottom: 10px;
  }

  .content-sheet-label {
    font-size: 0.84rem;
  }

  .zoom-trigger-btn {
    padding: 6px 12px;
    font-size: 0.76rem;
  }

  .inner-tabs-wrap {
    margin-bottom: 22px;
  }

  .inner-tabs {
    border-radius: 14px;
    padding: 5px;
    gap: 4px;
    width: 100%;
  }

  .inner-tab-btn {
    flex: 1 1 auto;
    padding: 9px 10px;
    font-size: 0.82rem;
    text-align: center;
  }

  .brand-hero-card {
    min-height: 290px;
    border-radius: 16px;
    margin-bottom: 28px;
  }

  .brand-hero-content {
    padding: 24px 18px;
  }

  .brand-hero-content h3 {
    font-size: 1.38rem;
    line-height: 1.35;
  }

  .brand-hero-content p {
    font-size: 0.85rem;
    line-height: 1.64;
    margin-top: 10px;
  }

  .brand-pillars-grid {
    gap: 10px;
    margin: 24px 0 32px;
  }

  .brand-pillar-card {
    padding: 15px 13px;
    border-radius: 12px;
  }

  .brand-pillar-en {
    font-size: 0.65rem;
    letter-spacing: 0.08em;
  }

  .brand-pillar-card h4 {
    font-size: 0.92rem;
    line-height: 1.36;
    margin: 6px 0 7px;
  }

  .brand-pillar-card p {
    font-size: 0.77rem;
    line-height: 1.54;
  }

  .brand-naming-banner {
    padding: 22px 18px;
    gap: 18px;
    border-radius: 16px;
  }

  .brand-naming-banner h4 {
    font-size: 1.28rem;
  }

  .brand-naming-banner p {
    font-size: 0.84rem;
    line-height: 1.65;
  }

  .location-cards-grid {
    gap: 12px;
    margin-bottom: 22px;
  }

  .location-info-card {
    padding: 18px 16px;
    border-radius: 14px;
  }

  .location-info-card h3 {
    font-size: 1.04rem;
  }

  .location-info-card p {
    font-size: 0.82rem;
    margin-bottom: 12px;
  }

  .location-info-card .map-btn-group {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
  }

  .location-info-card .map-mini-btn {
    justify-content: center;
    padding: 8px 4px;
    font-size: 0.72rem;
    text-align: center;
  }

  .pdf-action-panel,
  .sub-cta-banner {
    margin-top: 38px;
    padding: 22px 18px;
    gap: 16px;
    border-radius: 16px;
  }

  .pdf-action-info h3,
  .sub-cta-banner h3 {
    font-size: 1.18rem;
  }

  .sub-cta-actions,
  .pdf-btn-group {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .sub-cta-actions .btn,
  .pdf-btn-group .btn {
    width: 100%;
    padding: 11px 8px;
    font-size: 0.8rem;
  }

  .sub-notice-box {
    margin-top: 22px;
    padding: 18px 16px;
    font-size: 0.8rem;
    line-height: 1.62;
  }

  .vr-iframe-box {
    height: 52vh;
    min-height: 330px;
  }
}
