/* ============================================================
   연세원치과 — sub.css  |  서브페이지 공통 스타일
   ============================================================ */

/* ===== PAGE HERO ===== */
.page-hero {
  position: relative;
  height: 320px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  margin-top: calc(var(--h-top) + var(--h-head));
}
.page-hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(27,58,45,0.85) 0%, rgba(27,58,45,0.4) 60%, transparent 100%);
}
.page-hero__inner {
  position: relative; z-index: 1;
  padding-bottom: 3rem;
  color: #fff;
}
.page-hero__eyebrow {
  font-size: .7rem; font-weight: 700; letter-spacing: .22em;
  text-transform: uppercase; color: var(--green-lime);
  margin-bottom: .75rem;
}
.page-hero__title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800; line-height: 1.2;
  margin-bottom: .5rem;
}
.page-hero__desc {
  font-size: 1rem; color: rgba(255,255,255,0.8);
}

/* ===== NAV ACTIVE ===== */
.nav__link.active {
  color: var(--green-main);
  font-weight: 700;
}
.nav__link.active::after {
  width: 100%;
}

/* ===== SUB SECTIONS ===== */
.sub-section { padding: var(--sec-pad); background: var(--white); }
.sub-section--pale { background: var(--green-xpale); }
.sub-section--forest { background: var(--forest); }

.sub-intro { max-width: 720px; }
.sub-intro .section-title { margin: .5rem 0 1.5rem; }
.sub-intro__desc {
  font-size: 1.05rem; line-height: 1.9; color: var(--text-mid);
}

/* ===== ICON GRID ===== */
.icon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.icon-card {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: var(--sh-sm);
  border-top: 3px solid var(--green-lime);
  transition: transform var(--ease), box-shadow var(--ease);
}
.icon-card:hover { transform: translateY(-4px); box-shadow: var(--sh-md); }
.icon-card__icon { font-size: 2.4rem; margin-bottom: 1rem; }
.icon-card h3 { font-size: 1rem; font-weight: 700; color: var(--forest); margin-bottom: .5rem; }
.icon-card p { font-size: .875rem; color: var(--text-mid); line-height: 1.7; }

/* ===== FEATURE LIST (임플란트) ===== */
.feature-list { display: flex; flex-direction: column; gap: 2rem; margin-top: 2rem; }
.feature-list__item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 2rem;
  align-items: flex-start;
  padding: 2rem;
  background: var(--green-xpale);
  border-radius: var(--r-lg);
  border-left: 4px solid var(--green-main);
}
.feature-list__num {
  font-family: var(--font-en);
  font-size: 3rem; font-weight: 600;
  color: var(--green-lime);
  line-height: 1;
}
.feature-list__body h3 {
  font-size: 1.1rem; font-weight: 700; color: var(--forest);
  margin-bottom: .6rem;
}
.feature-list__body p { font-size: .95rem; color: var(--text-mid); line-height: 1.8; }

/* ===== STEP LIST ===== */
.step-list {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}
.step-item {
  flex: 1; min-width: 160px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--r-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  color: #fff;
}
.step-item__num {
  font-size: .7rem; font-weight: 700; letter-spacing: .15em;
  color: var(--green-lime); margin-bottom: 1rem;
}
.step-item h3 { font-size: 1rem; font-weight: 700; margin-bottom: .75rem; }
.step-item p { font-size: .85rem; color: rgba(255,255,255,0.75); line-height: 1.7; }
.step-arrow {
  font-size: 1.5rem; color: var(--green-lime);
  flex-shrink: 0;
}

/* ===== NOTICE GRID ===== */
.notice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}
.notice-card {
  background: var(--cream);
  border-radius: var(--r-md);
  padding: 1.25rem 1.5rem;
  font-size: .9rem; color: var(--text-mid); line-height: 1.7;
}
.notice-card--info {
  background: var(--green-xpale);
  border-left: 3px solid var(--green-main);
}

