/* =========================================================
   PROTON WEBSITE - CLEAN CSS
   Recreated from proton-home.css to remove duplicate rules
   ========================================================= */

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

:root {
    --cb-blue: #073b70;
    --cb-dark: #052a50;
    --cb-light-blue: #0b69b5;
    --cb-accent: #f3b41b;
    --cb-white: #ffffff;
    --cb-text: #182433;
    --cb-muted: #667382;
}

/* ===== RESET / FRAPPE WEBSITE ===== */
html,
body {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    min-height: 100% !important;
    overflow-x: hidden !important;
    background: #ffffff !important;
    background-image: none !important;
}

body::before,
body::after {
    background-image: none !important;
}

.navbar,
.web-footer,
footer,
.page-header,
.page-head,
.breadcrumb-container,
.web-sidebar {
    display: none !important;
}

#page-index,
.page-container,
.page_content,
.page-content,
.web-page-content,
main,
main.container,
main .container {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.cabelec-site {
    position: relative;
    z-index: 1;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #ffffff;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--cb-text);
}

.cabelec-container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

/* =========================================================
   HEADER
   Compact white header + large visible logo
   ========================================================= */
.cabelec-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 74px;
    min-height: 74px;
    z-index: 1000;
    background: #ffffff !important;
    border-bottom: 1px solid #e5e8ec;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}
.nav-wrap {
    width: calc(100% - 40px) !important;
    max-width: 1500px !important;
    height: 74px !important;
    min-height: 74px !important;
    margin: 0 auto !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}

.brand,
.proton-brand {
    display: flex !important;
    align-items: center !important;
    text-decoration: none !important;
    width: 345px !important;
    height: 64px !important;
    flex: 0 0 345px !important;
    overflow: hidden !important;
}

/*
   IMPORTANT:
   proton_left_logo.png is 2164x727 and contains white space.
   object-fit: cover crops the extra vertical white space so the
   actual Power Partner / PROTON artwork appears much larger while
   keeping the header short.
*/
.proton-header-logo {
    display: block !important;
    width: 345px !important;
    max-width: 345px !important;
    height: 64px !important;
    max-height: 64px !important;
    margin: 0 !important;
    padding: 0 !important;
    object-fit: cover !important;
    object-position: center center !important;
}

.cabelec-header nav {
    height: 74px !important;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 24px;
    margin-left: 18px;
}

.cabelec-header nav a {
    color: #073b70 !important;
    text-decoration: none !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    white-space: nowrap;
}

.cabelec-header nav a:hover {
    color: var(--cb-accent) !important;
}

.cabelec-header .quote-nav {
    background: #073b70 !important;
    border: 2px solid #073b70 !important;
    color: #ffffff !important;
    padding: 12px 20px !important;
}

.cabelec-header .quote-nav:hover {
    background: var(--cb-accent) !important;
    border-color: var(--cb-accent) !important;
    color: #073b70 !important;
}

.mobile-menu {
    display: none;
    border: 0;
    background: transparent;
    color: #073b70 !important;
    font-size: 28px;
}

/* =========================================================
   HERO
   ========================================================= */
.hero,
.cabelec-site .hero {
    min-height: 730px;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-image: linear-gradient(
        110deg,
        #031f3b 0%,
        #073b70 55%,
        #315f86 100%
    ) !important;
    color: #ffffff;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle at 75% 45%,
        transparent 0,
        rgba(0, 0, 0, 0.10) 55%,
        rgba(0, 0, 0, 0.25) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-top: 74px;
}

.hero-copy {
    max-width: 720px;
}

.hero-label {
    display: inline-block;
    color: var(--cb-accent);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 2.5px;
    margin-bottom: 24px;
}

.hero h1 {
    color: #ffffff;
    font-size: clamp(48px, 6vw, 78px);
    line-height: 1.04;
    font-weight: 800;
    letter-spacing: -2px;
    margin: 0 0 28px;
}

.hero p {
    color: rgba(255, 255, 255, 0.86);
    font-size: 19px;
    line-height: 1.75;
    max-width: 650px;
    margin-bottom: 36px;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.btn-primary-cabelec,
.btn-outline-cabelec {
    min-width: 165px;
    padding: 15px 25px;
    text-decoration: none !important;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: 0.25s ease;
}

.btn-primary-cabelec {
    background: var(--cb-accent);
    color: var(--cb-dark) !important;
}

.btn-primary-cabelec:hover {
    transform: translateY(-2px);
    background: #ffc52e;
}

.btn-outline-cabelec {
    border: 1px solid rgba(255, 255, 255, 0.65);
    color: #ffffff !important;
}

.btn-outline-cabelec:hover {
    background: #ffffff;
    color: var(--cb-dark) !important;
}

.hero-side-text {
    position: absolute;
    right: -130px;
    bottom: 180px;
    transform: rotate(-90deg);
    font-size: 11px;
    letter-spacing: 4px;
    color: rgba(255, 255, 255, 0.55);
}

/* =========================================================
   FEATURES
   ========================================================= */
.features {
    position: relative;
    z-index: 10;
    margin-top: -65px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: #ffffff;
    box-shadow: 0 16px 45px rgba(18, 38, 63, 0.13);
}

.feature-card {
    min-height: 145px;
    display: flex;
    gap: 17px;
    padding: 34px 25px;
    border-right: 1px solid #e6e9ed;
}

.feature-card:last-child {
    border-right: none;
}

.feature-icon {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    background: #eef5fb;
    color: var(--cb-blue);
    font-size: 22px;
    font-weight: 800;
}

.feature-card h3 {
    margin: 0 0 8px;
    font-size: 17px;
    font-weight: 750;
    color: var(--cb-dark);
}

.feature-card p {
    margin: 0;
    color: var(--cb-muted);
    font-size: 13px;
    line-height: 1.55;
}

/* =========================================================
   PRODUCTS INTRO
   ========================================================= */
.products-intro {
    padding: 125px 0 90px;
    background: #f7f9fb;
}

.section-heading {
    text-align: center;
    max-width: 700px;
    margin: auto;
}

.section-heading > span {
    color: var(--cb-light-blue);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
}

.section-heading h2 {
    color: var(--cb-dark);
    font-size: 42px;
    margin: 12px 0 18px;
    font-weight: 800;
}

.section-heading p {
    color: var(--cb-muted);
    font-size: 16px;
    line-height: 1.7;
}

/* =========================================================
   TABLET / MOBILE
   ========================================================= */
@media (max-width: 1200px) {
    .brand,
    .proton-brand {
        width: 290px !important;
        flex-basis: 290px !important;
    }

    .proton-header-logo {
        width: 290px !important;
        max-width: 290px !important;
    }

    .cabelec-header nav {
        gap: 16px;
        margin-left: 12px;
    }

    .cabelec-header nav a {
        font-size: 13px !important;
    }
}

@media (max-width: 980px) {
    .nav-wrap {
        width: calc(100% - 30px) !important;
    }

    .brand,
    .proton-brand {
        width: 280px !important;
        flex-basis: 280px !important;
    }

    .proton-header-logo {
        width: 280px !important;
        max-width: 280px !important;
    }

    .cabelec-header nav {
        display: none;
        position: absolute;
        left: 15px;
        right: 15px;
        top: 74px;
        height: auto !important;
        margin: 0 !important;
        padding: 24px;
        background: var(--cb-dark);
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
    }

    .cabelec-header nav.active {
        display: flex;
    }

    .cabelec-header nav a {
        color: #ffffff !important;
        font-size: 14px !important;
    }

    .mobile-menu {
        display: block;
    }

    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .feature-card:nth-child(2) {
        border-right: 0;
    }
}

@media (max-width: 600px) {
    .cabelec-container {
        width: min(100% - 30px, 1180px);
    }

    .cabelec-header,
    .nav-wrap {
        height: 68px !important;
        min-height: 68px !important;
    }

    .brand,
    .proton-brand {
        width: 230px !important;
        height: 58px !important;
        flex-basis: 230px !important;
    }

    .proton-header-logo {
        width: 230px !important;
        max-width: 230px !important;
        height: 58px !important;
        max-height: 58px !important;
    }

    .cabelec-header nav {
        top: 68px;
    }

    .hero {
        min-height: 690px;
    }

    .hero-content {
        padding-top: 68px;
    }

    .hero h1 {
        font-size: 43px;
    }

    .hero p {
        font-size: 16px;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .feature-card {
        border-right: none;
        border-bottom: 1px solid #e6e9ed;
    }

    .features {
        margin-top: -35px;
    }
}

/* =========================================================
   PROTON MAIN HERO - SINGLE CLEAN RULESET
   ========================================================= */

.hero.proton-main-hero,
.cabelec-site .hero.proton-main-hero {
    position: relative;
    min-height: calc(100vh - 74px);
    padding-top: 74px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: #ffffff;
    background-image:
        linear-gradient(rgba(2,27,52,.58), rgba(2,31,60,.70)),
        url("/assets/proton_custom/website/images/proton-hero.png") !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-color: #052a50 !important;
}

.proton-main-hero .hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(
        90deg,
        rgba(0,25,50,.28) 0%,
        rgba(0,35,70,.05) 50%,
        rgba(0,25,50,.28) 100%
    );
}

.proton-main-hero .hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding-top: 10px;
    padding-bottom: 90px;
}

.proton-main-hero .hero-copy {
    width: 100%;
    max-width: 1150px;
    margin: 0 auto;
    text-align: center;
}


.proton-main-hero h1 {
    margin: 0 auto 22px !important;
    color: #ffffff !important;

    font-size: clamp(34px, 4vw, 54px) !important;
    line-height: 1.08 !important;
    font-weight: 800 !important;
    letter-spacing: -1px !important;

    text-shadow: 0 3px 15px rgba(0, 0, 0, 0.35);
}

.proton-main-hero h1 > span {
    display: block;
    color: #fdb719 !important;
    margin-top: 5px;
}

.proton-main-hero p {
    max-width: 800px;
    margin: 0 auto 32px !important;

    color: #ffffff !important;
    font-size: 17px !important;
    line-height: 1.55 !important;

    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.40);
}
.proton-main-hero .hero-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.proton-main-hero .btn-primary-cabelec,
.proton-main-hero .btn-outline-cabelec {
    min-width: 200px;
    padding: 17px 28px !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none !important;
    font-size: 16px;
    font-weight: 700;
    transition: .25s ease;
}

