/* contouring.css - 잇몸성형 페이지 */

/* --------------------- contouring header */

#contouring_header {
  position: relative;
  width: 100%;
  height: 920px;
  overflow: hidden;
}

#contouring_header .hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

#contouring_header .hero-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

#contouring_header .hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  z-index: 2;
}

#contouring_header .container {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

#contouring_header .wrapper {
  width: 100%;
}

#contouring_header .hero-content {
  text-align: center;
  color: #fff;
}

#contouring_header .hero-content h1 {
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  margin-bottom: 15px;
  line-height: 1.2;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

#contouring_header .hero-content .subtitle {
  font-size: var(--text-md);
  font-weight: var(--font-normal);
  letter-spacing: 2px;
  opacity: 0.95;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

/* --------------------- contouring section 01 */

#contouring_section_1 {
  position: relative;
  background: #FFFFFF;
  overflow: hidden;
}

#contouring_section_1 .background-image {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.2;
}

#contouring_section_1 .background-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

#contouring_section_1 .container {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 140px 315px;
  gap: 60px;
}

#contouring_section_1 .container .wrapper {
  max-width: 950px;
  margin: 0 auto;
}

#contouring_section_1 .section-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

#contouring_section_1 .doctor-name {
  font-family: 'Brush Script MT', cursive;
  font-size: var(--text-xl);
  font-weight: var(--font-normal);
  color: #ffffff;
  margin-bottom: 30px;
  opacity: 0.4;
}

#contouring_section_1 h2 {
  font-family: var(--font-body);
  font-weight: var(--font-bold);
  font-size: var(--text-lg);
  line-height: 60px;
  text-align: center;
  color: #000000;
  margin-bottom: 40px;
}

#contouring_section_1 .description {
  margin-bottom: 60px;
}

#contouring_section_1 .description p {
  font-family: var(--font-body);
  font-weight: var(--font-light);
  font-size: var(--text-md);
  line-height: 42px;
  text-align: center;
  color: #292929;
  margin-bottom: 0;
}

#contouring_section_1 .image-wrapper {
  width: 950px;
  max-width: 100%;
  margin: 0 auto;
}

#contouring_section_1 .image-wrapper img {
  width: 100%;
  height: auto;
  border-radius: 24px;
}

/* --------------------- contouring section 02 */

#contouring_section_2 {
  background: #e0f7f4;
  padding: 100px 0;
}

#contouring_section_2 .container .wrapper {
  max-width: 1200px;
  margin: 0 auto;
}

#contouring_section_2 h2 {
  text-align: center;
  font-size: var(--text-lg);
  font-weight: var(--font-bold);
  color: #333;
  margin-bottom: 60px;
  line-height: 1.4;
}

#contouring_section_2 .cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  max-width: 900px;
  margin: 0 auto;
}

#contouring_section_2 .contouring-card {
  display: flex;
  flex-direction: column;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: #fff;
}

#contouring_section_2 .contouring-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

#contouring_section_2 .card-image {
  width: 100%;
  height: 220px;
  overflow: hidden;
}

#contouring_section_2 .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

#contouring_section_2 .card-content {
  flex: 1;
  background: #2d9e8c;
  padding: 25px 20px;
  text-align: left;
}

#contouring_section_2 .card-number {
  display: block;
  font-size: var(--text-md);
  font-weight: 600;
  color: #fff;
  margin-bottom: 10px;
  opacity: 0.9;
}

#contouring_section_2 .card-text {
  font-size: var(--text-sm);
  font-weight: var(--font-normal);
  color: #fff;
  line-height: 1.6;
  margin: 0;
}

/* --------------------- contouring section 03 */

#contouring_section_3 {
  background: #e5e5e5;
  padding: 100px 0;
}

#contouring_section_3 .container .wrapper {
  max-width: 1200px;
  margin: 0 auto;
}

#contouring_section_3 h2 {
  text-align: center;
  font-size: var(--text-lg);
  font-weight: var(--font-bold);
  color: #333;
  margin-bottom: 60px;
  line-height: 1.4;
}

#contouring_section_3 .before-after-wrapper {
  max-width: 1000px;
  margin: 0 auto 30px;
  text-align: center;
}

#contouring_section_3 .before-after-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

#contouring_section_3 .notice-text {
  text-align: center;
  font-size: var(--text-xs);
  color: #666;
  margin: 0;
  line-height: 1.6;
}

/* =====================================================
   모바일 반응형 스타일
   ===================================================== */

