:root {
    --navy: #071f3f;
    --navy-2: #0c2d55;
    --gold: #d9a21b;
    --gold-2: #f0bc39;
    --charcoal: #1e2936;
    --muted: #637083;
    --concrete: #f3f5f7;
    --line: #dde5ee;
    --white: #ffffff;
    --green: #1f6b4f;
    --shadow: 0 22px 70px rgba(7, 31, 63, 0.14);
    --radius: 8px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    color: var(--charcoal);
    background: var(--white);
    font-family: "Inter", Arial, sans-serif;
    line-height: 1.68;
    text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }

.container {
    width: min(1180px, calc(100% - 40px));
    margin-inline: auto;
}

.skip-link {
    position: absolute;
    top: -80px;
    left: 16px;
    z-index: 1000;
    padding: 10px 14px;
    color: var(--navy);
    background: var(--gold);
    border-radius: 6px;
}
.skip-link:focus { top: 16px; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 900;
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid rgba(221, 229, 238, 0.9);
    backdrop-filter: blur(16px);
}
.site-header.is-scrolled { box-shadow: 0 14px 42px rgba(7, 31, 63, 0.12); }

.topbar { color: rgba(255,255,255,.86); background: var(--navy); font-size: .86rem; }
.topbar__inner { min-height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.topbar span, .topbar a { display: inline-flex; align-items: center; gap: 8px; }

.navbar__inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; min-width: 0; }
.brand__mark {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    color: var(--navy);
    background: var(--gold);
    border-radius: 6px;
    border: 3px solid rgba(255,255,255,.75);
    box-shadow: 0 12px 28px rgba(7,31,63,.16);
    font-family: "Manrope", Arial, sans-serif;
    font-weight: 900;
}
.brand__logo {
    width: 48px;
    height: 48px;
    border-radius: 6px;
    object-fit: contain;
    background: var(--white);
    border: 1px solid var(--line);
    box-shadow: 0 12px 28px rgba(7,31,63,.12);
}
.brand__text { display: grid; line-height: 1.1; }
.brand__text strong { color: var(--navy); font-family: "Manrope", Arial, sans-serif; font-size: 1.02rem; }
.brand__text small { color: var(--muted); font-size: .75rem; font-weight: 800; }
.brand--footer .brand__text strong, .brand--footer .brand__text small { color: var(--white); }

.nav-menu { display: flex; align-items: center; gap: 19px; }
.nav-link {
    position: relative;
    color: #253348;
    font-size: .92rem;
    font-weight: 800;
    transition: color .16s ease;
}
.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 100%;
    height: 3px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform .18s ease;
}
.nav-link:hover, .nav-link.is-active { color: var(--navy); }
.nav-link:hover::after, .nav-link.is-active::after { transform: scaleX(1); transform-origin: left; }

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 10px;
    background: var(--navy);
    border: 0;
    border-radius: 6px;
}
.nav-toggle span { display: block; height: 2px; margin: 5px 0; background: var(--white); transition: transform .16s ease, opacity .16s ease; }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.btn {
    display: inline-flex;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    padding: 0 22px;
    color: var(--white);
    background: var(--navy);
    border: 1px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 900;
    transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(7,31,63,.18); }
.btn--sm { min-height: 42px; padding-inline: 15px; font-size: .9rem; }
.btn--gold { color: var(--navy); background: var(--gold); }
.btn--gold:hover { background: var(--gold-2); }
.btn--light { color: var(--white); background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.42); }
.btn--navy { background: var(--navy); }
.btn--outline { color: var(--navy); background: var(--white); border-color: var(--line); }

.hero {
    position: relative;
    display: grid;
    min-height: 520px;
    overflow: hidden;
    color: var(--white);
    background-image: var(--hero-image);
    background-size: cover;
    background-position: center;
}
.hero--home { min-height: 690px; }
.hero--legal { min-height: 420px; }
.hero__overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(7,31,63,.92) 0%, rgba(7,31,63,.76) 44%, rgba(7,31,63,.24) 100%),
        linear-gradient(0deg, rgba(7,31,63,.28), rgba(7,31,63,.06));
}
.hero__content {
    position: relative;
    z-index: 1;
    align-self: center;
    max-width: 790px;
    padding-block: 88px;
}

