:root {
    --ink: #101827;
    --muted: #5f6875;
    --navy: #123462;
    --navy-deep: #081828;
    --blue: #2f6fae;
    --amber: #ba7f05;
    --green: #79b84a;
    --orange: #f47721;
    --soft: #f4f7f8;
    --line: #dbe3eb;
    --radius: 8px;
    --shadow: 0 18px 48px rgba(12, 34, 60, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    margin: 0;
    color: var(--ink);
    background: #ffffff;
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    color: var(--blue);
}

img {
    max-width: 100%;
}

.container {
    width: 100%;
    max-width: 1140px;
    margin-right: auto;
    margin-left: auto;
    padding-right: 0.75rem;
    padding-left: 0.75rem;
}

.row {
    --bs-gutter-x: 1.5rem;
    --bs-gutter-y: 0;
    display: flex;
    flex-wrap: wrap;
    margin-top: calc(-1 * var(--bs-gutter-y));
    margin-right: calc(-0.5 * var(--bs-gutter-x));
    margin-left: calc(-0.5 * var(--bs-gutter-x));
}

.row > * {
    flex-shrink: 0;
    width: 100%;
    max-width: 100%;
    margin-top: var(--bs-gutter-y);
    padding-right: calc(var(--bs-gutter-x) * 0.5);
    padding-left: calc(var(--bs-gutter-x) * 0.5);
}

.g-4 {
    --bs-gutter-x: 1.5rem;
    --bs-gutter-y: 1.5rem;
}

.g-5 {
    --bs-gutter-x: 3rem;
    --bs-gutter-y: 3rem;
}

.fixed-top {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1030;
}

.navbar {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.navbar > .container {
    display: flex;
    flex-wrap: inherit;
    align-items: center;
    justify-content: space-between;
}

.navbar-collapse {
    flex-basis: 100%;
    flex-grow: 1;
    align-items: center;
}

.collapse:not(.show) {
    display: none;
}

.navbar-nav {
    display: flex;
    flex-direction: column;
    margin-bottom: 0;
    padding-left: 0;
    list-style: none;
}

.navbar-toggler {
    padding: 0.45rem 0.65rem;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: var(--radius);
    color: rgba(255, 255, 255, 0.82);
    background: transparent;
}

.navbar-toggler-icon {
    display: inline-block;
    width: 1.5em;
    height: 1.5em;
    vertical-align: middle;
    background-image: linear-gradient(#fff, #fff), linear-gradient(#fff, #fff), linear-gradient(#fff, #fff);
    background-position: center 35%, center 50%, center 65%;
    background-repeat: no-repeat;
    background-size: 1.25em 2px;
}

.ms-auto {
    margin-left: auto;
}

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

.align-items-stretch {
    align-items: stretch;
}

.h-100 {
    height: 100%;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.7rem 1rem;
    border: 1px solid transparent;
    line-height: 1.2;
    text-align: center;
    cursor: pointer;
}

.btn-lg {
    min-height: 52px;
    padding: 0.9rem 1.25rem;
    font-size: 1rem;
}

.btn-outline-light {
    border-color: rgba(255, 255, 255, 0.78);
    color: #ffffff;
    background: transparent;
}

.btn-outline-light:hover,
.btn-outline-light:focus {
    background: #ffffff;
}

.text-amber {
    color: var(--amber);
}

.site-navbar {
    padding: 0.75rem 0;
    background: rgba(8, 24, 40, 0.72);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(14px);
    transition: background 180ms ease, padding 180ms ease, box-shadow 180ms ease;
}

.site-navbar.is-scrolled {
    padding: 0.45rem 0;
    background: rgba(8, 24, 40, 0.96);
    box-shadow: 0 14px 36px rgba(4, 14, 28, 0.22);
}

.navbar-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: #ffffff;
    font-weight: 800;
}

.navbar-brand:hover,
.navbar-brand:focus {
    color: #ffffff;
}

.brand-logo {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 6px;
}

.navbar-nav {
    gap: 0.35rem;
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.86);
    font-weight: 700;
    padding-inline: 0.85rem;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link:focus,
.navbar-dark .navbar-nav .nav-link.active {
    color: #f5b849;
}

.hero-section {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 78svh;
    padding: 7.75rem 0 4.5rem;
    color: #ffffff;
    overflow: hidden;
}

.hero-section::before,
.hero-section::after {
    position: absolute;
    inset: 0;
    content: "";
}

.hero-section::before {
    background-image: url("../img/hero-energy-infrastructure.png");
    background-position: center;
    background-size: cover;
    transform: scale(1.01);
}

.hero-section::after {
    background:
        linear-gradient(90deg, rgba(8, 24, 40, 0.93) 0%, rgba(8, 24, 40, 0.78) 42%, rgba(8, 24, 40, 0.22) 100%),
        linear-gradient(0deg, rgba(8, 24, 40, 0.38), rgba(8, 24, 40, 0.1));
}

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

.hero-logo {
    width: 104px;
    height: 104px;
    object-fit: cover;
    border-radius: var(--radius);
    margin-bottom: 1.25rem;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.26);
}

.eyebrow {
    margin: 0 0 0.7rem;
    color: var(--amber);
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.hero-section h1 {
    max-width: 780px;
    margin: 0;
    font-size: 4rem;
    line-height: 1.04;
    font-weight: 850;
}

.hero-lead {
    max-width: 760px;
    margin: 1.25rem 0 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 1.35rem;
    line-height: 1.45;
}

.hero-actions,
.contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 2rem;
}

.btn {
    border-radius: var(--radius);
    font-weight: 800;
    white-space: normal;
}

.btn i {
    margin-right: 0.5rem;
}

.btn-primary {
    background: var(--amber);
    border-color: var(--amber);
    color: #ffffff;
}

.btn-primary:hover,
.btn-primary:focus {
    background: #9f6900;
    border-color: #9f6900;
    color: #ffffff;
}

.btn-outline-light:hover,
.btn-outline-light:focus {
    color: var(--navy-deep);
}

.hero-points {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-top: 1.45rem;
}

.hero-points span {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 700;
}

.hero-points i {
    color: var(--green);
}

.stats-strip {
    background: var(--navy);
    color: #ffffff;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stat-item {
    min-height: 130px;
    padding: 1.65rem 1.25rem;
    border-left: 1px solid rgba(255, 255, 255, 0.14);
}

.stat-item:last-child {
    border-right: 1px solid rgba(255, 255, 255, 0.14);
}

.stat-item strong {
    display: block;
    color: #ffffff;
    font-size: 2.35rem;
    line-height: 1.1;
    font-weight: 850;
}

.stat-item span {
    display: block;
    margin-top: 0.65rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 700;
}

.section-pad {
    padding: 6rem 0;
}

.soft-section {
    background: var(--soft);
}

.section-heading {
    max-width: 780px;
    margin-bottom: 2.5rem;
}

h2 {
    margin: 0 0 1.15rem;
    color: var(--ink);
    font-size: 2.35rem;
    line-height: 1.16;
    font-weight: 850;
}

h3 {
    color: var(--ink);
    font-size: 1.25rem;
    line-height: 1.28;
    font-weight: 820;
}

.section-lead {
    color: #3d4652;
    font-size: 1.2rem;
    line-height: 1.58;
}

p {
    color: var(--muted);
}

.focus-panel {
    min-height: 100%;
    padding: 2rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: var(--shadow);
}

.focus-panel i {
    display: inline-flex;
    width: 54px;
    height: 54px;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.4rem;
    border-radius: var(--radius);
    color: #ffffff;
    background: var(--blue);
    font-size: 1.4rem;
}

.service-card {
    position: relative;
    padding: 1.65rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: 0 12px 34px rgba(18, 52, 98, 0.08);
}

.service-card::before {
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
    border-radius: var(--radius) 0 0 var(--radius);
    background: linear-gradient(180deg, var(--blue), var(--amber), var(--green));
    content: "";
}

.service-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.15rem;
}

