/* 아파트 에너지절약 경진대회 - 이벤트 상세(detail) 스타일 */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --white: #ffffff;
  --off: #f8faf6;
  --g50: #f0f7ea;
  --g100: #d4edbe;
  --g300: #6dbf3e;
  --g500: #3d8c1a;
  --g700: #245410;
  --g900: #122a08;
  --text: #1a2e0f;
  --text2: #3d5230;
  --text3: #6b7e5e;
  --border: #dcebd0;
  --border2: #c4ddb0;
  --shadow: 0 2px 12px rgba(61,140,26,0.08);
}

body {
  font-family: 'Noto Sans KR', sans-serif;
  background: #1a1a1a;
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* 전체 페이지 최대 너비 제한 — 큰 화면에서 가운데 정렬 */
#page-wrap {
  max-width: 1080px;
  margin: 0 auto;
  background: var(--white);
  box-shadow: 0 0 60px rgba(0,0,0,0.5);
  position: relative;
  overflow: hidden;
}

/* ── NAV ── */
nav {
  position: sticky;
  top: 0; z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.logo {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; color: var(--g700);
}
.logo-icon {
  width: 30px; height: 30px;
  background: var(--g500);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 15px;
}
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a {
  font-size: 13px; color: var(--text3);
  text-decoration: none; transition: color 0.2s;
}
.nav-links a:hover { color: var(--g500); }
.nav-apply {
  padding: 8px 20px;
  background: var(--g500); color: white !important;
  border-radius: 6px; font-weight: 700 !important;
}
.nav-apply:hover { background: var(--g700) !important; }

/* ── HERO ── */
.hero {
  background: #071a04;
  overflow: hidden;
  position: relative;
}
.hero-bg-wrap {
  position: absolute; inset: 0; z-index: 0;
  overflow: hidden;
}
.hero-bg-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 38%;
  opacity: 0.7;
  display: block;
}
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(circle at 50% 30%, rgba(109,191,62,0.22) 0%, transparent 48%),
    linear-gradient(180deg, rgba(3,12,2,0.72) 0%, rgba(3,12,2,0.40) 45%, rgba(3,12,2,0.88) 100%);
}

.hero-inner {
  max-width: 960px;
  margin: 0 auto;
  position: relative; z-index: 2;
  padding: 100px 24px 0;
}
.hero-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: end;
}

.hero-left { padding-bottom: 80px; }

.hero-tag {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 100px; padding: 5px 14px;
  font-size: 11px; color: #c8f0a0;
  font-weight: 700; letter-spacing: 0.08em;
  margin-bottom: 24px;
  animation: up 0.7s ease both;
}

