/* ==========================================================================
   JPP Power & Energy Pvt Ltd - Verbatim Master Stylesheet (Pixel-Perfect 1:1)
   ========================================================================== */

:root {
    --primary-red: #000096;
    --primary-blue: #000096;
    --dark-navy: #0B132B;
    --footer-light-bg: #EBF1F7;
    --text-color: #333333;
    --heading-color: #111827;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Roboto', sans-serif;
}

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

body {
    font-family: var(--font-body);
    color: var(--text-color);
    background-color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.25s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1170px;
    margin: 0 auto;
    padding: 0 15px;
}

.text-center {
    text-align: center;
}

.accent-text {
    color: var(--primary-blue);
    font-weight: 800;
}

/* Site Header */
.site-header {
    background-color: #ffffff;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
}

.header-logo {
    height: 70px;
    width: auto;
    object-fit: contain;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav-item {
    position: relative;
}

.nav-link {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    color: #222222;
    padding: 10px 0;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-blue);
}

/* Dropdown Navigation */
.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 250px;
    background: #ffffff;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    border-top: 3px solid var(--primary-red);
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1100;
}

.nav-item.has-dropdown:hover > .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 600;
    color: #444444;
}

.dropdown a:hover {
    background: #F4F6F9;
    color: var(--primary-blue);
}

.subdropdown {
    position: absolute;
    top: 0;
    left: 100%;
    width: 250px;
    background: #ffffff;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    border-left: 3px solid var(--primary-red);
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: all 0.3s ease;
}

.has-subdropdown {
    position: relative;
}

.has-subdropdown:hover > .subdropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 22px;
    color: #222222;
    cursor: pointer;
}

/* Hero Section */
.hero-banner {
    position: relative;
    padding: 110px 0;
    color: #ffffff;
    text-align: center;
    background-position: center;
    background-size: cover;
}

.hero-bg-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 17, 30, 0.78);
}

.hero-container {
    position: relative;
    z-index: 2;
}

.hero-main-title {
    font-family: var(--font-heading);
    font-size: 56px;
    font-weight: 900;
    letter-spacing: 2px;
    margin-bottom: 5px;
    color: #ffffff;
}

.hero-sub-title {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 30px;
    color: #E2E8F0;
}

.btn-brochure {
    display: inline-block;
    background-color: var(--primary-red);
    color: #ffffff;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 15px;
    padding: 14px 38px;
    border-radius: 6px;
    border: 2px solid #ffffff;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.btn-brochure:hover {
    background-color: #000075;
    transform: translateY(-2px);
}

.hero-tagline {
    display: block;
    margin-top: 25px;
    font-size: 15px;
    font-weight: 500;
    color: #E2E8F0;
    letter-spacing: 1px;
}

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

.sub-label {
    display: block;
    color: var(--primary-red);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--heading-color);
    letter-spacing: 1px;
}

.title-underline {
    width: 60px;
    height: 3px;
    background: var(--primary-red);
    margin: 10px auto 30px auto;
    border-radius: 2px;
}

/* Welcome Section */
.welcome-desc {
    font-size: 15px;
    color: #555555;
    line-height: 1.8;
    max-width: 950px;
    margin: 0 auto 15px auto;
}

/* Products Flex Row */
.products-flex-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    margin-top: 20px;
}

.product-col-card {
    position: relative;
    height: 240px;
    border-radius: 4px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.card-gradient-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 17, 30, 0.75);
    transition: all 0.3s ease;
}

.product-col-card:hover .card-gradient-overlay {
    background: rgba(0, 0, 150, 0.85);
}

.card-text-wrapper {
    position: relative;
    z-index: 2;
}

.card-text-wrapper h3 {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 800;
    color: #ffffff;
    text-transform: uppercase;
    line-height: 1.3;
}

/* Services Portrait Grid (2 Rows x 3 Cols - 1:1 Matching Screenshot) */
.services-portrait-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 20px;
}

.service-portrait-card {
    position: relative;
    height: 320px;
    border-radius: 6px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 20px;
    text-align: center;
    box-shadow: 0 6px 18px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.portrait-gradient-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.3) 55%, rgba(0, 0, 0, 0) 100%);
    transition: all 0.3s ease;
}

.service-portrait-card:hover .portrait-gradient-overlay {
    background: linear-gradient(to top, rgba(0, 0, 150, 0.92) 0%, rgba(0, 0, 0, 0.4) 60%, rgba(0, 0, 0, 0) 100%);
}

.portrait-title {
    position: relative;
    z-index: 2;
    width: 100%;
}