.proton-main-hero .btn-primary-cabelec {
    background: #fdb719 !important;
    border: 2px solid #fdb719 !important;
    color: #052a50 !important;
}

.proton-main-hero .btn-outline-cabelec {
    background: rgba(2,31,59,.30) !important;
    border: 2px solid #fff !important;
    color: #fff !important;
}

.proton-main-hero .btn-primary-cabelec:hover,
.proton-main-hero .btn-outline-cabelec:hover {
    background: #fff !important;
    border-color: #fff !important;
    color: #073b70 !important;
    transform: translateY(-2px);
}

.proton-main-hero .hero-actions a span {
    display: inline-block;
    margin-left: 6px;
    color: inherit !important;
}

.hero-scroll {
    position: absolute;
    z-index: 3;
    bottom: 25px;
    left: 50%;
    width: 32px;
    height: 48px;
    transform: translateX(-50%);
    border: 2px solid #fff;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff !important;
    text-decoration: none !important;
    font-size: 18px;
    animation: protonScroll 1.8s infinite;
}

@keyframes protonScroll {
    0%, 100% { transform: translate(-50%, 0); }
    50% { transform: translate(-50%, 7px); }
}

@media (max-width: 980px) {
    .proton-main-hero h1 { font-size: 48px !important; }
    .proton-main-hero p { font-size: 18px !important; }
}

