/* ============================================================
   ELECTRICAL CABLES & WIRES — electric-cables-wires.css
   Pixel-perfect match to Energya live design & screenshots
   ============================================================ */

:root {
    --energya-navy: #00234B;
    --energya-blue: #0A52A1;
    --energya-orange: #F05435;
    --energya-orange-grad: linear-gradient(135deg, #F05435 0%, #EFB9AE 100%);
    --energya-gray-sub: #617798;
    --energya-border: #E5E7EB;
    --energya-bg-light: #F8FAFC;
    --energya-card-border: #E2E8F0;
}

/* Base resets & typography */
.ec-page {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #334155;
    background: #FFFFFF;
}

/* Gradient highlight font */
.highlight-gradient {
    color: #F05435;
    background: linear-gradient(135deg, #F05435 0%, #EF8A75 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Section Header Typography */
.ec-section-title-huge {
    font-size: clamp(2.5rem, 5vw, 4.2rem);
    font-weight: 800;
    line-height: 1.1;
    color: var(--energya-navy);
    letter-spacing: -1px;
    margin-bottom: 1.5rem;
}

.ec-subtitle {
    font-size: 1.15rem;
    color: var(--energya-gray-sub);
    font-weight: 500;
    margin-bottom: 2rem;
}

/* ============================================================
   1. HERO BANNER
   ============================================================ */
.ec-hero-banner {
    position: relative;
    min-height: 380px;
    background-image: linear-gradient(rgba(6, 26, 56, 0.78), rgba(6, 26, 56, 0.78)), url('assets/ele01.png');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 90px 20px;
}

.ec-hero-content h1 {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 900;
    color: #FFFFFF;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0;
}

/* ============================================================
   2. BREADCRUMBS BAR
   ============================================================ */
.ec-breadcrumbs-bar {
    background: #F8FAFC;
    border-bottom: 1px solid #E2E8F0;
    padding: 14px 0;
    font-size: 0.88rem;
    color: #64748B;
    font-weight: 500;
}

.ec-breadcrumbs-bar a {
    color: #1E40AF;
    text-decoration: none;
    transition: color 0.2s;
}

.ec-breadcrumbs-bar a:hover {
    color: #0F172A;
}

.ec-breadcrumbs-bar .sep {
    margin: 0 10px;
    color: #94A3B8;
}

.ec-breadcrumbs-bar .current {
    color: #475569;
    font-weight: 600;
}

/* ============================================================
   3. COMPANY OVERVIEW (Logo Left, Accordion Right)
   ============================================================ */
.ec-overview-section {
    padding: 70px 0;
    background: #FFFFFF;
}

.ec-overview-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 50px;
    align-items: flex-start;
}

.ec-overview-logo-card {
    text-align: center;
    padding: 20px;
}

.ec-overview-logo-card img {
    max-width: 270px;
    height: auto;
    margin: 0 auto;
    display: block;
}

/* Accordion Styles */
.ec-accordion-wrap {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ec-accordion-item {
    border: 1px solid #E2E8F0;
    border-radius: 4px;
    overflow: hidden;
    background: #FFFFFF;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.ec-accordion-item.active {
    border-color: #CBD5E1;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.ec-accordion-header {
    width: 100%;
    padding: 18px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #FFFFFF;
    border: none;
    outline: none;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--energya-navy);
    transition: color 0.2s, background-color 0.2s;
}

.ec-accordion-header:hover {
    color: var(--energya-blue);
    background-color: #F8FAFC;
}

.ec-accordion-header .icon-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #F1F5F9;
    color: #0284C7;
    font-size: 1.1rem;
    font-weight: 700;
    flex-shrink: 0;
    transition: transform 0.25s, background-color 0.2s, color 0.2s;
}

.ec-accordion-item.active .ec-accordion-header .icon-toggle {
    background: #E0F2FE;
    color: #0369A1;
}

.ec-accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
    padding: 0 22px;
    font-size: 0.95rem;
    line-height: 1.7;
    color: #475569;
}

