/* ============================================
   FONTS + TOKENS
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@500;700&family=Open+Sans:wght@400;600&display=swap');

:root {
    --brand-orange: #C0392B;
    --brand-grey: #6B7280;
}

/* ============================================
   BASE
   ============================================ */
body {
    font-family: 'Open Sans', sans-serif;
    color: #333;
    animation: pageFade 0.5s ease-out;
}

@keyframes pageFade {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Brand typography */
.brand-font {
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Brand color utilities */
.text-brand-orange  { color: var(--brand-orange); }
.bg-brand-orange    { background-color: var(--brand-orange); }
.text-brand-grey    { color: var(--brand-grey); }
.bg-brand-grey      { background-color: var(--brand-grey); }
.border-brand-orange{ border-color: var(--brand-orange); }
.border-brand-grey  { border-color: var(--brand-grey); }

/* ============================================
   NAVIGATION
   ============================================ */
.nav-link {
    color: var(--brand-grey);
    font-weight: 600;
    transition: color 0.2s;
}
.nav-link:hover,
.nav-link.active {
    color: var(--brand-orange);
}

/* ============================================
   FORMS (global)
   ============================================ */
input, textarea {
    width: 100%;
    padding: 0.5rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
input:focus, textarea:focus {
    border-color: var(--brand-orange);
    box-shadow: 0 0 0 2px rgba(192, 57, 43, 0.2);
}

/* ============================================
   HTMX LOADING INDICATOR
   ============================================ */
.htmx-indicator {
    display: none;
    opacity: 0;
    transition: opacity 200ms ease-in;
}
.htmx-request .htmx-indicator,
.htmx-request.htmx-indicator {
    display: inline-block;
    opacity: 1;
}

/* ============================================
   STICKY HEADER (glassmorphic on scroll)
   ============================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: #ffffff;
    border-bottom: 1px solid transparent;
    transition:
        background-color 0.35s ease,
        box-shadow 0.35s ease,
        border-color 0.35s ease,
        backdrop-filter 0.35s ease;
}

/* Scrolled state — frosted glass, brand colours intact */
.site-header.scrolled {
    background-color: rgba(255, 255, 255, 0.72);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
    border-bottom-color: rgba(192, 57, 43, 0.18); /* subtle brand tint on the border */
}

/* A faint brand-orange glow line under the header (decorative, not a red takeover) */
.site-header::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(192, 57, 43, 0.35) 50%,
        transparent 100%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}
.site-header.scrolled::after {
    opacity: 1;
}

/* Keep nav + hamburger as-is — no color override */
.site-header.scrolled .nav-link {
    color: var(--brand-grey);
}
.site-header.scrolled .nav-link:hover,
.site-header.scrolled .nav-link.active {
    color: var(--brand-orange);
}


/* Accessibility fallback for browsers without backdrop-filter */
@supports not (backdrop-filter: blur(1px)) {
    .site-header.scrolled {
        background-color: rgba(255, 255, 255, 0.94);
    }
}

/* Reduced motion — instant swap */
@media (prefers-reduced-motion: reduce) {
    .site-header,
    .site-header::after {
        transition: none;
    }
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
    will-change: opacity, transform;
}
.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.animate-on-scroll.fade-left          { transform: translateX(-40px); }
.animate-on-scroll.fade-left.is-visible { transform: translateX(0); }
.animate-on-scroll.fade-right         { transform: translateX(40px); }
.animate-on-scroll.fade-right.is-visible{ transform: translateX(0); }
.animate-on-scroll.zoom-in            { transform: scale(0.92); }
.animate-on-scroll.zoom-in.is-visible { transform: scale(1); }

.animate-stagger > * {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.animate-stagger.is-visible > * {
    opacity: 1;
    transform: translateY(0);
}
.animate-stagger.is-visible > *:nth-child(1) { transition-delay: 0.05s; }
.animate-stagger.is-visible > *:nth-child(2) { transition-delay: 0.15s; }
.animate-stagger.is-visible > *:nth-child(3) { transition-delay: 0.25s; }
.animate-stagger.is-visible > *:nth-child(4) { transition-delay: 0.35s; }
.animate-stagger.is-visible > *:nth-child(5) { transition-delay: 0.45s; }
.animate-stagger.is-visible > *:nth-child(6) { transition-delay: 0.55s; }

/* ============================================
   SCROLL-TO-TOP BUTTON
   ============================================ */
.scroll-to-top {
    position: fixed;
    bottom: 2.25rem;
    right: 1.25rem;
    z-index: 50;
    width: 48px;
    height: 48px;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--brand-orange);
    color: #fff;
    border: none;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(192, 57, 43, 0.35);
    opacity: 0;
    visibility: hidden;
    transform: translateY(14px) scale(0.95);
    transition:
        opacity 0.35s ease,
        transform 0.35s ease,
        visibility 0.35s ease,
        background-color 0.2s ease,
        box-shadow 0.2s ease;
}
.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}
.scroll-to-top:hover {
    background-color: #a5301f;
    box-shadow: 0 10px 24px rgba(192, 57, 43, 0.45);
    transform: translateY(-3px) scale(1.06);
}
.scroll-to-top:active {
    transform: translateY(0) scale(0.96);
}
.scroll-to-top:focus-visible {
    outline: 3px solid rgba(192, 57, 43, 0.45);
    outline-offset: 3px;
}

@media (max-width: 640px) {
    .scroll-to-top {
        bottom: 1.25rem;
        right: 1.25rem;
        width: 44px;
        height: 44px;
    }
}

/* ============================================
   HOME HERO CAROUSEL
   ============================================ */
.home-hero-carousel {
    position: relative;
    min-height: 680px;
    overflow: hidden;
    color: #fff;
    isolation: isolate;
    background: #111;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.9s ease-in-out;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    z-index: 1;
}
.hero-slide.active {
    opacity: 1;
    z-index: 2;
}
.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.6) 50%, rgba(0,0,0,0.3) 100%);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
}
.hero-slide .hero-content > * {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s ease 0.1s, transform 0.7s ease 0.1s;
}
.hero-slide.active .hero-content > *:nth-child(1) { opacity: 1; transform: none; transition-delay: 0.15s; }
.hero-slide.active .hero-content > *:nth-child(2) { opacity: 1; transform: none; transition-delay: 0.30s; }
.hero-slide.active .hero-content > *:nth-child(3) { opacity: 1; transform: none; transition-delay: 0.45s; }

