/* English (/en) pages — WhatsApp conversion + cost / international-patient sections.
   Uses the tokens from style.css; only WhatsApp brand colors are new.
   Selectors are prefixed with `body` so they beat each page's inline `.lm-page * { padding: 0 }` reset. */

:root {
    --c-wa: #25D366;
    --c-wa-hover: #1FB856;
    --c-wa-ink: #0B1F14; /* #25D366 위 대비 약 9:1 (흰 글자는 1.98:1로 AA 미달) */
    --en-line: rgba(196, 169, 132, 0.22);
    --en-panel: rgba(255, 255, 255, 0.035);
    --en-radius: 14px;
}

/* 라미네이트 마키·전후 슬라이더가 문서 폭을 넓히는 것(KO 원본과 동일)을 페이지 본문 안에서만 자른다.
   html/body에 걸면 body가 스크롤 컨테이너가 되어 메인의 sticky 스크롤 연출이 깨진다. clip은 스크롤 컨테이너를 만들지 않는다. */
body main.lm-page { overflow-x: clip; }

/* ---------- WhatsApp buttons ---------- */
body .line-btn.wa-btn { background: var(--c-wa); color: var(--c-wa-ink); }
body .line-btn.wa-btn:hover { background: var(--c-wa-hover); }

body .en-wa-fab {
    position: fixed;
    right: 28px;
    bottom: 28px;
    z-index: 900;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 22px 14px 18px;
    border-radius: 999px;
    background: var(--c-wa);
    color: var(--c-wa-ink);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
    transition: transform 0.25s, background 0.25s, box-shadow 0.25s;
    animation: en-fab-in 0.6s 0.8s both cubic-bezier(0.2, 0.8, 0.2, 1);
}
body .en-wa-fab i { font-size: 1.5rem; }
body .en-wa-fab:hover { background: var(--c-wa-hover); transform: translateY(-3px); box-shadow: 0 12px 34px rgba(0, 0, 0, 0.4); }
body .en-wa-fab:focus-visible, body .en-mobile-cta a:focus-visible, body .en-cta-row a:focus-visible { outline: 2px solid var(--c-gold-light); outline-offset: 3px; }

body .lm-scroll-top { bottom: 100px; }

@keyframes en-fab-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

body .en-mobile-cta { display: none; }

@media (max-width: 768px) {
    body .en-wa-fab { display: none; }
    body .en-mobile-cta {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 950;
        display: flex;
        gap: 8px;
        padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
        background: rgba(17, 17, 17, 0.94);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border-top: 1px solid var(--en-line);
    }
    body .en-mobile-cta a {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        height: 48px;
        border-radius: 10px;
        color: #fff;
        font-weight: 600;
        font-size: 0.95rem;
        text-decoration: none;
    }
    body .en-mobile-cta i { font-size: 1.35rem; }
    body .en-mobile-cta a.en-mobile-cta__wa { flex: 1; background: var(--c-wa); color: var(--c-wa-ink); }
    body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
    body .lm-scroll-top { bottom: calc(84px + env(safe-area-inset-bottom)); }
}

/* ---------- First-screen summary bar (treatment · price · jump to #cost) ---------- */
/* 고정 헤더 밑에 가려지지 않도록 헤더 높이만큼 내려 그린다. 아래 히어로가 원래 갖고 있는
   헤더 높이만큼의 상단 여백(>768px 80px, 이하 60px) 자리에 정확히 들어가 레이아웃·스크롤 JS는 그대로다. */