.portrait-title h3 {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 800;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Clients Infinite Smooth Slider */
.clients-slider-wrapper {
    overflow: hidden;
    width: 100%;
    position: relative;
    padding: 10px 0;
}

.clients-slider-track {
    display: flex;
    gap: 20px;
    width: max-content;
    animation: smoothMarquee 35s linear infinite;
}

.clients-slider-wrapper:hover .clients-slider-track {
    animation-play-state: paused;
}

@keyframes smoothMarquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.client-brand-item {
    width: 180px;
    height: 90px;
    background: #ffffff;
    border: 1px solid #E2E8F0;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.client-brand-item img {
    max-height: 60px;
    max-width: 100%;
    object-fit: contain;
}

.client-brand-item:hover {
    border-color: var(--primary-blue);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 20px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #CBD5E1;
    display: inline-block;
}

.dot.active {
    background: var(--primary-red);
}

/* Get In Touch Section */
.get-in-touch-section {
    position: relative;
    padding: 70px 0;
    color: #ffffff;
}

.touch-bg-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 17, 30, 0.88);
}

.touch-container {
    position: relative;
    z-index: 2;
}

.touch-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.touch-sub {
    display: block;
    color: #9CA3AF;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    margin-bottom: 6px;
}

.touch-title {
    font-family: var(--font-heading);
    font-size: 38px;
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 6px;
}

.touch-tagline {
    color: #9CA3AF;
    font-size: 14px;
    margin-bottom: 25px;
}

.touch-contact-list li {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    margin-bottom: 16px;
    font-size: 14px;
    color: #E5E7EB;
}

.touch-contact-list i {
    color: var(--primary-red);
    font-size: 16px;
    margin-top: 3px;
}

.map-card-wrapper {
    background: #ffffff;
    padding: 10px;
    border-radius: 6px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

/* Page Header */
.page-header {
    background: #0B132B;
    color: #ffffff;
    padding: 50px 0;
    text-align: center;
}

.page-header h1 {
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 8px;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    color: #9CA3AF;
}

/* Site Footer */
.site-footer {
    background: var(--footer-light-bg);
    color: #4B5563;
}

.footer-main {
    padding-top: 50px;
    padding-bottom: 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr 1.75fr;
    gap: 35px;
}

.footer-logo {
    height: 60px;
    margin-bottom: 12px;
}

.footer-tagline {
    font-size: 14px;
    color: #6B7280;
    font-weight: 500;
}

.footer-heading {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 800;
    color: #111827;
    margin-bottom: 16px;
}

.footer-menu li {
    margin-bottom: 8px;
}

.footer-menu a {
    font-size: 13px;
    color: #4B5563;
}

.footer-menu a:hover {
    color: var(--primary-blue);
}

.footer-contact-details p {
    margin-bottom: 10px;
    font-size: 13px;
    color: #4B5563;
}

.footer-contact-details i {
    color: var(--primary-red);
    margin-right: 6px;
}

.footer-bottom {
    background: var(--dark-navy);
    padding: 16px 0;
    font-size: 13px;
    color: #9CA3AF;
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: #ffffff;
    font-size: 14px;
}

.social-icon:hover {
    background: var(--primary-red);
}

/* Floating WhatsApp Sticky */
.whatsapp-sticky {
    position: fixed;
    bottom: 25px;
    left: 25px;
    width: 50px;
    height: 50px;
    background: #25D366;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    z-index: 99999;
    transition: all 0.3s ease;
}

.whatsapp-sticky:hover {
    transform: scale(1.1);
}

.scroll-top-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.2);
    color: #ffffff;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    z-index: 99998;
    transition: all 0.3s ease;
}

.scroll-top-btn.active {
    opacity: 1;
    visibility: visible;
}

/* Responsive Rules */
@media (max-width: 992px) {
    .products-flex-row {
        grid-template-columns: repeat(2, 1fr);
    }
    .services-portrait-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .touch-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 270px;
        height: 100vh;
        background: #ffffff;
        padding: 60px 20px 20px 20px;
        box-shadow: -5px 0 20px rgba(0,0,0,0.2);
        transition: all 0.3s ease;
        z-index: 1050;
    }
    .nav-menu.active {
        right: 0;
    }
    .nav-list {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
    }
    .nav-item {
        width: 100%;
        border-bottom: 1px solid #E2E8F0;
    }
    .nav-link {
        padding: 12px 0;
    }
    .hero-main-title {
        font-size: 36px;
    }
    .hero-sub-title {
        font-size: 24px;
    }
    .products-flex-row, .services-portrait-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .footer-bottom-inner {
        flex-direction: column;
        gap: 10px;
    }
}