.hero-slide h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.25rem;
    font-weight: 800;
}

/* Arrows */
.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.35);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.25s ease;
    backdrop-filter: blur(4px);
}
.hero-arrow:hover {
    background: var(--brand-orange);
    transform: translateY(-50%) scale(1.08);
}
.hero-arrow.prev { left: 1.25rem; }
.hero-arrow.next { right: 1.25rem; }

@media (max-width: 640px) {
    .hero-arrow { width: 40px; height: 40px; }
    .hero-arrow.prev { left: 0.75rem; }
    .hero-arrow.next { right: 0.75rem; }
}

/* Dots */
.hero-dots {
    position: absolute;
    bottom: 130px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 10px;
}
.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}
.hero-dot:hover { background: rgba(255, 255, 255, 0.8); }
.hero-dot.active {
    background: var(--brand-orange);
    transform: scale(1.35);
}

/* Stats strip anchored to the bottom */
.hero-stats {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9;
    padding: 1.75rem 0;
    background: linear-gradient(to top, rgba(0,0,0,0.55), transparent);
}
.hero-stats .stat-strip {
    margin-top: 0;
    border-top: none;
    padding-top: 0;
}

@media (max-width: 768px) {
    .home-hero-carousel { min-height: 720px; }
    .hero-slide h1 { font-size: 2.2rem; }
    .hero-dots { bottom: 180px; }
}

/* ============================================
   SHARED HERO BANNERS (About / Services / Contact)
   ============================================ */
.about-hero,
.services-hero,
.contact-hero {
    position: relative;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    color: #fff;
    isolation: isolate;
}
.about-hero,
.services-hero { min-height: 380px; }
.contact-hero  { min-height: 340px; }

.about-hero::before,
.services-hero::before,
.contact-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(120deg, rgba(0,0,0,0.80) 0%, rgba(0,0,0,0.5) 60%, rgba(0,0,0,0.25) 100%);
}

.about-hero h1,
.services-hero h1,
.contact-hero h1 {
    font-size: 3rem;
    line-height: 1.15;
    margin-bottom: 0.75rem;
}

