:root {
    /* 라이트 모드 강제 — 모바일 크롬 auto-dark 비활성화 */
    color-scheme: only light;
    --color-primary: #FF6B35;
    --color-primary-dark: #E85D04;
    --color-primary-light: #FF8C42;
    --color-accent: #FFC107;
    --color-bg: #FFF8F2;
    --color-text: #1F2937;
    --color-text-light: #6B7280;
}

html { color-scheme: only light; background-color: #FFF8F2; }

body {
    font-family: 'Pretendard', 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;
    background-color: var(--color-bg);
    color: var(--color-text);
    color-scheme: only light;
    /* iOS Safari 스크롤 끝에서 튕김 방지 (PWA 모드에서 특히 유용) */
    overscroll-behavior-y: contain;
    /* iOS 부드러운 스크롤 */
    -webkit-overflow-scrolling: touch;
}

/* 시스템 다크모드가 켜져도 라이트 디자인 유지 — 모든 변수·기본색 라이트값으로 강제 */
@media (prefers-color-scheme: dark) {
    :root, html, body {
        color-scheme: only light !important;
        background-color: #FFF8F2 !important;
        color: #1F2937 !important;
    }
    input, textarea, select, button {
        color-scheme: only light !important;
        background-color: #fff !important;
        color: #1F2937 !important;
    }
}

/* iPhone safe-area-inset 보호 (노치/홈인디케이터 영역) — viewport-fit=cover 필요 */
.custom-navbar {
    padding-top: env(safe-area-inset-top);
}
.custom-footer {
    padding-bottom: max(20px, env(safe-area-inset-bottom));
}
main.container {
    padding-left: max(12px, env(safe-area-inset-left));
    padding-right: max(12px, env(safe-area-inset-right));
}

/* 터치 active 피드백 (mobile은 :hover 미작동, :active로 클릭 시각화) */
.menu-card:active,
.call-hero:active,
.call-btn:active,
.menu-item:active {
    transform: scale(0.98);
    transition: transform 0.05s;
}
.btn:active {
    transform: scale(0.97);
}

/* 헤더 */
.custom-navbar {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
}

.custom-navbar .navbar-brand,
.custom-navbar .navbar-brand:hover {
    color: white !important;
    font-size: 1.15rem;
}

/* 메뉴 카드 (큰 디자인) */
.menu-card {
    display: flex;
    align-items: center;
    background: #FFFFFF;
    padding: 22px 20px;
    border-radius: 16px;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border-left: 6px solid;
    transition: all 0.2s;
    text-decoration: none;
    color: var(--color-text);
}

.menu-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    color: var(--color-text);
}

.menu-card .icon {
    font-size: 2.4rem;
    width: 64px;
    text-align: center;
    flex-shrink: 0;
}

