/* homepage.css — JP Spare Parts Plugin
 * Extracted from mu-plugins/jpspareparts-homepage.php (inline <style> block)
 * Loaded on is_front_page() via class-assets.php (handle: jps-homepage)
 *
 * NOTE: .jps-floating-contact styles are extracted to global.css (site-wide),
 * because the floating buttons are injected on every page via wp_footer.
 */

/* Homepage content wrapper — full width, sections self-center */
.jps-homepage-content {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
}
/* Non-hero sections: center with max-width */
.jps-homepage-content .jps-brands,
.jps-homepage-content .jps-categories,
.jps-homepage-content .jps-advantages,
.jps-homepage-content .jps-cta-bottom {
    box-sizing: border-box;
}

/* Hero Section */
.jps-hero {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}
.jps-hero::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(1, 22, 39, 0.75);
    z-index: 1;
}
.jps-hero-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
}
.jps-hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 60px 20px;
}
.jps-hero h1 {
    color: #fff;
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}
.jps-hero .jps-hero-sub {
    color: rgba(255,255,255,0.9);
    font-size: 1.15rem;
    line-height: 1.6;
    margin-bottom: 16px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}
.jps-hero .jps-hero-value {
    color: #ff6b35;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 36px;
}
.jps-hero-btns {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}
.jps-btn {
    display: inline-flex;
    align-items: center;
    padding: 14px 36px;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}
.jps-btn-primary {
    background: #ff6b35;
    color: #fff;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
}
.jps-btn-primary:hover {
    background: #e55a2b;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.5);
}
.jps-btn-outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.6);
}
.jps-btn-outline:hover {
    background: #fff;
    color: #011627;
    border-color: #fff;
    transform: translateY(-2px);
}

/* Brand Wall */
.jps-brands {
    padding: 60px 20px;
    background: #f9f8f8;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}
.jps-section-title {
    font-size: 2rem;
    font-weight: 800;
    color: #011627;
    margin-bottom: 12px;
    text-align: center;
}
.jps-section-desc {
    color: #666;
    font-size: 1.05rem;
    margin-bottom: 40px;
    text-align: center;
}
.jps-brands-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}
.jps-brand-card {
    background: #fff;
    border-radius: 10px;
    padding: 40px 20px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
}
.jps-brand-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}
.jps-brand-name {
    font-size: 1.6rem;
    font-weight: 800;
    color: #011627;
    margin-bottom: 8px;
    letter-spacing: 1px;
}
.jps-brand-count {
    color: #ff6b35;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Product Categories */
.jps-categories {
    padding: 60px 20px;
    background: #fff;
    max-width: 1200px;
    margin: 0 auto;
}
.jps-cat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    max-width: 1140px;
    margin: 0 auto;
}
.jps-cat-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}
.jps-cat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}
.jps-cat-card:nth-child(4),
.jps-cat-card:nth-child(5) {
    grid-column: span 1;
}
.jps-cat-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    background: #f0f0f0;
}
.jps-cat-body {
    padding: 24px;
}
.jps-cat-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #011627;
    margin-bottom: 8px;
}
.jps-cat-desc {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 16px;
}
.jps-cat-btn {
    display: inline-block;
    color: #ff6b35;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.3s;
}
.jps-cat-btn:hover {
    color: #e55a2b;
}

/* Advantages */
.jps-advantages {
    padding: 60px 20px;
    background: #011627;
    text-align: center;
    max-width: 100%;
    margin: 0;
}
.jps-advantages .jps-section-title {
    color: #fff;
}
.jps-advantages .jps-section-desc {
    color: rgba(255,255,255,0.7);
}
.jps-adv-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1140px;
    margin: 0 auto;
}
.jps-adv-item {
    text-align: center;
}
.jps-adv-number {
    font-size: 2.8rem;
    font-weight: 800;
    color: #ff6b35;
    line-height: 1;
    margin-bottom: 10px;
}
.jps-adv-label {
    color: rgba(255,255,255,0.85);
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.4;
}

/* Bottom CTA */
.jps-cta-bottom {
    padding: 80px 20px;
    background: linear-gradient(135deg, #011627 0%, #0a2540 100%);
    text-align: center;
    max-width: 100%;
    margin: 0;
}
.jps-cta-bottom h2 {
    color: #fff;
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 16px;
}
.jps-cta-bottom p {
    color: rgba(255,255,255,0.8);
    font-size: 1.1rem;
    margin-bottom: 36px;
}

/* Responsive */
@media (max-width: 1024px) {
    .jps-hero h1 { font-size: 2.2rem; }
    .jps-cat-grid { grid-template-columns: repeat(2, 1fr); }
    .jps-adv-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}
@media (max-width: 767px) {
    .jps-hero { min-height: 500px; }
    .jps-hero h1 { font-size: 1.7rem; }
    .jps-hero .jps-hero-sub { font-size: 1rem; }
    .jps-hero-btns { flex-direction: column; align-items: stretch; }
    .jps-btn { text-align: center; justify-content: center; }
    .jps-brands-grid { grid-template-columns: 1fr; }
    .jps-cat-grid { grid-template-columns: 1fr; }
    .jps-adv-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .jps-adv-number { font-size: 2rem; }
    .jps-section-title { font-size: 1.5rem; }
}

/* ===== Visible homepage disclaimer (below hero, above the fold) ===== */
.jps-home-disclaimer {
    max-width: 1140px;
    margin: 24px auto;
    padding: 14px 20px;
    background: #fff8f3;
    border: 1px solid #ffd9c2;
    border-left: 4px solid #ff6b35;
    border-radius: 6px;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #5a3a2a;
    text-align: left;
}
.jps-home-disclaimer strong { color: #011627; }