@media (max-width: 768px) {
    .about-hero,
    .services-hero { min-height: 300px; }
    .contact-hero  { min-height: 280px; }
    .about-hero h1,
    .services-hero h1,
    .contact-hero h1 { font-size: 2rem; }
}

/* ============================================
   CLIENT LOGO MARQUEE (About page)
   ============================================ */
.clients-strip {
    position: relative;
    overflow: hidden;
    background: #f9fafb;
    padding: 2rem 0;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
}
.clients-strip h3 {
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #6b7280;
    font-weight: 700;
}
.clients-track {
    display: flex;
    gap: 4rem;
    width: max-content;
    animation: marquee 40s linear infinite;
    will-change: transform;
}
.clients-strip:hover .clients-track {
    animation-play-state: paused;
}
.client-logo {
    flex: 0 0 auto;
    width: 130px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    filter: grayscale(1) opacity(0.55);
    transition: filter 0.35s ease, transform 0.35s ease;
}
.client-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.client-logo:hover {
    filter: grayscale(0) opacity(1);
    transform: scale(1.12);
}
.clients-strip::before,
.clients-strip::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 80px;
    pointer-events: none;
    z-index: 2;
}
.clients-strip::before { left: 0;  background: linear-gradient(to right, #f9fafb, transparent); }
.clients-strip::after  { right: 0; background: linear-gradient(to left,  #f9fafb, transparent); }

@keyframes marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* ============================================
   SHARED CARDS
   ============================================ */
.content-card,
.info-card,
.service-card,
.usp-card,
.foundation-card,
.fast-answer-card {
    background: #fff;
    border-radius: 1rem;
    border: 1px solid #f1f1f1;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
    position: relative;
    overflow: hidden;
    height: 100%;
}
.content-card { padding: 2rem; }
.info-card,
.service-card,
.foundation-card,
.fast-answer-card,
.usp-card { padding: 2rem 1.75rem; }

.content-card:hover,
.info-card:hover,
.service-card:hover,
.usp-card:hover,
.foundation-card:hover,
.fast-answer-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.10);
}

/* Top accent animation */
.service-card::after,
.foundation-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--brand-orange), var(--brand-grey));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}
.service-card:hover::after,
.foundation-card:hover::before { transform: scaleX(1); }

/* Left accent animation */
.info-card::before,
.fast-answer-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 4px;
    height: 100%;
    background: var(--brand-orange);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.4s ease;
}
.info-card:hover::before,
.fast-answer-card:hover::before { transform: scaleY(1); }

/* Icon tiles */
.info-card .info-icon,
.service-card .icon-wrap,
.usp-card .icon-box,
.foundation-card .f-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(192,57,43,0.15), rgba(192,57,43,0.05));
    color: var(--brand-orange);
    margin-bottom: 1.25rem;
    transition: background 0.35s ease, color 0.35s ease, transform 0.35s ease;
}
.service-card .icon-wrap,
.foundation-card .f-icon { width: 56px; height: 56px; }

.info-card:hover .info-icon,
.service-card:hover .icon-wrap,
.usp-card:hover .icon-box,
.foundation-card:hover .f-icon {
    background: var(--brand-orange);
    color: #fff;
    transform: scale(1.08) rotate(-4deg);
}

/* Card headings */
.info-card h3,
.service-card h3,
.usp-card h3,
.foundation-card h3 {
    font-size: 1.15rem;
    font-weight: 800;
    color: #111;
    margin-bottom: 0.6rem;
}
.foundation-card h3 { font-size: 1.2rem; }

/* Card body text */
.info-card p,
.info-card address,
.service-card p,
.usp-card p,
.foundation-card p,
.content-card p {
    color: #4b5563;
    font-size: 0.95rem;
    line-height: 1.65;
    font-style: normal;
}

.info-card a {
    color: var(--brand-orange);
    font-weight: 600;
    transition: color 0.2s ease;
}
.info-card a:hover {
    color: #a5301f;
    text-decoration: underline;
}

/* ============================================
   ABOUT: FOUNDATIONS (asymmetric layout)
   ============================================ */
.foundation-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
@media (min-width: 900px) {
    .foundation-layout {
        grid-template-columns: 1.15fr 1fr;
        gap: 2rem;
    }
}

