:root {
    --ink: #0b1117;
    --ink-2: #15202b;
    --panel: #ffffff;
    --muted: #65717f;
    --line: #dfe5eb;
    --soft: #f4f7f9;
    --brand: #d91f2d;
    --brand-dark: #a91420;
    --teal: #12b5a6;
    --gold: #f2a93b;
    --steel: #394756;
    --radius: 8px;
    --shadow: 0 22px 60px rgba(11, 17, 23, 0.16);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body.site-body {
    margin: 0;
    color: var(--ink);
    background: #fff;
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body.site-body p {
    color: var(--muted);
    font-size: 1rem;
}

a {
    color: inherit;
    transition: color 180ms ease, background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

a:hover {
    color: var(--brand);
    text-decoration: none;
}

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

.skip-link {
    position: fixed;
    left: 16px;
    top: 16px;
    z-index: 9999;
    padding: 10px 14px;
    background: #fff;
    color: var(--ink);
    border-radius: var(--radius);
    transform: translateY(-140%);
}

.skip-link:focus {
    transform: translateY(0);
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 14px 24px;
    transition: padding 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.site-header .navbar {
    max-width: 1180px;
    margin: 0 auto;
    padding: 10px 14px 10px 18px;
    background: rgba(11, 17, 23, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius);
    backdrop-filter: blur(18px);
}

.site-header.is-scrolled {
    padding: 10px 18px;
}

.site-header.is-scrolled .navbar {
    background: rgba(11, 17, 23, 0.95);
    box-shadow: 0 16px 40px rgba(11, 17, 23, 0.18);
}

.navbar-brand {
    padding: 0;
}

.navbar-brand img {
    width: 136px;
    height: auto;
}

.navbar-toggler {
    display: inline-flex;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.navbar-toggler span {
    width: 19px;
    height: 2px;
    background: #fff;
    display: block;
}

.navbar-nav {
    align-items: center;
}

.nav-link {
    margin: 0 2px;
    padding: 12px 13px !important;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.86rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.nav-link.active,
.nav-link:hover {
    color: #fff;
}

.nav-link.active::after,
.nav-link:hover::after {
    width: 100%;
}

.nav-link::after {
    content: "";
    display: block;
    width: 0;
    height: 2px;
    margin-top: 6px;
    background: var(--brand);
    transition: width 180ms ease;
}

.nav-action,
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 46px;
    padding: 12px 18px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    font-weight: 800;
    line-height: 1;
}

.nav-action {
    margin-left: 16px;
    background: #fff;
    color: var(--ink);
    font-size: 0.88rem;
}

.nav-action:hover {
    transform: translateY(-1px);
    color: var(--ink);
}

.button-primary {
    background: var(--brand);
    color: #fff;
    box-shadow: 0 16px 30px rgba(217, 31, 45, 0.25);
}

.button-primary:hover {
    background: var(--brand-dark);
    color: #fff;
    transform: translateY(-2px);
}

.button-secondary {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.34);
}

.button-secondary:hover {
    color: #fff;
    border-color: #fff;
    transform: translateY(-2px);
}

.hero {
    position: relative;
    overflow: hidden;
    min-height: 84vh;
    display: flex;
    align-items: center;
    padding: 148px 0 74px;
    background: var(--ink);
    color: #fff;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(105deg, rgba(11, 17, 23, 0.92) 0%, rgba(11, 17, 23, 0.7) 48%, rgba(11, 17, 23, 0.35) 100%),
        var(--hero-image, url("/img/Mylton_2025_Home_5B.jpg"));
    background-size: cover;
    background-position: center;
    transform: scale(1.03);
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 46px 46px;
    mask-image: linear-gradient(90deg, #000 0%, transparent 78%);
    pointer-events: none;
}

.hero-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
    gap: 58px;
    align-items: center;
}

.eyebrow {
    color: var(--teal) !important;
    font-size: 0.78rem !important;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero h1,
.page-hero h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(2.8rem, 5.6vw, 5.4rem);
    line-height: 0.96;
    font-weight: 900;
    letter-spacing: 0;
}

.hero-lede {
    max-width: 650px;
    margin: 26px 0 0;
    color: rgba(255, 255, 255, 0.78) !important;
    font-size: 1.18rem !important;
}

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

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

.metric {
    padding: 18px 14px;
    border-left: 2px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.07);
}

.metric strong {
    display: block;
    color: #fff;
    font-size: 1.45rem;
    line-height: 1;
}

.metric span {
    display: block;
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.78rem;
    line-height: 1.35;
}

.hero-visual {
    min-height: 430px;
    perspective: 1100px;
}

.ops-stack {
    position: relative;
    min-height: 430px;
    transform-style: preserve-3d;
    transform: rotateX(58deg) rotateZ(-34deg);
    transition: transform 240ms ease;
}

.hero-visual:hover .ops-stack {
    transform: rotateX(54deg) rotateZ(-31deg) translateY(-4px);
}

.ops-layer {
    position: absolute;
    left: 8%;
    right: 8%;
    min-height: 120px;
    padding: 24px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(244, 247, 249, 0.9));
    border: 1px solid rgba(255, 255, 255, 0.68);
    border-radius: var(--radius);
    color: var(--ink);
    box-shadow: var(--shadow);
    transform-style: preserve-3d;
}

.ops-layer::before {
    content: "";
    position: absolute;
    inset: 10px;
    border: 1px solid rgba(57, 71, 86, 0.16);
    border-radius: var(--radius);
    transform: translateZ(10px);
}

.ops-layer small {
    display: block;
    color: var(--brand);
    font-weight: 900;
    text-transform: uppercase;
}

.ops-layer strong {
    display: block;
    margin-top: 8px;
    font-size: 1.3rem;
}

.ops-layer span {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 0.92rem;
}

.ops-layer.layer-1 {
    top: 12px;
    transform: translateZ(110px);
}

.ops-layer.layer-2 {
    top: 150px;
    transform: translateZ(62px);
}

.ops-layer.layer-3 {
    top: 288px;
    transform: translateZ(18px);
}

.ops-badge {
    position: absolute;
    right: 0;
    bottom: 22px;
    width: 164px;
    padding: 18px;
    background: var(--brand);
    border-radius: var(--radius);
    color: #fff;
    transform: rotateX(0deg) rotateZ(34deg) translateZ(144px);
    box-shadow: 0 22px 42px rgba(217, 31, 45, 0.32);
}

.ops-badge i {
    font-size: 1.6rem;
}

.ops-badge span {
    display: block;
    margin-top: 10px;
    font-weight: 900;
    line-height: 1.2;
}

.section {
    padding: 92px 0;
}

.section-soft {
    background: var(--soft);
}

.section-dark {
    background: var(--ink);
    color: #fff;
}

.section-dark p,
.section-dark .section-heading p {
    color: rgba(255, 255, 255, 0.72);
}

.section-heading {
    max-width: 720px;
    margin-bottom: 42px;
}

.section-heading.center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.section-heading h2 {
    margin: 0;
    color: var(--ink);
    font-size: clamp(2rem, 4vw, 3.3rem);
    line-height: 1.05;
    font-weight: 900;
}

.section-dark .section-heading h2 {
    color: #fff;
}

.section-dark .feature-list h3 {
    color: #fff;
}

.section-dark .feature-list i {
    background: rgba(255, 255, 255, 0.1);
    color: var(--teal);
}

.section-heading p {
    margin: 18px 0 0;
    font-size: 1.05rem;
}

.intro-grid,
.split-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 52px;
    align-items: center;
}

.image-frame {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transform: perspective(900px) rotateY(-4deg);
}

.image-frame::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: var(--radius);
    pointer-events: none;
}

