@font-face {
    font-family: "quentinregular";
    src: url("../../fonts/quentin-webfont.woff2") format("woff2"),
         url("../../fonts/quentin-webfont.woff") format("woff");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {
    /* Twoways brand — navy + steel gray from logo */
    --apex-navy: #002060;
    --apex-navy-deep: #001050;
    --apex-navy-mid: #001858;
    --apex-steel: #686868;
    --apex-steel-soft: #808080;
    --apex-steel-pale: #dce3ef;
    --apex-on-dark: #c5d0e6;
    --apex-gold: var(--apex-navy);
    --apex-gold-soft: var(--apex-navy-mid);
    --apex-gold-pale: var(--apex-steel-pale);
    /* Dark surfaces = navy (replaces old plum/charcoal brand) */
    --apex-dark: #002060;
    --apex-charcoal: #001050;
    --apex-title: #001858;
    --apex-text: #686868;
    --apex-white: #ffffff;
    --apex-bg: #ffffff;
    --apex-script: #dce3ef;
    --apex-blue: #1a7efb;
    --apex-wa: #25d366;
    --font-body: "Roboto", sans-serif;
    --font-heading: "Ubuntu", sans-serif;
    --font-sub: "Mulish", sans-serif;
    --font-script: "quentinregular", cursive;
    --header-h: 96px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body.apex-body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.75;
    color: var(--apex-text);
    background: var(--apex-bg);
}

body.nav-open {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 500;
    color: var(--apex-title);
    line-height: 1.3;
}

.apex-container {
    width: min(1200px, 92vw);
    margin: 0 auto;
}

/* ========== Header ========== */
.apex-site-header {
    position: sticky;
    top: 0;
    z-index: 200;
    transition: box-shadow 0.25s ease;
}

.apex-site-header.is-scrolled {
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
}

.apex-topbar {
    background: rgba(0, 16, 80, 0.96);
    color: #e8eef8;
    font-size: 14px;
    padding: 0.55rem 0;
}

.apex-topbar-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1.5rem;
}

.apex-topbar-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem 1.75rem;
}

.apex-topbar-contact a,
.apex-topbar-contact span {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.apex-topbar-contact i {
    color: var(--apex-on-dark);
}

.apex-topbar-contact a:hover {
    color: var(--apex-on-dark);
}

.apex-topbar-social {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.apex-topbar-social span {
    opacity: 0.85;
}

.apex-topbar-social a {
    color: #fff;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.apex-topbar-social a:hover {
    color: #fff;
}

.apex-nav {
    background: var(--apex-dark);
}

.apex-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.65rem 0;
    min-height: 72px;
}

.apex-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    line-height: 0;
    padding: 0.2rem 0;
}

.apex-logo img {
    height: 64px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.45));
}

.apex-nav-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.15rem 1.35rem;
    list-style: none;
    margin: 0;
    padding: 0;
    font-family: var(--font-heading);
}

.apex-nav-links a {
    color: #fff;
    font-size: 15px;
    font-weight: 400;
    padding: 0.35rem 0;
    position: relative;
}

.apex-nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--apex-on-dark);
    transition: width 0.25s ease;
}

.apex-nav-links a:hover {
    color: var(--apex-on-dark);
}

.apex-nav-links a:hover::after {
    width: 100%;
}

.apex-nav-toggle {
    display: none;
    background: transparent;
    border: 0;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.35rem;
}

/* ========== Hero ========== */
.apex-hero {
    position: relative;
    min-height: 720px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    color: #fff;
    text-align: center;
}

.apex-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.1);
}

.apex-hero-content {
    position: relative;
    z-index: 1;
    width: min(932px, 92vw);
    padding: 5rem 0;
}

.apex-hero .bg-title {
    font-family: var(--font-script);
    font-size: clamp(3.5rem, 9vw, 7rem);
    color: #fff;
    opacity: 0.2;
    line-height: 1;
    margin-bottom: -1.5rem;
    pointer-events: none;
}

.apex-hero h1 {
    color: #fff;
    font-size: clamp(1.85rem, 4.5vw, 3rem);
    font-weight: 500;
    margin: 0;
    line-height: 1.25;
}

.apex-hero-animate .bg-title,
.apex-hero-animate h1 {
    animation: apex-hero-in 0.9s ease both;
}

.apex-hero-animate h1 {
    animation-delay: 0.15s;
}

