/* ============================================
   RESPONSIVE CSS — 더원츠의원 진짜 無컷 비절개 모발이식
   Desktop-first (1920 base) → Laptop / Tablet / Mobile
   기존 데스크톱 레이아웃/디자인 그대로 유지하면서
   좁은 뷰포트에서 자연스럽게 축소·재배치합니다.
============================================ */

/* ============================================
   LAPTOP (~1600px)
============================================ */
@media (max-width: 1600px) {
    .container { width: 92%; max-width: 1400px; }
    .section { padding: 120px 0; }

    .hero-title { font-size: 62px; }
    .hero-desc { font-size: 20px; }

    .section-title { font-size: 40px; }
    .section-title.big { font-size: 52px; }
}

/* ============================================
   SMALL LAPTOP (~1280px)
============================================ */
@media (max-width: 1280px) {
    .container { width: 92%; }
    .section { padding: 100px 0; }

    /* Hero */
    .hero-section { height: 480px; }
    .hero-title { font-size: 54px; }
    .hero-desc { font-size: 18px; }

    /* Section title */
    .section-title { font-size: 36px; }
    .section-title.big { font-size: 46px; }
    .section-head { margin-bottom: 56px; }

    /* Hair loss types → 3 columns */
    .hairloss-types { grid-template-columns: repeat(3, 1fr) !important; gap: 24px; }

    /* Case grid → 3 columns */
    .case-grid { grid-template-columns: repeat(3, 1fr) !important; gap: 20px; }

    /* Point grid → 3 columns (allow 2 rows) */
    .point-grid { grid-template-columns: repeat(3, 1fr) !important; gap: 20px; }

    /* Why wrap */
    .why-wrap { gap: 40px; }
}

/* ============================================
   TABLET (~1024px)
============================================ */
@media (max-width: 1024px) {
    .container { width: 92%; }
    .section { padding: 80px 0; }

    /* Hero */
    .hero-section { height: 420px; }
    .hero-title { font-size: 44px; letter-spacing: -0.02em; }
    .hero-desc { font-size: 16px; line-height: 1.7; }
    .hero-inner { padding: 0 24px; }

    /* Breadcrumb */
    .breadcrumb-nav { padding: 14px 0; }
    .breadcrumb-inner { font-size: 13px; }

    /* Section head */
    .section-title { font-size: 30px; line-height: 1.4; }
    .section-title.big { font-size: 40px; }
    .section-sub { font-size: 18px; }
    .section-desc { font-size: 16px; }
    .section-head { margin-bottom: 44px; }

    /* About desc */
    .about-desc p { font-size: 15px; line-height: 1.8; }
    .about-desc br { display: none; }

    /* Hair loss types → 2 columns */
    .hairloss-types { grid-template-columns: repeat(2, 1fr) !important; gap: 20px; }

    /* Case grid → 2 columns */
    .case-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 16px; }
    .case-card { padding: 30px 20px; }
    .case-icon { font-size: 42px; }
    .case-text { font-size: 15px; }

    /* Trademark → vertical stack */
    .trademark-wrap {
        flex-direction: column !important;display:flex;
        gap: 40px;
        align-items: center;
        text-align: center;
    }
    .trademark-cert, .trademark-text { width: 100%; max-width: 560px; }
    .tm-title { font-size: 30px; }
    .tm-desc { font-size: 15px; }
    .tm-desc br { display: none; }
    .tm-info { justify-content: center; }

    /* Point grid → 2 columns */
    .point-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 16px; }
    .point-head { font-size: 28px; }
    .point-card { padding: 28px 20px; }

    /* Video */
    .video-wrap { border-radius: 12px; }

    /* Before / After → keep 2 columns per row but shrink arrow */
    .ba-row { gap: 20px !important; display:flex;}
    .ba-arrow { font-size: 32px; }
    .ba-label { font-size: 15px; }

    /* Why */
    .why-wrap {
        flex-direction: column !important;display:flex;
        gap: 40px;
        align-items: center;
    }
    .why-img, .why-list-wrap { width: 100%; max-width: 600px; }
    .why-list h4 { font-size: 18px; }
    .why-list p { font-size: 14px; }

    /* Comparison */
    .comparison-wrap { max-width: 90%; }

    /* Survival */
    .survival-inner {
        flex-direction: column !important;display:flex;
        gap: 40px;
        text-align: center;
    }
    .survival-left, .survival-right { width: 100%; }
    .survival-desc { font-size: 15px; }
    .survival-desc br { display: none; }
    .survival-list li { justify-content: flex-start; }

    /* Promise */
    .promise-grid { gap: 24px; }
    .promise-card { padding: 40px 20px; }
    .promise-card h3 { font-size: 22px; }

    /* CTA */
    .cta-title { font-size: 32px; }
    .cta-desc { font-size: 16px; }
}

