/* =====================================================
   광운대역 현대프라힐스 상가 — 독립 반응형 웹사이트
   원본(prahills_mobile.html)을 뼈대로 데스크탑까지 확장
   ===================================================== */

:root {
  --green: #1a6640;
  --green-light: #2d8a57;
  --green-pale: #e8f2ec;
  --gold: #b8965a;
  --dark: #111;
  --gray: #666;
  --light: #f8f8f6;
  --line: #e8e8e8;
  --maxw: 1200px;
  --radius: 12px;
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.07);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans KR', sans-serif;
  background: #fff;
  color: var(--dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }

a { color: inherit; }

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

/* ── 헤더 ── */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.3s;
}
.header.scrolled { box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.header-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-mark {
  width: 38px;
  height: 38px;
  background: var(--green);
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
  flex-shrink: 0;
}
.logo-text {
  font-family: 'Noto Serif KR', serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--dark);
  line-height: 1.3;
  letter-spacing: 0.02em;
}
.logo-sub { font-size: 10px; color: var(--gray); font-weight: 300; }

.header-actions { display: flex; gap: 20px; align-items: center; }
.header-tel {
  font-size: 13px;
  font-weight: 700;
  color: var(--green);
  text-decoration: none;
  letter-spacing: -0.03em;
}
.header-tel::before { content: '📞 '; }

/* 데스크탑 네비 (헤더 내) */
.header-nav { display: none; gap: 26px; }
.header-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--dark);
  text-decoration: none;
  position: relative;
  padding: 4px 0;
}
.header-nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--green);
  transition: width 0.25s ease;
}
.header-nav a:hover::after,
.header-nav a.active::after { width: 100%; }
.header-nav a.active { color: var(--green); font-weight: 700; }

/* 햄버거 */
.header-menu {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.header-menu span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.header-menu.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.header-menu.open span:nth-child(2) { opacity: 0; }
.header-menu.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* 모바일 슬라이드 메뉴 */
.mobile-nav {
  position: fixed;
  top: 0; right: 0;
  width: 78%;
  max-width: 320px;
  height: 100vh;
  background: #fff;
  z-index: 200;
  padding: 90px 32px 40px;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav a {
  font-size: 17px;
  font-weight: 500;
  color: var(--dark);
  text-decoration: none;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.mobile-nav .mobile-tel {
  margin-top: auto;
  color: var(--green);
  font-weight: 700;
  border: none;
  font-size: 20px;
  font-family: 'Noto Serif KR', serif;
}
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 150;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s;
}
.overlay.open { opacity: 1; visibility: visible; }

/* ── 히어로 ── */
.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.15) 0%,
    rgba(10, 40, 20, 0.5) 55%,
    rgba(10, 40, 20, 0.88) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 48px 24px 56px;
  animation: fadeUp 0.9s ease both;
}
.hero-tag {
  display: inline-block;
  background: var(--gold);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 3px;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}
.hero-title {
  font-family: 'Noto Serif KR', serif;
  font-size: 30px;
  font-weight: 700;
  color: #fff;
  line-height: 1.35;
  margin-bottom: 12px;
  letter-spacing: -0.03em;
}
.hero-title em { color: #a8d4b8; font-style: normal; }
.hero-sub {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 300;
  margin-bottom: 26px;
}
.hero-cta { display: flex; gap: 12px; max-width: 440px; }

.btn-primary,
.btn-outline {
  flex: 1;
  padding: 15px 20px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
  display: inline-block;
}
.btn-primary { background: var(--green); color: #fff; border: none; box-shadow: 0 6px 20px rgba(26, 102, 64, 0.35); }
.btn-primary:hover { background: var(--green-light); transform: translateY(-2px); }
.btn-outline {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.55);
  font-weight: 500;
  backdrop-filter: blur(4px);
}
.btn-outline:hover { background: rgba(255, 255, 255, 0.24); transform: translateY(-2px); }

/* ── 핵심 수치 ── */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border-top: 3px solid var(--green);
}
.stat-item { background: #fff; padding: 28px 12px; text-align: center; }
.stat-num {
  font-family: 'Noto Serif KR', serif;
  font-size: 30px;
  font-weight: 700;
  color: var(--green);
  letter-spacing: -0.03em;
}
.stat-unit { font-size: 14px; color: var(--gray); margin-left: 2px; }
.stat-label { font-size: 12px; color: var(--gray); margin-top: 6px; }

/* ── 섹션 공통 ── */
.section { padding: 64px 0; }
.section-alt { background: var(--light); }
.section-head { max-width: 720px; }
.section-head.center { margin: 0 auto; text-align: center; }
.section-head.center .section-divider { margin-left: auto; margin-right: auto; }
.section-tag {
  font-size: 12px;
  font-weight: 700;
  color: var(--green);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.section-title {
  font-family: 'Noto Serif KR', serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.4;
  letter-spacing: -0.03em;
}
.section-divider { width: 36px; height: 2px; background: var(--green); margin: 18px 0; }
.section-desc { font-size: 15px; color: var(--gray); line-height: 1.9; }

/* ── 사업안내 ── */
.about-grid { display: grid; gap: 28px; align-items: start; }
.info-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 28px;
  box-shadow: var(--shadow);
}
.info-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 13px 0;
  border-bottom: 1px solid #f0f0f0;
  gap: 16px;
}
.info-row:last-child { border-bottom: none; }
.info-key { font-size: 13px; color: var(--gray); flex: 0 0 90px; }
.info-val { font-size: 14px; font-weight: 500; color: var(--dark); text-align: right; flex: 1; }
.info-val strong { color: var(--green); }

