/* ================================================
   여수소제 중흥S클래스 우미린 - 공통 스타일
   Navy + Gold 미니멀 디자인
   ================================================ */

:root {
  --navy:       #0c1f4a;
  --navy-dark:  #060f25;
  --navy-mid:   #142a62;
  --navy-light: #1e3a80;
  --gold:       #c8a44a;
  --gold-light: #e2c46e;
  --gold-dark:  #9e7e2f;
  --white:      #ffffff;
  --off-white:  #f8f8f4;
  --gray-light: #f0f0ec;
  --gray:       #d8d8d0;
  --gray-mid:   #999990;
  --text:       #1a1a2e;
  --text-light: #555566;
  --radius:     6px;
  --shadow:     0 4px 20px rgba(0,0,0,0.12);
  --shadow-lg:  0 8px 40px rgba(0,0,0,0.18);
  --transition: 0.25s ease;
  --header-h:   72px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Apple SD Gothic Neo', 'Malgun Gothic', '맑은 고딕', Pretendard, -apple-system, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}
img { display: block; max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ── Layout ── */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: 80px 0; }
.section-sm { padding: 60px 0; }

/* ── Section Heading ── */
.section-title {
  text-align: center;
  margin-bottom: 48px;
}
.section-title h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.02em;
  line-height: 1.3;
}
.section-title p {
  margin-top: 12px;
  color: var(--text-light);
  font-size: 1rem;
}
.title-bar {
  display: block;
  width: 48px;
  height: 3px;
  background: var(--gold);
  margin: 14px auto 0;
  border-radius: 2px;
}

/* ================================================
   HEADER
   ================================================ */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--header-h);
  background: var(--navy-dark);
  border-bottom: 1px solid rgba(200,164,74,0.25);
  display: flex;
  align-items: center;
}
#site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* Logo */
.header-logo a {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.logo-sub {
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  color: var(--gold);
  text-transform: uppercase;
  font-weight: 500;
}
.logo-main {
  font-size: 1rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.logo-main span { color: var(--gold); }

/* Nav */
.header-nav { display: flex; align-items: center; gap: 4px; }
.header-nav a {
  padding: 6px 14px;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,0.8);
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}
.header-nav a:hover,
.header-nav a.active {
  color: var(--gold-light);
  background: rgba(200,164,74,0.1);
}

/* Header Phone */
.header-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--gold);
  color: var(--navy-dark);
  font-size: 0.875rem;
  font-weight: 700;
  padding: 9px 16px;
  border-radius: var(--radius);
  white-space: nowrap;
  transition: background var(--transition);
}
.header-phone:hover { background: var(--gold-light); }
.header-phone svg { flex-shrink: 0; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 26px;
  padding: 4px 0;
}
.hamburger span {
  display: block;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 0; right: 0;
  background: var(--navy-dark);
  border-bottom: 1px solid rgba(200,164,74,0.2);
  z-index: 999;
  flex-direction: column;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  display: block;
  padding: 14px 24px;
  color: rgba(255,255,255,0.85);
  font-size: 0.95rem;
  font-weight: 500;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background var(--transition), color var(--transition);
}
.mobile-nav a:hover,
.mobile-nav a.active { background: rgba(200,164,74,0.12); color: var(--gold-light); }
.mobile-nav-phone {
  display: block;
  padding: 14px 24px;
  background: var(--gold);
  color: var(--navy-dark) !important;
  font-weight: 700;
  text-align: center;
}

/* Page offset for fixed header */
.page-body { padding-top: var(--header-h); }

/* ================================================
   HERO (index)
   ================================================ */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--navy-dark);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('https://www.xn----co1fk2duzs.kr/img/main_visual.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: brightness(0.38);
  transform: scale(1.04);
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  padding: 60px 24px;
}
.hero-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(200,164,74,0.5);
  padding: 6px 18px;
  border-radius: 100px;
  margin-bottom: 28px;
}
.hero h1 {
  font-size: clamp(2rem, 5.5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}
.hero h1 strong { color: var(--gold-light); }
.hero-sub {
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  color: rgba(255,255,255,0.7);
  margin-bottom: 44px;
  line-height: 1.7;
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--gold);
  color: var(--navy-dark);
  font-size: 1.05rem;
  font-weight: 700;
  padding: 16px 36px;
  border-radius: var(--radius);
  transition: background var(--transition), transform var(--transition);
  box-shadow: 0 4px 24px rgba(200,164,74,0.4);
}
.hero-cta:hover { background: var(--gold-light); transform: translateY(-2px); }
.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.4);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  animation: bounce 2s ease-in-out infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ================================================
   BADGES (핵심 요약)
   ================================================ */