body .en-quick {
    position: relative;
    z-index: 5;
    transform: translateY(80px);
    background: linear-gradient(90deg, rgba(196, 169, 132, 0.16), rgba(196, 169, 132, 0.05)), var(--c-black);
    border-bottom: 1px solid var(--en-line);
    color: var(--c-white);
}
body .en-quick__in {
    max-width: var(--container-w);
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 18px;
    font-size: 0.92rem;
    line-height: 1.4;
}
body .en-quick__name { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
body .en-quick__name i { color: var(--c-gold); font-size: 1.15rem; }
body .en-quick__price { color: var(--c-gold-light); font-weight: 600; }
body .en-quick__meta { opacity: 0.7; }
body .en-quick__link {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border: 1px solid var(--en-line);
    border-radius: 999px;
    color: inherit;
    font-weight: 600;
    text-decoration: none;
    transition: border-color 0.25s, background 0.25s;
}
body .en-quick__link:hover { border-color: var(--c-gold); background: rgba(196, 169, 132, 0.1); }
body .en-quick__link:focus-visible { outline: 2px solid var(--c-gold-light); outline-offset: 3px; }

@media (max-width: 768px) {
    body .en-quick { transform: translateY(60px); }
    body .en-quick__in { padding: 10px 16px; gap: 2px 12px; font-size: 0.85rem; }
    body .en-quick__name { flex-basis: 100%; }
    body .en-quick__link { padding: 5px 12px; }
}

/* ---------- Shared section shell ---------- */
body .en-section {
    padding: 100px 20px;
    background: var(--c-black);
    color: var(--c-white);
}
body .en-section--cream { background: var(--c-cream); color: var(--c-black); }
body .en-wrap { max-width: var(--container-w); margin: 0 auto; }
body .en-eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--c-gold);
    margin-bottom: 14px;
}
body .en-h2 {
    font-family: var(--font-serif);
    font-size: clamp(1.8rem, 3.4vw, 2.6rem);
    font-weight: 500;
    line-height: 1.2;
    margin-bottom: 16px;
}
body .en-lead { font-size: 1.05rem; line-height: 1.7; opacity: 0.8; max-width: 720px; margin-bottom: 44px; }

/* ---------- Cost table ---------- */
body .en-cost__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}
body .en-cost__item {
    position: relative;
    padding: 26px 24px;
    border: 1px solid var(--en-line);
    border-radius: var(--en-radius);
    background: var(--en-panel);
    transition: border-color 0.3s, transform 0.3s;
}
body .en-section--cream .en-cost__item { background: #fff; border-color: rgba(17, 17, 17, 0.08); }
body .en-cost__item:hover { border-color: var(--c-gold); transform: translateY(-3px); }
body .en-cost__name { font-size: 1.02rem; font-weight: 600; margin-bottom: 4px; }
body .en-cost__note { font-size: 0.85rem; opacity: 0.65; line-height: 1.5; }
body .en-cost__price {
    margin-top: 18px;
    font-family: var(--font-serif);
    font-size: 1.7rem;
    color: var(--c-gold-light);
}
body .en-section--cream .en-cost__price { color: var(--c-gold-dark); }
body .en-cost__price small { font-family: var(--font-main); font-size: 0.8rem; opacity: 0.7; margin-left: 4px; }
body .en-cost__price--quote { font-size: 1.15rem; font-family: var(--font-main); font-weight: 600; }
body .en-cost__foot { margin-top: 22px; font-size: 0.85rem; line-height: 1.6; opacity: 0.65; }

/* ---------- International patients ---------- */
body .en-trip__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 16px;
}
body .en-trip__card {
    padding: 26px 22px;
    border-radius: var(--en-radius);
    border: 1px solid var(--en-line);
    background: var(--en-panel);
}
body .en-section--cream .en-trip__card { background: #fff; border-color: rgba(17, 17, 17, 0.08); }
body .en-trip__card i { font-size: 1.8rem; color: var(--c-gold); margin-bottom: 14px; display: block; }
body .en-trip__card h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 8px; }
body .en-trip__card p { font-size: 0.92rem; line-height: 1.65; opacity: 0.75; }

/* ---------- CTA row ---------- */
body .en-cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
body .en-cta-row a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 26px;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.25s, transform 0.25s, border-color 0.25s;
}
body .en-cta-row a:hover { transform: translateY(-2px); }
body .en-cta-row .en-cta--wa { background: var(--c-wa); color: var(--c-wa-ink); }
body .en-cta-row .en-cta--wa:hover { background: var(--c-wa-hover); }
body .en-cta-row .en-cta--ghost { border: 1px solid var(--en-line); color: inherit; }
body .en-cta-row .en-cta--ghost:hover { border-color: var(--c-gold); }
body .en-cta-row i { font-size: 1.3rem; }

@media (max-width: 768px) {
    body .en-section { padding: 64px 16px; }
    body .en-lead { margin-bottom: 28px; }
    body .en-cta-row a { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
    body .en-wa-fab { animation: none; }
    body .en-cost__item, body .en-wa-fab, body .en-cta-row a { transition: none; }
}