@keyframes apex-hero-in {
    from {
        opacity: 0;
        transform: translateY(28px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

/* ========== Section headers (light) ========== */
.apex-section-head {
    position: relative;
    text-align: center;
    padding: 4.5rem 1rem 2.5rem;
    overflow: hidden;
    scroll-margin-top: var(--header-h);
}

.apex-section-head .bg-title {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-script);
    font-size: clamp(4rem, 12vw, 8.5rem);
    color: var(--apex-script);
    line-height: 1;
    pointer-events: none;
    user-select: none;
    white-space: nowrap;
}

.apex-section-head .eyebrow {
    position: relative;
    z-index: 1;
    display: block;
    font-family: var(--font-sub);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--apex-gold-soft);
    margin: 0 0 0.75rem;
}

.apex-section-head h2 {
    position: relative;
    z-index: 1;
    margin: 0;
    font-size: clamp(1.65rem, 3vw, 2.35rem);
    color: var(--apex-title);
}

/* ========== Service bands (light background, navy cards) ========== */
.apex-services-band {
    background: transparent;
    padding: 2.5rem 0 4rem;
}

.apex-services-grid {
    display: grid;
    gap: 1.75rem 1.25rem;
    perspective: 900px;
}

.apex-services-grid.cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.apex-services-grid.cols-5 {
    grid-template-columns: repeat(5, 1fr);
}

.apex-service-item {
    text-align: center;
    color: #fff;
    padding: 1.55rem 1.15rem 1.65rem;
    border: 1px solid rgba(0, 32, 96, 0.16);
    border-radius: 20px;
    background: linear-gradient(160deg, #0a2a70 0%, var(--apex-dark, #002060) 45%, #001050 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 10px 28px rgba(0, 16, 80, 0.18);
    cursor: default;
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    transition:
        transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
        background 0.35s ease,
        border-color 0.35s ease,
        box-shadow 0.45s ease;
}

.apex-service-item::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--apex-on-dark), transparent);
    opacity: 0;
    transform: scaleX(0.45);
    transition: opacity 0.35s ease, transform 0.45s ease;
}

.apex-service-item:hover {
    transform: translateY(-9px);
    background: linear-gradient(150deg, #123a86 0%, #001858 60%, #001050 100%);
    border-color: rgba(0, 32, 96, 0.3);
    box-shadow: 0 22px 42px rgba(0, 16, 80, 0.32);
}

.apex-service-item:hover::before {
    opacity: 1;
    transform: scaleX(1);
}

.apex-service-icon {
    width: 89px;
    height: 89px;
    margin: 0 auto 1.15rem;
    background: linear-gradient(145deg, #ffffff, #dce3ef);
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(0, 8, 45, 0.28);
    transition:
        box-shadow 0.45s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
        background 0.35s ease,
        border-color 0.35s ease;
}

.apex-service-icon::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.35), transparent 55%);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.apex-service-icon img {
    width: 46px;
    height: auto;
    object-fit: contain;
    position: relative;
    z-index: 1;
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.apex-service-item:hover .apex-service-icon {
    box-shadow: 0 17px 32px rgba(0, 8, 45, 0.42);
    transform: translateY(-6px) scale(1.08);
    background: linear-gradient(145deg, #ffffff, #c5d0e6);
    border-color: #fff;
}

.apex-service-item:hover .apex-service-icon::after {
    opacity: 1;
}

.apex-service-item:hover .apex-service-icon img {
    transform: scale(1.12) rotate(-4deg);
}

.apex-service-item h3 {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.65rem;
    transition: color 0.3s ease, transform 0.35s ease;
}

.apex-service-item:hover h3 {
    color: #dce3ef;
    transform: translateY(-2px);
}

.apex-service-item p {
    margin: 0;
    color: rgba(232, 238, 248, 0.82);
    font-size: 0.95rem;
    line-height: 1.65;
    transition: color 0.3s ease, opacity 0.3s ease;
}

.apex-service-item:hover p {
    color: #fff;
}

/* ========== Partner ========== */
.apex-partner {
    padding: 5.5rem 0 4.5rem;
    scroll-margin-top: var(--header-h);
}

.apex-partner-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 2.5rem 3rem;
    align-items: center;
}

.apex-partner-copy h2 {
    font-size: clamp(1.6rem, 3vw, 2.25rem);
    font-weight: 600;
    line-height: 1.3;
    margin: 0 0 1rem;
}

.apex-partner-copy > p {
    font-size: 15px;
    line-height: 1.7;
    margin: 0 0 1.75rem;
    color: var(--apex-text);
}

.apex-feature-row {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1.15rem;
}

.apex-feature-row .icon {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--apex-gold-pale);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.25s ease;
}

