:root {
  --leaf: #2f6f4e;
  --leaf-dark: #17452f;
  --moss: #8aa46b;
  --water: #3d8591;
  --soil: #7d5f42;
  --sun: #e8b45b;
  --paper: #fffaf1;
  --cream: #f6efe3;
  --ink: #1d2a22;
  --muted: #647066;
  --line: rgba(29, 42, 34, 0.14);
  --shadow: 0 20px 60px rgba(18, 41, 29, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Noto Sans KR", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.65;
  letter-spacing: 0;
}

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

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

.skip-link {
  position: absolute;
  top: -48px;
  left: 16px;
  z-index: 20;
  padding: 10px 14px;
  background: #fff;
  border: 2px solid var(--leaf);
}

.skip-link:focus {
  top: 16px;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  min-height: 76px;
  padding: 12px clamp(18px, 4vw, 52px);
  color: var(--ink);
  transition: background 180ms ease, box-shadow 180ms ease, color 180ms ease;
}

.site-header.is-scrolled {
  color: var(--ink);
  background: rgba(255, 250, 241, 0.94);
  box-shadow: 0 8px 30px rgba(42, 58, 48, 0.12);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 178px;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border: 2px solid currentColor;
  border-radius: 50% 50% 44% 44%;
  position: relative;
}

.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  background: currentColor;
}

.brand-mark::before {
  width: 2px;
  height: 18px;
  left: 15px;
  top: 8px;
}

.brand-mark::after {
  width: 16px;
  height: 2px;
  left: 9px;
  top: 18px;
  transform: rotate(-28deg);
}

.brand strong {
  display: block;
  font-size: 17px;
  line-height: 1.1;
}

.brand small {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  opacity: 0.82;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: clamp(14px, 2.2vw, 32px);
  font-size: 15px;
  font-weight: 700;
}

.nav-links a,
.call-button,
.primary-link,
.secondary-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.call-button {
  gap: 8px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.64);
}

.site-header.is-scrolled .call-button {
  border-color: var(--line);
  background: #fff;
}

.hero {
  position: relative;
  min-height: 92svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  overflow: hidden;
  color: var(--ink);
  background: #ffffff;
  padding: 132px clamp(20px, 5vw, 72px) 74px;
  text-align: center;
}

.hero-text-top {
  max-width: 800px;
  margin: 0 auto 32px auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-subtitle {
  font-size: 15px;
  font-weight: 800;
  color: var(--leaf);
  margin: 0 0 10px 0;
  letter-spacing: 0.5px;
}

.hero-media-wrapper {
  width: min(940px, 100%);
  margin: 0 auto 36px auto;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(44, 63, 51, 0.06);
  background-color: #faf9f5;
}

.hero-video, 
.hero-mobile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-text-bottom {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.desktop-only {
  display: block;
}

.mobile-only {
  display: none;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--water);
  font-size: 14px;
  font-weight: 800;
}

/* Eyebrow utility class */

h1,
h2,
h3,
p {
  word-break: keep-all;
  overflow-wrap: break-word;
}

h1,
h2 {
  margin: 0;
  line-height: 1.16;
  font-weight: 800;
}

h1 {
  max-width: 900px;
  font-size: clamp(28px, 6.4vw, 68px);
  font-family: "Song Myung", "Noto Sans KR", serif;
}

h2 {
  font-size: clamp(28px, 4.4vw, 52px);
}

h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.3;
}

.hero-copy {
  width: min(590px, 100%);
  margin: 0 auto 24px auto;
  font-size: clamp(16px, 2vw, 19px);
  color: var(--muted);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.primary-link,
.secondary-link {
  border-radius: 999px;
  padding: 0 22px;
  font-weight: 800;
}

.primary-link {
  color: #fff;
  background: var(--leaf);
}

.secondary-link {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.58);
}

.hero-panel {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
  width: 100%;
}

