﻿/* Ahmosis Capital modern stylesheet
   Legacy template rules removed. Keep this file scoped to the current site structure. */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    padding: 0;
    background: #f7f8f5;
    color: #081923;
    font-family: 'Lato', Arial, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

body.nav-open {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

a:hover,
a:focus {
    text-decoration: none;
}

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

button,
input,
select,
textarea {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button {
    border: 0;
}

ul,
ol {
    margin-top: 0;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
    margin-top: 0;
}

:focus-visible {
    outline: 3px solid rgba(201, 150, 43, 0.55);
    outline-offset: 3px;
}

::selection {
    background: rgba(201, 150, 43, 0.28);
    color: #061f31;
}
/* Modern header upgrade */
:root {
    --ahm-ink: #081923;
    --ahm-navy: #023756;
    --ahm-navy-deep: #061f31;
    --ahm-line: rgba(255, 255, 255, 0.12);
    --ahm-gold: #c9962b;
    --ahm-paper: #f7f8f5;
}

.site-header {
    position: relative;
    z-index: 1000;
}

.nav-main {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100vw;
    min-height: 72px;
    height: auto;
    padding: 12px 18px;
    box-sizing: border-box;
    background: rgba(6, 31, 49, 0.96);
    border-bottom: 1px solid rgba(201, 150, 43, 0.55);
    box-shadow: 0 18px 45px rgba(8, 25, 35, 0.22);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    backdrop-filter: blur(16px);
}

.brand-lockup {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex: 1 1 auto;
    min-width: 0;
    padding: 0;
    margin-right: 0;
    white-space: normal;
}

.brand-lockup img {
    width: 112px;
    max-width: 112px;
    padding: 0;
    display: block;
}

.brand-copy {
    display: none;
    min-width: 0;
    line-height: 1.1;
}

.brand-name {
    display: block;
    color: #fff;
    font-family: 'Roboto', sans-serif;
    font-size: 15px;
    font-weight: 800;
}

.brand-line {
    display: block;
    margin-top: 3px;
    color: rgba(255, 255, 255, 0.68);
    font-size: 11px;
    font-weight: 500;
}

.desktop-nav {
    display: none;
    align-items: center;
    gap: 4px;
    padding: 0;
    margin: 0;
}

.desktop-nav li {
    list-style: none;
}

.desktop-nav a {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 14px;
    color: rgba(255, 255, 255, 0.78);
    border-radius: 999px;
    font-family: 'Roboto', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0;
}

.desktop-nav a:hover,
.desktop-nav a:focus,
.desktop-nav a.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.desktop-nav a.active:after {
    content: "";
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 6px;
    height: 2px;
    background: var(--ahm-gold);
    border-radius: 999px;
}

.nav-cta {
    display: none;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    color: var(--ahm-ink);
    background: var(--ahm-gold);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    font-family: 'Roboto', sans-serif;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0;
}

.nav-cta:hover,
.nav-cta:focus {
    color: var(--ahm-ink);
    background: #e0b24c;
}

.btn-toggle-nav {
    display: inline-flex;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    margin-left: auto;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    padding: 0;
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--ahm-line);
    border-radius: 999px;
    cursor: pointer;
}

.btn-toggle-nav span {
    display: block;
    width: 18px;
    height: 2px;
    background: #fff;
    border-radius: 999px;
    transition: transform 180ms ease, opacity 180ms ease;
}

.btn-toggle-nav:hover,
.btn-toggle-nav:focus {
    opacity: 1;
    background: rgba(255, 255, 255, 0.14);
    outline: none;
}

.nav-sidebar {
    position: fixed;
    inset: 72px 0 auto 0;
    width: 100%;
    height: calc(100vh - 72px);
    padding: 16px;
    background: rgba(6, 31, 49, 0.64);
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    z-index: 999;
    backdrop-filter: blur(8px);
    transition: opacity 180ms ease, visibility 180ms ease;
}

.nav-sidebar.is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.mobile-nav-panel {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    padding: 18px;
    background: var(--ahm-paper);
    border: 1px solid rgba(8, 25, 35, 0.08);
    border-radius: 8px;
    box-shadow: 0 24px 80px rgba(8, 25, 35, 0.28);
}

.mobile-nav-kicker {
    margin: 0 0 12px;
    color: var(--ahm-navy);
    font-family: 'Roboto', sans-serif;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.mobile-nav-list {
    display: block !important;
    margin: 0;
    padding: 0;
    visibility: visible !important;
}

.mobile-nav-list li {
    line-height: 1;
    list-style: none;
}

.mobile-nav-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 54px;
    padding: 0 2px;
    color: var(--ahm-ink);
    border-bottom: 1px solid rgba(8, 25, 35, 0.1);
    font-family: 'Roboto', sans-serif;
    font-size: 17px;
    font-weight: 800;
}

.mobile-nav-list a.active,
.mobile-nav-list a:hover,
.mobile-nav-list a:focus {
    color: var(--ahm-navy);
}

.mobile-nav-list i {
    color: var(--ahm-gold);
    font-size: 13px;
}

.mobile-nav-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    margin-top: 18px;
    color: #fff;
    background: var(--ahm-navy);
    border-radius: 999px;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    font-weight: 800;
}

.mobile-nav-cta:hover,
.mobile-nav-cta:focus {
    color: #fff;
    background: var(--ahm-navy-deep);
}

body.nav-open {
    overflow: hidden;
}

body {
    overflow-x: hidden;
}

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

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

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

@media (min-width: 480px) {
    .brand-copy {
        display: block;
    }
}

@media (max-width: 900px) {
    .nav-main {
        padding-left: 18px;
        padding-right: 18px;
    }

    .brand-copy {
        display: none !important;
    }

    .brand-lockup img {
        width: 132px;
        max-width: 132px;
    }
}

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

@media (min-width: 901px) {
    .nav-main {
        min-height: 84px;
        padding: 14px 36px;
    }

    .brand-lockup img {
        width: 138px;
        max-width: 138px;
    }

    .desktop-nav {
        display: flex !important;
    }

    .nav-cta {
        display: inline-flex;
    }

    .btn-toggle-nav {
        display: none;
    }

    .nav-sidebar {
        display: none;
    }
}

