
/* ==================================================
   1. WEBSITE COLORS AND BASIC SETTINGS
   Change these values to customize the design.
   ================================================== */

:root {
    --navy: #0b1729;
    --navy-light: #12243c;
    --blue: #2f80ed;
    --blue-light: #64b5ff;
    --white: #ffffff;
    --text: #17283f;
    --muted: #68788c;
    --background: #f4f7fb;
    --border: #e0e7ef;
}


/* Reset browser default spacing */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(1180px, 90%);
    margin: 0 auto;
}


/* ==================================================
   2. HEADER
   ================================================== */

.site-header {
    background: var(--navy);
    color: var(--white);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 10;
}

.header-content {
    min-height: 88px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 13px;
}

.brand-icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    background: var(--blue);
    color: white;
    font-size: 25px;
    border-radius: 10px;
}

.brand-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.brand-text strong {
    font-size: 16px;
    letter-spacing: 1px;
}

.brand-text small {
    color: #a9bbd1;
    font-size: 9px;
    letter-spacing: 1.5px;
}

.header-link {
    font-size: 13px;
    color: #e1eaf5;
    transition: color 0.25s ease;
}

.header-link span {
    color: var(--blue-light);
    margin-left: 6px;
}

.header-link:hover {
    color: var(--blue-light);
}


/* ==================================================
   3. HERO SECTION
   The background uses CSS gradients, so it works
   even when you have not added photographs yet.
   ================================================== */

.hero {
    position: relative;
    overflow: hidden;
    min-height: 510px;
    display: flex;
    align-items: center;
    color: var(--white);

    background:
        radial-gradient(
            ellipse at 80% 35%,
            rgba(47, 128, 237, 0.28),
            transparent 38%
        ),
        linear-gradient(
            115deg,
            #0b1729 0%,
            #102640 55%,
            #183958 100%
        );
}

/* Decorative technical grid */

.hero::before {
    content: "";
    position: absolute;
    inset: 0;

    background-image:
        linear-gradient(
            rgba(255, 255, 255, 0.045) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.045) 1px,
            transparent 1px
        );

    background-size: 48px 48px;
    mask-image: linear-gradient(
        90deg,
        black,
        transparent 95%
    );
    pointer-events: none;
}

.hero-overlay {
    position: absolute;
    right: -100px;
    top: 30px;
    width: 440px;
    height: 440px;
    border: 1px solid rgba(100, 181, 255, 0.14);
    border-radius: 50%;
    pointer-events: none;
}

.hero-overlay::after {
    content: "";
    position: absolute;
    inset: 35px;
    border: 1px solid rgba(100, 181, 255, 0.14);
    border-radius: 50%;
}

.hero-content {
    position: relative;
    z-index: 1;
    padding-top: 78px;
    padding-bottom: 65px;
}

.eyebrow {
    display: inline-block;
    color: var(--blue-light);
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 2.5px;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: clamp(36px, 5vw, 61px);
    line-height: 1.13;
    letter-spacing: -1.7px;
    max-width: 850px;
    margin-bottom: 24px;
}

.hero h1 span {
    color: var(--blue-light);
}

.hero-description {
    max-width: 610px;
    color: #c0cddd;
    font-size: 16px;
    line-height: 1.9;
    margin-bottom: 30px;
}

.primary-button {
    display: inline-flex;
    align-items: center;
    gap: 22px;
    background: var(--blue);
    color: white;
    padding: 15px 22px;
    border-radius: 5px;
    font-size: 13px;
    font-weight: bold;
    transition:
        background 0.25s ease,
        transform 0.25s ease;
}

.primary-button:hover {
    background: #1769d2;
    transform: translateY(-2px);
}

.primary-button span {
    font-size: 18px;
}

.hero-caption {
    margin-top: 47px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    max-width: 440px;
    color: #8fa6bf;
    font-size: 10px;
    letter-spacing: 2px;
}


/* ==================================================
   4. BUSINESS SECTION
   ================================================== */

.business-section {
    padding: 85px 0 75px;
    background: var(--background);
}

.section-heading {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 42px;
}

.section-heading .eyebrow {
    color: var(--blue);
    margin-bottom: 12px;
}

