/* ===== Reset & Base ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --navy: #0F1B3D;
    --navy-light: #1A2D5A;
    --blue: #2B7CE9;
    --teal: #00A8B5;
    --orange: #E87A2E;
    --gray-bg: #F5F7FA;
    --gray-text: #5A6474;
    --gray-border: #E2E8F0;
    --white: #FFFFFF;
    --shadow: 0 2px 12px rgba(15, 27, 61, 0.08);
    --shadow-lg: 0 8px 32px rgba(15, 27, 61, 0.12);
    --radius: 12px;
    --radius-sm: 8px;
}

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

body {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--navy);
    line-height: 1.6;
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 32px;
}

.section__title {
    font-size: 35px;
    font-weight: 700;
    margin-bottom: 36px;
    color: var(--navy);
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.btn--primary {
    background: #1F84BB;
    color: var(--white);
    border-radius: 20px;
}

.btn--primary:hover {
    background: #1a6f9e;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(31, 132, 187, 0.3);
}

/* ===== Header ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--white);
    height: 108px;
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 108px;
}

.header__logo img {
    height: 56px;
    width: auto;
}

.header__nav {
    display: flex;
    gap: 36px;
}

.header__link {
    font-size: 0.85rem;
    font-weight: 700;
    color: #20227F;
    transition: color 0.2s;
    position: relative;
}

.header__link:hover {
    color: var(--navy);
}

.header__link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--blue);
    transition: width 0.2s;
}

.header__link:hover::after {
    width: 100%;
}

.header__burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.header__burger span {
    width: 22px;
    height: 2px;
    background: var(--navy);
    transition: transform 0.3s, opacity 0.3s;
    border-radius: 1px;
}

/* ===== Hero ===== */
.hero {
    background: var(--navy);
    padding-top: 108px;
    color: var(--white);
    overflow: visible;
    position: relative;
    min-height: 500px;
    z-index: 2;
}

.hero__bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    clip-path: inset(0);
}

.hero__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.hero__bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, var(--navy) 0%, rgba(15, 27, 61, 0.45) 35%, rgba(15, 27, 61, 0.08) 70%, rgba(15, 27, 61, 0.02) 100%);
}

.hero__inner {
    display: grid;
    grid-template-columns: 1.4fr 0.6fr;
    gap: 32px;
    align-items: center;
    min-height: 436px;
    position: relative;
    z-index: 2;
}

.hero__content {
    padding: 56px 0;
}

.hero__title {
    font-size: 35px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
}

.hero__subtitle {
    font-size: 0.92rem;
    line-height: 1.7;
    opacity: 0.8;
    margin-bottom: 28px;
    max-width: 520px;
}

.hero__cta--mobile {
    display: none;
}

/* Hero right — badge + cascading service cards */
.hero__right {
    position: relative;
    height: 100%;
    min-height: 360px;
}

.hero__badge {
    position: fixed;
    top: 128px;
    right: 0;
    background: #1F84BB;
    color: var(--white);
    padding: 10px 18px;
    border-radius: 20px 0 0 20px;
    text-align: center;
    line-height: 1.2;
    z-index: 999;
}

.hero__badge-title {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.hero__badge-sub {
    display: block;
    font-size: 0.55rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    opacity: 0.9;
    margin-top: 1px;
}

.hero__cards {
    position: absolute;
    bottom: -40px;
    right: -40%;
    width: 270px;
    height: 320px;
}

.hero__card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 8px;
    background: var(--white);
    color: var(--navy);
    padding: 20px 16px 18px;
    border-radius: 32px;
    box-shadow: 0 8px 36px rgba(0, 0, 0, 0.22), 0 2px 8px rgba(0, 0, 0, 0.08);
    position: absolute;
    width: 150px;
}

/* Professional Services — front center-left, highest z-index */
.hero__card:nth-child(1) {
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    z-index: 3;
}

/* Managed Services — behind, top-right */
.hero__card:nth-child(2) {
    top: 6%;
    right: 0;
    z-index: 2;
}

/* Monitoring Services — behind, bottom-right */
.hero__card:nth-child(3) {
    bottom: 4%;
    right: 0;
    z-index: 1;
}

.hero__card-icon {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
}

.hero__card-icon svg {
    width: 100%;
    height: 100%;
}

.hero__card-label {
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.3;
    color: #1F84BB;
}

.hero__card-icon svg path,
.hero__card-icon svg rect,
.hero__card-icon svg circle,
.hero__card-icon svg line {
    stroke: #1F84BB;
}

.hero__card-icon svg circle[fill] {
    fill: #1F84BB;
}

/* ===== Callout (Simplify + Accelerate / Backed by 1Nebula) ===== */
.callout {
    padding: 72px 0 48px;
    background: var(--navy);
    position: relative;
    z-index: 1;
}

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

.callout__image {
    position: relative;
    z-index: 2;
    margin-right: -36px;
    flex-shrink: 0;
    filter: drop-shadow(0 6px 20px rgba(0, 0, 0, 0.3));
}

