/* ── Home Final Refactor — UX·신뢰·전환 최적화 ── */

.page-home {
  --home-radius-photo: 24px;
  --home-shadow-photo: 0 16px 40px rgba(0, 0, 0, 0.08);
  --home-shadow-lift: 0 12px 32px rgba(13, 75, 58, 0.12);
  --home-stat-scale: 1.4;
}

/* ── 1. Hero Premium — full-bleed background ── */
.page-home .hero.hero--premium {
  position: relative;
  display: flex;
  align-items: flex-start;
  height: 78vh;
  min-height: 720px;
  max-height: 820px;
  padding: 0;
  overflow: hidden;
  background: var(--surface-deep-green);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.page-home .hero.hero--premium .hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.page-home .hero.hero--premium .hero__bg-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  filter: brightness(0.9) contrast(1.03);
}

.page-home .hero.hero--premium .hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    90deg,
    rgba(13, 75, 58, 0.9) 0%,
    rgba(13, 75, 58, 0.82) 30%,
    rgba(13, 75, 58, 0.55) 55%,
    rgba(13, 75, 58, 0.18) 78%,
    rgba(13, 75, 58, 0) 100%
  );
  pointer-events: none;
}

.page-home .hero.hero--premium .hero__inner {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  padding: 0 clamp(1.25rem, 4vw, 2rem) clamp(2rem, 3vh, 2.5rem);
  margin-top: clamp(5.5rem, 28vh, 7rem);
}

.page-home .hero.hero--premium .hero__content {
  max-width: 800px;
  text-align: left;
}

.page-home .hero.hero--premium .hero__title {
  margin-bottom: clamp(1.25rem, 2.5vw, 1.75rem);
  line-height: 1.2;
}

.page-home .hero.hero--premium .hero__title-line--quote {
  display: block;
  font-size: clamp(1.75rem, 4vw, 2.95rem);
  line-height: 1.18;
  letter-spacing: -0.025em;
}

.page-home .hero.hero--premium .hero__title-line--lead {
  max-width: none;
  margin-top: 0.5em;
  font-size: clamp(1rem, 1.75vw, 1.375rem);
  line-height: 1.4;
  letter-spacing: -0.02em;
}

.page-home .hero.hero--premium .hero__desc {
  max-width: 800px;
  margin-bottom: clamp(1.75rem, 3vw, 2.25rem);
  font-size: clamp(0.9375rem, 1.55vw, 1.0625rem);
  line-height: 1.65;
  letter-spacing: -0.012em;
}

.page-home .hero.hero--premium .hero__actions {
  gap: 1.125rem;
}

@media (min-width: 768px) and (max-width: 1439px) {
  .page-home .hero.hero--premium .hero__inner {
    margin-top: clamp(6rem, 30vh, 7.25rem);
  }

  .page-home .hero.hero--premium .hero__content,
  .page-home .hero.hero--premium .hero__desc {
    max-width: 760px;
  }

  .page-home .hero.hero--premium .hero__title-line--quote {
    font-size: clamp(1.875rem, 3.4vw, 2.75rem);
    line-height: 1.2;
  }

  .page-home .hero.hero--premium .hero__desc {
    font-size: clamp(1rem, 1.45vw, 1.0625rem);
    line-height: 1.7;
  }
}

@media (min-width: 1440px) {
  .page-home .hero.hero--premium .hero__content,
  .page-home .hero.hero--premium .hero__desc {
    max-width: 820px;
  }

  .page-home .hero.hero--premium .hero__title-line--quote {
    font-size: 2.95rem;
    line-height: 1.18;
    letter-spacing: -0.028em;
  }

  .page-home .hero.hero--premium .hero__desc {
    font-size: 1.03125rem;
    line-height: 1.7;
    letter-spacing: -0.018em;
  }
}

