/* ============================================
   MEP Services Page - Pixel-Perfect CSS
   Based on Figma Design
   ============================================ */

/* ============================================
   MEP DISCIPLINES GRID
   ============================================ */

.mep-disciplines-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: #e5e7eb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    margin: 1.5rem 0 2.5rem;
}

.mep-discipline-card {
    background: #faf8ff;
    padding: 1.5rem;
}

.mep-discipline-title {
    font-size: 1rem;
    font-weight: 600;
    color: #7628a3;
    margin: 0 0 0.75rem;
}

.mep-discipline-desc {
    font-size: 0.9rem;
    color: #4b5563;
    line-height: 1.65;
    margin: 0;
}

@media (max-width: 640px) {
    .mep-disciplines-grid {
        grid-template-columns: 1fr;
    }
}

/* Note: Base styles, Header, and Footer are inherited from css/styles.css */

/* ============================================
   HERO SECTION WRAPPER - 100vh Container
   ============================================ */
.service-hero-wrapper {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: visible;
}

/* ============================================
   HERO SECTION - MEP Services (80% height)
   ============================================ */
.mep-hero.hero-section {
    position: relative;
    width: calc(100% - 40px);
    margin: 20px auto 0;
    border-radius: 24px;
    overflow: hidden;
    min-height: calc(100vh - 40px);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-top: 0;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    border-radius: 24px;
    overflow: hidden;
}

.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(100%) !important;
}

/* Decorative patterns */
/* .hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        repeating-linear-gradient(45deg,
            transparent,
            transparent 2px,
            rgba(255, 255, 255, 0.03) 2px,
            rgba(255, 255, 255, 0.03) 4px),
        repeating-linear-gradient(-45deg,
            transparent,
            transparent 2px,
            rgba(255, 255, 255, 0.02) 2px,
            rgba(255, 255, 255, 0.02) 4px);
    opacity: 0.6;
    pointer-events: none;
}

.hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.06) 0%, transparent 50%);
    pointer-events: none;
} */

/* ============================================
   VIDEO HERO BACKGROUND
   ============================================ */
.hero-bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

/* Dark overlay for video heroes  - scoped to .video-bg modifier */
.hero-bg.video-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 30, 0.55);
    z-index: 1;
}

/* ============================================
   STANDALONE FEATURE IMAGE (below hero)
   ============================================ */
.page-feature-image {
    display: flex;
    justify-content: center;
    padding: 48px 20px 0;
}

.page-feature-img {
    width: 100%;
    max-width: 750px;
    height: auto;
    display: block;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    object-fit: cover;
    aspect-ratio: 16 / 10;
}

@media (max-width: 768px) {
    .page-feature-image {
        padding: 32px 16px 0;
    }
    .page-feature-img {
        max-width: 100%;
    }
}

/* Content Wrapper - Top aligned */
.mep-hero .hero-content-wrapper {
    width: 100%;
    left: 0;
    right: 0;
    position: relative;
    z-index: 2;
    top: 0;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    padding: 140px 20px 0;
    position: absolute;
    height: auto;
}

.mep-hero .hero-content {
    max-width: 900px;
    text-align: center;
    color: #ffffff;
    position: relative;
    z-index: 1;
}

/* Pill without dot */
.hero-pill.section-tag-pill {
    margin: 0 auto 24px;
    background-color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-pill .tag-text {
    color: black;
    font-size: 0.8rem;
    font-weight: 500;
}

.mep-hero .hero-title {
    font-size: 56px;
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
    color: white;
}

/* Hero Metadata */
.hero-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 48px;
}

.meta-item {
    font-weight: 400;
}

.meta-separator {
    opacity: 0.6;
}

/* Hanging Image - Positioned using top property */
.hero-hanging-image {
    position: absolute;
    top: 55%;
    left: 50%;
    transform: translateX(-50%);
    width: 55%;
    max-width: 750px;
    z-index: 10;
}

.hanging-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

/* EV fast charging hero photo: fills hanging card cleanly */
.hanging-img-ev-hero {
    object-fit: cover;
    aspect-ratio: 16 / 10;
}

/* Battery Solutions page  - slightly smaller hero and inline images */
.hero-hanging-image.battery-solutions-hero-image {
    width: 52%;
    max-width: 720px;
}

.content-image-wrapper.battery-solutions-content-image {
    max-width: 615px;
    max-height: 425px;
}

/* ============================================
   MAIN CONTENT SECTION
   ============================================ */