.menu-card .text { flex: 1; margin-left: 8px; }
.menu-card .title { font-size: 1.15rem; font-weight: 700; line-height: 1.3; }
.menu-card .desc { font-size: 0.9rem; color: var(--color-text-light); margin-top: 4px; }
.menu-card .arrow { color: #9CA3AF; font-size: 1.6rem; }

.menu-card.color-blue { border-left-color: #3B82F6; }
.menu-card.color-yellow { border-left-color: #F59E0B; }
.menu-card.color-green { border-left-color: #10B981; }

/* 전화접수 */
.call-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: white !important;
    padding: 20px;
    border-radius: 16px;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(255, 107, 53, 0.35);
}
.call-btn:hover { color: white !important; }

@keyframes callPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 4px 14px rgba(255, 107, 53, 0.35); }
    50% { transform: scale(1.04); box-shadow: 0 8px 24px rgba(255, 107, 53, 0.55); }
}
.call-btn-pulse { animation: callPulse 1.8s ease-in-out infinite; }

/* 마일리지 카드 (다른 페이지용) */
.mileage-display {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: white;
    border-radius: 16px;
    padding: 20px;
    text-align: center;
}
.mileage-display .amount { font-size: 2.3rem; font-weight: 800; }

/* 적립 정책 */
.promo-section {
    background: linear-gradient(135deg, #FFF4E6 0%, #FFE8CC 100%);
    border-radius: 20px;
    padding: 24px 20px;
}

.promo-card {
    display: flex;
    align-items: center;
    background: white;
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 10px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.promo-card:last-child { margin-bottom: 0; }

.promo-number {
    background: var(--color-primary);
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    margin-right: 14px;
    flex-shrink: 0;
    font-size: 0.9rem;
}

.promo-content { flex: 1; }
.promo-title { font-size: 0.85rem; color: var(--color-text-light); }
.promo-detail { font-size: 1rem; color: var(--color-text); margin-top: 2px; }
.promo-detail strong { color: var(--color-primary); font-size: 1.1rem; font-weight: 800; }

/* 슬로건 */
.brand-message {
    padding: 24px 20px;
}
.brand-message .slogan {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-primary);
    line-height: 1.4;
}

/* 푸터 */
.custom-footer {
    background: #FAFAFA;
    border-top: 1px solid #E5E7EB;
    margin-top: 60px;
}
.footer-link { color: var(--color-text); text-decoration: none; font-weight: 500; }
.footer-link:hover { color: var(--color-primary); text-decoration: underline; }

/* 입력/버튼 */
input.form-control { padding: 12px 16px; font-size: 1rem; border-radius: 10px; }
input.form-control:focus { border-color: var(--color-primary); box-shadow: 0 0 0 0.2rem rgba(255, 107, 53, 0.15); }

.btn-primary { background-color: var(--color-primary); border-color: var(--color-primary); color: white; font-weight: 600; }
.btn-primary:hover { background-color: var(--color-primary-dark); border-color: var(--color-primary-dark); color: white; }

/* 카드 */
.card { border: none; box-shadow: 0 2px 8px rgba(0,0,0,0.05); border-radius: 12px; }

/* 기존 menu-item 호환 */
.menu-item {
    background: white;
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-decoration: none;
    color: #212529;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    transition: transform 0.1s;
}
.menu-item:hover { transform: translateY(-1px); color: #212529; }
.menu-item .arrow { color: #adb5bd; font-size: 1.5rem; }
.menu-item-large { padding: 22px 20px; }
.menu-item-large .menu-icon { font-size: 1.6rem; margin-right: 14px; flex-shrink: 0; }
.menu-item-large .menu-main-text { font-size: 1.15rem; font-weight: 700; line-height: 1.3; }
.menu-item-large .menu-sub-text { font-size: 0.95rem; color: #6c757d; margin-top: 4px; }


/* 전화접수 메인 (강화된 디자인) */
.call-hero {
    display: block;
    background: linear-gradient(135deg, #FF8C42 0%, #E85D04 100%);
    color: white !important;
    padding: 32px 24px;
    border-radius: 24px;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(255, 107, 53, 0.5);
    position: relative;
    overflow: hidden;
    animation: heroPulse 1.8s ease-in-out infinite;
}

.call-hero:hover {
    color: white !important;
}

.call-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.35), transparent 70%);
    pointer-events: none;
}

.call-hero-content {
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1;
}

.call-hero-icon {
    font-size: 3.2rem;
    margin-right: 16px;
    animation: ringPhone 1.2s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes ringPhone {
    0%, 100% { transform: rotate(0); }
    20% { transform: rotate(-15deg); }
    40% { transform: rotate(15deg); }
    60% { transform: rotate(-10deg); }
    80% { transform: rotate(10deg); }
}

.call-hero-text {
    flex: 1;
    text-align: left;
}

.call-hero-label {
    font-size: 1.05rem;
    font-weight: 700;
    opacity: 0.95;
    margin-bottom: 2px;
}

.call-hero-number {
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    line-height: 1.1;
}

.call-hero-sub {
    font-size: 0.85rem;
    opacity: 0.92;
    margin-top: 4px;
}

@keyframes heroPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 8px 24px rgba(255, 107, 53, 0.5);
    }
    50% {
        transform: scale(1.03);
        box-shadow: 0 12px 36px rgba(255, 107, 53, 0.75);
    }
}


/* 메인 홈 하단 로고 (콩콩 튀는 애니메이션) */
.hero-logo {
    max-width: 220px;
    width: 75%;
    animation: wildJump 1.8s ease-in-out infinite;
    border-radius: 24px;
}

@keyframes wildJump {
    0%, 100% { transform: translateY(0); }
    25% { transform: translateY(-50px); }
    50% { transform: translateY(0); }
    75% { transform: translateY(-25px); }
}