/* --------------------- 태블릿 (768px 이하) */
@media screen and (max-width: 768px) {
  /* Header - 히어로 섹션 */
  #contouring_header {
    height: 450px;
  }
  #contouring_header .hero-content h1 {
    font-size: var(--text-lg);
  }
  #contouring_header .hero-content .subtitle {
    font-size: var(--text-sm);
    letter-spacing: 1px;
  }

  /* Section 1 - 맞춤형 잇몸라인 교정 */
  #contouring_section_1 .container {
    padding: 60px 24px;
    gap: 40px;
  }
  #contouring_section_1 .doctor-name {
    font-size: var(--text-xl);
    margin-bottom: 20px;
  }
  #contouring_section_1 h2 {
    font-size: var(--text-md);
    line-height: 1.4;
    margin-bottom: 30px;
  }
  #contouring_section_1 .description {
    margin-bottom: 40px;
  }
  #contouring_section_1 .description p {
    font-size: var(--text-sm);
    line-height: 1.8;
  }
  #contouring_section_1 .image-wrapper {
    width: 100%;
  }
  #contouring_section_1 .image-wrapper img {
    border-radius: 16px;
  }

  /* Section 2 - 누구에게 필요한 잇몸성형 (2열 그리드) */
  #contouring_section_2 {
    padding: 60px 0;
  }
  #contouring_section_2 .container .wrapper {
    padding: 0 24px;
  }
  #contouring_section_2 h2 {
    font-size: var(--text-md);
    margin-bottom: 40px;
  }
  #contouring_section_2 .cards-grid {
    gap: 16px;
  }
  #contouring_section_2 .contouring-card {
    border-radius: 12px;
  }
  #contouring_section_2 .card-image {
    height: 140px;
  }
  #contouring_section_2 .card-content {
    padding: 16px 14px;
  }
  #contouring_section_2 .card-number {
    font-size: var(--text-xs);
    margin-bottom: 8px;
  }
  #contouring_section_2 .card-text {
    font-size: var(--text-xs);
    line-height: 1.5;
  }

  /* Section 3 - 전후사진 */
  #contouring_section_3 {
    padding: 60px 0;
  }
  #contouring_section_3 .container .wrapper {
    padding: 0 24px;
  }
  #contouring_section_3 h2 {
    font-size: var(--text-md);
    margin-bottom: 40px;
  }
  #contouring_section_3 .before-after-wrapper {
    margin-bottom: 20px;
  }
  #contouring_section_3 .before-after-wrapper img {
    border-radius: 12px;
  }
  #contouring_section_3 .notice-text {
    font-size: var(--text-xs);
  }
}

/* --------------------- 모바일 (480px 이하) */
@media screen and (max-width: 480px) {
  /* Header */
  #contouring_header {
    height: 380px;
  }
  #contouring_header .hero-content h1 {
    font-size: var(--text-md);
  }
  #contouring_header .hero-content .subtitle {
    font-size: var(--text-xs);
  }

  /* Section 1 */
  #contouring_section_1 .container {
    padding: 50px 16px;
    gap: 30px;
  }
  #contouring_section_1 .doctor-name {
    font-size: var(--text-xl);
    margin-bottom: 16px;
  }
  #contouring_section_1 h2 {
    font-size: var(--text-md);
    margin-bottom: 24px;
  }
  #contouring_section_1 .description {
    margin-bottom: 30px;
  }
  #contouring_section_1 .description p {
    font-size: var(--text-xs);
    line-height: 1.75;
  }
  #contouring_section_1 .image-wrapper img {
    border-radius: 12px;
  }

  /* Section 2 (2열 그리드) */
  #contouring_section_2 {
    padding: 50px 0;
  }
  #contouring_section_2 .container .wrapper {
    padding: 0 16px;
  }
  #contouring_section_2 h2 {
    font-size: var(--text-md);
    margin-bottom: 30px;
  }
  #contouring_section_2 .cards-grid {
    gap: 12px;
  }
  #contouring_section_2 .contouring-card {
    border-radius: 10px;
  }
  #contouring_section_2 .card-image {
    height: 100px;
  }
  #contouring_section_2 .card-content {
    padding: 12px 10px;
  }
  #contouring_section_2 .card-number {
    font-size: var(--text-xs);
    margin-bottom: 6px;
  }
  #contouring_section_2 .card-text {
    font-size: var(--text-xs);
    line-height: 1.4;
  }
  #contouring_section_2 .card-text br {
    display: none;
  }

  /* Section 3 */
  #contouring_section_3 {
    padding: 50px 0;
  }
  #contouring_section_3 .container .wrapper {
    padding: 0 16px;
  }
  #contouring_section_3 h2 {
    font-size: var(--text-md);
    margin-bottom: 30px;
  }
  #contouring_section_3 .before-after-wrapper {
    margin-bottom: 16px;
  }
  #contouring_section_3 .before-after-wrapper img {
    border-radius: 10px;
  }
  #contouring_section_3 .notice-text {
    font-size: var(--text-xs);
  }
}