.apex-feature-row:hover .icon {
    background: var(--apex-gold);
}

.apex-feature-row .icon img {
    width: 40px;
    height: auto;
}

.apex-feature-row h3 {
    font-size: 1.25rem;
    margin: 0.35rem 0 0.35rem;
}

.apex-feature-row p {
    margin: 0;
    font-size: 0.95rem;
}

.apex-partner-media {
    position: relative;
}

.apex-partner-media .collage {
    width: 100%;
    border-radius: 8px;
}

.apex-partner-media .spin-logo {
    position: absolute;
    top: -12px;
    left: -36px;
    width: 110px;
    height: 110px;
    z-index: 2;
    object-fit: contain;
    animation: apex-spin 10s linear infinite;
}

@keyframes apex-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ========== Testimonials ========== */
.apex-testimonials {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    min-height: 580px;
    scroll-margin-top: var(--header-h);
    overflow: hidden;
}

.apex-testimonials-copy {
    background-color: var(--apex-navy);
    background-image:
        radial-gradient(ellipse 80% 60% at 100% 100%, rgba(0, 32, 96, 0.18), transparent 55%),
        linear-gradient(160deg, rgba(255, 255, 255, 0.1) 0%, transparent 42%);
    color: #fff;
    position: relative;
    display: flex;
    align-items: center;
    isolation: isolate;
}

.apex-testimonials-copy::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.14), transparent 28%);
    pointer-events: none;
    z-index: 0;
}

.apex-testimonials-copy-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 4rem 3.5rem 3.75rem 3.75rem;
    max-width: 640px;
}

.apex-testimonials-copy .bg-title {
    position: absolute;
    top: 0.85rem;
    left: 2.25rem;
    font-family: var(--font-script);
    font-size: clamp(3.75rem, 7.5vw, 5.75rem);
    color: #fff;
    opacity: 0.2;
    line-height: 1;
    pointer-events: none;
    white-space: nowrap;
}

.apex-testimonials-copy .eyebrow {
    position: relative;
    display: inline-block;
    font-family: var(--font-sub);
    letter-spacing: 2.2px;
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 700;
    margin: 0.5rem 0 0.75rem;
    color: #fff;
}

.apex-testimonials-copy h2 {
    position: relative;
    color: #fff;
    font-size: clamp(1.5rem, 2.5vw, 1.9rem);
    font-weight: 600;
    line-height: 1.35;
    margin: 0 0 0.85rem;
    max-width: 24ch;
    text-shadow: 0 1px 2px rgba(0, 32, 96, 0.12);
}

.apex-testimonials-copy .intro {
    position: relative;
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.95rem;
    line-height: 1.65;
    margin: 0 0 1.65rem;
    max-width: 40ch;
}

.apex-carousel {
    position: relative;
    min-height: 190px;
}

.apex-slide {
    display: none;
}

.apex-slide.is-active {
    display: block;
    animation: apex-fade 0.5s ease;
}

@keyframes apex-fade {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.apex-quote-mark {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 5rem;
    line-height: 0.55;
    color: #1e3a5f;
    margin: 0 0 0.85rem;
    opacity: 0.9;
}

.apex-slide blockquote {
    margin: 0 0 1.35rem;
    font-size: 1.12rem;
    font-weight: 400;
    color: #fff;
    line-height: 1.75;
    quotes: none;
}

.apex-stars {
    color: #ffd54f;
    margin-bottom: 0.85rem;
    letter-spacing: 3px;
    font-size: 0.95rem;
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.15));
}

.apex-slide-author {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem 0.65rem;
}

.apex-slide cite {
    font-style: normal;
    font-weight: 700;
    font-size: 1.05rem;
    color: #fff;
}

.apex-slide .loc {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
}

.apex-slide .loc::before {
    content: "•";
    margin-right: 0.55rem;
    opacity: 0.75;
}

.apex-carousel-nav {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.75rem;
}

.apex-carousel-nav button {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid transparent;
    background: #fff;
    color: var(--apex-navy);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.16);
    cursor: pointer;
    transition: background 0.22s, color 0.22s, border-color 0.22s, transform 0.22s, box-shadow 0.22s;
}

