:root {
    --black: #050505;
    --ink: #171717;
    --muted: #666b73;
    --red: #c51b27;
    --red-dark: #9b121c;
    --line: #e6e7ea;
    --paper: #f7f8fa;
    --white: #fff;
    --footer-blue: #062a4f;
    --footer-blue-deep: #172235;
    --gold: #f0b72d;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    color: var(--ink);
    background: var(--white);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

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

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

.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 26px;
    min-height: 84px;
    padding: 10px clamp(18px, 4vw, 56px);
    background: rgba(0, 0, 0, .88);
    color: var(--white);
    transition: background .25s ease, min-height .25s ease;
}

.site-header.scrolled {
    min-height: 68px;
    background: #000;
    box-shadow: 0 16px 40px rgba(0, 0, 0, .22);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 158px;
    padding: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
}

.brand-logo {
    width: auto;
    height: 62px;
    padding: 0;
    background: transparent;
    object-fit: contain;
    filter: drop-shadow(0 1px 1px rgba(255, 255, 255, .45));
}

.site-header.scrolled .brand-logo {
    height: 50px;
}

.brand-name {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
}

.header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.top-contact {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 18px;
    font-size: 11px;
    font-weight: 600;
    color: #d8d8d8;
}

.top-contact a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.top-contact-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    color: var(--red);
}

.top-contact-icon svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.top-contact a:hover,
.main-nav a:hover {
    color: var(--red);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: clamp(14px, 2vw, 26px);
}

.nav-item {
    position: relative;
    padding: 6px 0 12px;
}

.nav-item > a {
    color: var(--white);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0;
}

.nav-item.active > a {
    color: var(--red);
}

.subnav {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translate(-50%, 12px);
    min-width: 210px;
    padding: 8px;
    background: var(--white);
    border: 1px solid rgba(196, 0, 22, .24);
    border-radius: 4px;
    opacity: 0;
    pointer-events: none;
    box-shadow: 0 24px 48px rgba(0, 0, 0, .25);
    transition: opacity .2s ease, transform .2s ease;
}

.subnav a {
    display: block;
    padding: 10px 12px;
    color: var(--red);
    font-size: 13px;
    font-weight: 700;
}

.subnav-toggle {
    display: none;
}

.nav-item:hover .subnav {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, 0);
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, .26);
    background: transparent;
    color: var(--white);
    font-size: 24px;
}

.hero,
.page-hero {
    position: relative;
    min-height: 92vh;
    display: flex;
    align-items: center;
    padding: 132px clamp(22px, 5.8vw, 82px) 78px;
    color: var(--white);
    background: linear-gradient(90deg, rgba(0, 0, 0, .78), rgba(0, 0, 0, .28)), var(--hero) center/cover;
}

.page-hero {
    min-height: 58vh;
    align-items: flex-end;
}

.hero::after,
.page-hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 5px;
    background: var(--red);
    z-index: 2;
}

.hero::before,
.page-hero::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 5px;
    height: 150px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, .82));
    pointer-events: none;
}

.hero-content,
.page-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 760px;
}

.hero h1,
.page-hero h1 {
    margin: 0 0 22px;
    font-size: clamp(48px, 5.2vw, 76px);
    line-height: 1.01;
    letter-spacing: 0;
    text-transform: uppercase;
}

.page-hero h1 {
    font-size: clamp(38px, 4.4vw, 60px);
}

.hero p,
.page-hero p {
    max-width: 700px;
    font-size: clamp(16px, 1.25vw, 18px);
    line-height: 1.65;
    color: #ededed;
}

.eyebrow {
    display: inline-block;
    margin: 0 0 14px;
    color: var(--red);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.btn,
.learn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 17px;
    border: 1px solid currentColor;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 11px;
}

.btn.primary,
.learn {
    background: var(--red);
    border-color: var(--red);
    color: var(--white);
}

.btn.primary:hover,
.learn:hover {
    background: var(--red-dark);
}

