/* =========================================================
   아뜰리에치과 - 심미치료(aesthetic) 전용 스타일
   :root 변수·헤더·푸터는 style.css 재사용. 1920 데스크탑 전용.
   컬러/사이즈 값은 Figma 시안(심미치료 페이지 91:117)에서 MCP로 읽어 확정.
   클래스 접두어: es-
   ========================================================= */

/* 헤더 활성 메뉴 (현재 페이지: 심미치료) */
.gnb__link.is-active {
  color: var(--color-point);
}

/* =========================================================
   섹션 1: 서브 비주얼 배너 (section.relative) - Figma 103:2
   1920×513, 헤더(80) 아래. 배경사진 + 텍스트 오버레이(시안 left625 top205).
   ========================================================= */
.es-hero {
  position: relative;
  height: 513px;
  margin-top: var(--header-height);
  overflow: hidden;
}
.es-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.es-hero__inner {
  position: absolute;
  left: 625px;
  top: 205px;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}
.es-hero__title {
  font-family: "Sorts Mill Goudy", serif;
  font-size: 60px;
  font-weight: 400;
  line-height: 60px;
  color: var(--color-white);
  white-space: nowrap;
}
.es-hero__sub {
  font-family: "Pretendard", sans-serif;
  font-size: 20px;
  font-weight: 300;
  line-height: 28px;
  color: rgba(255, 255, 255, 0.8);
  white-space: nowrap;
}

/* =========================================================
   섹션 2: 인트로 (div.sub_visual_cont) - Figma 103:26
   중앙정렬 컬럼. inner 1296(px20 → 1256). 강조문 + 본문 4단락 + 대표이미지.
   ========================================================= */
.es-intro {
  margin-top: 195px;        /* 시안: 히어로 하단(593)~인트로 상단(788) */
  overflow-x: clip;
}
.es-intro__inner {
  width: 1296px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 45px;
}
.es-intro__text {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 21.535px;
}
.es-intro__lead {
  font-size: 27px;
  font-weight: 700;
  line-height: 45.9px;
  color: var(--color-text);   /* #3C3C3C */
}
.es-intro__desc {
  display: flex;
  flex-direction: column;
  gap: 7.9px;
}
.es-intro__desc p {
  font-size: 17px;
  font-weight: 400;
  line-height: 28.9px;
  color: var(--color-text);
}
.es-intro__img {
  width: 100%;
  height: 540.08px;
  border-radius: 29.97px;
  overflow: hidden;
}
.es-intro__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* =========================================================
   섹션 3: 어떤 사람이 하면 좋을까 (div.sub_im_tb) - Figma 103:67
   흰 배경. inner 1296. 좌 제목(w426.55) / 우 번호리스트 01~05.
   (임플란트 동일 구조 — Twine 20% 알약, 번호 포인트색)
   ========================================================= */
.es-tb {
  margin-top: 205px;        /* 시안: 인트로 하단(1696.3)~섹션 상단(1901) */
  overflow-x: clip;
}
.es-tb__inner {
  width: 1296px;
  margin: 0 auto;
  padding: 0 20px;
}
.es-tb__cont {
  display: flex;
  align-items: flex-start;
  gap: 226.58px;
}
.es-tb__head {
  flex-shrink: 0;
  width: 426.55px;
}
.es-tb__tit {
  font-size: 43.2px;
  font-weight: 700;
  line-height: 60.48px;
  color: var(--color-text);
  white-space: nowrap;
}
.es-tb__list {
  flex: 1 0 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20.7px;
}
.es-tb__box {
  display: flex;
  align-items: center;        /* 번호·문구 같은 라인 정렬 */
  padding: 23.4px 26.1px;
  background: rgba(195, 149, 105, 0.2);   /* 시안 Twine 20% */
  border-radius: 599.94px;
}
.es-tb__num {
  flex-shrink: 0;
  margin-right: 13px;
  font-size: 20px;
  font-weight: 700;
  line-height: 34px;
  color: var(--color-point);   /* #D1BA9C */
}
.es-tb__box-txt {
  font-size: 17px;
  font-weight: 500;            /* Medium */
  line-height: 28.9px;
  color: var(--color-text);
  white-space: nowrap;
}

/* =========================================================
   섹션 4: 미백 콘텐츠 (div.sub_wh_why) - Figma 103:98
   inner 1296. 3블록: 미백이란?(좌텍스트+우이미지) / 치료과정(STEP) / 주의사항.
   ========================================================= */
.es-white {
  margin-top: 204px;        /* 시안: 섹션3 하단(2378.59)~섹션 상단(2583) */
  overflow-x: clip;
}
.es-white__inner {
  width: 1296px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 공통 제목 */
.es-white__h3,
.es-white__h4 {
  font-size: 34.2px;
  font-weight: 700;
  line-height: 58.14px;
  color: var(--color-text);
}
.es-white__h4--sm {                 /* 주의사항 소제목 */
  font-size: 23px;
  line-height: 39.1px;
}

/* 4-1. 미백이란? (시안: justify-between, 좌 min-w699.61 / 우 image pl54) */
.es-white__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}
.es-white__top-txt {
  flex-shrink: 0;
  min-width: 699.61px;
  display: flex;
  flex-direction: column;
  gap: 25.9px;
}
.es-white__p {
  font-size: 17px;
  font-weight: 400;
  line-height: 28.9px;
  color: var(--color-text);
  white-space: nowrap;
}
.es-white__top-img {
  flex: 1 0 0;
  min-width: 0;
  padding-left: 54px;
}
.es-white__top-img img {
  display: block;
  width: 100%;
  height: 364.23px;
  object-fit: cover;
  border-radius: 19.8px;
}