.foundation-feature {
    position: relative;
    background: linear-gradient(135deg, #1f2937, #111827);
    color: #fff;
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    isolation: isolate;
    min-height: 100%;
    display: flex;
}
.foundation-feature-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(circle at top right, rgba(192, 57, 43, 0.4), transparent 60%),
        radial-gradient(circle at bottom left, rgba(192, 57, 43, 0.15), transparent 50%);
    pointer-events: none;
}
.foundation-feature-body {
    padding: 2.5rem 2.25rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.foundation-feature .f-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    margin-bottom: 1.25rem;
    transition: background 0.35s ease, transform 0.35s ease;
}
.foundation-feature:hover .f-icon {
    background: var(--brand-orange);
    transform: scale(1.08) rotate(-4deg);
}
.foundation-feature .tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #fca39a;
    margin-bottom: 0.65rem;
}
.foundation-feature h3 {
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: #fff;
}
.foundation-feature p {
    color: #d1d5db;
    font-size: 0.95rem;
    line-height: 1.7;
}

.foundation-stack {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
.foundation-mini {
    background: #fff;
    border-radius: 1rem;
    border: 1px solid #f1f1f1;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    padding: 1.75rem;
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
    position: relative;
    overflow: hidden;
    flex: 1;
}
.foundation-mini::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 4px;
    height: 100%;
    background: var(--brand-orange);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.4s ease;
}
.foundation-mini:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.10);
    border-color: transparent;
}
.foundation-mini:hover::before { transform: scaleY(1); }
.foundation-mini .f-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(192,57,43,0.15), rgba(192,57,43,0.05));
    color: var(--brand-orange);
    transition: background 0.35s ease, color 0.35s ease, transform 0.35s ease;
}
.foundation-mini:hover .f-icon {
    background: var(--brand-orange);
    color: #fff;
    transform: scale(1.08) rotate(-4deg);
}
.foundation-mini .mini-body h3 {
    font-size: 1.15rem;
    font-weight: 800;
    color: #111;
    margin-bottom: 0.4rem;
}
.foundation-mini .mini-body p {
    color: #4b5563;
    font-size: 0.93rem;
    line-height: 1.65;
}

@media (max-width: 640px) {
    .foundation-feature-body { padding: 2rem 1.5rem; }
    .foundation-feature h3 { font-size: 1.3rem; }
    .foundation-mini { flex-direction: column; padding: 1.5rem; }
}

/* ============================================
   ABOUT: SPECIALIZATION PILLS
   ============================================ */

   /* industry cards grid */
.industry-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}
@media (min-width: 640px) {
    .industry-grid { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
}
@media (min-width: 1024px) {
    .industry-grid { grid-template-columns: repeat(4, 1fr); }
}

.industry-card {
    background: #fff;
    border: 1px solid #f1f1f1;
    border-radius: 1rem;
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.75rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: default;
}

/* Animated orange bottom strip on hover */
.industry-card::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--brand-orange);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s ease;
}

.industry-card:hover {
    transform: translateY(-5px);
    border-color: transparent;
    box-shadow: 0 14px 30px rgba(192, 57, 43, 0.12);
}
.industry-card:hover::after {
    transform: scaleX(1);
}

.industry-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(192, 57, 43, 0.12), rgba(192, 57, 43, 0.04));
    color: var(--brand-orange);
    transition: background 0.35s ease, color 0.35s ease, transform 0.35s ease;
}

.industry-card:hover .industry-icon {
    background: var(--brand-orange);
    color: #fff;
    transform: scale(1.08) rotate(-4deg);
}

.industry-label {
    font-size: 0.9rem;
    font-weight: 700;
    color: #111;
    line-height: 1.35;
    transition: color 0.3s ease;
}
.industry-card:hover .industry-label {
    color: var(--brand-orange);
}

@media (max-width: 480px) {
    .industry-card { padding: 1.25rem 0.75rem; }
    .industry-icon { width: 44px; height: 44px; }
    .industry-label { font-size: 0.82rem; }
}

/* ============================================
   ABOUT: WHY-CARDS
   ============================================ */
