/* ===== SGEE Landing Page ===== */
:root {
  /* 브랜드 컬러: 카드뉴스/포스터의 오렌지(주) + SGEE 로고 그린(보조) */
  --brand:       #e8730a;
  --brand-dark:  #c25e00;
  --brand-deep:  #1d1407;
  --brand-ink:   #241a0c;
  --brand-soft:  #fdead8;
  --brand-pale:  #fef6ec;
  --green-700:   #168b00;
  --green-100:   #e3f5dc;
  --amber:       #ffb020;
  --ink:         #221910;
  --ink-soft:    #5a5146;
  --ink-mute:    #8a8177;
  --paper:       #faf7f1;
  --line:        #e8e2d8;
  --white:       #ffffff;
  --kakao:       #fee500;
  --kakao-ink:   #1a1a1a;
  --radius:      18px;
  --shadow:      0 10px 30px rgba(64, 32, 0, 0.08);
  --maxw:        1120px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  font-family: "Pretendard Variable", Pretendard, "Apple SD Gothic Neo", "Malgun Gothic", "맑은 고딕", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
}

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

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  min-height: 52px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 18px;
  line-height: 1.4;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--brand); color: var(--white); }
.btn-primary:hover { background: var(--brand-dark); box-shadow: 0 8px 20px rgba(232, 115, 10, .35); }

.btn-outline { background: transparent; color: var(--brand); border-color: var(--brand); }
.btn-outline:hover { background: var(--brand-pale); }

.btn-brown { background: var(--brand-deep); color: var(--white); border-color: var(--brand-deep); }
.btn-brown:hover { background: var(--brand-ink); box-shadow: 0 8px 20px rgba(29, 20, 7, .30); }

.btn-kakao { background: var(--kakao); color: var(--kakao-ink); }
.btn-kakao:hover { background: #f2d600; box-shadow: 0 8px 20px rgba(0, 0, 0, .12); }

.btn-lg { padding: 16px 34px; font-size: 18px; min-height: 58px; }
.btn-block { width: 100%; }

/* ---------- Topbar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 247, 241, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner { display: flex; align-items: center; gap: 20px; height: 72px; }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand-logo { width: 44px; height: 44px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; justify-content: center; }
.brand-text small { font-size: 14px; font-weight: 700; color: var(--ink-soft); letter-spacing: .3px; }

.nav { margin-left: auto; display: flex; align-items: center; gap: 26px; }
.nav-link { color: var(--ink-soft); text-decoration: none; font-weight: 600; font-size: 16px; }
.nav-link:hover { color: var(--brand); }

.nav-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: .25s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, #fbeedc 0%, var(--paper) 100%); }
.hero::before {
  content: "";
  position: absolute;
  width: 460px; height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(22, 139, 0, .10), transparent 70%);
  top: -140px; right: -120px;
}
.hero::after {
  content: "";
  position: absolute;
  width: 380px; height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 115, 10, .12), transparent 70%);
  bottom: -160px; left: -120px;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 48px;
  align-items: center;
  padding-top: 72px;
  padding-bottom: 84px;
}

.eyebrow {
  display: inline-block;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .5px;
  color: var(--green-700);
  background: var(--green-100);
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.hero-title { font-size: 42px; font-weight: 800; line-height: 1.3; margin-bottom: 18px; }
.hero-title .accent { color: var(--brand); }
.hero-sub { font-size: 18px; color: var(--ink-soft); line-height: 1.7; margin-bottom: 28px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }

.hero-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 18px; }
.hero-tags li {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 7px;
}
.hero-tags li::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--brand);
}

.hero-visual { display: flex; justify-content: center; }
.hero-poster {
  width: 100%;
  max-width: 380px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  padding: 10px;
}
.hero-poster img { width: 100%; height: 460px; object-fit: cover; border-radius: 12px; }
.hero-poster figcaption { padding: 12px 8px 8px; font-size: 15px; color: var(--ink-mute); text-align: center; }
.hero-poster .btn { margin-top: 4px; }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-dark { background: #20160a; }

.section-head { text-align: center; max-width: 760px; margin: 0 auto 56px; }
.section-kicker {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--brand);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.section-title { font-size: 32px; font-weight: 800; line-height: 1.35; margin-bottom: 14px; }
.section-dark .section-title { color: var(--white); }

.badge-lv {
  display: inline-block;
  background: var(--brand);
  color: var(--white);
  font-size: 16px;
  padding: 3px 14px;
  border-radius: 999px;
  vertical-align: 6px;
  margin-left: 8px;
}

.section-desc { font-size: 17px; color: var(--ink-soft); line-height: 1.7; }
.section-desc strong { color: var(--brand-dark); }
.section-dark .section-desc { color: #d8cfc2; }
.section-dark .section-desc strong { color: #ff8a2a; }

/* ---------- Intro (좌측 텍스트 + 우측 이미지) ---------- */
.intro-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 64px;
}
.intro-heading { font-size: 24px; font-weight: 800; line-height: 1.4; margin-bottom: 10px; }
.intro-lead { font-size: 17px; color: var(--ink-soft); line-height: 1.7; margin-bottom: 26px; }
.intro-points { list-style: none; display: flex; flex-direction: column; gap: 22px; }
.intro-points li { display: flex; gap: 18px; align-items: flex-start; }
.intro-ico {
  flex: 0 0 auto;
  width: 54px; height: 54px;
  display: flex; align-items: center; justify-content: center;
  background: var(--brand-pale);
  color: var(--brand);
  border-radius: 16px;
}
.intro-points li:nth-child(2) .intro-ico { background: var(--green-100); color: var(--green-700); }
.intro-points strong { font-size: 18px; font-weight: 800; line-height: 1.45; display: block; margin-bottom: 6px; }
.intro-points p { font-size: 16px; color: var(--ink-soft); line-height: 1.7; }
.intro-photo img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 22px;
  box-shadow: var(--shadow);
}