@media (max-width: 600px) {
    .hero.proton-main-hero,
    .cabelec-site .hero.proton-main-hero {
        min-height: 650px;
        padding-top: 68px;
        background-position: center center !important;
    }

    .proton-main-hero .hero-content {
        padding-top: 25px;
        padding-bottom: 75px;
    }

    .proton-main-hero h1 {
        font-size: 36px !important;
        line-height: 1.10 !important;
        letter-spacing: -.5px !important;
    }

    .proton-main-hero p {
        font-size: 16px !important;
        line-height: 1.55 !important;
    }

    .proton-main-hero .hero-actions { flex-direction: column; }

    .proton-main-hero .btn-primary-cabelec,
    .proton-main-hero .btn-outline-cabelec {
        width: 100%;
        max-width: 280px;
    }
}

/* GLOBAL PUBLIC WEBSITE SCROLL FIX */

html {
    height: auto !important;
    min-height: 100% !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
}

body {
    height: auto !important;
    min-height: 100vh !important;
    max-height: none !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    position: static !important;
}

.cabelec-site {
    width: 100% !important;
    height: auto !important;
    min-height: 100vh !important;
    max-height: none !important;
    overflow: visible !important;
}

main,
.page-container,
.page-content,
.web-page-content,
.page-body {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
}

/* =========================================================
   PROTON HERO BACKGROUND ANIMATION
   ========================================================= */

.hero.proton-main-hero,
.cabelec-site .hero.proton-main-hero {
    position: relative !important;
    overflow: hidden !important;

    /* Remove background image from main hero itself */
    background-image: none !important;
    background-color: #052a50 !important;
}

/* Animated background image */
.hero.proton-main-hero::before,
.cabelec-site .hero.proton-main-hero::before {
    content: "" !important;

    position: absolute !important;
    top: -5% !important;
    left: -5% !important;

    width: 110% !important;
    height: 110% !important;

    background-image:
        linear-gradient(
            rgba(3, 31, 59, 0.35),
            rgba(3, 31, 59, 0.35)
        ),
        url("/assets/proton_custom/website/images/proton-hero.png") !important;

    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;

    z-index: 0 !important;

    animation: protonHeroZoom 12s ease-in-out infinite alternate !important;

    will-change: transform;
}

/* Keep existing overlay above animated image */
.proton-main-hero .hero-overlay {
    position: absolute !important;
    z-index: 1 !important;
}

/* Keep text/buttons above everything */
.proton-main-hero .hero-content {
    position: relative !important;
    z-index: 2 !important;
}

/* Keep scroll button visible */
.proton-main-hero .hero-scroll {
    z-index: 3 !important;
}

/* Slow cinematic zoom */
@keyframes protonHeroZoom {

    0% {
        transform: scale(1) translate3d(0, 0, 0);
    }

    50% {
        transform: scale(1.07) translate3d(-1%, -1%, 0);
    }

    100% {
        transform: scale(1.14) translate3d(1%, 1%, 0);
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {

    .hero.proton-main-hero::before,
    .cabelec-site .hero.proton-main-hero::before {
        animation: none !important;
        transform: scale(1) !important;
    }
}
