/* 교습소철거 — 메인 페이지 전용 스타일 (정돈·신뢰 컨셉) */

:root {
  --primary: #14453A;
  --primary-light: #2A6354;
  --accent: #7ED957;
  --accent-text: #256B24;
  --bg: #FFFFFF;
  --bg-alt: #F4F6F7;
  --border: #DDE2E5;
  --text: #14453A;
  --text-muted: #55636D;
  --radius-pill: 999px;
  --radius-card: 14px;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Malgun Gothic", sans-serif;
  color: var(--text);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { color: var(--primary); line-height: 1.35; margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 5vw, 2.75rem); }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
a { color: var(--accent-text); }
img { max-width: 100%; height: auto; display: block; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--primary); color: #fff; padding: .75em 1.2em; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---- header ---- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: var(--max); margin: 0 auto; padding: .7em 1.25em;
  display: flex; align-items: center; gap: 1.5em;
}
.brand {
  font-weight: 800; font-size: 1.25rem; color: var(--primary);
  text-decoration: none; margin-right: auto;
}
.header-nav { display: flex; gap: 1.4em; }
.header-nav a {
  color: var(--text); text-decoration: none; font-weight: 600; font-size: .95rem;
}
.header-nav a:hover { color: var(--accent-text); }
.header-cta { font-size: .9rem; padding: .6em 1.3em; }

@media (max-width: 768px) {
  .header-nav { display: none; }
}

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 44px; padding: .8em 1.7em;
  border-radius: var(--radius-pill);
  font-weight: 700; text-decoration: none; font-size: 1rem;
  border: 2px solid transparent; cursor: pointer;
  transition: transform .15s ease, background .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn .icon { width: 1.1em; height: 1.1em; fill: currentColor; flex-shrink: 0; }

.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-light); }

.btn-accent { background: var(--accent-text); color: #fff; }
.btn-accent:hover { background: var(--accent); }

.btn-outline { background: #fff; color: var(--accent-text); border-color: var(--accent); }
.btn-outline:hover { background: var(--accent); color: var(--primary); }

/* ---- hero ---- */
.hero { position: relative; color: #fff; overflow: hidden; }
.hero-media { position: relative; }
.hero-media picture, .hero-media img {
  width: 100%; height: 82vh; min-height: 480px; max-height: 820px;
  object-fit: cover;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,69,58,.55) 0%, rgba(20,69,58,.82) 100%);
  opacity: 0;
}
.hero-content {
  position: absolute; inset: 0;
  max-width: var(--max); margin: 0 auto; padding: 0 1.25em;
  display: flex; flex-direction: column; justify-content: center;
}
.hero h1 { color: #fff; margin-bottom: .3em; text-shadow: 0 2px 12px rgba(0,0,0,.55); }
.hero-sub { font-size: 1.1rem; max-width: 42em; color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,.55); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 1em; margin-top: 1.4em; }
.hero .btn-outline { background: rgba(255,255,255,.08); color: #fff; border-color: #fff; }
.hero .btn-outline:hover { background: #fff; color: var(--primary); }

/* ---- sections / bands ---- */
.band { padding: 3.5em 1.25em; background: var(--bg); }
.band-alt { background: var(--bg-alt); }
.band-inner { max-width: var(--max); margin: 0 auto; }
.band-inner > p { color: var(--text-muted); max-width: 62em; }

/* check list / step list */
.check-list, .step-list { list-style: none; margin: 1.5em 0 0; padding: 0; display: grid; gap: 1em; }
.check-list li, .step-list li {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-card);
  padding: 1.1em 1.3em; display: flex; flex-direction: column; gap: .3em;
}
.band-alt .check-list li, .band-alt .step-list li { background: #fff; }
.check-list strong, .step-list strong { color: var(--primary); }
.check-list span, .step-list span { color: var(--text-muted); font-size: .96rem; }

.step-list { counter-reset: step; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.step-list li { position: relative; padding-left: 3.2em; }
.step-list li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 1.1em; top: 1.1em;
  width: 1.7em; height: 1.7em; border-radius: 50%;
  background: var(--accent); color: var(--primary); font-weight: 800;
  display: flex; align-items: center; justify-content: center; font-size: .9rem;
}

.check-list { grid-template-columns: 1fr; }

/* table */
.table-scroll { overflow-x: auto; margin-top: 1.5em; -webkit-overflow-scrolling: touch; }
table {
  width: 100%; min-width: 640px; border-collapse: collapse; background: #fff;
  border-radius: var(--radius-card); overflow: hidden;
}
th, td { padding: .9em 1.1em; text-align: left; border-bottom: 1px solid var(--border); font-size: .96rem; }
thead th { background: var(--primary); color: #fff; font-weight: 700; }
tbody th { color: var(--primary); white-space: nowrap; }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: none; }

/* faq */
.faq-list { display: grid; gap: .8em; margin-top: 1.5em; }
.faq-item {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-card);
  padding: .2em 1.3em;
}
.faq-item summary {
  cursor: pointer; padding: 1em 0; list-style: none; position: relative;
  min-height: 44px; display: flex; align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 { margin: 0; padding-right: 2em; font-size: 1.02rem; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; color: var(--accent-text); font-weight: 300;
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { color: var(--text-muted); padding-bottom: 1.1em; margin: 0; }

/* link cards */
.link-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2em; margin-top: 1.5em; }
.link-card {
  display: block; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-card);
  overflow: hidden; text-decoration: none; transition: box-shadow .15s ease, transform .15s ease;
}
.link-card:hover { box-shadow: 0 8px 24px rgba(20,69,58,.12); transform: translateY(-2px); }
.link-card picture, .link-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.link-card-body { padding: 1.3em 1.5em 1.5em; }
.link-card h3 { color: var(--primary); margin-bottom: .4em; }
.link-card p { color: var(--text-muted); margin: 0; font-size: .95rem; }

@media (max-width: 768px) {
  .link-cards { grid-template-columns: 1fr; }
}

/* ---- carousel ---- */
.carousel-section { padding: 3.5em 1.25em; max-width: var(--max); margin: 0 auto; }
.carousel { position: relative; }
.carousel-track {
  display: flex; transition: transform .5s ease;
  border-radius: var(--radius-card); overflow: hidden;
}
.carousel-slide {
  flex: 0 0 100%; position: relative; text-decoration: none; display: block;
}
.carousel-slide img { width: 100%; height: 46vw; max-height: 420px; min-height: 220px; object-fit: cover; }
.carousel-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(0deg, rgba(20,69,58,.85), transparent);
  color: #fff; font-weight: 700; padding: 2.5em 1.2em 1em;
}
.carousel-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%; border: none;
  background: rgba(255,255,255,.9); color: var(--primary);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
}
.carousel-arrow svg { width: 1.2em; height: 1.2em; }
.carousel-prev { left: 12px; }
.carousel-next { right: 12px; }
.carousel-dots { display: flex; justify-content: center; margin-top: 1em; }
.carousel-dot {
  width: 44px; height: 44px; min-width: 44px; min-height: 44px;
  border: none; background: transparent; padding: 0; cursor: pointer;
  position: relative;
  display: flex; align-items: center; justify-content: center;
}
.carousel-dot::before {
  content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--border);
}
.carousel-dot[aria-selected="true"]::before { background: var(--accent); }