/* 1급은 다크 섹션 -> 인트로 텍스트 오버라이드 */
.section-dark .intro-heading { color: var(--white); }
.section-dark .intro-lead { color: #d8cfc2; }
.section-dark .intro-points strong { color: var(--white); }
.section-dark .intro-points p { color: #d8cfc2; }

/* ---------- Marquee (교육 현장 자동 슬라이드) ---------- */
.photo-block { margin-bottom: 56px; }
.gallery-title { font-size: 19px; font-weight: 800; margin-bottom: 16px; }
.section-dark .gallery-title { color: var(--white); }
.marquee { overflow: hidden; }
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 80s linear infinite;
}
.marquee-group { display: flex; gap: 16px; padding-right: 16px; }
.marquee-group figure {
  flex: 0 0 auto;
  width: 250px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.marquee-group img {
  width: 100%;
  height: 188px;
  object-fit: cover;
}
.marquee:hover .marquee-track,
.marquee:focus-within .marquee-track { animation-play-state: paused; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  .marquee { overflow-x: auto; }
}

/* ---------- Carousel (1급 vs 2급 비교) ---------- */
.section-compare { background: #f7ecdd; }
.carousel-wrap { position: relative; max-width: 920px; margin: 0 auto; }
.carousel {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  cursor: grab;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 4px 0 14px;
}
.carousel::-webkit-scrollbar { display: none; }
.carousel.dragging { cursor: grabbing; scroll-snap-type: none; }
.carousel > .card {
  scroll-snap-align: start;
  flex: 0 0 auto;
  width: calc(50% - 8px);
  background: #1c1208;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(64, 32, 0, .18);
}
.carousel > .card img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; user-select: none; -webkit-user-drag: none; }
.carousel.dragging > .card img { pointer-events: none; }

.carousel-btn {
  position: absolute;
  top: calc(50% - 16px);
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid #e8e2d8;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .14);
  cursor: pointer;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  transition: background .15s, color .15s;
}
.carousel-btn:hover { background: var(--brand); color: var(--white); border-color: var(--brand); }
.carousel-btn:disabled { opacity: .35; cursor: default; pointer-events: none; }
.carousel-btn.btn-prev { left: -20px; }
.carousel-btn.btn-next { right: -20px; }

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 6px;
}
.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #cbb893;
  cursor: pointer;
  transition: background .2s, width .2s;
}
.carousel-dot.active { background: var(--brand); width: 26px; }

.gallery-hint { font-size: 15px; color: var(--ink-mute); text-align: center; margin-top: 10px; }

/* ---------- Education grid ---------- */
.edu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 56px; }
.edu-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--brand);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow);
}
.edu-card:last-child { border-top-color: var(--green-700); }
.edu-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.edu-head h3 { font-size: 20px; font-weight: 800; line-height: 1.4; }
.edu-badge {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 5px 12px;
  border-radius: 999px;
}
.edu-badge.online { background: #eff6ff; color: #1d4ed8; }
.edu-badge.offline { background: #fef3c7; color: #b45309; }
.edu-list { list-style: none; }
.edu-list li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
  font-size: 16px;
  color: var(--ink-soft);
  line-height: 1.7;
}
.edu-list li::before {
  content: "";
  position: absolute;
  left: 2px; top: 11px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--brand);
}
.edu-note {
  margin-top: 18px;
  font-size: 15px;
  color: var(--ink-mute);
  background: var(--brand-pale);
  border-left: 3px solid var(--brand);
  padding: 12px 14px;
  border-radius: 0 10px 10px 0;
  line-height: 1.7;
}

/* ---------- Who (풀폭 사진 배너) ---------- */
.who {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  padding: 76px 32px;
  text-align: center;
  background-image: linear-gradient(rgba(29, 20, 7, .72), rgba(29, 20, 7, .82)), url("../images/2급/현장/현장-05.png");
  background-size: cover;
  background-position: center;
}
.who-inner { position: relative; z-index: 1; }
.who h3 { font-size: 22px; font-weight: 800; color: var(--white); margin-bottom: 20px; }
.who-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.chip {
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .45);
  color: var(--white);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.5;
  padding: 12px 20px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}