@media (min-width: 1200px) {
    .nav-main {
        padding-left: 52px;
        padding-right: 52px;
    }

    .desktop-nav a {
        padding-left: 18px;
        padding-right: 18px;
    }
}

/* Header refinement pass */
.brand-copy { display: none !important; }
.brand-lockup { flex: 0 1 auto; gap: 0; }
.desktop-nav a { border-radius: 0; background: transparent !important; }
.desktop-nav a:hover, .desktop-nav a:focus, .desktop-nav a.active { color: #fff; background: transparent !important; }
.nav-cta, .mobile-nav-cta, .mobile-nav-panel, .btn-toggle-nav { border-radius: 6px; }
.mobile-nav-panel { text-align: left; }
.mobile-nav-kicker { color: var(--ahm-navy); text-align: left; }
.mobile-nav-list a { justify-content: flex-start; gap: 12px; color: var(--ahm-navy); text-align: left; background: transparent; border-bottom: 1px solid rgba(2, 55, 86, 0.18); }
.mobile-nav-list a.active, .mobile-nav-list a:hover, .mobile-nav-list a:focus { color: var(--ahm-navy-deep); background: transparent; }
.mobile-nav-list i { margin-left: auto; }
@media (max-width: 900px) { .brand-lockup img { width: 132px; max-width: 132px; } }

/* Modern home hero slider */
.hero-slider {
    position: relative;
    min-height: 620px;
    margin-top: 84px;
    overflow: hidden;
    background: #061f31;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 850ms ease, transform 950ms cubic-bezier(0.22, 1, 0.36, 1);
    transform: translateX(100%);
    will-change: transform, opacity;
}

.hero-slide.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
    z-index: 1;
}

.hero-slide.was-active {
    opacity: 0;
    transform: translateX(-34%);
    z-index: 0;
}

.hero-slider[data-direction="prev"] .hero-slide {
    transform: translateX(-100%);
}

.hero-slider[data-direction="prev"] .hero-slide.active {
    transform: translateX(0);
}

.hero-slider[data-direction="prev"] .hero-slide.was-active {
    transform: translateX(34%);
}

.hero-slide img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(6, 31, 49, 0.9) 0%, rgba(6, 31, 49, 0.74) 39%, rgba(6, 31, 49, 0.3) 72%, rgba(6, 31, 49, 0.58) 100%),
        linear-gradient(180deg, rgba(2, 55, 86, 0.08) 0%, rgba(2, 55, 86, 0.74) 100%);
}

.hero-content {
    position: absolute;
    inset: 0 auto 0 0;
    z-index: 2;
    width: min(620px, calc(100% - 36px));
    height: 100%;
    margin-left: clamp(18px, 8vw, 112px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 58px 0 78px;
}

.hero-kicker {
    margin: 0 0 14px;
    color: #e0b24c;
    font-family: 'Roboto', sans-serif;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.hero-content h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(34px, 5vw, 62px);
    font-weight: 900;
    line-height: 1.02;
    letter-spacing: 0;
}

.hero-copy {
    max-width: 560px;
    margin: 22px 0 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: clamp(16px, 2vw, 19px);
    line-height: 1.7;
    letter-spacing: 0;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 20px;
    border-radius: 6px;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0;
}

.hero-btn.primary {
    color: #081923;
    background: #c9962b;
    border: 1px solid #c9962b;
}

.hero-btn.secondary {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.34);
}

.hero-btn:hover,
.hero-btn:focus {
    color: #081923;
    background: #e0b24c;
    border-color: #e0b24c;
}

.hero-indicators {
    position: absolute;
    z-index: 3;
    left: clamp(18px, 8vw, 112px);
    bottom: 34px;
    display: flex;
    gap: 8px;
}

.hero-indicators button {
    width: 34px;
    height: 4px;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.34);
    cursor: pointer;
}

.hero-indicators button.active {
    background: #c9962b;
}

@media (max-width: 900px) {
    .hero-slider {
        min-height: 620px;
        margin-top: 72px;
    }

    .hero-overlay {
        background:
            linear-gradient(180deg, rgba(6, 31, 49, 0.62) 0%, rgba(6, 31, 49, 0.92) 72%, rgba(6, 31, 49, 0.96) 100%),
            linear-gradient(90deg, rgba(6, 31, 49, 0.58) 0%, rgba(6, 31, 49, 0.16) 100%);
    }

    .hero-content {
        width: calc(100% - 36px);
        height: 100%;
        margin: 0 auto;
        left: 18px;
        right: 18px;
        justify-content: flex-end;
        padding: 96px 0 94px;
    }

    .hero-content h1 {
        font-size: clamp(30px, 8.4vw, 38px);
        max-width: 14ch;
    }

    .hero-copy {
        max-width: 31ch;
        font-size: 16px;
        line-height: 1.65;
    }

    .hero-actions {
        width: 100%;
        gap: 10px;
    }

    .hero-btn {
        flex: 1 1 100%;
        min-height: 48px;
    }

    .hero-indicators {
        left: 18px;
        bottom: 34px;
    }
}

/* Homepage services, coverage, and newsletter upgrade */
.section-shell {
    width: min(1180px, calc(100% - 36px));
    margin: 0 auto;
}

.section-kicker {
    margin: 0 0 10px;
    color: #c9962b;
    font-family: 'Roboto', sans-serif;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

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

.section-heading h2,
.coverage-heading h2,
.subscribe-copy h2 {
    margin: 0;
    color: #023756;
    font-size: clamp(30px, 4vw, 46px);
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: 0;
}

.section-heading p,
.subscribe-copy p {
    max-width: 680px;
    margin-top: 16px;
    color: #526675;
    font-size: 16px;
    line-height: 1.75;
    letter-spacing: 0;
}

.home-services {
    padding: 88px 0 72px;
    background: #f7f8f5;
}

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

.service-card {
    background: #fff;
    border: 1px solid rgba(2, 55, 86, 0.12);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 18px 45px rgba(8, 25, 35, 0.08);
}

.service-card-media {
    position: relative;
    aspect-ratio: 1.35;
    background: #061f31;
    overflow: hidden;
}

.service-card-media:after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(2, 55, 86, 0.02), rgba(2, 55, 86, 0.42));
}

.service-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 650ms ease;
}

.service-card:hover .service-card-media img {
    transform: scale(1.04);
}

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