/* ===== CTA BAND ===== */
.cta-band { background: var(--forest); padding: 4rem 0; }
.cta-band__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.cta-band__inner h2 { font-size: 1.6rem; font-weight: 700; color: #fff; margin-bottom: .5rem; }
.cta-band__inner p { color: rgba(255,255,255,0.7); }
.cta-band__btns { display: flex; gap: 1rem; flex-shrink: 0; flex-wrap: wrap; }

/* ===== SPECIAL PAGE (4가지 특별함) ===== */
.sf-section {
  padding: 100px 0;
  position: relative;
}
.sf-section--light { background: var(--white); }
.sf-section--light:nth-of-type(even) { background: var(--green-xpale); }
.sf-section--dark {
  background-size: cover;
  background-position: center;
}
.sf-section__overlay {
  position: absolute; inset: 0;
  background: rgba(27,58,45,0.78);
}
.sf-section--dark .container { position: relative; z-index: 1; }

.sf-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.sf-layout--reverse { direction: rtl; }
.sf-layout--reverse > * { direction: ltr; }

.sf-badge {
  display: inline-block;
  font-size: .75rem; font-weight: 700; letter-spacing: .15em;
  text-transform: uppercase;
  border: 1.5px solid var(--green-main);
  color: var(--green-dark);
  padding: .3rem .9rem;
  border-radius: var(--r-xl);
  margin-bottom: 1.25rem;
}
.sf-badge--light {
  border-color: rgba(255,255,255,0.5);
  color: rgba(255,255,255,0.85);
}

.sf-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800; line-height: 1.35;
  color: var(--forest);
  margin-bottom: 1.25rem;
  word-break: keep-all;
}
.sf-text--white .sf-title { color: #fff; }

.sf-desc {
  font-size: 1rem; line-height: 1.9;
  color: var(--text-mid);
  word-break: keep-all;
}
.sf-text--white .sf-desc { color: rgba(255,255,255,0.8); }

.sf-img {
  border-radius: 20px;
  overflow: hidden;
}
.sf-img img {
  width: 100%; display: block;
}
.sf-section--dark .sf-img img {
  box-shadow: 0 8px 40px rgba(0,0,0,.3);
}

/* ===== SPECIAL PAGE (기존 리스트형) ===== */
.special-list { display: flex; flex-direction: column; gap: 2rem; margin-top: 2rem; }
.special-item {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 2rem;
  align-items: flex-start;
  padding: 2.5rem;
  background: var(--white);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-sm);
  border-left: 4px solid var(--green-main);
  transition: box-shadow var(--ease);
}
.special-item:hover { box-shadow: var(--sh-md); }
.special-item__left { text-align: center; }
.special-item__num {
  font-family: var(--font-en);
  font-size: 2.5rem; font-weight: 600;
  color: var(--green-lime); line-height: 1;
  display: block; margin-bottom: .25rem;
}
.special-item__icon { font-size: 1.8rem; }
.special-item__body h3 {
  font-size: 1.15rem; font-weight: 700; color: var(--forest);
  margin-bottom: .75rem;
}
.special-item__body p { font-size: .95rem; color: var(--text-mid); line-height: 1.85; }

