/* ═══════════════════════════════════════════════════════════
   GloMax Landing — main.css  (Mobile First · 375px Base)
═══════════════════════════════════════════════════════════ */

/* ── Reset & Custom Properties ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* WordPress / Elementor 전역 button 스타일 중립화 */
button:not(.glomax-cta-btn) {
    background: transparent;
    background-color: transparent;
    background-image: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
    color: inherit;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    padding: 0;
    text-transform: none;
    letter-spacing: normal;
}

:root {
    --color-primary:   #B9A2CE;
    --color-cta:       #8F6AAD;
    --color-deep:      #5E416F;
    --color-dark:      #201A27;
    --color-text:      #2B2630;
    --color-muted:     #7B7281;
    --color-bg:        #FFFFFF;
    --color-bg-soft:   #F7F2FA;
    --color-warm:      #FFFDFC;
    --font-body:       'Pretendard', 'Noto Sans KR', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
    --font-heading:    'Pretendard', 'Noto Sans KR', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
    --radius:          8px;
    --shadow:          0 4px 20px rgba(0,0,0,.10);
    --transition:      .25s ease;
    --max-width:       1200px;
}

html { scroll-behavior: smooth; }
html:lang(ko) {
    --font-body: 'Pretendard', 'Noto Sans KR', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
    --font-heading: 'Pretendard', 'Noto Sans KR', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
}
html:lang(en) {
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Playfair Display', 'Georgia', serif;
}
html:lang(zh-CN) {
    --font-body: 'Noto Sans SC', 'Microsoft YaHei', 'PingFang SC', sans-serif;
    --font-heading: 'Noto Serif SC', 'Songti SC', 'SimSun', serif;
}
html:lang(zh-TW) {
    --font-body: 'Noto Sans TC', 'Microsoft JhengHei', 'PingFang TC', sans-serif;
    --font-heading: 'Noto Serif TC', 'Songti TC', 'PMingLiU', serif;
}
html:lang(id) {
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Playfair Display', 'Georgia', serif;
}
html:lang(vi) {
    --font-body: 'Be Vietnam Pro', 'Inter', Arial, sans-serif;
    --font-heading: 'Be Vietnam Pro', 'Inter', Arial, sans-serif;
}
html:lang(ja) {
    --font-body: 'Noto Sans JP', 'Yu Gothic', 'Hiragino Kaku Gothic ProN', sans-serif;
    --font-heading: 'Noto Serif JP', 'Yu Mincho', 'Hiragino Mincho ProN', serif;
}
html:lang(th) {
    --font-body: 'Noto Sans Thai', Tahoma, sans-serif;
    --font-heading: 'Noto Serif Thai', 'Noto Sans Thai', Tahoma, serif;
}
body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    padding-bottom: 76px;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
    width: 100%;
    max-width: var(--max-width);
    margin-inline: auto;
    padding-inline: 20px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(22px, 5vw, 36px);
    font-weight: 700;
    color: var(--color-dark);
    text-align: center;
    line-height: 1.3;
    margin-bottom: 8px;
}
.section-kicker {
    display: block;
    color: var(--color-cta);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .12em;
    text-align: center;
    text-transform: uppercase;
    margin-bottom: 8px;
}
.section-sub {
    text-align: center;
    color: var(--color-muted);
    font-size: 14px;
    margin-bottom: 40px;
}

/* ── 공통 CTA 버튼 ── */
.glomax-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 50px;
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    transition: filter var(--transition), transform var(--transition);
    border: none;
    text-decoration: none;
    white-space: nowrap;
    background: var(--color-cta) !important;
    box-shadow: 0 12px 28px rgba(143,106,173,.28);
}
.glomax-cta-btn:hover { filter: brightness(1.1); transform: translateY(-1px); }
.glomax-cta-btn:active { transform: translateY(0); }

/* ── SECTION 1: Hero ── */
.hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background:
        linear-gradient(115deg, rgba(255,253,252,.98) 0%, rgba(247,242,250,.96) 52%, rgba(185,162,206,.34) 100%),
        var(--color-bg-soft);
}
.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center top;
    opacity: .18;
    filter: saturate(.8);
}
.hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 760px;
    padding: 92px 24px 132px;
}
.hero-badge {
    display: inline-block;
    background: rgba(185,162,206,.18);
    color: var(--color-deep);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    padding: 4px 12px;
    border: 1px solid rgba(143,106,173,.18);
    border-radius: 999px;
    margin-bottom: 16px;
    text-transform: uppercase;
}
.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(28px, 7vw, 56px);
    font-weight: 900;
    color: var(--color-dark);
    line-height: 1.2;
    margin-bottom: 16px;
}
.hero-sub {
    font-size: 15px;
    color: var(--color-muted);
    margin-bottom: 32px;
    max-width: 480px;
}
.hero-cta-wrap { display: flex; flex-direction: column; gap: 12px; max-width: 320px; }
.hero .glomax-cta-btn { width: 100%; font-size: 18px; padding: 18px; }

