/* ======================================================
   KWR WEBSITE
   Design System v1.0
====================================================== */

:root {

    /* ==================================================
       COLORS
    ================================================== */

    --primary-blue: #1B4B82;
    --accent-blue: #3F6FA8;

    --background-gray: #E7EBF0;
    --white: #FFFFFF;
    --charcoal: #2E3135;
    --border: #D5DBE3;

    /* ==================================================
       SPACING
    ================================================== */

    --section-padding: 100px;
    --card-radius: 14px;

    /* ==================================================
       EFFECTS
    ================================================== */

    --shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

/* ======================================================
   RESET
====================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--background-gray);
    color: var(--charcoal);

    font-family: Arial, Helvetica, sans-serif;
}

/* ======================================================
   NAVIGATION
====================================================== */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;

    width: 100%;

    background-color: rgba(27, 75, 130, 0.72);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);

    transition:
        background-color 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}

.site-header.scrolled {
    background-color: var(--white);
    border-bottom-color: var(--border);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.navbar {
    width: min(1200px, calc(100% - 48px));
    min-height: 90px;
    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.logo {
    position: relative;

    width: 240px;
    height: 58px;

    display: block;

    text-decoration: none;
}

.logo-image {
    position: absolute;
    top: 50%;
    left: 0;

    width: auto;
    height: 58px;

    display: block;

    transform: translateY(-50%);

    transition: opacity 0.3s ease;
}

/* White logo is visible over the hero */

.logo-white {
    opacity: 1;
}

/* Blue logo is hidden at the top */

.logo-blue {
    opacity: 0;
}

/* After scrolling, switch the logos */

.site-header.scrolled .logo-white {
    opacity: 0;
}

.site-header.scrolled .logo-blue {
    opacity: 1;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 34px;

    list-style: none;
}

.nav-links a {
    position: relative;

    color: var(--white);

    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;

    text-decoration: none;

    transition: color 0.3s ease;
}

.site-header.scrolled .nav-links a {
    color: var(--charcoal);
}

.nav-links a::after {
    content: "";

    position: absolute;
    left: 0;
    bottom: -8px;

    width: 100%;
    height: 2px;

    background-color: var(--white);

    transform: scaleX(0);
    transform-origin: center;

    transition:
        background-color 0.3s ease,
        transform 0.2s ease;
}

.site-header.scrolled .nav-links a::after {
    background-color: var(--accent-blue);
}

.nav-links a:hover::after {
    transform: scaleX(1);
}

.nav-button {
    padding: 15px 26px;

    background-color: var(--white);
    color: var(--primary-blue);

    border: 2px solid var(--white);
    border-radius: 6px;

    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;

    text-decoration: none;

    transition:
        background-color 0.3s ease,
        border-color 0.3s ease,
        color 0.3s ease,
        transform 0.2s ease;
}

.nav-button:hover {
    background-color: transparent;
    color: var(--white);

    transform: translateY(-1px);
}

.site-header.scrolled .nav-button {
    background-color: var(--primary-blue);
    color: var(--white);

    border-color: var(--primary-blue);
}

.site-header.scrolled .nav-button:hover {
    background-color: var(--accent-blue);
    border-color: var(--accent-blue);
}

/* ======================================================
   HERO
====================================================== */

.hero {
    position: relative;

    min-height: 100vh;
    padding: 170px 24px 100px;

    display: flex;
    align-items: center;

    background-color: var(--primary-blue);

    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;
    z-index: 0;

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    opacity: 0;

    will-change: opacity;

    transition: opacity 2.5s ease-in-out;
}

.hero-bg-1 {
    opacity: 1;

    background-image:
        url("../images/projects/Hero1.jpg");
}

.hero-bg-2 {
    opacity: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;

    pointer-events: none;

    background:
        linear-gradient(
            90deg,
            rgba(20, 55, 96, 0.95) 0%,
            rgba(27, 75, 130, 0.82) 45%,
            rgba(27, 75, 130, 0.48) 72%,
            rgba(27, 75, 130, 0.22) 100%
        );
}

.hero-content {
    position: relative;
    z-index: 2;

    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-label {

    margin-bottom: 32px;

    color: var(--white);

    font-size: 1rem;
    font-weight: 700;

    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.hero-label::before {
    content: "";

    display: inline-block;

    width: 68px;
    height: 2px;
    margin-right: 18px;

    background-color: var(--white);

    vertical-align: middle;
}

.hero h1 {
    max-width: 720px;

    color: var(--white);

    font-size: clamp(3rem, 6vw, 5.75rem);
    line-height: 0.98;
    letter-spacing: -0.04em;
}

.hero h1 span {
    display: block;

    color: #DCE8F5;
}

.hero-description {
    max-width: 650px;
    margin-top: 38px;

    color: rgba(255, 255, 255, 0.9);

    font-size: 1.15rem;
    line-height: 1.75;
}

.hero-buttons {
    margin-top: 38px;

    display: flex;
    align-items: center;
    gap: 16px;
}

.button {
    min-width: 165px;
    padding: 16px 24px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: 2px solid transparent;
    border-radius: 6px;

    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;

    text-decoration: none;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.button-primary {
    background-color: var(--white);
    color: var(--primary-blue);
}

.button-primary:hover {
    background-color: var(--background-gray);
    transform: translateY(-2px);
}

.button-secondary {
    background-color: transparent;
    color: var(--white);

    border-color: rgba(255, 255, 255, 0.7);
}

.button-secondary:hover {
    background-color: var(--white);
    color: var(--primary-blue);

    border-color: var(--white);

    transform: translateY(-2px);
}

/* ======================================================
   PROJECTS
====================================================== */

.projects-section {
    padding: var(--section-padding) 24px;

    background-color: var(--white);
}

.section-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-heading {
    margin-bottom: 55px;
}

.section-label {
    margin-bottom: 22px;

    color: var(--primary-blue);

    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.section-label::before {
    content: "";

    width: 52px;
    height: 2px;
    margin-right: 16px;

    display: inline-block;

    background-color: var(--accent-blue);

    vertical-align: middle;
}

.section-heading-row {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    align-items: end;
    gap: 70px;
}

.section-heading h2 {
    max-width: 700px;

    color: var(--primary-blue);

    font-size: clamp(2.5rem, 5vw, 4.4rem);
    line-height: 1.03;
    letter-spacing: -0.04em;
}

.section-heading-row > p {
    max-width: 480px;

    color: #5A6068;

    font-size: 1.05rem;
    line-height: 1.75;
}

#careers .section-heading-row p {
    font-size: clamp(1.4rem, 2vw, 1.9rem);
    font-weight: 600;
    line-height: 1.35;
    color: var(--primary-blue);
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
}

.project-card {
    position: relative;

    min-height: 560px;

    border-radius: var(--card-radius);

    background-color: var(--primary-blue);
    box-shadow: var(--shadow);

    overflow: hidden;
    isolation: isolate;
}

.project-card-image {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform 0.7s cubic-bezier(0.2, 0.65, 0.3, 1),
        filter 0.5s ease;
}

.project-card-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;

    background:
        linear-gradient(
            180deg,
            rgba(17, 42, 71, 0.08) 0%,
            rgba(17, 42, 71, 0.25) 38%,
            rgba(14, 38, 66, 0.92) 100%
        );

    transition: background 0.45s ease;
}

.project-card-content {
    position: relative;
    z-index: 2;

    min-height: 560px;
    padding: 32px;

    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.project-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.project-card-meta span {
    padding: 8px 12px;

    background-color: rgba(255, 255, 255, 0.9);
    color: var(--primary-blue);

    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 100px;

    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;

    backdrop-filter: blur(8px);
}

.project-card-details {
    transform: translateY(54px);

    transition: transform 0.45s ease;
}

.project-location {
    margin-bottom: 12px;

    color: rgba(255, 255, 255, 0.76);

    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.project-card h3 {
    max-width: 560px;

    color: var(--white);

    font-size: clamp(1.8rem, 3vw, 2.65rem);
    line-height: 1.08;
    letter-spacing: -0.025em;
}

.project-summary {
    max-width: 530px;
    margin-top: 17px;

    color: rgba(255, 255, 255, 0.84);

    font-size: 0.98rem;
    line-height: 1.6;

    opacity: 0;

    transform: translateY(14px);

    transition:
        opacity 0.35s ease 0.05s,
        transform 0.35s ease 0.05s;
}

.project-link {
    margin-top: 22px;
    padding: 0;

    display: inline-flex;
    align-items: center;
    gap: 12px;

    background: none;
    color: var(--white);

    border: 0;

    font: inherit;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;

    cursor: pointer;

    opacity: 0;

    transform: translateY(14px);

    transition:
        gap 0.2s ease,
        opacity 0.35s ease 0.1s,
        transform 0.35s ease 0.1s;
}

.project-link:hover {
    gap: 17px;
}

.project-link:focus-visible {
    outline: 2px solid var(--white);
    outline-offset: 7px;
}

.project-card:hover .project-card-image,
.project-card:focus-within .project-card-image {
    filter: saturate(0.9);
    transform: scale(1.055);
}

.project-card:hover .project-card-overlay,
.project-card:focus-within .project-card-overlay {
    background:
        linear-gradient(
            180deg,
            rgba(17, 42, 71, 0.18) 0%,
            rgba(17, 42, 71, 0.42) 38%,
            rgba(14, 38, 66, 0.97) 100%
        );
}

.project-card:hover .project-card-details,
.project-card:focus-within .project-card-details {
    transform: translateY(0);
}

.project-card:hover .project-summary,
.project-card:hover .project-link,
.project-card:focus-within .project-summary,
.project-card:focus-within .project-link {
    opacity: 1;
    transform: translateY(0);
}

/* ======================================================
   UAV LOCATION EASTER EGG
====================================================== */

.project-location-redacted {
    position: relative;

    width: max-content;
    min-width: 125px;
    min-height: 1.2em;

    overflow: hidden;
}

.location-redacted,
.location-revealed {
    display: block;

    transition:
        opacity 0.4s ease,
        filter 0.4s ease,
        transform 0.4s ease;
}

.location-redacted {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
}

.location-revealed {
    position: absolute;
    top: 0;
    left: 0;

    opacity: 0;
    filter: blur(5px);
    transform: translateY(5px);
}

.project-location-redacted:hover .location-redacted {
    opacity: 0;
    filter: blur(5px);
    transform: translateY(-5px);
}

.project-location-redacted:hover .location-revealed {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
}

/* ======================================================
   PROJECT MODAL
====================================================== */

.project-modal {
    width: min(1200px, calc(100% - 40px));
    max-height: calc(100vh - 40px);
    padding: 0;

    background-color: var(--white);

    border: 0;
    border-radius: var(--card-radius);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.3);

    overflow: auto;
}

.project-modal::backdrop {
    background-color: rgba(13, 28, 45, 0.78);

    backdrop-filter: blur(5px);
}

.project-modal[open] {
    animation: modal-open 0.28s ease;
}

.project-modal-layout {
    position: relative;

    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
}

.project-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 3;

    width: 44px;
    height: 44px;

    display: flex;
    align-items: center;
    justify-content: center;

    background-color: rgba(255, 255, 255, 0.94);
    color: var(--primary-blue);

    border: 1px solid var(--border);
    border-radius: 50%;

    font-size: 1.7rem;
    line-height: 1;

    cursor: pointer;

    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.project-modal-close:hover {
    background-color: var(--primary-blue);
    color: var(--white);

    transform: rotate(5deg);
}

.project-modal-image-wrapper {
    min-height: 630px;

    background-color: var(--background-gray);
}

.project-modal-image {
    width: 100%;
    height: 100%;
    min-height: 630px;

    display: block;

    object-fit: cover;
}

.project-modal-content {
    padding: 80px 32px 60px;

    display: flex;
    flex-direction: column;
    justify-content: center;
}

.project-modal-meta {
    margin-bottom: 28px;

    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.project-modal-meta span {
    padding: 8px 11px;

    background-color: #EDF3F9;
    color: var(--primary-blue);

    border-radius: 100px;

    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.project-modal-location {
    margin-bottom: 14px;

    color: var(--accent-blue);

    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.project-modal-content h2 {
    color: var(--primary-blue);

    font-size: clamp(2.2rem, 4vw, 3.7rem);
    line-height: 1.04;
    letter-spacing: -0.04em;
}

.project-modal-description {
    margin-top: 28px;

    color: #545B63;

    font-size: 1.05rem;
    line-height: 1.75;
}

.project-modal-note {
    margin-top: 32px;
    padding-top: 25px;

    color: #727983;

    border-top: 1px solid var(--border);

    font-size: 0.86rem;
    line-height: 1.65;
}

/* ======================================================
   PROJECT GALLERY
====================================================== */

.project-gallery {
    margin-top: 32px;
    padding-top: 24px;

    border-top: 1px solid var(--border);
}

.project-gallery h3 {
    margin-bottom: 18px;

    color: var(--primary-blue);

    font-size: 1.1rem;
}

.project-gallery-viewer {
    display: grid;
    grid-template-columns: 40px 1fr 40px;
    align-items: center;
    gap: 12px;
}

.project-gallery-image {
    width: 100%;
    aspect-ratio: 4 / 3;

    display: block;

    object-fit: cover;

    border-radius: 10px;

    margin: 0 auto;
}

.gallery-button {
    width: 36px;
    height: 36px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: var(--white);

    border: 1px solid var(--border);
    border-radius: 50%;

    color: var(--primary-blue);

    font-size: 1.2rem;

    cursor: pointer;

    transition: .2s ease;
}

.gallery-button:hover {
    background: var(--primary-blue);
    color: white;
}

body.modal-open {
    overflow: hidden;
}

@keyframes modal-open {

    from {
        opacity: 0;
        transform: translateY(15px) scale(0.985);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ======================================================
   GALLERY LIGHTBOX
====================================================== */

.gallery-lightbox {

    width: 100vw;
    height: 100vh;

    max-width: none;
    max-height: none;

    padding: 0;
    border: none;

    background: rgba(8, 12, 20, 0.94);

}

.gallery-lightbox::backdrop {

    background: rgba(8, 12, 20, 0.94);

}

.gallery-lightbox-image {

    display: block;

    width: auto;
    height: auto;

    max-width: 90vw;
    max-height: 90vh;

    margin: auto;

    object-fit: contain;

}

.gallery-lightbox-close {

    position: fixed;

    top: 28px;
    right: 36px;

    width: 48px;
    height: 48px;

    border: none;
    border-radius: 50%;

    background: rgba(255,255,255,.12);

    color: white;

    font-size: 2rem;

    cursor: pointer;

    transition: .2s ease;

}

.gallery-lightbox-close:hover {

    background: white;
    color: var(--primary-blue);

}

.gallery-lightbox-arrow {

    position: fixed;

    top: 50%;

    transform: translateY(-50%);

    width: 60px;
    height: 60px;

    border: none;
    border-radius: 50%;

    background: rgba(255,255,255,.12);

    color: white;

    font-size: 2rem;

    cursor: pointer;

    transition: .2s ease;

}

.gallery-lightbox-arrow:hover {

    background: white;
    color: var(--primary-blue);

}

.gallery-lightbox-prev {

    left: 30px;

}

.gallery-lightbox-next {

    right: 30px;

}

/* ======================================================
   SERVICES
====================================================== */

.services-section {
    padding: var(--section-padding) 24px;

    background-color: var(--background-gray);
}

.services-list {
    display: flex;
    flex-direction: column;
    gap: 90px;
}

.service-feature {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
    align-items: center;
    gap: 70px;
}

.service-feature-reverse .service-image-wrapper {
    order: 2;
}

.service-feature-reverse .service-content {
    order: 1;
}

.service-image-wrapper {
    min-height: 520px;

    border-radius: var(--card-radius);

    background-color: var(--white);
    box-shadow: var(--shadow);

    overflow: hidden;
}

.service-image {
    width: 100%;
    height: 100%;
    min-height: 520px;

    display: block;

    object-fit: cover;

    transition: transform 0.7s cubic-bezier(0.2, 0.65, 0.3, 1);
}

.service-image-wrapper:hover .service-image {
    transform: scale(1.025);
}

.service-content {
    max-width: 540px;
}

.service-number {
    margin-bottom: 18px;

    color: var(--accent-blue);

    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.service-content h3 {
    color: var(--primary-blue);

    font-size: clamp(2.4rem, 4vw, 3.8rem);
    line-height: 1.03;
    letter-spacing: -0.04em;
}

.service-description {
    margin-top: 26px;

    color: #565D65;

    font-size: 1.02rem;
    line-height: 1.75;
}

.service-capabilities {
    margin-top: 32px;

    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.service-capabilities span {
    padding: 10px 14px;

    background-color: var(--white);
    color: var(--primary-blue);

    border: 1px solid var(--border);
    border-radius: 100px;

    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.service-image-placeholder {
    padding: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px dashed #B8C2CF;

    background:
        linear-gradient(
            135deg,
            rgba(27, 75, 130, 0.06),
            rgba(63, 111, 168, 0.12)
        );
}

.service-image-placeholder p {
    max-width: 260px;

    color: var(--primary-blue);

    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.6;
    letter-spacing: 0.08em;
    text-align: center;
    text-transform: uppercase;
}

/* ======================================================
   TEMPORARY SECTIONS
====================================================== */

.placeholder-section {
    min-height: 100vh;
    padding: var(--section-padding) 24px;

    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-section:nth-child(odd) {
    background-color: var(--white);
}

.placeholder-section h2 {
    color: var(--primary-blue);

    font-size: 3rem;
}

/* ======================================================
   TEAM
====================================================== */

.team-section {
    padding: var(--section-padding) 24px;

    background-color: var(--white);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 28px;
}

.team-card {
    background-color: var(--white);

    border: 1px solid var(--border);
    border-radius: var(--card-radius);

    box-shadow: var(--shadow);

    overflow: hidden;

    transition:
        transform 0.28s ease,
        box-shadow 0.28s ease;
}

.team-card:hover {
    transform: translateY(-8px);

    box-shadow: 0 18px 38px rgba(0,0,0,.12);
}

.team-photo-wrapper {
    position: relative;

    aspect-ratio: 4 / 5;

    overflow: hidden;

    background:
        linear-gradient(
            135deg,
            rgba(27,75,130,.08),
            rgba(63,111,168,.16)
        );
}

.team-photo {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    transition: transform .45s ease;
}

.team-card:hover .team-photo {
    transform: scale(1.05);
}

.team-placeholder {

    width:100%;
    height:100%;

    display:flex;
    align-items:center;
    justify-content:center;
    flex-direction:column;

    color:var(--primary-blue);

    font-weight:700;

    text-align:center;

    letter-spacing:.08em;

    text-transform:uppercase;
}

.team-info {
    padding: 24px;
}

.team-name {
    color: var(--primary-blue);

    font-size: 1.35rem;

    font-weight: 700;
}

.team-credentials {

    margin-top:6px;

    color:#5E6670;

    font-size:.9rem;
}

.team-title {

    margin-top:14px;

    color:#707984;

    font-size:.95rem;

    line-height:1.5;
}

.team-link {

    margin-top:22px;

    display:inline-flex;
    align-items:center;
    gap:10px;

    background:none;

    border:0;

    color:var(--primary-blue);

    font:inherit;

    font-size:.8rem;

    font-weight:700;

    letter-spacing:.1em;

    text-transform:uppercase;

    cursor:pointer;

    transition:gap .2s ease;
}

.team-link:hover{
    gap:16px;
}

/* ======================================================
   TEAM MODAL
====================================================== */

.team-modal {

    width:min(1000px,calc(100% - 40px));

    padding:0;

    border:0;

    border-radius:var(--card-radius);

    overflow:auto;

    box-shadow:0 25px 70px rgba(0,0,0,.3);
}

.team-modal::backdrop{

    background:rgba(13,28,45,.75);

    backdrop-filter:blur(5px);
}

.team-modal-layout{

    display:grid;

    grid-template-columns:1fr .95fr;
}

.team-modal-image-wrapper {
    aspect-ratio: 4 / 5;

    min-height: 600px;

    background: var(--background-gray);
}

.team-modal-image {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
}

.team-modal-content{

    padding:70px 50px;

    display:flex;

    flex-direction:column;

    justify-content:center;
}

.team-modal-close{

    position:absolute;

    top:20px;

    right:20px;

    width:44px;
    height:44px;

    border-radius:50%;

    border:1px solid var(--border);

    background:rgba(255,255,255,.95);

    color:var(--primary-blue);

    font-size:1.7rem;

    cursor:pointer;
}

.team-modal-title{

    color:var(--accent-blue);

    font-size:.8rem;

    font-weight:700;

    letter-spacing:.18em;

    text-transform:uppercase;
}

.team-modal-content h2{

    margin-top:14px;

    color:var(--primary-blue);

    font-size:clamp(2.2rem,4vw,3.5rem);

    line-height:1.05;
}

.team-modal-credentials{

    margin-top:16px;

    color:#666;
}

.team-modal-bio{

    margin-top:28px;

    color:#565D65;

    line-height:1.8;
}


/* ======================================================
   CAREERS
====================================================== */

.careers-section {
    padding: var(--section-padding) 24px;
    background: var(--background-gray);
}

.careers-content {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 70px;
    align-items: start;
}

.careers-text p {
    color: #565D65;
    font-size: 1.05rem;
    line-height: 1.8;
}

.careers-text p + p {
    margin-top: 24px;
}

.careers-benefits {
    background: var(--white);
    padding: 48px;
    border-radius: var(--card-radius);
    box-shadow: var(--shadow);

    transition:
        transform .25s ease,
        box-shadow .25s ease;
}

.careers-benefits h3 {
    color: var(--primary-blue);
    margin-bottom: 24px;
    font-size: 1.5rem;
}

.benefits-intro {
    margin-bottom: 28px;

    color: #6B737C;

    line-height: 1.7;
}

.benefits-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.benefits-grid div {
    color: #565D65;
    font-weight: 600;
}

.careers-cta {
    margin-top: 80px;
    padding: 60px;
    text-align: center;
    background: var(--primary-blue);
    color: var(--white);
    border-radius: var(--card-radius);
}

.careers-cta h3 {
    font-size: 2.4rem;
    margin-bottom: 18px;
}

.careers-cta p {
    max-width: 650px;
    margin: 0 auto 34px;
    line-height: 1.8;
    color: rgba(255,255,255,.9);
}

.careers-cta .button {
    padding: 20px 42px;
    font-size: 1rem;
}

/* ======================================================
   CAREERS APPLICATION MODAL
====================================================== */

.careers-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 32px;

    background: rgba(13, 28, 45, 0.78);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition:
        opacity 0.25s ease,
        visibility 0.25s ease;
}

.careers-modal.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.careers-modal-content {
    position: relative;

    width: min(100%, 680px);
    max-height: calc(100vh - 64px);

    padding: 48px;

    overflow-y: auto;

    background: var(--white);

    border-radius: var(--card-radius);

    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.3);

    transform: translateY(20px);

    transition: transform 0.25s ease;
}

.careers-modal.active .careers-modal-content {
    transform: translateY(0);
}

.careers-modal-close {
    position: absolute;
    top: 18px;
    right: 22px;

    width: 40px;
    height: 40px;

    border: 0;
    background: transparent;

    color: var(--charcoal);

    font-size: 32px;
    line-height: 1;

    cursor: pointer;
}

.careers-modal-close:hover {
    color: var(--primary-blue);
}

.careers-modal-header {
    margin-bottom: 32px;
}

.careers-modal-header h2 {
    margin: 8px 0 10px;

    color: var(--primary-blue);

    font-size: clamp(2.2rem, 4vw, 3.2rem);
    line-height: 1.05;
}

.careers-modal-header > p:last-child {
    margin: 0;

    color: #5F6670;

    line-height: 1.6;
}

.careers-form {
    display: grid;
    gap: 20px;
}

.careers-form-group {
    display: grid;
    gap: 8px;
}

.careers-form-group label {
    color: var(--charcoal);

    font-weight: 600;
}

.careers-form-group input,
.careers-form-group select,
.careers-form-group textarea {
    width: 100%;

    padding: 13px 14px;

    border: 1px solid var(--border);
    border-radius: 8px;

    background: var(--white);
    color: var(--charcoal);

    font: inherit;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.careers-form-group textarea {
    min-height: 120px;

    resize: vertical;
}

.careers-form-group input:focus,
.careers-form-group select:focus,
.careers-form-group textarea:focus {
    outline: none;

    border-color: var(--accent-blue);

    box-shadow: 0 0 0 4px rgba(63, 111, 168, 0.12);
}

.careers-file-note {
    margin: 0;

    color: #6B737C;

    font-size: 0.875rem;
}

.careers-form .button {
    width: auto;

    justify-self: start;

    background: var(--primary-blue);
    color: var(--white);

    cursor: pointer;
}

.careers-form .button:hover {
    background: var(--accent-blue);
}

.careers-form-status {
    min-height: 1.4em;

    margin: 0;

    color: #6B737C;
}


/* ======================================================
   CONTACT
====================================================== */

.contact-section {

    padding: var(--section-padding) 24px;

    background: var(--white);

}

.contact-grid {

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 40px;

}

.contact-card {

    background: var(--white);

    border: 1px solid var(--border);

    border-radius: var(--card-radius);

    padding: 48px;

    box-shadow: var(--shadow);

}

.contact-card h3 {

    color: var(--primary-blue);

    margin-bottom: 32px;

    font-size: 1.7rem;

}

.contact-item {

    margin-bottom: 28px;

}

.contact-item strong {

    display: block;

    margin-bottom: 8px;

    color: var(--primary-blue);

}

.contact-item p {

    color: #565D65;

    line-height: 1.7;

}

.licenses {

    margin-top: 45px;

    padding-top: 32px;

    border-top: 1px solid var(--border);

}

.licenses h4 {

    margin-bottom: 24px;

    color: var(--primary-blue);

    font-size: 1.1rem;

}

.licenses strong {

    display: block;

    margin-top: 20px;

    color: var(--primary-blue);

}

.licenses p {

    margin-top: 8px;

    line-height: 1.7;

    color: #565D65;

}

.contact-form {

    display: flex;

    flex-direction: column;

    gap: 18px;

}

.contact-form input,
.contact-form select,
.contact-form textarea {

    width: 100%;

    padding: 16px 18px;

    border: 1px solid var(--border);

    border-radius: 8px;

    font: inherit;

    font-size: .95rem;

    transition: .25s;

}

.contact-form textarea {

    resize: vertical;

}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {

    outline: none;

    border-color: var(--accent-blue);

    box-shadow: 0 0 0 4px rgba(63,111,168,.12);

}

.contact-form button {

    margin-top: 14px;

    align-self: flex-start;

    min-width: 220px;

    padding: 18px 36px;

    border: none;

    border-radius: 8px;

    background: var(--primary-blue);

    color: var(--white);

    font-size: .95rem;

    font-weight: 700;

    letter-spacing: .06em;

    text-transform: uppercase;

    cursor: pointer;

    transition:
        background-color .25s ease,
        transform .2s ease,
        box-shadow .25s ease;

    box-shadow: 0 10px 24px rgba(27,75,130,.25);

}

.contact-form button:hover {

    background: var(--accent-blue);

    transform: translateY(-2px);

    box-shadow: 0 16px 30px rgba(27,75,130,.35);

}

.contact-form button:active {

    transform: translateY(0);

}

.contact-form button:focus-visible {

    outline: 3px solid rgba(63,111,168,.25);

    outline-offset: 3px;

}
.contact-response {

    margin-top: 12px;

    color: #6B737C;

    font-size: .9rem;

}

/* ======================================================
   RESPONSIVE
====================================================== */

@media (max-width: 900px) {

    .nav-links {
        display: none;
    }

    .hero-overlay {
        background:
            linear-gradient(
                rgba(20, 55, 96, 0.88),
                rgba(20, 55, 96, 0.88)
            );
    }

    .hero-content {
        max-width: 700px;
    }

        .section-heading-row {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .project-grid {
        grid-template-columns: 1fr;
    }

    .project-modal-layout {
        grid-template-columns: 1fr;
    }

    .project-modal-image-wrapper,
    .project-modal-image {
        min-height: 420px;
    }

    .project-modal-content {
        padding: 50px 38px;
    }

    .team-grid {
    grid-template-columns: repeat(2, 1fr);
    }

    .team-modal-layout {
        grid-template-columns: 1fr;
    }

    .team-modal-image-wrapper {
        min-height: 400px;
    }

    .contact-grid {

    grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {

    .navbar {
        width: min(100% - 36px, 1200px);
        min-height: 76px;
    }

    .logo {
    width: 185px;
    height: 44px;
    }

    .logo-image {
        height: 70px;
    }

    .nav-button {
        padding: 12px 15px;

        font-size: 0.72rem;
    }

    .hero {
        min-height: 100vh;
        padding: 135px 20px 80px;
    }

    .hero h1 {
        font-size: clamp(2.8rem, 13vw, 4rem);
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-buttons {
        align-items: stretch;
        flex-direction: column;
    }

    .button {
        width: 100%;
    }

        .projects-section {
        padding: 80px 20px;
    }

    .section-heading {
        margin-bottom: 38px;
    }

    .section-heading h2 {
        font-size: 2.65rem;
    }

    .project-grid {
        gap: 20px;
    }

    .project-card,
    .project-card-content {
        min-height: 500px;
    }

    .project-card-content {
        padding: 24px;
    }

    .project-card-details {
        transform: translateY(0);
    }

    .project-summary,
    .project-link {
        opacity: 1;
        transform: translateY(0);
    }

    .project-modal {
        width: calc(100% - 24px);
        max-height: calc(100vh - 24px);
    }

    .project-modal-image-wrapper,
    .project-modal-image {
        min-height: 280px;
        max-height: 330px;
    }

    .project-modal-content {
        padding: 40px 24px 36px;
    }

    .project-modal-close {
        top: 14px;
        right: 14px;
    }

    .team-grid {
    grid-template-columns: 1fr;
    }

    .team-modal-content {
        padding: 40px 24px;
    }

    .team-modal-image-wrapper {
        min-height: 300px;
    }

    .contact-card {
    padding: 30px;
    }

    .contact-form button {
        width: 100%;
    }

        .careers-modal {
        padding: 16px;
    }

    .careers-modal-content {
        max-height: calc(100vh - 32px);

        padding: 40px 24px 28px;
    }

    .careers-form .button {
        width: 100%;
    }
}