/* Header and navigation */
.topbar {
    height: 92px;
    gap: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
    transition: height .3s ease, background-color .3s ease, border-color .3s ease, box-shadow .3s ease, backdrop-filter .3s ease;
}

.topbar.scrolled { height: 78px; }
.logo img { width: 174px; }

.nav {
    gap: 3px;
    padding: 4px;
    border: 0;
    border-radius: 6px;
    background: transparent;
}

.nav a {
    position: relative;
    padding: 11px 13px;
    border-radius: 4px;
    color: #c7cbcc;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .015em;
}

.nav a::before {
    content: attr(data-index);
    display: none;
    color: var(--red);
    font-size: 9px;
    letter-spacing: .14em;
}

.nav a:hover {
    color: #fff;
    background: rgba(255, 255, 255, .06);
}

.nav a.active {
    color: #fff;
    background: rgba(255, 255, 255, .07);
}

.nav a.active::after {
    position: absolute;
    right: 12px;
    bottom: 5px;
    left: 12px;
    height: 1px;
    margin: 0;
    background: var(--red);
}

.language-current {
    min-width: 49px;
    padding: 10px 11px;
    border: 0;
    border-radius: 4px;
    color: #d8dcdd;
    letter-spacing: .08em;
}

.language-current:hover { background: rgba(255, 255, 255, .06); }

.client-portal {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 3px;
    color: #e5e8e9;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    transition: color .2s ease, border-color .2s ease, background-color .2s ease;
}

.client-portal b {
    color: var(--red);
    font-size: 12px;
}

.client-portal:hover { color: #fff; border-color: var(--red); background: rgba(255, 31, 45, .07); }

.topbar .desktop-cta {
    min-height: 44px;
    padding: 0 7px 0 17px;
    gap: 14px;
    box-shadow: 0 10px 28px rgba(255, 31, 45, .18);
}

.topbar .desktop-cta b {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 3px;
    background: rgba(0, 0, 0, .18);
    font-size: 14px;
}

.nav-toggle {
    position: relative;
    z-index: 2;
    height: 38px;
    border: 0;
    border-radius: 4px;
}

.nav-toggle span { transition: transform .25s ease, opacity .25s ease; }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4.5px) rotate(-45deg); }

/* Specialist contact */
.contact-section {
    position: relative;
    grid-template-columns: minmax(0, .88fr) minmax(480px, 1.12fr);
    gap: clamp(42px, 6vw, 100px);
    align-items: center;
    background: radial-gradient(circle at 12% 18%, rgba(255, 31, 45, .1), transparent 28%), #0a0d0e;
    overflow: hidden;
}

.contact-section::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: var(--page-gutter);
    width: 1px;
    background: linear-gradient(transparent, rgba(255, 31, 45, .7), transparent);
}