.section-heading h2 {
    font-size: clamp(30px, 4vw, 43px);
    line-height: 1.2;
    letter-spacing: -1px;
    color: var(--navy);
    margin-bottom: 15px;
}

.section-heading h2 span {
    color: var(--blue);
}

.section-heading p {
    color: var(--muted);
    font-size: 15px;
}


/* Two equal-width company cards */

.business-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    align-items: stretch;
}

.business-card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 9px;
    overflow: hidden;

    box-shadow: 0 8px 28px rgba(14, 38, 67, 0.05);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}

.business-card:hover {
    transform: translateY(-7px);
    border-color: #b8d7ff;
    box-shadow: 0 18px 40px rgba(14, 38, 67, 0.12);
}


/* ==================================================
   5. CARD VISUALS
   These CSS visuals do not require external images.
   You can replace them with real company photographs.
   ================================================== */

.card-image {
    position: relative;
    min-height: 245px;
    overflow: hidden;

    display: flex;
    align-items: flex-end;
    padding: 23px;

    background-color: var(--navy-light);
    background-size: cover;
    background-position: center;
}

.switchgear-image {
    background-image:
        linear-gradient(
            0deg,
            rgba(6, 17, 32, 0.65),
            rgba(6, 17, 32, 0.05)
        ),
        url("images/switchgear.jpg");
}

/* Decorative switchgear panel illustration */

.switchgear-image::before {
    content: "";
    position: absolute;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: 43%;
    height: 145px;

    border: 2px solid rgba(255, 255, 255, 0.48);
    border-radius: 4px;

    background:
        radial-gradient(
            circle at 20% 18%,
            #68c5ff 0 4px,
            transparent 5px
        ),
        radial-gradient(
            circle at 50% 18%,
            #68c5ff 0 4px,
            transparent 5px
        ),
        radial-gradient(
            circle at 80% 18%,
            #68c5ff 0 4px,
            transparent 5px
        ),
        repeating-linear-gradient(
            90deg,
            transparent 0 31%,
            rgba(255, 255, 255, 0.18) 32% 33%,
            transparent 34% 100%
        ),
        linear-gradient(
            110deg,
            #263f57,
            #50728c,
            #1a3046
        );

    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
    transition: transform 0.4s ease;
}

.switchgear-image::after {
    content: "";
    position: absolute;
    top: 24px;
    left: calc(50% + 25px);
    width: 1px;
    height: 145px;
    background: rgba(255, 255, 255, 0.2);
    pointer-events: none;
}


/* Trading card uses a distinct geometric visual */

.trading-image {
    background-image:
        linear-gradient(
            0deg,
            rgba(6, 17, 32, 0.65),
            rgba(6, 17, 32, 0.05)
        ),
        url("images/trading.jpg");
}
/* Disable the old CSS illustrations */

.switchgear-image::before,
.switchgear-image::after,
.trading-image::before,
.trading-image::after {
    content: none;
}


/* Make the photos fill the image area */

