
/* ============================================
   HOMEPAGE V2 - Clean Version
   ============================================ */

/* ---- HERO SLIDER ---- */
.hero-slider {
    position: relative;
    overflow: hidden;
    background: #1a1a2e;
    width: 100%;
}
.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transition: opacity 0.8s ease;
}
.hero-slide:first-child {
    position: relative;
}
.hero-slide.active {
    opacity: 1;
    z-index: 2;
}
.hero-slide a {
    display: block;
    width: 100%;
}
.hero-slide img {
    width: 100%;
    height: auto;
    display: block;
}

/* Default hero (when no banners in admin) */
.hero-default {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-mid) 50%, #2d1810 100%);
    padding: 60px 0;
}
.hero-default::before {
    content: '';
    position: absolute;
    top: -50%; right: -20%;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(230,57,70,0.15) 0%, transparent 70%);
    border-radius: 50%;
}
.hero-default .container { position: relative; z-index: 2; }
.hero-default .hero-content { max-width: 620px; }
.hero-tag {
    display: inline-block;
    background: rgba(255,107,53,0.2);
    color: var(--accent);
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 16px;
}
.hero-content h1 {
    color: #fff;
    font-size: 44px;
    font-weight: 800;
    line-height: 1.12;
    margin-bottom: 16px;
    letter-spacing: -1px;
}
.hero-content h1 span { color: var(--accent); }
.hero-content p {
    color: rgba(200,200,220,0.9);
    font-size: 17px;
    margin-bottom: 28px;
    line-height: 1.7;
}
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 46px; height: 46px;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(6px);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s;
}
.slider-btn:hover { background: var(--primary); border-color: var(--primary); }
.slider-prev { left: 20px; }
.slider-next { right: 20px; }

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}
.dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.35);
    cursor: pointer;
    transition: all 0.3s;
}
.dot.active { background: var(--accent); width: 28px; border-radius: 5px; }

/* ---- IMPROVED FEATURES BAR ---- */
.feature-icon {
    width: 48px; height: 48px;
    background: var(--bg-warm);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--accent);
    flex-shrink: 0;
}

/* ---- PROMO BANNER STRIP ---- */
.promo-strip { padding: 40px 0; }
.promo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.promo-card {
    position: relative;
    border-radius: var(--radius-lg);
    padding: 30px 24px;
    color: #fff;
    overflow: hidden;
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: transform 0.3s;
}
.promo-card:hover { transform: translateY(-4px); }
.promo-card-1 { background: linear-gradient(135deg, #e63946, #ff6b35); }
.promo-card-2 { background: linear-gradient(135deg, #1a1a2e, #16213e); }
.promo-card-3 { background: linear-gradient(135deg, #0f766e, #10b981); }
.promo-label {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    padding: 3px 12px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}
.promo-text h3 { font-size: 22px; font-weight: 700; margin-bottom: 4px; }
.promo-text p { font-size: 14px; opacity: 0.85; margin-bottom: 12px; }
.promo-emoji { font-size: 70px; opacity: 0.3; position: absolute; right: 16px; bottom: 10px; }

/* ---- WHY CHOOSE US ---- */
.why-section { background: var(--bg); }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.why-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 30px 24px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: all 0.3s;
}
.why-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent);
}
.why-icon {
    width: 64px; height: 64px;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, rgba(230,57,70,0.1), rgba(255,107,53,0.1));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: var(--primary);
}
.why-card h4 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.why-card p { font-size: 14px; color: var(--text-light); line-height: 1.6; }

/* ---- STATS SECTION ---- */
.stats-section {
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-mid) 100%);
    padding: 50px 0;
}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat-item { padding: 20px; }
.stat-number {
    font-size: 40px;
    font-weight: 800;
    color: var(--accent);
    font-family: var(--font-mono);
    line-height: 1;
    margin-bottom: 8px;
}
.stat-label { font-size: 15px; color: rgba(200,200,220,0.7); font-weight: 500; }