.service-index {
    display: inline-block;
    margin-bottom: 12px;
    color: #c9962b;
    font-family: 'Roboto', sans-serif;
    font-size: 12px;
    font-weight: 900;
}

.service-card h3 {
    min-height: 58px;
    margin: 0;
    color: #023756;
    font-size: 21px;
    font-weight: 900;
    line-height: 1.18;
    letter-spacing: 0;
}

.service-card p {
    margin-top: 14px;
    color: #526675;
    font-size: 14px;
    line-height: 1.7;
    letter-spacing: 0;
}

.service-card a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    color: #023756;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    font-weight: 900;
}

.service-card a:hover,
.service-card a:focus {
    color: #c9962b;
}

.coverage-section {
    padding: 78px 0;
    background: #061f31;
}

.coverage-shell {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 42px;
    align-items: start;
}

.coverage-heading h2 {
    color: #fff;
}

.coverage-tabs {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    padding: 18px;
}

.coverage-tabs .tabs {
    display: flex;
    justify-content: flex-start;
    gap: 6px;
    padding: 0 0 18px;
    margin: 0 0 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    color: #fff;
    overflow-x: auto;
}

.coverage-tabs .tab {
    flex: 0 0 auto;
    margin: 0;
    padding: 10px 14px;
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.74);
    font-family: 'Roboto', sans-serif;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.coverage-tabs .tab.active,
.coverage-tabs .tab:hover {
    background: #c9962b;
    color: #081923;
}

.coverage-tabs [data-tab-content] {
    display: none;
}

.coverage-tabs [data-tab-content].active {
    display: block;
}

.coverage-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 22px;
    margin: 0;
    padding: 0;
}

.coverage-list li {
    list-style: none;
    padding: 15px 0;
    color: rgba(255, 255, 255, 0.86);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    font-family: 'Roboto', sans-serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0;
}

.insight-subscribe {
    padding: 72px 0;
    background: #f7f8f5;
}

.subscribe-shell {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.75fr);
    gap: 36px;
    align-items: center;
    padding: 34px;
    background: #fff;
    border: 1px solid rgba(2, 55, 86, 0.12);
    border-radius: 6px;
    box-shadow: 0 18px 45px rgba(8, 25, 35, 0.08);
}

.subscribe-copy p {
    margin-bottom: 0;
}

.subscribe-form label {
    display: block;
    margin-bottom: 10px;
    color: #023756;
    font-family: 'Roboto', sans-serif;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0;
}

.subscribe-field {
    display: flex;
    gap: 10px;
}

.subscribe-field input[type="email"] {
    min-width: 0;
    flex: 1 1 auto;
    height: 50px;
    padding: 0 15px;
    color: #023756;
    background: #f7f8f5;
    border: 1px solid rgba(2, 55, 86, 0.18);
    border-radius: 6px;
    font-size: 15px;
    letter-spacing: 0;
    box-shadow: none;
}

.subscribe-field input[type="submit"] {
    flex: 0 0 auto;
    height: 50px;
    padding: 0 18px;
    color: #081923;
    background: #c9962b;
    border: 1px solid #c9962b;
    border-radius: 6px;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0;
    box-shadow: none;
}

.subscribe-field input[type="submit"]:hover,
.subscribe-field input[type="submit"]:focus {
    background: #e0b24c;
    border-color: #e0b24c;
}

@media (max-width: 1100px) {
    .service-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 800px) {
    .home-services,
    .coverage-section,
    .insight-subscribe {
        padding: 58px 0;
    }

    .coverage-shell,
    .subscribe-shell {
        grid-template-columns: 1fr;
    }

    .subscribe-shell {
        padding: 24px;
    }
}

@media (max-width: 620px) {
    .section-shell {
        width: min(100% - 28px, 1180px);
    }

    .service-grid,
    .coverage-list {
        grid-template-columns: 1fr;
    }

    .section-heading {
        margin-bottom: 24px;
    }

    .service-card h3 {
        min-height: auto;
    }

    .subscribe-field {
        flex-direction: column;
    }

    .subscribe-field input[type="submit"] {
        width: 100%;
    }
}

.service-card a i {
    display: none;
}

.service-card a:after {
    content: "";
    width: 7px;
    height: 7px;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    transform: rotate(45deg);
    margin-left: 2px;
}

/* Header and hero connection refinement */
.nav-main {
    border-bottom-color: rgba(201, 150, 43, 0.8);
    box-shadow: 0 10px 30px rgba(8, 25, 35, 0.18);
}

.hero-slider {
    margin-top: 72px;
    border-top: 0;
}

@media (min-width: 901px) {
    .hero-slider {
        margin-top: 84px;
    }
}

/* Restore Font Awesome service arrows after FA 7 upgrade */
.service-card a i {
    display: inline-block;
    font-size: 12px;
    line-height: 1;
}

.service-card a:after {
    display: none;
}

/* Remove header/hero visual gap */
.hero-slider {
    margin-top: 0 !important;
}

@media (min-width: 901px) {
    .hero-slider {
        margin-top: 0 !important;
    }
}
/* Modern footer upgrade */
.site-footer {
    background: #071e31;
    color: #dfe8ee;
    border-top: 1px solid rgba(224, 178, 76, 0.7);
    font-family: 'Lato', sans-serif;
    position: relative;
    overflow: hidden;
}

.site-footer,
.site-footer * {
    box-sizing: border-box;
}

.site-footer a {
    color: inherit;
    text-decoration: none;
}

.footer-shell {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 48px 0 24px;
}

.footer-contact {
    display: grid;
    gap: 24px;
    padding: 24px;
    background: #f7f8f5;
    color: #023756;
    border: 1px solid rgba(2, 55, 86, 0.12);
    border-top: 4px solid #e0b24c;
    border-radius: 6px;
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.18);
}

.footer-eyebrow {
    display: inline-flex;
    margin-bottom: 12px;
    color: #9a6a17;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.footer-contact h2 {
    margin: 0;
    color: #023756;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.08;
    font-weight: 900;
}

.footer-contact p {
    max-width: 680px;
    margin: 14px 0 0;
    color: #536775;
    font-size: 16px;
    line-height: 1.75;
}

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