.card-image {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.trading-image::before {
    content: "";
    position: absolute;
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 54%;
    height: 110px;

    background:
        linear-gradient(
            90deg,
            transparent 0 8%,
            rgba(255, 255, 255, 0.18) 8% 10%,
            transparent 10% 45%,
            rgba(255, 255, 255, 0.18) 45% 47%,
            transparent 47% 90%,
            rgba(255, 255, 255, 0.18) 90% 92%,
            transparent 92%
        ),
        linear-gradient(
            180deg,
            #56788f,
            #253e56
        );

    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: 5px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
}

.trading-image::after {
    content: "";
    position: absolute;
    top: 59px;
    left: 50%;
    transform: translateX(-50%);
    width: 43%;
    height: 73px;

    background:
        repeating-linear-gradient(
            90deg,
            transparent 0 24%,
            rgba(255, 255, 255, 0.38) 25% 26%,
            transparent 27% 100%
        );

    border-top: 1px solid rgba(255, 255, 255, 0.25);
    pointer-events: none;
}


/* Card labels */

.card-number {
    position: absolute;
    top: 20px;
    left: 22px;
    z-index: 1;

    color: #d5e6f8;
    font-size: 10px;
    font-weight: bold;
    letter-spacing: 1.7px;
}

.image-label {
    position: relative;
    z-index: 1;

    display: flex;
    align-items: center;
    gap: 10px;

    color: white;
    font-size: 10px;
    letter-spacing: 2px;
    font-weight: bold;
}

.image-label-icon {
    display: grid;
    place-items: center;
    width: 31px;
    height: 31px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    color: var(--blue-light);
    font-size: 19px;
}

.business-card:hover .switchgear-image::before,
.business-card:hover .trading-image::before {
    filter: brightness(1.12);
}


/* ==================================================
   6. CARD TEXT AND LINKS
   ================================================== */

.card-content {
    flex: 1;
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.card-category {
    color: var(--blue);
    font-size: 10px;
    font-weight: bold;
    letter-spacing: 1.8px;
    margin-bottom: 11px;
}

.card-content h3 {
    color: var(--navy);
    font-size: 23px;
    line-height: 1.35;
    margin-bottom: 13px;
}

.card-content p {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.85;
    margin-bottom: 25px;
}

.card-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    width: 100%;
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid var(--border);

    color: var(--navy);
    font-size: 13px;
    font-weight: bold;
    transition: color 0.25s ease;
}

.card-link span {
    color: var(--blue);
    font-size: 19px;
    transition: transform 0.25s ease;
}

.business-card:hover .card-link {
    color: var(--blue);
}

.business-card:hover .card-link span {
    transform: translate(3px, -3px);
}


/* ==================================================
   7. BOTTOM NOTE
   ================================================== */

.bottom-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 17px;
    margin-top: 40px;
}

.bottom-note p {
    color: var(--muted);
    font-size: 12px;
    text-align: center;
}

.note-line {
    width: 38px;
    height: 1px;
    background: #ccd8e6;
}


/* ==================================================
   8. FOOTER
   ================================================== */