/* ── GTX 배너 ── */
.gtx-banner {
  background: linear-gradient(135deg, var(--green) 0%, #134d30 100%);
  border-radius: var(--radius);
  padding: 40px 32px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.gtx-banner::after {
  content: 'GTX';
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 120px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.07);
  letter-spacing: -6px;
}
.gtx-label { font-size: 12px; color: rgba(255, 255, 255, 0.7); margin-bottom: 10px; font-weight: 500; position: relative; z-index: 1; }
.gtx-title {
  font-family: 'Noto Serif KR', serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}
.gtx-title em { color: #a8d4b8; font-style: normal; }
.gtx-desc { font-size: 14px; color: rgba(255, 255, 255, 0.8); line-height: 1.7; position: relative; z-index: 1; }

/* ── 프리미엄 6 ── */
.premium-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 32px;
}
.premium-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
}
.premium-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--green);
}
.premium-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.premium-icon {
  width: 46px;
  height: 46px;
  background: var(--green-pale);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 14px;
}
.premium-title { font-size: 15px; font-weight: 700; color: var(--dark); line-height: 1.4; margin-bottom: 8px; }
.premium-desc { font-size: 13px; color: var(--gray); line-height: 1.6; }

/* ── 입지 / 단지정보 ── */
.location-list { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 32px; }
.location-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 20px 22px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.location-item:hover { border-color: var(--green-light); box-shadow: var(--shadow); }
.location-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); flex-shrink: 0; margin-top: 7px; }
.location-text { font-size: 14px; color: var(--dark); line-height: 1.7; }
.location-text strong { color: var(--green); font-weight: 700; }

/* ── 방문예약 폼 ── */
.form-section { background: var(--green-pale); padding: 64px 0; }
.form-wrap {
  max-width: 620px;
  margin: 0 auto;
  background: #fff;
  border-radius: 16px;
  padding: 40px 32px;
  box-shadow: var(--shadow);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 28px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 600; color: var(--dark); }
.field label .req { color: #d23; }
.field input,
.field select,
.field textarea {
  font-family: inherit;
  font-size: 14px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--light);
  color: var(--dark);
  transition: border-color 0.2s, background 0.2s;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--green);
  background: #fff;
}
.field textarea { resize: vertical; min-height: 88px; }
.field .err { font-size: 11px; color: #d23; min-height: 14px; }
/* 날짜·시간 선택 칩 */
.chip-group { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 9px 15px;
  font-size: 13px;
  font-family: inherit;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--light);
  color: var(--gray);
  cursor: pointer;
  transition: all 0.15s;
}
.chip:hover { border-color: var(--green-light); color: var(--green); }
.chip.active { background: var(--green); color: #fff; border-color: var(--green); font-weight: 700; }

.privacy-title { font-size: 13px; font-weight: 600; color: var(--dark); margin-bottom: 8px; }
.privacy-box {
  max-height: 150px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--light);
  padding: 14px 16px;
  font-size: 12px;
  color: var(--gray);
  line-height: 1.7;
  margin-bottom: 12px;
}
.privacy-box p { margin-bottom: 8px; }
.privacy-box p:last-child { margin-bottom: 0; }
.privacy-box .privacy-sub { font-weight: 700; color: var(--dark); margin-top: 4px; }
.privacy-box strong { color: var(--green); }
.checkbox-row { display: flex; align-items: flex-start; gap: 9px; font-size: 12px; color: var(--gray); line-height: 1.5; }
.checkbox-row input { width: 16px; height: 16px; margin-top: 2px; accent-color: var(--green); }
.form-submit {
  width: 100%;
  padding: 16px;
  background: var(--green);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  margin-top: 8px;
  transition: background 0.2s, transform 0.2s;
}
.form-submit:hover { background: var(--green-light); transform: translateY(-2px); }
.form-success {
  display: none;
  text-align: center;
  padding: 24px 12px;
}
.form-success.show { display: block; animation: fadeUp 0.5s ease both; }
.form-success .check {
  width: 64px; height: 64px;
  margin: 0 auto 18px;
  background: var(--green);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
}
.form-success h3 { font-family: 'Noto Serif KR', serif; font-size: 22px; margin-bottom: 8px; }
.form-success p { color: var(--gray); font-size: 14px; }

