/* ===== HOMEPAGE SCOPED STYLES (.hp-) ===== */

/* --- Hero Slider --- */
.hp-hero { position: relative; overflow: hidden; border-radius: 0 0 20px 20px; }
.hp-hero .carousel { position: relative; overflow: hidden; border-radius: 0 0 20px 20px; }
.hp-hero .carousel-inner { border-radius: 0 0 20px 20px; }
.hp-hero .carousel-indicators { bottom: 16px; }
.hp-hero .carousel-indicators button { width: 12px; height: 12px; border-radius: 50%; border: 2px solid #fff; background: transparent; opacity: 0.6; transition: all 0.3s; }
.hp-hero .carousel-indicators button.active { background: #e42313; border-color: #e42313; opacity: 1; transform: scale(1.2); }
.hp-hero .carousel-control-prev, .hp-hero .carousel-control-next { width: 50px; height: 50px; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.15); backdrop-filter: blur(8px); border-radius: 50%; margin: 0 16px; opacity: 1; transition: all 0.3s; z-index: 5; }
.hp-hero .carousel-control-prev:hover, .hp-hero .carousel-control-next:hover { background: rgba(228,35,19,0.8); }

/* --- Mobile CTA --- */
.hp-mobile-cta { display: block; background: linear-gradient(135deg, #e42313, #c91d0e); margin: 16px; text-align: center; font-weight: 700; color: #fff; text-decoration: none; line-height: 1.4; padding: 14px 20px; border-radius: 12px; font-size: 14px; box-shadow: 0 4px 15px rgba(228,35,19,0.3); transition: all 0.3s; }
.hp-mobile-cta:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 6px 25px rgba(228,35,19,0.4); }

/* --- Section Titles --- */
.hp-section-title { font-family: 'Roboto Condensed', sans-serif; font-size: 28px; font-weight: 700; color: #1a1a2e; position: relative; padding-bottom: 14px; margin-bottom: 8px; }
.hp-section-title::after { content: ''; position: absolute; left: 0; bottom: 0; width: 50px; height: 4px; background: linear-gradient(90deg, #e42313, #ff5733); border-radius: 2px; }
.hp-section-title.center::after { left: 50%; transform: translateX(-50%); }

/* --- Brands Section --- */
.hp-brands { padding: 40px 0 10px; }
.hp-brand-card { display: block; border-radius: 16px; overflow: hidden; position: relative; transition: all 0.4s cubic-bezier(0.25,0.46,0.45,0.94); box-shadow: 0 4px 20px rgba(0,0,0,0.08); }
.hp-brand-card:hover { transform: translateY(-6px); box-shadow: 0 12px 40px rgba(0,0,0,0.15); }
.hp-brand-card img { width: 100%; display: block; transition: transform 0.5s; }
.hp-brand-card:hover img { transform: scale(1.03); }

/* --- Feature Cards (Rozet) --- */
.hp-features { padding: 30px 0 40px; }
.hp-feature-card { background: #fff; border-radius: 16px; padding: 28px 22px; text-align: center; box-shadow: 0 4px 20px rgba(0,0,0,0.06); border: 1px solid rgba(0,0,0,0.04); transition: all 0.4s cubic-bezier(0.25,0.46,0.45,0.94); height: 100%; position: relative; overflow: hidden; }
.hp-feature-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, #e42313, #ff5733); transform: scaleX(0); transition: transform 0.4s; }
.hp-feature-card:hover { transform: translateY(-6px); box-shadow: 0 12px 40px rgba(0,0,0,0.1); }
.hp-feature-card:hover::before { transform: scaleX(1); }
.hp-feature-icon { width: 64px; height: 64px; margin: 0 auto 16px; }
.hp-feature-icon img { width: 100%; height: 100%; object-fit: contain; }
.hp-feature-card h3 { font-family: 'Roboto Condensed', sans-serif; font-size: 16px; font-weight: 700; color: #1a1a2e; margin-bottom: 10px; }
.hp-feature-card p { font-size: 13px; color: #666; line-height: 1.6; margin-bottom: 12px; }
.hp-feature-link { color: #e42313; text-decoration: none; font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; transition: gap 0.3s; }
.hp-feature-link:hover { color: #c91d0e; gap: 8px; }

/* --- Products Section --- */
.hp-products { padding: 50px 0; background: linear-gradient(180deg, #f8f9fb 0%, #fff 100%); position: relative; overflow: hidden; }
.hp-products .swiper-slide { padding: 10px 4px; }
.hp-product-box { background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 2px 16px rgba(0,0,0,0.05); border: 1px solid rgba(0,0,0,0.04); transition: all 0.4s; height: 100%; }
.hp-product-box:hover { transform: translateY(-6px); box-shadow: 0 12px 36px rgba(0,0,0,0.1); border-color: rgba(228,35,19,0.1); }
.hp-product-box a { text-decoration: none; color: #333; }
.hp-product-img { height: 200px; display: flex; align-items: center; justify-content: center; padding: 20px; background: #fafbfd; }
.hp-product-img img { max-height: 160px; max-width: 100%; object-fit: contain; transition: transform 0.4s; }
.hp-product-box:hover .hp-product-img img { transform: scale(1.06); }
.hp-product-info { padding: 16px 20px; min-height: 160px; }
.hp-product-info .title { font-family: 'Roboto Condensed', sans-serif; font-size: 15px; font-weight: 700; color: #1a1a2e; display: block; margin-bottom: 8px; text-transform: uppercase; }
.hp-product-info span { font-size: 13px; color: #666; line-height: 1.6; }

/* --- Security / Alarm Section --- */
.hp-security { padding: 60px 0; background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%); color: #fff; position: relative; overflow: hidden; margin: 40px 0; border-radius: 20px; }
.hp-security::before { content: ''; position: absolute; top: -50%; right: -10%; width: 500px; height: 500px; border-radius: 50%; background: radial-gradient(circle, rgba(228,35,19,0.15) 0%, transparent 70%); }
.hp-security img { border-radius: 16px; width: 100%; box-shadow: 0 8px 40px rgba(0,0,0,0.3); }
.hp-security h2 { font-family: 'Roboto Condensed', sans-serif; color: #e42313; font-weight: 700; font-size: 26px; margin-bottom: 16px; }
.hp-security p { color: rgba(255,255,255,0.85); line-height: 1.8; font-size: 15px; }
.hp-security ul { list-style: none; padding: 0; margin: 16px 0; }
.hp-security ul li { padding: 6px 0; color: rgba(255,255,255,0.9); font-size: 14px; display: flex; align-items: center; gap: 8px; }
.hp-security ul li::before { content: '✓'; display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; min-width: 22px; background: rgba(228,35,19,0.2); color: #e42313; border-radius: 50%; font-size: 12px; font-weight: 700; }
.hp-security .netelsan { color: #e42313; font-weight: 700; }
.hp-btn-light { display: inline-flex; align-items: center; gap: 8px; padding: 12px 28px; background: linear-gradient(135deg, #e42313, #c91d0e); color: #fff; border: none; border-radius: 12px; font-weight: 600; text-decoration: none; transition: all 0.3s; box-shadow: 0 4px 15px rgba(228,35,19,0.3); }
.hp-btn-light:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 6px 25px rgba(228,35,19,0.4); }

/* --- Dealer + News Section --- */
.hp-dealer-news { padding: 50px 0; }
.hp-dealer-box { background: #fff; border-radius: 16px; padding: 28px; box-shadow: 0 4px 20px rgba(0,0,0,0.06); }
.hp-dealer-box img { border-radius: 12px; margin-bottom: 20px; }
.hp-dealer-box label { font-weight: 600; color: #1a1a2e; border-bottom: 2px solid #f0f1f5; display: block; padding-bottom: 8px; margin-top: 12px; font-size: 14px; }
.hp-dealer-box select { border-radius: 10px; border: 2px solid #f0f1f5; padding: 10px 14px; width: 100%; font-size: 14px; transition: border-color 0.3s; appearance: auto; }
.hp-dealer-box select:focus { border-color: #e42313; outline: none; box-shadow: 0 0 0 3px rgba(228,35,19,0.1); }
.hp-dealer-box h4 { font-family: 'Roboto Condensed', sans-serif; font-size: 16px; font-weight: 700; color: #1a1a2e; margin-top: 20px; padding-bottom: 8px; border-bottom: 2px solid #f0f1f5; }

.hp-news-card { display: flex; background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,0.05); margin-bottom: 14px; text-decoration: none; color: #333; transition: all 0.3s; border: 1px solid transparent; }
.hp-news-card:hover { transform: translateX(4px); border-color: rgba(228,35,19,0.15); box-shadow: 0 6px 20px rgba(228,35,19,0.08); color: #333; }
.hp-news-cover { width: 120px; min-width: 120px; min-height: 110px; background-size: cover; background-position: center; }
.hp-news-body { padding: 14px 18px; flex: 1; }
.hp-news-body h5 { font-family: 'Roboto Condensed', sans-serif; font-size: 14px; font-weight: 700; color: #1a1a2e; margin-bottom: 6px; line-height: 1.3; }
.hp-news-body p { font-size: 13px; color: #777; margin: 0; line-height: 1.5; }

/* --- Blog Section --- */
.hp-blog { padding: 50px 0; background: #f8f9fb; border-radius: 20px; margin: 20px 0 40px; position: relative; overflow: hidden; }
.hp-blog-card { background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 2px 16px rgba(0,0,0,0.05); transition: all 0.4s; height: 420px; border: 1px solid rgba(0,0,0,0.04); }
.hp-blog-card:hover { transform: translateY(-6px); box-shadow: 0 12px 36px rgba(0,0,0,0.1); }
.hp-blog-card a { text-decoration: none; color: #333; }
.hp-blog-cover { height: 200px; background-size: cover; background-position: center; }
.hp-blog-body { padding: 20px; display: flex; flex-direction: column; height: 220px; }
.hp-blog-body h5 { font-family: 'Roboto Condensed', sans-serif; font-size: 15px; font-weight: 700; color: #e42313; margin-bottom: 10px; line-height: 1.3; }
.hp-blog-body p { font-size: 13px; color: #666; line-height: 1.6; flex: 1; }
.hp-blog-body .hp-btn-sm { margin-top: auto; }

/* --- Featured Blog --- */
.hp-featured-blog { padding: 50px 0; }
.hp-featured-blog img { border-radius: 16px; width: 100%; box-shadow: 0 8px 30px rgba(0,0,0,0.12); }
.hp-featured-blog h2 { font-family: 'Roboto Condensed', sans-serif; color: #e42313; font-weight: 700; font-size: 24px; }
.hp-featured-blog p { color: #555; line-height: 1.8; font-size: 15px; }

/* --- FAQ --- */
.hp-faq { padding: 50px 0 80px; }
.hp-faq .accordion-item { border: none; border-radius: 12px !important; margin-bottom: 12px; box-shadow: 0 2px 12px rgba(0,0,0,0.04); overflow: hidden; }
.hp-faq .accordion-button { font-family: 'Roboto Condensed', sans-serif; font-weight: 700; font-size: 15px; padding: 18px 24px; border-radius: 12px !important; }
.hp-faq .accordion-button:not(.collapsed) { background: linear-gradient(135deg, #e42313, #c91d0e) !important; color: #fff !important; border-radius: 12px 12px 0 0 !important; }
.hp-faq .accordion-body { padding: 20px 24px; font-size: 14px; color: #555; line-height: 1.8; }

/* --- Buttons --- */
.hp-btn { display: inline-flex; align-items: center; gap: 6px; padding: 10px 22px; background: linear-gradient(135deg, #e42313, #c91d0e); color: #fff; border: none; border-radius: 10px; font-size: 13px; font-weight: 600; text-decoration: none; transition: all 0.3s; box-shadow: 0 3px 12px rgba(228,35,19,0.25); }
.hp-btn:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 5px 20px rgba(228,35,19,0.35); }
.hp-btn-outline { display: inline-flex; align-items: center; gap: 6px; padding: 10px 22px; background: transparent; color: #e42313; border: 2px solid #e42313; border-radius: 10px; font-size: 13px; font-weight: 600; text-decoration: none; transition: all 0.3s; }
.hp-btn-outline:hover { background: #e42313; color: #fff; }

/* --- Animations --- */
.hp-fade-up { opacity: 0; transform: translateY(30px); transition: all 0.6s cubic-bezier(0.25,0.46,0.45,0.94); }
.hp-fade-up.hp-visible { opacity: 1; transform: translateY(0); }

/* --- Swiper Overrides (scoped) --- */
.hp-products .swiper-pagination-bullet-active,
.hp-blog .swiper-pagination-bullet-active { background: #e42313 !important; }
.hp-products .swiper-button-next_, .hp-products .swiper-button-prev_,
.hp-blog .swiper-button-next, .hp-blog .swiper-button-prev { color: #e42313 !important; }

/* --- Responsive --- */
@media (max-width: 767px) {
    .hp-section-title { font-size: 22px; }
    .hp-security { padding: 40px 20px; margin: 20px 0; border-radius: 12px; }
    .hp-security h2 { font-size: 22px; }
    .hp-news-cover { width: 90px; min-width: 90px; }
    .hp-feature-card { padding: 20px 16px; }
    .hp-hero .carousel-control-prev, .hp-hero .carousel-control-next { display: none; }
    .hp-blog { border-radius: 12px; padding: 30px 0; }
}
