/* =========================================================
   치과소개 (about.php)
   ========================================================= */
body { background: #fff; color: #1f2937; }

.page { display: block; }

/* ---- 페이지 배너 ---- */
.page-hero {
    position: relative;
    min-height: 260px;
    display: flex; align-items: center;
    overflow: hidden; color: #fff;
}
.page-hero__bg {
    position: absolute; inset: 0; z-index: -1;
    background: #14305e url('/assets/images/hero.webp') center/cover no-repeat;
}
.page-hero__bg::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(6,16,38,.72) 0%, rgba(6,16,38,.45) 60%, rgba(6,16,38,.3) 100%);
}
.page-hero__inner {
    position: relative;
    width: 100%; max-width: 1100px; margin: 0 auto;
    padding: calc(var(--header-h) + 20px) 24px 28px;
}
.page-hero__title { margin: 0 0 8px; font-size: 30px; font-weight: 700; letter-spacing: -.02em; }
.page-hero__subtitle { margin: 0; font-size: 16px; font-weight: 400; color: rgba(255,255,255,.8); }

/* ---- 페이지 네비(breadcrumb) ---- */
.page-nav { border-bottom: 1px solid #e8ebf0; background: #fff; }
.page-nav__inner {
    max-width: 1100px; margin: 0 auto; padding: 16px 24px;
    display: flex; align-items: center; gap: 8px;
    font-size: 15px; color: #6b7280;
}
.page-nav__inner a { color: #6b7280; }
.page-nav__inner strong { color: #1f2937; font-weight: 700; }
.page-nav__sep { color: #c2c8d0; }

/* ---- 섹션 공통 ---- */
.sec { max-width: 1100px; margin: 0 auto; padding: 64px 24px; }
.sec__head { margin-bottom: 32px; }
.sec__eyebrow {
    display: block; font-size: 13px; font-weight: 600; letter-spacing: .08em;
    color: #9aa5b1; text-transform: uppercase; margin-bottom: 6px;
}
.sec__title { margin: 0; font-size: 26px; font-weight: 700; color: #111827; }
.sec__title::before {
    content: ""; display: inline-block; width: 7px; height: 7px;
    background: var(--brand); border-radius: 50%; vertical-align: middle;
    margin-right: 8px; transform: translateY(-3px);
}

/* 이미지 자리표시자 */
.greet__photo, .tour__main, .tour__thumb {
    background: #e9edf2; color: #97a2af;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; border-radius: 8px;
}

/* ---- 대표원장 인사말 ---- */
.greet { display: grid; grid-template-columns: 320px 1fr; gap: 48px; align-items: start; }
.greet__photo {
    width: 100%; align-self: start; overflow: hidden;
    background: linear-gradient(180deg, #eef2f7, #fbfcfd);
}
.greet__photo img { width: 100%; height: auto; display: block; }
.greet__lead-sm { margin: 0 0 10px; color: #8b96a3; font-size: 16px; }
.greet__lead { margin: 0 0 24px; font-size: 28px; font-weight: 700; color: #111827; line-height: 1.4; }
.greet__lead strong { color: var(--brand); }
.greet__text { margin: 0 0 28px; font-size: 15.5px; line-height: 1.9; color: #4b5563; }
.greet__sign { margin: 0; font-size: 16px; font-weight: 700; color: #1f2937; }
.greet__sign strong { font-size: 19px; }

/* ---- 병원내부 ---- */
/* 대표 1장(2×2) + 썸네일 4장 — 모든 셀이 같은 비율의 균일 그리드 */
.tour { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 1fr; gap: 14px; aspect-ratio: 8 / 3; }
.tour__main { grid-column: span 2; grid-row: span 2; }
.tour__main, .tour__thumb { min-height: 0; overflow: hidden; }
.tour__main img, .tour__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---- 운영시간 ---- */
.hours-table { overflow-x: auto; }
.hours-table table { width: 100%; border-collapse: collapse; min-width: 640px; }
.hours-table th, .hours-table td {
    border: 1px solid #e5e8ec; padding: 16px 8px; text-align: center; font-size: 15px;
}
.hours-table thead th { background: #f3f5f8; color: #374151; font-weight: 700; }
.hours-table tbody th { background: #fafbfc; color: #374151; font-weight: 600; white-space: nowrap; }
.hours-table tbody td { color: #4b5563; }
.hours-table td.off { color: #b0b8c1; }
/* 오늘 요일 열 강조 (살짝 파란 포커스) */
.hours-table thead th.is-today { background: #dfe9ff; color: #2f6fd6; }
.hours-table tbody td.is-today { background: #eef4ff; color: #2f6fd6; font-weight: 700; }
.hours-table tbody td.is-today.off { color: #9fb6e0; font-weight: 600; }

.hours-summary li.is-today { background: #eef4ff; }
.hours-summary li.is-today .hours-summary__k { color: #2f6fd6; }

.hours-today-tag {
    display: inline-block; margin-left: 6px; padding: 2px 10px; border-radius: 999px;
    background: #eef4ff; color: #2f6fd6; font-size: 12.5px; font-weight: 700;
}

.hours-summary { list-style: none; margin: 28px 0 0; padding: 0; border-top: 1px solid #eceff3; }
.hours-summary li {
    display: flex; align-items: center; gap: 20px;
    padding: 16px 4px; border-bottom: 1px solid #eceff3;
}
.hours-summary__k { width: 140px; flex-shrink: 0; color: #6b7280; font-weight: 600; font-size: 15px; }
.hours-summary__v { color: #1f2937; font-weight: 600; font-size: 15px; }
.hours-note { margin: 18px 0 0; color: #8b96a3; font-size: 14px; line-height: 1.7; }

/* ---- 오시는 길 ---- */
.directions { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.directions__map iframe {
    width: 100%; height: 320px; border: 0; border-radius: 10px; display: block;
}
.directions__addr {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    margin-top: 14px; font-size: 15px; color: #374151;
}
.directions__copy {
    flex-shrink: 0; padding: 7px 14px; border: 1px solid #d1d6db; border-radius: 8px;
    background: #fff; color: #4b5563; font-size: 13.5px; cursor: pointer;
}
.directions__copy:hover { background: #f3f5f8; }

.dir-item { padding: 22px 0; border-bottom: 1px solid #eceff3; }
.dir-item:first-child { padding-top: 0; }
.dir-item__title { margin: 0 0 12px; font-size: 19px; font-weight: 700; color: #111827; }
.dir-item p { margin: 0 0 8px; font-size: 15px; color: #4b5563; line-height: 1.6; }
.dir-item p:last-child { margin-bottom: 0; }
.dir-line { color: var(--brand); }
.dir-tag {
    display: inline-block; min-width: 48px; text-align: center;
    padding: 3px 8px; margin-right: 8px; border-radius: 5px;
    font-size: 12.5px; font-weight: 700; color: #fff;
}
.dir-tag--green { background: #2db400; }
.dir-tag--blue { background: #2f6fd6; }
.dir-tag--red { background: #e0453a; }
.dir-tag--gray { background: #8b96a3; }
.dir-tag--sky { background: #00a2c7; }

/* ---- 진료철학 — 풀스크린 시네마틱 (스크롤 진입 시 줌 + 텍스트 등장) ---- */
.philo { position: relative; height: 100vh; min-height: 560px; overflow: hidden; background: #0a1730; display: flex; align-items: center; }
.philo__bg { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.14); transition: transform 2.4s cubic-bezier(.2, .6, .2, 1); will-change: transform; }
.philo.is-in .philo__bg { transform: scale(1); }
.philo__veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,18,40,.62) 0%, rgba(8,18,40,.42) 50%, rgba(8,18,40,.72) 100%); }
.philo__inner { position: relative; z-index: 2; width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 24px; color: #fff; text-align: center; }
.philo__eyebrow { display: block; font-size: 13px; font-weight: 800; letter-spacing: .24em; color: #9cc1ff; margin-bottom: 22px; opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s ease; }
.philo__q { margin: 0 0 22px; font-size: clamp(26px, 4.4vw, 50px); font-weight: 700; line-height: 1.4; letter-spacing: -.02em; text-shadow: 0 2px 40px rgba(0,0,0,.3); opacity: 0; transform: translateY(24px); transition: opacity .9s ease .15s, transform .9s ease .15s; }
.philo__d { margin: 0; font-size: clamp(15px, 1.8vw, 19px); line-height: 1.8; color: rgba(255,255,255,.88); opacity: 0; transform: translateY(24px); transition: opacity .9s ease .35s, transform .9s ease .35s; }
.philo.is-in .philo__eyebrow, .philo.is-in .philo__q, .philo.is-in .philo__d { opacity: 1; transform: none; }
@media (max-width: 640px) { .philo { height: 86vh; min-height: 460px; } }
@media (prefers-reduced-motion: reduce) {
    .philo__bg { transform: scale(1); transition: none; }
    .philo__eyebrow, .philo__q, .philo__d { opacity: 1; transform: none; transition: none; }
}

/* ---- 진료철학 statement (구) ---- */
.sec--philosophy { padding-bottom: 24px; }
.about-statement { text-align: center; padding: 8px 0; }
.about-statement .sec__eyebrow { margin-bottom: 14px; }
.about-statement__q {
    margin: 0 0 14px; font-size: clamp(22px, 3vw, 30px); font-weight: 700;
    color: #111827; line-height: 1.45; letter-spacing: -.01em;
}
.about-statement__d { margin: 0; font-size: 16px; color: #6b7280; line-height: 1.7; }

/* ---- 본문 단락 블록 ---- */
.about-prose { max-width: 900px; }
.about-prose__sub { margin: 0 0 14px; font-size: 19px; font-weight: 700; color: var(--brand); }
.about-prose p { margin: 0 0 12px; font-size: 16px; line-height: 1.85; color: #4b5563; }
.about-prose p:last-child { margin-bottom: 0; }

/* ---- 진료 원칙 카드 ---- */
.principle-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 32px;
}
.principle-card {
    padding: 30px 28px; border: 1px solid #e8ebf0; border-radius: 14px;
    background: #fafbfc;
}
.principle-card__no {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; margin-bottom: 16px; border-radius: 50%;
    background: var(--brand); color: #fff; font-size: 18px; font-weight: 700;
}
.principle-card__t { margin: 0 0 12px; font-size: 18px; font-weight: 700; color: #111827; line-height: 1.4; }
.principle-card__t span { display: block; margin-top: 2px; font-size: 14px; font-weight: 600; color: #8b96a3; }
.principle-card__d { margin: 0; font-size: 14.5px; line-height: 1.75; color: #6b7280; }

/* ---- 사이트 푸터 ---- */
.site-footer-b { background: #f3f5f8; border-top: 1px solid #e6e9ee; }
.site-footer-b__inner { max-width: 1100px; margin: 0 auto; padding: 36px 24px 44px; }
.site-footer-b__top {
    display: flex; align-items: center; justify-content: space-between; gap: 24px;
    padding-bottom: 22px; border-bottom: 1px solid #e2e6eb; flex-wrap: wrap;
}
.site-footer-b__brand img { height: 38px; width: auto; display: block; opacity: .85; }
.site-footer-b__nav { display: flex; flex-wrap: wrap; gap: 22px; }
.site-footer-b__nav a { font-size: 15px; font-weight: 600; color: #4b5563; }
.site-footer-b__nav a:hover { color: var(--brand); }
.site-footer-b__info { margin-top: 20px; }
.site-footer-b__info p { margin: 0 0 8px; font-size: 13.5px; color: #8b96a3; line-height: 1.6; }
.site-footer-b__info strong { color: #4b5563; }
.site-footer-b__info .bar { margin: 0 8px; color: #cbd2da; }
.site-footer-b__copy { font-size: 13px; color: #aab2bc; }

/* ---- 반응형 ---- */
@media (max-width: 900px) {
    .greet { grid-template-columns: 1fr; gap: 28px; }
    .greet__photo { max-width: 280px; }
    .directions { grid-template-columns: 1fr; gap: 28px; }
    .principle-grid { grid-template-columns: 1fr; gap: 16px; }
}
@media (max-width: 640px) {
    .page-hero__title { font-size: 22px; }
    .page-hero__subtitle { font-size: 14px; }
    .sec { padding: 48px 18px; }
    .sec__title { font-size: 22px; }
    .greet__lead { font-size: 23px; }
    /* 모바일: 대표 사진 전체폭 + 썸네일 2×2, 모두 동일 비율 */
    .tour { grid-template-columns: repeat(2, 1fr); grid-auto-rows: auto; aspect-ratio: auto; }
    .tour__main { grid-column: span 2; grid-row: auto; aspect-ratio: 16 / 10; }
    .tour__thumb { aspect-ratio: 4 / 3; }
    .hours-summary li { flex-direction: column; align-items: flex-start; gap: 4px; }
    .hours-summary__k { width: auto; }
    .site-footer-b__top { flex-direction: column; align-items: flex-start; }
}