/* ── CTA ── */
.cta-section { background: var(--dark); padding: 64px 0; text-align: center; }
.cta-tag { font-size: 12px; color: var(--gold); letter-spacing: 0.1em; font-weight: 700; margin-bottom: 14px; }
.cta-title {
  font-family: 'Noto Serif KR', serif;
  font-size: 26px;
  font-weight: 700;
  color: #fff;
  line-height: 1.4;
  margin-bottom: 10px;
}
.cta-desc { font-size: 14px; color: rgba(255, 255, 255, 0.55); margin-bottom: 28px; line-height: 1.7; }
.cta-tel {
  display: inline-block;
  font-family: 'Noto Serif KR', serif;
  font-size: 34px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
}
.cta-btn {
  display: inline-block;
  min-width: 280px;
  padding: 16px 32px;
  background: var(--green);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}
.cta-btn:hover { background: var(--green-light); transform: translateY(-2px); }
.cta-name { font-size: 13px; color: rgba(255, 255, 255, 0.45); margin-top: 18px; }

/* ── 푸터 ── */
.footer { padding: 44px 0; border-top: 1px solid var(--line); text-align: center; }
.footer-logo { font-family: 'Noto Serif KR', serif; font-size: 15px; font-weight: 600; color: var(--dark); margin-bottom: 12px; }
.footer-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 20px; margin-bottom: 18px; }
.footer-links a { font-size: 13px; color: var(--gray); text-decoration: none; }
.footer-links a:hover { color: var(--green); }
.footer-copy { font-size: 12px; color: #bbb; line-height: 1.7; }

/* ── 플로팅 전화 버튼 (모바일) ── */
.fab-call {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 90;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(26, 102, 64, 0.45);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 8px 24px rgba(26, 102, 64, 0.45), 0 0 0 0 rgba(26, 102, 64, 0.5); }
  70% { box-shadow: 0 8px 24px rgba(26, 102, 64, 0.45), 0 0 0 16px rgba(26, 102, 64, 0); }
  100% { box-shadow: 0 8px 24px rgba(26, 102, 64, 0.45), 0 0 0 0 rgba(26, 102, 64, 0); }
}

/* ── 애니메이션 ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, .reveal { animation: none !important; transition: none !important; transform: none !important; opacity: 1 !important; }
  html { scroll-behavior: auto; }
}

/* =====================================================
   반응형 — 태블릿
   ===================================================== */
@media (min-width: 640px) {
  .hero-title { font-size: 38px; }
  .hero-sub { font-size: 16px; }
  .section-title { font-size: 30px; }
  .stat-num { font-size: 36px; }
  .premium-grid { grid-template-columns: repeat(3, 1fr); }
  .location-list { grid-template-columns: 1fr 1fr; }
}

/* =====================================================
   반응형 — 데스크탑
   ===================================================== */
@media (min-width: 960px) {
  .header-menu { display: none; }
  .header-nav { display: flex; }
  .fab-call { display: none; }

  .hero { min-height: 78vh; }
  .hero-content { padding: 64px 24px 72px; }
  .hero-title { font-size: 48px; }
  .hero-sub { font-size: 17px; }

  .stat-item { padding: 36px 12px; }
  .stat-num { font-size: 42px; }

  .section { padding: 88px 0; }
  .section-title { font-size: 34px; }

  /* 사업안내: 텍스트 + 카드 2열 */
  .about-grid { grid-template-columns: 1fr 1fr; gap: 48px; }

  .gtx-banner { padding: 56px 56px; }
  .gtx-title { font-size: 30px; }
  .gtx-banner::after { font-size: 170px; }

  .premium-card { padding: 30px 26px; }
  .location-text { font-size: 15px; }
}

@media (min-width: 1280px) {
  .hero-title { font-size: 56px; }
}