.hero-kicker {
  width: fit-content; margin: 0 auto 18px;
  display: flex; align-items: center; gap: 7px;
  background: rgba(109,191,62,0.18);
  border: 1px solid rgba(168,240,112,0.45);
  border-radius: 100px; padding: 7px 18px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.04em;
  color: #d4f5b0; text-shadow: 0 1px 6px rgba(0,0,0,0.4);
  animation: up 0.7s ease both;
}
.hero-kicker i { font-size: 14px; color: #a8f070; }
.hero-h1 {
  font-family: 'Noto Serif KR', serif;
  font-size: clamp(38px, 6.2vw, 72px);
  font-weight: 900;
  line-height: 1.08;
  white-space: nowrap;
  text-align: center;
  color: #ffffff;
  margin-bottom: 22px;
  text-shadow: 0 4px 30px rgba(0,0,0,0.55);
  animation: up 0.7s 0.1s ease both;
}
.hero-h1 em {
  font-style: normal;
  color: #b6f578;
  text-shadow: 0 0 32px rgba(168,240,112,0.85), 0 2px 20px rgba(0,0,0,0.4);
}

.hero-p {
  font-size: 16px;
  color: rgba(255,255,255,0.95);
  line-height: 1.7;
  text-align: center;
  margin: 0 auto 48px;
  text-shadow: 0 1px 10px rgba(0,0,0,0.4);
  animation: up 0.7s 0.2s ease both;
}

.hero-meta {
  display: flex; flex-direction: column; gap: 8px;
  margin-bottom: 36px;
  animation: up 0.7s 0.3s ease both;
}
.meta-row {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: rgba(255,255,255,0.9);
}
.meta-row i { color: #a8f070; font-size: 15px; }
.meta-row strong { color: #a8f070; }

.hero-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 16px 38px;
  background: #6dbf3e; color: var(--g900);
  border-radius: 8px; font-weight: 700; font-size: 16px;
  text-decoration: none;
  box-shadow: 0 6px 26px rgba(109,191,62,0.5);
  animation: up 0.7s 0.4s ease both;
  transition: background 0.2s, transform 0.1s;
  border: none; cursor: pointer; font-family: 'Noto Sans KR', sans-serif;
}
.hero-cta:hover { background: #88d45a; transform: translateY(-1px); }

/* hero right — stat card */
.hero-right {
  position: relative;
  animation: up 0.7s 0.3s ease both;
}
.stat-card {
  background: rgba(0,0,0,0.28);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 16px 16px 0 0;
  padding: 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}
.stat-item {
  padding: 24px;
  text-align: center;
  border-right: 1px solid rgba(109,191,62,0.1);
  border-bottom: 1px solid rgba(109,191,62,0.1);
}
.stat-item:nth-child(2), .stat-item:nth-child(4) { border-right: none; }
.stat-item:nth-child(3), .stat-item:nth-child(4) { border-bottom: none; }
.s-num {
  font-family: 'Noto Serif KR', serif;
  font-size: 30px; font-weight: 900;
  color: #6dbf3e; line-height: 1;
}
.s-unit { font-size: 16px; font-weight: 700; }
.s-lbl { font-size: 11px; color: rgba(255,255,255,0.4); margin-top: 4px; }

@keyframes up {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

/* ── SECTIONS ── */
section { padding: 80px 0; }
#overview { padding: 52px 0 56px; }
.container { max-width: 960px; margin: 0 auto; padding: 0 24px; }

.chip {
  display: inline-block;
  background: var(--g50); color: var(--g500);
  border-radius: 100px; padding: 4px 14px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; margin-bottom: 12px;
}
.sec-h {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 700; margin-bottom: 10px; line-height: 1.3;
}
.sec-p {
  font-size: 15px; color: var(--text3);
  line-height: 1.8; margin-bottom: 44px;
  max-width: 520px;
}
#overview .sec-p {
  max-width: none;
  font-size: 15px; margin-bottom: 24px;
}
#award .sec-p, #eval .sec-p {
  max-width: none;
  font-size: 14px;
}

/* ── INFO ROWS ── */
.info-list {
  border: 1px solid var(--border);
  border-radius: 12px; overflow: hidden;
  box-shadow: var(--shadow);
}
.info-row {
  display: flex; align-items: flex-start;
  padding: 14px 28px; gap: 20px;
  border-bottom: 1px solid var(--border);
  background: white;
  transition: background 0.15s;
}
.info-row:last-child { border-bottom: none; }
.info-row:hover { background: var(--g50); }
.i-icon {
  width: 36px; height: 36px; border-radius: 8px;
  background: var(--g50); color: var(--g500);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}
.i-key { font-size: 12px; font-weight: 700; color: var(--g500); margin-bottom: 3px; }
.i-val { font-size: 14px; color: var(--text2); line-height: 1.5; }
.i-val strong { color: var(--text); }
.i-val small { font-size: 11px; color: var(--text3); }

/* ── PROCESS ── */
.steps {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0; position: relative;
  border: 1px solid var(--border); border-radius: 12px;
  overflow: hidden; box-shadow: var(--shadow);
}
.step {
  padding: 28px 20px; text-align: center;
  border-right: 1px solid var(--border);
  background: white; position: relative;
}
.step:last-child { border-right: none; }
.step-num {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--g50); color: var(--g500);
  font-size: 16px; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 12px;
}
.step-mon { font-size: 11px; color: var(--g500); font-weight: 700; margin-bottom: 4px; }
.step-name { font-size: 14px; font-weight: 700; margin-bottom: 3px; }
.step-who { font-size: 11px; color: var(--text3); }

/* arrow connector */
.step::after {
  content: '';
  position: absolute;
  top: 50%; right: -8px;
  transform: translateY(-50%);
  width: 14px; height: 14px;
  border-top: 2px solid var(--border2);
  border-right: 2px solid var(--border2);
  transform: translateY(-50%) rotate(45deg);
  background: white;
}
.step:last-child::after { display: none; }

/* ── AWARD ── */
.award-section { background: var(--off); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.award-cards {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.award-card {
  background: white; border: 1px solid var(--border);
  border-radius: 12px; overflow: hidden;
  box-shadow: var(--shadow);
}
.award-head {
  padding: 14px 20px;
  font-size: 13px; font-weight: 700; color: white;
}
.award-head.large { background: var(--g700); }
.award-head.mid { background: var(--g500); }
.award-head.small { background: var(--g300); }
.award-body { padding: 20px; }
.award-size { font-size: 11px; color: var(--text3); margin-bottom: 12px; }
.prize-row {
  display: flex; justify-content: space-between;
  align-items: center; padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.prize-row:last-child { border-bottom: none; }
.prize-label {
  font-size: 12px; font-weight: 700;
  display: flex; align-items: center; gap: 6px;
}
.prize-label i { font-size: 14px; }
.prize-best { color: var(--g700); }
.prize-good { color: var(--g500); }
.prize-amount {
  font-size: 20px; font-weight: 900;
}
.prize-amount.best { color: var(--g700); }
.prize-amount.good { color: var(--g500); }

/* ── EVAL ── */
.eval-wrap {
  display: grid; grid-template-columns: 5fr 3fr; gap: 20px;
}
.eval-main {
  border: 1px solid var(--border); border-radius: 12px;
  overflow: hidden; box-shadow: var(--shadow);
}
.eval-row {
  display: flex; align-items: center;
  padding: 0; border-bottom: 1px solid var(--border);
}
.eval-row:last-child { border-bottom: none; }
.eval-score-box {
  width: 72px; height: 72px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 900;
  flex-shrink: 0; border-right: 1px solid var(--border);
}
.eval-score-box.q { background: var(--g50); color: var(--g500); }
.eval-score-box.s { background: var(--g900); color: #6dbf3e; }
.eval-content { padding: 16px 20px; flex: 1; }
.eval-cat { font-size: 11px; font-weight: 700; color: var(--text3); margin-bottom: 4px; }
.eval-name-main { font-size: 14px; font-weight: 700; }
.eval-detail { font-size: 12px; color: var(--text3); margin-top: 2px; }

.eval-aside {
  background: var(--g50);
  border: 1px solid var(--border); border-radius: 12px;
  padding: 24px; display: flex; flex-direction: column; gap: 16px;
}
.aside-title { font-size: 13px; font-weight: 700; color: var(--g700); margin-bottom: 4px; }
.aside-item {
  display: flex; flex-direction: column; gap: 6px;
}
.aside-bar-wrap {
  height: 6px; background: var(--border); border-radius: 100px; overflow: hidden;
}
.aside-bar {
  height: 100%; border-radius: 100px; background: var(--g500);
  transition: width 1s ease;
}
.aside-label {
  display: flex; justify-content: space-between;
  font-size: 12px; color: var(--text3);
}
.aside-label strong { color: var(--g500); }

.eval-table-wrap {
  border: 1px solid var(--border); border-radius: 12px;
  overflow: hidden; box-shadow: var(--shadow); background: white;
}
.eval-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.eval-table thead th {
  background: var(--g900); color: #cdeeb6;
  font-size: 11px; font-weight: 700; letter-spacing: 0.04em;
  text-align: left; padding: 13px 16px; white-space: nowrap;
}
.eval-table th.col-score, .eval-table td.col-score { text-align: center; white-space: nowrap; }
.eval-table tbody td {
  padding: 14px 16px; border-top: 1px solid var(--border);
  color: var(--text2); vertical-align: middle; line-height: 1.5;
}
.eval-table tbody tr:hover { background: var(--g50); }
.eval-table td.item { font-weight: 700; color: var(--text); white-space: nowrap; }
.eval-table .score { font-weight: 900; color: var(--g500); font-size: 16px; }
.eval-cat-badge {
  display: inline-block; font-size: 11px; font-weight: 700;
  padding: 3px 10px; border-radius: 100px; white-space: nowrap;
}
.eval-cat-badge.q { background: var(--g50); color: var(--g500); border: 1px solid var(--g100); }
.eval-cat-badge.s { background: var(--g900); color: #6dbf3e; }
.eval-table tfoot td {
  background: var(--g50); padding: 13px 16px;
  border-top: 2px solid var(--border2);
  font-weight: 700; color: var(--g700);
}
.eval-table tfoot .score { color: var(--g500); }
.eval-note {
  margin-top: 14px; font-size: 12px; color: var(--text3);
  display: flex; align-items: center; gap: 6px;
}
.eval-note i { color: var(--g500); font-size: 14px; }

/* ── CTA ── */
.cta-band {
  background: var(--g900); padding: 80px 24px; text-align: center;
  position: relative; overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(109,191,62,0.08) 1px, transparent 1px);
  background-size: 28px 28px;
}
.cta-h {
  font-family: 'Noto Serif KR', serif;
  font-size: clamp(28px, 4vw, 44px); color: white;
  margin-bottom: 12px; position: relative;
}
.cta-sub { font-size: 15px; color: rgba(255,255,255,0.5); margin-bottom: 32px; position: relative; }
.period-pill {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid rgba(109,191,62,0.3);
  border-radius: 8px; padding: 12px 24px;
  font-size: 14px; color: rgba(255,255,255,0.7);
  margin-bottom: 32px; position: relative;
}
.period-pill strong { color: #6dbf3e; }


/* ── SNS SHARE ── */
.share-section {
  background: #060c04;
  border-top: 1px solid rgba(109,191,62,0.08);
  padding: 28px 24px;
  text-align: center;
}
.share-btns {
  display: flex; justify-content: center; gap: 10px; flex-wrap: wrap;
}
.share-btn {
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; border: none; text-decoration: none;
  transition: transform 0.15s, opacity 0.15s;
  flex-shrink: 0;
}
.share-btn:hover { transform: translateY(-2px) scale(1.08); }
.share-btn:active { transform: scale(0.95); }
.share-btn i { font-size: 20px; }
.share-btn.facebook { background: #1877f2; color: white; }
.share-btn.twitter  { background: #1a1a1a; color: white; border: 1px solid rgba(255,255,255,0.3); }
.share-btn.naver    { background: #03c75a; color: white; }
.share-btn.insta    { background: linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); color: white; }

footer {
  background: #080f06; border-top: 1px solid rgba(109,191,62,0.1);
  padding: 28px 24px; text-align: center;
  font-size: 12px; color: rgba(255,255,255,0.25); line-height: 1.8;
}
footer strong { color: rgba(255,255,255,0.5); }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.on { opacity: 1; transform: none; }

@media (max-width: 700px) {
  .hero-cols { grid-template-columns: 1fr; }
  .hero-h1 { white-space: normal; font-size: clamp(30px, 8vw, 42px); }
  .hero-right { display: none; }
  .steps { grid-template-columns: 1fr 1fr; }
  .step::after { display: none; }
  .award-cards { grid-template-columns: 1fr; }
  .eval-table { font-size: 12px; }
  .eval-table thead th, .eval-table td.item { white-space: normal; }
  .eval-table th, .eval-table td { padding: 10px 10px; }
  .nav-links a:not(.nav-apply) { display: none; }
}