/* ---------- 1급 마무리 박스 (추천대상과 동일 스타일) ---------- */
.who-lv1 {
  background-image:
    linear-gradient(rgba(29, 20, 7, .74), rgba(29, 20, 7, .84)),
    url("../images/1급/현장/현장-02.jpg");
}
.who-desc {
  font-size: 17px;
  color: #e8dfd2;
  line-height: 1.8;
  max-width: 640px;
  margin: 0 auto 24px;
}
.who-desc strong { color: #ffd7a0; }
.who-cta {
  font-size: 18px;
  font-weight: 800;
  color: var(--white);
  line-height: 1.6;
}
.who-cta strong { color: #ffb020; }

/* ---------- Inquiry form ---------- */
.inquiry-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px 40px 32px;
  box-shadow: var(--shadow);
}
.field { margin-bottom: 22px; }
fieldset.field { border: 0; padding: 0; margin: 0; }
.field legend,
.field label {
  display: block;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--ink);
}
.field legend { padding: 0; }
.req { color: #dc2626; }

.field input[type="text"],
.field input[type="tel"],
.field textarea {
  width: 100%;
  padding: 14px 16px;
  font-size: 16px;
  font-family: inherit;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: #fcfcfb;
  color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(232, 115, 10, .14);
  background: var(--white);
}

.radio-row { display: flex; flex-wrap: wrap; gap: 12px; }
.radio {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  min-height: 52px;
  margin-bottom: 0 !important;
  cursor: pointer;
  background: #f6f4f0;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 12px 20px;
  font-weight: 600;
  font-size: 16px;
  color: var(--ink-soft);
  transition: .15s;
}
.radio:has(input:checked) {
  border-color: var(--brand);
  background: var(--brand-pale);
  color: var(--brand-dark);
  font-weight: 700;
}
.radio input { accent-color: var(--brand); }

.privacy {
  border-top: 1px dashed var(--line);
  padding-top: 20px;
  margin-bottom: 24px;
}
.checkbox { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: 16px; line-height: 1.6; font-weight: 600; }
.checkbox input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--brand); flex: 0 0 auto; }
.privacy-toggle {
  display: inline-block;
  background: none;
  border: 0;
  color: var(--brand-dark);
  font-size: 15px;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
  margin: 10px 0 0 28px;
}
.privacy-detail {
  background: #f7f4ef;
  border-radius: 12px;
  padding: 16px 18px;
  margin: 12px 0 0 28px;
}
.privacy-detail ul { list-style: none; }
.privacy-detail li {
  position: relative;
  padding-left: 16px;
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.7;
  margin-bottom: 6px;
}
.privacy-detail li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--brand);
}

.form-status {
  margin-top: 16px;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  min-height: 24px;
}
.form-status.success { color: var(--brand-dark); }
.form-status.error { color: #dc2626; }

/* ---------- Footer ---------- */
.footer {
  background: #1a1107;
  color: #e9e2d6;
  padding: 72px 0 40px;
}
.footer-kakao { text-align: center; margin-bottom: 56px; }
.footer-kakao-title { font-size: 25px; font-weight: 800; color: var(--white); margin-bottom: 8px; }
.footer-kakao-sub { font-size: 16px; color: #c9bfae; margin-bottom: 22px; }

.footer-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding-top: 28px;
}
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-logo { height: 44px; width: auto; object-fit: contain; }
.footer-brand strong { font-size: 17px; color: var(--white); }
.footer-brand p { font-size: 14px; color: #c9bfae; }
.footer-copy { font-size: 14px; color: #9c8f7a; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; padding-top: 48px; padding-bottom: 60px; }
  .hero-title { font-size: 32px; }
  .hero-poster { max-width: 320px; }
  .hero-poster img { height: 380px; }
  .intro-grid { grid-template-columns: 1fr; gap: 28px; }
  .intro-photo img { height: 320px; }
  .marquee-group figure { width: 240px; }
  .who { padding: 56px 20px; }

  .nav {
    position: fixed;
    top: 72px;
    left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 16px 24px 24px;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 30px rgba(0, 0, 0, .08);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: .25s;
  }
  .nav.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-link { padding: 12px 6px; }
  .nav-kakao { margin-top: 10px; justify-content: center; }
  .nav-toggle { display: flex; }
}

@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .section-title { font-size: 28px; }
  .section-desc { font-size: 17px; }
  .edu-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 31px; }
  .hero-sub { font-size: 17px; }
  .hero-cta .btn { width: 100%; }
  .inquiry-form { padding: 28px 20px 24px; }
  .intro-photo img { height: 240px; }
  .marquee-group figure { width: 190px; }
  .marquee-group img { height: 150px; }
  .carousel > .card { width: 78%; }
  .carousel-btn { width: 40px; height: 40px; top: calc(50% - 14px); }
  .carousel-btn.btn-prev { left: -2px; }
  .carousel-btn.btn-next { right: -2px; }
  .carousel-dots { margin-top: 4px; }
  .who { padding: 48px 16px; }
}