/* ── SECTION 2: 신뢰 지표 ── */
.trust-section {
    background: var(--color-dark);
    padding: 40px 20px;
}
.trust-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: rgba(255,255,255,.12);
}
.trust-item {
    background: var(--color-dark);
    padding: 28px 16px;
    text-align: center;
}
.trust-number {
    font-family: var(--font-heading);
    font-size: clamp(30px, 8vw, 48px);
    font-weight: 900;
    color: var(--color-primary);
    line-height: 1;
}
.trust-label {
    font-size: 12px;
    color: rgba(255,255,255,.7);
    margin-top: 6px;
}

/* ── SECTION 3: Before / After ── */
.ba-section {
    padding: 64px 0;
    background: var(--color-bg-soft);
    /* overflow:hidden 대신 clip 사용 — 시각적으로만 잘라내고 자식 scroll context는 유지 */
    overflow-x: clip;
}
.ba-slider {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 0 20px 20px;
    /* 스냅 시 카드 왼쪽이 padding에 맞춰 정렬 */
    scroll-padding-left: 20px;
    scrollbar-width: none;
}
.ba-slider::-webkit-scrollbar { display: none; }
.ba-card {
    /* 뷰포트의 80% — 스냅된 카드는 완전히 보이고 다음 카드가 살짝 보임 */
    flex: 0 0 min(86vw, 420px);
    scroll-snap-align: start;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--color-warm);
    box-shadow: var(--shadow);
}
.ba-card-imgs {
    display: grid;
    grid-template-columns: 1fr 1fr;
}
.ba-card-imgs img { width: 100%; aspect-ratio: 1; object-fit: cover; }
/* 합본 이미지 (before+after 한 장) */
.ba-card-imgs--combined {
    display: block;
    aspect-ratio: 760 / 500;   /* 실제 이미지 비율 유지 */
    overflow: hidden;
}
.ba-card-imgs--combined img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.ba-card--combined { overflow: hidden; }