.service-number {
    color: var(--navy);
    font-size: 2.25rem;
    line-height: 1;
    font-weight: 850;
}

.service-topline i {
    color: var(--amber);
    font-size: 1.55rem;
}

.service-list {
    display: grid;
    gap: 0.75rem;
    margin: 1.25rem 0 0;
    padding: 0;
    list-style: none;
}

.service-list li {
    position: relative;
    padding-left: 1.2rem;
    color: var(--muted);
}

.service-list li::before {
    position: absolute;
    left: 0;
    color: var(--amber);
    font-weight: 900;
    content: "›";
}

.credential-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 360px;
    padding: 2.25rem;
    border: 1px solid rgba(18, 52, 98, 0.14);
    border-radius: var(--radius);
    background: #ffffff;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.credential-panel::before {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(47, 111, 174, 0.12), rgba(121, 184, 74, 0.1) 55%, rgba(244, 119, 33, 0.1));
    content: "";
}

.credential-panel > * {
    position: relative;
    z-index: 2;
}

.credential-label {
    color: var(--navy);
    font-size: 3rem;
    line-height: 1;
    font-weight: 900;
}

.credential-panel strong {
    margin-top: 1.5rem;
    color: var(--ink);
    font-size: 1.35rem;
}

.credential-panel span:not(.credential-label) {
    margin-top: 0.7rem;
    color: var(--muted);
    font-weight: 800;
}

.credential-panel p {
    margin: 1rem 0 0;
    color: var(--amber);
    font-weight: 800;
}

.credential-panel i {
    position: absolute;
    right: 1.5rem;
    bottom: 1.2rem;
    z-index: 1;
    color: rgba(18, 52, 98, 0.08);
    font-size: 7rem;
}

.value-section {
    background: #ffffff;
}

.value-card {
    padding: 1.55rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #ffffff;
}

