/* ============
   Theme tokens
   ============ */
:root {
  --bg: #f5efe3;
  --surface: #fff9ed;
  --text: #2d2615;
  --muted: #7d715b;
  --primary: #5b3a16;
  --accent: #d8a74a;
  --ring: rgba(91, 58, 22, 0.4);
}

@font-face {
  font-family: "Pretendard";
  src: url("https://cdn.jsdelivr.net/gh/Project-Noonnu/noonfonts_2107@1.1/Pretendard-Thin.woff")
    format("woff");
  font-weight: 100;
  font-display: swap;
}

/* =========
   Resets
   ========= */
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
}
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}
ul[role],
ol[role],
ul:not([role]),
ol:not([role]) {
  list-style: none;
  margin: 0;
  padding: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
address {
  font-style: normal;
}
.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;
}
address {
  font-style: normal;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 2px;
}

/* =========
   Base
   ========= */
html {
  scroll-behavior: smooth;
}
body {
  font-family: "Pretendard", "Pretendard Variable", "Noto Sans KR",
    Apple SD Gothic Neo, system-ui, -apple-system, "Segoe UI", Roboto,
    sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}
.container {
  width: min(1120px, 90vw);
  margin: 0 auto;
}
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link:focus {
  left: 16px;
  top: 16px;
  width: auto;
  height: auto;
  background: #fff;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

/* =========
   Header / Hero
   ========= */
.hero {
  color: #fff;
  background: radial-gradient(
      circle at 18% 18%,
      rgba(255, 244, 211, 0.35),
      transparent 60%
    ),
    radial-gradient(
      circle at 82% 12%,
      rgba(255, 244, 211, 0.25),
      transparent 58%
    ),
    linear-gradient(135deg, #4b2d12, #8f5f24);
  padding-bottom: 4rem;
  border-bottom-left-radius: 3rem;
}
.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 0 0.5rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.brand-icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.nav-links a {
  opacity: 0.9;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
}
.nav-links a:hover {
  background: rgba(255, 255, 255, 0.12);
}
.cta-link {
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  padding: 0.5rem 1.1rem;
}
.cta-link:hover {
  background: #fff;
  color: var(--primary);
}

.hero-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: center;
  gap: 2.5rem;
  padding: 2.5rem 0 0;
}
.badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.16);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.9rem;
  margin-bottom: 0.9rem;
  letter-spacing: 0.04em;
}
h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.15;
  margin: 0 0 1rem;
}
.hero-text {
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.05rem;
  margin-bottom: 1.6rem;
}
.hero-actions {
  display: grid;
  grid-template-columns:
    minmax(0, 0.5fr)
    minmax(0, 0.4fr)
    minmax(64px, 0.1fr);
  gap: 0.8rem;
  align-items: stretch;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 12px;
  padding: 0.85rem 1.4rem;
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  box-shadow: 0 12px 26px rgba(43, 28, 12, 0.18);
  width: 100%;
}
.btn-label {
  display: inline-flex;
  align-items: center;
}
.btn-sub {
  display: inline-flex;
  align-items: center;
  margin-left: 0.4rem;
  letter-spacing: 0.01em;
}
.btn-primary {
  background: var(--accent);
  color: #1a1a1a;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(216, 167, 74, 0.35);
}
.btn-outline {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.7);
  color: #fff;
}
.btn-kakao {
  background: #fee500;
  color: #3a1c1c;
  border: 1px solid rgba(58, 28, 28, 0.1);
  padding: 0;
  aspect-ratio: 1 / 1;
  width: 100%;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
}
.btn-kakao:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(254, 229, 0, 0.35);
}
.kakao-icon {
  width: 72%;
  height: 72%;
  object-fit: contain;
}

.hero-figure {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 24px;
  min-height: 420px;
  box-shadow: 0 18px 48px rgba(43, 28, 12, 0.24);
}
.hero-figure img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-figure::after {
  content: "";
  position: absolute;
  inset: 0;
}
.hero-figure-overlay {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 1.1rem 1.2rem 1.3rem;
  color: #fff;
  display: grid;
  gap: 0.45rem;
}
.hero-figure-overlay h2 {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.2;
  color: #fff;
}
.hero-figure-overlay ul {
  list-style: none;
  margin: 0.2rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}
.hero-figure-overlay li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: #fff;
}
.hero-figure-overlay li span {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  color: #3d240d;
  font-weight: 700;
}

/* =========
   Sections
   ========= */