.footer-contact-link {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    min-height: 74px;
    padding: 14px;
    color: #023756;
    background: #ffffff;
    border: 1px solid rgba(2, 55, 86, 0.12);
    border-radius: 6px;
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.footer-contact-link:hover,
.footer-contact-link:focus {
    color: #023756;
    border-color: rgba(224, 178, 76, 0.85);
    box-shadow: 0 14px 30px rgba(2, 55, 86, 0.12);
    transform: translateY(-2px);
}

.footer-icon,
.footer-column a i,
.footer-address i {
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    color: #e0b24c;
}

.footer-icon {
    width: 42px;
    height: 42px;
    border: 1px solid rgba(224, 178, 76, 0.45);
    border-radius: 6px;
    background: rgba(224, 178, 76, 0.09);
    font-size: 17px;
}

.footer-contact-link strong {
    display: block;
    color: #023756;
    font-size: 15px;
    font-weight: 900;
}

.footer-contact-link small {
    display: block;
    margin-top: 4px;
    color: #5f7180;
    font-size: 13px;
    line-height: 1.35;
}

.footer-main {
    display: grid;
    gap: 28px;
    padding: 42px 0 28px;
}

.footer-brand-panel h3,
.footer-column h4 {
    margin: 0;
    color: #ffffff;
    font-size: 18px;
    font-weight: 900;
}

.footer-brand-panel p {
    max-width: 420px;
    margin: 14px 0 20px;
    color: #b9c9d3;
    font-size: 15px;
    line-height: 1.75;
}

.footer-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 16px;
    color: #071e31;
    background: #e0b24c;
    border: 1px solid #e0b24c;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 900;
    transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.footer-cta:hover,
.footer-cta:focus {
    color: #071e31;
    background: #f0c86b;
    border-color: #f0c86b;
    transform: translateY(-1px);
}

.footer-column ul {
    display: grid;
    gap: 0;
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
}

.footer-column li {
    margin: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-column a,
.footer-address li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 11px 0;
    color: #c6d4dc;
    font-size: 14px;
    line-height: 1.55;
}

.footer-column a:hover,
.footer-column a:focus {
    color: #ffffff;
}

.footer-column a i,
.footer-address i {
    width: 18px;
    min-height: 22px;
    font-size: 14px;
}

.footer-address {
    margin: 0;
    font-style: normal;
}

.footer-bottom {
    display: grid;
    gap: 8px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: #93a8b5;
    font-size: 12px;
}

.footer-bottom p {
    margin: 0;
}

.footer-bottom a {
    color: #e0b24c;
    font-weight: 800;
}

.footer-bottom a:hover,
.footer-bottom a:focus {
    color: #ffffff;
}

@media (min-width: 760px) {
    .footer-shell {
        width: min(1180px, calc(100% - 48px));
        padding-top: 58px;
    }

    .footer-contact {
        grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
        align-items: center;
        padding: 34px;
    }

    .footer-main {
        grid-template-columns: minmax(260px, 1.2fr) repeat(3, minmax(150px, 1fr));
        gap: 34px;
        padding-top: 50px;
    }

    .footer-bottom {
        grid-template-columns: 1fr auto;
        align-items: center;
    }
}

@media (max-width: 520px) {
    .footer-shell {
        width: min(100% - 24px, 1180px);
        padding-top: 36px;
    }

    .footer-contact {
        padding: 20px;
    }

    .footer-contact-link {
        min-height: 68px;
    }

    .footer-main {
        padding-top: 34px;
    }
}



.footer-address {
    margin: 0;
    font-style: normal;
}

.footer-address span,
.footer-address a,
.footer-contact-link span,
.footer-column a {
    min-width: 0;
    overflow-wrap: anywhere;
}
/* Modern services page upgrade */
@media (max-width: 900px) {
    .nav-sidebar .mobile-nav-list a,
    .nav-sidebar .mobile-nav-list a:visited,
    .nav-sidebar ul.mobile-nav-list li a {
        color: #023756 !important;
    }

    .nav-sidebar .mobile-nav-list a.active,
    .nav-sidebar .mobile-nav-list a:hover,
    .nav-sidebar .mobile-nav-list a:focus {
        color: #071e31 !important;
    }
}

.services-hero {
    position: relative;
    min-height: 60vh;
    height: 60vh;
    margin-top: 0;
    display: grid;
    align-items: stretch;
    overflow: hidden;
    color: #ffffff;
    background: #071e31 url('../images/bg5.jpg') no-repeat center;
    background-size: cover;
}

.services-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(2, 24, 38, 0.9) 0%, rgba(2, 43, 66, 0.76) 44%, rgba(2, 43, 66, 0.38) 100%);
}

.services-hero-shell {
    position: relative;
    z-index: 1;
    width: min(1180px, calc(100% - 36px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 0.86fr) minmax(260px, 0.42fr);
    align-items: end;
    gap: 34px;
    padding: clamp(74px, 11vh, 118px) 0 48px;
}

.services-eyebrow {
    display: inline-flex;
    margin-bottom: 14px;
    color: #d7a12a;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.services-hero h1 {
    max-width: 780px;
    margin: 0;
    color: #ffffff;
    font-size: clamp(38px, 6vw, 76px);
    line-height: 1.02;
    font-weight: 900;
}

.services-hero p {
    max-width: 650px;
    margin: 22px 0 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: clamp(16px, 2vw, 19px);
    line-height: 1.75;
}

.services-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.services-primary-cta,
.services-secondary-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 900;
    text-decoration: none;
    transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.services-primary-cta {
    color: #071e31;
    background: #d7a12a;
    border: 1px solid #d7a12a;
}

.services-secondary-cta {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.34);
}

.services-primary-cta:hover,
.services-primary-cta:focus,
.services-secondary-cta:hover,
.services-secondary-cta:focus {
    transform: translateY(-2px);
    text-decoration: none;
}

.services-primary-cta:hover,
.services-primary-cta:focus {
    color: #071e31;
    background: #efc15f;
    border-color: #efc15f;
}

.services-secondary-cta:hover,
.services-secondary-cta:focus {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.7);
}

