@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,wght@0,300;0,500;0,600;1,400;1,500&family=Heebo:wght@300;400;500;600;700&display=swap');

:root {
    --background: #FAF9F6;
    --navy: #0A0E3D;
    --navy-soft: #1B2266;
    --ink: #14161f;
    --muted: #5b6178;
    --accent: #2454e0;
    --accent-light: #6aa4f0;
    --line: rgba(10, 14, 61, 0.12);
    --shadow-soft: 0 10px 30px rgba(10, 14, 61, 0.08);
    --shadow-strong: 0 24px 60px rgba(10, 14, 61, 0.18);
    --radius: 10px;
    --radius-lg: 16px;
    --font-display: "Fraunces", serif;
    --font-sans: "Heebo", sans-serif;

    /* legacy aliases kept so nothing else silently breaks */
    --background-blue: var(--background);
    --nav-menu-background: var(--navy);
    --nav-menu-link-select: var(--accent-light);
    --active-nav-menu: #cdd9f4;
    --nav-menu-link-default: #00b4d8;
    --text-primary: var(--ink);
    --text-muted: var(--muted);
    --border-light: var(--line);
    --radius-md: var(--radius);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background-color: var(--background);
    font-family: var(--font-sans);
    color: var(--ink);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
    font-family: var(--font-display);
    font-weight: 500;
    color: var(--navy);
    letter-spacing: -0.01em;
    line-height: 1.12;
    margin: 0 0 0.75rem;
}

h1 {
    font-size: clamp(2.25rem, 5vw, 3.75rem);
    font-weight: 500;
}

p {
    margin: 0 0 1rem;
}

a {
    color: inherit;
}

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

.clear-fix::after {
    display: table;
    clear: both;
    content: " ";
}

/* Skip link (accessibility) */
.skip-link {
    position: absolute;
    left: -999px;
    top: 0;
    background: #fff;
    color: var(--navy);
    padding: 0.75rem 1.25rem;
    z-index: 2000;
    border-radius: 0 0 8px 0;
    font-weight: 600;
}

.skip-link:focus {
    left: 0;
}

/* Navigation — flat, minimal, no blur/pill chrome */
.nav-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--navy);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
}

.nav-wrap {
    width: min(1200px, 92%);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.1rem 0;
    position: relative;
}

.nav-menu .logo {
    color: #fff;
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 500;
    font-size: 1.4rem;
    letter-spacing: 0.01em;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.nav-menu .logo a {
    color: inherit;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.nav-menu .logo img {
    height: 24px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.92;
}

.nav-menu ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 0.5rem;
}

.nav-menu li {
    padding: 0;
    float: none;
}

.nav-menu a {
    text-decoration: none;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    padding: 0.5rem 0.15rem;
    margin: 0 0.85rem;
    display: inline-block;
    position: relative;
    transition: color 0.2s ease;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    left: 0;
    right: 100%;
    bottom: 0;
    height: 1px;
    background: #fff;
    transition: right 0.25s ease;
}

.nav-menu a:hover {
    color: #fff;
}

.nav-menu a:hover::after {
    right: 0;
}

a.active-page {
    color: #fff;
}

a.active-page::after {
    right: 0;
    background: var(--accent-light);
}

.nav-cta {
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
}

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1100;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: #fff;
    margin: 6px 0;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle.open span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}

/* Reveal-on-scroll — content stays visible if JS/CSS fails to load (e.g. cPanel permissions) */
.reveal {
    opacity: 1;
    transform: none;
}

html.js .reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

html.js .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    html.js .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* Split hero — solid text panel + full-bleed photo, no dark tint needed */
.split-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 88vh;
}

.split-hero__panel {
    background: var(--navy);
    color: #fff;
    display: flex;
    align-items: center;
    padding: clamp(6.5rem, 11vw, 9rem) clamp(2rem, 5vw, 4.5rem) 3.5rem;
}

.split-hero__panel.on-light {
    background: var(--background);
    color: var(--ink);
}

.split-hero__media {
    background-size: cover;
    background-position: center;
    min-height: 320px;
}

.split-hero--short {
    min-height: 62vh;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.78rem;
    color: var(--accent-light);
    font-weight: 500;
    margin-bottom: 0.9rem;
    font-family: var(--font-sans);
}

.split-hero__panel.on-light .eyebrow {
    color: var(--accent);
}

.split-hero__panel h1 {
    color: #fff;
    margin-bottom: 1.1rem;
}

.split-hero__panel.on-light h1 {
    color: var(--navy);
}

.split-hero__panel p {
    font-size: clamp(1rem, 1.4vw, 1.1rem);
    max-width: 34rem;
    opacity: 0.85;
}

.hero-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 1.75rem;
}

