/* ===== 메가텔레콤 통합 스타일시트 ===== */
:root {
    --kt-red: #ED1C24;
    --kt-dark: #1a1a1a;
    --primary: #ED1C24;
    --primary-dark: #c9151c;
    --accent: #ff6b35;
    --bg-light: #f8f9fa;
    --bg-dark: #1a1a2e;
    --text-main: #333;
    --text-sub: #666;
    --text-light: #999;
    --border: #e0e0e0;
    --shadow: 0 2px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
    --radius: 12px;
    --radius-sm: 8px;
    --transition: all 0.3s ease;
    --max-width: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    background: #fff;
    overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
ul { list-style: none; }

/* ===== 유틸리티 ===== */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }
.section { padding: 80px 0; }
.section-title {
    text-align: center; margin-bottom: 48px;
}
.section-title h2 {
    font-size: 32px; font-weight: 800; margin-bottom: 12px;
}
.section-title p {
    color: var(--text-sub); font-size: 16px;
}
.badge {
    display: inline-block; padding: 4px 12px; border-radius: 20px;
    font-size: 12px; font-weight: 600;
}
.badge-red { background: var(--primary); color: #fff; }
.badge-gray { background: #eee; color: #666; }

/* ===== 버튼 ===== */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 28px; border-radius: var(--radius-sm); font-size: 15px; font-weight: 600;
    border: none; cursor: pointer; transition: var(--transition); line-height: 1.4;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn-outline { background: transparent; border: 2px solid var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-white { background: #fff; color: var(--primary); }
.btn-white:hover { background: #f0f0f0; }
.btn-dark { background: var(--kt-dark); color: #fff; }
.btn-dark:hover { background: #333; }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-lg { padding: 16px 36px; font-size: 17px; }
.btn-block { display: flex; width: 100%; }
.btn-kakao { background: #FEE500; color: #3C1E1E; }
.btn-kakao:hover { background: #f0d900; }

/* ===== 헤더 ===== */
.header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(255,255,255,0.97); backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    transition: var(--transition);
}
.header.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.08); }
.header-inner {
    max-width: var(--max-width); margin: 0 auto; padding: 0 20px;
    display: flex; align-items: center; justify-content: space-between; height: 68px;
}
.logo { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 800; color: var(--primary); }
.logo img { height: 36px; }
.logo span { letter-spacing: -0.5px; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
    padding: 8px 16px; font-size: 14px; font-weight: 500; color: var(--text-main);
    border-radius: 8px; transition: var(--transition); white-space: nowrap;
}
.nav a:hover, .nav a.active { color: var(--primary); background: rgba(237,28,36,0.06); }

.header-actions { display: flex; align-items: center; gap: 10px; }

/* 모바일 메뉴 */
.mobile-toggle {
    display: none; background: none; border: none; cursor: pointer;
    width: 36px; height: 36px; position: relative;
}
.mobile-toggle span {
    display: block; width: 22px; height: 2px; background: var(--text-main);
    position: absolute; left: 7px; transition: var(--transition);
}
.mobile-toggle span:nth-child(1) { top: 10px; }
.mobile-toggle span:nth-child(2) { top: 17px; }
.mobile-toggle span:nth-child(3) { top: 24px; }
.mobile-toggle.active span:nth-child(1) { top: 17px; transform: rotate(45deg); }
.mobile-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-toggle.active span:nth-child(3) { top: 17px; transform: rotate(-45deg); }

.mobile-nav {
    display: none; position: fixed; top: 68px; left: 0; right: 0; bottom: 0;
    background: #fff; z-index: 999; padding: 20px; overflow-y: auto;
}
.mobile-nav.active { display: block; }
.mobile-nav a {
    display: block; padding: 14px 16px; font-size: 16px; font-weight: 500;
    border-bottom: 1px solid #f0f0f0; color: var(--text-main);
}
.mobile-nav a:hover { color: var(--primary); }

/* ===== 히어로 ===== */
.hero {
    padding-top: 68px;
    background: linear-gradient(135deg, var(--bg-dark) 0%, #16213e 100%);
    position: relative; overflow: hidden; min-height: 540px;
    display: flex; align-items: center;
}
.hero::before {
    content: ''; position: absolute; top: -50%; right: -20%; width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(237,28,36,0.15) 0%, transparent 70%);
    border-radius: 50%;
}
.hero-content {
    max-width: var(--max-width); margin: 0 auto; padding: 60px 20px;
    position: relative; z-index: 1; text-align: center; width: 100%;
}
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 20px; background: rgba(237,28,36,0.15); border: 1px solid rgba(237,28,36,0.3);
    border-radius: 30px; color: #ff8a8a; font-size: 14px; font-weight: 600; margin-bottom: 24px;
}
.hero h1 {
    font-size: 44px; font-weight: 800; color: #fff; line-height: 1.3; margin-bottom: 16px;
    letter-spacing: -1px;
}
.hero h1 em { font-style: normal; color: var(--primary); }
.hero p { font-size: 18px; color: rgba(255,255,255,0.7); margin-bottom: 36px; line-height: 1.7; }
.hero-buttons { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.hero-stats {
    display: flex; justify-content: center; gap: 60px; margin-top: 48px;
    padding-top: 40px; border-top: 1px solid rgba(255,255,255,0.1);
}
.hero-stat { text-align: center; }
.hero-stat .number { font-size: 32px; font-weight: 800; color: #fff; }
.hero-stat .label { font-size: 13px; color: rgba(255,255,255,0.5); margin-top: 4px; }

/* ===== 서비스 카드 ===== */
.services { background: var(--bg-light); }
.services-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.service-card {
    background: #fff; border-radius: var(--radius); padding: 36px 28px;
    text-align: center; transition: var(--transition); border: 1px solid transparent;
    cursor: pointer;
}
.service-card:hover {
    transform: translateY(-4px); box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}
.service-icon {
    width: 64px; height: 64px; border-radius: 16px; margin: 0 auto 20px;
    display: flex; align-items: center; justify-content: center; font-size: 28px;
}
.service-icon.red { background: rgba(237,28,36,0.1); }
.service-icon.blue { background: rgba(59,130,246,0.1); }
.service-icon.green { background: rgba(34,197,94,0.1); }
.service-icon.orange { background: rgba(255,107,53,0.1); }
.service-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.service-card p { font-size: 14px; color: var(--text-sub); line-height: 1.6; }

/* ===== 매장 카드 ===== */
.stores-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 24px;
}
.store-card {
    background: #fff; border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow); transition: var(--transition);
}
.store-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.store-card-img {
    height: 180px; background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 24px; font-weight: 700; position: relative;
}
.store-card-img img { width: 100%; height: 100%; object-fit: cover; }
.store-card-body { padding: 24px; }
.store-card-body h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.store-card-info { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.store-card-info span { font-size: 13px; color: var(--text-sub); display: flex; align-items: center; gap: 6px; }
.store-card-actions { display: flex; gap: 8px; }

/* ===== 프로모션 배너 ===== */
.promo-banner {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: var(--radius); padding: 48px; text-align: center;
    position: relative; overflow: hidden;
}
.promo-banner h2 { font-size: 28px; color: #fff; font-weight: 800; margin-bottom: 12px; }
.promo-banner p { color: rgba(255,255,255,0.7); margin-bottom: 24px; }

/* ===== 공지사항 ===== */
.notice-list { display: flex; flex-direction: column; gap: 1px; background: #f0f0f0; border-radius: var(--radius); overflow: hidden; }
.notice-item {
    display: flex; align-items: center; gap: 16px; padding: 18px 24px;
    background: #fff; transition: var(--transition); cursor: pointer;
}
.notice-item:hover { background: var(--bg-light); }
.notice-item .notice-badge { flex-shrink: 0; }
.notice-item .notice-title { flex: 1; font-size: 15px; font-weight: 500; }
.notice-item .notice-date { font-size: 13px; color: var(--text-light); flex-shrink: 0; }

/* ===== 신뢰 요소 ===== */
.trust { background: var(--bg-light); }
.trust-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
}
.trust-item {
    text-align: center; padding: 32px; background: #fff;
    border-radius: var(--radius); box-shadow: var(--shadow);
}
.trust-item .trust-icon { font-size: 40px; margin-bottom: 16px; }
.trust-item h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.trust-item p { font-size: 14px; color: var(--text-sub); }

/* ===== 푸터 ===== */
.footer {
    background: var(--bg-dark); color: rgba(255,255,255,0.6); padding: 60px 0 30px;
}
.footer-grid {
    display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px;
    padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand h3 { color: #fff; font-size: 18px; margin-bottom: 12px; }
.footer-brand p { font-size: 13px; line-height: 1.8; }
.footer-links h4 { color: #fff; font-size: 14px; margin-bottom: 16px; }
.footer-links a { display: block; font-size: 13px; padding: 4px 0; transition: var(--transition); }
.footer-links a:hover { color: #fff; }
.footer-bottom {
    display: flex; justify-content: space-between; align-items: center;
    padding-top: 24px; font-size: 12px;
}

/* ===== 플로팅 CTA ===== */
.floating-cta {
    position: fixed; bottom: 24px; right: 24px; z-index: 900;
    display: flex; flex-direction: column; gap: 12px;
}
.floating-btn {
    width: 56px; height: 56px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2); transition: var(--transition);
    border: none; cursor: pointer; font-size: 22px;
}
.floating-btn:hover { transform: scale(1.1); }
.floating-btn.phone-btn { background: var(--primary); color: #fff; }
.floating-btn.kakao-btn { background: #FEE500; color: #3C1E1E; }
.floating-btn.top-btn { background: #fff; color: var(--text-main); font-size: 18px; }

/* ===== 모달 ===== */
.modal-overlay {
    display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5); z-index: 2000; justify-content: center; align-items: center;
    padding: 20px;
}
.modal-overlay.active { display: flex; }
.modal {
    background: #fff; border-radius: var(--radius); width: 100%; max-width: 520px;
    max-height: 90vh; overflow-y: auto; position: relative;
}
.modal-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 24px 28px; border-bottom: 1px solid var(--border);
}
.modal-header h3 { font-size: 18px; font-weight: 700; }
.modal-close {
    width: 32px; height: 32px; border-radius: 50%; border: none;
    background: var(--bg-light); cursor: pointer; font-size: 18px;
    display: flex; align-items: center; justify-content: center;
}
.modal-body { padding: 28px; }

/* ===== 폼 ===== */
.form-group { margin-bottom: 20px; }
.form-group label {
    display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; color: var(--text-main);
}
.form-group label .required { color: var(--primary); margin-left: 2px; }
.form-control {
    width: 100%; padding: 12px 16px; border: 1px solid var(--border);
    border-radius: var(--radius-sm); font-size: 14px; transition: var(--transition);
    background: #fff; color: var(--text-main); font-family: inherit;
}
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(237,28,36,0.1); }
select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }
textarea.form-control { resize: vertical; min-height: 80px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-check {
    display: flex; align-items: flex-start; gap: 8px;
}
.form-check input[type="checkbox"] { margin-top: 4px; accent-color: var(--primary); }
.form-check label { font-size: 13px; cursor: pointer; font-weight: 400; }

/* ===== 테이블 ===== */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border); font-size: 14px; }
th { background: var(--bg-light); font-weight: 600; white-space: nowrap; }

/* ===== 알림 토스트 ===== */
.toast-container { position: fixed; top: 80px; right: 20px; z-index: 3000; display: flex; flex-direction: column; gap: 8px; }
.toast {
    padding: 14px 20px; border-radius: var(--radius-sm); color: #fff;
    font-size: 14px; font-weight: 500; min-width: 280px;
    animation: slideIn 0.3s ease; box-shadow: var(--shadow-lg);
}
.toast-success { background: #22c55e; }
.toast-error { background: var(--primary); }
.toast-info { background: #3b82f6; }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ===== 페이지 헤더 ===== */
.page-header {
    padding-top: 68px; background: linear-gradient(135deg, var(--bg-dark), #16213e);
    padding-bottom: 48px; text-align: center;
}
.page-header h1 { color: #fff; font-size: 32px; font-weight: 800; padding-top: 40px; }
.page-header p { color: rgba(255,255,255,0.6); margin-top: 8px; }

/* ===== 반응형 ===== */
@media (max-width: 1024px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .trust-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .nav { display: none; }
    .mobile-toggle { display: block; }
    .hero h1 { font-size: 28px; }
    .hero p { font-size: 15px; }
    .hero-stats { gap: 30px; flex-wrap: wrap; }
    .hero-stat .number { font-size: 24px; }
    .services-grid { grid-template-columns: 1fr; }
    .stores-grid { grid-template-columns: 1fr; }
    .trust-grid { grid-template-columns: 1fr; }
    .section { padding: 48px 0; }
    .section-title h2 { font-size: 24px; }
    .form-row { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
    .header-actions .btn { display: none; }
    .promo-banner { padding: 32px 20px; }
    .promo-banner h2 { font-size: 22px; }
}
@media (max-width: 480px) {
    .hero { min-height: 420px; }
    .hero-content { padding: 40px 16px; }
    .hero-buttons { flex-direction: column; align-items: center; }
    .floating-cta { bottom: 16px; right: 16px; }
}