.services-hero-proof {
    display: grid;
    gap: 0;
    background: rgba(4, 31, 48, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 6px;
    backdrop-filter: blur(10px);
}

.services-hero-proof div {
    padding: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.services-hero-proof div:last-child {
    border-bottom: 0;
}

.services-hero-proof strong {
    display: block;
    color: #ffffff;
    font-size: 28px;
    line-height: 1;
    font-weight: 900;
}

.services-hero-proof span {
    display: block;
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 13px;
    line-height: 1.45;
}

.services-intro {
    padding: 84px 0 86px;
    background: #f7f8f5;
}

.services-section-shell {
    width: min(1180px, calc(100% - 36px));
    margin: 0 auto;
}

.services-section-heading {
    display: grid;
    grid-template-columns: minmax(0, 0.86fr) minmax(280px, 0.62fr);
    gap: 36px;
    align-items: end;
    margin-bottom: 30px;
}

.services-section-heading h2 {
    margin: 0;
    color: #023756;
    font-size: clamp(32px, 4.6vw, 56px);
    line-height: 1.06;
    font-weight: 900;
}

.services-section-heading p {
    margin: 0;
    color: #526675;
    font-size: 16px;
    line-height: 1.8;
}

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

.service-modern-card {
    min-height: 420px;
    display: flex;
    flex-direction: column;
    padding: 24px;
    background: #ffffff;
    border: 1px solid rgba(2, 55, 86, 0.12);
    border-radius: 6px;
    box-shadow: 0 22px 48px rgba(7, 30, 49, 0.08);
}

.service-modern-card.featured {
    background: #071e31;
    border-color: #071e31;
    color: #ffffff;
}

.service-card-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 26px;
}

.service-card-topline span {
    color: #d7a12a;
    font-size: 12px;
    font-weight: 900;
}

.service-card-topline i {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    color: #d7a12a;
    background: rgba(215, 161, 42, 0.1);
    border: 1px solid rgba(215, 161, 42, 0.32);
    border-radius: 6px;
    font-size: 17px;
}

.service-modern-card h3 {
    margin: 0;
    color: #023756;
    font-size: 23px;
    line-height: 1.18;
    font-weight: 900;
}

.service-modern-card.featured h3 {
    color: #ffffff;
}

.service-modern-card p {
    margin: 18px 0 0;
    color: #536775;
    font-size: 15px;
    line-height: 1.75;
}

.service-modern-card.featured p {
    color: rgba(255, 255, 255, 0.76);
}

.service-modern-card ul {
    display: grid;
    gap: 0;
    margin: auto 0 0;
    padding: 24px 0 0;
    list-style: none;
}

.service-modern-card li {
    padding: 11px 0;
    color: #023756;
    border-bottom: 1px solid rgba(2, 55, 86, 0.12);
    font-size: 14px;
    font-weight: 800;
}

.service-modern-card.featured li {
    color: rgba(255, 255, 255, 0.9);
    border-bottom-color: rgba(255, 255, 255, 0.13);
}

@media (max-width: 1100px) {
    .services-modern-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .services-hero {
        height: 60vh;
        min-height: 560px;
        background-position: center right;
    }

    .services-hero-shell {
        width: min(100% - 28px, 1180px);
        grid-template-columns: 1fr;
        gap: 22px;
        padding: 58px 0 28px;
    }

    .services-hero h1 {
        font-size: clamp(34px, 11vw, 48px);
    }

    .services-hero-actions {
        flex-direction: column;
    }

    .services-primary-cta,
    .services-secondary-cta {
        width: 100%;
    }

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

    .services-hero-proof div {
        padding: 13px;
        border-bottom: 0;
        border-right: 1px solid rgba(255, 255, 255, 0.12);
    }

    .services-hero-proof div:last-child {
        border-right: 0;
    }

    .services-hero-proof strong {
        font-size: 22px;
    }

    .services-intro {
        padding: 58px 0 62px;
    }

    .services-section-shell {
        width: min(100% - 28px, 1180px);
    }

    .services-section-heading,
    .services-modern-grid {
        grid-template-columns: 1fr;
    }

    .service-modern-card {
        min-height: auto;
    }
}

@media (max-width: 440px) {
    .services-hero {
        min-height: 600px;
    }

    .services-hero-proof span {
        font-size: 11px;
    }

    .service-modern-card {
        padding: 20px;
    }
}


/* Services mobile overflow refinement */
.services-hero,
.services-intro {
    overflow-x: hidden;
}

.services-hero-shell,
.services-hero-copy,
.services-hero-proof,
.services-hero-proof div,
.services-hero-proof span,
.services-section-heading,
.services-section-heading h2,
.services-section-heading p,
.services-modern-grid,
.service-modern-card {
    min-width: 0;
}

.services-hero h1,
.services-section-heading h2,
.services-hero p,
.services-section-heading p {
    overflow-wrap: normal;
    word-break: normal;
}

@media (max-width: 820px) {
    .services-hero h1 {
        max-width: 100%;
        font-size: clamp(31px, 9.4vw, 40px);
        line-height: 1.08;
    }

    .services-hero p {
        max-width: 100%;
        font-size: 15px;
        line-height: 1.62;
    }

    .services-hero-proof span {
        overflow-wrap: anywhere;
    }

    .services-section-heading h2 {
        font-size: clamp(29px, 8.4vw, 38px);
        line-height: 1.12;
    }
}

@media (max-width: 440px) {
    .services-hero-shell {
        padding-top: 44px;
    }

    .services-hero-actions {
        margin-top: 20px;
    }

    .services-hero-proof div {
        padding: 11px 10px;
    }
}

/* Services mobile hard viewport containment */
@media (max-width: 820px) {
    .services-hero-shell,
    .services-section-shell {
        width: calc(100vw - 28px) !important;
        max-width: calc(100vw - 28px) !important;
        margin-left: 14px !important;
        margin-right: 14px !important;
    }

    .services-hero-copy,
    .services-hero-copy > *,
    .services-section-heading,
    .services-section-heading > *,
    .services-modern-grid,
    .service-modern-card {
        max-width: 100% !important;
    }

    .services-hero h1 {
        font-size: 36px;
    }

    .services-section-heading h2 {
        font-size: 34px;
    }
}

@media (max-width: 390px) {
    .services-hero h1 {
        font-size: 34px;
    }

    .services-section-heading h2 {
        font-size: 32px;
    }
}

/* Services mobile intentional line measures */
@media (max-width: 820px) {
    .services-hero h1 {
        width: 10.8ch !important;
        max-width: 100% !important;
        white-space: normal !important;
        text-wrap: balance;
    }

    .services-hero p {
        width: 32ch !important;
        max-width: 100% !important;
    }

    .services-section-heading h2 {
        width: 13ch !important;
        max-width: 100% !important;
        white-space: normal !important;
        text-wrap: balance;
    }

    .services-section-heading p {
        width: 34ch !important;
        max-width: 100% !important;
    }
}

/* Services 60vh mobile hero fit */
@media (max-width: 820px) {
    .services-hero {
        min-height: 0 !important;
        height: 60vh !important;
    }

    .services-hero-shell {
        align-items: center;
        padding-top: 28px !important;
        padding-bottom: 28px !important;
    }

    .services-hero h1 {
        width: 11.4ch !important;
        font-size: 30px !important;
        line-height: 1.06 !important;
    }

    .services-hero p {
        width: 32ch !important;
        font-size: 14px !important;
        line-height: 1.55 !important;
        margin-top: 16px !important;
    }

    .services-hero-actions {
        gap: 10px !important;
        margin-top: 18px !important;
    }

    .services-primary-cta,
    .services-secondary-cta {
        min-height: 44px !important;
    }

    .services-hero-proof {
        display: none !important;
    }
}

/* Services desktop hero clipping fix */
@media (min-width: 821px) {
    .services-hero {
        height: 60vh !important;
        min-height: 560px !important;
        overflow: hidden;
    }

    .services-hero-shell {
        align-items: center !important;
        padding-top: 38px !important;
        padding-bottom: 38px !important;
    }

    .services-hero h1 {
        max-width: 720px;
        font-size: clamp(48px, 5vw, 66px) !important;
        line-height: 1.04 !important;
    }

    .services-hero p {
        max-width: 640px;
        margin-top: 18px !important;
        font-size: 17px !important;
        line-height: 1.65 !important;
    }

    .services-hero-actions {
        margin-top: 22px !important;
    }

    .services-primary-cta,
    .services-secondary-cta {
        min-height: 44px !important;
    }

    .services-hero-proof div {
        padding: 16px 18px !important;
    }

    .services-hero-proof strong {
        font-size: 26px !important;
    }
}
/* Modern about page upgrade */
.about-hero {
    position: relative;
    height: 60vh;
    min-height: 560px;
    margin-top: 0;
    display: grid;
    align-items: stretch;
    overflow: hidden;
    color: #ffffff;
    background: #071e31 url('../images/bg1.jpg') no-repeat center;
    background-size: cover;
}

.about-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(2, 24, 38, 0.92) 0%, rgba(2, 43, 66, 0.74) 48%, rgba(2, 43, 66, 0.34) 100%);
}