@media (max-width: 767px) {
  .page-home .hero.hero--premium {
    height: 78vh;
    min-height: 720px;
    max-height: 820px;
  }

  .page-home .hero.hero--premium .hero__inner {
    margin-top: clamp(5rem, 22vh, 6.5rem);
    padding-bottom: clamp(2rem, 5vh, 3rem);
  }

  .page-home .hero.hero--premium .hero__content {
    max-width: 100%;
  }

  .page-home .hero.hero--premium .hero__title-line--quote {
    font-size: clamp(1.625rem, 6vw, 2.125rem);
    line-height: 1.22;
  }

  .page-home .hero.hero--premium .hero__desc {
    font-size: clamp(0.9375rem, 3.8vw, 1.0625rem);
    line-height: 1.72;
    letter-spacing: -0.01em;
  }

  .page-home .hero.hero--premium .hero__overlay {
    background: linear-gradient(
      180deg,
      rgba(13, 75, 58, 0.9) 0%,
      rgba(13, 75, 58, 0.78) 40%,
      rgba(13, 75, 58, 0.4) 72%,
      rgba(13, 75, 58, 0.1) 100%
    );
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .hero.hero--premium .hero__bg-img {
    filter: brightness(0.92) contrast(1.02);
  }
}

/* ── 3. Intro flow ── */
.page-home .intro-section__lead {
  margin: clamp(1.5rem, 3vw, 2rem) auto clamp(1.25rem, 2.5vw, 1.75rem);
  max-width: 720px;
  text-align: center;
}

.page-home .intro-brand-copy {
  margin: 0;
  padding: 0;
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.03em;
  color: var(--text-primary, #1A312C);
  word-break: keep-all;
}

.page-home .intro-brand-subcopy {
  margin: clamp(1rem, 2vw, 1.25rem) 0 0;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.8;
  color: #5F6B73;
  word-break: keep-all;
}

@media (min-width: 640px) {
  .page-home .intro-brand-copy {
    font-size: 2.125rem;
  }

  .page-home .intro-brand-subcopy {
    font-size: 1.0625rem;
  }
}

@media (min-width: 1024px) {
  .page-home .intro-section__lead {
    max-width: 900px;
  }

  .page-home .intro-brand-copy {
    font-size: clamp(2.5rem, 2.8vw, 2.75rem);
  }

  .page-home .intro-brand-subcopy {
    font-size: 1.125rem;
    white-space: nowrap;
  }
}

@media (max-width: 639px) {
  .page-home .intro-brand-copy__br {
    display: none;
  }
}

.page-home .intro-director-quote {
  margin: 0;
  padding: 0;
  border: none;
  font-size: clamp(1.25rem, 2.8vw, 1.625rem);
  font-weight: 600;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.95);
  word-break: keep-all;
}

.page-home .intro-director-quote cite {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.8125rem;
  font-style: normal;
  font-weight: 500;
  color: #B8945A;
}

.page-home .intro-section__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin: clamp(1.5rem, 3vw, 2rem) 0 clamp(1rem, 2vw, 1.5rem);
}

/* ── 2. Director promise ── */
.page-home .director-promise {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
  background: #F8FAF9;
}

.page-home .director-promise__grid {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: center;
}

@media (min-width: 900px) {
  .page-home .director-promise__grid {
    grid-template-columns: 1fr 1fr;
  }
}

.page-home .director-promise__title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.375rem, 3vw, 1.75rem);
  font-weight: 700;
  color: #1A312C;
}

.page-home .director-promise__eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #B8945A;
}

.page-home .director-promise__body {
  margin: 0 0 1rem;
  font-size: 0.9375rem;
  line-height: 1.75;
  color: #69757D;
}

.page-home .director-promise__quote {
  margin: 0;
  padding: 1rem 1.25rem;
  border-left: 3px solid rgba(184, 148, 90, 0.55);
  background: rgba(13, 75, 58, 0.04);
  border-radius: 0 12px 12px 0;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.6;
  color: #1A312C;
}

.page-home .director-promise__figure {
  margin: 0;
  overflow: hidden;
  border-radius: var(--home-radius-photo);
  box-shadow: var(--home-shadow-photo);
}

.page-home .director-promise__img {
  display: block;
  width: 100%;
  height: clamp(260px, 32vw, 380px);
  object-fit: cover;
}

/* ── 4. Stats enhanced ── */
.page-home .stats .stat-card__number {
  font-size: clamp(3.85rem, 7.7vw, 5.6rem);
  font-weight: 800;
}

.page-home .stats .stat-card__unit {
  font-size: clamp(1.575rem, 2.8vw, 1.925rem);
  font-weight: 800;
}

.page-home .stats .stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--home-shadow-lift);
  border-color: rgba(13, 75, 58, 0.28);
}

/* ── 5. Case studies carousel ── */
.page-home .case-studies__carousel {
  position: relative;
  margin-top: clamp(1.5rem, 3vw, 2rem);
}

.page-home .case-studies__viewport {
  overflow: hidden;
}