.badges-section {
  background: var(--navy);
  padding: 48px 0;
}
.badges-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}
.badge-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 36px 24px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(200,164,74,0.15);
}
.badge-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(200,164,74,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.badge-icon svg { color: var(--gold); }
.badge-label {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
  font-weight: 600;
}
.badge-value {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
}
.badge-unit {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  margin-top: 4px;
}

/* ================================================
   FORM SECTION
   ================================================ */
.form-section {
  background: var(--off-white);
}
.form-wrap {
  max-width: 760px;
  margin: 0 auto;
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.form-header {
  background: var(--navy);
  padding: 36px 40px;
  text-align: center;
}
.form-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}
.form-header p { color: rgba(255,255,255,0.65); font-size: 0.9rem; }
.form-body { padding: 40px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}
.form-row.full { grid-template-columns: 1fr; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.02em;
}
.form-group label .req { color: var(--gold-dark); margin-left: 2px; }
.form-group input,
.form-group select {
  height: 46px;
  padding: 0 14px;
  border: 1.5px solid var(--gray);
  border-radius: var(--radius);
  font-size: 0.9rem;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition);
  font-family: inherit;
}
.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--navy-light);
}
.form-group input::placeholder { color: var(--gray-mid); }

/* Size radio */
.size-options {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.size-option { display: none; }
.size-option + label {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 82px;
  height: 46px;
  border: 1.5px solid var(--gray);
  border-radius: var(--radius);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-light);
  cursor: pointer;
  transition: all var(--transition);
}
.size-option:checked + label {
  border-color: var(--navy);
  background: var(--navy);
  color: var(--white);
}

/* Consent */
.consent-wrap {
  padding: 16px;
  background: var(--gray-light);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.consent-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  accent-color: var(--navy);
  flex-shrink: 0;
  cursor: pointer;
}
.consent-row label {
  font-size: 0.85rem;
  color: var(--text-light);
  cursor: pointer;
  line-height: 1.5;
}
.consent-row label strong { color: var(--text); font-weight: 600; }
.consent-link {
  color: var(--navy-light);
  text-decoration: underline;
  font-weight: 600;
  cursor: pointer;
}

/* Submit */
.form-submit {
  margin-top: 28px;
}
.btn-submit {
  display: block;
  width: 100%;
  height: 56px;
  background: var(--navy);
  color: var(--white);
  font-size: 1.05rem;
  font-weight: 700;
  border-radius: var(--radius);
  letter-spacing: 0.04em;
  transition: background var(--transition), transform var(--transition);
  position: relative;
}
.btn-submit:hover { background: var(--navy-light); transform: translateY(-1px); }
.btn-submit:disabled { opacity: 0.65; cursor: not-allowed; transform: none; }

.form-note {
  margin-top: 14px;
  text-align: center;
  font-size: 0.78rem;
  color: var(--gray-mid);
}

/* ================================================
   PRIVACY MODAL
   ================================================ */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal-overlay.open { display: flex; }
.modal-box {
  background: var(--white);
  border-radius: 10px;
  max-width: 600px;
  width: 100%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.modal-header {
  padding: 20px 24px;
  background: var(--navy);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-header h3 { font-size: 1.05rem; font-weight: 700; }
.modal-close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  font-size: 1.4rem;
  line-height: 1;
  transition: color var(--transition);
}
.modal-close:hover { color: var(--white); }
.modal-body {
  overflow-y: auto;
  padding: 24px;
  font-size: 0.82rem;
  line-height: 1.8;
  color: var(--text-light);
}
.modal-body h4 { color: var(--navy); font-size: 0.9rem; margin: 16px 0 6px; }
.modal-body ul { margin-left: 16px; list-style: disc; }
.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--gray);
  display: flex;
  justify-content: flex-end;
}
.btn-modal-confirm {
  background: var(--navy);
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 10px 28px;
  border-radius: var(--radius);
  transition: background var(--transition);
}
.btn-modal-confirm:hover { background: var(--navy-light); }

/* ================================================
   SUBPAGE HERO
   ================================================ */
.sub-hero {
  background: var(--navy);
  padding: 64px 0 52px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.sub-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 60% 40%, rgba(200,164,74,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.sub-hero .breadcrumb {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.45);
  margin-bottom: 14px;
  letter-spacing: 0.06em;
}
.sub-hero .breadcrumb a { color: rgba(255,255,255,0.45); }
.sub-hero .breadcrumb a:hover { color: var(--gold); }
.sub-hero h1 {
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}
.sub-hero p {
  color: rgba(255,255,255,0.6);
  font-size: 0.95rem;
}
.sub-hero-bar {
  display: block;
  width: 40px;
  height: 3px;
  background: var(--gold);
  margin: 16px auto 0;
  border-radius: 2px;
}

/* ================================================
   TABLE (공통)
   ================================================ */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.data-table th,
.data-table td {
  padding: 14px 20px;
  border: 1px solid var(--gray);
  text-align: left;
  vertical-align: top;
}
.data-table th {
  background: var(--navy);
  color: var(--white);
  font-weight: 600;
  white-space: nowrap;
  width: 180px;
}
.data-table td { color: var(--text); }
.data-table tr:nth-child(even) td { background: var(--off-white); }

/* ================================================
   PREMIUM CARDS
   ================================================ */
.premium-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.premium-card {
  background: var(--white);
  border: 1px solid var(--gray);
  border-radius: 10px;
  padding: 36px 28px;
  text-align: center;
  transition: box-shadow var(--transition), transform var(--transition);
}
.premium-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px);
  border-color: var(--gold);
}
.pcard-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(12,31,74,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.8rem;
}
.pcard-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}
.pcard-desc {
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.7;
}

