/* Servenergy corporate UI layer — loaded after the template styles. */
:root {
    --se-navy-950: #071a2d;
    --se-navy-900: #0b2743;
    --se-navy-800: #123a60;
    --se-blue-600: #1769e0;
    --se-blue-500: #2b7cf0;
    --se-teal-500: #12a39d;
    --se-ink: #16283b;
    --se-muted: #617184;
    --se-line: #dce5ef;
    --se-surface: #f4f7fb;
    --se-white: #ffffff;
    --se-shadow-sm: 0 8px 26px rgba(7, 26, 45, 0.07);
    --se-shadow-lg: 0 22px 55px rgba(7, 26, 45, 0.14);
    --se-radius-sm: 10px;
    --se-radius-md: 16px;
    --se-radius-lg: 24px;
}

html {
    scroll-behavior: smooth;
}

body {
    color: var(--se-ink);
    background: var(--se-white);
    font-family: "Roboto", sans-serif;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--se-navy-950);
    font-family: "Poppins", sans-serif;
    letter-spacing: -0.025em;
    padding-left: inherit;
}

p,
li {
    color: var(--se-muted);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid rgba(43, 124, 240, 0.35);
    outline-offset: 3px;
}

/* Header */
.header {
    min-height: 78px;
    padding: 10px 0 !important;
    border-bottom: 1px solid rgba(220, 229, 239, 0.75);
    background: rgba(0, 27, 36, 0.94) !important;
    box-shadow: 0 4px 24px rgba(7, 26, 45, 0.05);
    backdrop-filter: blur(18px);
}

.header .container {
    max-width: 1320px;
}

.header .logo img {
    width: auto !important;
    max-width: 210px;
    max-height: 54px !important;
    object-fit: contain;
}

.navmenu a,
.navmenu a:focus {
    color: #eaeaea !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    letter-spacing: 0.01em;
}

.navmenu a:hover,
.navmenu .active,
.navmenu .active:focus {
    color: var(--se-blue-600) !important;
}

.navmenu > ul > li > a::after {
    height: 2px !important;
    background: var(--se-white-600) !important;
}

.header-icons {
    gap: 10px !important;
    margin-left: 18px !important;
}

.header-icon {
    width: 38px !important;
    height: 38px !important;
    border: 1px solid var(--se-line);
    border-radius: 10px;
    color: var(--se-navy-800) !important;
    background: var(--se-white);
    transition: 0.2s ease;
}

.header-icon:hover {
    border-color: var(--se-blue-600);
    color: var(--se-white) !important;
    background: var(--se-blue-600) !important;
    transform: translateY(-2px);
}

/* Shared sections */
.section {
    padding: 96px 0 !important;
}

.section:nth-of-type(even) {
    background-color: var(--se-surface);
}

.section-title {
    /*max-width: 820px; */
    margin: 0 auto 48px !important;
    padding: 0 20px !important;
    text-align: center;
}

.section-title h2 {
    margin-bottom: 18px !important;
    font-size: clamp(30px, 4vw, 44px) !important;
    font-weight: 700 !important;
    line-height: 1.18;
}

.section-title h2::after {
    width: 54px !important;
    height: 3px !important;
    margin: 16px auto 0 !important;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--se-blue-600), var(--se-teal-500)) !important;
}

.section-title p,
.section-title .about-description,
.section-title .services-description,
.section-title .products-description,
.section-title .projects-description,
.section-title .contact-description {
    color: var(--se-muted);
    font-size: 17px;
    line-height: 1.8;
}

.section-title p:last-child,
.section-title div > p:last-child {
    margin-bottom: 0;
}

/* Preserve alignment selected in the Quill rich-text editor. */
.rich-text-content .ql-align-center,
.about-description .ql-align-center {
    text-align: center;
}

.rich-text-content .ql-align-right,
.about-description .ql-align-right {
    text-align: right;
}

.rich-text-content .ql-align-justify,
.about-description .ql-align-justify {
    text-align: justify;
    text-justify: inter-word;
}

.rich-text-content .ql-direction-rtl,
.about-description .ql-direction-rtl {
    direction: rtl;
}

/* Home hero */
.index-page .hero {
    min-height: 760px !important;
    padding: 180px 0 125px !important;
    isolation: isolate;
}

.index-page .hero::before {
    z-index: 1 !important;
    background:
        linear-gradient(90deg, rgba(7, 26, 45, 0.96) 0%, rgba(7, 26, 45, 0.84) 48%, rgba(7, 26, 45, 0.42) 100%) !important;
}

.index-page .hero::after {
    z-index: 1 !important;
    background:
        radial-gradient(circle at 75% 18%, rgba(43, 124, 240, 0.3), transparent 34%),
        linear-gradient(145deg, transparent 58%, rgba(18, 163, 157, 0.18));
}