.tag-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 18px;
  border-radius: 999px;
  background: #f0f4ee;
  border: 1px solid rgba(47, 111, 78, 0.15);
  color: var(--leaf-dark);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.25s ease;
  cursor: pointer;
}

.tag-chip:hover {
  background: var(--leaf);
  color: #ffffff;
  border-color: var(--leaf);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(44, 63, 51, 0.1);
}

.section {
  padding: clamp(70px, 9vw, 116px) clamp(20px, 5vw, 72px);
}

.section-heading {
  width: min(820px, 100%);
  margin-bottom: 36px;
}

.section-heading.compact {
  margin-inline: auto;
  text-align: center;
}

.feature-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) repeat(3, minmax(170px, 0.72fr));
  gap: 18px;
}

.feature-main,
.feature-item,
.program-layout article,
.review-grid blockquote,
.contact-box,
.portrait {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 10px 34px rgba(44, 63, 51, 0.07);
}

.feature-main {
  padding: clamp(24px, 4vw, 42px);
  background: var(--leaf-dark);
  color: #fff;
}

.inline-photo {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  margin-bottom: 24px;
  aspect-ratio: 4 / 3; /* 변경: 16/10.5 에서 4/3으로 세로 비율을 높여 사진이 더 큼직하게 보이게 함 */
  width: 100%;
  background: var(--leaf-dark); /* Fallback background color during load */
}

@media (max-width: 768px) {
  .inline-photo {
    aspect-ratio: 4 / 3; /* 변경: 모바일에서도 동일하게 4/3 비율로 큼직하게 유지 */
  }
}

.inline-photo .slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  z-index: 1;
}

.inline-photo .slide.active {
  opacity: 1;
  z-index: 2;
}

.inline-photo .slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.inline-photo .slide-indicator {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.55);
  color: rgba(255, 255, 255, 0.95);
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  z-index: 3;
  backdrop-filter: blur(4px);
  pointer-events: none;
  letter-spacing: 0.5px;
}

.feature-main p {
  margin: 0;
  font-size: 18px;
}

.feature-main p + p {
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.82);
}

.feature-item {
  display: flex;
  min-height: 260px;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
}

.feature-item p,
.program-layout p,
.director-copy p,
.visit p,
.faq p {
  margin: 10px 0 0;
  color: var(--muted);
}

.line-icon {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 2px solid currentColor;
  color: var(--leaf);
  position: relative;
}

.line-icon::after {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 999px;
  border: 2px solid currentColor;
}

.line-icon.heart {
  color: #b65d4b;
}

.line-icon.grow {
  color: var(--water);
}

.director {
  display: grid;
  grid-template-columns: minmax(220px, 360px) minmax(0, 720px);
  gap: clamp(28px, 6vw, 80px);
  align-items: center;
  background: #eef4e9;
}

.portrait {
  aspect-ratio: 4 / 5;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: rgba(29, 42, 34, 0.48);
  background:
    radial-gradient(circle at 50% 28%, rgba(255, 255, 255, 0.92) 0 13%, transparent 13.5%),
    linear-gradient(160deg, rgba(47, 111, 78, 0.24), rgba(61, 133, 145, 0.18)),
    #dce7d5;
}

.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.credential-list {
  display: grid;
  gap: 10px;
  margin: 28px 0 0;
}

.credential-list div {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 12px;
  align-items: baseline;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.credential-list dt {
  color: var(--leaf);
  font-weight: 800;
}

.credential-list dd {
  margin: 0;
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

/* Season Slider Styles */
.seasons {
  background: #fff;
}

.season-slider-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  width: 100%;
}

@media (max-width: 1024px) {
  .season-slider-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .season-slider-grid {
    grid-template-columns: 1fr;
  }
}

.season-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 8px 24px rgba(44, 63, 51, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.season-card h3 {
  font-family: "Song Myung", serif;
  font-size: 22px;
  color: var(--leaf-dark);
  margin: 0 0 16px 0;
  text-align: center;
  font-weight: 800;
  position: relative;
  display: inline-block;
}

.season-card h3::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 2px;
  background: var(--leaf);
  border-radius: 2px;
}

.season-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.season-slides {
  width: 100%;
  height: 100%;
  position: relative;
}

.season-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.4s ease-in-out;
  z-index: 1;
}

