* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif;
  color: #1f1a17;
  background-color: #f8f4ef;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

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

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.section {
  padding: 88px 0;
}

.alt-bg {
  background-color: #f1ebe4;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 42px;
}

.section-label {
  margin: 0 0 12px;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  color: #8a6b52;
  text-transform: uppercase;
}

.section-heading h2,
.about h2,
.contact h2 {
  margin: 0 0 16px;
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
  line-height: 1.25;
  font-weight: 700;
}

.section-heading p,
.about p,
.contact-text,
.path-card p,
.service-item p,
.review-text {
  margin: 0;
  color: #57483c;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 20;
  background: rgba(248, 244, 239, 0.88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(80, 60, 45, 0.08);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 68px;
  gap: 20px;
}

.logo {
  font-size: 1.14rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.92rem;
  color: #4e4035;
}

.nav a:hover {
  color: #8a6b52;
}

/* 메인 이미지 슬라이드 영역 */
.hero {
  position: relative;
  min-height: 72vh;
  max-height: 760px;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fffaf5;
  padding: 40px 0 56px;
}

.hero-slider {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 1.2s ease;
}

.hero-slide.active {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to bottom, rgba(15, 12, 10, 0.08), rgba(15, 12, 10, 0.20)),
    linear-gradient(to right, rgba(20, 14, 10, 0.18), rgba(20, 14, 10, 0.03));
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 86px;
  max-width: 760px;
  transform: translateX(-16px);
}

.hero-eyebrow {
  margin: 0 0 14px;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  opacity: 0.92;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2rem, 4.5vw, 3.8rem);
  line-height: 1.2;
  font-weight: 700;
}

.hero-title-line,
.hero-title-name {
  display: inline;
}

.hero-subcopy {
  margin: 18px 0 0;
  max-width: none;
  font-size: 1rem;
  color: rgba(255, 250, 245, 0.92);
}

@media (min-width: 961px) {
  .hero-subcopy-nowrap {
    white-space: nowrap;
  }
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 600;
  transition: transform 0.25s ease, opacity 0.25s ease, background-color 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background-color: #8a6b52;
  color: #ffffff;
}

.btn-primary:hover {
  opacity: 0.92;
}

.btn-secondary {
  background-color: rgba(255, 250, 245, 0.16);
  color: #fffaf5;
  border: 1px solid rgba(255, 250, 245, 0.35);
}

.paths .btn-secondary,
.contact .btn-secondary {
  color: #4e4035;
  background-color: transparent;
  border: 1px solid rgba(78, 64, 53, 0.18);
}

.paths .btn-secondary:hover,
.contact .btn-secondary:hover {
  background-color: rgba(78, 64, 53, 0.04);
}

.path-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.path-card {
  background: #fffdf9;
  border: 1px solid rgba(78, 64, 53, 0.08);
  border-radius: 22px;
  padding: 26px;
  box-shadow: 0 10px 30px rgba(70, 50, 35, 0.05);
}

.path-number {
  display: inline-block;
  margin-bottom: 16px;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  color: #8a6b52;
}

.path-card h3 {
  margin: 0;
  font-size: 1.5rem;
}

.path-subtitle {
  margin: 8px 0 14px !important;
  font-weight: 600;
  color: #8a6b52 !important;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: start;
}

.about p + p {
  margin-top: 18px;
}

.service-list {
  display: grid;
  gap: 18px;
}

.service-item {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  align-items: start;
  padding: 26px;
  border-bottom: 1px solid rgba(78, 64, 53, 0.1);
  background-color: #fffdf9;
  border-radius: 20px;
}

.service-title-wrap h3 {
  margin: 0 0 8px;
  font-size: 1.38rem;
}

.service-title-wrap span {
  color: #8a6b52;
  font-weight: 600;
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.review-card {
  padding: 26px;
  border-radius: 22px;
  background: #fffdf9;
  border: 1px solid rgba(78, 64, 53, 0.08);
  box-shadow: 0 8px 24px rgba(70, 50, 35, 0.04);
}

.review-author {
  margin: 18px 0 0;
  font-weight: 600;
  color: #8a6b52;
}

.contact-box {
  text-align: center;
  max-width: 980px;
  padding: 44px 30px;
  border-radius: 28px;
  background: linear-gradient(180deg, #fffdf9 0%, #f5efe8 100%);
  border: 1px solid rgba(78, 64, 53, 0.08);
  box-shadow: 0 16px 40px rgba(70, 50, 35, 0.06);
}

.contact-title {
  white-space: nowrap;
  font-size: clamp(0.85rem, 4.4vw, 2.5rem) !important;
  letter-spacing: -0.04em;
}

.contact-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.contact-note {
  margin-top: 18px;
  font-size: 0.92rem;
  color: #7b6a5c;
}

.site-footer {
  padding: 28px 0;
  border-top: 1px solid rgba(78, 64, 53, 0.08);
  background-color: #f8f4ef;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 0.95rem;
  color: #5f5045;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 960px) {
  .path-grid,
  .review-grid,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .service-item {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 64vh;
  }

  .hero-content {
  position: relative;
  z-index: 2;
  padding-top: 86px;
  max-width: 760px;
  transform: translateX(-36px);
}

  .hero h1 {
    font-size: clamp(1.9rem, 6vw, 3rem);
  }
}

@media (max-width: 720px) {
  .section {
    padding: 72px 0;
  }

  .container {
    width: min(100% - 32px, 1120px);
  }

  .header-inner {
    min-height: auto;
    padding: 14px 0;
    flex-direction: column;
    align-items: flex-start;
  }

  .nav {
    gap: 12px;
    font-size: 0.9rem;
  }

  .hero {
    min-height: 58vh;
    padding: 28px 0 40px;
  }

  .hero-content {
    padding-top: 120px;
    padding-bottom: 20px;
    max-width: 100%;
    transform: none;
  }

  .hero-eyebrow {
    font-size: 0.7rem;
    letter-spacing: 0.14em;
  }

  .hero h1 {
    font-size: clamp(1.8rem, 7.2vw, 2.4rem);
    line-height: 1.22;
  }

  .hero-title-line,
  .hero-title-name {
    display: block;
  }


  .hero-subcopy {
    max-width: 100%;
    font-size: 0.92rem;
    white-space: normal;
    word-break: keep-all;
    overflow-wrap: break-word;
  }

  .hero-buttons {
    gap: 10px;
  }

  .btn {
    min-height: 44px;
    padding: 0 16px;
    font-size: 0.92rem;
  }

  .path-card,
  .review-card,
  .service-item,
  .contact-box {
    padding: 22px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
