/* ──────────────────────────────────────
   Home Page — Hyundai Bio
   ────────────────────────────────────── */

/* ===== Hero Slider ===== */

/* 이미지 없을 때 슬라이드별 그라디언트 폴백 */
.slide-bg-1 { background-color: #0a2540; }
.slide-bg-2 { background-color: #0d3b63; }
.slide-bg-3 { background-color: #0f2e44; }

/* em 강조 색상 */
.slide-title em {
    font-style: normal;
    color: var(--accent);
}

/* ===== Shared home section ===== */
.home-section { padding: 100px 0; }
.home-section--light { background: var(--bg-light); }
.home-section--dark {
    background: linear-gradient(135deg, var(--text-dark) 0%, #0f3460 100%);
    color: #fff;
}
.home-section-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 36px;
}
.home-section-title {
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    font-weight: 800;
    color: var(--text-dark);
    margin: 0;
}
.home-section--dark .home-section-title { color: #fff; }
.home-section-more {
    font-size: .875rem;
    font-weight: 700;
    color: var(--primary);
}
.home-section--dark .home-section-more { color: var(--secondary); }

/* ===== Brand intro ===== */
.brand-intro-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    align-items: stretch;
}
.brand-intro-item {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 32px 28px;
    background: var(--bg-light);
    border-radius: 16px;
    border: 1px solid var(--bg-light);
    transition: box-shadow var(--transition), transform var(--transition);
    min-height: 250px;
}
.brand-intro-item:hover { box-shadow: 0 8px 32px rgba(0,45,98,.12); transform: translateY(-4px); }

/* 흰 배경 + 보더 카드 */
.brand-intro-item--white {
    background: var(--white, #fff);
    border: 1px solid var(--border, #e5eef5);
}

/* 이미지 카드 */
.brand-intro-item--image {
    padding: 0;
    overflow: hidden;
    border: none;
}
.brand-intro-item--image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 16px;
}

/* 텍스트 블록 — 상단 */
.bi-text { flex: 1; }
.bi-text h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.4;
    margin: 0 0 8px;
}
.bi-text p {
    font-size: .875rem;
    color: var(--text-mid);
    line-height: 1.65;
    margin: 0;
}

/* 아이콘 — 우하단 */
.bi-icon {
    width: 72px; height: 72px;
    border-radius: 50%;
    background: linear-gradient(270deg, #0089CF 0%, #014DA2 100%);
    color: var(--white);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.7rem;
    align-self: flex-end;
    margin-top: 24px;
    flex-shrink: 0;
    box-shadow: 0 4px 16px rgba(0, 45, 98, .12);
}

/* ===== Featured Products Slider ===== */
.featured-products-section { overflow: hidden; background: var(--bg-light);}

.featured-products-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 28px;
}
.featured-products-sub {
    font-size: .9rem;
    color: var(--text-mid);
    margin: 6px 0 0;
}
.featured-products-nav { display: flex; gap: 8px; }
.fp-nav-btn {
    width: 40px; height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--white);
    color: var(--text-dark);
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: .85rem;
    transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.fp-nav-btn:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.fp-swiper-wrap { padding: 0 calc((100vw - 1400px) / 2); }
.fp-swiper { overflow: visible; }

.fp-card {
    display: block;
    text-decoration: none;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 1 / 1;
}
.fp-card-img {
    width: 100%; height: 100%;
    position: absolute; inset: 0;
}
.fp-card-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .5s ease;
}
.fp-card-placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    font-size: 3rem; color: rgba(255,255,255,.2);
    background: linear-gradient(135deg, #1a1a2e, #0d3b63);
}
.fp-card:hover .fp-card-img img { transform: scale(1.05); }

.fp-card-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 40px 20px 20px;
    background: linear-gradient(to top, rgba(0, 45, 98, .60) 0%, rgba(0, 45, 98, .30) 45%, transparent 100%);
    color: #fff;
}
.fp-card-brand {
    font-size: .72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--secondary);
    margin: 0 0 4px;
}
.fp-card-name {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    margin: 0;
    line-height: 1.3;
}

/* ===== Product grid home (기타 페이지용) ===== */
.home-product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.product-brand-small {
    font-size: .72rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: .06em;
    margin: 0 0 4px;
}

/* ===== News grid home ===== */
.home-news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* ===== Blog grid home ===== */
.home-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* ===== Global preview ===== */
.global-preview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.global-preview-title {
    font-size: clamp(1.6rem, 3vw, 2.5rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    margin: 12px 0 16px;
}
.global-preview-sub {
    font-size: 1rem;
    color: rgba(255,255,255,.75);
    line-height: 1.7;
    margin: 0 0 32px;
}
.global-map-img { 
    width: 100%; 
    border-radius: 10px;
    }
    
.global-map-placeholder {
    height: 300px;
    background: rgba(255,255,255,.05);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: rgba(255,255,255,.2);
}

/* ===== CTA section ===== */
.home-cta-section {
    background: var(--primary-light) url('../../images/home/cta_bg.jpg') center/cover no-repeat;
    position: relative;
}
.home-cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(246, 226, 144, .75);
}
.home-cta-section .section-inner { position: relative; }
.home-cta-inner { text-align: center; }
.home-cta-title {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    color: var(--text-dark);
    margin: 0 0 14px;
}
.home-cta-sub {
    font-size: 1rem;
    color: var(--text-mid);
    line-height: 1.7;
    margin: 0 auto 32px;
    max-width: 540px;
}
.home-cta-btns { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }

/* ===== Responsive ===== */
@media (max-width: 1100px) {
    .home-product-grid { grid-template-columns: repeat(3, 1fr); }
    .brand-intro-grid { grid-template-columns: repeat(2, 1fr); }
    .brand-intro-item--image { min-height: 200px; }
    .fp-swiper-wrap { padding: 0 20px; }
}
@media (max-width: 768px) {
    .home-product-grid, .home-news-grid, .home-blog-grid { grid-template-columns: repeat(2, 1fr); }
    .global-preview { grid-template-columns: 1fr; gap: 32px; }
    .home-section-head { flex-direction: column; gap: 8px; }
    .brand-intro-item { min-height: 180px; }
}
@media (max-width: 480px) {
    .home-product-grid { grid-template-columns: 1fr; }
    .home-news-grid, .home-blog-grid { grid-template-columns: 1fr; }
    .brand-intro-grid { grid-template-columns: 1fr; }
    .brand-intro-item--image { min-height: 220px; }
}