.season-slide.active {
  opacity: 1;
  z-index: 2;
}

.season-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.season-prev,
.season-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: var(--ink);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3;
  transition: all 0.2s ease;
  font-size: 14px;
  backdrop-filter: blur(4px);
  padding: 0;
}

.season-prev { left: 8px; }
.season-next { right: 8px; }

.season-prev:hover,
.season-next:hover {
  background: var(--leaf);
  color: #ffffff;
  border-color: var(--leaf);
}

.season-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 3;
}

.season-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: all 0.2s ease;
}

.season-dot.active {
  background: #ffffff;
  transform: scale(1.2);
  border-color: var(--leaf);
}

.reviews {
  padding-top: 78px;
}

/* Reviews Slider Styles */
.reviews-slider-container {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 900px;
  margin: 0 auto;
  gap: 20px;
  position: relative;
}

.reviews-slider-track {
  flex: 1;
  overflow: hidden;
  border-radius: 12px;
  background: #f7faf4;
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(44, 63, 51, 0.05);
}

.reviews-slider-slides {
  position: relative;
  height: 280px;
}

.review-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, transform 0.5s ease;
  transform: translateX(30px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 60px;
  box-sizing: border-box;
}

.review-slide.active {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.review-card {
  text-align: center;
  max-width: 700px;
}

.review-slide-title {
  font-family: 'Song Myung', serif;
  font-size: clamp(20px, 3vw, 26px);
  line-height: 1.4;
  color: var(--leaf-dark);
  margin: 0 0 16px 0;
  font-weight: 800;
}

.review-slide-content {
  font-size: clamp(14px, 2vw, 16px);
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 20px 0;
}

.review-slide-author {
  display: block;
  font-size: 14px;
  color: var(--leaf);
  font-weight: 800;
  font-style: normal;
}

/* Slider Buttons */
.slider-btn {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--leaf);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: all 0.25s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  z-index: 10;
}

.slider-btn:hover {
  background: var(--leaf);
  color: #fff;
  border-color: var(--leaf);
  transform: scale(1.05);
}

/* Dots Navigation */
.slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}

.dot-btn {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(29, 42, 34, 0.2);
  cursor: pointer;
  padding: 0;
  transition: all 0.25s ease;
}

.dot-btn:hover {
  background: rgba(29, 42, 34, 0.5);
}

.dot-btn.active {
  background: var(--leaf);
  width: 24px;
  border-radius: 5px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .reviews-slider-container {
    gap: 10px;
  }
  
  .reviews-slider-slides {
    height: 360px;
  }
  
  .review-slide {
    padding: 30px 20px;
  }
  
  .slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
  }
  
  .prev-btn {
    left: -15px;
  }
  
  .next-btn {
    right: -15px;
  }
  
  .slider-btn:hover {
    transform: translateY(-50%) scale(1.05);
  }
}

.visit {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: clamp(28px, 6vw, 72px);
  align-items: start;
  background: var(--leaf-dark);
  color: #fff;
}

.visit .eyebrow,
.visit p {
  color: rgba(255, 255, 255, 0.78);
}

.contact-box {
  padding: 28px;
  background: #fff;
  color: var(--ink);
}

.phone-large {
  display: inline-flex;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.1;
  font-weight: 800;
  color: var(--leaf);
}

.map-placeholder {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 220px;
  margin-top: 22px;
  border: 1px dashed rgba(29, 42, 34, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(61, 133, 145, 0.14) 25%, transparent 25%) 0 0 / 32px 32px,
    linear-gradient(135deg, transparent 75%, rgba(138, 164, 107, 0.18) 75%) 0 0 / 32px 32px,
    #f7faf4;
  color: var(--muted);
  font-weight: 800;
  text-decoration: none;
  transition: all 0.25s ease;
  cursor: pointer;
  overflow: hidden;
}