.ec-accordion-item.active .ec-accordion-body {
    max-height: 1000px;
    padding: 6px 22px 22px 22px;
}

.ec-accordion-body p {
    margin-bottom: 14px;
}

.ec-accordion-body p:last-child {
    margin-bottom: 0;
}

.ec-accordion-body ul {
    list-style: disc;
    padding-left: 20px;
    margin: 10px 0;
}

.ec-accordion-body ul li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.ec-inline-logo {
    float: left;
    margin: 0 24px 16px 0;
    max-width: 220px;
    border-radius: 4px;
}

/* Clearfix for floated inline logos */
.ec-accordion-body::after {
    content: "";
    display: table;
    clear: both;
}

/* ============================================================
   4. OUR PRODUCTS (Title Left, Graphic Grid Right)
   ============================================================ */
.ec-products-section {
    padding: 70px 0 90px;
    background: #FFFFFF;
}

.ec-products-grid-layout {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 40px;
    align-items: center;
}

.ec-products-info {
    padding-right: 20px;
}

.ec-pill-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    background: linear-gradient(135deg, #F05435 0%, #F5785F 100%);
    color: #FFFFFF;
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: 6px;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(240, 84, 53, 0.28);
    transition: transform 0.2s, box-shadow 0.2s;
}

.ec-pill-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(240, 84, 53, 0.38);
}

.ec-products-items-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 32px 18px;
    align-items: start;
    width: 100%;
}

.ec-prod-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.25s ease;
}

.ec-prod-item:hover {
    transform: translateY(-4px);
}

.ec-prod-circle {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ec-prod-circle img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
    display: block;
}

.ec-prod-item:hover .ec-prod-circle {
    box-shadow: 0 8px 24px rgba(0, 35, 75, 0.12);
}

.ec-prod-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--energya-navy, #061A38);
    line-height: 1.25;
    margin-bottom: 4px;
    max-width: 150px;
}

.ec-prod-sub {
    font-size: 0.8rem;
    font-weight: 700;
    color: #F05435;
    line-height: 1.2;
}

/* ============================================================
   5. STATS / NUMBERS COUNTER BAR
   ============================================================ */
.ec-counters-section {
    background: #FFFFFF;
    padding: 50px 0;
    border-top: 1px solid #E2E8F0;
    border-bottom: 1px solid #E2E8F0;
}

.ec-counters-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.ec-counter-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
}

.ec-counter-icon {
    width: 56px;
    height: 56px;
    color: #F05435;
    margin-bottom: 14px;
}

.ec-counter-val {
    font-size: 2.3rem;
    font-weight: 800;
    color: #F05435;
    line-height: 1.1;
    margin-bottom: 8px;
}

.ec-counter-label {
    font-size: 0.95rem;
    font-weight: 700;
    color: #F05435;
    letter-spacing: 0.2px;
}

/* ============================================================
   6. COUNTRY SECTIONS (EGYPT & KSA)
   ============================================================ */
.ec-country-section {
    padding: 80px 0;
    background: #FFFFFF;
}

.ec-country-section.alt-bg {
    background: #FAFCFF;
}

.ec-country-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 50px;
    align-items: flex-start;
}

.ec-country-header-col {
    position: sticky;
    top: 100px;
}

.ec-country-title {
    font-size: clamp(3rem, 5vw, 4.2rem);
    font-weight: 800;
    color: #F05435;
    line-height: 1;
    margin-bottom: 24px;
}

.ec-solid-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    background: #F05435;
    color: #FFFFFF;
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: 4px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(240, 84, 53, 0.25);
    transition: background-color 0.2s, transform 0.2s;
}

.ec-solid-btn:hover {
    background: #D94123;
    transform: translateY(-2px);
}

/* ============================================================
   7. FACTORY GALLERIES (EGYPT & KSA)
   ============================================================ */
.ec-gallery-section {
    padding: 80px 0;
    background: #FFFFFF;
}

.ec-gallery-section.alt {
    background: #F8FAFC;
}