/* 4-2. 미백 치료과정 (시안: 제목~리스트 gap54, 박스 gap20.7) */
.es-white__process {
  margin-top: 143px;        /* 시안: 미백이란 하단~치료과정 상단 143 */
  display: flex;
  flex-direction: column;
  gap: 54px;
}
.es-white__steps {
  display: flex;
  flex-direction: column;
  gap: 20.7px;
}
.es-white__step {
  display: flex;
  align-items: flex-start;
  padding: 23.4px 26.1px;
  background: #f7f7f7;        /* 시안 Wild Sand #F7F7F7 */
  border-radius: 29.97px;
}
/* STEP 뱃지 (시안: 포인트색 알약, Bold 13/white) */
.es-white__badge {
  flex-shrink: 0;
  margin-right: 13.5px;
  padding: 6.5px 7.8px;
  background: var(--color-point);   /* #D1BA9C */
  border-radius: 396px;
  font-size: 13px;
  font-weight: 700;
  line-height: 13px;
  color: var(--color-white);
  white-space: nowrap;
}
.es-white__step-txt {
  display: flex;
  flex-direction: column;
  gap: 6.69px;
}
.es-white__step-tit {
  font-size: 20px;
  font-weight: 700;
  line-height: 30px;
  color: var(--color-text);
}
.es-white__step-desc {
  font-size: 17px;
  font-weight: 400;
  line-height: 28.9px;
  color: var(--color-text);
  white-space: nowrap;
}

/* 4-3. 시술 후 주의사항 (시안: 제목~카드 gap25, 2열 그리드 gap19.8) */
.es-white__after {
  margin-top: 143px;        /* 시안: 치료과정 하단~주의사항 상단 143 */
  display: flex;
  flex-direction: column;
  gap: 25px;
}
.es-white__cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 19.8px;
  padding-top: 2px;
}
.es-white__card {
  display: flex;
  align-items: flex-start;
  min-height: 128.27px;
  padding: 20.8px 26.92px;
  border: 1px solid var(--color-grey-87);   /* 시안 Alto #DDDDDD */
  border-radius: 19.8px;
}
.es-white__icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-right: 6.8px;
  margin-top: 4.25px;         /* 시안 svg pt4.25 (텍스트 첫 줄과 정렬) */
}
.es-white__card-txt {
  font-size: 17px;
  font-weight: 400;
  line-height: 28.9px;
  color: var(--color-text);
}
.es-white__card-txt strong {
  font-weight: 700;
}
.es-white__note {
  font-size: 15px;
  font-weight: 400;
  line-height: 25.5px;
  color: #6e6e6e;            /* 시안 Dove Gray #6E6E6E */
}

/* 푸터: 심미치료 콘텐츠 하단~푸터 간격 (시안 y기준) */
.footer {
  margin-top: 259px;         /* 시안: 콘텐츠 하단(4385.81)~푸터(4645) */
}

/* =========================================================
   모바일 반응형 (≤768px) — aesthetic (es-)
   ========================================================= */
@media (max-width: 768px) {
  /* 히어로 */
  .es-hero {
    height: 360px;
  }
  .es-hero__inner {
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    justify-content: center;
    padding: 0 20px;
  }
  .es-hero__title {
    font-size: 34px;
    line-height: 1.2;
    white-space: normal;
  }
  .es-hero__sub {
    font-size: 15px;
    line-height: 1.5;
    white-space: normal;
  }

  /* 인트로 */
  .es-intro {
    margin-top: 56px;
  }
  .es-intro__inner {
    width: 100%;
    gap: 28px;
  }
  .es-intro__lead {
    font-size: 21px;
    line-height: 1.5;
  }
  .es-intro__desc p {
    font-size: 15px;
    line-height: 1.7;
  }
  .es-intro__img {
    height: auto;
    aspect-ratio: 4 / 3;
  }

  /* 어떤 사람이 하면 좋을까 (좌우 → 세로) */
  .es-tb {
    margin-top: 56px;
  }
  .es-tb__inner {
    width: 100%;
  }
  .es-tb__cont {
    flex-direction: column;
    gap: 28px;
  }
  .es-tb__head {
    width: 100%;
  }
  .es-tb__tit {
    font-size: 26px;
    line-height: 1.35;
    white-space: normal;
  }
  .es-tb__box {
    padding: 16px 20px;
  }
  .es-tb__box-txt {
    font-size: 15px;
    line-height: 1.5;
    white-space: normal;
  }

  /* 미백 콘텐츠 */
  .es-white {
    margin-top: 56px;
  }
  .es-white__inner {
    width: 100%;
  }
  .es-white__h3,
  .es-white__h4 {
    font-size: 24px;
    line-height: 1.4;
  }
  .es-white__h4--sm {
    font-size: 20px;
    line-height: 1.4;
  }
  .es-white__top {
    flex-direction: column;
    gap: 24px;
  }
  .es-white__top-txt {
    min-width: 0;
  }
  .es-white__p {
    font-size: 15px;
    line-height: 1.7;
    white-space: normal;
  }
  .es-white__top-img {
    padding-left: 0;
  }
  .es-white__top-img img {
    height: auto;
    aspect-ratio: 16 / 10;
  }
  .es-white__process {
    margin-top: 48px;
    gap: 28px;
  }
  .es-white__step {
    padding: 16px 20px;
  }
  .es-white__step-desc {
    font-size: 15px;
    line-height: 1.6;
    white-space: normal;
  }
  .es-white__after {
    margin-top: 48px;
  }
  .es-white__cards {
    grid-template-columns: 1fr;
  }
  .es-white__card {
    min-height: 0;
    padding: 16px 20px;
  }
  .es-white__card-txt {
    font-size: 15px;
    line-height: 1.6;
  }

  /* 푸터 간격 축소 */
  .footer {
    margin-top: 56px;
  }
}
