/* ================================================================
   사각형 디자인 + 관심고객등록 (사용자 기준, 2026-10-21)
   - 둥근 칩/알약 모양 금지 → 버튼·탭·카드·이미지 모두 직각
   - 탭: 붙어 있는 사각 박스 행, 선택 탭은 주 색상으로 채움
   - 관심고객등록: 어두운 그라데이션 배경, 왼쪽 안내+대표번호, 오른쪽 흰 박스 폼(밑줄 입력칸)
   - 우측 하단 플로팅 '분양문의' 버튼은 기존 모양 유지
   ================================================================ */
:root { --reg-dark1: #6e1824; --reg-dark2: #2c070d; --reg-gold: #d6b98a; } /* 힐스테이트 버건디 */

/* 버튼 */
.btn-primary, .btn-line, .btn-submit { border-radius: 0 !important; box-shadow: none !important; }
.btn-primary { background: var(--main); color: #fff; border: 1px solid var(--main); min-width: 160px; padding: 15px 26px; font-weight: 600; }
.btn-line { background: rgba(0,0,0,.28); color: #fff; border: 1px solid rgba(255,255,255,.85); min-width: 160px; padding: 15px 26px; font-weight: 600; }
.btn-primary:hover { filter: brightness(1.1); }
.btn-line:hover { background: rgba(0,0,0,.4); }

/* 탭: 붙어 있는 사각 박스 */
.tab-list { gap: 0; }
.tab-btn {
  border-radius: 0; border: 1px solid #d9d9d9; margin-left: -1px;
  background: #fff; color: #555; font-weight: 600; min-width: 140px; padding: 15px 24px;
}
.tab-btn:first-child { margin-left: 0; }
.tab-btn:hover { background: #fafafa; color: var(--main); }
.tab-btn.is-active { background: var(--main); border-color: var(--main); color: #fff; position: relative; z-index: 1; }
.tabs.sub .tab-btn { border-radius: 0; min-width: 96px; padding: 10px 18px; border-color: #d9d9d9; color: #666; background: #fff; }
.tabs.sub .tab-btn.is-active { background: var(--point); border-color: var(--point); color: #fff; }

/* 카드·이미지 모서리 */
.card, .card-img, .pcard, .biz-img, .agree-detail p { border-radius: 0 !important; }
.figure img { box-shadow: 0 10px 30px rgba(0,0,0,.06); }

/* ===== 관심고객등록 ===== */
.register { background: linear-gradient(120deg, var(--reg-dark1) 0%, var(--reg-dark2) 100%); color: #fff; padding: 100px 0; }
.reg-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; max-width: 1200px; }
.reg-copy { padding-left: 8%; }
.reg-copy .eyebrow { display: block; color: var(--reg-gold); font-size: 13px; font-weight: 700; letter-spacing: .25em; margin-bottom: 18px; }
.reg-copy h2 { margin: 0 0 22px; font-size: 44px; font-weight: 800; letter-spacing: -.03em; color: #fff; }
.reg-copy p { margin: 0 0 34px; color: rgba(255,255,255,.75); font-size: 17px; line-height: 1.75; }
.reg-tel { color: var(--reg-gold); font-size: 36px; font-weight: 800; letter-spacing: -.01em; }
.reg-box { background: #fff; color: var(--text); padding: 48px 48px 44px; }
.reg-box .reg-form { gap: 26px; }
.reg-box .field span { font-size: 14px; font-weight: 700; color: #222; }
.reg-box .field input, .reg-box .field textarea {
  border: 0; border-bottom: 1px solid #bdbdbd; border-radius: 0; padding: 12px 4px; background: transparent; font-size: 16px;
}
.reg-box .field input:focus, .reg-box .field textarea:focus { outline: 0; border-bottom: 2px solid var(--reg-dark1); }
.reg-box .agree { font-size: 13px; color: #444; }
.reg-box .btn-submit { background: var(--reg-dark1); padding: 18px; font-size: 15px; font-weight: 700; margin-top: 4px; }
.reg-box .form-msg { margin-top: -8px; }

@media (max-width: 900px) {
  .register { padding: 64px 0; }
  .reg-wrap { grid-template-columns: 1fr; gap: 34px; }
  .reg-copy { padding-left: 0; text-align: center; }
  .reg-copy h2 { font-size: 30px; }
  .reg-copy p { font-size: 15px; margin-bottom: 18px; }
  .reg-tel { font-size: 28px; }
  .reg-box { padding: 32px 22px 28px; }
}
@media (max-width: 768px) {
  .tab-list { flex-wrap: wrap; }
  .tab-btn { min-width: 0; flex: 1 1 33.33%; padding: 12px 6px; font-size: 14px; margin: 0 0 -1px -1px; }
  .tab-btn:first-child { margin-left: -1px; }
  .tab-list { padding-left: 1px; }
  .tabs.sub .tab-btn { flex: 1 1 0; }
  .btn-primary, .btn-line { min-width: 0; }
  /* 모바일 메인은 흰 배경 위 글자 → 보조 버튼을 주 색상 테두리로 */
  .btn-line { background: #fff; color: var(--main); border-color: var(--main); }
}

/* ===== 메인: 화면 꽉 채움 + 왼쪽 어두운 그라데이션 (사용자 기준 2026-10-21) ===== */
.hero { position: relative; height: clamp(520px, 74vh, 820px); background: #1a2029; overflow: hidden; }
.hero::before { display: none !important; }
.hero-img {
  position: absolute; inset: 0; width: 100%; height: 100%; max-width: none;
  object-fit: cover; object-position: center 65%;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(12,18,28,.78) 0%, rgba(12,18,28,.55) 30%, rgba(12,18,28,.18) 58%, rgba(12,18,28,0) 80%),
    linear-gradient(0deg, rgba(0,0,0,.28) 0%, rgba(0,0,0,0) 30%);
}
.hero-copy {
  position: absolute; z-index: 2; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(1200px, 100%); padding: 0 40px; color: #fff; text-shadow: none; text-align: left;
}
.hero-kicker { color: var(--reg-gold, #d6b98a); font-size: 18px; font-weight: 600; letter-spacing: .04em; margin-bottom: 14px; }
.hero-copy h1 { font-size: 58px; font-weight: 800; letter-spacing: -.035em; line-height: 1.18; }
.hero-sub { color: rgba(255,255,255,.82); font-size: 18px; margin: 14px 0 30px; }

@media (max-width: 768px) {
  .hero { height: auto; background: #fff; }
  .hero::after { display: none; }
  .hero-img { position: static; height: auto; object-fit: initial; }
  .hero-copy {
    position: static; transform: none; width: auto; padding: 22px 20px 26px;
    color: var(--text); text-align: center; background: #fff;
  }
  .hero-kicker { color: var(--main); font-size: 15px; margin-bottom: 4px; }
  .hero-copy h1 { font-size: 27px; }
  .hero-sub { color: var(--muted); font-size: 14px; margin: 8px 0 16px; }
}
/* ===== 섹션 제목 크게 (사용자 요청 2026-10-21) ===== */
.sec-head > span { font-size: 15px; letter-spacing: .26em; margin-bottom: 10px; }
.sec-title { font-size: 46px; letter-spacing: -.035em; }
.sec-title::after { width: 40px; margin-top: 18px; }
@media (max-width: 768px) {
  .sec-head > span { font-size: 13px; }
  .sec-title { font-size: 31px; }
}

/* ===== 메뉴 클릭 모션: 섹션 내용이 아래에서 올라오며 나타남 / 탭 전환 페이드 ===== */
@keyframes secReveal { from { opacity: 0; transform: translateY(36px); } to { opacity: 1; transform: none; } }
@keyframes tabFade { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.reveal { animation: secReveal .75s cubic-bezier(.2,.7,.2,1) both; }
.reveal .sec-head { animation: secReveal .6s cubic-bezier(.2,.7,.2,1) both; }
.tab-panel.is-active.fade-in { animation: tabFade .45s ease both; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal .sec-head, .tab-panel.is-active.fade-in { animation: none; }
}
/* ===== 푸터: 왼쪽 현장명·위치·대표번호 / 오른쪽 관리자·사업자 (사용자 기준 2026-10-21) ===== */
.site-footer { text-align: left; padding: 56px 0 100px; color: #a3a3a3; font-size: 14px; }
.site-footer .footer-logo { margin: 0 0 26px; height: 34px; }
.foot-grid { display: flex; justify-content: space-between; gap: 40px; padding-bottom: 26px; border-bottom: 1px solid #353535; }
.foot-grid dl { margin: 0; display: flex; flex-direction: column; gap: 9px; }
.foot-grid dl > div { display: flex; line-height: 1.6; }
.foot-grid dt { flex: none; color: #d2d2d2; }
.foot-grid dt::after { content: " : "; white-space: pre; color: #8a8a8a; }
.foot-grid dd { margin: 0; color: #a3a3a3; }
.foot-grid dd a { color: #a3a3a3; }
.foot-grid i { font-style: normal; margin: 0 8px; color: #5a5a5a; }
.site-footer .footer-note { margin: 20px 0 0; font-size: 12px; color: #6f6f6f; }
@media (max-width: 768px) {
  .site-footer { padding: 40px 0 96px; font-size: 13px; }
  .site-footer .footer-logo { height: 28px; margin-bottom: 20px; }
  .foot-grid { flex-direction: column; gap: 9px; padding-bottom: 20px; }
  .foot-grid dl > div { flex-wrap: wrap; }
}
/* ===== 우측 상단 대표번호 강조 (2026-10-21) ===== */
.header-call {
  display: flex; align-items: center; gap: 10px; right: 20px;
  background: var(--main); color: #fff; padding: 8px 18px 8px 14px; font-size: inherit;
  box-shadow: 0 6px 16px rgba(0,0,0,.12); transition: filter .2s;
}
.header-call:hover { filter: brightness(1.12); }
.header-call svg { flex: none; animation: callRing 3.2s ease-in-out infinite; transform-origin: 50% 60%; }
.hc-text { display: flex; flex-direction: column; line-height: 1.12; }
.hc-text small { font-size: 11px; font-weight: 600; opacity: .85; letter-spacing: .06em; }
.hc-text strong { font-size: 21px; font-weight: 800; letter-spacing: .01em; }
@keyframes callRing { 0%, 70%, 100% { transform: rotate(0); } 74% { transform: rotate(-14deg); } 78% { transform: rotate(12deg); } 82% { transform: rotate(-8deg); } 86% { transform: rotate(6deg); } 90% { transform: rotate(0); } }

/* ===== 메뉴 드롭다운 (마우스 올리면 흰 패널이 내려오며 전체 하위메뉴 표시) ===== */
.gnb .sub { display: none; }
.mega-bg { display: none; }
@media (min-width: 769px) {
  .gnb > ul { overflow: visible; }
  .gnb > ul > li { position: relative; }
  .gnb .sub {
    display: flex; flex-direction: column; gap: 2px; list-style: none;
    position: absolute; top: 100%; left: 50%; z-index: 2;
    margin: 0; padding: 18px 0 0; max-width: none; overflow: visible; justify-content: flex-start;
    opacity: 0; visibility: hidden; transform: translate(-50%, -10px);
    transition: opacity .25s, transform .3s, visibility 0s .3s;
  }
  .site-header.mega-open .gnb .sub {
    opacity: 1; visibility: visible; transform: translate(-50%, 0);
    transition: opacity .35s .1s, transform .4s .1s cubic-bezier(.2,.7,.2,1), visibility 0s;
  }
  .gnb .sub a { padding: 6px 12px; font-size: 14px; font-weight: 500; color: #6b6b6b; text-align: center; white-space: nowrap; }
  .gnb .sub a::after { display: none; }
  .gnb .sub a:hover, .gnb .sub a.is-active:hover { color: var(--main); font-weight: 700; }
  .gnb .sub a.is-active { color: #6b6b6b; }
  .mega-bg {
    display: block; position: absolute; left: 0; right: 0; top: 100%; z-index: 1; height: 0; overflow: hidden;
    background: #fff; border-top: 1px solid var(--line); box-shadow: 0 16px 30px rgba(0,0,0,.08);
    transition: height .35s cubic-bezier(.2,.7,.2,1); pointer-events: none;
  }
  .site-header.mega-open .mega-bg { height: var(--mega-h, 200px); }
}

/* 하위메뉴 클릭 시 하얗게 전환 */
.page-fade { position: fixed; inset: 0; z-index: 99; background: #fff; opacity: 0; pointer-events: none; transition: opacity .28s ease; }
.page-fade.on { opacity: 1; }

/* ===== 접속/새로고침 시 메인 연출 ===== */
@keyframes heroZoom { from { opacity: 0; transform: scale(1.14); } to { opacity: 1; transform: scale(1); } }
@keyframes heroUp { from { opacity: 0; transform: translateY(32px); } to { opacity: 1; transform: none; } }
@keyframes headerDown { from { transform: translateY(-100%); } to { transform: none; } }
@keyframes fadeInOnly { from { opacity: 0; } to { opacity: 1; } }
.intro .site-header { animation: headerDown .8s .15s cubic-bezier(.2,.7,.2,1) both; }
.intro .hero-img { animation: heroZoom 2.4s cubic-bezier(.2,.6,.2,1) both; }
.intro .hero::after { animation: fadeInOnly 1.2s .5s both; }
.intro .hero-kicker { animation: heroUp .9s .9s cubic-bezier(.2,.7,.2,1) both; }
.intro .hero-copy h1 { animation: heroUp .9s 1.1s cubic-bezier(.2,.7,.2,1) both; }
.intro .hero-sub { animation: heroUp .9s 1.3s cubic-bezier(.2,.7,.2,1) both; }
.intro .hero-btns { animation: heroUp .9s 1.5s cubic-bezier(.2,.7,.2,1) both; }
@media (prefers-reduced-motion: reduce) {
  .intro .site-header, .intro .hero-img, .intro .hero::after, .intro .hero-kicker, .intro .hero-copy h1,
  .intro .hero-sub, .intro .hero-btns, .header-call svg { animation: none; }
}

@media (max-width: 768px) {
  .header-call { display: flex; right: 12px; padding: 9px; box-shadow: none; }
  .header-call .hc-text { display: none; }
}