.ec-gallery-title {
    text-align: center;
    font-size: clamp(2.4rem, 4.5vw, 3.8rem);
    font-weight: 800;
    margin-bottom: 50px;
    color: var(--energya-navy);
}

.ec-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.ec-gallery-card {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    aspect-ratio: 4 / 3;
    cursor: pointer;
}

.ec-gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s;
}

.ec-gallery-card:hover img {
    transform: scale(1.08);
    opacity: 0.92;
}

/* ============================================================
   8. OUR CATALOGUES (Image Left, Buttons Right)
   ============================================================ */
.ec-catalogues-section {
    padding: 90px 0;
    background: #FFFFFF;
}

.ec-catalogues-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.ec-catal-img-wrap {
    position: relative;
    width: 100%;
    min-height: 440px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 35px rgba(0, 35, 75, 0.16);
    display: flex;
    align-items: center;
}

.ec-catal-img-wrap img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.ec-catal-img-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(6, 26, 56, 0.92) 0%, rgba(6, 26, 56, 0.78) 55%, rgba(6, 26, 56, 0.5) 100%);
    z-index: 1;
}

.ec-catal-img-content {
    position: relative;
    z-index: 2;
    padding: clamp(32px, 5vw, 54px);
    max-width: 500px;
}

.ec-catal-img-content h2 {
    font-size: clamp(2.4rem, 4.5vw, 3.6rem);
    font-weight: 800;
    line-height: 1.1;
    color: #FFFFFF;
    margin-bottom: 16px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.ec-catal-img-content .highlight-gradient {
    color: #F05435;
    background: linear-gradient(135deg, #F05435 0%, #FFA08C 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.ec-catal-img-content .ec-catal-sub {
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    color: rgba(255, 255, 255, 0.92);
    font-weight: 500;
    margin: 0;
    line-height: 1.4;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.ec-catal-buttons-list {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
    width: 100%;
}

.ec-catal-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 16px 34px;
    background: #F05435;
    color: #FFFFFF;
    font-size: 1.05rem;
    font-weight: 700;
    border-radius: 4px;
    text-decoration: none;
    align-self: flex-start;
    width: fit-content;
    white-space: nowrap;
    box-shadow: 0 4px 14px rgba(240, 84, 53, 0.22);
    transition: background-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.ec-catal-download-btn:hover {
    background: #D94123;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(240, 84, 53, 0.35);
}

.ec-catal-download-btn .ec-pdf-icon {
    width: 18px;
    height: 20px;
    flex-shrink: 0;
    fill: #FFFFFF;
}

.ec-catal-download-btn svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    fill: currentColor;
}

/* ============================================================
   9. OUR CERTIFICATIONS
   ============================================================ */
.ec-certifications-section {
    padding: 80px 0;
    background: #FAFCFF;
    border-top: 1px solid #E2E8F0;
}

.ec-cert-img-wrap {
    position: relative;
    width: 100%;
    min-height: 440px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 35px rgba(0, 35, 75, 0.16);
    display: flex;
    align-items: center;
}

.ec-cert-img-wrap img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center right;
    display: block;
}

.ec-cert-img-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(6, 26, 56, 0.92) 0%, rgba(6, 26, 56, 0.8) 45%, rgba(6, 26, 56, 0.45) 100%);
    z-index: 1;
}

.ec-cert-content-inside {
    position: relative;
    z-index: 2;
    padding: clamp(32px, 6vw, 64px);
    max-width: 580px;
}