/* ============================================
   MOBILE (~768px)
============================================ */
@media (max-width: 768px) {
    .container { width: 92%; padding: 0; }
    .section { padding: 64px 0; }

    /* Hero */
    .hero-section { height: 360px; }
    .hero-title { font-size: 32px; line-height: 1.3; }
    .hero-title br { display: none; }
    .hero-desc { font-size: 14px; margin-top: 14px; }
    .hero-desc br { display: none; }
    .hero-inner { padding: 0 20px; text-align: center; }

    /* Breadcrumb */
    .breadcrumb-inner { flex-wrap: wrap; row-gap: 6px; font-size: 12px; }
    .bc-current { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }

    /* Section title */
    .section-title { font-size: 24px; line-height: 1.4; }
    .section-title br { display: none; }
    .section-title.big { font-size: 30px; }
    .section-sub { font-size: 15px; }
    .section-desc { font-size: 14px; margin-top: 14px; }
    .section-head { margin-bottom: 32px; }
    .section-signature { font-size: 16px; }

    /* About desc */
    .about-desc p { font-size: 14px; }
    .about-desc p + p { margin-top: 18px; }

    /* Hair loss types → 2 columns compact */
    .hairloss-types { grid-template-columns: repeat(2, 1fr) !important; gap: 12px; }
    .type-card { border-radius: 8px; }
    .type-num { font-size: 14px; }
    .type-label h3 { font-size: 15px; }

    /* Case grid → 2 columns compact */
    .case-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 12px; }
    .case-card { padding: 22px 14px; }
    .case-num { font-size: 12px; margin-bottom:0;}
    .case-icon { font-size: 32px; margin: 14px auto; }
    .case-text { font-size: 13px; line-height: 1.5; }
    .case-text br { display: none; }
    .case-foot-desc { font-size: 14px; }
    .case-foot-desc br { display: none; }
    .case-foot-cta { font-size: 16px; }

    /* Trademark */
    .trademark-cert img { max-width: 100%; }
    .trademark-badge { width: 90px !important; }
    .tm-tag { font-size: 12px; }
    .tm-title { font-size: 24px; }
    .tm-desc { font-size: 14px; }
    .tm-info { flex-direction: column; gap: 8px; }
    .tm-info li { font-size: 13px; }

    /* Point */
    .point-head { font-size: 22px; line-height: 1.4; margin-bottom: 30px; }
    .point-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 12px; }
    .point-card { padding: 22px 14px; }
    .point-num { font-size: 12px; }
    .point-icon { width: 56px; height: 56px; font-size: 24px; }
    .point-card p { font-size: 13px; }
    .point-card p br { display: none; }

    /* Video */
    .video-wrap { border-radius: 8px; }

    /* Before / After → vertical stack */
    .ba-row {
        flex-direction: column !important;
        gap: 14px !important;
    }
    .ba-arrow {
        transform: rotate(90deg);
        font-size: 26px;
    }
    .ba-item { width: 100%; }
    .ba-label { font-size: 14px; }
    .ba-label span { font-size: 11px; padding: 3px 8px; }
    .ba-notice { font-size: 12px; }

    /* Why */
    .why-list li { gap: 14px; padding: 18px 0; }
    .why-num { font-size: 22px; min-width: 40px; }
    .why-list h4 { font-size: 16px; }
    .why-list p { font-size: 13px; }
    .why-img-tag { font-size: 13px; padding: 10px 18px; }
    .why-img-tag b { font-size: 16px; }

    /* Comparison */
    .comparison-wrap { max-width: 100%; margin-top: 32px; box-shadow: 0 12px 24px rgba(0,0,0,0.1); }

    /* Survival */
    .survival-list li { padding: 18px 14px; }
    .survival-list li i { font-size: 32px; }
    .survival-list h4 { font-size: 16px; }
    .survival-list p { font-size: 13px; }
    .survival-desc { font-size: 14px; }

    /* Promise */
    .promise-grid {
        grid-template-columns: 1fr !important;
        gap: 16px;
        max-width: 380px;
        margin: 0 auto;
    }
    .promise-card { padding: 32px 20px; }
    .promise-icon { font-size: 36px; }
    .promise-card h3 { font-size: 20px; }
    .promise-card p { font-size: 14px; }
    .promise-card p br { display: none; }

    /* CTA */
    .cta-section { padding: 70px 0; }
    .cta-title { font-size: 22px; line-height: 1.4; }
    .cta-desc { font-size: 14px; }
    .cta-desc br { display: none; }
    .cta-buttons {
        flex-direction: column;
        gap: 12px;
        width: 100%;
        max-width: 320px;
        margin: 30px auto 0;
    }
    .cta-btn {
        width: 100%;
        font-size: 15px;
        padding: 16px 20px;
    }
}

/* ============================================
   SMALL MOBILE (~480px)
============================================ */
@media (max-width: 480px) {
    .section { padding: 56px 0; }

    .hero-section { height: 320px; }
    .hero-title { font-size: 26px; }
    .hero-desc { font-size: 13px; }

    .section-title { font-size: 21px; }
    .section-title.big { font-size: 26px; }

    /* Single-column card grids on very small screens */
    .hairloss-types { grid-template-columns: 1fr !important; gap: 12px; max-width: 320px; margin-left: auto; margin-right: auto; }
    .case-grid,
    .point-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 10px; }
}

/* ============================================
   TOUCH DEVICE — remove hover effects
============================================ */
@media (hover: none) and (pointer: coarse) {
    .type-card:hover,
    .case-card:hover,
    .point-card:hover,
    .promise-card:hover,
    .cta-btn:hover { transform: none !important; }
}

/* ============================================
   REDUCED MOTION (a11y)
============================================ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .fade-in { opacity: 1 !important; transform: none !important; }
}

/* ============================================
   PRINT
============================================ */
@media print {
    .hero-overlay, .hero-bg::after, .cta-section, .breadcrumb-nav { display: none !important; }
    .section { padding: 20px 0 !important; break-inside: avoid; }
    body { color: #000; background: #fff; }
    a[href]::after { content: " (" attr(href) ")"; font-size: 10px; color: #555; }
    .gold-text, .gold, .gold-light { -webkit-text-fill-color: #a87f3a !important; color: #a87f3a !important; }
}