.ba-card-imgs-sample {
    position: relative;
    display: block;
}
.ba-card-imgs-sample img {
    width: 100%;
    aspect-ratio: 1.92 / 1;
    object-fit: cover;
}
.ba-sample {
    position: relative;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    overflow: hidden;
    background:
        radial-gradient(circle at 52% 34%, rgba(255,255,255,.82) 0 9%, transparent 10%),
        linear-gradient(155deg, #EEE4F4 0%, #F9F3F2 54%, #D9C8E7 100%);
}
.ba-sample-after {
    background:
        radial-gradient(circle at 52% 34%, rgba(255,255,255,.86) 0 9%, transparent 10%),
        linear-gradient(155deg, #F8F1FA 0%, #FFFDFC 54%, #CDB5DD 100%);
}
.ba-sample-face {
    width: 45%;
    height: 62%;
    border-radius: 45% 45% 48% 48%;
    background:
        linear-gradient(90deg, transparent 47%, rgba(143,106,173,.34) 49% 52%, transparent 54%),
        radial-gradient(circle at 37% 40%, rgba(94,65,111,.18) 0 3%, transparent 4%),
        radial-gradient(circle at 63% 40%, rgba(94,65,111,.18) 0 3%, transparent 4%),
        linear-gradient(#F1D4C6, #E8BFAF);
    box-shadow: 0 18px 40px rgba(94,65,111,.18);
}
.ba-sample-after .ba-sample-face {
    width: 43%;
    background:
        linear-gradient(90deg, transparent 47%, rgba(143,106,173,.52) 49% 52%, transparent 54%),
        radial-gradient(circle at 37% 40%, rgba(94,65,111,.18) 0 3%, transparent 4%),
        radial-gradient(circle at 63% 40%, rgba(94,65,111,.18) 0 3%, transparent 4%),
        linear-gradient(#F1D4C6, #E8BFAF);
}
.ba-sample-note {
    position: absolute;
    left: 12px;
    right: auto;
    bottom: 8px;
    border-radius: 999px;
    background: rgba(32,26,39,.72);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .04em;
    line-height: 1.2;
    padding: 6px 8px;
    text-align: left;
}
.ba-card-label {
    display: flex;
    justify-content: space-around;
    padding: 10px;
    font-size: 11px;
    font-weight: 700;
    color: var(--color-muted);
    text-transform: uppercase;
    letter-spacing: .06em;
}

.mid-cta-section {
    padding: 28px 20px 52px;
    background: var(--color-bg-soft);
    text-align: center;
}
.mid-cta-copy {
    color: var(--color-dark);
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 16px;
}
.mid-cta-section .glomax-cta-btn {
    width: 100%;
    max-width: 360px;
    padding: 17px 22px;
}

/* ── SECTION 4: 원장 소개 ── */
.doctor-section {
    padding: 64px 20px;
    background: #fff;
}
.doctor-card {
    display: flex;
    flex-direction: column;
    gap: 32px;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
}
.doctor-photo {
    width: min(100%, 320px);
    height: auto;
    aspect-ratio: 1;
    border-radius: var(--radius);
    object-fit: cover;
    border: 1px solid rgba(143,106,173,.22);
    box-shadow: 0 18px 48px rgba(94,65,111,.16);
    flex-shrink: 0;
}
.doctor-name {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 4px;
}
.doctor-title { color: var(--color-primary); font-size: 14px; margin-bottom: 16px; }
.doctor-bio { font-size: 14px; color: var(--color-muted); line-height: 1.8; }
.doctor-certs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}
.cert-badge {
    background: var(--color-bg-soft);
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 4px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    color: var(--color-dark);
}

/* ── SECTION 5: 후기 ── */
.reviews-section {
    padding: 64px 0;
    background: var(--color-bg-soft);
    overflow-x: clip;
}
.reviews-slider {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 0 20px 20px;
    scroll-padding-left: 20px;
    scrollbar-width: none;
}
.reviews-slider::-webkit-scrollbar { display: none; }
.review-card {
    flex: 0 0 min(82vw, 320px);
    scroll-snap-align: start;
    background: var(--color-warm);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
}
.review-stars { color: var(--color-cta); font-size: 16px; margin-bottom: 12px; }
.review-text { font-size: 14px; line-height: 1.8; color: var(--color-text); margin-bottom: 16px; }
.review-author { display: flex; align-items: center; gap: 10px; }
.review-flag { font-size: 20px; }
.review-name { font-size: 13px; font-weight: 700; }
.review-country { font-size: 11px; color: var(--color-muted); }

/* ── SECTION 6: 시술 안내 ── */
.brand-bridge-section {
    padding: 36px 20px;
    background:
        radial-gradient(circle at 72% 0%, rgba(185,162,206,.35), transparent 34%),
        linear-gradient(135deg, #201A27 0%, #5E416F 100%);
}
.brand-bridge-inner {
    width: min(100%, 720px);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}
.brand-bridge-logo {
    display: block;
    width: auto;
    max-width: min(260px, 72vw);
    height: auto;
    max-height: 54px;
    object-fit: contain;
}

.surgery-info-section {
    padding: 64px 20px;
    background: #fff;
}
.surgery-info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}
.info-card {
    border: 1px solid rgba(0,0,0,.08);
    border-radius: var(--radius);
    padding: 24px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
}
.info-icon { font-size: 28px; flex-shrink: 0; }
.info-title { font-weight: 700; font-size: 15px; margin-bottom: 6px; }
.info-desc { font-size: 13px; color: var(--color-muted); line-height: 1.7; }

/* ── SECTION 7: 프로세스 ── */
.process-section {
    padding: 64px 20px;
    background: var(--color-dark);
}
.process-section .section-title { color: #fff; }
.process-section .section-sub { color: rgba(255,255,255,.6); }
.process-steps {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}
.process-steps::before {
    content: '';
    position: absolute;
    left: 22px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--color-primary);
    opacity: .4;
}
.process-step {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 20px 0;
    position: relative;
}
.step-num {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--color-primary);
    color: #fff;
    font-weight: 900;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    z-index: 1;
}
.step-title { font-weight: 700; color: #fff; margin-bottom: 4px; font-size: 15px; }
.step-desc { font-size: 13px; color: rgba(255,255,255,.65); line-height: 1.7; }

/* ── SECTION 8: FAQ ── */
.faq-section {
    padding: 64px 20px;
    background: var(--color-bg-soft);
}
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid rgba(0,0,0,.08); }
.faq-question {
    width: 100%;
    text-align: left;
    /* WordPress/Elementor 전역 button 스타일 완전 리셋 */
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    color: var(--color-dark) !important;
    padding: 20px 40px 20px 0;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    line-height: 1.5;
    display: block;
    font-family: var(--font-body);
}
.faq-question::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 22px;
    color: var(--color-primary);
    transition: transform var(--transition);
    line-height: 1;
}
.faq-item.active .faq-question::after { transform: translateY(-50%) rotate(45deg); }
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease, padding .35s ease;
}
.faq-item.active .faq-answer { max-height: 400px; }
.faq-answer-inner {
    padding: 0 0 20px;
    font-size: 14px;
    color: var(--color-muted);
    line-height: 1.8;
}

/* ── SECTION 9: 최종 CTA ── */
.final-cta-section {
    padding: 80px 20px 120px;
    background: linear-gradient(135deg, #F7F2FA 0%, #FFFDFC 100%);
    text-align: center;
}
.final-cta-title {
    font-family: var(--font-heading);
    font-size: clamp(22px, 6vw, 38px);
    color: var(--color-dark);
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.3;
}
.final-cta-sub {
    font-size: 15px;
    color: var(--color-muted);
    margin-bottom: 36px;
    max-width: 480px;
    margin-inline: auto;
    margin-bottom: 36px;
}
.final-cta-section .glomax-cta-btn {
    width: 100%;
    max-width: 360px;
    font-size: 19px;
    padding: 20px;
    box-shadow: 0 14px 34px rgba(143,106,173,.28);
}

/* ── Footer ── */
.site-footer {
    background: #0a0a0a;
    padding: 32px 20px;
    text-align: center;
}
.footer-copy { font-size: 12px; color: rgba(255,255,255,.4); }
.footer-disclaimer { font-size: 11px; color: rgba(255,255,255,.25); margin-top: 6px; line-height: 1.6; }