.hero__content.reveal {
    opacity: 1;
    transform: none;
}
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 16px;
    color: var(--gold);
    font-size: .78rem;
    font-weight: 900;
    text-transform: uppercase;
}
.section-kicker::before { content: ""; width: 34px; height: 2px; background: currentColor; }
.hero h1, .section-copy h2, .section-heading h2, .footer-cta h2, .error-panel h1 {
    margin: 0;
    font-family: "Manrope", Arial, sans-serif;
    line-height: 1.08;
}
.hero h1 { max-width: 850px; font-size: 4rem; }
.hero__lead { max-width: 720px; margin: 22px 0 0; color: rgba(255,255,255,.88); font-size: 1.12rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

.trust-strip, .contact-strip { color: var(--white); background: var(--navy); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-grid div { padding: 28px; border-left: 1px solid rgba(255,255,255,.12); }
.trust-grid div:last-child { border-right: 1px solid rgba(255,255,255,.12); }
.trust-grid strong, .trust-grid span { display: block; }
.trust-grid strong { font-family: "Manrope", Arial, sans-serif; font-size: 1.05rem; }
.trust-grid span { color: rgba(255,255,255,.7); font-size: .92rem; }

.section { padding: 94px 0; }
.section--muted { background: var(--concrete); }
.section--split { padding-top: 108px; }

.split-grid, .contact-layout, .sectors-grid {
    display: grid;
    align-items: center;
    gap: 58px;
    grid-template-columns: 1fr 1fr;
}
.contact-layout { grid-template-columns: .82fr 1.18fr; align-items: start; }
.split-grid > *, .contact-layout > *, .sectors-grid > *, .footer-grid > * { min-width: 0; }

.media-panel {
    overflow: hidden;
    background: var(--navy);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.media-panel img { width: 100%; min-height: 430px; object-fit: cover; transition: transform .45s ease; }
.media-panel:hover img { transform: scale(1.04); }

.section-copy h2, .section-heading h2 { max-width: 850px; color: var(--navy); font-size: 2.45rem; }
.section-copy p, .section-heading p { margin: 20px 0 0; color: var(--muted); font-size: 1.02rem; }
.section-heading { max-width: 840px; margin-bottom: 44px; }
.section-heading--row { display: flex; max-width: none; align-items: end; justify-content: space-between; gap: 28px; }
.section-action { margin-top: 34px; text-align: center; }

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
    color: var(--navy);
    font-weight: 900;
}
.text-link i { color: var(--gold); transition: transform .16s ease; }
.text-link:hover i { transform: translateX(4px); }

.service-grid, .portfolio-grid, .project-grid, .team-grid, .values-grid, .feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.portfolio-grid--preview { grid-template-columns: repeat(2, 1fr); }
.team-grid { grid-template-columns: repeat(4, 1fr); }
.values-grid--detailed { grid-template-columns: repeat(2, 1fr); }

.service-card, .portfolio-card, .project-card, .team-card, .value-card, .feature-card, .legal-block, .faq-item, .testimonial-note {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.service-card:hover, .portfolio-card:hover, .project-card:hover, .team-card:hover, .feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(217,162,27,.45);
    box-shadow: var(--shadow);
}
.service-card img, .portfolio-card img, .project-card img, .team-card img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    background: var(--navy);
}
.team-card img { aspect-ratio: 4 / 4.3; }
.service-card__body, .portfolio-card__body, .project-card__body, .team-card__body, .value-card, .feature-card {
    padding: 26px;
}
.service-card i, .service-detail i, .feature-card i {
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    color: var(--navy);
    background: rgba(217,162,27,.14);
    border-radius: 6px;
    font-size: 1.4rem;
}
.service-card h3, .portfolio-card h3, .project-card h3, .team-card h3, .value-card h3, .feature-card h3, .legal-block h2, .notice-panel h2 {
    margin: 16px 0 10px;
    color: var(--navy);
    font-family: "Manrope", Arial, sans-serif;
    line-height: 1.18;
}
.service-card p, .portfolio-card p, .project-card p, .team-card p, .value-card p, .feature-card p, .legal-block p { margin: 0; color: var(--muted); }

.hse-band { color: var(--white); background: var(--navy); }
.hse-band .section-copy h2, .hse-band .section-copy p { color: var(--white); }
.hse-band .section-copy p { color: rgba(255,255,255,.78); }
.hse-band .btn--gold { margin-top: 22px; }

.feature-stack { display: grid; gap: 16px; }
.feature-stack div {
    padding: 24px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.14);
    border-radius: var(--radius);
}
.feature-stack strong { display: block; color: var(--white); font-family: "Manrope", Arial, sans-serif; font-size: 1.08rem; }
.feature-stack p { margin: 8px 0 0; color: rgba(255,255,255,.74); }