.index-page .hero img {
    filter: saturate(0.82) contrast(1.06);
}

.home-hero-content {
    position: relative;
    z-index: 3 !important;
    max-width: 1320px !important;
}

.home-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    color: #cfe5ff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.home-hero-eyebrow span {
    width: 34px;
    height: 2px;
    background: var(--se-teal-500);
}

.index-page .hero h2 {
    max-width: 850px;
    margin: 0 18px 24px !important;
    color: var(--se-white) !important;
    font-size: clamp(44px, 6vw, 76px) !important;
    font-weight: 700 !important;
    line-height: 1.07 !important;
    text-align: left !important;
    text-wrap: balance;
}

.index-page .hero .hero-description {
    max-width: 720px;
    color: #dce8f5;
    font-size: clamp(17px, 2vw, 20px) !important;
    line-height: 1.75;
    text-align: left;
    margin: 0 18px 0 !important;

}

.index-page .hero .hero-description p {
    color: inherit;
    margin-bottom: 0;
}

.index-page .hero .d-flex.gap-3 {
    align-items: center;
    flex-wrap: wrap;
    gap: 18px !important;
    margin: 0 18px 0 !important;

}

.btn-get-started,
.read-more,
.uniform-btn {
    border-radius: 10px !important;
    font-weight: 700 !important;
    letter-spacing: 0.01em;
}

.index-page .hero .btn-get-started {
    padding: 15px 26px !important;
    border: 1px solid var(--se-blue-500) !important;
    background: var(--se-blue-600) !important;
    box-shadow: 0 12px 30px rgba(23, 105, 224, 0.3);
}

.index-page .hero .btn-get-started:hover {
    border-color: var(--se-blue-500) !important;
    background: var(--se-blue-500) !important;
    transform: translateY(-2px);
}

.home-hero-secondary {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 14px 5px;
    color: var(--se-white) !important;
    font-weight: 700;
    text-decoration: none;
}

.home-hero-secondary:hover {
    color: #a9d7ff !important;
}

/* Credibility strip */
.home-trust-strip {
    position: relative;
    z-index: 5;
    margin-top: -54px;
    padding: 0 0 18px;
    background: transparent;
}

.home-trust-grid {
    display: grid;
    grid-template-columns: repeat(3, 0.8fr) 1.6fr;
    overflow: hidden;
    border: 1px solid rgba(220, 229, 239, 0.85);
    border-radius: var(--se-radius-md);
    background: var(--se-white);
    box-shadow: var(--se-shadow-lg);
}

.home-trust-item {
    display: flex;
    min-height: 108px;
    padding: 22px 25px;
    border-right: 1px solid var(--se-line);
    flex-direction: column;
    justify-content: center;
}

.home-trust-item:last-child {
    border-right: 0;
}

.home-trust-item strong {
    color: var(--se-navy-900);
    font-family: "Poppins", sans-serif;
    font-size: 28px;
    line-height: 1;
}

.home-trust-item span {
    margin-top: 9px;
    color: var(--se-muted);
    font-size: 13px;
    font-weight: 600;
}

