/* ============================================
   HAVRAZ — Homepage styles (index context)
   Loaded via headers.php pageCssMap: index => home.css
   Colors & tokens follow glob.css / cars.css
   ============================================ */

/* ================= HERO (from cars.css hero) ================= */
.home-hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    padding: 4.5rem 1rem 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.home-hero::before, .home-hero::after {
    content: ''; position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.35;
}
.home-hero::before { width: 420px; height: 420px; background: #e63946; top: -160px; right: -120px; }
.home-hero::after { width: 380px; height: 380px; background: #2a9d8f; bottom: -160px; left: -120px; }

.home-hero-content { max-width: 760px; margin: 0 auto; position: relative; z-index: 1; }

.home-hero-badge {
    display: inline-flex; align-items: center; gap: 0.4rem;
    background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.15);
    color: #f4a261; padding: 0.45rem 1rem; border-radius: 50px;
    font-size: 0.8rem; font-weight: 600; margin-bottom: 1.25rem;
}
.home-hero-badge i { color: #ffd700; font-size: 0.7rem; }

.home-hero-title {
    font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; color: #fff;
    line-height: 1.15; margin-bottom: 1rem; letter-spacing: -1px;
}
.home-gradient-text {
    background: linear-gradient(135deg, #f4a261 0%, #e63946 100%);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}
.home-hero-subtitle {
    font-size: 1.05rem; color: rgba(255,255,255,0.7);
    margin: 0 auto 2rem; max-width: 560px;
}
.home-hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.home-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 13px 26px; border-radius: 50px; font-size: 0.92rem; font-weight: 600;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1); white-space: nowrap;
}
.home-btn-primary {
    background: linear-gradient(135deg, #f4a261 0%, #e63946 100%);
    color: #fff; box-shadow: 0 4px 14px rgba(230,57,70,0.3);
}
.home-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(230,57,70,0.4); color: #fff; }
.home-btn-ghost {
    background: rgba(255,255,255,0.12); color: #fff;
    border: 1px solid rgba(255,255,255,0.25);
}
.home-btn-ghost:hover { background: rgba(255,255,255,0.22); color: #fff; }
.home-btn i { font-size: 0.8rem; }

.home-hero-stats {
    display: flex; gap: 2.5rem; justify-content: center; margin-top: 3rem; flex-wrap: wrap;
}
.home-stat-num { font-size: 1.6rem; font-weight: 800; color: #fff; line-height: 1.2; }
.home-stat-num em { font-style: normal; color: #f4a261; }
.home-stat-label { font-size: 0.78rem; color: rgba(255,255,255,0.55); font-weight: 500; }

/* ================= CATEGORY SECTIONS ================= */
.home-sections { padding: 4.5rem 0 1rem; }

.home-section-head { text-align: center; margin-bottom: 2.75rem; }
.home-section-tag {
    display: inline-block; padding: 6px 16px; border-radius: 50px;
    background: rgba(230,57,70,0.08); color: #e63946;
    font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 1px; margin-bottom: 12px;
}
.home-section-title { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; color: #1a1a2e; letter-spacing: -0.5px; }
.home-section-sub { color: #6b7280; font-size: 0.95rem; margin-top: 8px; }

.home-section-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding-bottom: 3.5rem;
}
.home-section-card {
    background: #ffffff; border-radius: 16px;
    border: 1px solid #f3f4f6;
    padding: 28px 24px; transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative; overflow: hidden; display: block;
}
.home-section-card::after {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
    background: var(--card-accent, #e63946);
    opacity: 0; transition: all 0.25s ease;
}
.home-section-card:hover { transform: translateY(-6px); box-shadow: 0 12px 40px rgba(0,0,0,0.12); border-color: #e5e7eb; text-decoration: none; }
.home-section-card:hover::after { opacity: 1; }

.home-card-icon {
    width: 56px; height: 56px; border-radius: 16px;
    display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
    background: color-mix(in srgb, var(--card-accent, #e63946) 12%, #ffffff);
    color: var(--card-accent, #e63946); font-size: 1.4rem;
}
.home-section-card h3 { font-size: 1.1rem; font-weight: 700; color: #1a1a2e; margin-bottom: 6px; }
.home-section-card p { font-size: 0.87rem; color: #6b7280; margin-bottom: 18px; min-height: 42px; }
.home-card-link {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 0.85rem; font-weight: 700; color: var(--card-accent, #e63946);
    transition: gap 0.2s ease;
}
.home-section-card:hover .home-card-link { gap: 10px; }

/* ================= FEATURES STRIP ================= */
.home-features {
    background: #ffffff; border-top: 1px solid #f3f4f6; border-bottom: 1px solid #f3f4f6;
    padding: 3.5rem 0;
}
.home-features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.home-feature { display: flex; gap: 16px; align-items: flex-start; }
.home-feature-icon {
    width: 46px; height: 46px; flex-shrink: 0; border-radius: 12px;
    background: #f8f9fa; display: flex; align-items: center; justify-content: center;
    color: #e63946; font-size: 1.1rem;
}
.home-feature h4 { font-size: 0.98rem; font-weight: 700; color: #1a1a2e; margin-bottom: 4px; }
.home-feature p { font-size: 0.85rem; color: #6b7280; }

/* ================= VENDOR CTA ================= */
.home-cta-band { padding: 4.5rem 0; }
.home-cta-box {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    border-radius: 20px; padding: 3.5rem 2rem; text-align: center;
    position: relative; overflow: hidden;
}
.home-cta-box::before {
    content: ''; position: absolute; width: 300px; height: 300px; border-radius: 50%;
    background: #e63946; filter: blur(100px); opacity: 0.3; top: -100px; left: -80px;
}
.home-cta-box h2 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 800; color: #fff; margin-bottom: 10px; position: relative; }
.home-cta-box p { color: rgba(255,255,255,0.7); font-size: 0.95rem; margin-bottom: 1.75rem; position: relative; }
.home-cta-box .home-btn { position: relative; }

/* ================= ANIMATIONS ================= */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
}

/* ================= RESPONSIVE ================= */
@media (max-width: 960px) {
    .home-section-grid { grid-template-columns: repeat(2, 1fr); }
    .home-features-grid { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 640px) {
    .home-section-grid { grid-template-columns: 1fr; }
    .home-hero { padding: 3.5rem 1rem 3rem; }
    .home-hero-stats { gap: 1.5rem; }
}