/* ===== DOCTOR PROFILE ===== */
.doctor-profile {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 4rem;
  align-items: stretch;
}
.doctor-profile__photo {
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-lg);
}
.doctor-profile__photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.doctor-profile__info { display: flex; flex-direction: column; }
.doctor-profile__title {
  font-size: .8rem; font-weight: 700; letter-spacing: .15em;
  text-transform: uppercase; color: var(--green-main);
  margin-bottom: .5rem;
}
.doctor-profile__name {
  font-size: 2.5rem; font-weight: 800; color: var(--forest);
  margin-bottom: .5rem;
}
.doctor-profile__edu {
  font-size: .85rem; color: var(--text-mid);
  margin-bottom: .4rem;
}
.doctor-profile__spec {
  font-size: .95rem; color: var(--text-mid);
  padding: .4rem .8rem;
  background: var(--green-xpale);
  border-radius: var(--r-xl);
  display: inline-block;
}
.doctor-profile__divider {
  height: 1px; background: var(--beige);
  margin: 1.5rem 0;
}
.doctor-profile__career h3 {
  font-size: 1.1rem; font-weight: 700; color: var(--forest);
  margin-bottom: 1.25rem;
}
.doctor-profile__career ul {
  list-style: none; padding: 0;
}
.doctor-profile__career ul li {
  font-size: 1rem; color: var(--text-mid); line-height: 1;
  padding: .85rem 0 .85rem 1.25rem;
  position: relative;
  border-bottom: 1px solid var(--beige);
}
.doctor-profile__career ul li:last-child { border-bottom: none; }
.doctor-profile__career ul li::before {
  content: '·'; position: absolute; left: 0;
  color: var(--green-main); font-size: 1.2rem;
}
.doctor-profile__message {
  margin-top: 1.5rem;
  background: var(--green-xpale);
  border-left: 3px solid var(--green-main);
  padding: 1.25rem 1.5rem;
  border-radius: 0 var(--r-md) var(--r-md) 0;
}
.doctor-profile__message p {
  font-size: .95rem; color: var(--text-mid);
  line-height: 1.85; margin-bottom: .5rem;
  font-style: italic;
}
.doctor-profile__message span {
  font-size: .85rem; color: var(--green-dark); font-weight: 600;
}

/* ===== INFO PAGE ===== */
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
}
.hours-card {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 2.5rem;
  box-shadow: var(--sh-sm);
}
.hours__table--large th, .hours__table--large td {
  padding: .9rem 0; font-size: .95rem;
}
.hours-card__note {
  margin-top: 1.5rem;
  font-size: .8rem; color: var(--text-light);
  border-top: 1px solid var(--beige); padding-top: 1rem;
}
.service-table { display: flex; flex-direction: column; gap: 1px; margin-top: 2rem; }
.service-table__row {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  padding: 1.75rem;
  background: var(--white);
  border-bottom: 1px solid var(--beige);
  transition: background var(--ease);
}
.service-table__row:first-child { border-radius: var(--r-md) var(--r-md) 0 0; }
.service-table__row:last-child { border-radius: 0 0 var(--r-md) var(--r-md); border-bottom: none; }
.service-table__row:hover { background: var(--green-xpale); }
.service-table__icon { font-size: 1.8rem; flex-shrink: 0; margin-top: .1rem; }
.service-table__body h3 {
  font-size: 1rem; font-weight: 700; color: var(--forest);
  margin-bottom: .4rem;
}
.service-table__body p { font-size: .88rem; color: var(--text-mid); line-height: 1.75; }

/* ===== LOCATION PAGE ===== */
.transport-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}
.transport-card {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 2rem;
  box-shadow: var(--sh-sm);
  text-align: center;
}
.transport-card__icon { font-size: 2.5rem; margin-bottom: 1rem; }
.transport-card h3 {
  font-size: 1rem; font-weight: 700; color: var(--forest);
  margin-bottom: 1rem;
}
.transport-card ol {
  text-align: left; padding-left: 1.2rem;
}
.transport-card ol li {
  font-size: .88rem; color: var(--text-mid); line-height: 2;
}

