/* ========================================
   ZESCO UAE - Modern Stylesheet
   ======================================== */

:root {
    --primary: #1a2e5a;
    --primary-light: #2a4a8a;
    --accent: #e8a020;
    --accent-hover: #d4900a;
    --dark: #0f1b38;
    --light-bg: #f5f7fa;
    --text: #333;
    --text-light: #6c757d;
    --white: #ffffff;
    --shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.12);
    --radius: 12px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text);
    line-height: 1.7;
    background: var(--white);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: var(--primary);
}

/* ---- Top Bar ---- */
.top-bar {
    background: var(--dark);
    color: rgba(255, 255, 255, 0.85);
    padding: 8px 0;
    font-size: 0.85rem;
}

.top-bar i {
    color: var(--accent);
}

/* ---- Navbar ---- */
.navbar {
    background: var(--primary);
    padding: 0.6rem 0;
    box-shadow: var(--shadow);
    z-index: 1000;
}

.navbar .brand-text {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: 1px;
}

.navbar .nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    border-radius: 6px;
    transition: var(--transition);
    font-size: 0.95rem;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: var(--white) !important;
    background: rgba(255, 255, 255, 0.12);
}

/* ---- Hero / Carousel ---- */
.hero-carousel {
    position: relative;
    overflow: hidden;
}

.hero-carousel .carousel-item img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    filter: brightness(0.7);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    text-align: center;
    padding: 2rem;
}

.hero-overlay h1 {
    color: var(--white);
    font-size: 2.8rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    margin-bottom: 1rem;
}

.hero-overlay p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.15rem;
    max-width: 700px;
    margin: 0 auto;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.4);
}

.carousel-control-prev,
.carousel-control-next {
    z-index: 3;
    width: 5%;
}

.carousel-indicators {
    z-index: 3;
}

@media (max-width: 768px) {
    .hero-carousel .carousel-item img {
        height: 300px;
    }
    .hero-overlay h1 {
        font-size: 1.8rem;
    }
    .hero-overlay p {
        font-size: 0.95rem;
    }
}

/* ---- Section Styles ---- */
.section {
    padding: 60px 0;
}

.section-light {
    background: var(--light-bg);
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.2rem;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
}

.section-title p {
    color: var(--text-light);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 1rem auto 0;
}

/* ---- Cards ---- */
.card-modern {
    border: none;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    overflow: hidden;
    height: 100%;
}

.card-modern:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.card-modern .card-body {
    padding: 1.5rem;
}

.card-modern .card-title {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

/* ---- Product Cards ---- */
.product-card {
    text-decoration: none;
    color: inherit;
    display: block;
}

.product-card:hover {
    color: inherit;
}

.product-card .card-modern {
    text-align: center;
}

.product-card .product-icon {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 3px solid var(--accent);
}

.product-card .card-body h5 {
    color: var(--primary);
    font-weight: 600;
}

/* ---- Partner Cards ---- */
.partner-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
}

.partner-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.partner-card img {
    max-height: 60px;
    max-width: 200px;
    object-fit: contain;
    margin-bottom: 1rem;
}

.partner-card h5 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.partner-card p {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* ---- Feature Boxes ---- */
.feature-box {
    text-align: center;
    padding: 2rem 1.5rem;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
}

.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-box .feature-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    font-size: 1.5rem;
    color: var(--white);
}

.feature-box h5 {
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
}

.feature-box p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0;
}

/* ---- Buttons ---- */
.btn-primary-custom {
    background: var(--accent);
    border: none;
    color: var(--dark);
    font-weight: 600;
    padding: 0.7rem 2rem;
    border-radius: 8px;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
}

.btn-primary-custom:hover {
    background: var(--accent-hover);
    color: var(--dark);
    transform: translateY(-2px);
}

.btn-outline-custom {
    border: 2px solid var(--accent);
    color: var(--accent);
    font-weight: 600;
    padding: 0.65rem 2rem;
    border-radius: 8px;
    transition: var(--transition);
    background: transparent;
    text-decoration: none;
    display: inline-block;
}

.btn-outline-custom:hover {
    background: var(--accent);
    color: var(--dark);
}

/* ---- Contact Page ---- */
.contact-info-card {
    background: var(--primary);
    color: var(--white);
    border-radius: var(--radius);
    padding: 2.5rem;
    height: 100%;
}

.contact-info-card h4 {
    color: var(--white);
    margin-bottom: 1.5rem;
}

.contact-info-card .info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.25rem;
}

.contact-info-card .info-item i {
    color: var(--accent);
    font-size: 1.25rem;
    margin-right: 1rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.contact-info-card .info-item p {
    margin: 0;
    line-height: 1.6;
}

.contact-form-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
    height: 100%;
}

.contact-form-card .form-control,
.contact-form-card .form-control:focus {
    border-radius: 8px;
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
}

.contact-form-card .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(26, 46, 90, 0.15);
}

/* ---- Intro Section ---- */
.intro-text {
    font-size: 1.1rem;
    color: var(--text);
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    line-height: 1.8;
}

/* ---- Page Header ---- */
.page-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    padding: 3rem 0;
    text-align: center;
    color: var(--white);
}

.page-header h1 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.page-header p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
}

/* ---- Footer ---- */
.site-footer {
    background: var(--dark);
    color: rgba(255, 255, 255, 0.75);
    padding: 3.5rem 0 0;
}

.site-footer h5 {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
    position: relative;
    padding-bottom: 10px;
}

.site-footer h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--accent);
}

.site-footer a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.site-footer a:hover {
    color: var(--accent);
}

.site-footer .footer-links li {
    margin-bottom: 0.5rem;
}

.site-footer .footer-links li i {
    color: var(--accent);
    margin-right: 0.5rem;
    font-size: 0.75rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.25rem 0;
    margin-top: 2.5rem;
    text-align: center;
    font-size: 0.85rem;
}

/* ---- Map ---- */
.map-container {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

/* ---- Utilities ---- */
.text-accent {
    color: var(--accent) !important;
}

.bg-light-custom {
    background: var(--light-bg);
}

/* ---- Smooth scrolling ---- */
html {
    scroll-behavior: smooth;
}

/* ---- Animations ---- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* ---- Responsive ---- */
@media (max-width: 991px) {
    .navbar .navbar-collapse {
        padding: 1rem 0;
    }
    .navbar .nav-link {
        padding: 0.75rem 1rem !important;
    }
}

@media (max-width: 576px) {
    .section {
        padding: 40px 0;
    }
    .section-title h2 {
        font-size: 1.7rem;
    }
    .page-header h1 {
        font-size: 1.8rem;
    }
    .contact-info-card,
    .contact-form-card {
        padding: 1.5rem;
    }
}
