/* ============================================================
   1. RESET + DESIGN VARIABLES
   ============================================================ */
:root {
    --navy-950: #06152f;
    --navy-900: #0a1e3d;
    --navy-800: #0f2f62;
    --blue-700: #0d47a1;
    --blue-600: #1559bd;
    --blue-100: #dcecff;
    --ice: #eef6ff;
    --orange: #ff7a00;
    --orange-dark: #dd5d00;
    --white: #ffffff;
    --text: #13233f;
    --muted: #5d6b80;
    --border: #dbe4ef;
    --shadow: 0 12px 32px rgba(7, 26, 58, .14);
    --radius-lg: 22px;
    --radius-md: 15px;
    --header-height: 100px;
    --max-width: 1500px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    color: var(--text);
    background: #edf3f9;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.5;
}

button,
a {
    font: inherit;
}

a {
    color: inherit;
}

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

button {
    border: 0;
}

/* Shared mouseover bump for all buttons and card-style elements */
.button,
.header-cta,
.service-card,
.footer-link,
.social-link,
.info-box,
.construction-button {
    transition:
        transform .18s ease,
        box-shadow .18s ease,
        border-color .18s ease,
        background-color .18s ease,
        color .18s ease;
    will-change: transform;
}

.button:hover,
.button:focus-visible,
.header-cta:hover,
.header-cta:focus-visible,
.service-card:hover,
.service-card:focus-visible,
.footer-link:hover,
.footer-link:focus-visible,
.social-link:hover,
.social-link:focus-visible,
.construction-button:hover,
.construction-button:focus-visible,
.info-box:hover,
.info-box:focus-within {
    transform: translateY(-5px);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ============================================================
   2. PAGE SHELL
   ============================================================ */
.site-shell {
    width: min(100%, var(--max-width));
    margin: 0 auto;
    background: var(--white);
    min-height: 100vh;
    box-shadow: 0 0 34px rgba(3, 20, 47, .13);
}

/* ============================================================
   3. HEADER   TOTAL HEIGHT 120PX ON DESKTOP
   ============================================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--header-height);
    background: linear-gradient(110deg, var(--navy-950), var(--navy-900));
    border-bottom: 3px solid rgba(255,255,255,.08);
}

.header-inner {
    height: 100%;
    display: flex;
    align-items: center;
    gap: 28px;
    padding: 10px clamp(18px, 3vw, 48px);
}

.brand-link {
    display: flex;
    align-items: center;
    flex: 0 1 410px;
    min-width: 220px;
    height: 100%;
}

.brand-logo {
    width: 100%;
    height: 64px;
    object-fit: contain;
    object-position: left center;
}

.primary-nav {
    margin-left: auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: clamp(14px, 1.5vw, 28px);
}

.nav-link {
    position: relative;
    color: var(--white);
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    white-space: nowrap;
    padding: 10px 0;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 2px;
    width: 0;
    height: 3px;
    border-radius: 999px;
    background: var(--orange);
    transition: width .2s ease;
}

.nav-link:hover::after,
.nav-link:focus-visible::after,
.nav-link.is-active::after {
    width: 100%;
}
.page-btn,
.header-cta {
    color: var(--white);
    background: linear-gradient(180deg, #ff8b1f, var(--orange));
    padding: 13px 21px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 800;
    white-space: nowrap;
    box-shadow: 0 6px 16px rgba(255,122,0,.32);
    text-align:center;
}

.mobile-menu-button {
    display: none;
    width: 48px;
    height: 44px;
    margin-left: auto;
    border-radius: 9px;
    background: rgba(255,255,255,.10);
    color: var(--white);
    cursor: pointer;
}

.mobile-menu-button span,
.mobile-menu-button::before,
.mobile-menu-button::after {
    content: "";
    display: block;
    width: 24px;
    height: 3px;
    margin: 5px auto;
    border-radius: 99px;
    background: currentColor;
}

/* ============================================================
   4. HERO   BACKGROUND, TEXT AND LINK ARE SEPARATE LAYERS
   ============================================================ */
.hero {
    position: relative;
    isolation: isolate;
    min-height: 530px;
    overflow: hidden;
    background: linear-gradient(100deg, #f8fcff 0%, #edf6ff 38%, #d9ebff 100%);
}

.hero-world-layer {
    position: absolute;
    z-index: -3;
    inset: 0 0 0 38%;
    width: 62%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero::before {
    content: "";
    position: absolute;
    z-index: -2;
    inset: 0;
    background: linear-gradient(90deg,
        rgba(248,252,255,1) 0%,
        rgba(248,252,255,.98) 29%,
        rgba(248,252,255,.76) 46%,
        rgba(248,252,255,.08) 72%,
        rgba(5,26,58,.10) 100%);
}

.hero::after {
    content: "";
    position: absolute;
    z-index: -1;
    inset: auto 0 0;
    height: 105px;
    background: linear-gradient(to top, rgba(255,255,255,.95), transparent);
}

.hero-inner {
    min-height: 530px;
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 56%) minmax(330px, 44%);
    align-items: center;
    padding: 48px clamp(22px, 5vw, 80px) 34px;
}

.hero-copy {
    max-width: 710px;
    padding: 20px 0 42px;
    position: relative;
    z-index: 3;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 16px;
    color: var(--blue-700);
    font-size: 14px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.hero-eyebrow::before {
    content: "";
    width: 36px;
    height: 4px;
    border-radius: 99px;
    background: var(--orange);
}

.hero h1 {
    margin: 0;
    max-width: 680px;
    color: var(--navy-950);
    font-size: clamp(38px, 4.7vw, 70px);
    line-height: 1.05;
    letter-spacing: -.035em;
}

.hero h1 .accent {
    color: var(--orange);
}

.hero-copy > p {
    max-width: 660px;
    margin: 22px 0 0;
    color: #27364d;
    font-size: clamp(17px, 1.45vw, 22px);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 30px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 13px 24px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 900;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button-orange {
    color: var(--white);
    background: linear-gradient(180deg, #ff8d28, var(--orange));
    box-shadow: 0 8px 18px rgba(255,122,0,.28);
}

.button-blue {
    color: var(--white);
    background: linear-gradient(180deg, var(--blue-600), var(--navy-800));
    box-shadow: 0 8px 18px rgba(13,71,161,.23);
}

.hero-character-wrap {
    align-self: end;
    justify-self: end;
    height: 500px;
    width: min(100%, 520px);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.hero-character {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: bottom center;
    filter: drop-shadow(0 15px 13px rgba(4, 18, 42, .24));
}

/* ============================================================
   5. PERSISTENT EIGHT-CARD NAVIGATION
   ============================================================ */
.service-navigation {
    position: relative;
    z-index: 10;
    margin-top: -25px;
    padding: 0 clamp(16px, 2.6vw, 40px) 34px;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 10px;
}

.service-card {
    min-height: 150px;
    padding: 20px 10px 16px;
    border: 1px solid var(--border);
    border-radius: 13px;
    background: rgba(255,255,255,.98);
    box-shadow: 0 8px 22px rgba(5, 27, 61, .10);
    text-decoration: none;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 11px;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.service-card:hover,
.service-card:focus-visible,
.service-card.is-active {
    transform: translateY(-5px);
    border-color: rgba(255,122,0,.72);
    box-shadow: 0 14px 28px rgba(5, 27, 61, .16);
}

.service-icon {
    width: 49px;
    height: 49px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--white);
    background: var(--blue-700);
}

.service-card:nth-child(even) .service-icon {
    background: var(--orange);
}

.service-icon svg {
    width: 27px;
    height: 27px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.service-label {
    color: var(--navy-950);
    font-size: 14px;
    font-weight: 900;
    line-height: 1.24;
}

/* ============================================================
   6. SWITCHABLE CONTENT CONTAINER
   ============================================================ */
.dynamic-content {
    padding: 35px clamp(20px, 5vw, 80px) 75px;
    background: linear-gradient(180deg, #f7faff, #ffffff);
}

.content-panel {
    display: none;
    max-width: 1180px;
    margin: 0 auto;
    padding: clamp(28px, 4vw, 52px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow);
}

.content-panel.is-active {
    display: block;
    animation: panelIn .26s ease both;
}

@keyframes panelIn {
    from { opacity: 0; transform: translateY(9px); }
    to   { opacity: 1; transform: translateY(0); }
}

.content-panel h2 {
    margin: 0 0 12px;
    color: var(--navy-950);
    font-size: clamp(29px, 3.4vw, 46px);
    line-height: 1.12;
}

.content-panel h2 span {
    color: var(--orange);
}

.content-panel p {
    margin: 0;
    color: var(--muted);
    font-size: 18px;
}

.content-columns {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 30px;
}

.info-box {
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--ice);
}

.info-box h3 {
    margin: 0 0 7px;
    color: var(--navy-900);
    font-size: 20px;
}

.info-box p {
    font-size: 15px;
}

.info-box:hover,
.info-box:focus-within {
    border-color: rgba(255,122,0,.72);
    background: #ffffff;
    box-shadow: 0 14px 28px rgba(5, 27, 61, .14);
}

/* ============================================================
   7. FOOTER   ENGLISH ONLY, NO WHITE PLACEHOLDERS
   ============================================================ */
.site-footer {
    position: relative;
    overflow: hidden;
    color: var(--white);
    background:
        radial-gradient(circle at 78% 12%, rgba(13,71,161,.44), transparent 30%),
        linear-gradient(115deg, var(--navy-950), var(--navy-900));
}

.footer-main {
    min-height: 430px;
    display: grid;
    grid-template-columns: 330px minmax(0, 1fr);
    gap: clamp(18px, 4vw, 60px);
    align-items: end;
    padding: 42px clamp(22px, 5vw, 76px) 0;
}

.footer-character-wrap {
    height: 410px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.footer-character {
    max-height: 100%;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 16px 12px rgba(0,0,0,.28));
}

.footer-content {
    align-self: center;
    padding: 35px 0 50px;
}

.footer-heading {
    margin: 0;
    max-width: 820px;
    font-size: clamp(27px, 3.2vw, 46px);
    line-height: 1.13;
}

.footer-heading .accent {
    color: var(--orange);
}

.footer-intro {
    max-width: 800px;
    margin: 15px 0 0;
    color: #d8e5f7;
    font-size: 17px;
}

.footer-links {
   display: grid;
   grid-template-columns: repeat(4, minmax(0, 1fr));
   gap: 12px;
    margin: 28px 0 0;
}


.footer-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 10px 8px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 9px;
    color: var(--white);
    background: rgba(255,255,255,.05);
    text-align: center;
    text-decoration: none;
    font-weight: 700;
    line-height: 1.2;
    width: 100%;
    min-width: 0;
    white-space: nowrap;
}

.footer-link:hover,
.footer-link:focus-visible {
    color: var(--white);
    border-color: var(--orange);
    background: rgba(255,122,0,.18);
    box-shadow: 0 10px 22px rgba(0,0,0,.18);
}

.social-links {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 28px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 10px 8px;
    border: 1px solid rgba(255,255,255,.24);
    border-radius: 9px;
    color: var(--white);
    background: rgba(255,255,255,.06);
    text-align: center;
    text-decoration: none;
    font-weight: 800;
    line-height: 1.2;
    width: 100%;
    min-width: 0;
    white-space: nowrap;
}

.social-link:hover,
.social-link:focus-visible {
    border-color: var(--orange);
    background: rgba(255,122,0,.18);
    box-shadow: 0 10px 22px rgba(0,0,0,.18);
}

.footer-legal {
    border-top: 1px solid rgba(255,255,255,.14);
    padding: 24px clamp(22px, 5vw, 76px) 30px;
    text-align: center;
    color: #cbd8e9;
    font-size: 14px;
}

.footer-legal p {
    margin: 5px auto;
    max-width: 1120px;
}

.footer-legal a {
    color: var(--white);
}

.footer-legal a:hover {
    color: var(--orange);
}


/* ============================================================
   DYNAMIC PAGE LOADER / ERROR STATE
   ============================================================ */
.content-loader {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 180px;
    color: var(--navy-900);
    font-size: 18px;
    font-weight: 800;
}

.content-loader::before {
    content: "";
    width: 28px;
    height: 28px;
    border: 4px solid var(--blue-100);
    border-top-color: var(--orange);
    border-radius: 50%;
    animation: contentSpin .75s linear infinite;
}

@keyframes contentSpin {
    to { transform: rotate(360deg); }
}


.content-error {
    max-width: 980px;
    margin: 0 auto;
}

.construction-card {
    display: grid;
    grid-template-columns: minmax(210px, 30%) minmax(0, 70%);
    align-items: center;
    min-height: 290px;
    overflow: hidden;
    border: 1px solid rgba(255,122,0,.42);
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow);
}

.construction-image-wrap {
    align-self: stretch;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    min-width: 0;
    padding: 20px 10px 0;
    background:
        radial-gradient(circle at 50% 22%, rgba(21,89,189,.16), transparent 42%),
        linear-gradient(145deg, #eef6ff, #dcecff);
    border-right: 1px solid var(--border);
}

.construction-image {
    width: min(100%, 280px);
    max-height: 285px;
    object-fit: contain;
    object-position: center bottom;
    filter: drop-shadow(0 12px 11px rgba(6,21,47,.20));
}

.construction-copy {
    padding: clamp(26px, 4vw, 46px);
}

.construction-label {
    margin: 0 0 7px;
    color: var(--orange);
    font-size: clamp(24px, 3.2vw, 40px);
    font-weight: 900;
    line-height: 1;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.construction-title {
    margin: 0;
    color: var(--navy-950);
    font-size: clamp(22px, 2.4vw, 32px);
    line-height: 1.15;
}

.construction-message {
    margin: 14px 0 0;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.6;
}

.construction-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

.construction-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 21px;
    border-radius: 10px;
    color: var(--white);
    text-decoration: none;
    font-weight: 900;
    cursor: pointer;
}

.construction-button-home {
    background: linear-gradient(180deg, #ff8d28, var(--orange));
    box-shadow: 0 8px 18px rgba(255,122,0,.27);
}

.construction-button-contact {
    background: linear-gradient(180deg, var(--blue-600), var(--navy-800));
    box-shadow: 0 8px 18px rgba(13,71,161,.23);
}

.construction-button:hover,
.construction-button:focus-visible {
    transform: translateY(-5px);
    box-shadow: 0 14px 26px rgba(5,27,61,.20);
}

@media (max-width: 700px) {
    .construction-card {
        grid-template-columns: minmax(155px, 34%) minmax(0, 66%);
        min-height: 255px;
    }

    .construction-image {
        max-height: 245px;
    }

    .construction-copy {
        padding: 24px 20px;
    }

    .construction-message {
        font-size: 15px;
    }
}

@media (max-width: 520px) {
    .construction-card {
        grid-template-columns: 125px minmax(0, 1fr);
        min-height: 225px;
    }

    .construction-image-wrap {
        padding-inline: 4px;
    }

    .construction-image {
        max-height: 210px;
    }

    .construction-copy {
        padding: 20px 15px;
    }

    .construction-label {
        font-size: 22px;
    }

    .construction-title {
        font-size: 20px;
    }

    .construction-actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 9px;
    }

    .construction-button {
        width: 100%;
        min-height: 44px;
        padding: 10px 12px;
    }
}
/* ============================================================
   8. TABLET
   ============================================================ */
@media (max-width: 1120px) {
    :root {
        --header-height: 108px;
    }

    .brand-link {
        flex-basis: 320px;
    }

    .brand-logo {
        height: 64px;
    }

    .primary-nav {
        gap: 14px;
    }

    .nav-link {
        font-size: 13px;
    }

    .header-cta {
        padding: 12px 15px;
    }

    .hero,
    .hero-inner {
        min-height: 515px;
    }

    .hero-inner {
        grid-template-columns: minmax(0, 56%) minmax(280px, 44%);
    }

    .hero-character-wrap {
        height: 450px;
    }

    .service-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 13px;
    }

    .service-card {
        min-height: 142px;
    }

    .footer-main {
        grid-template-columns: 270px minmax(0, 1fr);
    }

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

/* ============================================================
   9. MOBILE NAVIGATION + MOBILE HERO
   ============================================================ */
@media (max-width: 860px) {
    :root {
        --header-height: 96px;
    }

    .header-inner {
        padding: 8px 16px;
    }

    .brand-link {
        flex-basis: min(72vw, 350px);
        min-width: 0;
    }

    .brand-logo {
        height: 53px;
    }

    .mobile-menu-button {
        display: block;
    }

    .primary-nav {
        position: absolute;
        top: 100%;
        right: 0;
        left: auto;
        width: 100%;
        max-width: 300px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 12px 18px 20px;
        background: var(--navy-950);
        border-top: 1px solid rgba(255,255,255,.12);
        box-shadow: 0 18px 30px rgba(0,0,0,.22);
    }

    .primary-nav.is-open {
        display: flex;
    }

    .nav-link,
    .header-cta {
        width: 100%;
        padding: 13px 10px;
        text-align: center;
    }

    .hero {
        min-height: 720px;
    }

    .hero-world-layer {
        inset: 0;
        width: 100%;
        height: 100%;
        object-position: center;
    }

    .hero::before {
        background: linear-gradient(180deg,
            rgba(247,252,255,.96) 0%,
            rgba(247,252,255,.90) 33%,
            rgba(247,252,255,.38) 61%,
            rgba(6,21,47,.11) 100%);
    }

    .hero-inner {
        min-height: 720px;
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
        align-items: start;
        padding: 28px 22px 0;
    }

    .hero-copy {
        padding: 5px 0 12px;
        max-width: 650px;
    }

    .hero h1 {
        font-size: clamp(36px, 8.8vw, 58px);
    }

    .hero-copy > p {
        max-width: 570px;
        font-size: 17px;
    }

    .hero-character-wrap {
        height: 390px;
        width: 100%;
        justify-self: center;
    }

    .service-navigation {
        margin-top: 0;
        padding-top: 22px;
    }

    .service-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .service-card {
        min-height: 145px;
        padding: 20px 12px;
    }

    .service-label {
        font-size: 15px;
    }

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

    .footer-main {
        min-height: 0;
        grid-template-columns: 1fr;
        align-items: start;
        padding-top: 42px;
    }

    .footer-character-wrap {
        order: 2;
        height: 360px;
    }

    .footer-content {
        order: 1;
        padding: 10px 0 0;
        text-align: center;
    }

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

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

@media (max-width: 520px) {
    :root {
        --header-height: 86px;
    }

    .brand-logo {
        height: 53px;
    }

    .mobile-menu-button {
        width: 44px;
        height: 42px;
    }

    .hero {
        min-height: 705px;
    }

    .hero-inner {
        min-height: 705px;
        padding-inline: 17px;
    }

    .hero-eyebrow {
        font-size: 12px;
    }

    .hero h1 {
        font-size: 38px;
    }

    .hero-actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .button {
        width: 100%;
    }

    .hero-character-wrap {
        height: 340px;
    }

    .service-navigation {
        padding-inline: 12px;
    }

    .service-grid {
        gap: 9px;
    }

    .service-card {
        min-height: 138px;
        padding: 17px 7px 13px;
    }

    .service-icon {
        width: 45px;
        height: 45px;
    }

    .service-label {
        font-size: 13px;
    }

    .dynamic-content {
        padding-inline: 12px;
    }

    .content-panel {
        padding: 25px 18px;
    }

    .footer-character-wrap {
        height: 315px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        scroll-behavior: auto !important;
        transition: none !important;
        animation: none !important;
    }
}