.about-hero-shell {
    position: relative;
    z-index: 1;
    width: min(1180px, calc(100% - 36px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(280px, 0.42fr);
    align-items: center;
    gap: 40px;
    padding: 38px 0;
}

.about-eyebrow {
    display: inline-flex;
    margin-bottom: 14px;
    color: #d7a12a;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.about-hero h1 {
    max-width: 760px;
    margin: 0;
    color: #ffffff;
    font-size: clamp(46px, 5.2vw, 68px);
    line-height: 1.04;
    font-weight: 900;
}

.about-hero p {
    max-width: 650px;
    margin: 20px 0 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 17px;
    line-height: 1.68;
}

.about-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.about-primary-cta,
.about-secondary-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 900;
    text-decoration: none;
    transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.about-primary-cta {
    color: #071e31;
    background: #d7a12a;
    border: 1px solid #d7a12a;
}

.about-secondary-cta {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.34);
}

.about-primary-cta:hover,
.about-primary-cta:focus,
.about-secondary-cta:hover,
.about-secondary-cta:focus {
    transform: translateY(-2px);
    text-decoration: none;
}

.about-primary-cta:hover,
.about-primary-cta:focus {
    color: #071e31;
    background: #efc15f;
    border-color: #efc15f;
}

.about-secondary-cta:hover,
.about-secondary-cta:focus {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.72);
}

.about-hero-panel {
    padding: 24px;
    background: rgba(4, 31, 48, 0.84);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 6px;
    backdrop-filter: blur(10px);
}

.about-hero-panel span {
    display: block;
    color: #d7a12a;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.about-hero-panel strong {
    display: block;
    margin-top: 12px;
    color: #ffffff;
    font-size: 25px;
    line-height: 1.24;
    font-weight: 900;
}

.about-hero-panel p {
    margin-top: 14px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 14px;
    line-height: 1.7;
}

.about-story,
.about-team {
    background: #f7f8f5;
}

.about-story {
    padding: 84px 0 72px;
}

.about-team {
    padding: 0 0 80px;
}

.about-section-shell {
    width: min(1180px, calc(100% - 36px));
    margin: 0 auto;
}

.about-story-heading {
    display: grid;
    grid-template-columns: minmax(0, 0.62fr) minmax(0, 1fr);
    gap: 38px;
    align-items: end;
    margin-bottom: 30px;
}

.about-story-heading h2 {
    grid-column: 2;
    margin: 0;
    color: #023756;
    font-size: clamp(34px, 4.7vw, 58px);
    line-height: 1.06;
    font-weight: 900;
}

.about-story-heading .about-eyebrow {
    align-self: start;
}

.about-story-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(320px, 0.72fr);
    gap: 18px;
    align-items: stretch;
}

.about-story-card,
.about-principles {
    border-radius: 6px;
}

.about-story-card.main {
    padding: 34px;
    background: #ffffff;
    border: 1px solid rgba(2, 55, 86, 0.12);
    box-shadow: 0 22px 48px rgba(7, 30, 49, 0.08);
}

.about-story-card p {
    margin: 0;
    color: #405868;
    font-size: 16px;
    line-height: 1.86;
}

.about-story-card p + p {
    margin-top: 20px;
}

.about-principles {
    display: grid;
    gap: 0;
    background: #071e31;
    color: #ffffff;
    overflow: hidden;
}