.section {
  padding: 4.5rem 0;
}
.section-title {
  text-align: center;
  margin-bottom: 2.4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
}
.section-title h2 {
  margin: 0;
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 0.02em;
}
.section-title p {
  margin: 0;
  color: var(--muted);
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.2rem;
}
.card {
  background: var(--surface);
  border-radius: 18px;
  padding: 1.6rem;
  box-shadow: 0 16px 36px rgba(47, 32, 13, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 52px rgba(47, 32, 13, 0.16);
}
.card h3 {
  margin: 0 0 0.6rem;
  font-size: 1.2rem;
  color: var(--primary);
}
.card p {
  margin: 0;
  color: var(--muted);
}

/* Gallery */
.section-gallery .section-title p {
  color: var(--muted);
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.9rem;
}
.gallery-item {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 16px;
  aspect-ratio: 4 / 3;
  background: #f0e4cf;
  box-shadow: 0 14px 32px rgba(47, 32, 13, 0.12);
}
.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(32, 22, 12, 0) 45%,
    rgba(32, 22, 12, 0.38) 100%
  );
  opacity: 0;
  transition: opacity 0.25s ease;
}
.gallery-item:hover .gallery-img {
  transform: scale(1.05);
}
.gallery-item:hover::after {
  opacity: 1;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(18, 12, 6, 0.92);
}
.lightbox[hidden] {
  display: none;
}
.lightbox-stage {
  position: relative;
  width: min(90vw, 920px);
  aspect-ratio: 4 / 3;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 16px;
  overflow: hidden;
  background: #20160b;
  box-shadow: 0 25px 60px rgba(20, 12, 4, 0.65);
}
.lightbox-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(253, 246, 230, 0.55);
  background: rgba(32, 22, 12, 0.45);
  color: #fdf6e6;
  cursor: pointer;
  backdrop-filter: blur(4px);
  font-size: 28px;
  line-height: 1;
}
.lightbox-close {
  top: 16px;
  right: 16px;
  font-size: 26px;
}
.lightbox-prev {
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
}
.lightbox-next {
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
}
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(253, 246, 230, 0.18);
}

@media (max-width: 768px) {
  .lightbox {
    padding: 0;
  }
  .lightbox-stage {
    width: min(96vw, 520px);
    aspect-ratio: 3 / 4;
    border-radius: 12px;
  }
  .lightbox-close,
  .lightbox-prev,
  .lightbox-next {
    width: 48px;
    height: 48px;
  }
}

/* Pricing */
.section-pricing .subline {
  margin-top: -0.4rem;
  color: var(--muted);
}
.pricing-wrap {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 1.2rem;
  align-items: stretch;
}
.curriculum-card {
  border-left: 4px solid var(--accent);
}
.curriculum-list {
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}
.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
}
.plan-card {
  background: var(--surface);
  border-radius: 18px;
  padding: 1.4rem 1.6rem;
  box-shadow: 0 16px 36px rgba(47, 32, 13, 0.1);
  display: grid;
  gap: 0.4rem;
  align-content: start;
}
.lesson-card {
  gap: 0.6rem;
}
.lesson-card .list {
  color: var(--text);
}
.plan-card .plan-name {
  margin: 0;
  font-size: 1.05rem;
  color: var(--primary);
}
.plan-card .plan-price {
  margin: 0.1rem 0 0.2rem;
  font-weight: 800;
  color: var(--text);
}
.plan-card .plan-price strong {
  font-size: clamp(1.6rem, 3.4vw, 2.1rem);
  letter-spacing: 0.01em;
}
.plan-card .plan-price span {
  margin-left: 0.2rem;
  font-size: 1rem;
  color: var(--muted);
  font-weight: 700;
}
.plan-card.featured {
  outline: 2px solid rgba(216, 167, 74, 0.55);
  box-shadow: 0 20px 48px rgba(216, 167, 74, 0.25);
}

/* Fees */
.section-fees .fees-wrapper {
  background: var(--surface);
  border-radius: 18px;
  padding: 1.2rem;
  box-shadow: 0 16px 32px rgba(47, 32, 13, 0.08);
}
.fees-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.98rem;
}
.fees-table thead th {
  position: sticky;
  top: 0;
  background: rgba(91, 58, 22, 0.08);
  color: var(--primary);
  font-weight: 700;
}
.fees-table th,
.fees-table td {
  text-align: left;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid rgba(124, 108, 86, 0.2);
}
.note {
  margin-top: 0.8rem;
  color: var(--muted);
  font-size: 0.92rem;
}

/* Career */
.career {
  background: linear-gradient(
    135deg,
    rgba(91, 58, 22, 0.08),
    rgba(216, 167, 74, 0.12)
  );
}
.career-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.2rem;
}
.career-card {
  background: var(--surface);
  border-radius: 18px;
  padding: 1.6rem;
  box-shadow: 0 18px 40px rgba(47, 32, 13, 0.1);
}
.career-card h2 {
  margin: 0 0 0.8rem;
  font-size: 1.3rem;
  color: var(--primary);
}
.list {
  display: grid;
  gap: 0.5rem;
  padding: 0;
  margin: 0;
  color: var(--muted);
}
.list li {
  position: relative;
  padding-left: 1rem;
}
.list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.two-column {
  column-count: 2;
  column-gap: 1.2rem;
}
.two-column li {
  break-inside: avoid;
  margin-bottom: 0.4rem;
}