.home-trust-statement {
    display: flex;
    background: linear-gradient(135deg, #f0f6ff, #eefbfa);
    flex-direction: row;
    align-items: center;
    gap: 15px;
}

.home-trust-statement i {
    color: var(--se-teal-500);
    font-size: 31px;
}

.home-trust-statement span {
    margin-top: 0;
    color: var(--se-navy-800);
    font-size: 15px;
}

/* Corporate cards */
.uniform-content {
    overflow: hidden !important;
    border: 1px solid var(--se-line) !important;
    border-radius: var(--se-radius-md) !important;
    background: var(--se-white) !important;
    box-shadow: var(--se-shadow-sm) !important;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease !important;
}

.uniform-content:hover {
    border-color: rgba(23, 105, 224, 0.35) !important;
    box-shadow: var(--se-shadow-lg) !important;
    transform: translateY(-7px) !important;
}

.uniform-image-area,
.uniform-icon-area {
    height: 230px !important;
    background: linear-gradient(145deg, #eef4fb, #f8fafc) !important;
}

.uniform-image-area img {
    transition: transform 0.45s ease;
}

.uniform-content:hover .uniform-image-area img {
    transform: scale(1.035);
}

.uniform-icon-area i,
.uniform-placeholder i {
    color: var(--se-blue-600) !important;
    font-size: 54px !important;
}

.uniform-info {
    padding: 26px 25px 25px !important;
}

.uniform-category {
    padding: 6px 10px !important;
    border-radius: 999px !important;
    color: var(--se-blue-600) !important;
    background: #eaf2ff !important;
    font-size: 11px !important;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.uniform-info h3 {
    color: var(--se-navy-950) !important;
    font-size: 21px !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
}

.uniform-description,
.uniform-description p {
    color: var(--se-muted) !important;
    font-size: 15px !important;
    line-height: 1.7 !important;
}

.uniform-btn,
.read-more {
    color: var(--se-blue-600) !important;
    background: transparent !important;
    padding: 10px 0 !important;
}

.uniform-btn:hover,
.read-more:hover {
    color: var(--se-navy-900) !important;
    background: transparent !important;
}

/* Contact and footer */
.contact .info-item {
    height: 100%;
    padding: 28px !important;
    border: 1px solid var(--se-line);
    border-radius: var(--se-radius-md) !important;
    background: var(--se-white) !important;
    box-shadow: var(--se-shadow-sm);
}

.contact .info-item i {
    color: var(--se-blue-600) !important;
    background: #eaf2ff !important;
}

.footer {
    background: var(--se-navy-950) !important;
}

.footer .footer-top {
    padding-top: 72px !important;
    padding-bottom: 54px !important;
}

.footer h4 {
    color: var(--se-white) !important;
    font-size: 16px !important;
}

.footer p,
.footer a,
.footer span {
    color: #aebfd0 !important;
}

.footer a:hover {
    color: var(--se-white) !important;
}

.footer .social-links a {
    border-color: rgba(255, 255, 255, 0.18) !important;
}

@media (max-width: 1199px) {
    .header-icons {
        margin-right: 48px;
    }

    .navmenu ul {
        border-radius: 14px !important;
        box-shadow: var(--se-shadow-lg);
    }

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

    .home-trust-item:nth-child(2) {
        border-right: 0;
    }

    .home-trust-item:nth-child(-n+2) {
        border-bottom: 1px solid var(--se-line);
    }
}

@media (max-width: 767px) {
    .section {
        padding: 72px 0 !important;
    }

    .header {
        min-height: 68px;
    }

    .header .logo img {
        max-width: 158px;
        max-height: 44px !important;
    }

    .header-icons {
        gap: 6px !important;
        margin-left: 8px !important;
        margin-right: 42px;
    }

    .header-icon {
        width: 34px !important;
        height: 34px !important;
    }

    .index-page .hero {
        min-height: 690px !important;
        padding: 145px 0 110px !important;
    }

    .index-page .hero::before {
        background: rgba(7, 26, 45, 0.88) !important;
    }

    .index-page .hero h2 {
        font-size: clamp(38px, 12vw, 54px) !important;
    }

    .home-hero-eyebrow {
        font-size: 11px;
        letter-spacing: 0.09em;
    }

    .home-trust-strip {
        margin-top: -35px;
    }

    .home-trust-grid {
        grid-template-columns: 1fr;
    }

    .home-trust-item {
        min-height: 88px;
        border-right: 0;
        border-bottom: 1px solid var(--se-line);
    }

    .home-trust-item:last-child {
        border-bottom: 0;
    }

    .home-trust-statement {
        justify-content: flex-start;
    }

    .uniform-image-area,
    .uniform-icon-area {
        height: 210px !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* =========================================================
   HOMEPAGE V2 — STRONGER COLOUR BALANCE AND HERO LEGIBILITY
   Scoped to .index-page so inner pages remain unchanged.
========================================================= */

.index-page .hero::before {
    background:
        linear-gradient(
            90deg,
            rgba(4, 17, 31, 0.985) 0%,
            rgba(5, 25, 44, 0.95) 38%,
            rgba(7, 31, 54, 0.78) 68%,
            rgba(4, 18, 33, 0.68) 100%
        ) !important;
}

.index-page .hero::after {
    background:
        radial-gradient(circle at 78% 22%, rgba(43, 124, 240, 0.22), transparent 30%),
        linear-gradient(180deg, rgba(3, 14, 27, 0.08) 40%, rgba(3, 14, 27, 0.56) 100%) !important;
}

.index-page .hero img {
    filter: saturate(0.75) contrast(1.08) brightness(0.82) !important;
}

.index-page .home-hero-content::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: 50%;
    left: 12px;
    width: min(900px, calc(100% - 24px));
    height: calc(100% + 74px);
    border-left: 3px solid var(--se-teal-500);
    border-radius: 0 22px 22px 0;
    background: linear-gradient(90deg, rgba(4, 17, 31, 0.46), rgba(4, 17, 31, 0.08));
    transform: translateY(-50%);
    backdrop-filter: blur(2px);
}

.index-page .hero h2 {
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.78) !important;
}

.index-page .hero .hero-description,
.index-page .hero .hero-description p {
    color: #edf6ff !important;
    font-weight: 400;
    text-shadow: 0 2px 13px rgba(0, 0, 0, 0.76);
}

.index-page .home-hero-eyebrow {
    color: #e0f1ff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.65);
}

/* Dark credibility panel replaces the large white band below the banner. */
.index-page .home-trust-grid {
    border-color: rgba(118, 155, 190, 0.24);
    background: var(--se-navy-900);
    box-shadow: 0 24px 55px rgba(4, 17, 31, 0.3);
}

.index-page .home-trust-item {
    border-color: rgba(184, 210, 234, 0.15);
    background: linear-gradient(145deg, #0b2947, #103554);
}

.index-page .home-trust-item strong {
    color: #ffffff;
}

.index-page .home-trust-item span {
    color: #bdd0e2;
}

.index-page .home-trust-statement {
    background: linear-gradient(135deg, #11667b, #0c817e);
}

.index-page .home-trust-statement i,
.index-page .home-trust-statement span {
    color: #ffffff;
}

/* Alternating corporate backgrounds create clear section separation. */
.index-page #about {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 8% 15%, rgba(43, 124, 240, 0.22), transparent 25%),
        radial-gradient(circle at 92% 80%, rgba(18, 163, 157, 0.18), transparent 25%),
        linear-gradient(135deg, #0a223a 0%, #0f3558 58%, #0b2947 100%) !important;
}

.index-page #about::after {
    content: "";
    position: absolute;
    right: -95px;
    bottom: -125px;
    width: 330px;
    height: 330px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 50%;
    box-shadow:
        0 0 0 48px rgba(255, 255, 255, 0.025),
        0 0 0 96px rgba(255, 255, 255, 0.018);
}

.index-page #about .container {
    position: relative;
    z-index: 1;
}

.index-page #about .section-title h2 {
    color: #ffffff !important;
}

.index-page #about .section-title .about-description,
.index-page #about .section-title .about-description p,
.index-page #about .section-title .about-description li {
    color: #cbdbea !important;
}

.index-page #about .read-more {
    color: #70d8d1 !important;
}