/* ===== CONSULT PAGE ===== */
.consult-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 4rem;
  align-items: flex-start;
  margin-top: 1rem;
}
.consult-info h2 {
  font-size: 1.4rem; font-weight: 700; color: var(--forest);
  margin-bottom: 1.5rem;
}
.consult-info__list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 1.5rem; }
.consult-info__list li { display: flex; gap: 1rem; align-items: flex-start; }
.consult-info__icon { font-size: 1.5rem; flex-shrink: 0; margin-top: .1rem; }
.consult-info__list strong { display: block; font-weight: 700; color: var(--forest); margin-bottom: .25rem; }
.consult-info__list p { font-size: .9rem; color: var(--text-mid); line-height: 1.7; }
.consult-phone { color: var(--green-dark); font-weight: 700; font-size: 1.1rem; }
.consult-hours {
  margin-top: 2rem;
  background: var(--green-xpale);
  border-radius: var(--r-lg);
  padding: 1.5rem;
}
.consult-hours__title { font-weight: 700; color: var(--forest); margin-bottom: .75rem; }
.consult-hours table { width: 100%; border-collapse: collapse; }
.consult-hours td { padding: .4rem .5rem; font-size: .875rem; color: var(--text-mid); }
.consult-hours td:first-child { font-weight: 600; color: var(--forest); width: 80px; }
.closed-row td { color: var(--text-light) !important; }

/* 상담 폼 */
.consult-form-wrap {
  background: var(--green-xpale);
  border-radius: var(--r-xl);
  padding: 2.5rem;
}
.consult-form { display: flex; flex-direction: column; gap: 1.25rem; }
.form-group { display: flex; flex-direction: column; gap: .4rem; }
.form-group label { font-size: .875rem; font-weight: 600; color: var(--forest); }
.required { color: var(--green-main); }
.form-group input,
.form-group select,
.form-group textarea {
  padding: .8rem 1rem;
  border: 1.5px solid var(--beige);
  border-radius: var(--r-md);
  font-family: var(--font-ko);
  font-size: .95rem;
  background: var(--white);
  color: var(--text);
  transition: border-color var(--ease);
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--green-main);
}
.form-group textarea { resize: vertical; min-height: 140px; }
.form-group--check { flex-direction: row; align-items: flex-start; flex-wrap: wrap; gap: .5rem; }
.checkbox-label {
  display: flex; align-items: center; gap: .5rem;
  font-size: .875rem; color: var(--text-mid); cursor: pointer;
}
.checkbox-label input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--green-main); }
.privacy-note { font-size: .78rem; color: var(--text-light); width: 100%; }
.btn--full { width: 100%; justify-content: center; padding: 1rem; font-size: 1rem; }
.form-success {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; padding: 3rem 2rem; gap: 1rem;
}
.form-success__icon { font-size: 3rem; }
.form-success h3 { font-size: 1.3rem; font-weight: 700; color: var(--forest); }
.form-success p { font-size: .95rem; color: var(--text-mid); line-height: 1.8; }
.form-success a { color: var(--green-dark); font-weight: 700; }

/* ===== IMPLANT PAGE ===== */
/* 임플란트란? 단일 컬럼, 중앙 정렬 */
.implant-intro-wrap { }
.implant-intro__text {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}
.implant-intro__text .section-title {
  margin: .5rem 0 1.5rem;
  color: var(--forest);
}
.implant-intro__img {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 3rem;
}
.implant-intro__img img {
  max-width: 780px;
  width: 100%;
  display: block;
  margin: 0 auto;
}

/* 비교표 */
.imp-compare { margin-top: 2rem; }
.imp-table-wrap { overflow-x: auto; }
.imp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .95rem;
  min-width: 600px;
}
.imp-table thead th {
  padding: 1rem 1.25rem;
  font-weight: 700;
  background: var(--green-main);
  color: #fff;
  text-align: center;
  border: 1px solid var(--green-dark);
}
.imp-table thead th:first-child {
  background: var(--forest);
}
.imp-table thead th.imp-table__highlight {
  background: var(--green-dark);
}
.imp-table tbody td {
  padding: 1rem 1.25rem;
  text-align: center;
  border: 1px solid var(--beige);
  color: var(--text-mid);
  line-height: 1.6;
}
.imp-table tbody tr:nth-child(even) td { background: var(--green-xpale); }
.imp-table tbody td:first-child {
  font-weight: 600;
  color: var(--forest);
  background: var(--cream);
  text-align: left;
}
.imp-table tbody td.imp-table__highlight {
  background: rgba(61,174,80,0.1);
  color: var(--green-dark);
  font-weight: 600;
}