.callout__image img {
    width: 260px;
    height: 180px;
    object-fit: cover;
    border-radius: 20px;
    display: block;
}

.callout__content {
    background: var(--white);
    padding: 24px 40px 24px 56px;
    border-radius: 0 39px 39px 0;
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 1;
    flex: 1;
}

.callout__content--blue {
    border-left: 4px solid #1F84BB;
}

.callout__content--teal {
    border-left: 4px solid var(--teal);
}

.callout__title {
    font-size: 25px;
    font-weight: 700;
    margin-bottom: 8px;
}

.callout__title--blue {
    color: #1F84BB;
}

.callout__title--teal {
    color: #1F84BB;
}

.callout__text {
    color: var(--gray-text);
    line-height: 1.7;
    font-size: 0.9rem;
}

/* ===== Services (What We Do) ===== */
.services {
    padding: 72px 0;
    background: var(--navy);
    color: var(--white);
}

.services .section__title,
.reasons .section__title,
.process .section__title {
    color: var(--white);
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.services__card {
    text-align: left;
}

.services__icon {
    width: 48px;
    height: 48px;
    margin-bottom: 14px;
}

.services__icon svg {
    width: 100%;
    height: 100%;
}

.services__card-title {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--white);
    line-height: 1.3;
}

.services__card-text {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

/* ===== Reasons (Why Choose Us) ===== */
.reasons {
    padding: 72px 0;
    background: var(--navy);
    color: var(--white);
}

.reasons__container {
    display: flex;
    background: var(--white);
    border-radius: 32px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.reasons__item {
    flex: 1;
    padding: 28px 24px;
    position: relative;
}

.reasons__item + .reasons__item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 20px;
    bottom: 20px;
    width: 1px;
    background: var(--gray-border);
}

.reasons__item-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #1F84BB;
    margin-bottom: 8px;
    line-height: 1.3;
}

.reasons__item-text {
    font-size: 0.8rem;
    color: var(--gray-text);
    line-height: 1.55;
}

/* ===== Process (How We Work) ===== */
.process {
    padding: 72px 0;
    background: var(--navy);
    color: var(--white);
}

.process__steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 12px;
}

.process__step {
    flex: 1;
    max-width: 260px;
    text-align: left;
}

.process__number {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: transparent;
    border: 2px solid #1F84BB;
    color: #1F84BB;
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.process__step-title {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--white);
}

.process__step-text {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

.process__arrow {
    display: flex;
    align-items: center;
    padding-top: 90px;
    flex-shrink: 0;
}

.process__arrow svg {
    width: 80px;
    height: 16px;
}

/* ===== Contact ===== */
.contact {
    padding: 72px 0;
    background: var(--navy);
}

.contact .section__title {
    color: var(--white);
}

.contact__subtitle {
    color: rgba(255, 255, 255, 0.7);
    margin-top: -24px;
    margin-bottom: 32px;
    font-size: 0.95rem;
}

.contact__card {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 24px;
    background: var(--white);
    border-radius: 32px;
    padding: 28px 36px 16px;
    box-shadow: var(--shadow-lg);
    align-items: center;
    overflow: visible;
}

.contact__illustration {
    border-right: 1px solid var(--gray-border);
    padding-right: 24px;
}

.contact__illustration img {
    width: 100%;
    height: auto;
    max-width: 140px;
}

.contact__form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact__field {
    display: grid;
    grid-template-columns: 90px 1fr;
    align-items: center;
    gap: 12px;
}

.contact__field label {
    font-weight: 600;
    font-size: 0.85rem;
    color: #3E4D85;
}

.contact__field input {
    width: 100%;
    padding: 10px 14px;
    border: none;
    border-radius: 20px;
    font-size: 0.9rem;
    font-family: inherit;
    color: var(--navy);
    transition: border-color 0.2s, box-shadow 0.2s;
    background: var(--gray-bg);
}

.contact__field input:focus {
    outline: none;
    box-shadow: 0 0 0 2px #1F84BB;
    background: var(--white);
}

.contact__submit {
    text-align: right;
    margin-top: -24px;
    padding-right: 36px;
    position: relative;
    z-index: 2;
}

.contact__feedback {
    text-align: center;
    font-size: 0.9rem;
    font-weight: 600;
    min-height: 20px;
    padding: 8px 0;
}

.contact__feedback--success {
    color: #16a34a;
}

.contact__feedback--error {
    color: #dc2626;
}

/* ===== Footer ===== */
.footer {
    background: var(--white);
    color: var(--navy);
    padding: 24px 0;
    border-top: 1px solid var(--gray-border);
}

.footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.footer__logo img {
    height: 30px;
    width: auto;
}

.footer__info {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.75rem;
    color: var(--gray-text);
}

.footer__divider {
    width: 1px;
    height: 14px;
    background: var(--gray-border);
}

.footer__item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.footer__item a {
    transition: opacity 0.2s;
}

.footer__item a:hover {
    opacity: 1;
    text-decoration: underline;
}

.footer__icon {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
    color: #1F84BB;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .reasons__container {
        flex-wrap: wrap;
        border-radius: 24px;
    }

    .services__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 28px;
    }

    .callout__inner {
        grid-template-columns: 220px 1fr;
    }
}