.why-card {
    background: #fff;
    border-radius: 0.75rem;
    padding: 1.25rem 1.5rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid #f1f1f1;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.why-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}
.why-card .check {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--brand-orange);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ============================================
   ABOUT: ORIENTATION LIST
   ============================================ */
.orient-list li {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
    color: #374151;
    line-height: 1.6;
}
.orient-list li svg {
    flex-shrink: 0;
    margin-top: 0.35rem;
    color: var(--brand-orange);
}

/* ============================================
   ABOUT: MOTO BANNER
   ============================================ */
.moto-banner {
    background: linear-gradient(135deg, #1f2937, #111827);
    color: #fff;
    border-radius: 1.25rem;
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
    position: relative;
    overflow: hidden;
}
.moto-banner::before {
    content: "";
    position: absolute;
    top: -60px; right: -60px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(192,57,43,0.35), transparent 70%);
    pointer-events: none;
}
.moto-banner h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}
.moto-banner .moto-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    text-align: left;
    max-width: 900px;
    margin: 0 auto;
}
@media (min-width: 768px) {
    .moto-banner .moto-grid { grid-template-columns: repeat(2, 1fr); }
}
.moto-banner .moto-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.6rem;
    transition: background 0.3s ease, transform 0.3s ease;
}
.moto-banner .moto-item:hover {
    background: rgba(192, 57, 43, 0.2);
    transform: translateY(-2px);
}
.moto-banner .moto-item svg {
    color: var(--brand-orange);
    flex-shrink: 0;
    margin-top: 0.15rem;
}
.moto-banner .moto-item span {
    color: #e5e7eb;
    font-size: 0.92rem;
    font-weight: 500;
    line-height: 1.55;
}

/* ============================================
   SERVICES: COMPLIANCE LIST
   ============================================ */
.compliance-list li {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    padding: 0.65rem 0;
    border-bottom: 1px dashed #e5e7eb;
    color: #374151;
    font-size: 0.95rem;
}
.compliance-list li:last-child { border-bottom: none; }
.compliance-list li svg {
    flex-shrink: 0;
    margin-top: 0.2rem;
    color: var(--brand-orange);
}

.headhunt-img {
    border-radius: 1.25rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    width: 100%;
    height: 420px;
    object-fit: cover;
}
@media (max-width: 768px) {
    .headhunt-img { height: 280px; }
}
.quote-card {
    background: linear-gradient(135deg, #fff8f6, #ffffff);
    border-left: 4px solid var(--brand-orange);
    border-radius: 0.75rem;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
    color: #374151;
    font-style: italic;
    line-height: 1.7;
}

/* ============================================
   CONTACT: MAP + FORM
   ============================================ */
.map-wrapper {
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.10);
    border: 1px solid #f1f1f1;
    background: #fff;
    line-height: 0;
    height: 100%;
    min-height: 520px;
}
.map-wrapper iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 520px;
    border: 0;
}
@media (max-width: 1024px) {
    .map-wrapper,
    .map-wrapper iframe { min-height: 400px; }
}