/* 체크리스트 (표 아래) */
.imp-recommend-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 2.5rem;
}

/* w_imp 6개 그리드 */
.wimp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  margin-top: 2rem;
  max-width: 80%;
  margin-left: auto;
  margin-right: auto;
}
.wimp-card {
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  text-align: center;
  transition: transform var(--ease);
}
.wimp-card:hover { transform: translateY(-4px); }
.wimp-card img {
  width: 100%;
  display: block;
}
.wimp-card h3 {
  font-size: .9rem; font-weight: 700; color: var(--forest);
  padding: .75rem 1rem;
  background: var(--white);
  border: 1px solid var(--beige);
  border-top: 2px solid var(--green-lime);
  border-radius: 0 0 var(--r-lg) var(--r-lg);
}

/* 대상 섹션 */
.imp-recommend {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-top: 2rem;
}
.imp-recommend__img img {
  width: 100%; border-radius: var(--r-lg);
  box-shadow: var(--sh-md);
}
.imp-recommend__list { display: flex; flex-direction: column; gap: 1.5rem; }
.imp-recommend__item {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 1.25rem;
  background: var(--green-xpale);
  border-radius: var(--r-md);
}
.imp-recommend__check {
  width: 28px; height: 28px;
  background: var(--green-main);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .85rem; flex-shrink: 0;
}
.imp-recommend__item strong {
  display: block; font-weight: 700; color: var(--forest);
  margin-bottom: .25rem;
}
.imp-recommend__item p { font-size: .875rem; color: var(--text-mid); line-height: 1.7; }

/* s_imp 3단계 */
.simp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}
.simp-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: background var(--ease);
}
.simp-card:hover { background: rgba(255,255,255,0.14); }
.simp-card img {
  width: 100%;
  display: block;
  height: 150px;
  object-fit: cover;
  object-position: top center;
}
.simp-card__body { padding: 1.5rem; color: #fff; }
.simp-card__num {
  font-size: .7rem; font-weight: 700; letter-spacing: .15em;
  color: var(--green-lime); margin-bottom: .5rem;
}
.simp-card__body h3 { font-size: 1rem; font-weight: 700; margin-bottom: .6rem; color: #fff; }
.simp-card__body p { font-size: .85rem; color: rgba(255,255,255,0.75); line-height: 1.7; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .sf-layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .sf-layout--reverse { direction: ltr; }
  .sf-section { padding: 60px 0; }

  .page-hero { height: 260px; }

  .doctor-profile { grid-template-columns: 1fr; }
  .doctor-profile__photo { max-width: 360px; }

  .info-grid { grid-template-columns: 1fr; }

  .transport-grid { grid-template-columns: 1fr; }

  .consult-layout { grid-template-columns: 1fr; gap: 2rem; }

  .special-item { grid-template-columns: 1fr; }
  .special-item__left { display: flex; align-items: center; gap: 1rem; }

  .feature-list__item { grid-template-columns: 60px 1fr; gap: 1rem; }
  .feature-list__num { font-size: 2rem; }

  .step-list { flex-direction: column; }
  .step-arrow { transform: rotate(90deg); }

  .cta-band__inner { flex-direction: column; text-align: center; }
  .cta-band__btns { justify-content: center; }

  .implant-intro__img img { width: 100%; max-width: 500px; }
  .wimp-grid { grid-template-columns: repeat(2, 1fr); }
  .imp-recommend-list { grid-template-columns: 1fr; }
  .simp-grid { grid-template-columns: 1fr; }
}

@media (max-width: 580px) {
  .page-hero { height: 220px; }
  .page-hero__title { font-size: 1.8rem; }
  .icon-grid { grid-template-columns: 1fr 1fr; }
  .notice-grid { grid-template-columns: 1fr; }
  .consult-form-wrap { padding: 1.5rem; }
}