.index-page #about .read-more:hover {
    color: #ffffff !important;
}

.index-page #services {
    position: relative;
    overflow: hidden;
    background: #edf3f9 !important;
}

.index-page #products {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(120deg, rgba(43, 124, 240, 0.09), transparent 38%),
        linear-gradient(300deg, rgba(18, 163, 157, 0.08), transparent 38%),
        #f5f8fc !important;
}

.index-page #projects {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #e7eff8 0%, #f1f5fa 100%) !important;
}

.index-page #contact {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 10% 10%, rgba(18, 163, 157, 0.12), transparent 28%),
        linear-gradient(135deg, #e4edf7 0%, #eef6f7 100%) !important;
}

.index-page #services::before,
.index-page #products::before,
.index-page #projects::before,
.index-page #contact::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 96px;
    height: 4px;
    border-radius: 0 0 999px 999px;
    background: linear-gradient(90deg, var(--se-blue-600), var(--se-teal-500));
    transform: translateX(-50%);
}

.index-page #services .section-title::before,
.index-page #products .section-title::before,
.index-page #projects .section-title::before,
.index-page #contact .section-title::before {
    display: block;
    margin-bottom: 12px;
    color: var(--se-blue-600);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.index-page #services .section-title::before {
    content: "What we do";
}

.index-page #products .section-title::before {
    content: "Our solutions";
}

.index-page #projects .section-title::before {
    content: "Selected work";
}

.index-page #contact .section-title::before {
    content: "Start a conversation";
}

.index-page .uniform-content {
    border-color: rgba(146, 171, 196, 0.55) !important;
    background: #fbfdff !important;
    box-shadow: 0 12px 32px rgba(11, 39, 67, 0.1) !important;
}

.index-page .uniform-info {
    border-top: 3px solid rgba(23, 105, 224, 0.72);
}

.index-page .contact .info-item {
    border-color: rgba(126, 157, 185, 0.48) !important;
    box-shadow: 0 14px 34px rgba(11, 39, 67, 0.1) !important;
}

@media (max-width: 767px) {
    .index-page .hero::before {
        background: rgba(4, 17, 31, 0.91) !important;
    }

    .index-page .hero img {
        filter: saturate(0.72) contrast(1.06) brightness(0.7) !important;
    }

    .index-page .home-hero-content::before {
        left: 10px;
        width: calc(100% - 20px);
        height: calc(100% + 48px);
        border-left-width: 2px;
        background: rgba(4, 17, 31, 0.22);
    }

    .index-page .home-trust-item {
        border-bottom-color: rgba(184, 210, 234, 0.15);
    }
}