/* ================================================
   PLAN TABLE (평형안내)
   ================================================ */
.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.plan-card {
  background: var(--white);
  border: 2px solid var(--gray);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.plan-card:hover { border-color: var(--gold); box-shadow: var(--shadow); }
.plan-card-head {
  background: var(--navy);
  padding: 24px 20px;
  text-align: center;
  color: var(--white);
}
.plan-card-head .size {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.plan-card-head .size span { font-size: 1rem; font-weight: 500; }
.plan-card-head .type { font-size: 0.8rem; color: var(--gold-light); margin-top: 4px; }
.plan-card-body { padding: 22px 20px; }
.plan-feat-list { display: flex; flex-direction: column; gap: 8px; }
.plan-feat-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.86rem;
  color: var(--text-light);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--gray-light);
}
.plan-feat-list li:last-child { border-bottom: none; padding-bottom: 0; }
.plan-feat-list li::before {
  content: '✓';
  color: var(--gold-dark);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ================================================
   SITE PLAN (단지배치)
   ================================================ */
.site-plan-placeholder {
  background: var(--gray-light);
  border: 2px dashed var(--gray);
  border-radius: 10px;
  min-height: 480px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 12px;
  color: var(--gray-mid);
}
.site-plan-placeholder span { font-size: 3rem; }
.site-plan-placeholder p { font-size: 0.9rem; line-height: 1.6; }

/* ================================================
   MAP (오시는길)
   ================================================ */
.map-wrap {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray);
  background: var(--gray-light);
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  color: var(--gray-mid);
  font-size: 0.9rem;
}
.map-wrap span { font-size: 2.8rem; }
.location-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 40px;
}
.loc-box {
  background: var(--white);
  border: 1px solid var(--gray);
  border-radius: 10px;
  padding: 28px;
}
.loc-box h3 {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-dark);
  font-weight: 700;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--gray);
}
.loc-box p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.8;
}
.loc-box strong { color: var(--text); font-weight: 600; }

/* ================================================
   CTA BOTTOM (서브페이지)
   ================================================ */
.cta-section {
  background: var(--navy);
  padding: 72px 0;
  text-align: center;
}
.cta-section h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}
.cta-section p {
  color: rgba(255,255,255,0.6);
  margin-bottom: 32px;
  font-size: 0.95rem;
}
.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--gold);
  color: var(--navy-dark);
  font-size: 1.05rem;
  font-weight: 700;
  padding: 16px 40px;
  border-radius: var(--radius);
  transition: background var(--transition), transform var(--transition);
  box-shadow: 0 4px 24px rgba(200,164,74,0.35);
}
.btn-cta:hover { background: var(--gold-light); transform: translateY(-2px); }

/* ================================================
   FOOTER
   ================================================ */
#site-footer {
  background: var(--navy-dark);
  border-top: 1px solid rgba(200,164,74,0.12);
  padding: 40px 0 32px;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.footer-logo {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--white);
}
.footer-logo span { color: var(--gold); }
.footer-info {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.9;
}
.footer-info strong { color: rgba(255,255,255,0.65); font-weight: 600; }
.footer-divider {
  display: inline-block;
  color: rgba(255,255,255,0.2);
  margin: 0 6px;
}
.footer-mobile {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.3);
  margin-left: 4px;
}
.footer-disclaimer {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.28);
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.06);
  line-height: 1.7;
}

/* ================================================
   RESPONSIVE
   ================================================ */
@media (max-width: 960px) {
  .premium-grid { grid-template-columns: repeat(2, 1fr); }
  .plan-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --header-h: 60px; }
  .section { padding: 60px 0; }

  /* Header mobile */
  .header-nav { display: none; }
  .header-phone-text { display: none; }
  .hamburger { display: flex; }

  /* Hero */
  .hero { min-height: 85vh; }

  /* Badges */
  .badges-grid { grid-template-columns: 1fr; gap: 1px; }

  /* Form */
  .form-header { padding: 28px 24px; }
  .form-body { padding: 28px 20px; }
  .form-row { grid-template-columns: 1fr; }

  /* Tables */
  .data-table th { width: 120px; }
  .data-table th, .data-table td { padding: 12px 14px; }

  /* Cards */
  .premium-grid { grid-template-columns: 1fr; }
  .plan-grid { grid-template-columns: 1fr; }

  /* Location */
  .location-info { grid-template-columns: 1fr; }

  /* Footer */
  .footer-divider.br { display: block; margin: 0; color: transparent; }
}

@media (max-width: 480px) {
  .size-options { gap: 8px; }
  .size-option + label { width: 72px; height: 42px; font-size: 0.82rem; }
  .hero h1 { font-size: 1.8rem; }
}

/* ── Utility ── */
.text-gold { color: var(--gold); }
.text-navy { color: var(--navy); }
.fw-bold { font-weight: 700; }
.mt-8 { margin-top: 8px; }
.mb-0 { margin-bottom: 0; }