.apex-carousel-nav button:hover {
    background: var(--apex-on-dark);
    border-color: #fff;
    color: var(--apex-navy-deep);
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.28);
}

.apex-testimonials-media {
    background: #f7f5f2;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 2.75rem;
    position: relative;
}

.apex-testimonials-frame {
    width: min(100%, 460px);
    position: relative;
}

.apex-testimonials-frame::after {
    content: "";
    position: absolute;
    inset: 18px -14px -14px 18px;
    border: 1px solid rgba(0, 32, 96, 0.35);
    border-radius: 150px 0 150px 0;
    z-index: 0;
    pointer-events: none;
}

.apex-testimonials-frame img {
    position: relative;
    z-index: 1;
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border: 12px solid #fff;
    border-radius: 150px 0 150px 0;
    box-shadow: 0 18px 48px rgba(0, 32, 96, 0.18);
    transition: transform 0.45s ease;
}

.apex-testimonials-frame:hover img {
    transform: scale(1.02);
}

/* ========== CTA ========== */
.apex-cta-wrap {
    padding: 2.75rem 0 0;
    margin-top: 2.5rem;
    position: relative;
    z-index: 2;
}

.apex-cta {
    background: var(--apex-gold);
    border-radius: 5px;
    padding: 2.5rem 2.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    position: relative;
    overflow: hidden;
}

.apex-cta .bg-title {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-family: var(--font-script);
    font-size: 5rem;
    color: #fff;
    opacity: 0.2;
    pointer-events: none;
    white-space: nowrap;
}

.apex-cta-text {
    position: relative;
    z-index: 1;
    max-width: 720px;
}

.apex-cta h2 {
    color: #fff;
    font-size: clamp(1.4rem, 2.5vw, 2.1rem);
    font-weight: 600;
    margin: 0 0 0.65rem;
}

.apex-cta p {
    color: #fff;
    margin: 0;
    font-size: 1rem;
}

.apex-cta .apex-btn-dark {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    background: #fff;
    color: var(--apex-navy) !important;
    border: 2px solid #fff;
    box-shadow: 0 10px 24px rgba(0, 8, 45, 0.28);
    font-weight: 600;
}

.apex-cta .apex-btn-dark:hover {
    background: var(--apex-on-dark);
    border-color: var(--apex-on-dark);
    color: var(--apex-navy-deep) !important;
    opacity: 1;
    transform: translateY(-3px);
    box-shadow: 0 14px 28px rgba(0, 8, 45, 0.35);
}

.apex-btn-dark {
    display: inline-block;
    background: var(--apex-dark);
    color: #fff !important;
    font-family: var(--font-heading);
    font-weight: 500;
    padding: 1.15rem 1.85rem;
    border-radius: 3px;
    border: 0;
    cursor: pointer;
    transition: transform 0.2s, opacity 0.2s;
}

.apex-btn-dark:hover {
    opacity: 0.92;
    transform: translateY(-2px);
}

.apex-btn-blue {
    display: inline-block;
    background: var(--apex-blue);
    color: #fff !important;
    font-family: var(--font-heading);
    font-weight: 500;
    padding: 0.9rem 1.75rem;
    border-radius: 4px;
    border: 0;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.2s, transform 0.15s;
}

.apex-btn-blue:hover {
    background: #0d6efd;
    transform: translateY(-1px);
}

/* ========== Contact ========== */
.apex-contact {
    padding: 4.5rem 0 5rem;
    scroll-margin-top: var(--header-h);
    background: linear-gradient(180deg, #f5f7fb 0%, #ffffff 48%, #ffffff 100%);
}

.apex-contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 2.75rem;
    align-items: stretch;
}

.apex-contact-map {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-height: 100%;
}

.apex-map-card {
    position: relative;
    flex: 1;
    border-radius: 16px;
    overflow: hidden;
    background: #e8eef8;
    box-shadow: 0 18px 48px rgba(0, 32, 96, 0.1);
    border: 1px solid rgba(0, 32, 96, 0.22);
    min-height: 520px;
}

.apex-map-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 2;
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    max-width: min(88%, 320px);
    padding: 0.85rem 1rem;
    background: rgba(255, 255, 255, 0.96);
    border-radius: 12px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(0, 32, 96, 0.28);
}

.apex-map-badge i {
    color: var(--apex-gold);
    font-size: 1.1rem;
    margin-top: 0.15rem;
}