.ec-cert-content-inside h2 {
    font-size: clamp(2.4rem, 4.8vw, 3.8rem);
    font-weight: 800;
    line-height: 1.1;
    color: #FFFFFF;
    margin-bottom: 30px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.ec-cert-content-inside .highlight-gradient {
    color: #F05435;
    background: linear-gradient(135deg, #F05435 0%, #FFA08C 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.ec-cert-content-inside .ec-pill-btn {
    box-shadow: 0 6px 20px rgba(240, 84, 53, 0.45);
}

/* ============================================================
   10. CTA SECTION: WE ARE COMMITTED TO OUR CLIENT'S SUCCESS
   ============================================================ */
.ec-committed-cta-section {
    position: relative;
    padding: 110px 20px;
    background-image: linear-gradient(rgba(4, 25, 56, 0.86), rgba(4, 25, 56, 0.86)), url('assets/outdoor-modern-steel-structure-building.png');
    background-size: cover;
    background-position: center;
    text-align: center;
    color: #FFFFFF;
}

.ec-committed-cta-inner {
    max-width: 800px;
    margin: 0 auto;
}

.ec-committed-cta-inner h2 {
    font-size: clamp(2rem, 4.5vw, 3.4rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 35px;
    text-transform: capitalize;
}

.ec-rotator-word {
    color: #F05435;
    display: inline-block;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* ============================================================
   11. SCROLL TO TOP BUTTON
   ============================================================ */
.ec-scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #FFFFFF;
    border: 2px solid #0A52A1;
    color: #0A52A1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    z-index: 999;
    opacity: 0.85;
    transition: all 0.25s ease;
}

.ec-scroll-top-btn:hover {
    background: #0A52A1;
    color: #FFFFFF;
    opacity: 1;
    transform: translateY(-3px);
}

/* ============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================ */
@media (max-width: 1024px) {
    .ec-overview-grid {
        grid-template-columns: 240px 1fr;
        gap: 30px;
    }
    .ec-products-grid-layout {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 36px;
    }
    .ec-products-info {
        padding-right: 0;
        margin-bottom: 0;
    }
    .ec-products-items-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 28px 16px;
    }
    .ec-gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .ec-catalogues-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .ec-catal-img-wrap {
        min-height: 360px;
    }

    .ec-cert-img-wrap {
        min-height: 380px;
    }
}

@media (max-width: 768px) {
    .ec-products-items-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px 12px;
    }
    .ec-prod-circle {
        width: 90px;
        height: 90px;
        margin-bottom: 8px;
    }
    .ec-prod-name {
        font-size: 0.82rem;
        max-width: 125px;
    }
    .ec-prod-sub {
        font-size: 0.74rem;
    }
    .ec-overview-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .ec-inline-logo {
        float: none;
        margin: 0 auto 16px auto;
        display: block;
    }
    .ec-counters-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    .ec-country-layout {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    .ec-country-header-col {
        position: static;
        text-align: center;
    }
    .ec-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
    .ec-catal-img-wrap {
        min-height: 280px;
        border-radius: 12px;
    }
    .ec-catal-img-content {
        padding: 32px 20px;
    }
    .ec-catal-img-content h2 {
        font-size: clamp(2rem, 6.5vw, 2.5rem);
        margin-bottom: 10px;
    }
    .ec-catal-buttons-list {
        gap: 16px;
    }
    .ec-catal-download-btn {
        width: 100%;
        justify-content: flex-start;
        white-space: normal;
        padding: 14px 20px;
        font-size: 0.98rem;
    }
    .ec-cert-img-wrap {
        min-height: 340px;
        border-radius: 12px;
    }
    .ec-cert-img-wrap::after {
        background: linear-gradient(180deg, rgba(6, 26, 56, 0.92) 0%, rgba(6, 26, 56, 0.8) 100%);
    }
    .ec-cert-content-inside {
        padding: 32px 20px;
        max-width: 100%;
    }
    .ec-cert-content-inside h2 {
        font-size: clamp(2rem, 6.5vw, 2.6rem);
        margin-bottom: 22px;
    }
}

@media (max-width: 480px) {
    .ec-products-items-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px 12px;
    }
    .ec-prod-circle {
        width: 100px;
        height: 100px;
    }
    .ec-prod-name {
        font-size: 0.88rem;
        max-width: 140px;
    }
    .ec-prod-sub {
        font-size: 0.78rem;
    }
    .ec-counters-grid {
        grid-template-columns: 1fr;
    }
    .ec-gallery-grid {
        grid-template-columns: 1fr;
    }
}