.value-card i {
    display: inline-flex;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.2rem;
    border-radius: var(--radius);
    color: var(--navy);
    background: #edf4fb;
    font-size: 1.25rem;
}

.col-md-6:nth-child(2n) .value-card i {
    color: #7c5400;
    background: #fff4dd;
}

.value-card h3 {
    margin-bottom: 0.75rem;
}

.value-card p {
    margin-bottom: 0;
}

.contact-section {
    padding: 6rem 0;
    color: #ffffff;
    background: linear-gradient(135deg, rgba(8, 24, 40, 0.98), rgba(18, 52, 98, 0.98));
}

.contact-section h2,
.contact-section p {
    color: #ffffff;
}

.contact-section p {
    max-width: 720px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
}

.contact-card {
    display: grid;
    gap: 1rem;
    margin: 0;
    padding: 1.65rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
}

.contact-card strong {
    font-size: 1.3rem;
}

.contact-card a,
.contact-card span {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    color: rgba(255, 255, 255, 0.86);
    word-break: break-word;
}

.contact-card a:hover,
.contact-card a:focus {
    color: #f5b849;
}

.contact-card i {
    width: 22px;
    margin-top: 0.25rem;
    color: #f5b849;
}

.site-footer {
    padding: 3rem 0 1.5rem;
    color: rgba(255, 255, 255, 0.76);
    background: #06111f;
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(220px, 0.8fr);
    gap: 2rem;
    align-items: center;
}

.footer-logo {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 1rem;
}

.site-footer p {
    max-width: 620px;
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem 1rem;
    justify-content: flex-end;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.78);
    font-weight: 700;
}

.footer-links a:hover,
.footer-links a:focus {
    color: #f5b849;
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.55);
}

.back-to-top {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 20;
    display: inline-flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: var(--radius);
    color: #ffffff;
    background: var(--navy);
    box-shadow: 0 12px 30px rgba(8, 24, 40, 0.25);
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity 180ms ease, transform 180ms ease;
}

.back-to-top.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.back-to-top:hover,
.back-to-top:focus {
    background: var(--amber);
}

@media (max-width: 991.98px) {
    .site-navbar {
        background: rgba(8, 24, 40, 0.96);
    }

    .navbar-collapse {
        padding: 1rem 0 0.4rem;
    }

    .hero-section {
        min-height: 74svh;
        padding: 6.75rem 0 3.25rem;
    }

    .hero-section h1 {
        font-size: 3rem;
    }

    .hero-lead {
        font-size: 1.18rem;
    }

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

    .stat-item:nth-child(2n) {
        border-right: 1px solid rgba(255, 255, 255, 0.14);
    }

    .section-pad,
    .contact-section {
        padding: 4.5rem 0;
    }

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

    .footer-links {
        justify-content: flex-start;
    }
}

@media (min-width: 768px) {
    .col-md-6 {
        flex: 0 0 auto;
        width: 50%;
    }
}

@media (min-width: 992px) {
    .navbar-expand-lg {
        flex-wrap: nowrap;
        justify-content: flex-start;
    }

    .navbar-expand-lg .navbar-collapse {
        display: flex !important;
        flex-basis: auto;
    }

    .navbar-expand-lg .navbar-toggler {
        display: none;
    }

    .navbar-expand-lg .navbar-nav {
        flex-direction: row;
    }

    .align-items-lg-center {
        align-items: center;
    }

    .col-lg-4 {
        flex: 0 0 auto;
        width: 33.33333333%;
    }

    .col-lg-5 {
        flex: 0 0 auto;
        width: 41.66666667%;
    }

    .col-lg-7 {
        flex: 0 0 auto;
        width: 58.33333333%;
    }

    .col-lg-8 {
        flex: 0 0 auto;
        width: 66.66666667%;
    }
}

@media (min-width: 1200px) {
    .col-xl-3 {
        flex: 0 0 auto;
        width: 25%;
    }

    .col-xl-7 {
        flex: 0 0 auto;
        width: 58.33333333%;
    }
}

@media (max-width: 575.98px) {
    .navbar-brand span {
        max-width: 170px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .brand-logo {
        width: 42px;
        height: 42px;
    }

    .hero-section {
        min-height: 70svh;
        padding: 5.75rem 0 2.75rem;
    }

    .hero-logo {
        display: none;
    }

    .hero-section h1 {
        font-size: 2.35rem;
    }

    .hero-actions .btn,
    .contact-actions .btn {
        width: 100%;
    }

    .hero-points {
        display: grid;
        gap: 0.55rem;
    }

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

    .stat-item,
    .stat-item:last-child,
    .stat-item:nth-child(2n) {
        min-height: 108px;
        border-right: 1px solid rgba(255, 255, 255, 0.14);
    }

    .stat-item strong {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.85rem;
    }

    .section-lead {
        font-size: 1.08rem;
    }

    .focus-panel,
    .service-card,
    .credential-panel,
    .value-card,
    .contact-card {
        padding: 1.25rem;
    }

    .credential-label {
        font-size: 2.35rem;
    }
}