.main-content {
    background-color: #ffffff;
    position: relative;
    z-index: 5;
    margin-top: 10vh;
    /* Space for hanging image overflow */
}

.content-section {
    padding: 80px 0;
}

.content-text {
    max-width: 900px;
    margin: 0 auto 60px;
}

.intro-text {
    font-size: 16px;
    line-height: 1.8;
    color: #374151;
    margin-bottom: 40px;
    text-align: left;
}

.section-heading {
    font-size: 20px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 20px;
    margin-top: 40px;
}

.body-text {
    font-size: 16px;
    line-height: 1.8;
    color: #374151;
    margin-bottom: 20px;
}

.services-list {
    list-style: none;
    padding: 0;
    margin: 20px 0 30px;
}

.services-list li {
    font-size: 16px;
    line-height: 1.8;
    color: #374151;
    padding-left: 20px;
    position: relative;
    margin-bottom: 8px;
}

.services-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #7628a3;
    font-weight: bold;
}

/* Content Image */
.content-image-wrapper {
    max-width: 650px;
    max-height: 450px;
    margin: 60px auto;
    border-radius: 16px;
    overflow: hidden;
    background-color: #f5f5f5;
    /* Light background in case of letterboxing */
}

.content-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    /* Show full image without cropping */
}

/* Newsletter CTA Box */
.newsletter-cta-box {
    max-width: 900px;
    margin: 60px auto 0;
    background: linear-gradient(135deg, #1a4d3a 0%, #0f3a2a 100%);
    border-radius: 16px;
    padding: 48px 60px;
    text-align: center;
}

.newsletter-cta-title {
    font-size: 32px;
    font-weight: 400;
    color: #ffffff;
    margin-bottom: 32px;
    line-height: 1.3;
}

.newsletter-cta-form {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-cta-input {
    flex: 1;
    padding: 16px 24px;
    border-radius: 50px;
    border: none;
    background-color: #ffffff;
    color: #374151;
    font-size: 15px;
    outline: none;
}

.newsletter-cta-input::placeholder {
    color: #9CA3AF;
}

.newsletter-cta-btn {
    padding: 16px 32px;
    border-radius: 50px;
    border: none;
    background-color: #7628a3;
    color: #ffffff;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.newsletter-cta-btn:hover {
    background-color: #5d1f82;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(118, 40, 163, 0.3);
}

/* ============================================
   OUR SERVICES SECTION
   ============================================ */
.our-services-section {
    padding: 80px 0;
    background-color: #ffffff;
}

.our-services-section .section-tag-pill {
    margin-bottom: 32px;
}

/* Horizontal Separator Line */
.services-separator {
    width: calc(100% - 80px);
    /* Not touching edges - 40px margin on each side */
    /* max-width: 1200px; */
    height: 1px;
    background-color: #E5E7EB;
    margin: 0 auto 48px;
}

/* Grey Background Container */
.services-container-grey {
    background-color: #efefef;
    border-radius: 24px;
    padding: 48px 40px;
    /* max-width: 1200px; */
    margin: 0 auto;
}

.services-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.service-card-white {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 32px 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.service-card-white:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.service-icon-wrapper {
    width: 56px;
    height: 56px;
    background-color: rgba(118, 40, 163, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.service-icon-purple {
    width: 28px;
    height: 28px;
    color: #7628a3;
}

.service-card-title {
    font-size: 20px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 12px;
    line-height: 1.3;
}

.service-card-description {
    font-size: 14px;
    line-height: 1.7;
    color: #6B7280;
    margin-bottom: 20px;
    flex: 1;
}

.service-card-link {
    font-size: 14px;
    font-weight: 600;
    color: #7628a3;
    text-decoration: none;
    transition: color 0.2s ease;
}

.service-card-link:hover {
    color: #5d1f82;
}

/* ============================================
   PREMIUM ANIMATIONS & PARALLAX EFFECTS
   ============================================ */

/* Parallax Background - GPU Accelerated */
.hero-bg-img {
    will-change: transform;
    backface-visibility: hidden;
    transform: translateZ(0);
    transition: transform 0.1s ease-out;
}

.hero-bg-img {
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}


/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .hero-bg-img {
        transform: none !important;
        transition: none !important;
        animation: none !important;
    }
}



/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media screen and (max-width: 1024px) {
    .hero-hanging-image {
        width: 65%;
        top: 50%;
    }

    .hero-hanging-image.battery-solutions-hero-image {
        width: 60%;
    }

    .main-content {
        margin-top: 20vh;
    }
}

/* Tablet portrait: switch to landscape hero too */
@media screen and (max-width: 768px) and (orientation: portrait) {
    .mep-hero.hero-section {
        aspect-ratio: 16 / 9;
        height: auto;
        min-height: unset;
        max-height: unset;
    }

    .service-hero-wrapper {
        height: auto;
        min-height: unset;
    }
}

@media screen and (max-width: 768px) {
    .mep-hero .hero-title {
        font-size: 36px;
    }

    .mep-hero .hero-content-wrapper {
        /* padding: 100px 20px 0; */
    }

    /* Landscape aspect ratio on mobile  - video/image heroes always look wide */
    .mep-hero.hero-section {
        height: auto;
        min-height: 180px; /* safety floor so content is never clipped */
        max-height: unset;
        aspect-ratio: 16 / 9;
    }

    .service-hero-wrapper {
        height: auto;
        min-height: unset;
    }

    /* Hanging image separated from hero  - no overlap, sits cleanly below */
    .hero-hanging-image {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        width: 88%;
        max-width: 100%;
        margin: 24px auto 0;
    }

    .hero-hanging-image.battery-solutions-hero-image {
        width: 84%;
    }

    .main-content {
        margin-top: 0;
    }

    .content-section {
        padding: 60px 0;
    }

    .newsletter-cta-box {
        padding: 32px 24px;
    }

    .newsletter-cta-title {
        font-size: 24px;
    }

    .newsletter-cta-form {
        flex-direction: column;
        width: 100%;
    }

    .newsletter-cta-input,
    .newsletter-cta-btn {
        width: 100%;
    }

    .services-grid-3 {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

@media screen and (max-width: 375px) {
    .mep-hero .hero-title {
        font-size: 28px;
    }

    /* Keep landscape aspect ratio at smallest breakpoint too */
    .mep-hero.hero-section {
        height: auto;
        min-height: unset;
        max-height: unset;
        aspect-ratio: 16 / 9;
    }

    .hero-hanging-image {
        width: 92%;
        margin: 20px auto 0;
    }

    .hero-hanging-image.battery-solutions-hero-image {
        width: 88%;
    }

    .section-heading {
        font-size: 18px;
    }

    .newsletter-cta-title {
        font-size: 20px;
    }
}

/* ============================================
   EV SECTION STRUCTURED CONTENT STYLES
   ============================================ */

/* Dark header block  - primary section title (e.g. EV Eco System) */
.ev-section-header {
    background: #1c1e3a;
    border-left: 5px solid #7628a3;
    border-radius: 12px;
    padding: 28px 36px;
    margin-bottom: 40px;
}

.ev-section-number-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 8px;
    line-height: 1.2;
}

.ev-section-subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.65);
    margin: 0;
    font-weight: 400;
}

/* Light sub-header block  - subsection title (e.g. EV Fast Chargers) */
.ev-subsection-header {
    background: rgba(118, 40, 163, 0.06);
    border-left: 4px solid #7628a3;
    border-radius: 10px;
    padding: 18px 28px;
    margin: 40px 0 28px;
}

.ev-subsection-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #7628a3;
    margin: 0 0 6px;
    line-height: 1.3;
}

.ev-subsection-subtitle {
    font-size: 0.95rem;
    color: #6b7280;
    margin: 0;
    font-style: italic;
}

/* Section label  - "OVERVIEW", "WHAT MAKES…", "OUR DEPLOYMENT PROCESS" */
.ev-section-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: #7628a3;
    text-transform: uppercase;
    margin: 44px 0 14px;
}

/* Thin divider line */
.content-section-divider {
    height: 1px;
    background: #e5e7eb;
    margin: 48px 0 0;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .ev-section-header {
        padding: 20px 22px;
    }

    .ev-section-number-title {
        font-size: 1.4rem;
    }

    .ev-subsection-header {
        padding: 14px 18px;
    }

    .ev-subsection-title {
        font-size: 1.2rem;
    }
}

/* About EV Charging  - DC lineup */
.charger-lineup-heading {
    font-size: 1.5rem;
    font-weight: 600;
    color: #111827;
    margin: 2.25rem 0 1rem;
}

.charger-lineup {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.charger-lineup-item {
    padding: 1.25rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.charger-lineup-item:last-child {
    border-bottom: none;
}

.charger-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #7628a3;
    margin: 0 0 0.5rem;
}