.page-home .case-studies__track {
  display: flex;
  gap: 1.25rem;
  transition: transform 0.4s ease;
  will-change: transform;
}

.page-home .case-studies__track .case-card {
  flex: 0 0 100%;
  min-width: 0;
}

@media (min-width: 768px) {
  .page-home .case-studies__track .case-card {
    flex: 0 0 calc(50% - 0.625rem);
  }
}

.page-home .case-card__period {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #69757D;
}

.page-home .case-card__period-value {
  color: #0D4B3A;
}

.page-home .case-studies__nav {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.page-home .case-studies__nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(13, 75, 58, 0.15);
  border-radius: 50%;
  background: #fff;
  color: #0D4B3A;
  cursor: pointer;
  transition: transform 0.3s ease, background 0.3s ease;
}

.page-home .case-studies__nav-btn:hover {
  background: rgba(13, 75, 58, 0.06);
  transform: scale(1.05);
}

.page-home .case-studies__nav-btn:focus-visible {
  outline: 2px solid #0D4B3A;
  outline-offset: 2px;
}

/* ── 6. Reviews enhanced ── */
.page-home .reviews__score {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 0 0 clamp(1.25rem, 2.5vw, 1.75rem);
  padding: 1rem 1.25rem;
  border-radius: 16px;
  background: rgba(13, 75, 58, 0.04);
  border: 1px solid rgba(13, 75, 58, 0.08);
}

.page-home .reviews__score-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.page-home .reviews__score-stars {
  font-size: 1.25rem;
  letter-spacing: 0.08em;
  color: #B8945A;
}

.page-home .reviews__score-value {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  line-height: 1;
  color: #0D4B3A;
}

.page-home .reviews__score-source {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #69757D;
}

.page-home .reviews--compact .review-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-home .reviews--compact .review-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(13, 75, 58, 0.12);
}

/* ── 7. FAQ ── */
.page-home .faq__list--primary {
  display: grid;
  gap: 0.75rem;
}

.page-home .faq-more {
  margin-top: 1rem;
}

.page-home .faq-more__toggle {
  width: 100%;
}

/* ── 8. Contact icon cards ── */
.page-home .contact__icon-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: clamp(1.5rem, 3vw, 2rem);
}

@media (min-width: 768px) {
  .page-home .contact__icon-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.page-home .contact-icon-card {
  padding: 1.125rem 1rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.page-home .contact-icon-card:hover {
  transform: translateY(-2px);
  border-color: rgba(137, 215, 183, 0.35);
}

.page-home .contact-icon-card__emoji {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
  line-height: 1;
}

.page-home .contact--map-only .contact-icon-card__label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #222222;
  opacity: 1;
}

.page-home .contact--map-only .contact-icon-card__desc {
  margin: 0.375rem 0 0;
  font-size: 0.75rem;
  line-height: 1.5;
  color: #555555;
  opacity: 1;
}

.page-home .contact--map-only .contact-icon-card a {
  color: #555555;
  opacity: 1;
  text-decoration: none;
}

.page-home .contact--map-only .contact-icon-card a:hover {
  color: #222222;
  text-decoration: underline;
}

/* ── 10. Quote blocks ── */
.page-home .quote-block {
  padding: clamp(2.5rem, 5vw, 3.5rem) 0;
  text-align: center;
  background: linear-gradient(180deg, rgba(13, 75, 58, 0.05), rgba(13, 75, 58, 0.02));
}

.page-home .quote-block__text {
  margin: 0 auto;
  max-width: 640px;
  font-size: clamp(1.25rem, 2.8vw, 1.5rem);
  font-weight: 600;
  line-height: 1.65;
  color: #1A312C;
  word-break: keep-all;
}

.page-home .quote-block__cite {
  display: block;
  margin-top: 0.875rem;
  font-size: 0.8125rem;
  font-style: normal;
  color: #69757D;
}

/* ── 11. GEO hidden context ── */
.page-home .geo-context {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── Accessibility focus ── */
.page-home .btn--cta-primary:focus-visible,
.page-home .btn--cta-secondary:focus-visible,
.page-home .btn--cta-outline:focus-visible,
.page-home .hero .btn:focus-visible {
  outline: 2px solid #89D7B7;
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .page-home .case-studies__track,
  .page-home .case-studies__nav-btn:hover,
  .page-home .reviews--compact .review-card:hover,
  .page-home .stats .stat-card:hover,
  .page-home .contact-icon-card:hover {
    transition: none;
    transform: none;
  }
}