.section {
    max-width: 1240px;
    margin: 0 auto;
    padding: clamp(68px, 8vw, 112px) clamp(20px, 4vw, 48px);
}

.section-head {
    max-width: 760px;
    margin-bottom: 34px;
}

.section-head span {
    color: var(--red);
    font-weight: 900;
    text-transform: uppercase;
    font-size: 12px;
}

.section-head h2 {
    margin: 8px 0 0;
    font-size: clamp(30px, 3.2vw, 46px);
    line-height: 1.12;
}

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

.capability-card {
    position: relative;
    min-height: 320px;
    overflow: hidden;
    background: var(--black);
}

.capability-card img {
    width: 100%;
    height: 100%;
    min-height: 320px;
    object-fit: cover;
    opacity: .74;
    transition: transform .45s ease, opacity .45s ease;
}

.capability-card div {
    position: absolute;
    inset: auto 22px 22px;
    color: var(--white);
}

.capability-card h3 {
    margin: 0 0 16px;
    font-size: 25px;
    line-height: 1.12;
}

.capability-card:hover img {
    transform: scale(1.08);
    opacity: .5;
}

.industries {
    padding: clamp(70px, 8vw, 110px) clamp(20px, 4vw, 48px);
    background: var(--red);
    color: var(--white);
}

.industries .section-head,
.industry-grid {
    max-width: 1240px;
    margin-left: auto;
    margin-right: auto;
}

.section-head.light span {
    color: #fff;
}

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

.industry-card {
    position: relative;
    min-height: 230px;
    overflow: hidden;
    background: #000;
}

.industry-card img {
    width: 100%;
    height: 230px;
    object-fit: cover;
    opacity: .55;
}

.industry-card h3 {
    position: absolute;
    inset: auto 18px 16px;
    margin: 0;
    font-size: 22px;
}

.friendly .rule {
    height: 1px;
    background: #b8bcc3;
    margin-bottom: 22px;
}

.friendly {
    padding-top: 58px;
    padding-bottom: 68px;
}

.friendly h2 {
    margin: 0;
    font-size: 22px;
    line-height: 1.2;
}

.link-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
    margin-top: -30px;
}

.link-logos span {
    padding: 10px 16px;
    border: 1px solid var(--line);
    color: var(--muted);
    font-weight: 700;
    font-size: 11px;
    background: #fff;
}

.two-col,
.feature-row,
.contact-grid,
.inquiry-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    gap: clamp(28px, 5vw, 70px);
    align-items: center;
}

.inquiry-layout {
    align-items: start;
}

.panel.dark {
    padding: clamp(34px, 5vw, 56px);
    background: #070707;
    color: var(--white);
}

.panel.dark h2 {
    margin-top: 0;
    color: var(--red);
    font-size: clamp(30px, 3.4vw, 46px);
}

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

.check-list span,
.equipment-table div {
    padding: 15px 16px;
    border-left: 4px solid var(--red);
    background: var(--paper);
    font-weight: 700;
}

.feature-stack {
    display: grid;
    gap: 64px;
}

.feature-row {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
}

.feature-row.reverse {
    direction: rtl;
}

.feature-row.reverse > * {
    direction: ltr;
}

.feature-row img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.feature-row h2 {
    margin: 0 0 16px;
    font-size: clamp(28px, 3.3vw, 42px);
    line-height: 1.14;
}

.feature-row li {
    margin: 8px 0;
}

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

.service-tile {
    min-height: 220px;
    padding: 26px;
    background: var(--black);
    color: var(--white);
    border-bottom: 5px solid var(--red);
}

.service-tile span {
    color: var(--red);
    font-weight: 900;
}

.service-tile h2 {
    margin-top: 44px;
    font-size: 25px;
    line-height: 1.16;
}

.terms {
    display: grid;
    gap: 14px;
}