.check-list { display: grid; gap: 14px; margin-top: 24px; }
.check-list p { display: flex; gap: 12px; margin: 0; }
.check-list i { color: var(--gold); }

.process-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.process-step {
    min-height: 180px;
    padding: 26px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}
.process-step span, .portfolio-card span, .project-card span {
    display: block;
    color: var(--gold);
    font-size: .78rem;
    font-weight: 900;
    text-transform: uppercase;
}
.process-step strong { display: block; margin: 18px 0 8px; color: var(--navy); font-family: "Manrope", Arial, sans-serif; font-size: 1.12rem; }
.process-step p { margin: 0; color: var(--muted); }

.sector-list, .tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.sector-list span, .tag-list span {
    display: inline-flex;
    padding: 10px 13px;
    color: var(--navy);
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 6px;
    font-weight: 800;
}

.testimonials-band { background: linear-gradient(135deg, var(--concrete), #fff); }
.testimonial-note { padding: 34px; max-width: 760px; }
.testimonial-note p { margin: 0; color: var(--muted); font-size: 1.08rem; }

.statement-stack { display: grid; gap: 18px; }
.statement-stack article {
    padding: 32px;
    background: var(--concrete);
    border-left: 4px solid var(--gold);
    border-radius: var(--radius);
}
.statement-stack i { color: var(--gold); font-size: 1.7rem; }
.statement-stack h3 { margin: 12px 0 8px; color: var(--navy); font-family: "Manrope", Arial, sans-serif; }
.statement-stack p { margin: 0; color: var(--muted); }

.service-detail-list { display: grid; gap: 26px; }
.service-detail {
    display: grid;
    grid-template-columns: .78fr 1.22fr;
    gap: 0;
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 14px 44px rgba(7,31,63,.08);
}
.service-detail img { width: 100%; height: 100%; min-height: 390px; object-fit: cover; }
.service-detail__content { padding: 34px; }
.service-detail h2 { margin: 18px 0 12px; color: var(--navy); font-family: "Manrope", Arial, sans-serif; font-size: 1.8rem; }
.service-detail p, .service-detail li { color: var(--muted); }
.service-columns { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin: 24px 0; }
.service-columns h3 { color: var(--navy); font-size: 1rem; }
.service-columns ul, .project-card ul { padding-left: 20px; margin: 10px 0 0; }

.filter-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.filter-tabs button {
    min-height: 42px;
    padding: 0 16px;
    color: var(--navy);
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 6px;
    cursor: pointer;
    font-weight: 900;
}
.filter-tabs button.is-active { color: var(--navy); background: var(--gold); border-color: var(--gold); }
.portfolio-card.is-hidden { display: none; }
.portfolio-card dl { display: grid; gap: 12px; margin: 22px 0; }
.portfolio-card dl div { padding-top: 12px; border-top: 1px solid var(--line); }
.portfolio-card dt { color: var(--navy); font-weight: 900; }
.portfolio-card dd { margin: 2px 0 0; color: var(--muted); }

.contact-aside, .contact-form-panel {
    min-width: 0;
    padding: 34px;
    border-radius: var(--radius);
    overflow-wrap: anywhere;
}
.contact-aside { color: var(--white); background: var(--navy); }
.contact-aside h2 { margin: 0; font-family: "Manrope", Arial, sans-serif; font-size: 2rem; line-height: 1.16; }
.contact-aside p { color: rgba(255,255,255,.76); }
.contact-method { display: flex; gap: 14px; padding: 18px 0; border-top: 1px solid rgba(255,255,255,.12); }
.contact-method i { color: var(--gold); font-size: 1.2rem; }
.contact-method strong, .contact-method span, .contact-method a { display: block; }
.contact-method span, .contact-method a { color: rgba(255,255,255,.78); }
.map-summary {
    display: grid;
    min-height: 210px;
    place-items: center;
    margin-top: 24px;
    padding: 24px;
    text-align: center;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: var(--radius);
    background:
        linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px),
        linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px);
    background-size: 28px 28px;
}
.map-summary i { color: var(--gold); font-size: 2rem; }
.map-summary span, .map-summary small { display: block; }
.contact-form-panel { background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.form-grid__full { grid-column: 1 / -1; }
.contact-form label { display: grid; gap: 7px; color: var(--navy); font-weight: 900; }
.contact-form input, .contact-form select, .contact-form textarea {
    width: 100%;
    padding: 14px 15px;
    color: var(--charcoal);
    background: #fbfcfe;
    border: 1px solid var(--line);
    border-radius: 6px;
    outline: none;
    transition: border-color .16s ease, box-shadow .16s ease;
}
.contact-form textarea { resize: vertical; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(217,162,27,.14); }
.contact-form .btn { margin-top: 22px; }
.field-error { color: #b42318; font-weight: 800; }
.alert { margin-bottom: 22px; padding: 15px 16px; border-radius: 6px; font-weight: 900; }
.alert small { display: block; margin-top: 4px; }
.alert--success { color: #0f5132; background: #d1e7dd; border: 1px solid #badbcc; }
.alert--error { color: #842029; background: #f8d7da; border: 1px solid #f5c2c7; }
.honeypot { position: absolute; left: -9999px; width: 1px; max-width: 1px; height: 1px; padding: 0; overflow: hidden; border: 0; }
.contact-form .honeypot { width: 1px; max-width: 1px; }

.faq-list { display: grid; gap: 14px; }
.faq-item { padding: 22px 24px; }
.faq-item summary { color: var(--navy); cursor: pointer; font-weight: 900; }
.faq-item p { margin: 12px 0 0; color: var(--muted); }

.contact-strip__inner { display: flex; align-items: center; justify-content: center; gap: 28px; padding: 24px 0; text-align: center; }
.contact-strip__inner div { display: inline-flex; align-items: center; gap: 10px; }
.contact-strip i { color: var(--gold); }

.legal-content { max-width: 880px; }
.legal-block { padding: 30px; margin-bottom: 18px; }

.error-section { min-height: 58vh; display: grid; align-items: center; }
.error-panel { max-width: 620px; }

.site-footer { color: rgba(255,255,255,.72); background: #06182f; overflow-wrap: anywhere; }
.footer-cta { color: var(--white); background: var(--navy-2); }
.footer-cta__inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 48px 0; }
.footer-cta h2 { margin-top: 4px; font-size: 2rem; }
.footer-cta p { max-width: 650px; margin: 12px 0 0; color: rgba(255,255,255,.74); }
.footer-grid { display: grid; grid-template-columns: 1.25fr .75fr 1fr .75fr 1.2fr; gap: 34px; padding: 64px 0; }
.footer-brand p { max-width: 350px; }
.site-footer h3 { margin: 0 0 16px; color: var(--white); font-family: "Manrope", Arial, sans-serif; font-size: 1.05rem; }
.footer-list { display: grid; gap: 10px; padding: 0; margin: 0; list-style: none; }
.footer-list a:hover { color: var(--gold); }
.footer-contact li { display: flex; gap: 10px; }
.footer-contact li, .footer-list a { min-width: 0; overflow-wrap: anywhere; }
.footer-contact i { color: var(--gold); }
.social-links { display: flex; gap: 10px; margin-top: 22px; }
.social-links a {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    color: var(--white);
    background: rgba(255,255,255,.09);
    border-radius: 6px;
    transition: background .16s ease, color .16s ease;
}
.social-links a:hover { color: var(--navy); background: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); }
.footer-bottom p { margin: 0; padding: 20px 0; font-size: .92rem; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .52s ease, transform .52s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