.map-placeholder .map-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.map-placeholder .map-text {
  position: relative;
  z-index: 2;
  background: rgba(255, 255, 255, 0.9);
  color: var(--dark);
  padding: 8px 16px;
  border-radius: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.map-placeholder:hover {
  background-color: #eef4e9;
  border-color: var(--leaf);
  color: var(--leaf);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(44, 63, 51, 0.05);
}

.map-placeholder:hover .map-text {
  background: #ffffff;
  color: var(--leaf);
  transform: scale(1.03);
}

.faq {
  width: min(940px, calc(100% - 40px));
  margin: 56px auto;
}

.faq details {
  border-top: 1px solid var(--line);
}

.faq details:last-child {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  cursor: pointer;
  min-height: 58px;
  display: flex;
  align-items: center;
  font-weight: 800;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 32px clamp(20px, 5vw, 72px) 92px;
  color: rgba(255, 255, 255, 0.78);
  background: #10271b;
}

.site-footer p {
  margin: 0;
}

.site-footer .footer-details {
  font-size: 0.85rem;
  opacity: 0.7;
  margin-top: 8px;
  line-height: 1.5;
}

.site-footer .footer-details span {
  display: inline-block;
}

.site-footer .footer-call-btn {
  display: inline-flex;
  align-items: center;
  background: var(--leaf);
  color: #fff;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.95rem;
  transition: background 0.2s;
}

.site-footer .footer-call-btn:hover {
  background: #2a573e;
}

.mobile-call {
  display: none;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav-links {
    display: none;
  }

  .feature-grid,
  .program-layout,
  .review-grid,
  .director,
  .hero,
  .visit {
    grid-template-columns: 1fr;
  }

  .feature-item {
    min-height: 190px;
  }


}

@media (max-width: 640px) {
  .site-header {
    min-height: 68px;
    padding: 10px 16px;
  }

  .brand {
    min-width: 0;
  }

  .brand small {
    display: none;
  }

  .call-button {
    width: 44px;
    padding: 0;
  }

  .call-button strong {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .hero {
    min-height: auto;
    padding: 104px 20px 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .hero-media-wrapper {
    aspect-ratio: 16 / 9;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    border-radius: 12px;
    border: 1px solid var(--line);
    background-color: #faf9f5;
  }

  .hero-panel {
    justify-content: center;
    margin-top: 20px;
    width: 100%;
  }

  .section {
    padding: 64px 20px;
  }



  .credential-list div {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .site-footer {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding-bottom: 92px;
  }

  .mobile-call {
    position: fixed;
    left: 14px;
    right: 14px;
    bottom: 14px;
    z-index: 12;
    display: block;
  }

  .mobile-call a {
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--leaf);
    color: #fff;
    box-shadow: var(--shadow);
    font-weight: 800;
  }
}

@media (max-width: 768px) {
  .desktop-only {
    display: none !important;
  }
  .mobile-only {
    display: block !important;
  }
  .director .portrait {
    max-width: 180px;
    margin: 0 auto 16px auto;
    border-radius: 12px;
  }
}

/* Facility Preview Section */
.facility-preview {
  background: #f7faf4;
  padding: 60px 20px;
}

.facility-preview-card {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  padding: 40px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(44, 63, 51, 0.05);
}

.facility-preview-card h2 {
  font-family: 'Song Myung', serif;
  font-size: clamp(22px, 3.5vw, 28px);
  color: var(--leaf-dark);
  margin: 0 0 16px 0;
  font-weight: 800;
}

.facility-preview-card p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
  margin: 0 0 28px 0;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.facility-preview-card .primary-link {
  transition: all 0.25s ease;
  text-decoration: none;
  cursor: pointer;
}

.facility-preview-card .primary-link:hover {
  background: var(--leaf-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(23, 69, 47, 0.2);
}