.apex-map-badge strong {
    display: block;
    color: var(--apex-title);
    font-family: var(--font-heading);
    font-size: 0.95rem;
    margin-bottom: 0.15rem;
}

.apex-map-badge span {
    display: block;
    color: var(--apex-text);
    font-size: 0.8rem;
    line-height: 1.45;
}

.apex-map {
    border: 0;
    width: 100%;
    height: 100%;
    min-height: 520px;
    display: block;
    filter: grayscale(0.08) contrast(1.02);
}

.apex-contact-quick {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.apex-contact-quick a {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.9rem 1rem;
    background: #fff;
    border: 1px solid #ebe4da;
    border-radius: 12px;
    color: var(--apex-title);
    font-size: 0.92rem;
    font-weight: 500;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.apex-contact-quick a:hover {
    border-color: var(--apex-gold);
    box-shadow: 0 8px 22px rgba(0, 32, 96, 0.18);
    transform: translateY(-1px);
}

.apex-contact-quick i {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--apex-gold-pale);
    color: var(--apex-gold-soft);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.apex-contact-panel {
    background: #fff;
    border: 1px solid #ebe4da;
    border-radius: 16px;
    padding: 2rem 2rem 1.85rem;
    box-shadow: 0 18px 48px rgba(0, 32, 96, 0.06);
}

.apex-contact-panel-head {
    margin-bottom: 1.5rem;
}

.apex-contact-panel-head .eyebrow {
    display: inline-block;
    font-family: var(--font-sub);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: var(--apex-gold-soft);
    margin-bottom: 0.55rem;
}

.apex-contact-panel-head h3 {
    font-size: clamp(1.55rem, 2.4vw, 1.9rem);
    margin: 0 0 0.55rem;
    color: var(--apex-title);
    font-weight: 600;
}

.apex-contact-panel-head p {
    margin: 0;
    color: var(--apex-text);
    font-size: 0.95rem;
    line-height: 1.6;
}

.apex-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.1rem 1rem;
}

.apex-form .full {
    grid-column: 1 / -1;
}

.apex-field label {
    display: block;
    font-size: 0.86rem;
    font-weight: 500;
    color: #4a5568;
    margin-bottom: 0.4rem;
}

.apex-field label .req {
    color: #d32f2f;
}

.apex-form input,
.apex-form select,
.apex-form textarea {
    width: 100%;
    padding: 0.82rem 0.95rem;
    border: 1px solid rgba(0, 32, 96, 0.12);
    border-radius: 10px;
    background: #f5f7fb;
    font-family: inherit;
    font-size: 0.95rem;
    color: #1a1a1a;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.apex-form textarea {
    min-height: 96px;
    resize: vertical;
}

.apex-select-wrap {
    position: relative;
}

.apex-select-wrap::after {
    content: "\f078";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    right: 0.95rem;
    top: 50%;
    transform: translateY(-50%);
    color: #686868;
    pointer-events: none;
    font-size: 0.75rem;
}

.apex-form select {
    appearance: none;
    padding-right: 2.4rem;
    cursor: pointer;
}

.apex-form input::placeholder,
.apex-form textarea::placeholder {
    color: #8a94a6;
}

.apex-form input:hover,
.apex-form select:hover,
.apex-form textarea:hover {
    border-color: rgba(0, 32, 96, 0.28);
}

.apex-form input:focus,
.apex-form select:focus,
.apex-form textarea:focus {
    outline: none;
    border-color: var(--apex-gold);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(0, 32, 96, 0.18);
}

.apex-form .field-validation-error {
    color: #c62828;
    font-size: 0.78rem;
    display: block;
    margin-top: 0.3rem;
}

.apex-form-actions {
    margin-top: 0.25rem;
}

.apex-btn-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 180px;
    background: var(--apex-dark);
    color: #fff !important;
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 1rem;
    padding: 0.95rem 1.85rem;
    border-radius: 10px;
    border: 0;
    cursor: pointer;
    transition: background 0.22s, transform 0.18s, box-shadow 0.22s;
    box-shadow: 0 10px 24px rgba(0, 32, 96, 0.18);
}

.apex-btn-submit:hover {
    background: var(--apex-gold-soft);
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(0, 32, 96, 0.28);
}