/* ---- footer ---- */
footer {
  background: var(--primary); color: #E7EBEE; padding: 3em 1.25em 2em;
}
footer nav {
  max-width: var(--max); margin: 0 auto 2em; display: flex; flex-wrap: wrap; gap: 1em 1.6em;
}
footer nav a { color: #E7EBEE; text-decoration: none; font-size: .92rem; }
footer nav a:hover { color: var(--accent); }
footer address {
  max-width: var(--max); margin: 0 auto; font-style: normal;
  font-size: .9rem; line-height: 1.9; color: #B7C1C9;
  border-top: 1px solid rgba(255,255,255,.15); padding-top: 1.5em;
}
footer address a { color: #7ED957; text-decoration: none; font-weight: 700; }
footer p { max-width: var(--max); margin: 1.2em auto 0; font-size: .82rem; color: #A9B8B2; }

/* ---- reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .carousel-track { transition: none; }
  .btn, .link-card { transition: none; }
}

/* ---- breakpoints ---- */
@media (max-width: 1280px) {
  :root { --max: 960px; }
}
@media (max-width: 1024px) {
  .hero-content { padding: 0 2em; }
}
@media (max-width: 480px) {
  .band { padding: 2.4em 1em; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; }
  .carousel-caption { padding: 2em .9em .8em; font-size: .95rem; }
}


/* 모바일 하단 고정 CTA 바 (전화/문의) — 번호 텍스트 미노출 */
.mobile-cta-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999;
  display: none;
  box-shadow: 0 -2px 12px rgba(0,0,0,.16);
  padding-bottom: env(safe-area-inset-bottom, 0);
}
@media (max-width: 767px) {
  .mobile-cta-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  body { padding-bottom: 64px; }
}
.mobile-cta-bar a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 56px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  color: #fff;
  background: #14453A;
}
.mobile-cta-bar .mobile-cta-contact {
  background: #14453A;
  filter: brightness(1.22);
  border-left: 1px solid rgba(255,255,255,.25);
}
