/* =============================================
   DURANTE ELECTRIC — CUSTOM STYLES
   Additions and overrides on top of theme CSS
   ============================================= */

/* Emergency Bar */
.emergency-bar {
    background: #8B0000;
    color: #fff;
    padding: 8px 0;
    text-align: center;
    font-size: 14px;
}
.emergency-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}
.emergency-label { font-weight: 500; }
.emergency-label i { margin-right: 6px; }
.emergency-call {
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    background: rgba(255,255,255,0.15);
    padding: 4px 14px;
    border-radius: 20px;
    transition: background 0.2s;
}
.emergency-call:hover { background: rgba(255,255,255,0.25); color: #fff; }
.emergency-call i { margin-right: 5px; }

/* Hero text — force white on all slides */
.banner-section .content-box h1,
.banner-section .content-box h2,
.banner-section .content-box p {
    color: #fff !important;
}

/* Hero CTA Buttons */
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 28px; }
.hero-badge {
    display: inline-block;
    background: rgba(139,0,0,0.85);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 20px;
    letter-spacing: 0.03em;
    margin-bottom: 20px;
}

/* CTA Banner */
.cta-banner {
    background: linear-gradient(135deg, #8B0000 0%, #5a0000 100%);
    padding: 60px 0;
}
.cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
}
.cta-text h3 { color: #fff; font-size: 28px; margin: 0 0 8px; }
.cta-text p  { color: rgba(255,255,255,0.85); margin: 0; font-size: 15px; }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; flex-shrink: 0; }
.btn-two {
    background: transparent;
    border: 2px solid #fff;
    color: #fff !important;
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.25s;
    display: inline-block;
}
.btn-two:hover { background: #fff; color: #8B0000 !important; }

/* Testimonials */
.testimonial-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-top: 3px solid #8B0000;
    border-radius: 6px;
    padding: 28px 24px;
    margin-bottom: 30px;
    height: calc(100% - 30px);
}
.testimonial-card .stars { color: #f5a623; font-size: 18px; margin-bottom: 14px; }
.testimonial-card p { font-style: italic; color: #555; margin-bottom: 16px; line-height: 1.7; }
.testimonial-card cite { font-size: 13px; color: #8B0000; font-weight: 600; font-style: normal; }

/* Credentials Box */
.credentials-box {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    background: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 6px;
    padding: 20px;
}
.credential-item { display: flex; align-items: center; gap: 12px; }
.credential-item i { font-size: 24px; color: #8B0000; flex-shrink: 0; }
.credential-item strong { display: block; font-size: 13px; color: #333; font-weight: 600; }
.credential-item span  { font-size: 12px; color: #666; }

/* About Why Cards */
.about-why-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 28px 24px;
    margin-bottom: 30px;
}
.about-why-card i { font-size: 36px; color: #8B0000; margin-bottom: 16px; display: block; }
.about-why-card h4 { font-size: 18px; margin-bottom: 16px; }

/* Service Detail Styles */
.service-detail-content h2 { font-size: 32px; margin-bottom: 20px; }
.service-detail-content h4 { font-size: 18px; color: #8B0000; margin: 24px 0 12px; }
.service-detail-content p  { line-height: 1.8; margin-bottom: 16px; color: #555; }
.service-inline-cta {
    background: #f5f5f5;
    border-left: 4px solid #8B0000;
    padding: 28px 24px;
    border-radius: 0 6px 6px 0;
}
.service-inline-cta h4 { margin: 0 0 10px; }
.service-inline-cta p  { margin-bottom: 20px; }
.service-nav { display: flex; justify-content: space-between; gap: 16px; }
.service-nav-link {
    display: inline-flex; align-items: center; gap: 8px;
    color: #8B0000; font-weight: 600; text-decoration: none; font-size: 14px;
    padding: 10px 16px; border: 1px solid #8B0000; border-radius: 4px;
    transition: all 0.2s;
}
.service-nav-link:hover { background: #8B0000; color: #fff; }

/* Sidebar */
.service-sidebar { position: sticky; top: 100px; }
.sidebar-widget { background: #fff; border: 1px solid #e8e8e8; border-radius: 8px; padding: 24px; margin-bottom: 24px; }
.sidebar-widget .widget-title h3 { font-size: 18px; margin: 0 0 20px; padding-bottom: 12px; border-bottom: 2px solid #8B0000; }
.services-sidebar-list { list-style: none; padding: 0; margin: 0; }
.services-sidebar-list li { border-bottom: 1px solid #f0f0f0; }
.services-sidebar-list li a { display: flex; align-items: center; gap: 10px; padding: 10px 0; color: #555; text-decoration: none; font-size: 14px; transition: color 0.2s; }
.services-sidebar-list li a:hover, .services-sidebar-list li.active a { color: #8B0000; font-weight: 600; }
.services-sidebar-list li a i { color: #8B0000; font-size: 12px; }
.contact-widget-body ul { list-style: none; padding: 0; margin: 0 0 16px; }
.contact-widget-body li { display: flex; align-items: center; gap: 10px; padding: 8px 0; font-size: 14px; color: #555; border-bottom: 1px solid #f0f0f0; }
.contact-widget-body li i { color: #8B0000; width: 16px; flex-shrink: 0; }
.contact-widget-body a { color: #555; text-decoration: none; }
.contact-widget-body a:hover { color: #8B0000; }
.trust-sidebar-list { list-style: none; padding: 0; margin: 0; }
.trust-sidebar-list li { display: flex; align-items: center; gap: 10px; padding: 8px 0; font-size: 14px; color: #555; border-bottom: 1px solid #f0f0f0; }
.trust-sidebar-list li i { color: #8B0000; width: 16px; flex-shrink: 0; }

/* Contact Page */
.contact-info .info-list { list-style: none; padding: 0; margin: 20px 0; }
.contact-info .info-list li { display: flex; align-items: flex-start; gap: 12px; padding: 10px 0; border-bottom: 1px solid #f0f0f0; font-size: 14px; color: #555; }
.contact-info .info-list li i { color: #8B0000; margin-top: 2px; flex-shrink: 0; }
.contact-info .info-list a { color: #555; text-decoration: none; }
.contact-info .info-list a:hover { color: #8B0000; }
.contact-trust p { font-size: 13px; color: #666; display: flex; align-items: center; gap: 8px; margin: 6px 0; }
.contact-trust i { color: #8B0000; }
.form-inner h3 { margin-bottom: 24px; }
.form-group select {
    width: 100%; height: 55px; border: 1px solid #e8e8e8; border-radius: 4px;
    padding: 0 16px; font-size: 14px; color: #666; background: #fff;
    margin-bottom: 20px;
}
.form-note { font-size: 12px; color: #888; margin-top: 14px; }
.form-note a { color: #8B0000; }
.form-errors { background: #fff3f3; border: 1px solid #f5c6c6; border-radius: 6px; padding: 16px 20px; margin-bottom: 24px; }
.form-errors ul { margin: 0; padding-left: 20px; color: #c00; font-size: 14px; }
.form-error-msg { background: #fff3f3; border: 1px solid #f5c6c6; border-radius: 6px; padding: 16px 20px; margin-bottom: 24px; color: #c00; }
.contact-success { text-align: center; padding: 60px 20px; }
.contact-success .success-icon { font-size: 60px; color: #28a745; margin-bottom: 20px; }
.contact-success h3 { font-size: 28px; margin-bottom: 16px; }
.contact-success p { color: #555; font-size: 16px; }
.contact-success a { color: #8B0000; font-weight: 600; }

/* Areas Served */
.areas-grid { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.area-tag {
    background: #fff; border: 1px solid #e8e8e8; border-radius: 20px;
    padding: 8px 16px; font-size: 14px; color: #555;
    transition: all 0.2s;
}
.area-tag:hover { background: #8B0000; color: #fff; border-color: #8B0000; }
.area-tag i { color: #8B0000; margin-right: 6px; font-size: 11px; }
.area-tag:hover i { color: #fff; }

/* Gallery page */
.gallery-item { position: relative; overflow: hidden; border-radius: 6px; }
.gallery-overlay {
    position: absolute; inset: 0; background: rgba(139,0,0,0.7);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: opacity 0.3s;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay i { color: #fff; font-size: 28px; }
.featured-project-card { position: relative; overflow: hidden; border-radius: 8px; }
.project-overlay {
    position: absolute; bottom: 0; left: 0; right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    padding: 20px 16px 14px;
}
.project-overlay span { color: #fff; font-weight: 600; font-size: 15px; }

/* Footer Enhancements */
.footer-trust-badges { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.badge-item { font-size: 13px; color: #aaa; display: flex; align-items: center; gap: 8px; }
.badge-item i { color: #8B0000; }
.footer-cta { margin-top: 20px; }
.footer-widget .info-list { list-style: none; padding: 0; margin: 0; }
.footer-widget .info-list li { display: flex; align-items: flex-start; gap: 10px; padding: 8px 0; font-size: 14px; color: #aaa; border-bottom: 1px solid rgba(255,255,255,0.06); }
.footer-widget .info-list li i { color: #8B0000; margin-top: 2px; flex-shrink: 0; }
.footer-widget .info-list a { color: #aaa; text-decoration: none; }
.footer-widget .info-list a:hover { color: #fff; }

/* Error page */
.error-content { padding: 80px 20px; }

/* Working section — fix image to match original circular style */
.working-section .image-box img {
    border-radius: 50% !important;
    width: 300px !important;
    height: 300px !important;
    object-fit: cover;
    display: block;
    margin: 0 auto;
}

/* Responsive */
@media (max-width: 768px) {
    .cta-inner { flex-direction: column; text-align: center; }
    .service-nav { flex-direction: column; }
    .credentials-box { flex-direction: column; }
    .hero-cta { justify-content: center; }
    .ml_15 { margin-left: 0; margin-top: 12px; }
}