@media (max-width: 768px) {
    html {
        scroll-padding-top: 82px;
    }

    .container {
        padding: 0 20px;
    }

    /* Header mobile — reduce height */
    .header {
        height: 72px;
    }

    .header__inner {
        height: 72px;
    }

    .header__logo img {
        height: 40px;
    }

    .header__nav {
        display: none;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 16px 20px;
        box-shadow: var(--shadow-lg);
        gap: 12px;
        border-top: 1px solid var(--gray-border);
    }

    .header__nav.is-open {
        display: flex;
    }

    .header__burger {
        display: flex;
    }

    .header__burger.is-open span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .header__burger.is-open span:nth-child(2) {
        opacity: 0;
    }

    .header__burger.is-open span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    /* Hero mobile */
    .hero {
        padding-top: 72px;
        min-height: auto;
    }

    .hero__bg {
        width: 100%;
        height: 220px;
        position: relative;
    }

    .hero__bg::after {
        background: linear-gradient(to bottom, rgba(15, 27, 61, 0.2) 0%, var(--navy) 100%);
    }

    .hero__inner {
        grid-template-columns: 1fr;
        gap: 0;
        min-height: auto;
        padding: 28px 0 20px;
    }

    .hero__cta--desktop {
        display: none;
    }

    .hero__cta--mobile {
        display: inline-block;
        order: 3;
        justify-self: center;
        width: 80%;
        text-align: center;
        margin-top: 16px;
    }

    .hero__content {
        order: 1;
    }

    .hero__right {
        order: 2;
    }

    .hero__content {
        padding: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .hero__content .btn {
        width: 80%;
        text-align: center;
    }

    .hero__title {
        font-size: 28px;
    }

    .hero__subtitle {
        max-width: 100%;
    }

    .hero__right {
        position: relative;
        min-height: auto;
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    /* QSE badge — fixed top-right on mobile */
    .hero__badge {
        position: fixed;
        top: 80px;
        right: 0;
        padding: 6px 12px;
        border-radius: 14px 0 0 14px;
        z-index: 999;
    }

    .hero__badge-title {
        font-size: 0.55rem;
    }

    .hero__badge-sub {
        font-size: 0.45rem;
    }

    /* Hero cards — horizontal row between subtitle and CTA */
    .hero__cards {
        position: static;
        display: flex;
        flex-direction: row;
        gap: 10px;
        width: 90%;
        height: auto;
        margin: 16px auto;
    }

    .hero__card,
    .hero__card:nth-child(1),
    .hero__card:nth-child(2),
    .hero__card:nth-child(3) {
        position: static;
        transform: none;
        top: auto;
        left: auto;
        right: auto;
        bottom: auto;
        width: auto;
        flex: 1;
        padding: 14px 10px;
        border-radius: 20px;
    }

    .hero__card-icon {
        width: 32px;
        height: 32px;
    }

    .hero__card-label {
        font-size: 0.65rem;
    }

    /* Callout mobile — image as background */
    .callout {
        padding: 36px 0;
    }

    .callout__inner {
        flex-direction: column;
        gap: 0;
    }

    .callout__image {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        margin: 0;
        z-index: 1;
        filter: none;
        opacity: 0.15;
    }

    .callout__image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 0;
    }

    .callout__content {
        position: relative;
        z-index: 2;
        padding: 28px 20px;
        border-left: none;
        border-top: 3px solid var(--blue);
        border-radius: var(--radius);
        background: rgba(255, 255, 255, 0.95);
    }

    .callout__content--teal {
        border-left: none;
        border-top-color: var(--teal);
    }

    /* Grid sections mobile */
    .services,
    .reasons,
    .process,
    .contact {
        padding: 56px 0;
    }

    .services__grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }

    .reasons__container {
        flex-direction: column;
        border-radius: 24px;
    }

    .reasons__item + .reasons__item::before {
        display: none;
    }

    .reasons__item + .reasons__item {
        border-top: 1px solid var(--gray-border);
    }

    .process__steps {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .process__arrow {
        display: none;
    }

    .process__step {
        max-width: 100%;
    }

    /* Contact mobile */
    .contact__card {
        grid-template-columns: 1fr;
        padding: 28px 20px;
        gap: 0;
    }

    .contact__illustration {
        display: none;
    }

    .contact__field {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .section__title {
        font-size: 26px;
        margin-bottom: 28px;
    }

    /* Footer mobile */
    .footer__inner {
        flex-direction: column;
        text-align: center;
    }

    .footer__info {
        flex-direction: column;
        gap: 6px;
    }

    .footer__divider {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero__title {
        font-size: 1.35rem;
    }

    .hero__cards {
        gap: 6px;
    }

    .hero__card {
        padding: 10px 6px;
    }

    .hero__card-icon {
        width: 28px;
        height: 28px;
    }

    .hero__card-label {
        font-size: 0.58rem;
    }

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

    .contact__card {
        padding: 20px 16px;
    }
}