.apex-alert {
    padding: 0.85rem 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.apex-alert-success {
    background: #e8f5e9;
    color: #2e7d32;
}

.apex-alert-error {
    background: #ffebee;
    color: #c62828;
}

/* ========== Footer ========== */
.apex-footer {
    background: #fff;
    border-top: 1px solid #eee;
    padding: 3.5rem 0 0;
    color: #777;
}

.apex-footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 2.5rem;
    padding-bottom: 2.5rem;
}

.apex-footer-brand img {
    width: 150px;
    height: auto;
    margin-bottom: 1rem;
    background: transparent;
    padding: 0;
    border-radius: 0;
    object-fit: contain;
    filter: drop-shadow(0 2px 6px rgba(0, 16, 80, 0.12));
}

.apex-footer-brand p {
    margin: 0 0 1.25rem;
    max-width: 420px;
    font-size: 0.95rem;
    line-height: 1.7;
}

.apex-footer-social {
    display: flex;
    gap: 0.55rem;
}

.apex-footer-social a {
    width: 40px;
    height: 40px;
    background: var(--apex-gold-soft);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background 0.2s, transform 0.2s;
}

.apex-footer-social a:hover {
    background: var(--apex-dark);
    transform: translateY(-2px);
}

.apex-footer-contact h4 {
    margin: 0 0 0.75rem;
    color: #222;
    font-size: 1.15rem;
    position: relative;
    padding-bottom: 0.65rem;
}

.apex-footer-contact h4::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 36px;
    height: 2px;
    background: var(--apex-gold);
}

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

.apex-footer-contact li {
    display: flex;
    gap: 0.65rem;
    align-items: flex-start;
    margin-bottom: 0.85rem;
    font-size: 0.95rem;
}

.apex-footer-contact i {
    color: var(--apex-navy);
    margin-top: 0.3rem;
}

.apex-footer-contact a:hover {
    color: var(--apex-navy);
}

.apex-footer-bottom {
    background: #f5f5f5;
    padding: 1rem 0;
    font-size: 0.88rem;
}

.apex-footer-bottom-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.75rem;
    align-items: center;
}

.apex-footer-bottom a {
    color: #666;
}

.apex-footer-bottom a:hover {
    color: var(--apex-navy);
}

.apex-footer-bottom .sep {
    margin: 0 0.5rem;
    opacity: 0.5;
}

/* ========== Float widgets ========== */
.apex-float {
    position: fixed;
    right: 1.15rem;
    bottom: 1.15rem;
    z-index: 300;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    align-items: flex-end;
}

.apex-wa {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--apex-wa);
    color: #fff !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
    transition: transform 0.2s;
}

.apex-wa:hover {
    transform: scale(1.06);
}