.image-frame img {
    width: 100%;
    height: 100%;
    min-height: 420px;
    object-fit: cover;
}

.feature-list {
    display: grid;
    gap: 14px;
    margin-top: 28px;
}

.feature-list div {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 14px;
    align-items: start;
}

.feature-list i {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    background: rgba(217, 31, 45, 0.1);
    color: var(--brand);
    border-radius: var(--radius);
}

.feature-list h3 {
    margin: 0 0 4px;
    font-size: 1.05rem;
    font-weight: 900;
}

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

.proof-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.service-card,
.sector-card,
.proof-card,
.process-step,
.contact-info-panel {
    border-radius: var(--radius);
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: 0 12px 34px rgba(11, 17, 23, 0.06);
}

.service-card {
    overflow: hidden;
    transform-style: preserve-3d;
}

.service-card:hover,
.sector-card:hover,
.proof-card:hover {
    transform: translateY(-6px);
}

.service-card img {
    width: 100%;
    height: 190px;
    object-fit: cover;
}

.service-card-body {
    padding: 24px;
}

.service-card h3,
.sector-card h3,
.proof-card h3,
.process-step h3 {
    margin: 0;
    color: var(--ink);
    font-size: 1.15rem;
    font-weight: 900;
}

.service-icon {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    background: var(--ink);
    color: #fff;
    border-radius: var(--radius);
}

