/*
Theme Name: Porter Price
Theme URI: https://porter.hdcarmd.com
Description: 현대자동차 포터 가격 정보형 사이트 전용 테마
Author: 특수한카
Version: 2.0.0
Text Domain: porter-price
*/

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: 'Pretendard Variable', 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, 'Helvetica Neue', sans-serif;
    color: #1a1a1a;
    background: #fff;
    line-height: 1.75;
    word-break: keep-all;
    overflow-wrap: break-word;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    letter-spacing: -0.01em;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color 0.2s; }
ul, ol { list-style: none; }
table { border-collapse: collapse; width: 100%; }

/* ===== LAYOUT ===== */
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section:nth-child(even) { background: #f7f8fa; }
.section-title {
    font-size: 1.85rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: #111;
    line-height: 1.3;
    letter-spacing: -0.025em;
}
.section-subtitle {
    font-size: 1rem;
    color: #6b7280;
    margin-bottom: 44px;
    line-height: 1.65;
    max-width: 640px;
}

/* ===== HEADER ===== */
.site-header {
    background: rgba(255,255,255,0.97);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
}
.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 58px;
}
.site-logo {
    font-size: 1.1rem;
    font-weight: 800;
    color: #002c5f;
    letter-spacing: -0.03em;
}
.site-logo span { color: #00aad2; }
.header-nav { display: flex; gap: 28px; align-items: center; }
.header-nav a {
    font-size: 0.85rem;
    color: #555;
    font-weight: 500;
    position: relative;
    padding: 4px 0;
}
.header-nav a:hover { color: #002c5f; }
.header-nav a::after {
    content: '';
    position: absolute;
    bottom: -2px; left: 0;
    width: 0; height: 2px;
    background: #00aad2;
    transition: width 0.25s;
}
.header-nav a:hover::after { width: 100%; }
.header-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #002c5f;
    color: #fff !important;
    padding: 8px 20px;
    border-radius: 100px;
    font-size: 0.82rem;
    font-weight: 600;
    transition: all 0.25s;
    letter-spacing: 0;
}
.header-cta-btn:hover { background: #00aad2; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,170,210,0.25); }

/* ===== HERO ===== */
.hero {
    background: linear-gradient(135deg, #001a3a 0%, #002c5f 35%, #003d7a 70%, #004d8f 100%);
    color: #fff;
    padding: 0;
    position: relative;
    overflow: hidden;
    min-height: 480px;
    display: flex;
    align-items: center;
}
.hero::before {
    content: '';
    position: absolute;
    top: -50%; right: -20%;
    width: 80%; height: 200%;
    background: radial-gradient(ellipse, rgba(0,170,210,0.08) 0%, transparent 70%);
    pointer-events: none;
}
.hero::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0,170,210,0.3), transparent);
}
.hero .container {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding-top: 60px;
    padding-bottom: 60px;
}
.hero-content { flex: 1; max-width: 580px; }
.hero-image {
    flex: 0 0 auto;
    max-width: 420px;
    opacity: 0.92;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.3));
    animation: heroFloat 6s ease-in-out infinite;
}
@keyframes heroFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
.hero-image img { width: 100%; height: auto; }
.hero h1 {
    font-size: 2.8rem;
    font-weight: 900;
    margin-bottom: 18px;
    line-height: 1.15;
    letter-spacing: -0.04em;
}
.hero-desc {
    font-size: 1.05rem;
    line-height: 1.75;
    opacity: 0.88;
    max-width: 520px;
    margin-bottom: 28px;
}
.hero-points {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 32px;
}
.hero-point {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    padding: 9px 16px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 500;
    backdrop-filter: blur(8px);
    letter-spacing: -0.01em;
}
.hero-buttons { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #00aad2;
    color: #fff;
    padding: 13px 28px;
    border-radius: 100px;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0,170,210,0.3);
    letter-spacing: -0.01em;
}
.btn-primary:hover { background: #0090b5; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,170,210,0.35); }
.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.08);
    color: #fff;
    padding: 13px 28px;
    border-radius: 100px;
    font-size: 0.95rem;
    font-weight: 600;
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.3s;
    cursor: pointer;
    backdrop-filter: blur(4px);
    letter-spacing: -0.01em;
}
.btn-secondary:hover { background: rgba(255,255,255,0.18); border-color: rgba(255,255,255,0.35); }