.contact-form-panel {
    background: #fff;
    border-radius: 1rem;
    padding: 2rem;
    border: 1px solid #f1f1f1;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.07);
    position: relative;
    overflow: hidden;
    height: 100%;
}
.contact-form-panel::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--brand-orange), var(--brand-grey));
}
.contact-form-panel h2 {
    font-size: 1.6rem;
    font-weight: 800;
    color: #111;
    margin-bottom: 0.35rem;
}
.contact-form-panel .subhead {
    color: #6b7280;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

/* Form field animation */
.form-field {
    opacity: 0;
    transform: translateY(12px);
    animation: fieldIn 0.5s ease-out forwards;
}
.form-field:nth-child(1) { animation-delay: 0.05s; }
.form-field:nth-child(2) { animation-delay: 0.15s; }
.form-field:nth-child(3) { animation-delay: 0.25s; }
.form-field:nth-child(4) { animation-delay: 0.35s; }
.form-field:nth-child(5) { animation-delay: 0.45s; }

@keyframes fieldIn {
    to { opacity: 1; transform: translateY(0); }
}

.contact-form-panel label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.35rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.contact-form-panel input,
.contact-form-panel textarea {
    background: #fafafa;
    border: 1.5px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    color: #111;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.contact-form-panel input:focus,
.contact-form-panel textarea:focus {
    background: #fff;
    border-color: var(--brand-orange);
    box-shadow: 0 0 0 4px rgba(192, 57, 43, 0.12);
}
.contact-form-panel textarea {
    resize: vertical;
    min-height: 130px;
}

.submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.9rem 1.5rem;
    border-radius: 0.5rem;
    background: var(--brand-orange);
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.02em;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 6px 18px rgba(192, 57, 43, 0.28);
}
.submit-btn:hover {
    background: #a5301f;
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(192, 57, 43, 0.4);
}
.submit-btn:disabled {
    background: #c97d72;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

#form-response > div {
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    animation: fieldIn 0.4s ease-out forwards;
}
#form-response .success { background: #ecfdf5; color: #065f46; }
#form-response .error   { background: #fef2f2; color: #991b1b; }

/* ============================================
   HOME: STATS STRIP (used inside hero)
   ============================================ */
.stat-strip {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 1.5rem;
}
@media (min-width: 768px) {
    .stat-strip { grid-template-columns: repeat(4, 1fr); }
}
.stat-strip .stat strong {
    display: block;
    font-size: 2.2rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}
.stat-strip .stat span {
    display: block;
    font-size: 0.8rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.35rem;
}

/* ============================================
   HOME: SPLIT SECTIONS
   ============================================ */
.split-section {
    display: flex;
    align-items: center;
    gap: 3rem;
}
@media (max-width: 1024px) {
    .split-section { flex-direction: column; gap: 2rem; }
}
.split-img {
    border-radius: 1.25rem;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    width: 100%;
    height: 400px;
    object-fit: cover;
}
.split-text { flex: 1; }
.split-text h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: #111;
    margin-bottom: 1rem;
    line-height: 1.2;
}
.split-text p {
    color: #4b5563;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

/* ============================================
   HOME: URGENCY BANNER
   ============================================ */
.urgency-banner {
    background: linear-gradient(135deg, #fff8f6, #ffffff);
    border: 1px dashed var(--brand-orange);
    border-radius: 1rem;
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: 0 6px 24px rgba(192,57,43,0.06);
}
.urgency-banner h3 {
    font-size: 2rem;
    font-weight: 800;
    color: #111;
    margin-bottom: 0.75rem;
}
.urgency-banner p {
    color: #6b7280;
    max-width: 600px;
    margin: 0 auto 1.5rem;
    font-size: 1.05rem;
}

/* ============================================
   HOME: FAST-ANSWER CARDS
   ============================================ */
.fast-answers {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
@media (min-width: 768px) {
    .fast-answers { grid-template-columns: repeat(3, 1fr); }
}

.fast-answer-card .step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-orange), #a5301f);
    color: #fff;
    font-weight: 800;
    font-size: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 6px 16px rgba(192, 57, 43, 0.25);
    transition: transform 0.35s ease;
}
.fast-answer-card:hover .step-number {
    transform: rotate(-8deg) scale(1.08);
}
.fast-answer-card h3 {
    font-size: 1.15rem;
    font-weight: 800;
    color: #111;
    margin-bottom: 0.75rem;
    line-height: 1.35;
}
.fast-answer-card p {
    color: #4b5563;
    font-size: 0.95rem;
    line-height: 1.65;
    margin-bottom: 1.25rem;
}
.fast-answer-card .mini-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.fast-answer-card .mini-list span {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    color: #374151;
    font-size: 0.88rem;
    font-weight: 600;
}
.fast-answer-card .mini-list svg {
    flex-shrink: 0;
    margin-top: 0.1rem;
    color: var(--brand-orange);
}
.fast-answer-card .tagline {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px dashed #e5e7eb;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--brand-orange);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* ============================================
   REDUCED MOTION (last so it wins)
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    .animate-on-scroll,
    .animate-stagger > *,
    .form-field,
    body {
        animation: none !important;
        transition: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
    .clients-track { animation: none; }
    .hero-slide { transition: none; }
    .hero-slide .hero-content > * {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    .scroll-to-top {
        transition: opacity 0.2s ease, visibility 0.2s ease;
        transform: none !important;
    }
}

/* ============================================
   JOBS PAGE
   ============================================ */

/* Hero (reuses shared hero shape) */
.jobs-hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 380px;
    background-size: cover;
    background-position: center;
    color: #fff;
    isolation: isolate;
}
.jobs-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(120deg, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.55) 60%, rgba(0,0,0,0.3) 100%);
}
.jobs-hero h1 {
    font-size: 3rem;
    line-height: 1.15;
    margin-bottom: 0.75rem;
}
@media (max-width: 768px) {
    .jobs-hero { min-height: 300px; }
    .jobs-hero h1 { font-size: 2rem; }
}