.contact-intro { padding-left: clamp(22px, 3vw, 48px); }
.contact-intro h2 { max-width: 620px; margin-bottom: 22px; }
.contact-intro > p { max-width: 580px; color: #b8bdbe; font-size: 18px; line-height: 1.7; }

.contact-benefits {
    display: grid;
    gap: 0;
    margin-top: 38px;
    border-top: 1px solid var(--line);
}

.contact-benefits article {
    display: flex;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid var(--line);
}

.contact-benefits article > span {
    padding-top: 3px;
    color: var(--red);
    font-size: 9px;
    letter-spacing: .14em;
}

.contact-benefits strong,
.contact-benefits small { display: block; }
.contact-benefits strong { margin-bottom: 4px; font-size: 15px; font-weight: 500; }
.contact-benefits small { color: #858b8d; font-size: 12px; }

.contact-direct { display: grid; gap: 5px; margin-top: 30px; }
.contact-direct small { color: #777d7f; font-size: 11px; }
.contact-direct a { color: #fff; font-size: 14px; }
.contact-direct a:hover { color: var(--red); }

.contact-section .contact-form {
    position: relative;
    gap: 22px;
    padding: clamp(30px, 4vw, 54px);
    border: 1px solid #dedbd4;
    border-radius: 6px;
    background: #f4f2ee;
    color: #15191a;
    box-shadow: 0 30px 90px rgba(0, 0, 0, .28);
}

.contact-form header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 25px;
    padding-bottom: 23px;
    border-bottom: 1px solid #d8d5ce;
}

.contact-form header span {
    color: #d31622;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .18em;
}

.contact-form header h3 {
    margin: 7px 0 0;
    color: #15191a;
    font-size: clamp(23px, 2vw, 30px);
    font-weight: 500;
}

.contact-form header > small { color: #777c7d; font-size: 10px; white-space: nowrap; }
.contact-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.contact-section .contact-form label {
    display: grid;
    gap: 8px;
    color: #3d4243;
    font-size: 11px;
    font-weight: 600;
}

.contact-section .contact-form input,
.contact-section .contact-form textarea {
    width: 100%;
    border: 1px solid #cfccc5;
    border-radius: 3px;
    background: #fff;
    color: #15191a;
    outline: 0;
    transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.contact-section .contact-form input { min-height: 51px; }
.contact-section .contact-form textarea { min-height: 138px; resize: vertical; }
.contact-section .contact-form input:hover,
.contact-section .contact-form textarea:hover { border-color: #aaa69e; }
.contact-section .contact-form input:focus,
.contact-section .contact-form textarea:focus { border-color: #d31622; box-shadow: 0 0 0 3px rgba(211, 22, 34, .09); }

.contact-privacy { margin: -4px 0 0; color: #777c7d; font-size: 10px; }
.contact-privacy a { color: #353a3b; text-decoration: underline; text-underline-offset: 3px; }
.lead-honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.contact-consent { display: flex !important; grid-template-columns: none !important; align-items: flex-start; gap: 9px !important; margin: -4px 0 0; color: #777c7d !important; font-size: 10px !important; font-weight: 400 !important; }
.contact-consent input { flex: 0 0 auto; width: 16px !important; height: 16px !important; min-height: 0 !important; margin: 1px 0 0; padding: 0 !important; accent-color: #d31622; }
.contact-consent a { color: #353a3b; text-decoration: underline; text-underline-offset: 3px; }
.contact-section .contact-form .button { justify-self: stretch; min-height: 54px; justify-content: space-between; padding-inline: 20px; }

/* Global closing CTA */
.closing-cta {
    position: relative;
    gap: clamp(45px, 8vw, 130px);
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, .12);
    background: linear-gradient(105deg, rgba(4, 5, 6, .97), rgba(4, 5, 6, .72)), url('/assets/images/hero-datacenter.png') center 68%/cover;
}

.closing-cta::after {
    content: "";
    position: absolute;
    right: -8%;
    bottom: -70%;
    width: 420px;
    height: 420px;
    border: 1px solid rgba(255, 31, 45, .18);
    border-radius: 50%;
    box-shadow: 0 0 80px rgba(255, 31, 45, .08);
}

.closing-copy { position: relative; z-index: 1; }
.closing-copy .eyebrow { margin-bottom: 13px; }
.closing-copy h2 { max-width: 780px; }
.closing-copy p { max-width: 650px; margin: 18px 0 0; color: #aeb3b4; }
.closing-actions { position: relative; z-index: 1; display: grid; min-width: 235px; gap: 18px; justify-items: stretch; }
.closing-actions .button { justify-content: space-between; }
.closing-actions .text-link { justify-self: start; }

@keyframes nav-enter {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: none; }
}

@media (max-width: 1180px) {
    .nav a { padding-inline: 10px; }
    .topbar { gap: 16px; }
}

@media (max-width: 1050px) {
    .topbar,
    .topbar.scrolled { height: 78px; }

    .nav {
        top: 78px;
        bottom: 0;
        height: calc(100dvh - 78px);
        gap: 0;
        padding: 22px var(--page-gutter) 36px;
        border: 0;
        border-radius: 0;
        background: rgba(7, 9, 10, .98);
        overflow-y: auto;
        -webkit-backdrop-filter: blur(18px);
        backdrop-filter: blur(18px);
    }

    .nav.open { display: flex; animation: nav-enter .25s ease both; }

    .nav a {
        display: grid;
        grid-template-columns: 38px 1fr;
        align-items: center;
        width: 100%;
        padding: 17px 6px;
        border-bottom: 1px solid rgba(255, 255, 255, .08);
        border-radius: 0;
        font-size: clamp(18px, 5vw, 24px);
        font-weight: 400;
    }

    .nav a::before { display: block; }
    .nav a.active { background: transparent; }
    .nav a.active::after { top: 50%; right: 0; bottom: auto; left: auto; width: 28px; transform: translateY(-50%); }
    body.nav-open { overflow: hidden; }

    .client-portal { display: none; }

    .contact-section { grid-template-columns: 1fr; }
    .contact-intro { padding: 0 0 0 28px; }
}

@media (max-width: 700px) {
    .logo img { width: 154px; }
    .contact-section { gap: 45px; }
    .contact-section::before { left: var(--page-gutter); }
    .contact-intro { padding-left: 22px; }
    .contact-intro > p { font-size: 16px; }
    .contact-section .contact-form { padding: 28px 22px; }
    .contact-form header { display: grid; gap: 10px; }
    .contact-fields { grid-template-columns: 1fr; }
    .closing-cta { gap: 38px; }
    .closing-actions { min-width: 0; width: 100%; }
}