/* ===== PRICE TABLE ===== */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.price-card {
    background: #fff;
    border-radius: 16px;
    padding: 28px 24px;
    border: 1px solid #eaecf0;
    transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
}
.price-card:hover {
    box-shadow: 0 12px 40px rgba(0,44,95,0.08);
    transform: translateY(-4px);
    border-color: #c8d6e5;
}
.price-card-badge {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 14px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}
.badge-general { background: #eef4ff; color: #002c5f; }
.badge-electric { background: #ecfdf5; color: #047857; }
.badge-special { background: #fff7ed; color: #c2410c; }
.price-card h3 {
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 6px;
    letter-spacing: -0.02em;
}
.price-card .price-range {
    font-size: 1.45rem;
    font-weight: 900;
    color: #002c5f;
    margin-bottom: 16px;
    letter-spacing: -0.03em;
}
.price-card .price-range small { font-size: 0.72rem; font-weight: 400; color: #9ca3af; display: block; margin-top: 4px; letter-spacing: 0; }
.price-card ul { margin-top: 14px; }
.price-card ul li {
    padding: 7px 0;
    font-size: 0.86rem;
    color: #4b5563;
    border-bottom: 1px solid #f3f4f6;
    padding-left: 20px;
    position: relative;
    line-height: 1.5;
}
.price-card ul li:last-child { border-bottom: none; }
.price-card ul li::before {
    content: '';
    position: absolute;
    left: 0; top: 13px;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #00aad2;
}

/* ===== DATA TABLE ===== */
.data-table {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    margin: 20px 0;
    font-size: 0.88rem;
}
.data-table thead th {
    background: #002c5f;
    color: #fff;
    padding: 13px 16px;
    font-size: 0.82rem;
    font-weight: 600;
    text-align: left;
    letter-spacing: 0.01em;
}
.data-table tbody td {
    padding: 12px 16px;
    font-size: 0.88rem;
    border-bottom: 1px solid #f3f4f6;
    color: #374151;
}
.data-table tbody tr:nth-child(even) { background: #f9fafb; }
.data-table tbody tr:hover { background: #eef4ff; }
.data-table tbody td strong { color: #111827; font-weight: 700; }

/* ===== USER TYPES ===== */
.user-types-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.user-type-card {
    background: #fff;
    border: 1px solid #eaecf0;
    border-radius: 14px;
    padding: 26px 22px;
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.user-type-card:hover {
    border-color: #00aad2;
    box-shadow: 0 8px 28px rgba(0,170,210,0.08);
    transform: translateY(-3px);
}
.user-type-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #eef4ff, #e0f2fe);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 14px;
}
.user-type-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}
.user-type-card p {
    font-size: 0.85rem;
    color: #6b7280;
    line-height: 1.6;
}

/* ===== COMPARISON ===== */
.comparison-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.comparison-box {
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    border: 1px solid #eaecf0;
    transition: all 0.3s;
}
.comparison-box.highlight {
    border-color: #00aad2;
    box-shadow: 0 0 0 1px #00aad2, 0 8px 28px rgba(0,170,210,0.08);
    position: relative;
}
.comparison-box.highlight::before {
    content: 'ELECTRIC';
    position: absolute;
    top: -10px; right: 24px;
    background: #00aad2;
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: 100px;
    letter-spacing: 0.08em;
}
.comparison-box h3 {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.02em;
}
.comparison-item {
    display: flex;
    justify-content: space-between;
    padding: 11px 0;
    border-bottom: 1px solid #f3f4f6;
    font-size: 0.88rem;
}
.comparison-item:last-child { border-bottom: none; }
.comparison-item span:first-child { color: #6b7280; }
.comparison-item span:last-child { font-weight: 700; color: #111827; }

/* ===== FAQ ===== */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
    border: 1px solid #eaecf0;
    border-radius: 12px;
    margin-bottom: 10px;
    overflow: hidden;
    background: #fff;
    transition: border-color 0.3s;
}
.faq-item.active { border-color: #00aad2; }
.faq-question {
    padding: 18px 24px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s;
    letter-spacing: -0.01em;
}
.faq-question:hover { background: #f9fafb; }
.faq-question::after {
    content: '+';
    font-size: 1.2rem;
    color: #9ca3af;
    transition: all 0.3s;
    flex-shrink: 0;
    margin-left: 16px;
    width: 28px; height: 28px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: #f3f4f6;
}
.faq-item.active .faq-question::after { content: '−'; background: #002c5f; color: #fff; }
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s;
}
.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 24px 20px;
}
.faq-answer p {
    font-size: 0.9rem;
    color: #4b5563;
    line-height: 1.7;
}

/* ===== REVIEWS SLIDER ===== */
.reviews-slider {
    overflow: hidden;
    position: relative;
}
.reviews-track {
    display: flex;
    gap: 16px;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}
.review-card {
    min-width: 310px;
    background: #fff;
    border: 1px solid #eaecf0;
    border-radius: 14px;
    padding: 24px;
    flex-shrink: 0;
    transition: all 0.3s;
}
.review-card:hover { border-color: #c8d6e5; box-shadow: 0 4px 16px rgba(0,0,0,0.04); }
.review-card .review-tag {
    display: inline-block;
    background: linear-gradient(135deg, #eef4ff, #e0f2fe);
    color: #002c5f;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 100px;
    margin-bottom: 12px;
    letter-spacing: 0.01em;
}
.review-card .review-text {
    font-size: 0.88rem;
    color: #374151;
    line-height: 1.7;
    margin-bottom: 14px;
}
.review-card .review-meta {
    font-size: 0.78rem;
    color: #9ca3af;
    font-weight: 500;
}
.slider-nav {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 24px;
}
.slider-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid #e5e7eb;
    background: #fff;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s;
    color: #6b7280;
}
.slider-btn:hover { border-color: #002c5f; color: #002c5f; background: #eef4ff; }

/* ===== CONSULTANT ===== */
.consultant-section { background: linear-gradient(180deg, #f0f6ff 0%, #f8fbff 100%); }
.consultant-card {
    max-width: 740px;
    margin: 0 auto;
    background: #fff;
    border-radius: 20px;
    padding: 48px 40px;
    border: 1px solid #e0e8f0;
    text-align: center;
    box-shadow: 0 8px 40px rgba(0,44,95,0.04);
}
.consultant-card h3 {
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 4px;
    letter-spacing: -0.03em;
}
.consultant-role {
    font-size: 0.88rem;
    color: #6b7280;
    margin-bottom: 8px;
}
.consultant-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 20px;
}
.consultant-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: linear-gradient(135deg, #eef4ff, #e0f2fe);
    color: #002c5f;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 100px;
    letter-spacing: -0.01em;
}
.consultant-info {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
}
.consultant-info-item {
    background: #f9fafb;
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 0.85rem;
    color: #374151;
    border: 1px solid #f3f4f6;
}
.consultant-buttons { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* ===== RELATED POSTS ===== */
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.related-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #eaecf0;
    transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.related-card:hover { box-shadow: 0 12px 32px rgba(0,0,0,0.06); transform: translateY(-4px); }
.related-card-img {
    height: 180px;
    background: linear-gradient(135deg, #002c5f, #004d8f);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.88rem;
    font-weight: 600;
}
.related-card-body { padding: 20px; }
.related-card-body h3 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 6px;
    line-height: 1.4;
    letter-spacing: -0.02em;
}
.related-card-body p {
    font-size: 0.82rem;
    color: #9ca3af;
    line-height: 1.55;
}

/* ===== FLOATING CTA ===== */
.floating-cta {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.floating-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 700;
    box-shadow: 0 6px 24px rgba(0,0,0,0.12);
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    letter-spacing: -0.01em;
}
.floating-btn-call { background: #002c5f; color: #fff; }
.floating-btn-sms { background: #00aad2; color: #fff; }
.floating-btn:hover { transform: translateY(-3px); box-shadow: 0 10px 32px rgba(0,0,0,0.18); }

/* ===== FOOTER ===== */
.site-footer {
    background: #0f1419;
    color: #9ca3af;
    padding: 56px 0 32px;
    font-size: 0.82rem;
    line-height: 1.8;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    margin-bottom: 32px;
}
.footer-section h4 {
    color: #e5e7eb;
    font-size: 0.88rem;
    font-weight: 700;
    margin-bottom: 14px;
    letter-spacing: -0.01em;
}
.footer-divider {
    border: none;
    border-top: 1px solid #1f2937;
    margin: 24px 0;
}
.footer-bottom {
    text-align: center;
    font-size: 0.75rem;
    color: #4b5563;
    line-height: 1.7;
}

/* ===== NOTICE BAR ===== */
.notice-bar {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-left: 4px solid #f59e0b;
    border-radius: 8px;
    padding: 14px 20px;
    font-size: 0.84rem;
    color: #92400e;
    margin: 24px 0;
    line-height: 1.6;
}

/* ===== BOTTOM CTA BAR ===== */
.bottom-cta {
    background: linear-gradient(135deg, #001a3a, #002c5f, #003d7a);
    padding: 56px 0;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.bottom-cta::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(0,170,210,0.12), transparent 70%);
}

/* ===== BLOG SINGLE ===== */
.single-content { max-width: 780px; margin: 0 auto; padding: 60px 24px; }
.single-content h1 { font-size: 2rem; font-weight: 900; margin-bottom: 14px; line-height: 1.3; letter-spacing: -0.03em; }
.single-meta { font-size: 0.82rem; color: #9ca3af; margin-bottom: 36px; }
.single-content h2 { font-size: 1.35rem; font-weight: 800; margin: 44px 0 16px; color: #002c5f; letter-spacing: -0.02em; }
.single-content h3 { font-size: 1.1rem; font-weight: 700; margin: 28px 0 12px; }
.single-content p { margin-bottom: 18px; font-size: 0.98rem; line-height: 1.85; color: #374151; }
.single-content ul, .single-content ol { margin: 16px 0; padding-left: 24px; }
.single-content ul { list-style: disc; }
.single-content ol { list-style: decimal; }
.single-content li { margin-bottom: 8px; font-size: 0.93rem; line-height: 1.7; color: #4b5563; }
.single-content table { margin: 20px 0; }
.single-content .notice-bar { margin: 28px 0; }
.single-cta {
    background: linear-gradient(135deg, #f0f6ff, #f8fbff);
    border: 1px solid #e0e8f0;
    border-radius: 16px;
    padding: 36px;
    text-align: center;
    margin: 44px 0;
}
.single-cta h3 { font-size: 1.1rem; font-weight: 800; margin-bottom: 8px; }
.single-cta p { font-size: 0.88rem; color: #6b7280; margin-bottom: 16px; }

/* ===== BREADCRUMB ===== */
.breadcrumb { padding: 14px 0; font-size: 0.8rem; color: #9ca3af; }
.breadcrumb a { color: #6b7280; }
.breadcrumb a:hover { color: #002c5f; }
.breadcrumb span { margin: 0 6px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .hero .container { flex-direction: column; text-align: center; padding-top: 48px; padding-bottom: 40px; }
    .hero-content { max-width: 100%; }
    .hero-desc { margin-left: auto; margin-right: auto; }
    .hero-points { justify-content: center; }
    .hero-buttons { justify-content: center; }
    .hero-image { max-width: 320px; margin-top: 20px; }
}

@media (max-width: 768px) {
    .hero h1 { font-size: 1.85rem; }
    .hero-desc { font-size: 0.92rem; }
    .hero-points { gap: 6px; }
    .hero-point { font-size: 0.78rem; padding: 7px 12px; }
    .hero-image { max-width: 260px; }
    .section { padding: 56px 0; }
    .section-title { font-size: 1.4rem; }
    .price-grid { grid-template-columns: 1fr; }
    .user-types-grid { grid-template-columns: 1fr 1fr; }
    .comparison-wrap { grid-template-columns: 1fr; }
    .related-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .header-nav { display: none; }
    .review-card { min-width: 270px; }
    .consultant-card { padding: 32px 20px; }
    .data-table { font-size: 0.8rem; }
    .data-table thead th, .data-table tbody td { padding: 10px 10px; }
    .floating-cta { bottom: 16px; right: 16px; }
    .floating-btn { padding: 10px 16px; font-size: 0.8rem; }
    .single-content h1 { font-size: 1.55rem; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 1.55rem; }
    .hero-image { max-width: 220px; }
    .btn-primary, .btn-secondary { padding: 11px 20px; font-size: 0.88rem; }
    .hero-buttons { flex-direction: column; align-items: stretch; }
    .hero-buttons a { justify-content: center; }
    .user-types-grid { grid-template-columns: 1fr; }
    .consultant-badges { gap: 6px; }
    .consultant-badge { font-size: 0.72rem; padding: 5px 10px; }
}