.about-principles div {
    padding: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.about-principles div:last-child {
    border-bottom: 0;
}

.about-principles .principle-icon {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    margin-bottom: 16px;
    color: #d7a12a;
    background: rgba(215, 161, 42, 0.1);
    border: 1px solid rgba(215, 161, 42, 0.35);
    border-radius: 6px;
}

.about-principles .principle-icon svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.about-principles h3 {
    margin: 0;
    color: #ffffff;
    font-size: 20px;
    font-weight: 900;
}

.about-principles p {
    margin-top: 10px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 14px;
    line-height: 1.7;
}

.about-team .team-wrapper {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin: 0 !important;
}

.about-team .team {
    width: auto;
    min-width: 0;
    margin: 0;
    padding: 24px;
    background: #ffffff;
    border: 1px solid rgba(2, 55, 86, 0.12);
    border-bottom: 4px solid #d7a12a;
    border-radius: 6px;
    box-shadow: 0 18px 38px rgba(7, 30, 49, 0.08);
}

.about-team .name {
    margin: 0 0 12px;
    color: #023756;
    text-align: left;
    font-size: 18px;
    line-height: 1.25;
    font-weight: 900;
}

.about-team .name-description p {
    margin: 0;
    color: #536775;
    font-size: 14px;
    line-height: 1.75;
}

.team-heading {
    padding-top: 6px;
}

@media (max-width: 1100px) {
    .about-team .team-wrapper {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .about-hero {
        height: 60vh !important;
        min-height: 0 !important;
        background-position: center right;
    }

    .about-hero-shell,
    .about-section-shell {
        width: calc(100vw - 28px) !important;
        max-width: calc(100vw - 28px) !important;
        margin-left: 14px !important;
        margin-right: 14px !important;
    }

    .about-hero-shell {
        grid-template-columns: 1fr;
        align-items: center;
        gap: 20px;
        padding: 28px 0 !important;
    }

    .about-hero h1 {
        width: 12ch;
        max-width: 100%;
        font-size: 30px;
        line-height: 1.06;
        text-wrap: balance;
    }

    .about-hero p {
        width: 32ch;
        max-width: 100%;
        margin-top: 16px;
        font-size: 14px;
        line-height: 1.55;
    }

    .about-hero-actions {
        flex-direction: column;
        gap: 10px;
        margin-top: 18px;
    }

    .about-primary-cta,
    .about-secondary-cta {
        width: 100%;
        min-height: 44px;
    }

    .about-hero-panel {
        display: none;
    }

    .about-story {
        padding: 58px 0 54px;
    }

    .about-team {
        padding-bottom: 62px;
    }

    .about-story-heading,
    .about-story-grid,
    .about-team .team-wrapper {
        grid-template-columns: 1fr;
    }

    .about-story-heading {
        gap: 16px;
    }

    .about-story-heading h2 {
        grid-column: auto;
        width: 13ch;
        max-width: 100%;
        font-size: 33px;
        line-height: 1.12;
        text-wrap: balance;
    }

    .about-story-card.main,
    .about-principles div,
    .about-team .team {
        padding: 22px;
    }
}


/* About mobile 60vh hero fit */
@media (max-width: 820px) {
    .about-hero {
        height: 60vh !important;
        min-height: 0 !important;
        overflow: hidden;
    }

    .about-hero-shell {
        align-items: center !important;
        padding-top: 20px !important;
        padding-bottom: 20px !important;
    }

    .about-eyebrow {
        margin-bottom: 8px !important;
        font-size: 11px !important;
    }

    .about-hero h1 {
        width: 15ch !important;
        max-width: 100% !important;
        font-size: 28px !important;
        line-height: 1.04 !important;
    }

    .about-hero p {
        width: 34ch !important;
        max-width: 100% !important;
        margin-top: 12px !important;
        font-size: 13px !important;
        line-height: 1.45 !important;
    }

    .about-hero-actions {
        gap: 8px !important;
        margin-top: 14px !important;
    }

    .about-primary-cta,
    .about-secondary-cta {
        min-height: 42px !important;
    }

    .about-story-card,
    .about-story-card p,
    .about-principles,
    .about-team .team {
        min-width: 0;
        max-width: 100%;
        overflow-wrap: normal;
    }
}

/* About mobile hero breathing refinement */
@media (max-width: 820px) {
    .about-hero h1 {
        width: 17ch !important;
        font-size: 27px !important;
    }

    .about-hero p {
        width: 31ch !important;
        font-size: 13px !important;
        line-height: 1.44 !important;
    }
}
/* Modern contact page upgrade */
.contact-hero {
    position: relative;
    height: 60vh;
    min-height: 560px;
    margin-top: 0;
    display: grid;
    align-items: stretch;
    overflow: hidden;
    color: #ffffff;
    background: #071e31 url('../images/bg4.jpg') no-repeat center;
    background-size: cover;
}

.contact-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(2, 24, 38, 0.92) 0%, rgba(2, 43, 66, 0.74) 48%, rgba(2, 43, 66, 0.34) 100%);
}

.contact-hero-shell {
    position: relative;
    z-index: 1;
    width: min(1180px, calc(100% - 36px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(300px, 0.46fr);
    align-items: center;
    gap: 40px;
    padding: 38px 0;
}

.contact-eyebrow {
    display: inline-flex;
    margin-bottom: 14px;
    color: #d7a12a;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.contact-hero h1 {
    max-width: 720px;
    margin: 0;
    color: #ffffff;
    font-size: clamp(46px, 5vw, 66px);
    line-height: 1.04;
    font-weight: 900;
}

.contact-hero p {
    max-width: 650px;
    margin: 20px 0 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 17px;
    line-height: 1.68;
}

.contact-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.contact-primary-cta,
.contact-secondary-cta,
.contact-submit {
    border-radius: 6px;
    font-weight: 900;
    text-decoration: none;
}

.contact-primary-cta,
.contact-secondary-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 20px;
    font-size: 14px;
    transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.contact-primary-cta {
    color: #071e31;
    background: #d7a12a;
    border: 1px solid #d7a12a;
}

.contact-secondary-cta {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.34);
}

.contact-primary-cta:hover,
.contact-primary-cta:focus,
.contact-secondary-cta:hover,
.contact-secondary-cta:focus {
    transform: translateY(-2px);
    text-decoration: none;
}

.contact-primary-cta:hover,
.contact-primary-cta:focus {
    color: #071e31;
    background: #efc15f;
    border-color: #efc15f;
}

.contact-secondary-cta:hover,
.contact-secondary-cta:focus {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.72);
}