.terms article {
    display: grid;
    grid-template-columns: 52px 1fr;
    gap: 14px;
    padding: 18px;
    background: var(--paper);
}

.terms strong {
    color: var(--red);
    font-size: 24px;
}

.equipment-table {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

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

.gallery img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    background: var(--paper);
}

.gallery-title {
    margin: 42px 0 18px;
    font-size: 34px;
}

.tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tabs a {
    padding: 12px 15px;
    border: 1px solid var(--line);
    font-weight: 800;
    color: var(--muted);
}

.tabs a.active,
.tabs a:hover {
    background: var(--red);
    border-color: var(--red);
    color: var(--white);
}

.message-preview {
    padding: 34px;
    background: #070707;
    color: var(--white);
    font-size: 19px;
    line-height: 1.7;
}

.inquiry-form {
    display: grid;
    gap: 14px;
}

.inquiry-form label,
.admin-form label {
    display: grid;
    gap: 7px;
    font-weight: 800;
    font-size: 13px;
    text-transform: uppercase;
}

input,
textarea,
select {
    width: 100%;
    border: 1px solid #cfd3d8;
    padding: 13px 14px;
    font: inherit;
    background: #fff;
}

textarea {
    resize: vertical;
}

.notice {
    padding: 14px;
    border-left: 4px solid var(--red);
    background: #fff1f2;
    font-weight: 700;
}

.contact-grid {
    align-items: stretch;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.contact-grid article {
    padding: 28px;
    background: var(--paper);
    border-top: 4px solid var(--red);
}

.contact-panel {
    max-width: 1120px;
}

.contact-list {
    position: relative;
    display: grid;
    gap: 24px;
    padding: 8px 0 8px 76px;
}

.contact-item {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    min-height: 82px;
}

.contact-icon {
    position: absolute;
    left: -76px;
    top: 2px;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 2px solid #ef3d1f;
    border-radius: 50%;
    background: #fff;
    color: #ef3d1f;
}

.contact-icon svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.contact-icon svg circle {
    fill: currentColor;
    stroke: none;
}

.contact-item h2 {
    margin: 0 0 8px;
    color: #707070;
    font-size: clamp(17px, 1.45vw, 21px);
    line-height: 1.22;
    font-weight: 800;
}

.contact-item p {
    margin: 0;
    max-width: 900px;
    color: #777;
    font-size: clamp(15px, 1.18vw, 17px);
    line-height: 1.62;
    font-weight: 400;
}

.contact-item.compact {
    min-height: 48px;
}

.contact-item.compact p {
    display: block;
    font-size: clamp(15px, 1.18vw, 17px);
}

.contact-item.compact p + p::before {
    content: "";
}

.contact-email {
    color: inherit;
}

.contact-email:hover {
    color: #ef3d1f;
}

.site-footer {
    background: var(--footer-blue);
    color: #f6f8fb;
}

.footer-cta {
    background: linear-gradient(135deg, #06457a, #00396f 54%, #073b6b);
}

.footer-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    max-width: 1240px;
    min-height: 190px;
    margin: 0 auto;
    padding: 54px clamp(20px, 4vw, 48px);
}

.footer-cta h2 {
    margin: 0;
    font-size: clamp(30px, 3.2vw, 42px);
    line-height: 1.12;
    color: #fff;
}

.footer-cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 190px;
    min-height: 56px;
    padding: 0 28px;
    background: var(--gold);
    color: #041b31;
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    border-radius: 3px;
}

.footer-cta-button:hover {
    background: #ffd15a;
}

.footer-main {
    background: var(--footer-blue);
    padding: 64px clamp(20px, 4vw, 64px) 32px;
}

.footer-grid {
    display: grid;
    max-width: 1240px;
    margin: 0 auto;
    grid-template-columns: 1.15fr .8fr 1fr 1.28fr;
    gap: clamp(34px, 5vw, 72px);
    align-items: start;
}

.footer-brand p {
    margin: 8px 0 20px;
    color: #d9e4f0;
    font-style: italic;
}