/* Job search bar inside hero */
.jobs-search {
    max-width: 640px;
    margin-top: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    padding: 0.4rem 0.4rem 0.4rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.jobs-search input {
    flex: 1;
    background: transparent;
    border: none;
    color: #fff;
    padding: 0.5rem 0;
    font-size: 0.95rem;
    outline: none;
    box-shadow: none;
}
.jobs-search input::placeholder { color: rgba(255, 255, 255, 0.6); }
.jobs-search input:focus { box-shadow: none; }
.jobs-search button {
    background: var(--brand-orange);
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 0.6rem 1.25rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.2s ease;
}
.jobs-search button:hover {
    background: #a5301f;
    transform: translateY(-1px);
}

/* Why-join cards (reuses .usp-card base) */
.join-card {
    background: #fff;
    border-radius: 1rem;
    border: 1px solid #f1f1f1;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    padding: 2rem 1.75rem;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    height: 100%;
}
.join-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.09);
}
.join-card .icon-tile {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(192,57,43,0.15), rgba(192,57,43,0.05));
    color: var(--brand-orange);
    margin-bottom: 1.25rem;
    transition: background 0.35s ease, color 0.35s ease, transform 0.35s ease;
}
.join-card:hover .icon-tile {
    background: var(--brand-orange);
    color: #fff;
    transform: scale(1.08) rotate(-4deg);
}
.join-card h3 {
    font-size: 1.15rem;
    font-weight: 800;
    color: #111;
    margin-bottom: 0.5rem;
}
.join-card p {
    color: #6b7280;
    font-size: 0.95rem;
    line-height: 1.65;
}

/* Job listing card */
.job-card {
    background: #fff;
    border-radius: 1rem;
    border: 1px solid #f1f1f1;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    padding: 1.75rem 1.75rem 1.5rem;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    height: 100%;
}
.job-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 4px;
    height: 100%;
    background: var(--brand-orange);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.35s ease;
}
.job-card:hover {
    transform: translateY(-4px);
    border-color: transparent;
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.10);
}
.job-card:hover::before {
    transform: scaleY(1);
}

.job-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: #111;
    line-height: 1.35;
    transition: color 0.25s ease;
}
.job-card:hover .job-title { color: var(--brand-orange); }

.job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: #6b7280;
}
.job-meta .tag {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.65rem;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 9999px;
    font-weight: 600;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.job-card:hover .job-meta .tag {
    background: #fff5f2;
    border-color: #fca39a;
    color: var(--brand-orange);
}

.job-desc {
    color: #4b5563;
    font-size: 0.93rem;
    line-height: 1.6;
    flex: 1;
}

.job-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px dashed #e5e7eb;
    margin-top: 0.5rem;
}
.job-posted {
    font-size: 0.8rem;
    color: #9ca3af;
    font-weight: 500;
}
.job-apply {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    background: var(--brand-orange);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: background 0.25s ease, gap 0.25s ease;
}
.job-apply:hover {
    background: #a5301f;
    gap: 0.75rem;
}

/* Step process */
.apply-steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    counter-reset: step;
}
@media (min-width: 768px) {
    .apply-steps { grid-template-columns: repeat(4, 1fr); }
}
.apply-step {
    background: #fff;
    border-radius: 1rem;
    border: 1px solid #f1f1f1;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    padding: 1.75rem 1.25rem;
    text-align: center;
    position: relative;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.apply-step:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.09);
}
.apply-step::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--brand-orange);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1rem;
    box-shadow: 0 6px 16px rgba(192, 57, 43, 0.25);
}
.apply-step h4 {
    font-size: 1rem;
    font-weight: 800;
    color: #111;
    margin-top: 1rem;
    margin-bottom: 0.4rem;
}
.apply-step p {
    color: #6b7280;
    font-size: 0.88rem;
    line-height: 1.6;
}

/* Small hero-style CTA banner */
.jobs-cta {
    background: linear-gradient(135deg, #1f2937, #111827);
    color: #fff;
    border-radius: 1.25rem;
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    align-items: center;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}
@media (min-width: 768px) {
    .jobs-cta {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}
.jobs-cta h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
}
.jobs-cta p {
    color: #d1d5db;
    font-size: 0.95rem;
}
.jobs-cta .btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    background: var(--brand-orange);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.25s ease, transform 0.2s ease;
    white-space: nowrap;
}
.jobs-cta .btn:hover {
    background: #a5301f;
    transform: translateY(-2px);
}