.service-card p,
.sector-card p,
.process-step p {
    margin: 12px 0 0;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    color: var(--brand);
    font-weight: 900;
}

.dark-service-grid .service-card {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
}

.dark-service-grid .service-card h3,
.dark-service-grid .service-card p {
    color: #fff;
}

.dark-service-grid .service-card p {
    color: rgba(255, 255, 255, 0.72);
}

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

.process-step {
    padding: 24px;
    position: relative;
}

.process-step::before {
    content: attr(data-step);
    display: inline-flex;
    width: 42px;
    height: 42px;
    margin-bottom: 18px;
    align-items: center;
    justify-content: center;
    background: var(--brand);
    color: #fff;
    border-radius: var(--radius);
    font-weight: 900;
}

.sector-card,
.proof-card {
    padding: 26px;
}

.proof-card strong {
    display: block;
    color: var(--brand);
    font-size: 2.25rem;
    line-height: 1;
    font-weight: 900;
}

.proof-card span {
    display: block;
    margin-top: 12px;
    color: var(--muted);
}

.cta-band {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(105deg, rgba(11, 17, 23, 0.94), rgba(11, 17, 23, 0.76)),
        url("../img/sections/contactform-bg.jpg") center/cover;
    color: #fff;
    padding: 82px 0;
}

.cta-band .container {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 28px;
    align-items: center;
}

.cta-band h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 900;
}

.cta-band p {
    max-width: 650px;
    margin: 16px 0 0;
    color: rgba(255, 255, 255, 0.75);
}

.page-hero {
    position: relative;
    overflow: hidden;
    padding: 168px 0 86px;
    background: var(--ink);
    color: #fff;
}

.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(105deg, rgba(11, 17, 23, 0.9), rgba(11, 17, 23, 0.48)),
        var(--hero-image, url("/img/Mylton_2025_Home_5B.jpg")) center/cover;
}

.page-hero .container {
    position: relative;
    z-index: 2;
}

.page-hero p {
    max-width: 720px;
    margin: 22px 0 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 1.15rem;
}

.service-detail {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 42px;
    align-items: center;
    padding: 44px 0;
    border-bottom: 1px solid var(--line);
}

.service-detail:last-child {
    border-bottom: 0;
}

.service-detail:nth-child(even) .service-detail-image {
    order: 2;
}

.service-detail-image {
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.service-detail-image img {
    width: 100%;
    height: 330px;
    object-fit: cover;
}

.service-detail h2 {
    margin: 0;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 900;
}

.service-detail ul {
    margin: 20px 0 0;
    padding: 0;
    list-style: none;
}

.service-detail li {
    position: relative;
    margin: 12px 0;
    padding-left: 30px;
    color: var(--steel);
}

.service-detail li::before {
    content: "\f00c";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--teal);
    font-family: FontAwesome;
}

.contact-layout {
    display: grid;
    grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.15fr);
    gap: 34px;
    align-items: start;
}

.contact-info-panel {
    padding: 30px;
}

.contact-info-panel h2 {
    margin: 0 0 18px;
    font-weight: 900;
}

.contact-method {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 14px;
    padding: 18px 0;
    border-top: 1px solid var(--line);
}