.footer-logo {
    width: 75px;
    height: auto;
    padding: 0;
    background: transparent;
    border-radius: 0;
    object-fit: contain;
    filter: drop-shadow(0 1px 1px rgba(255, 255, 255, .32));
}

.site-footer h3 {
    color: var(--white);
    margin-top: 0;
    margin-bottom: 22px;
    font-size: 22px;
    line-height: 1.16;
}

.footer-column {
    display: grid;
    gap: 12px;
}

.site-footer a {
    color: #f6f8fb;
}

.footer-column a,
.footer-contact p {
    font-size: 16px;
    line-height: 1.55;
    color: #e0e9f4;
}

.footer-column a:hover,
.site-footer a:hover,
.footer-column a.accent,
.cert-link {
    color: var(--gold);
}

.footer-contact {
    display: grid;
    gap: 12px;
}

.footer-contact p {
    display: grid;
    grid-template-columns: 26px 1fr;
    gap: 14px;
    align-items: start;
    margin: 0;
}

.footer-contact-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    color: var(--gold);
}

.footer-contact-icon svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.1;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.footer-contact-icon svg circle {
    fill: currentColor;
    stroke: none;
}

.social-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 24px;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 50%;
    transition: color .2s ease, border-color .2s ease, transform .2s ease;
}

.social-icon:hover {
    color: var(--gold);
    border-color: var(--gold);
    transform: translateY(-2px);
}

.social-icon svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.social-icon svg rect,
.social-icon svg circle {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
}

.social-icon svg circle:last-child {
    fill: currentColor;
    stroke: none;
}

.footer-note {
    max-width: 1240px;
    margin: 52px auto 0;
    color: #d9e4f0;
    font-size: 13px;
    text-align: center;
}

.footer-bottom {
    padding: 18px clamp(20px, 4vw, 64px);
    background: var(--footer-blue-deep);
    color: #f1f4f8;
    font-size: 15px;
    text-align: center;
}

.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .55s ease, transform .55s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.admin-body {
    background: var(--paper);
}

.admin-shell {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: 100vh;
}

.admin-sidebar {
    background: #050505;
    color: #fff;
    padding: 28px;
}

.admin-logo {
    width: 178px;
    max-width: 100%;
    height: auto;
    padding: 0;
    margin-bottom: 26px;
    background: transparent;
    border-radius: 0;
    filter: drop-shadow(0 1px 1px rgba(255, 255, 255, .32));
}

.admin-sidebar a {
    display: block;
    padding: 10px 0;
    color: #d8d8d8;
}

.admin-sidebar a:hover,
.admin-sidebar a.active {
    color: var(--red);
}

.admin-main {
    padding: 32px clamp(18px, 4vw, 58px);
}

.admin-card {
    max-width: 980px;
    padding: 26px;
    background: #fff;
    border: 1px solid var(--line);
}

.admin-form {
    display: grid;
    gap: 18px;
}

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

.admin-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.login-box {
    width: min(440px, calc(100vw - 36px));
    margin: 12vh auto;
    padding: 32px;
    background: #fff;
    border-top: 5px solid var(--red);
    box-shadow: 0 18px 50px rgba(0, 0, 0, .12);
}