/* Hours / Address */
.section-hours .hours-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.2rem;
  align-items: stretch;
}
.info-card {
  background: var(--surface);
  border-radius: 16px;
  padding: 1.2rem 1.2rem;
  box-shadow: 0 12px 28px rgba(47, 32, 13, 0.08);
  display: flex;
  flex-direction: column;
}
.hours-card {
  flex: 1;
  background: linear-gradient(135deg, rgba(91, 58, 22, 0.04), rgba(216, 167, 74, 0.08));
  border: 1px solid rgba(91, 58, 22, 0.08);
}
.card-head {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.6rem;
}
.card-head h3 {
  margin: 0;
  font-size: 1.05rem;
  color: var(--primary);
}
.icon {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: rgba(91, 58, 22, 0.08);
  color: var(--primary);
}
.hours-list {
  display: grid;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
}
.hours-list li {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  padding: 0.5rem 0.6rem;
  border-radius: 10px;
  background: rgba(91, 58, 22, 0.06);
}
.hours-list .label {
  font-weight: 700;
  color: var(--primary);
}
.hours-list .time {
  font-variant-numeric: tabular-nums;
  color: var(--text);
}
.muted {
  color: var(--muted);
}
.address-card {
  padding-bottom: 1rem;
}
.metro-badge {
  display: inline-block;
  margin: 0.1rem 0 0.5rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(216, 167, 74, 0.22);
  color: #6b4b10;
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
}
.addr-text {
  margin: 0 0 0.4rem;
  color: var(--text);
}
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: auto;
  padding-top: 0.8rem;
}
.address-card {
  position: relative;
  overflow: hidden;
  flex: 1;
}
.address-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(91, 58, 22, 0.05), rgba(216, 167, 74, 0.08));
  pointer-events: none;
}
.address-card > * {
  position: relative;
  z-index: 1;
}
.address-card .addr-text {
  display: grid;
  gap: 0.2rem;
  padding: 0.6rem 0.7rem;
  border-radius: 12px;
  background: rgba(255, 249, 237, 0.9);
  border: 1px solid rgba(91, 58, 22, 0.08);
  margin-bottom: 0.6rem;
  color: var(--primary);
}
.address-card .addr-text span {
  color: var(--text);
  font-size: 0.9rem;
}
.contact-actions .btn {
  box-shadow: none;
  border: 1px solid rgba(91, 58, 22, 0.25);
  color: var(--primary);
  background: #fff;
  justify-content: center;
}
.contact-actions .btn:hover {
  background: rgba(91, 58, 22, 0.08);
}

.hours-card .note {
  margin-top: auto;
  padding-top: 0.8rem;
}

/* About */
.about {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.2rem;
  align-items: center;
}
.about-text h2 {
  margin: 0 0 0.6rem;
  font-size: clamp(1.4rem, 2.2vw, 1.8rem);
  color: var(--primary);
}
.about-text p {
  margin: 0 0 0.6rem;
  color: var(--muted);
}
.about-image {
  border-radius: 20px;
  min-height: 300px;
  background: linear-gradient(
      135deg,
      rgba(91, 58, 22, 0.12),
      rgba(216, 167, 74, 0.22)
    ),
    url("./images/image_03.jpeg");
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}
.about-image::before {
  content: "바둑 수업";
  position: absolute;
  bottom: 16px;
  right: 16px;
  background: rgba(43, 28, 12, 0.85);
  color: #fff;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
}

/* Footer */
.footer {
  background: #2b1c0c;
  color: #fdf6e6;
  padding: 2.8rem 0;
  margin-top: 1rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.2rem;
}
.footer-title {
  margin: 0 0 0.6rem;
  font-size: 1.05rem;
  opacity: 0.92;
}
.footer-column p,
.footer-column li {
  opacity: 0.86;
}
.footer-actions {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.6rem;
}
.footer .btn-outline {
  border-color: rgba(253, 246, 230, 0.65);
  color: #fdf6e6;
}
.footer-meta {
  display: flex;
  gap: 0.8rem;
  justify-content: space-between;
  flex-wrap: wrap;
  opacity: 0.8;
  margin-top: 1.2rem;
  font-size: 0.92rem;
}

/* =========
   Responsive
   ========= */
@media (max-width: 768px) {
  .two-column {
    column-count: 1;
  }
  .hero-figure {
    min-height: 320px;
  }
  .pricing-wrap {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .top-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
  }
  .nav-links {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 0.6rem;
  }
  .nav-links a {
    padding: 0.4rem 0.65rem;
    font-size: 0.9rem;
  }
  h1 {
    font-size: clamp(1.8rem, 8vw, 2.6rem);
  }
  .hero-text {
    font-size: 0.98rem;
  }
  .hero-actions {
    grid-template-columns:
      minmax(0, 0.5fr)
      minmax(0, 0.38fr)
      minmax(30px, 0.12fr);
    gap: 0.65rem;
  }
  .hero-actions .btn-primary {
    padding: 0.7rem 1rem;
  }
  .hero-actions .btn-primary .btn-sub {
    display: none;
  }
  .hero-actions .btn-outline {
    padding: 0.7rem 1rem;
  }
  .btn-kakao {
    border-radius: 12px;
  }
  .hero-figure {
    min-height: 260px;
  }
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
  }
  .gallery-item {
    aspect-ratio: 1;
  }
  .contact-actions {
    flex-direction: column;
    gap: 0.45rem;
  }
  .contact-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}