/* ---- CTA SECTION ---- */
.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    padding: 60px 0;
    text-align: center;
}
.cta-content h2 { color: #fff; font-size: 30px; font-weight: 800; margin-bottom: 12px; }
.cta-content p { color: rgba(255,255,255,0.85); font-size: 16px; margin-bottom: 24px; max-width: 600px; margin-left: auto; margin-right: auto; }
.cta-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---- TESTIMONIALS ---- */
.testimonials-section { background: var(--bg); }
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonial-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: all 0.3s;
    position: relative;
}
.testimonial-card::before {
    content: '\201C';
    position: absolute;
    top: 16px; right: 24px;
    font-size: 60px;
    font-family: Georgia, serif;
    color: var(--border-light);
    line-height: 1;
}
.testimonial-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.testimonial-stars { color: var(--warning); font-size: 14px; margin-bottom: 12px; letter-spacing: 2px; }
.testimonial-card p { font-size: 14px; color: var(--text-light); line-height: 1.7; margin-bottom: 16px; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
    width: 42px; height: 42px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
}
.testimonial-author strong { display: block; font-size: 14px; }
.testimonial-author span { font-size: 12px; color: var(--text-muted); }

/* ---- NEWSLETTER ---- */
.newsletter-section {
    background: var(--dark);
    padding: 50px 0;
}
.newsletter-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
}
.newsletter-text h3 { color: #fff; font-size: 22px; margin-bottom: 6px; }
.newsletter-text h3 i { color: var(--accent); margin-right: 8px; }
.newsletter-text p { color: #aaa; font-size: 14px; }
.newsletter-form {
    display: flex;
    gap: 8px;
    flex: 1;
    max-width: 440px;
}
.newsletter-form input {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.06);
    border-radius: 50px;
    color: #fff;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s;
}
.newsletter-form input:focus { border-color: var(--accent); }
.newsletter-form input::placeholder { color: #777; }

/* ---- SECTION HELPERS ---- */
.section-white { background: var(--bg-card); }

/* ---- NO IMAGE PLACEHOLDER ---- */
.no-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    color: var(--text-muted);
    font-size: 40px;
}
.no-image-placeholder span { font-size: 12px; margin-top: 4px; }

/* ---- MOBILE CALL BUTTON ---- */
.mobile-call-btn {
    display: none;
    position: fixed;
    bottom: 24px;
    left: 24px;
    width: 56px;
    height: 56px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 4px 20px rgba(230,57,70,0.4);
    z-index: 998;
    text-decoration: none;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
    .why-grid { grid-template-columns: repeat(2, 1fr); }
    .testimonial-grid { grid-template-columns: repeat(2, 1fr); }
    .promo-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .hero-slider { max-height: 300px; }
    .hero-slider img { max-height: 300px; object-fit: cover; }
    .slider-btn { display: none; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .stat-number { font-size: 30px; }
    .why-grid { grid-template-columns: 1fr; }
    .testimonial-grid { grid-template-columns: 1fr; }
    .newsletter-inner { flex-direction: column; text-align: center; }
    .newsletter-form { max-width: 100%; }
    .cta-content h2 { font-size: 24px; }
    .mobile-call-btn { display: flex; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-default .hero-content h1 { font-size: 30px; }
}

@media (max-width: 480px) {
    .hero-slider { max-height: 200px; }
    .hero-slider img { max-height: 200px; object-fit: cover; }
    .stats-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .newsletter-form { flex-direction: column; }
    .newsletter-form button { width: 100%; }
    .hero-default .hero-content h1 { font-size: 26px; }
}

/* ---- CATEGORY WITH IMAGES ---- */
.cat-card .cat-img {
    width: 80px;
    height: 80px;
    margin: 0 auto 12px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--border-light);
    transition: all 0.3s;
}
.cat-card:hover .cat-img {
    border-color: var(--accent);
    transform: scale(1.05);
}
.cat-card .cat-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ---- BRAND LOGOS WITH IMAGES ---- */
.brand-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 140px;
    height: 70px;
    padding: 10px 20px;
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border-light);
    transition: all 0.3s;
}
.brand-logo:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
}
.brand-logo img {
    max-width: 120px;
    max-height: 50px;
    object-fit: contain;
}