.site-footer {
    background: var(--navy);
    color: white;
    padding: 28px 0;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.footer-brand strong {
    font-size: 13px;
    letter-spacing: 1px;
}

.footer-brand p {
    color: #a7b8cc;
    font-size: 11px;
    margin-top: 3px;
}

.copyright {
    color: #a7b8cc;
    font-size: 11px;
    text-align: right;
}


/* ==================================================
   9. KEYBOARD ACCESSIBILITY
   ================================================== */

a:focus-visible {
    outline: 3px solid var(--blue-light);
    outline-offset: 4px;
}


/* ==================================================
   10. TABLET AND MOBILE RESPONSIVENESS
   ================================================== */

@media (max-width: 800px) {

    .hero {
        min-height: 460px;
    }

    .hero-content {
        padding-top: 65px;
        padding-bottom: 55px;
    }

    .business-grid {
        gap: 18px;
    }

    .card-content {
        padding: 23px;
    }

    .card-image {
        min-height: 210px;
    }

    .card-content h3 {
        font-size: 20px;
    }

    .footer-content {
        align-items: flex-start;
        flex-direction: column;
    }

    .copyright {
        text-align: left;
    }
}


@media (max-width: 600px) {

    .header-content {
        min-height: 76px;
    }

    .brand-icon {
        width: 38px;
        height: 38px;
    }

    .brand-text strong {
        font-size: 13px;
    }

    .brand-text small {
        font-size: 8px;
        letter-spacing: 0.8px;
    }

    .header-link {
        max-width: 105px;
        font-size: 11px;
        text-align: right;
    }

    .hero {
        min-height: auto;
    }

    .hero-content {
        padding-top: 65px;
        padding-bottom: 45px;
    }

    .hero h1 {
        font-size: 37px;
        letter-spacing: -1px;
    }

    .hero-description {
        font-size: 14px;
    }

    .hero-caption {
        font-size: 9px;
        line-height: 1.8;
    }

    .business-section {
        padding: 60px 0 50px;
    }

    .section-heading {
        margin-bottom: 30px;
    }

    .business-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .card-image {
        min-height: 230px;
    }

    .card-content {
        padding: 25px;
    }

    .bottom-note {
        gap: 9px;
    }

    .note-line {
        width: 20px;
    }

    .bottom-note p {
        font-size: 10px;
    }
}


/* Respect visitors who prefer reduced motion */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* HEADER CONTACT DETAILS */

.header-right {
    display: flex;
    align-items: center;
    gap: 25px;
}

.header-contact {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.header-contact a {
    color: #c0cddd;
    font-size: 11px;
    transition: color 0.2s ease;
}

.header-contact a:hover,
.footer-contact a:hover {
    color: var(--blue-light);
}


/* FOOTER CONTACT DETAILS */

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.footer-contact a {
    color: #c0cddd;
    font-size: 12px;
    transition: color 0.2s ease;
}


/* MOBILE HEADER AND FOOTER */

@media (max-width: 800px) {

    .header-content {
        flex-wrap: wrap;
        padding-top: 14px;
        padding-bottom: 14px;
    }

    .header-right {
        flex-wrap: wrap;
        gap: 15px;
    }

    .header-contact a {
        font-size: 10px;
    }

    .footer-contact {
        margin: 5px 0;
    }
}

@media (max-width: 480px) {

    .header-content {
        align-items: flex-start;
    }

    .header-right {
        width: 100%;
        justify-content: space-between;
    }

    .header-contact a {
        overflow-wrap: anywhere;
    }
}

/* REMOVE OLD BOX ILLUSTRATION FROM TRADING PHOTO */

.trading-image::before,
.trading-image::after {
    display: none !important;
    content: none !important;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
}

/* ENGINEERING CATEGORY — BLUE */

.business-card:has(.switchgear-image) .card-category {
    color: #2f80ed !important;
}


/* TRADING & DISTRIBUTION CATEGORY — RED */

.business-card:has(.trading-image) .card-category {
    color: #c6283d !important;
}

/* =========================================
   BUSINESS 01 — ENGINEERING: NAVY BLUE THEME
   ========================================= */

.switchgear-image {
    background-color: #0b1729;
    background-image:
        linear-gradient(
            0deg,
            rgba(5, 18, 40, 0.35),
            rgba(5, 18, 40, 0.05)
        ),
        url("images/switchgear.jpg");
    background-size: cover;
    background-position: center;
    border-bottom: 3px solid #2f80ed;
}

.business-card:has(.switchgear-image) {
    border-color: #183c64;
}

.business-card:has(.switchgear-image) .card-category {
    color: #2f80ed;
}

.business-card:has(.switchgear-image) .card-link span {
    color: #2f80ed;
}


/* =========================================
   BUSINESS 02 — SUPPLY: PREMIUM RED THEME
   ========================================= */

.trading-image {
    background-color: #641c28;
    background-image:
        linear-gradient(
            0deg,
            rgba(65, 8, 20, 0.35),
            rgba(65, 8, 20, 0.05)
        ),
        url("images/trading.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-bottom: 3px solid #c6283d;
}

/* Red border around the Supply card */

.business-card:has(.trading-image) {
    border-color: #e5bdc3;
}

/* Red category label */

.business-card:has(.trading-image) .card-category {
    color: #bd263b;
}

/* Red visit arrow */

.business-card:has(.trading-image) .card-link span {
    color: #bd263b;
}

/* Red hover highlight */

.business-card:has(.trading-image):hover {
    border-color: #c6283d;
    box-shadow: 0 18px 40px rgba(155, 24, 45, 0.15);
}

/* SWITCHGEAR COMPANY NAME — BLUE */
#switchgear-name {
    color: #2f80ed !important;
}

/* TRADING COMPANY NAME — RED */
#trading-name {
    color: #c6283d !important;
}

img.brand-mark {
    width: 44px;
    height: 44px;
    object-fit: contain;
    flex-shrink: 0;
    background: transparent;
    border-radius: 0;
}

/* Keep email, phone and Instagram in one row */
.header-contact {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: 16px;
}

.instagram-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    margin-left: 4px;
}

/* Instagram icon in the top header */
.instagram-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    transition: color 0.25s ease, background 0.25s ease;
    flex-shrink: 0;
}

.instagram-link svg {
    width: 23px;
    height: 23px;
}

.instagram-link:hover {
    color: #e1306c;
    background: rgba(255, 255, 255, 0.12);
}