@media (max-width: 1040px) {
    .site-header {
        align-items: flex-start;
        min-height: 86px;
        padding: 12px 18px;
    }

    .brand {
        min-width: 128px;
        padding: 0;
    }

    .brand-logo {
        height: 50px;
        width: auto;
    }

    .nav-toggle {
        display: block;
    }

    .header-right {
        position: absolute;
        top: 76px;
        right: 18px;
        left: 18px;
        display: none;
        align-items: stretch;
        padding: 18px;
        background: #000;
    }

    .header-right.open {
        display: flex;
    }

    .main-nav {
        display: grid;
        gap: 0;
    }

    .nav-item {
        display: grid;
        grid-template-columns: 1fr 42px;
        align-items: center;
        padding: 0;
        border-bottom: 1px solid rgba(255, 255, 255, .1);
    }

    .nav-item > a {
        display: flex;
        align-items: center;
        min-height: 48px;
    }

    .nav-item > a {
        font-size: 15px;
    }

    .subnav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 42px;
        border: 1px solid rgba(255, 255, 255, .18);
        background: transparent;
        color: #fff;
        font-size: 22px;
        line-height: 1;
        transition: transform .2s ease, color .2s ease, border-color .2s ease;
    }

    .nav-item.open .subnav-toggle {
        color: var(--red);
        border-color: rgba(197, 27, 39, .55);
        transform: rotate(180deg);
    }

    .subnav {
        display: none;
        grid-column: 1 / -1;
        position: static;
        transform: none;
        opacity: 1;
        pointer-events: auto;
        min-width: 0;
        margin: 0 0 10px;
        padding: 6px;
        background: rgba(255, 255, 255, .96);
        box-shadow: none;
    }

    .nav-item.open .subnav {
        display: block;
    }

    .nav-item:hover .subnav {
        transform: none;
    }

    .subnav a {
        padding: 11px 12px;
        font-size: 14px;
    }
}

@media (max-width: 820px) {
    .footer-cta-inner {
        align-items: flex-start;
        flex-direction: column;
        min-height: 0;
        padding-top: 44px;
        padding-bottom: 44px;
    }

    .footer-cta h2 {
        font-size: 30px;
    }

    .footer-cta-button {
        min-width: 180px;
    }

    .footer-main {
        padding-top: 48px;
    }

    .footer-grid {
        gap: 34px;
    }

    .footer-contact p {
        grid-template-columns: 26px 1fr;
    }

    .footer-bottom {
        font-size: 15px;
    }

    .hero,
    .page-hero {
        min-height: 72vh;
        padding-top: 118px;
        padding-bottom: 68px;
    }

    .hero-content,
    .page-hero-inner {
        max-width: 100%;
    }

    .hero h1,
    .page-hero h1 {
        margin-bottom: 18px;
        font-size: clamp(39px, 10.8vw, 48px);
        line-height: 1.04;
    }

    .hero p,
    .page-hero p {
        font-size: 16px;
        line-height: 1.58;
    }

    .section {
        padding-top: 58px;
        padding-bottom: 58px;
    }

    .section-head h2 {
        font-size: 29px;
        line-height: 1.14;
    }

    .friendly {
        padding-top: 42px;
        padding-bottom: 46px;
    }

    .friendly h2 {
        font-size: 21px;
    }

    .link-logos {
        justify-content: flex-start;
        margin-top: 18px;
    }

    .capability-card h3,
    .service-tile h2 {
        font-size: 24px;
    }

    .footer-column a,
    .footer-contact p {
        font-size: 16px;
    }

    .contact-list {
        gap: 24px;
        padding-left: 58px;
    }

    .contact-icon {
        left: -58px;
        width: 38px;
        height: 38px;
    }

    .contact-icon svg {
        width: 19px;
        height: 19px;
    }

    .contact-item h2 {
        display: block;
        margin: 0 0 6px;
        font-size: 17px;
    }

    .contact-item p,
    .contact-item.compact p {
        display: block;
        font-size: 14px;
        line-height: 1.55;
    }

    .contact-item.compact p + p::before {
        content: "";
    }

    .capability-grid,
    .industry-grid,
    .service-grid,
    .gallery,
    .equipment-table,
    .contact-grid,
    .footer-grid,
    .two-col,
    .feature-row,
    .inquiry-layout,
    .admin-shell,
    .admin-grid {
        grid-template-columns: 1fr;
    }

    .check-list {
        grid-template-columns: 1fr;
    }

    .feature-row.reverse {
        direction: ltr;
    }

    .admin-sidebar {
        position: static;
    }
}