.apex-call {
    background: var(--apex-gold);
    color: #fff !important;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

/* ========== Reveal animations ========== */
[data-reveal] {
    opacity: 0;
    transition:
        opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.85s cubic-bezier(0.22, 1, 0.36, 1),
        filter 0.85s ease;
    filter: blur(4px);
    will-change: opacity, transform;
}

[data-reveal="fadeInUp"] {
    transform: translateY(48px);
}

[data-reveal="fadeInLeft"] {
    transform: translateX(-52px);
}

[data-reveal="fadeInRight"] {
    transform: translateX(52px);
}

[data-reveal="zoomIn"] {
    transform: scale(0.88);
}

[data-reveal].is-visible {
    opacity: 1;
    transform: none;
    filter: none;
}

/* ========== Motion enhancements ========== */
.apex-nav-links a {
    transition: color 0.28s ease, transform 0.28s ease;
}

.apex-nav-links a:hover {
    transform: translateY(-1px);
}

.apex-topbar-social a,
.apex-footer-social a {
    transition:
        background 0.28s ease,
        border-color 0.28s ease,
        transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.35s ease;
}

.apex-topbar-social a:hover {
    transform: translateY(-3px) scale(1.12);
    color: #fff;
}

.apex-footer-social a:hover {
    transform: translateY(-4px) scale(1.08) rotate(-4deg);
    box-shadow: 0 10px 18px rgba(0, 32, 96, 0.18);
}

.apex-feature-row {
    padding: 0.7rem 0.9rem 0.7rem 0.45rem;
    border: 1px solid transparent;
    border-radius: 18px;
    position: relative;
    overflow: hidden;
    transition:
        background 0.35s ease,
        border-color 0.35s ease,
        transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.4s ease;
}

.apex-feature-row::after {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: var(--apex-on-dark);
    opacity: 0;
    transform: scaleY(0.35);
    transition: opacity 0.3s ease, transform 0.4s ease;
}

.apex-feature-row:hover {
    background: linear-gradient(135deg, #002060 0%, #001858 100%);
    border-color: rgba(0, 32, 96, 0.18);
    transform: translateX(8px);
    box-shadow: 0 16px 34px rgba(0, 16, 80, 0.22);
}

.apex-feature-row:hover::after {
    opacity: 1;
    transform: scaleY(1);
}

.apex-feature-row .icon {
    border: 1px solid rgba(0, 32, 96, 0.06);
    box-shadow: 0 8px 20px rgba(0, 16, 80, 0.08);
    transition:
        background 0.35s ease,
        border-color 0.35s ease,
        transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.35s ease;
}

.apex-feature-row:hover .icon {
    background: linear-gradient(145deg, #fff, #dce3ef);
    border-color: rgba(255, 255, 255, 0.9);
    transform: scale(1.08) rotate(-4deg);
    box-shadow: 0 12px 24px rgba(0, 8, 45, 0.35);
}

.apex-feature-row .icon img {
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), filter 0.35s ease;
}

.apex-feature-row:hover .icon img {
    transform: scale(1.08);
    filter: brightness(0.9) contrast(1.12);
}

.apex-feature-row h3,
.apex-feature-row p {
    transition: color 0.3s ease, transform 0.35s ease;
}

.apex-feature-row:hover h3 {
    color: #fff;
    transform: translateX(2px);
}

.apex-feature-row:hover p {
    color: rgba(232, 238, 248, 0.88);
    transform: translateX(2px);
}

.apex-btn-dark,
.apex-btn-submit,
.apex-call {
    position: relative;
    overflow: hidden;
}

.apex-btn-dark::before,
.apex-btn-submit::before {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;
    width: 70%;
    height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.22), transparent);
    transition: left 0.55s ease;
}

.apex-btn-dark:hover::before,
.apex-btn-submit:hover::before {
    left: 130%;
}

.apex-btn-dark:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 28px rgba(0, 32, 96, 0.28);
}

.apex-cta {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.apex-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(0, 32, 96, 0.28);
}

.apex-carousel-nav button:hover {
    transform: translateY(-3px) scale(1.06);
    background: var(--apex-on-dark);
    border-color: #fff;
    color: var(--apex-navy-deep);
}

.apex-contact-quick a i {
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), background 0.3s ease, color 0.3s ease;
}

.apex-contact-quick a:hover i {
    transform: scale(1.12) rotate(-8deg);
    background: var(--apex-gold);
    color: #fff;
}

.apex-map-card {
    transition: transform 0.45s ease, box-shadow 0.45s ease;
}

.apex-map-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 52px rgba(0, 32, 96, 0.14);
}

.apex-contact-panel {
    transition: transform 0.45s ease, box-shadow 0.45s ease;
}

.apex-contact-panel:hover {
    transform: translateY(-3px);
    box-shadow: 0 22px 48px rgba(0, 32, 96, 0.1);
}

.apex-wa {
    animation: apex-wa-pulse 2.4s ease-in-out infinite;
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease;
}

.apex-wa:hover {
    animation: none;
    transform: scale(1.12);
    box-shadow: 0 10px 28px rgba(37, 211, 102, 0.55);
}

.apex-call {
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.apex-call:hover {
    transform: translateY(-3px) scale(1.04);
    background: var(--apex-gold-soft);
    box-shadow: 0 10px 22px rgba(0, 32, 96, 0.4);
}

.apex-partner-media .collage {
    transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1), filter 0.5s ease;
}

.apex-partner-media:hover .collage {
    transform: scale(1.03);
    filter: saturate(1.05);
}

.apex-logo img {
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), filter 0.35s ease;
}

.apex-logo:hover img {
    transform: scale(1.04);
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5)) brightness(1.08);
}

.apex-section-head .eyebrow,
.apex-contact-panel-head .eyebrow {
    transition: letter-spacing 0.35s ease, color 0.3s ease;
}

.apex-section-head:hover .eyebrow,
.apex-contact-panel-head:hover .eyebrow {
    letter-spacing: 2.6px;
}

@keyframes apex-wa-pulse {
    0%,
    100% {
        box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 8px 28px rgba(37, 211, 102, 0.65);
        transform: scale(1.05);
    }
}