.contact-hero-panel {
    display: grid;
    gap: 0;
    background: rgba(4, 31, 48, 0.84);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 6px;
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.contact-hero-panel div {
    padding: 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.contact-hero-panel div:last-child {
    border-bottom: 0;
}

.contact-hero-panel i {
    color: #d7a12a;
    margin-right: 8px;
}

.contact-hero-panel span {
    display: inline-flex;
    color: #d7a12a;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.contact-hero-panel strong,
.contact-hero-panel a {
    display: block;
    margin-top: 10px;
    color: #ffffff;
    font-size: 16px;
    line-height: 1.55;
    font-weight: 900;
}

.contact-section {
    padding: 84px 0;
    background: #f7f8f5;
}

.contact-section-shell {
    width: min(1180px, calc(100% - 36px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 0.78fr) minmax(420px, 1fr);
    gap: 34px;
    align-items: start;
}

.contact-intro h2 {
    max-width: 560px;
    margin: 0;
    color: #023756;
    font-size: clamp(34px, 4.7vw, 58px);
    line-height: 1.06;
    font-weight: 900;
}

.contact-intro p {
    max-width: 560px;
    margin-top: 18px;
    color: #526675;
    font-size: 16px;
    line-height: 1.8;
}

.contact-info-list {
    display: grid;
    gap: 12px;
    margin-top: 28px;
}

.contact-info-list a {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    min-height: 72px;
    padding: 14px;
    color: #023756;
    background: #ffffff;
    border: 1px solid rgba(2, 55, 86, 0.12);
    border-radius: 6px;
    text-decoration: none;
}

.contact-info-list i {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    color: #d7a12a;
    background: rgba(215, 161, 42, 0.1);
    border: 1px solid rgba(215, 161, 42, 0.32);
    border-radius: 6px;
}

.contact-info-list strong {
    display: block;
    color: #023756;
    font-size: 14px;
    font-weight: 900;
}

.contact-info-list span {
    color: #526675;
    font-size: 14px;
    line-height: 1.45;
}

.contact-form-card {
    padding: 28px;
    background: #ffffff;
    border: 1px solid rgba(2, 55, 86, 0.12);
    border-radius: 6px;
    box-shadow: 0 22px 48px rgba(7, 30, 49, 0.08);
}

.contact-alert {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    margin-bottom: 18px;
    padding: 14px;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.55;
    font-weight: 800;
}

.contact-alert.success {
    color: #0f5132;
    background: #e8f5ee;
    border: 1px solid #b7e0c8;
}

.contact-alert.error {
    color: #842029;
    background: #f8e7e9;
    border: 1px solid #edc2c7;
}

.modern-contact-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.contact-field {
    display: grid;
    gap: 8px;
}

.contact-field.full,
.contact-submit {
    grid-column: 1 / -1;
}

.contact-field label {
    color: #023756;
    font-family: 'Roboto', sans-serif;
    font-size: 13px;
    font-weight: 900;
}

.contact-field label span {
    color: #b87812;
}

.contact-field input,
.contact-field textarea {
    width: 100%;
    min-width: 0;
    border: 1px solid rgba(2, 55, 86, 0.18);
    border-radius: 6px;
    background: #fbfcfd;
    color: #023756;
    font-size: 15px;
    line-height: 1.5;
    outline: none;
    transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.contact-field input {
    height: 48px;
    padding: 0 14px;
}

.contact-field textarea {
    min-height: 150px;
    resize: vertical;
    padding: 14px;
}

.contact-field input:focus,
.contact-field textarea:focus {
    border-color: #d7a12a;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(215, 161, 42, 0.14);
}

.contact-field small {
    min-height: 18px;
    color: #842029;
    font-size: 12px;
    line-height: 1.4;
}

.contact-field.has-error input,
.contact-field.has-error textarea {
    border-color: #c94b55;
    background: #fff9f9;
}

.contact-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 50px;
    border: 1px solid #d7a12a;
    background: #d7a12a;
    color: #071e31;
    cursor: pointer;
    transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.contact-submit:hover,
.contact-submit:focus {
    background: #efc15f;
    border-color: #efc15f;
    transform: translateY(-1px);
}

.contact-hp {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

@media (max-width: 960px) {
    .contact-section-shell {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 820px) {
    .contact-hero {
        height: 60vh !important;
        min-height: 0 !important;
        background-position: center right;
    }

    .contact-hero-shell,
    .contact-section-shell {
        width: calc(100vw - 28px) !important;
        max-width: calc(100vw - 28px) !important;
        margin-left: 14px !important;
        margin-right: 14px !important;
    }

    .contact-hero-shell {
        grid-template-columns: 1fr;
        align-items: center;
        padding: 22px 0 !important;
    }

    .contact-eyebrow {
        margin-bottom: 8px;
        font-size: 11px;
    }

    .contact-hero h1 {
        width: 13ch;
        max-width: 100%;
        font-size: 30px;
        line-height: 1.06;
        text-wrap: balance;
    }

    .contact-hero p {
        width: 32ch;
        max-width: 100%;
        margin-top: 13px;
        font-size: 13px;
        line-height: 1.46;
    }

    .contact-hero-actions {
        flex-direction: column;
        gap: 8px;
        margin-top: 14px;
    }

    .contact-primary-cta,
    .contact-secondary-cta {
        width: 100%;
        min-height: 42px;
    }

    .contact-hero-panel {
        display: none;
    }

    .contact-section {
        padding: 58px 0 62px;
    }

    .contact-intro h2 {
        width: 12ch;
        max-width: 100%;
        font-size: 33px;
        line-height: 1.12;
        text-wrap: balance;
    }

    .contact-form-card {
        padding: 20px;
    }

    .modern-contact-form {
        grid-template-columns: 1fr;
    }
}


/* Contact mobile text measure refinement */
@media (max-width: 820px) {
    .contact-intro p,
    .contact-info-list,
    .contact-form-card {
        max-width: 100% !important;
        min-width: 0;
    }

    .contact-intro p {
        width: 31ch !important;
        overflow-wrap: normal;
    }
}

/* AOS safety and polish */
html:not(.aos-js) [data-aos] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
}

@media (prefers-reduced-motion: reduce) {
    [data-aos],
    [data-aos].aos-animate {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}