.contact-method i {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--soft);
    color: var(--brand);
    border-radius: var(--radius);
}

.contact-method strong {
    display: block;
}

.contact-method span,
.contact-method a {
    color: var(--muted);
}

.contact-panel {
    padding: 30px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.contact-panel label {
    display: block;
    margin-bottom: 8px;
    color: var(--ink);
    font-size: 0.82rem;
    font-weight: 900;
    text-transform: uppercase;
}

.contact-panel input,
.contact-panel select,
.contact-panel textarea {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    color: var(--ink);
    outline: none;
}

.contact-panel textarea {
    resize: vertical;
}

.contact-panel input:focus,
.contact-panel select:focus,
.contact-panel textarea:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(217, 31, 45, 0.12);
}

.captcha-check {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 112px;
    gap: 18px;
    align-items: end;
    margin-bottom: 22px;
    padding: 16px;
    border: 1px solid var(--line);
    border-left: 3px solid var(--teal);
    border-radius: var(--radius);
    background: var(--soft);
}

.captcha-question {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 13px;
    align-items: center;
}

.captcha-question i {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    background: #fff;
    color: var(--teal);
}

.captcha-question span,
.captcha-question strong {
    display: block;
}

.captcha-question span {
    margin-bottom: 2px;
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
}

.captcha-question strong {
    color: var(--ink);
    font-size: 1rem;
}

.captcha-answer label {
    margin-bottom: 5px;
}

.form-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
}

.form-status {
    margin: 0;
    color: var(--muted);
    font-weight: 700;
}

.form-status.is-success {
    color: #13795b;
}

.form-status.is-error {
    color: var(--brand);
}

.contact-panel button:disabled {
    cursor: not-allowed;
    opacity: 0.62;
}

.map-band iframe {
    display: block;
    width: 100%;
    min-height: 420px;
    border: 0;
    filter: saturate(0.78) contrast(1.05);
}

.site-footer {
    padding: 64px 0 26px;
    background: #080c11;
    color: #fff;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr repeat(3, 1fr);
    gap: 34px;
}

.footer-brand img {
    width: 154px;
    margin-bottom: 18px;
}

.site-footer h2 {
    margin: 0 0 18px;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 900;
    text-transform: uppercase;
}

.site-footer p,
.site-footer li,
.site-footer a {
    color: rgba(255, 255, 255, 0.66);
}

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

.site-footer li {
    margin-bottom: 10px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 46px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    margin: 0;
}

[data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 520ms ease, transform 520ms ease;
}

[data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

[data-tilt] {
    transform-style: preserve-3d;
    will-change: transform;
}

@media (max-width: 991.98px) {
    .site-header {
        padding: 10px;
    }

    .site-header .navbar {
        align-items: flex-start;
    }

    .navbar-collapse {
        padding: 18px 0 4px;
    }

    .navbar-nav {
        align-items: stretch;
    }

    .nav-action {
        margin: 14px 0 0;
        width: 100%;
    }

    .hero,
    .page-hero {
        padding-top: 132px;
    }

    .hero-grid,
    .intro-grid,
    .split-grid,
    .contact-layout,
    .service-detail {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        min-height: 360px;
    }

    .ops-stack {
        transform: rotateX(56deg) rotateZ(-28deg) scale(0.88);
        transform-origin: center top;
    }

    .hero-metrics,
    .proof-grid,
    .process-grid,
    .service-grid,
    .sector-grid,
    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .service-detail:nth-child(even) .service-detail-image {
        order: 0;
    }

    .cta-band .container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575.98px) {
    .navbar-brand img {
        width: 118px;
    }

    .hero {
        min-height: auto;
        padding-bottom: 58px;
    }

    .hero h1,
    .page-hero h1 {
        font-size: 2.55rem;
    }

    .hero-actions,
    .form-footer,
    .footer-bottom {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-metrics,
    .proof-grid,
    .process-grid,
    .service-grid,
    .sector-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        display: none;
    }

    .section {
        padding: 68px 0;
    }

    .contact-panel,
    .contact-info-panel {
        padding: 22px;
    }

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

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