@media (hover: none) {
    .apex-service-item:hover,
    .apex-feature-row:hover,
    .apex-map-card:hover,
    .apex-contact-panel:hover,
    .apex-cta:hover {
        transform: none;
        box-shadow: none;
        background: transparent;
    }

    .apex-feature-row:hover {
        border-color: transparent;
    }

    .apex-feature-row:hover::after {
        opacity: 0;
    }

    .apex-feature-row:hover .icon {
        background: var(--apex-gold-pale);
        border-color: rgba(0, 32, 96, 0.06);
        transform: none;
        box-shadow: 0 8px 20px rgba(0, 16, 80, 0.08);
    }

    .apex-feature-row:hover h3 {
        color: var(--apex-title);
        transform: none;
    }

    .apex-feature-row:hover p {
        color: var(--apex-text);
        transform: none;
    }

    .apex-wa {
        animation: none;
    }
}

/* ========== Legal ========== */
.apex-legal {
    padding: 3.5rem 0 4rem;
    max-width: 800px;
    margin: 0 auto;
}

.apex-legal h1 {
    border-bottom: 3px solid var(--apex-gold);
    padding-bottom: 0.5rem;
}

/* ========== Responsive ========== */
@media (max-width: 1100px) {
    .apex-services-grid.cols-5 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1100px) {
    .apex-nav-links {
        gap: 0.1rem 0.85rem;
    }

    .apex-nav-links a {
        font-size: 13px;
    }
}

@media (max-width: 992px) {
    .apex-nav-toggle {
        display: inline-flex;
    }

    .apex-logo img {
        height: 52px;
        max-width: 180px;
    }

    .apex-nav-links {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        background: var(--apex-dark);
        flex-direction: column;
        align-items: stretch;
        padding: 1rem 1.25rem 1.5rem;
        gap: 0;
        box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
    }

    .apex-nav-links.is-open {
        display: flex;
    }

    .apex-nav-links li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .apex-nav-links a {
        display: block;
        padding: 0.85rem 0.25rem;
        font-size: 15px;
    }

    .apex-nav {
        position: relative;
    }

    .apex-hero {
        min-height: 520px;
    }

    .apex-partner-grid,
    .apex-testimonials,
    .apex-contact-grid,
    .apex-footer-grid {
        grid-template-columns: 1fr;
    }

    .apex-map-card,
    .apex-map {
        min-height: 360px;
    }

    .apex-contact-panel {
        padding: 1.65rem 1.35rem 1.5rem;
    }

    .apex-partner-media .spin-logo {
        left: 8px;
        top: -8px;
        width: 80px;
        height: 80px;
    }

    .apex-testimonials-copy-inner {
        padding: 3.25rem 1.75rem 3.5rem;
        max-width: none;
    }

    .apex-testimonials-copy .bg-title {
        left: 1.25rem;
        top: 0.75rem;
    }

    .apex-testimonials-copy h2 {
        max-width: none;
    }

    .apex-testimonials-media {
        padding: 2.5rem 1.5rem 3rem;
        background: #f7f5f2;
    }

    .apex-testimonials-frame::after {
        display: none;
    }

    .apex-testimonials-frame img {
        border-radius: 24px 0 24px 0;
        aspect-ratio: 5 / 4;
    }

    .apex-cta {
        flex-direction: column;
        text-align: center;
        padding: 2rem 1.5rem;
    }

    .apex-cta .bg-title {
        display: none;
    }
}

@media (max-width: 768px) {
    .apex-topbar-contact span:last-child {
        display: none;
    }

    .apex-services-grid.cols-3,
    .apex-services-grid.cols-5 {
        grid-template-columns: 1fr;
        max-width: 420px;
        margin: 0 auto;
    }

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

    .apex-contact-quick {
        grid-template-columns: 1fr;
    }

    .apex-map-badge {
        max-width: calc(100% - 1.5rem);
    }

    .apex-btn-submit {
        width: 100%;
    }

    .apex-hero {
        min-height: 420px;
    }

    .apex-hero h1 {
        font-size: 1.65rem;
    }

    .apex-section-head {
        padding: 3rem 1rem 1.75rem;
    }

    .apex-float {
        right: 0.85rem;
        bottom: 0.85rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    [data-reveal],
    .apex-partner-media .spin-logo,
    .apex-slide,
    .apex-hero-animate .bg-title,
    .apex-hero-animate h1,
    .apex-wa {
        animation: none !important;
        transition: none !important;
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
    }
}