@media (max-width: 900px) {
    .split-hero {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .split-hero--short {
        min-height: auto;
    }

    .split-hero__media {
        min-height: 260px;
        order: -1;
    }

    .split-hero__panel {
        padding: 5.5rem 1.5rem 3rem;
    }
}

/* Stats strip */
.stats-strip {
    background: var(--navy);
    color: #fff;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.stats-strip .stats-wrap {
    width: min(1200px, 92%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    padding: 2.75rem 0;
    text-align: left;
}

.stats-strip .stat-num {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3.2vw, 2.5rem);
    font-weight: 500;
    color: #fff;
}

.stats-strip .stat-label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.88rem;
    letter-spacing: 0.01em;
    margin-top: 0.2rem;
}

/* Shared page layout (used on every page — home, products, jobs, contact) */
.content-outer-wrapper {
    margin: 0 auto;
    width: min(1200px, 92%);
}

.content-wrapper {
    margin-top: 5.5rem;
    margin-bottom: 5.5rem;
}

.Big_title {
    padding: 0 0 2.5rem;
    max-width: 42rem;
}

.Big_title h2 {
    font-size: clamp(1.85rem, 3.2vw, 2.5rem);
    color: var(--navy);
}

.title {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 500;
    margin-bottom: 0.4rem;
    color: var(--navy);
}

/* Editorial numbered list (mission cards, benefit cards, etc.) — no boxes,
   no shadows: a thin top rule + generous whitespace + a faint index number */
.card {
    position: relative;
    padding: 1.75rem 0.25rem 0 0;
    border-top: 1px solid var(--line);
}

.card__index {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 0.95rem;
    color: var(--accent-light);
    margin-bottom: 1.25rem;
    display: block;
}

.card-title {
    color: var(--navy);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.6rem;
    font-family: var(--font-sans);
}

.small-desc {
    font-size: 0.98rem;
    line-height: 1.7;
    color: var(--muted);
}

/* Icon badges (mission / benefits cards) */
.icon-badge {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: var(--navy);
}

.icon-badge svg {
    width: 26px;
    height: 26px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.5;
}

/* Two-column "about" style layout (photo + copy), reused across pages */
.about_Wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    align-items: center;
}

.about_Layout {
    flex: 1 1 320px;
}

.about_Img, .life-photo {
    min-height: 400px;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

.about_text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (max-width: 767px) {
    .about_Img, .life-photo {
        min-height: 260px;
    }
}

/* Footer — flat, restrained */
.footer {
    background: var(--navy);
    margin-top: 0;
}

.footer-wrapper {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem;
    width: min(1200px, 92%);
    margin: 0 auto;
    padding: 5rem 0 3rem;
}

.footer a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.62);
    transition: color 0.2s ease;
}

.footer a:hover {
    color: #fff;
}

.footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer ul li {
    margin-bottom: 0.65rem;
    font-size: 0.95rem;
}

.footer h5 {
    font-family: var(--font-sans);
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}

.footer .newsletter-row {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0;
}

.footer .newsletter-row .form-control {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #fff;
    border-radius: 8px;
}

.footer .newsletter-row .form-control::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

.footer .newsletter-row .form-control:focus {
    border-color: var(--accent-light);
    box-shadow: 0 0 0 3px rgba(106, 164, 240, 0.2);
}

.footer .newsletter-note {
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.85rem;
    margin-top: 0.75rem;
}

.footer .copywrite {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-align: center;
    padding: 1.75rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    width: min(1200px, 92%);
    margin: 0 auto;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.45);
}

.footer .copywrite img {
    height: 16px;
    filter: brightness(0) invert(1);
    opacity: 0.5;
}

.footer .copywrite a {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

@media (max-width: 900px) {
    .footer-wrapper {
        padding: 3.5rem 0 2rem;
    }
}

.form-control {
    display: block;
    width: 100%;
    padding: 0.7rem 0.9rem;
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.5;
    color: var(--ink);
    background-color: #fff;
    border: 1px solid #d8dae2;
    border-radius: 8px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-light);
    box-shadow: 0 0 0 3px rgba(106, 164, 240, 0.25);
}

/* Unified button system — rectangular, sentence case, flat */
.btn, .button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--navy);
    color: #fff;
    padding: 0.8rem 1.5rem;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.4;
    border: 1.5px solid var(--navy);
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    letter-spacing: normal;
    text-transform: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.btn:hover, .button:hover {
    color: #fff;
    background: #000221;
    border-color: #000221;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(10, 14, 61, 0.25);
}

.btn:disabled, .button:disabled {
    cursor: not-allowed;
    opacity: 0.75;
    transform: none;
    box-shadow: none;
}

/* Loading spinner shown on form submit buttons while a request is in flight */
button.is-loading {
    position: relative;
    color: transparent !important;
}

.is-loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: btn-spin 0.7s linear infinite;
}

@keyframes btn-spin {
    to { transform: rotate(360deg); }
}

.btn-outline {
    background: transparent;
    color: var(--navy);
    border: 1.5px solid var(--navy);
}

.btn-outline:hover {
    background: var(--navy);
    color: #fff;
}

.btn-light {
    background: #fff;
    color: var(--navy);
    border-color: #fff;
}

.btn-light:hover {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(255, 255, 255, 0.85);
    color: var(--navy);
}

.button-ghost, .btn-ghost-light {
    background: transparent;
    color: #fff;
    border: 1.5px solid rgba(255, 255, 255, 0.45);
}

.button-ghost:hover, .btn-ghost-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--navy);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid var(--line);
    padding-bottom: 0.2rem;
    transition: gap 0.2s ease, border-color 0.2s ease;
}

.link-arrow:hover {
    gap: 0.65rem;
    border-color: var(--navy);
}

/* Force consistent colors regardless of :visited state — these are UI
   controls, not content links, so a clicked link should look identical
   to an unclicked one. Browser default :visited styling otherwise wins
   because pseudo-classes outrank plain class selectors. */
.btn:visited, .button:visited {
    color: #fff;
}

.btn-outline:visited {
    color: var(--navy);
}

.btn-light:visited {
    color: var(--navy);
}

.btn-ghost-light:visited, .button-ghost:visited {
    color: #fff;
}

.link-arrow:visited {
    color: var(--navy);
}

.nav-menu a:visited {
    color: rgba(255, 255, 255, 0.7);
}

.nav-menu a.active-page:visited {
    color: #fff;
}

.footer a:visited {
    color: rgba(255, 255, 255, 0.62);
}

.contact-item a:visited {
    color: var(--accent);
}

.solution-card:visited, .open-position:visited {
    color: inherit;
}

.alert-success, .alert-error {
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin: 0 0 1.5rem;
    text-align: center;
    font-size: 0.95rem;
}

.alert-success {
    background: #e8f3ec;
    color: #1f5c3c;
    border: 1px solid #cfe6d8;
}

.alert-success a, .alert-success a:visited {
    color: #1f5c3c;
    font-weight: 600;
    text-decoration: underline;
}

.alert-error {
    background: #fbe9e9;
    color: #8a2c2c;
    border: 1px solid #f2cfcf;
}

/* Dark form section — solid-panel intro copy + white floating form card,
   reused on Careers (application form) and Contact (message form) */
.dark-form-section {
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    padding: 5.5rem 0;
}

.dark-form-section__grid {
    width: min(1100px, 95%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 2.5rem;
    align-items: center;
}

.dark-form-section__intro {
    color: #fff;
}

.dark-form-section__intro .display-text {
    font-size: clamp(2rem, 5vw, 3.25rem);
    line-height: 1.15;
    font-weight: 500;
    font-family: var(--font-display);
    color: #fff;
    margin-bottom: 1rem;
}

.dark-form-section__intro > p:not(.display-text):not(.eyebrow) {
    color: rgba(255, 255, 255, 0.75);
    max-width: 30rem;
}

.dark-form-section__intro .icon-badge {
    color: rgba(255, 255, 255, 0.85);
}

.dark-form-section__intro .contact-item-title {
    color: #fff;
}

.dark-form-section__intro .contact-item a {
    color: var(--accent-light);
}

.dark-form-section__intro .contact-item a:visited {
    color: var(--accent-light);
}

.form-card {
    padding: 2.25rem;
    background-color: #fff;
    border-radius: var(--radius-lg);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
}

@media (max-width: 767px) {
    .dark-form-section__grid {
        grid-template-columns: 1fr;
    }
}

/* Full-bleed CTA band (replaces the old rounded gradient card) */
.cta-band {
    background: var(--navy);
    color: #fff;
    padding: clamp(3.5rem, 8vw, 5.5rem) 0;
}

.cta-band__inner {
    width: min(860px, 90%);
    margin: 0 auto;
    text-align: center;
}

.cta-band h2 {
    color: #fff;
    font-size: clamp(2rem, 4vw, 2.85rem);
    margin-bottom: 1rem;
}

.cta-band p {
    color: rgba(255, 255, 255, 0.75);
    font-size: clamp(1rem, 1.6vw, 1.15rem);
    max-width: 34rem;
    margin: 0 auto 2rem;
}

.cta-band__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

/* legacy aliases so any un-migrated markup still renders sensibly */
.cta-card { background: var(--navy); border-radius: var(--radius-lg); padding: 3rem 2rem; text-align: center; }
.cta-card__actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.cta-card__title { font-size: clamp(1.75rem, 4vw, 2.75rem); color: #fff; margin-bottom: 1rem; }
.cta-card__description { max-width: 36rem; margin: 0 auto 1.75rem; color: rgba(255,255,255,0.85); }

@media (max-width: 900px) {
    .nav-toggle {
        display: block;
    }

    .nav-wrap ul {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: min(78vw, 320px);
        background: var(--navy);
        flex-direction: column;
        gap: 0;
        padding: 6rem 1.5rem 2rem;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.25);
    }

    .nav-wrap ul.open {
        transform: translateX(0);
    }

    .nav-menu a {
        display: block;
        margin: 0;
        padding: 0.9rem 0.25rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .stats-strip .stats-wrap {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

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

@media (max-width: 576px) {
    .footer-wrapper {
        grid-template-columns: 1fr;
        text-align: left;
    }
}
