/* ==========================================================================
   NF CONSTRUCTION LLC - CORE DESIGN SYSTEM & STYLESHEET
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

/* --------------------------------------------------------------------------
   0. RESET & ROOT SETUP
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}


/* Global Poppins Font Apply Everywhere */
html,
body,
button,
input,
select,
textarea,
a,
p,
span,
div,
li,
label,
small,
strong,
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Poppins", sans-serif;
}

:root {
    /* Brand Colors */
    --color-navy: #071420;
    --color-brand-blue: #1F4E9B;
    --color-electric-blue: #2D6CDF;
    --color-concrete: #F2F4F5;
    --color-steel: #5E6670;
    --color-orange: #2D6CDF;

    /* Semantic Variables */
    --color-bg-dark: #071420;
    --color-bg-light: #ffffff;
    --color-text-dark: #071420;
    --color-text-light: #ffffff;
    --color-text-muted: #5E6670;
    --color-border-light: rgba(255, 255, 255, 0.1);
    --color-border-dark: rgba(0, 0, 0, 0.1);

    /* Fonts */
    --font-heading: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-body: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

    /* Transitions */
    --transition-smooth: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    --transition-fast: all 0.2s ease;

    /* Layout Spacing */
    --container-max-width: 1280px;
    --header-height: 90px;
    --header-height-scroll: 76px;
}

html {
    scroll-behavior: initial;
    /* Lenis handles smooth scroll */
    font-size: 16px;
    background-color: var(--color-navy);
    color: var(--color-text-light);
    font-family: var(--font-body);
}

body {
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
   
}

/* --- STICKY FOOTER REVEAL LOGIC --- */
main {
    position: relative;
    z-index: 1;
    background-color: var(--color-navy);
    /* Base color to ensure footer is covered */
}

/* --------------------------------------------------------------------------
   1. TYPOGRAPHY & LAYOUT UTILITIES
   -------------------------------------------------------------------------- */
.container {
    width: 100%;
    margin-right: auto;
    margin-left: auto;
    padding-right: 2rem;
    padding-left: 2rem;
    max-width: var(--container-max-width);
}

.font-heading {
    font-family: var(--font-heading);
    letter-spacing: -0.02em;
    font-weight: 700;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    line-height: 1.15;
    color: inherit;
}

p {
    font-family: var(--font-body);
    font-weight: 400;
    color: var(--color-text-muted);
}

/* Text Colors */
.text-navy {
    color: var(--color-navy) !important;
}

.text-white {
    color: #ffffff !important;
}

.text-steel {
    color: var(--color-steel) !important;
}

.text-steel-light {
    color: #A0AAB5 !important;
}

.text-orange {
    color: var(--color-orange) !important;
}

.text-blue {
    color: var(--color-electric-blue) !important;
}

/* Spacing Helpers */
.mt-4 {
    margin-top: 1rem;
}

.mt-6 {
    margin-top: 1.5rem;
}

.mt-8 {
    margin-top: 2rem;
}

.mt-16 {
    margin-top: 4rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.ml-4 {
    margin-left: 1rem;
}

.w-full {
    width: 100%;
}

.text-center {
    text-align: center;
}

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

/* --------------------------------------------------------------------------
   2. BUTTON STYLES
   -------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 0.05em;
    font-size: 0.875rem;
    height: 52px;
    padding: 0 2rem;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* Primary Button: Navy background with Electric Blue edge highlight */
.btn-primary {
    background-color: var(--color-navy);
    color: #ffffff;
    border: 1px solid var(--color-electric-blue);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-brand-blue);
    z-index: -1;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.btn-primary:hover {
    color: #ffffff;
    border-color: var(--color-electric-blue);
}

.btn-primary:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

/* Secondary Button: Transparent with border */
.btn-secondary {
    background-color: transparent;
    color: var(--color-electric-blue);
    border: 1px solid var(--color-electric-blue);
}

.btn-secondary:hover {
    background-color: var(--color-electric-blue);
    color: #ffffff;
}

.btn-secondary.btn-light {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary.btn-light:hover {
    background-color: #ffffff;
    color: var(--color-navy);
    border-color: #ffffff;
}

/* McCarthy Red Button */
.btn-mccarthy-red {
    background-color: #e51b24;
    /* McCarthy's signature red */
    color: #ffffff;
    border: none;
    text-transform: uppercase;
    font-size: 0.95rem;
    padding: 0 2.5rem;
    height: 54px;
    border-radius: 0;
    /* Square corners */
}

.btn-mccarthy-red:hover {
    background-color: #cc1820;
    color: #ffffff;
}

.btn-sm {
    height: 42px;
    padding: 0 1.25rem;
    font-size: 0.8rem;
    border-radius: 6px;
}

/* Arrow Slide Effect inside Secondary Buttons */
.btn-arrow {
    width: 16px;
    height: 16px;
    margin-left: 8px;
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.btn:hover .btn-arrow {
    transform: translateX(5px);
}

/* --------------------------------------------------------------------------
   3. STICKY HEADER (01)
   -------------------------------------------------------------------------- */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    display: flex;
    align-items: center;
    z-index: 1000;
    transition: var(--transition-smooth);
    background-color: transparent;

}

.main-header.scrolled,
.main-header:hover {
    height: var(--header-height-scroll);
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.header-container {
    width: 100%;
    margin-right: auto;
    margin-left: auto;
    padding-right: 2rem;
    padding-left: 2rem;
    max-width: var(--container-max-width);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-container {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.brand-logo {
    height: 38px;
    transition: var(--transition-smooth);
}

/* PNG Logo image styles */
.brand-logo-img {
    height: 42px;
    width: auto;
    transition: var(--transition-smooth);
    filter: brightness(0) invert(1);
    /* Make black logo white for dark header */
}

.main-header.scrolled .brand-logo-img,
.main-header:hover .brand-logo-img {
    height: 36px;
    filter: none;
}

.main-header.scrolled .brand-logo {
    transform: scale(0.92);
}

/* Footer logo - already on dark background, invert to white */
.footer-logo {
    height: 48px;
    filter: brightness(0) invert(1);
}

/* Nav Menu Styles */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-link {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.95rem;
    text-decoration: none;
    color: #ffffff;
    /* White text as requested */
    position: relative;
    padding: 0.5rem 0;
    transition: var(--transition-fast);
    display: inline-flex;
    align-items: center;
}

.main-header.scrolled .nav-link,
.main-header:hover .nav-link {
    color: #000000;
}

.main-header.scrolled .nav-link:hover,
.main-header.scrolled .nav-link.active,
.main-header:hover .nav-link:hover,
.main-header:hover .nav-link.active {
    color: var(--color-electric-blue);
}

.nav-arrow {
    width: 12px;
    height: 12px;
    margin-left: 6px;
    display: inline-block;
    vertical-align: middle;
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.nav-link:hover .nav-arrow {
    transform: rotate(180deg);
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-electric-blue);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* Hamburger Menu */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1100;
}

.hamburger-line {
    width: 100%;
    height: 2px;
    background-color: #ffffff;
    transition: var(--transition-smooth);
    transform-origin: left;
}

.main-header.scrolled .hamburger-line,
.main-header:hover .hamburger-line {
    background-color: #000000;
}

/* Mobile overlay */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--color-navy);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-100%);
    transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1);
}

.mobile-nav-overlay.active {
    transform: translateY(0);
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.mobile-link {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color 0.3s ease;
}

.mobile-link:hover {
    color: var(--color-electric-blue);
}

/* Active Hamburger Animation */
.hamburger-menu.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg);
}

.hamburger-menu.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg);
}

/* --------------------------------------------------------------------------
   4. PCL-STYLE HERO CAROUSEL SECTION (02)
   -------------------------------------------------------------------------- */
/* Region dropdown styles */
.region-dropdown-container {
    position: relative;
}

.region-dropdown-btn {
    background: transparent;
    border: none;
    color: #A0AAB5;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0.5rem 0;
    transition: var(--transition-fast);
}

.region-dropdown-btn:hover {
    color: #ffffff;
}

.dropdown-arrow {
    width: 14px;
    height: 14px;
    transition: transform 0.3s ease;
}

.region-dropdown-container.active .dropdown-arrow {
    transform: rotate(180deg);
}

.region-dropdown-menu {
    position: absolute;
    top: 120%;
    right: 0;
    background-color: var(--color-navy);
    border: 1px solid var(--color-border-light);
    border-radius: 6px;
    padding: 8px 0;
    width: 180px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
    display: none;
    flex-direction: column;
    z-index: 1050;
    backdrop-filter: blur(10px);
}

.region-dropdown-container.active .region-dropdown-menu {
    display: flex;
}

.region-item {
    padding: 8px 20px;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    color: #A0AAB5;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: var(--transition-fast);
}

.region-item:hover,
.region-item.active {
    color: #ffffff;
    background-color: rgba(45, 108, 223, 0.15);
}

/* Search and Bid Button custom styling */
.search-btn {
    background: transparent;
    border: none;
    color: #A0AAB5;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    transition: var(--transition-fast);
}

.search-btn:hover {
    color: #ffffff;
}

.search-btn svg {
    width: 18px;
    height: 18px;
}

.btn-header {
    border-color: rgba(255, 255, 255, 0.2);
    display: inline-flex;
}

.btn-header:hover {
    border-color: var(--color-electric-blue);
}

/* Fullscreen PCL-style Carousel slider */
.hero-carousel {
    position: relative;
    height: 100vh;
    min-height: 620px;
    width: 100%;
    overflow: hidden;
    padding-top: 0;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    z-index: 1;
    display: flex;
    align-items: center;
    transition: opacity 1.2s cubic-bezier(0.25, 1, 0.5, 1);
}

.carousel-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.carousel-slide .hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
    transform: scale(1.05);
    transition: transform 1.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.carousel-slide.active .hero-bg-image {
    transform: scale(1);
}

.carousel-slide .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(7, 20, 32, 0.8) 0%, rgba(7, 20, 32, 0.3) 60%, rgba(7, 20, 32, 0.1) 100%);
    z-index: 1;
}

/* Video background for video slides */
.hero-bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

/* PCL-style geometric accent shapes */
.hero-geo-accents {
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 100%;
    z-index: 5;
    pointer-events: none;
    overflow: hidden;
}

.geo-triangle {
    position: absolute;
    right: 0;
}

.geo-triangle.geo-orange {
    top: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 280px 400px 0;
    border-color: transparent var(--color-orange) transparent transparent;
    /* Match exact orange/yellow */
    opacity: 0.95;
}

.carousel-slide .hero-container {
    height: 100%;
    display: flex;
    align-items: center;
    padding-top: var(--header-height);
    padding-bottom: 14vh;
    position: relative;
    z-index: 3;
}

.carousel-slide .hero-content {
    max-width: 760px;
    position: relative;
    z-index: 4;
}

/* .carousel-slide .hero-content::before {
    content: '';
    position: absolute;
    left: -160px;
    top: 32px;
    width: 100px;
    height: 3px;
    background-color: var(--color-orange);
} */

@media (max-width: 1200px) {
    .carousel-slide .hero-content::before {
        display: none;
    }
   h1.hero-title.font-heading {
    font-size: 34px;
}
}

/* Animations for slide content on entry */
.eyebrow-container {
    position: relative;
    display: inline-flex;
    align-items: center;
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1) 0.3s;
}

.eyebrow-line {
    position: absolute;
    right: 100%;
    margin-right: 20px;
    width: 100vw;
    height: 2px;
    background-color: var(--color-orange);
    /* Orange line */
}

.carousel-slide .eyebrow {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.85rem;
    color: #ffffff;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    position: relative;
}

.carousel-slide.active .eyebrow-container {
    opacity: 1;
    transform: translateX(0);
}

.carousel-slide .hero-title {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 800;
    color: #ffffff;
    line-height: 1.05;
    margin-bottom: 2.25rem;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1) 0.5s;
    letter-spacing: -0.02em;
}

.carousel-slide.active .hero-title {
    opacity: 1;
    transform: translateY(0);
}

.hero-ctas {
    margin-top: 2.5rem;
}

/* Redesigned Glass Blur CTA button for slider */
.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.5rem 1.25rem;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    color: #ffffff;
    text-decoration: none;
    letter-spacing: 0.05em;
    text-transform: capitalize;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 4px;
    background: transparent;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    position: relative;
    z-index: 1;
}

.hero-btn:hover {
    background: rgba(242, 101, 34, 0.1);
    /* Subtle orange tint */
    border-color: var(--color-orange);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transform: translateY(-2px);
    /* Lift effect */
    box-shadow: 0 4px 15px rgba(242, 101, 34, 0.2);
}

.hero-btn .btn-arrow {
    width: 16px;
    height: 16px;
    color: var(--color-orange);
    /* Make the SVG arrow orange */
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.hero-btn:hover .btn-arrow {
    transform: translateX(5px);
}

.carousel-slide.active .hero-btn {
    opacity: 1;
    transform: translateY(0);
}

/* Dark variant of hero button for light backgrounds */
.hero-btn.dark-variant {
    color: var(--color-navy);
    border-color: rgba(7, 20, 32, 0.4);
}

.hero-btn.dark-variant:hover {
    background: rgba(242, 101, 34, 0.1);
    border-color: var(--color-orange);
    box-shadow: 0 4px 15px rgba(242, 101, 34, 0.2);
}

.hero-btn.dark-variant .btn-arrow {
    color: var(--color-orange);
}

/* Indicators progress wrapper */
.carousel-indicators-wrapper {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 10;
    background: linear-gradient(to top, rgba(7, 20, 32, 0.85) 0%, transparent 100%);
    padding-bottom: 2.5rem;
}

/* PCL-style bottom bar: indicators + pause button side by side */
.carousel-bottom-bar {
    display: flex;
    align-items: flex-end;
    gap: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 1.25rem;
}

.carousel-indicators {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    /* Spacing between tabs */
}

.indicator-tab {
    background: transparent;
    border: none;
    cursor: pointer;
    display: inline-flex;
    flex-direction: column;
    text-align: left;
    padding: 0;
    transition: var(--transition-fast);
    outline: none;
    position: relative;
    padding-top: 14px;
    /* Space for the active border */
}

.indicator-progress-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background-color: var(--color-orange);
    /* Yellow active line */
}

.indicator-label {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.02em;
    transition: var(--transition-fast);
}

.indicator-tab.active .indicator-label,
.indicator-tab:hover .indicator-label {
    color: #ffffff;
    font-weight: 700;
}

.mobile-pagination {
    display: none;
    /* hidden on desktop */
    font-family: var(--font-heading);
    color: #ffffff;
    font-size: 1.25rem;
    letter-spacing: 0.1em;
}

/* Circular pause/play button — using SVG for ring */
.carousel-pause-btn {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    background: transparent;
    border: none;
    color: #ffffff;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin-bottom: 2px;
}

.pause-play-icons {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.progress-ring {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    transform: rotate(-90deg);
    /* Start from top */
}

.progress-ring-circle {
    transition: stroke-dashoffset 0.1s linear;
}

/* Toggle icons via CSS class */
.carousel-pause-btn .play-icon {
    display: none;
}

.carousel-pause-btn.paused .pause-icon {
    display: none;
}

.carousel-pause-btn.paused .play-icon {
    display: block;
}


/* --------------------------------------------------------------------------
   6. MCCARTHY-STYLE ABOUT SECTION (04)
   -------------------------------------------------------------------------- */

/* Outer section wrapper */
.mccarthy-about {
    background-color: #f0eeec;
    /* McCarthy's warm grey */
    overflow: hidden;
}

/* ── TOP BAND: heading + mosaic ── */
.mccarthy-hero-band {
    padding: 5rem 0 0 0;
}

.mccarthy-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: start;
    max-width: 1680px;
    margin: 0 auto;
    padding: 0 3.5rem;
}

/* Left block */
.mccarthy-left {
    padding-top: 2rem;
    padding-bottom: 4rem;
    max-width: 680px;
}

/* Giant bold heading – McCarthy uses ~66px on desktop */
.mccarthy-big-heading {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4.5vw, 4.125rem);
    /* ~66px */
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    color: #1a1714;
    /* McCarthy's near-black */
    margin: 0 0 2rem 0;
}

.mccarthy-big-heading strong {
    display: block;
}

/* Sub-paragraph */
.mccarthy-sub {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #4a4540;
    max-width: 580px;
    margin-bottom: 2rem;
}

/* Buttons row */
.mccarthy-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0 0;
}

.mccarthy-btns li {
    margin: 0;
}

/* ── RIGHT: Full mosaic grid ── */
.mccarthy-right {
    /* Bleed off right edge – matches McCarthy */
    margin-right: -3.5rem;
    padding-left: 2rem;
    align-self: stretch;
    display: flex;
    align-items: flex-start;
}

.mccarthy-mosaic-full {
    display: grid;
    grid-template-columns: 240px 240px;
    grid-template-rows: 226px 132px 226px;
    /* Reduced to 3 rows to remove last images */
    gap: 8px;
    flex-shrink: 0;
}

.mc-cell {
    overflow: hidden;
    background-color: #c8c4bf;
    position: relative;
    width: 100%;
    height: 100%;
}

.mc-cell img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    transform: scale(1.05);
}

.mc-cell:hover img {
    transform: scale(1.1);
}

/* Row 1 Grid areas */
.mc-tall-left {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
}

.mc-top-right {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
}

.mc-bot-right {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
}

/* Row 2 */
.mc-wide-pano {
    grid-column: 1 / 3;
    grid-row: 3 / 4;
    width: 549px;
    /* Overhangs the grid */
}

/* Who We Are Content Section */
.who-we-are-content {
    padding: 6rem 0;
    background-color: var(--color-bg-light);
}

.mccarthy-heading-dark {
    color: var(--color-navy);
    margin-top: 1rem;
    margin-bottom: 2rem;
    font-size: clamp(2rem, 3.5vw, 3rem);
}

.who-we-are-text {
    max-width: 800px;
}

.who-we-are-text p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--color-text-muted);
}

.who-we-are-text p:last-of-type {
    margin-bottom: 2rem;
}


/* --------------------------------------------------------------------------
   8. SOLUTIONS/SERVICES SECTION (06) - EllisDon Style
   -------------------------------------------------------------------------- */
.solutions.module {
    padding: 8rem 0 6rem;
    background-color: #ffffff;
    /* Typically white or very light gray */
    color: var(--color-navy);
    overflow: hidden;
}

.solutions .content-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 4rem;
    gap: 3rem;
}

.solutions .heading-label-wrapper {
    flex: 1 1 500px;
}

.solutions .heading-label {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1.5rem;
    color: #111111;
    /* EllisDon blue */
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}

.solutions .heading-label .copy {
    color: #111111;
}

.solutions .svgCode {
    display: flex;
    align-items: center;
    color: #111111;
}

.solutions .module-heading {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    line-height: 1.1;
    font-family: var(--font-heading);
    font-weight: 400;
    color: #111111;
}

.solutions .module-heading .word {
    color: #111111 !important;
}

.solutions .module-heading .word.strong {
    font-weight: 700;
}

.solutions .animated-copy {
    flex: 1 1 400px;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #1f2937;
    margin: 0;
    max-width: 500px;
}

/* Swiper Carousel & Cards */
.services-swiper {
    padding-bottom: 2rem;
    overflow: visible;
}

.solution-card {
    display: block;
    position: relative;
    height: 450px;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: #ffffff;
    background-color: #000;
    transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.55s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: 0 10px 24px rgba(7, 20, 32, 0.12);
}

/* Using defined width for Swiper slides to keep consistent sizes */
.swiper-slide {
    width: 360px;
}

@media (max-width: 768px) {
    .swiper-slide {
        width: 85vw;
        max-width: 320px;
    }
}

.solution-card .card-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.solution-card .card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}

.solution-card .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.2) 50%, rgba(0, 0, 0, 0) 100%);
    transition: opacity 0.55s ease, background 0.55s ease;
}

.solution-card .content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
    transform: translateY(0);
    transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.solution-card .icon {
    position: absolute;
    top: 2rem;
    right: 2rem;
    width: 44px;
    height: 44px;
    background-color: #0032A0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.45s ease, color 0.45s ease;
    box-shadow: 0 8px 22px rgba(0, 50, 160, 0.28);
}

.solution-card .icon svg {
    width: 20px;
    height: 20px;
}

/* Hide EllisDon specific SVG rects that form a cross and make our own simple cross or use theirs */
.solution-card .icon svg rect.background {
    display: none;
    /* We use the wrapper background instead */
}

.solution-card .heading {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
    transition: color 0.45s ease, transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.solution-card .description-container {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transform: translateY(10px);
    transition: max-height 0.55s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.45s ease, transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.solution-card .description {
    font-size: 0.95rem;
    line-height: 1.5;
    color: rgba(236, 244, 255, 0.95);
    margin: 0;
    padding-top: 0.5rem;
}

/* Hover States */
.solution-card:hover .card-image {
    transform: scale(1.08);
}

.solution-card:hover .overlay {
    background: linear-gradient(to top, rgba(0, 50, 160, 0.9) 0%, rgba(0, 50, 160, 0.4) 60%, rgba(0, 0, 0, 0.1) 100%);
}

.solution-card:hover .description-container {
    max-height: 190px;
    opacity: 1;
    transform: translateY(0);
}

.solution-card:hover .heading {
    transform: translateY(-4px);
}

.solution-card:hover .icon {
    background-color: #ffffff;
    color: #0032A0;
    transform: rotate(90deg) scale(1.03);
}

.solution-card:hover .icon svg rect.stroke {
    fill: #ffffff;
}

.solution-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 22px 48px rgba(7, 20, 32, 0.2);
}

/* Custom Pagination Controls */
.solutions .pagination {
    display: grid;
    grid-template-columns: 32px minmax(90px, auto) 32px;
    align-items: center;
    justify-content: center;
    column-gap: 14px;
    margin-top: 3rem;
    background-color: #E6ECF5;
    border-radius: 40px;
    padding: 8px 10px;
    position: static;
    left: auto;
    transform: none;
    width: fit-content;
    margin: 3rem auto 0;
}

.swiper-button-prev-custom,
.swiper-button-next-custom {
    background: #ffffff;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.2s ease, background-color 0.2s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.swiper-button-prev-custom:hover {
    transform: translateX(-4px);
    background-color: #f8f9fa;
}

.swiper-button-next-custom:hover {
    transform: translateX(4px);
    background-color: #f8f9fa;
}

.swiper-pagination-custom {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    /* Gap between individual dots */
    position: relative;
    min-width: 90px;
    margin-bottom: -18px;
}

.swiper-pagination-custom .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background-color: #B0C4DE;
    opacity: 1;
    margin: 0 !important;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.swiper-pagination-custom .swiper-pagination-bullet-active {
    width: 10px;
    height: 10px;
    background-color: #0032a0;
}

/* --------------------------------------------------------------------------
   9. REVIEWS LOOP SECTION (07)
   -------------------------------------------------------------------------- */
.reviews-loop-section {
    width: 100%;
    padding: 5.5rem 0 6rem;
    background-color: #040404;
    overflow: hidden;
}

.reviews-head {
    text-align: center;
    margin-bottom: 2.1rem;
}

.reviews-kicker {
    color: #9fb7ff;
    font-family: var(--font-heading);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.reviews-title {
    margin-top: 0.7rem;
    color: #ffffff;
    font-size: clamp(1.7rem, 3.4vw, 3rem);
    line-height: 1.07;
    text-transform: uppercase;
}

.reviews-marquee {
    width: 100%;
    overflow: hidden;
}

.reviews-track {
    display: flex;
    width: max-content;
    gap: 1.25rem;
    padding: 0;
    animation: reviews-scroll 34s linear infinite;
}

.review-card {
    width: clamp(290px, 34vw, 470px);
    background-color: #ffffff;
    color: #111111;
    border-radius: 14px;
    border: 1px solid #d9dee7;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.28);
    padding: 1.7rem 1.55rem;
    min-height: 370px;
    display: flex;
    flex-direction: column;
}

.review-top {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 1rem;
}

.review-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1f4e9b, #2d6cdf);
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.review-name {
    font-size: 1.35rem;
    line-height: 1.1;
    color: #0f141a;
}

.review-role {
    margin-top: 0.2rem;
    font-size: 0.85rem;
    color: #66707e;
}

.review-text {
    color: #131821;
    font-size: 1.02rem;
    line-height: 1.72;
    margin-bottom: 1rem;
}

.review-footer {
    margin-top: auto;
    padding-top: 0.78rem;
    border-top: 1px solid #e6e9ef;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
}

.review-meta {
    display: flex;
    align-items: center;
    gap: 0.56rem;
    white-space: nowrap;
}

.review-google-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.02em;
    font-size: 1rem;
    font-family: var(--font-body);
    font-weight: 700;
    letter-spacing: 0;
}

.g-blue {
    color: #4285f4;
}

.g-red {
    color: #db4437;
}

.g-yellow {
    color: #f4b400;
}

.g-green {
    color: #0f9d58;
}

.review-stars {
    color: #f4b400;
    letter-spacing: 0.02em;
    font-size: 1.05rem;
}

.review-verified {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    color: #5f6978;
    font-size: 0.82rem;
    font-weight: 600;
    white-space: nowrap;
}

.review-tick {
    width: 17px;
    height: 17px;
    border-radius: 50%;
    background-color: #34a853;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.66rem;
    line-height: 1;
}

@keyframes reviews-scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(calc(-50% - 0.625rem));
    }
}

@media (max-width: 900px) {
    .reviews-loop-section {
        padding: 4.7rem 0 5rem;
    }

    .reviews-title {
        font-size: clamp(1.45rem, 5vw, 2.2rem);
    }

    .review-card {
        width: clamp(280px, 68vw, 420px);
        min-height: 345px;
    }
}

@media (max-width: 680px) {
    .reviews-head {
        margin-bottom: 1.5rem;
    }

    .reviews-track {
        gap: 0.9rem;
        animation-duration: 28s;
    }

    .review-card {
        width: 86vw;
        min-height: 320px;
        padding: 1.25rem 1.08rem;
        border-radius: 12px;
    }

    .review-name {
        font-size: 1.14rem;
    }

    .review-text {
        font-size: 0.93rem;
        line-height: 1.6;
    }

    .review-verified {
        font-size: 0.78rem;
    }
}

@media (max-width: 420px) {
    .reviews-track {
        gap: 0.7rem;
    }

    .review-card {
        width: 92vw;
        min-height: 308px;
        padding: 1.05rem 0.95rem;
    }

    .review-name {
        font-size: 1.02rem;
    }

    .review-role {
        font-size: 0.78rem;
    }

    .review-google-logo {
        font-size: 0.88rem;
    }

    .review-stars {
        font-size: 0.92rem;
    }
}

/* Proof / Trust Blocks */
.trust-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    border-top: 1px solid rgba(7, 20, 32, 0.1);
    padding-top: 5rem;
}

.trust-block {
    position: relative;
}

.trust-title {
    font-size: 1.35rem;
    color: var(--color-navy);
    margin-bottom: 1rem;
}

.trust-text {
    font-size: 0.95rem;
    color: #5E6670;
}

/* --------------------------------------------------------------------------
   10. CLOSING CTA SECTION (08)
   -------------------------------------------------------------------------- */
.closing-cta-section {
    background-color: var(--color-navy);
    position: relative;
    padding: 10rem 0;
    overflow: hidden;
}

/* Subtle architectural blueprint grid overlay */
.closing-cta-blueprint-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(45, 108, 223, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(45, 108, 223, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: 1;
}

.closing-cta-container {
    position: relative;
    z-index: 2;
}

.closing-cta-panel {
    max-width: 860px;
    margin: 0 auto;
    text-align: center;
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.closing-cta-panel.visible {
    transform: translateY(0);
    opacity: 1;
}

.closing-cta-heading {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    line-height: 1.2;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

.closing-cta-subtext {
    font-size: 1.1rem;
    margin-bottom: 3rem;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}

.closing-cta-actions {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

/* --------------------------------------------------------------------------
   11. CONTACT & INQUIRY SECTION
   -------------------------------------------------------------------------- */
.contact-section {
    background-color: #040d15;
    padding: 8rem 0;
    border-top: 1px solid var(--color-border-dark);
}

.contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 6rem;
    align-items: flex-start;
}

.contact-heading {
    font-size: clamp(1.75rem, 2.5vw, 2.25rem);
    margin-top: 1rem;
    margin-bottom: 1.5rem;
}

.contact-text {
    font-size: 1.05rem;
    margin-bottom: 3rem;
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-item {
    display: flex;
    flex-direction: column;
}

.info-label {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.info-value {
    font-size: 1.15rem;
    font-weight: 500;
}

/* Project Bid Request Form Styles */
.contact-form-container {
    background-color: var(--color-navy);
    padding: 3rem;
    border-radius: 8px;
    border: 1px solid var(--color-border-dark);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
}

.form-title {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.project-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    transition: opacity 0.3s ease;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    color: #A0AAB5;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-group input,
.form-group select,
.form-group textarea {
    background-color: rgba(7, 20, 32, 0.7);
    border: 1px solid var(--color-border-dark);
    padding: 0.85rem 1rem;
    border-radius: 6px;
    color: #ffffff;
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-electric-blue);
    box-shadow: 0 0 0 3px rgba(45, 108, 223, 0.15);
}

/* Form success message */
.form-success-message {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-navy);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    text-align: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.form-success-message.visible {
    opacity: 1;
    pointer-events: auto;
}

.success-icon {
    width: 60px;
    height: 60px;
    background-color: var(--color-electric-blue);
    color: #ffffff;
    font-size: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

/* --------------------------------------------------------------------------
   PRE-FOOTER CTA (DESIGN-BUILD)
   -------------------------------------------------------------------------- */
.pre-footer-cta {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.pre-footer-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background-color: var(--color-navy);
}

.cta-bg-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.24);
    will-change: transform;
}

.cta-overlay {
    position: absolute;
    inset: 0;
    height: 100%;
    width: 100%;
    background: linear-gradient(to bottom, var(--color-navy) 0%, rgba(7, 20, 32, 0.7) 35%, transparent 100%);
    z-index: 10;
}

.cta-svg-pattern {
    position: absolute;
    inset: 0;
    z-index: 5;
    opacity: 0.4;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    transform: translate(-10%, -20%);
    color: var(--color-electric-blue);
    will-change: transform;
}

.cta-svg-pattern svg {
    width: 150vw;
    max-width: 900px;
    height: auto;
}

.pre-footer-content {
    position: relative;
    z-index: 20;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    width: 100%;
}

.pre-footer-text-wrapper {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cta-subtitle {
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-concrete);
    margin-bottom: 1rem;
}

.cta-subtitle .text-brand-blue {
    color: var(--color-electric-blue);
}

.cta-heading {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.1;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1.5rem;
    text-align: center;
    text-transform: uppercase;
}

.cta-description {
    font-size: 1.125rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto;
}

.cta-button-wrapper {
    margin-top: 2.5rem;
    display: flex;
    justify-content: center;
}

.btn-pre-footer {
    display: inline-flex;
    align-items: center;
    background-color: var(--color-brand-blue);
    color: #ffffff;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 1rem 2rem;
    text-decoration: none;
    transition: padding 0.3s ease, background-color 0.3s ease;
}

.btn-pre-footer:hover {
    padding-right: 2rem;
    background-color: var(--color-electric-blue);
}

.btn-arrow {
    display: inline-flex;
    width: 0;
    overflow: hidden;
    transition: width 0.3s ease, margin-left 0.3s ease;
}

.btn-pre-footer:hover .btn-arrow {
    width: 15px;
    margin-left: 0.75rem;
}

.btn-arrow svg {
    width: 15px;
    height: 15px;
}

/* --------------------------------------------------------------------------
   12. TURNER-STYLE FOOTER (09)
   -------------------------------------------------------------------------- */
.turner-footer {
    background-color: #0052A5;
    color: #ffffff;
    font-family: var(--font-body);

    /* Sticky Reveal Effect */
    position: sticky;
    bottom: 0;
    z-index: 0;
}

/* --- TOP ROW: Logo + Nav + Socials --- */
.footer-top-row {
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-top-inner {
    display: grid;
    grid-template-columns: 20% 60% 20%;
    align-items: stretch;
}

.footer-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    padding: 2.5rem 2rem 2.5rem 0;
}

.footer-brand-logo {
    height: 40px;
    width: auto;
    filter: brightness(0) invert(1);
    transition: opacity 0.3s ease;
}

.footer-brand:hover .footer-brand-logo {
    opacity: 0.85;
}

/* Footer Navigation */
.footer-nav {
    display: flex;
    align-items: center;
    gap: 2.25rem;
    flex-wrap: wrap;
    justify-content: center;
    border-left: 1px solid rgba(255, 255, 255, 0.15);
    border-right: 1px solid rgba(255, 255, 255, 0.15);
    padding: 2.5rem;
}

.footer-nav-link {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.9rem;
    color: #ffffff;
    text-decoration: none;
    letter-spacing: 0.01em;
    position: relative;
    padding: 0.25rem 0;
    transition: color 0.3s ease, opacity 0.3s ease;
}

.footer-nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #ffffff;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

.footer-nav-link:hover {
    opacity: 0.85;
}

.footer-nav-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Footer Socials */
.footer-socials {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.75rem;
    padding: 2.5rem 0 2.5rem 2rem;
}

.footer-social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-social-icon svg {
    width: 16px;
    height: 16px;
}

.footer-social-icon:hover {
    background-color: #ffffff;
    color: #0052A5;
    border-color: #ffffff;
    transform: translateY(-2px);
}

/* --- DIVIDER (Removed via HTML, overriding CSS just in case) --- */
.footer-divider {
    display: none;
}

/* --- BOTTOM ROW: Copyright + Statement + Legal --- */
.footer-bottom-row {
    /* Padding is applied to grid items */
}

.footer-bottom-inner {
    display: grid;
    grid-template-columns: 20% 60% 20%;
    align-items: stretch;
}

.footer-copyright {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2.5rem 2rem 2.5rem 0;
}

.footer-copyright p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    margin: 0;
}

.footer-statement {
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-left: 1px solid rgba(255, 255, 255, 0.15);
    border-right: 1px solid rgba(255, 255, 255, 0.15);
    padding: 2.5rem;
}

.footer-statement p {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.65;
    margin: 0 0 0.5rem 0;
}

.footer-statement-link {
    font-size: 0.8rem;
    color: #ffffff;
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.footer-statement-link:hover {
    opacity: 0.8;
}

.footer-legal {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: flex-start;
    padding: 2.5rem 0 2.5rem 2rem;
}

.footer-legal-link {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-legal-link:hover {
    color: #ffffff;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.footer-legal-sep {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.8rem;
}

/* ==========================================================================
   12. FEATURED PROJECTS / WHAT WE DID SECTION
   ========================================================================== */
.projects-section {
    position: relative;
    padding: 7rem 0;
    background: linear-gradient(180deg, var(--color-navy) 0%, #0b1824 72%, var(--color-concrete) 72%, var(--color-concrete) 100%);
    color: #ffffff;
    overflow: hidden;
}

.projects-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(180deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 92px 92px;
    opacity: 0.28;
    pointer-events: none;
}

.proj-enterprise-shell {
    position: relative;
    z-index: 1;
}

.proj-header-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.72fr);
    gap: 4rem;
    align-items: end;
    margin-bottom: 2.5rem;
}

.proj-header-copy {
    max-width: 760px;
}

.proj-eyebrow {
    display: block;
    color: var(--color-orange);
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0;
    margin-bottom: 1rem;
}

.proj-main-heading {
    color: #ffffff;
    font-size: 4.25rem;
    line-height: 0.98;
    margin: 0;
    max-width: 720px;
    text-transform: uppercase;
}

.proj-header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
}

.proj-header-desc {
    margin: 0;
    color: #A0AAB5;
    font-size: 1rem;
    line-height: 1.75;
    max-width: 560px;
}

.proj-view-all-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    min-height: 48px;
    padding: 0.9rem 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 4px;
    color: #ffffff;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0;
    transition: background-color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.proj-view-all-btn svg {
    width: 18px;
    height: 18px;
}

.proj-view-all-btn:hover {
    background-color: var(--color-orange);
    border-color: var(--color-orange);
    transform: translateY(-2px);
}

.proj-proof-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    margin-bottom: 3rem;
}

.proj-proof-item {
    min-height: 112px;
    padding: 1.35rem 1.5rem;
    border-right: 1px solid rgba(255, 255, 255, 0.14);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.45rem;
}

.proj-proof-item:last-child {
    border-right: 0;
}

.proj-proof-item span {
    color: var(--color-orange);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0;
}

.proj-proof-item strong {
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 1.35rem;
    line-height: 1.1;
    text-transform: uppercase;
}

.proj-showcase {
    display: grid;
    grid-template-columns: minmax(0, 1.34fr) minmax(390px, 0.78fr);
    min-height: 720px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    overflow: hidden;
    background-color: var(--color-navy);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.34);
}

.proj-image-panel {
    position: relative;
    min-height: 720px;
    overflow: hidden;
    background-color: #040d15;
}

.proj-img-stack,
.proj-img-slide {
    position: absolute;
    inset: 0;
}

.proj-img-slide {
    opacity: 0;
    transform: scale(1.035);
    transition: opacity 0.45s ease, transform 0.9s ease;
}

.proj-img-slide.active {
    opacity: 1;
    transform: scale(1);
}

.proj-img-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.proj-img-gradient {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(7, 20, 32, 0.72) 0%, rgba(7, 20, 32, 0.18) 48%, rgba(7, 20, 32, 0.08) 100%),
        linear-gradient(0deg, rgba(7, 20, 32, 0.96) 0%, rgba(7, 20, 32, 0.28) 52%, rgba(7, 20, 32, 0.06) 100%);
    z-index: 1;
}

.proj-feature-copy {
    position: absolute;
    left: 2.25rem;
    right: 2.25rem;
    bottom: 2.25rem;
    max-width: 620px;
    z-index: 2;
}

.proj-feature-label {
    display: block;
    margin-bottom: 0.75rem;
    color: var(--color-orange);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0;
}

.proj-feature-title {
    margin: 0 0 0.85rem;
    color: #ffffff;
    font-size: 2.55rem;
    line-height: 1.02;
    text-transform: uppercase;
}

.proj-feature-desc {
    margin: 0;
    max-width: 560px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 1rem;
    line-height: 1.7;
}

.proj-img-counter {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 4px;
    background-color: rgba(7, 20, 32, 0.72);
    color: #ffffff;
    font-weight: 700;
}

.proj-counter-current {
    color: var(--color-orange);
}

.proj-counter-slash,
.proj-counter-total {
    color: rgba(255, 255, 255, 0.7);
}

.proj-list-panel {
    display: flex;
    flex-direction: column;
    background-color: #ffffff;
    color: var(--color-navy);
}

.proj-list-heading {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 1.6rem 1.75rem;
    border-bottom: 1px solid rgba(7, 20, 32, 0.12);
    background-color: #F8FAFC;
}

.proj-list-heading span {
    color: var(--color-brand-blue);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0;
}

.proj-list-heading strong {
    color: var(--color-navy);
    font-family: var(--font-heading);
    font-size: 1.35rem;
    line-height: 1.1;
    text-transform: uppercase;
}

.proj-card {
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
    flex: 1;
    display: grid;
    grid-template-columns: 3rem minmax(0, 1fr) 42px;
    gap: 1rem;
    align-items: center;
    min-height: 116px;
    padding: 1.2rem 1.35rem;
    border: 0;
    border-bottom: 1px solid rgba(7, 20, 32, 0.1);
    background-color: #ffffff;
    color: inherit;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.25s ease, box-shadow 0.25s ease;
}

.proj-card:last-child {
    border-bottom: 0;
}

.proj-card:hover,
.proj-card:focus-visible,
.proj-card.active {
    background-color: var(--color-concrete);
}

.proj-card.active {
    box-shadow: inset 4px 0 0 var(--color-orange);
}

.proj-card:focus-visible {
    outline: 2px solid var(--color-electric-blue);
    outline-offset: -2px;
}

.proj-card-index {
    align-self: start;
    color: var(--color-brand-blue);
    font-family: var(--font-heading);
    font-size: 1.35rem;
    line-height: 1;
}

.proj-card-body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.proj-card-cat {
    color: var(--color-orange);
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0;
}

.proj-card-title {
    color: var(--color-navy);
    font-size: 1.28rem;
    line-height: 1.05;
    text-transform: uppercase;
}

.proj-card-text {
    color: #4b5563;
    font-size: 0.88rem;
    line-height: 1.45;
}

.proj-card-meta {
    color: var(--color-brand-blue);
    font-size: 0.78rem;
    font-weight: 700;
}

.proj-card-arrow {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(7, 20, 32, 0.12);
    color: var(--color-navy);
    background-color: #ffffff;
    transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.proj-card-arrow svg {
    width: 18px;
    height: 18px;
}

.proj-card:hover .proj-card-arrow,
.proj-card:focus-visible .proj-card-arrow,
.proj-card.active .proj-card-arrow {
    background-color: var(--color-orange);
    border-color: var(--color-orange);
    color: #ffffff;
}

.proj-trust-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-top: 2rem;
    border: 1px solid rgba(7, 20, 32, 0.12);
    border-radius: 8px;
    overflow: hidden;
    background-color: #ffffff;
    color: var(--color-navy);
    box-shadow: 0 20px 45px rgba(7, 20, 32, 0.12);
}

.proj-trust-item {
    min-height: 120px;
    padding: 1.4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.55rem;
    border-right: 1px solid rgba(7, 20, 32, 0.1);
}

.proj-trust-item:last-child {
    border-right: 0;
}

.proj-trust-item span {
    color: var(--color-orange);
    font-family: var(--font-heading);
    font-size: 1.1rem;
}

.proj-trust-item strong {
    color: var(--color-navy);
    font-size: 1rem;
    line-height: 1.35;
}

.proj-legacy-showcase[hidden] {
    display: none !important;
}

@media (max-width: 1180px) {
    .proj-header-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .proj-main-heading {
        font-size: 3.45rem;
    }

    .proj-showcase {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .proj-image-panel {
        min-height: 560px;
    }

    .proj-list-panel {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .proj-list-heading {
        grid-column: 1 / -1;
    }

    .proj-card {
        min-height: 150px;
        border-right: 1px solid rgba(7, 20, 32, 0.1);
    }

    .proj-card:nth-child(odd) {
        border-right: 0;
    }
}

@media (max-width: 900px) {
    .projects-section {
        padding: 5rem 0;
        background: linear-gradient(180deg, var(--color-navy) 0%, #0b1824 78%, var(--color-concrete) 78%, var(--color-concrete) 100%);
    }

    .proj-main-heading {
        font-size: 2.85rem;
    }

    .proj-proof-row,
    .proj-trust-strip {
        grid-template-columns: repeat(2, 1fr);
    }

    .proj-proof-item:nth-child(2),
    .proj-trust-item:nth-child(2) {
        border-right: 0;
    }

    .proj-proof-item:nth-child(-n+2),
    .proj-trust-item:nth-child(-n+2) {
        border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    }

    .proj-trust-item:nth-child(-n+2) {
        border-bottom-color: rgba(7, 20, 32, 0.1);
    }
}

@media (max-width: 767px) {
    .projects-section {
        padding: 3.25rem 0 3.6rem;
    }

    .proj-header-grid {
        gap: 1rem;
        margin-bottom: 1.6rem;
    }

    .proj-main-heading {
        font-size: 2rem;
        line-height: 1.05;
    }

    .proj-header-desc {
        font-size: 0.9rem;
        line-height: 1.58;
    }

    .proj-proof-row {
        margin-bottom: 1.6rem;
    }

    .proj-proof-row,
    .proj-trust-strip {
        grid-template-columns: 1fr;
    }

    .proj-proof-item,
    .proj-trust-item,
    .proj-proof-item:nth-child(2),
    .proj-trust-item:nth-child(2) {
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    }

    .proj-trust-item,
    .proj-trust-item:nth-child(2) {
        border-bottom-color: rgba(7, 20, 32, 0.1);
    }

    .proj-proof-item:last-child,
    .proj-trust-item:last-child {
        border-bottom: 0;
    }

    .proj-proof-item,
    .proj-trust-item {
        min-height: 86px;
        padding: 1rem 1.05rem;
        gap: 0.35rem;
    }

    .proj-proof-item strong {
        font-size: 1.1rem;
    }

    .proj-showcase {
        border-radius: 6px;
    }

    .proj-image-panel {
        min-height: 320px;
    }

    .proj-feature-copy {
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
    }

    .proj-feature-title {
        font-size: 1.5rem;
        margin-bottom: 0.55rem;
    }

    .proj-feature-desc {
        font-size: 0.82rem;
        line-height: 1.42;
    }

    .proj-list-panel {
        grid-template-columns: 1fr;
    }

    .proj-list-heading {
        padding: 1rem 1.05rem;
    }

    .proj-list-heading strong {
        font-size: 1.1rem;
    }

    .proj-card,
    .proj-card:nth-child(odd) {
        grid-template-columns: 2.5rem minmax(0, 1fr);
        min-height: auto;
        border-right: 0;
        padding: 0.95rem 1.05rem;
    }

    .proj-card-arrow {
        display: none;
    }

    .proj-card-index {
        font-size: 1.05rem;
    }

    .proj-card-title {
        font-size: 1rem;
    }

    .proj-card-text {
        font-size: 0.82rem;
        line-height: 1.38;
    }

    .proj-trust-strip {
        margin-top: 1.25rem;
        border-radius: 6px;
    }
}

@media (max-width: 460px) {
    .proj-main-heading {
        font-size: 1.7rem;
    }

    .proj-image-panel {
        min-height: 280px;
    }

    .proj-img-counter {
        top: 0.75rem;
        left: 0.75rem;
        padding: 0.5rem 0.6rem;
        font-size: 0.72rem;
    }

    .proj-feature-title {
        font-size: 1.25rem;
    }

    .proj-feature-desc {
        font-size: 0.76rem;
    }
}

/* Legacy project grid kept for older markup, currently hidden in the page. */
.projects-section .content-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 3.5rem;
    gap: 2rem;
}

.projects-section .heading-label-wrapper {
    flex: 1 1 500px;
}

.projects-section .heading-label {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1.5rem;
    color: var(--color-orange);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}

.projects-section .svgCode {
    display: flex;
    align-items: center;
}

.projects-section .module-heading {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    line-height: 1.1;
    font-family: var(--font-heading);
    color: #ffffff;
}

.projects-section .animated-copy {
    flex: 1 1 400px;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #A0AAB5;
    margin: 0;
    max-width: 500px;
}

/* Filter controls */
.projects-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3.5rem;
}

.filter-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #A0AAB5;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.6rem 1.5rem;
    border-radius: 30px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.filter-btn:hover {
    color: #ffffff;
    border-color: #ffffff;
}

.filter-btn.active {
    background-color: var(--color-orange);
    color: #ffffff;
    border-color: var(--color-orange);
    box-shadow: 0 4px 15px rgba(242, 101, 34, 0.3);
}

/* Bento Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    grid-auto-rows: minmax(320px, auto);
}

/* Individual project cards */
.project-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background-color: var(--color-navy);
    cursor: pointer;
    display: block;
    text-decoration: none;
    height: 100%;
    min-height: 350px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.project-card-image-wrap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.project-card-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Gradient Overlay */
.project-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(7, 20, 32, 0.95) 0%, rgba(7, 20, 32, 0.4) 50%, rgba(7, 20, 32, 0.1) 100%);
    transition: background 0.4s ease, opacity 0.4s ease;
    z-index: 1;
}

.project-card:hover .project-card-overlay {
    background: linear-gradient(to top, rgba(7, 20, 32, 0.95) 0%, rgba(242, 101, 34, 0.65) 60%, rgba(242, 101, 34, 0.25) 100%);
}

.project-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2.5rem;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
}

.project-card-cat {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-orange);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
    transition: color 0.4s ease;
}

.project-card:hover .project-card-cat {
    color: #ffffff;
}

.project-card-title {
    font-family: var(--font-heading);
    font-size: 1.85rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.15;
    margin-bottom: 0.75rem;
    transition: transform 0.4s ease;
}

.project-card-meta {
    display: flex;
    gap: 1.5rem;
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: #A0AAB5;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 0.75rem;
    margin-top: 0.5rem;
    opacity: 0;
    height: 0;
    overflow: hidden;
    transform: translateY(15px);
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.project-card:hover .project-card-meta {
    opacity: 1;
    height: auto;
    transform: translateY(0);
}

.project-card:hover .project-card-image-wrap img {
    transform: scale(1.06);
}

/* Bento Grid positions for desktop */
@media (min-width: 1024px) {
    .project-card.card-large-1 {
        grid-column: span 2;
        grid-row: span 1;
    }

    .project-card.card-tall {
        grid-column: span 1;
        grid-row: span 2;
        min-height: 724px;
        /* Matches two rows + gap (350 + 350 + 24) */
    }

    .project-card.card-medium-1 {
        grid-column: span 1;
        grid-row: span 1;
    }

    .project-card.card-medium-2 {
        grid-column: span 1;
        grid-row: span 1;
    }

    .project-card.card-full {
        grid-column: span 3;
        grid-row: span 1;
        min-height: 400px;
    }
}

/* Tablet Layout */
@media (max-width: 1023px) and (min-width: 768px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .project-card.card-large-1 {
        grid-column: span 2;
    }

    .project-card.card-tall {
        grid-column: span 1;
        grid-row: span 1;
        min-height: 350px;
    }

    .project-card.card-full {
        grid-column: span 2;
    }
}

/* Mobile Layout */
@media (max-width: 767px) {
    .proj-legacy-showcase {
        padding: 5rem 0;
    }

    .projects-section .content-wrapper {
        margin-bottom: 2.5rem;
    }

    .projects-filters {
        margin-bottom: 2.5rem;
        gap: 0.5rem;
    }

    .filter-btn {
        padding: 0.5rem 1.25rem;
        font-size: 0.75rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .project-card {
        min-height: 300px;
    }

    .project-card-content {
        padding: 1.5rem;
    }

    .project-card-title {
        font-size: 1.5rem;
    }
}

/* ==========================================================================
   13. PROACTIVE SOLUTIONS SECTION
   ========================================================================== */
.proactive-section {
    position: relative;
    overflow: hidden;
    padding: 5rem 0 5.8rem;
    background-color: #efefee;
    color: var(--color-navy);
}

.proactive-inner {
    position: relative;
    z-index: 1;
    max-width: 1420px;
}

.proactive-header {
    max-width: 1120px;
    margin: 0 auto 1.5rem;
}

.proactive-heading-wrap {
    max-width: 790px;
    margin-bottom: 0.82rem;
}

.proactive-kicker {
    display: inline-flex;
    align-items: center;
    margin-bottom: 0.56rem;
    color: #003aa8;
    font-size: 0.66rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.09em;
}

.proactive-title {
    margin: 0;
    max-width: 760px;
    color: var(--color-navy);
    font-size: 3.35rem;
    line-height: 0.98;
    letter-spacing: 0.015em;
    text-transform: uppercase;
}

.proactive-copy {
    margin: 0;
    max-width: 730px;
    color: #4f4a43;
    font-size: 1.1rem;
    line-height: 1.56;
}
.services-header.text-center .proactive-copy {
    margin: 0;
    margin: 0 auto;
}
.proactive-slider {
    position: relative;
    max-width: 1520px;
    min-height: 620px;
    margin: 0 auto;
    padding: 2.45rem 3.5rem 2.35rem;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 0;
    isolation: isolate;
    overflow: hidden;
}

.proactive-carousel-bg {
    position: absolute;
    inset: 0;
    border-radius: 2px;
    overflow: hidden;
    z-index: 0;
}

.proactive-carousel-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(239, 239, 238, 0.82) 0%, rgba(239, 239, 238, 0.04) 18%, rgba(239, 239, 238, 0.04) 82%, rgba(239, 239, 238, 0.82) 100%),
        linear-gradient(180deg, rgba(10, 12, 18, 0.12) 0%, rgba(10, 12, 18, 0.42) 100%);
}

.proactive-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.35s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    transform: scale(1.03);
}

.proactive-card {
    position: relative;
    overflow: hidden;
    background-color: #0f1d2d;
    border-radius: 2px;
    box-shadow: 0 18px 42px rgba(7, 20, 32, 0.36);
    isolation: isolate;
    transition: transform 0.35s ease, opacity 0.35s ease;
}

.proactive-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.35s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    transform: scale(1.04);
}

.proactive-card-left,
.proactive-card-right {
    width: min(31vw, 450px);
    height: 520px;
    z-index: 2;
}

.proactive-card-left {
    margin-right: -3.25rem;
}

.proactive-card-right {
    margin-left: -3.25rem;
}

.proactive-card-main {
    display: grid;
    grid-template-rows: minmax(0, 1fr) 215px;
    width: min(40vw, 560px);
    min-width: 440px;
    height: 590px;
    background-color: #29251f;
    z-index: 4;
}

.proactive-main-media {
    position: relative;
    min-height: 0;
    overflow: hidden;
}

.proactive-main-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.proactive-card-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(7, 20, 32, 0.1) 0%, rgba(7, 20, 32, 0.74) 100%);
    z-index: 1;
}

.proactive-main-shade {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.02) 35%, rgba(0, 0, 0, 0.22) 100%);
}

.proactive-side-label {
    position: absolute;
    left: 1.6rem;
    right: 1.6rem;
    bottom: 1.6rem;
    z-index: 2;
    margin: 0;
    color: #ffffff;
    font-size: 0.86rem;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: 0.01em;
    text-transform: uppercase;
}

.proactive-info-panel {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 1.45rem 2rem 1.55rem;
    background-color: #29251f;
    color: #ffffff;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    transition: opacity 0.24s ease, transform 0.24s ease;
    opacity: 1 !important;
}

.proactive-active-label {
    display: inline-flex;
    align-items: center;
    margin-bottom: 0.62rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.76rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.045em;
    text-transform: uppercase;
}

.proactive-active-title {
    margin: 0;
    color: #ffffff;
    max-width: 95%;
    font-size: 1.72rem;
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: 0.01em;
    text-transform: uppercase;
}

.proactive-active-copy {
    display: none;
}

.proactive-active-divider {
    display: block;
    width: 100%;
    height: 1px;
    margin: auto 0 1rem;
    background-color: rgba(255, 255, 255, 0.16);
}

.proactive-active-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 0;
    padding: 0.78rem 1.25rem;
    min-width: 126px;
    border: 0;
    background-color: #0052A5;
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 0.86rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.proactive-active-link:hover,
.proactive-active-link:focus-visible {
    background-color: var(--color-electric-blue);
    color: #ffffff;
}

.proactive-nav {
    position: absolute;
    top: 50%;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: clamp(42px, 3.4vw, 56px);
    height: clamp(42px, 3.4vw, 56px);
    border: 0;
    border-radius: 0;
    background-color: #0052A5;
    color: #ffffff;
    cursor: pointer;
    transform: translateY(-50%);
    transition: background-color 0.2s ease;
}

.proactive-nav:hover,
.proactive-nav:focus-visible {
    background-color: var(--color-electric-blue);
    color: #ffffff;
}

.proactive-prev {
    left: calc(3.5rem - (clamp(42px, 3.4vw, 56px) / 2));
}

.proactive-next {
    right: calc(3.5rem - (clamp(42px, 3.4vw, 56px) / 2));
}

.proactive-nav svg {
    width: clamp(18px, 1.3vw, 24px);
    height: clamp(18px, 1.3vw, 24px);
}

.proactive-slider.is-transitioning.is-next .proactive-main-img {
    opacity: 0;
    transform: translateX(-1.4%) scale(1.06);
}

.proactive-slider.is-transitioning.is-prev .proactive-main-img {
    opacity: 0;
    transform: translateX(1.4%) scale(1.06);
}

.proactive-slider.is-transitioning.is-next .proactive-left-img {
    opacity: 0;
    transform: translateX(-4%) scale(1.08);
}

.proactive-slider.is-transitioning.is-next .proactive-right-img {
    opacity: 0;
    transform: translateX(4%) scale(1.08);
}

.proactive-slider.is-transitioning.is-prev .proactive-left-img {
    opacity: 0;
    transform: translateX(4%) scale(1.08);
}

.proactive-slider.is-transitioning.is-prev .proactive-right-img {
    opacity: 0;
    transform: translateX(-4%) scale(1.08);
}

.proactive-slider.is-transitioning .proactive-bg-img {
    opacity: 0;
    transform: scale(1.08);
}

.proactive-slider.is-transitioning .proactive-main-img,
.proactive-slider.is-transitioning .proactive-left-img,
.proactive-slider.is-transitioning .proactive-right-img {
    opacity: 0;
}

.proactive-slider.is-transitioning .proactive-info-panel {
    opacity: 0;
    transform: translateY(12px);
}

@media (max-width: 1300px) {
    .proactive-inner {
        max-width: 1280px;
    }

    .proactive-slider {
        min-height: 590px;
        padding: 2.15rem 2.4rem 2.15rem;
    }

    .proactive-card-left,
    .proactive-card-right {
        width: min(29vw, 350px);
        height: 480px;
    }

    .proactive-card-main {
        width: min(41vw, 520px);
        min-width: 410px;
        height: 555px;
    }

    .proactive-prev {
        left: calc(2.4rem - (clamp(42px, 3.4vw, 56px) / 2));
    }

    .proactive-next {
        right: calc(2.4rem - (clamp(42px, 3.4vw, 56px) / 2));
    }
}

@media (max-width: 1024px) {
    .proactive-slider {
        min-height: 530px;
        padding: 2.1rem 2rem 1.9rem;
    }

    .proactive-card-left,
    .proactive-card-right {
        width: min(25vw, 250px);
        height: 400px;
    }

    .proactive-card-main {
        width: 46vw;
        min-width: 360px;
        height: 505px;
        grid-template-rows: minmax(0, 1fr) 195px;
    }

    .proactive-info-panel {
        padding: 1.2rem 1.4rem 1.3rem;
    }

    .proactive-active-title {
        font-size: 1.55rem;
    }

    .proactive-active-link {
        margin-top: 0;
        padding: 0.68rem 1.08rem;
        min-width: 120px;
        font-size: 0.74rem;
    }
}

@media (max-width: 860px) {
    .proactive-section {
        padding: 3.9rem 0 3.8rem;
    }

    .proactive-inner {
        max-width: 100%;
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .proactive-header {
        margin-bottom: 1.1rem;
    }

    .proactive-title {
        font-size: 2.05rem;
    }

    .proactive-slider {
        min-height: 0;
        padding: 0;
    }

    .proactive-carousel-bg {
        border-radius: 8px;
    }

    .proactive-card-left,
    .proactive-card-right {
        display: none;
    }

    .proactive-card-main {
        width: 100%;
        min-width: 0;
        max-width: none;
        height: auto;
        aspect-ratio: auto;
        grid-template-rows: auto auto;
        border-radius: 8px;
        margin: 0;
    }

    .proactive-main-media {
        aspect-ratio: 16 / 11;
    }

    .proactive-info-panel {
        padding: 1rem 1rem 1.05rem;
    }

    .proactive-active-label {
        font-size: 0.6rem;
        margin-bottom: 0.4rem;
    }

    .proactive-active-title {
        font-size: 1.15rem;
        max-width: 100%;
    }

    .proactive-active-link {
        margin-top: 0;
        padding: 0.62rem 0.95rem;
        min-width: 108px;
        font-size: 0.67rem;
    }

    .proactive-nav {
        top: 43%;
        width: 36px;
        height: 36px;
    }

    .proactive-prev {
        left: 8px;
    }

    .proactive-next {
        right: 8px;
    }

    .proactive-nav svg {
        width: 16px;
        height: 16px;
    }
}

@media (max-width: 600px) {
    .proactive-title {
        font-size: 1.9rem;
        line-height: 1.06;
    }

    .proactive-copy {
        font-size: 0.82rem;
    }

    .proactive-card-main {
        aspect-ratio: auto;
    }

    .proactive-main-media {
        aspect-ratio: 4 / 3;
    }

    .proactive-info-panel {
        padding: 0.86rem 0.88rem 0.94rem;
    }

    .proactive-active-title {
        font-size: 0.98rem;
    }

    .proactive-active-copy {
        display: none;
    }

    .proactive-nav {
        top: 38%;
        width: 34px;
        height: 34px;
    }

    .proactive-nav svg {
        width: 16px;
        height: 16px;
    }
}

.projects-expertise {
    position: relative;
    min-height: 620px;
    margin: 2.1rem auto 0;
    padding: 2.65rem 0 2.5rem;
    overflow: hidden;
    isolation: isolate;
}

.projects-expertise-bg {
    position: absolute;
    inset: 0 clamp(2.5rem, 7vw, 6.5rem);
    z-index: 0;
    overflow: hidden;
}

.projects-expertise-bg .swiper-wrapper,
.projects-expertise-bg .swiper-slide {
    width: 100% !important;
    max-width: none !important;
    height: 100%;
}

.projects-expertise-bg .swiper-slide {
    position: relative;
    overflow: hidden;
}

.projects-expertise-bg .swiper-slide::after {
    content: none;
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(239, 239, 238, 0.88) 0%, rgba(239, 239, 238, 0.08) 16%, rgba(239, 239, 238, 0.08) 84%, rgba(239, 239, 238, 0.88) 100%),
        linear-gradient(180deg, rgba(8, 12, 18, 0.08) 0%, rgba(8, 12, 18, 0.48) 100%);
}

.projects-expertise-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1.1);
    transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.projects-expertise-bg .swiper-slide-active img {
    transform: scale(1.03);
}

.projects-expertise-stage {
    position: relative;
    z-index: 2;
    max-width: 1460px;
    margin: 0 auto;
    padding: 0 3.8rem;
}

.projects-expertise-swiper {
    overflow: visible;
}

.projects-expertise-swiper .swiper-wrapper {
    align-items: center;
}

.projects-expertise-slide {
    width: min(40vw, 583px) !important;
    max-width: 583px !important;
    opacity: 1 !important;
    visibility: visible !important;
    transition: opacity 0.55s ease;
}

.expertise-card {
    position: relative;
    width: 100%;
    height: 590px;
    overflow: hidden;
    background-color: #29251f;
    box-shadow: none;
    color: #ffffff;
    opacity: 1 !important;
    transform: scale(0.804);
    transform-origin: center;
    transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.projects-expertise-slide.swiper-slide-active .expertise-card {
    transform: scale(1);
    box-shadow: none;
}

.expertise-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1.08);
    transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.projects-expertise-slide.swiper-slide-active .expertise-card-img {
    transform: scale(1.02);
}

.expertise-card-gradient {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: none;
}

.projects-expertise-slide.swiper-slide-active .expertise-card-gradient {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 58%, rgba(0, 0, 0, 0.18) 100%);
}

.expertise-card-content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-height: auto;
    padding: 0 2.1rem 1.15rem;
    justify-content: flex-end;
    transition: min-height 0.45s ease, padding 0.45s ease, background-color 0.45s ease;
}

.projects-expertise-slide.swiper-slide-active .expertise-card-content {
    min-height: 220px;
    padding: 2.15rem 2.45rem 2.05rem;
    background-color: #29251f;
    justify-content: flex-start;
}

.expertise-card-label {
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 1.45rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: 0;
    text-transform: uppercase;
    text-shadow: 0 3px 18px rgba(0, 0, 0, 0.35);
}

.projects-expertise-slide.swiper-slide-active .expertise-card-label {
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.82rem;
    margin-bottom: 0.72rem;
}

.expertise-card-title {
    display: none;
    margin: 0;
    max-width: 96%;
    color: #ffffff;
    font-size: 1.95rem;
    font-weight: 800;
    line-height: 1.06;
    letter-spacing: 0;
    text-transform: uppercase;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.35s ease, max-height 0.35s ease;
}

.projects-expertise-slide.swiper-slide-active .expertise-card-title {
    display: block;
    opacity: 1;
    max-height: 6.5rem;
}

.expertise-card-divider {
    display: none;
    width: 100%;
    height: 1px;
    margin: auto 0 1rem;
    background-color: rgba(255, 255, 255, 0.15);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.projects-expertise-slide.swiper-slide-active .expertise-card-divider {
    display: block;
    opacity: 1;
}

.expertise-card-link {
    display: none;
    align-items: center;
    justify-content: center;
    min-width: 128px;
    padding: 0.84rem 1.18rem;
    background-color: #0052A5;
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 0.86rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0;
    text-transform: uppercase;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease, background-color 0.2s ease;
}

.projects-expertise-slide.swiper-slide-active .expertise-card-link {
    display: inline-flex;
    opacity: 1;
    pointer-events: auto;
}

.expertise-card-link:hover,
.expertise-card-link:focus-visible {
    background-color: var(--color-electric-blue);
    color: #ffffff;
}

.expertise-nav {
    position: absolute;
    top: 50%;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border: 0;
    border-radius: 0;
    background-color: #0052A5;
    color: #ffffff;
    cursor: pointer;
    transform: translateY(-50%);
    transition: background-color 0.2s ease;
}

.expertise-nav:hover,
.expertise-nav:focus-visible {
    background-color: var(--color-electric-blue);
}

.expertise-prev {
    left: 0.9rem;
}

.expertise-next {
    right: 0.9rem;
}

.expertise-nav svg {
    width: 21px;
    height: 21px;
}

.projects-expertise.is-static .projects-expertise-slide:not(:first-child) {
    display: none;
}

.projects-expertise.is-static .projects-expertise-slide:first-child .expertise-card {
    transform: scale(1);
}

.projects-expertise.is-static .projects-expertise-slide:first-child .expertise-card-content {
    min-height: 220px;
    padding: 2.15rem 2.45rem 2.05rem;
    background-color: #29251f;
}

.projects-expertise.is-static .projects-expertise-slide:first-child .expertise-card-title,
.projects-expertise.is-static .projects-expertise-slide:first-child .expertise-card-divider,
.projects-expertise.is-static .projects-expertise-slide:first-child .expertise-card-link {
    opacity: 1;
    max-height: 6.5rem;
    pointer-events: auto;
}

@media (max-width: 1200px) {
    .projects-expertise {
        min-height: 570px;
        padding: 2.2rem 0;
    }

    .projects-expertise-stage {
        padding: 0 3rem;
    }

    .projects-expertise-slide {
        width: min(44vw, 520px) !important;
    }

    .expertise-card {
        height: 540px;
    }

    .expertise-card-title {
        font-size: 1.58rem;
    }
}

@media (max-width: 860px) {
    .projects-expertise {
        min-height: 0;
        margin-top: 1.3rem;
        padding: 0;
    }

    .projects-expertise-bg {
        inset: 0;
    }

    .projects-expertise-stage {
        padding: 0;
    }

    .projects-expertise-slide {
        width: 100% !important;
        max-width: none !important;
    }

    .expertise-card,
    .projects-expertise-slide.swiper-slide-active .expertise-card {
        height: auto;
        min-height: 520px;
        transform: scale(1);
    }

    .expertise-card-img {
        height: 520px;
    }

    .expertise-card-content,
    .projects-expertise-slide.swiper-slide-active .expertise-card-content {
        min-height: 190px;
        padding: 1.25rem 1.1rem 1.15rem;
        background-color: #29251f;
    }

    .expertise-card-title,
    .projects-expertise-slide.swiper-slide-active .expertise-card-title {
        display: block;
        opacity: 1;
        max-height: 7rem;
        font-size: 1.16rem;
    }

    .expertise-card-divider,
    .projects-expertise-slide.swiper-slide-active .expertise-card-divider {
        display: block;
        opacity: 1;
    }

    .expertise-card-link,
    .projects-expertise-slide.swiper-slide-active .expertise-card-link {
        display: inline-flex;
        opacity: 1;
        pointer-events: auto;
        min-width: 112px;
        padding: 0.68rem 0.9rem;
        font-size: 0.72rem;
    }

    .expertise-nav {
        width: 40px;
        height: 40px;
    }

    .expertise-prev {
        left: 0.5rem;
    }

    .expertise-next {
        right: 0.5rem;
    }
}

/* --------------------------------------------------------------------------
   14. RESPONSIVE MEDIA QUERIES
   -------------------------------------------------------------------------- */

@media (max-width: 1200px) {

    .footer-top-inner,
    .footer-bottom-inner {
        grid-template-columns: 22% 56% 22%;
    }

    .footer-nav {
        gap: 1.5rem;
        padding: 2rem 1.4rem;
    }

    .footer-bottom-inner {
        gap: 1rem;
    }

    .footer-statement {
        padding: 2rem 1.4rem;
    }

    .footer-brand,
    .footer-copyright {
        padding-right: 1.2rem;
    }

    .footer-socials,
    .footer-legal {
        padding-left: 1.2rem;
    }
}

@media (max-width: 991px) {
    :root {
        --header-height: 80px;
    }

    .main-header {

        border-bottom: 1px solid #d9d9d940;
    }

    .nav-menu {
        display: none;
    }

    .hamburger-menu {
        display: flex;
    }

    .header-actions .btn {
        display: none;
        /* Hide primary header button on smaller tablets to keep layout clean */
    }

    /* McCarthy about – tablet: stack heading over mosaic */
    .mccarthy-inner {
        grid-template-columns: 1fr;
        padding: 0 2rem;
    }

    .mccarthy-right {
        margin-right: -2rem;
        padding-left: 0;
    }

    .mccarthy-mosaic-full {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 200px 120px 200px;
        /* Reduced for tablet */
        width: 100%;
    }

    .mc-wide-pano {
        width: 100%;
        /* No overhang on tablet */
    }

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

    .process-timeline {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .process-timeline::before {
        display: none;
    }

    .process-step {
        display: flex;
        gap: 2rem;
        align-items: flex-start;
    }

    .step-num {
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .trust-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    /* Pre-footer tablet tuning */
    .pre-footer-cta {
        min-height: 78vh;
        padding-top: 4rem;
        padding-bottom: 4rem;
    }

    .pre-footer-text-wrapper {
        max-width: 620px;
    }

    .cta-heading {
        font-size: clamp(2.1rem, 6.2vw, 3.2rem);
        line-height: 1.06;
    }

    .cta-description {
        font-size: 1rem;
        line-height: 1.55;
        max-width: 520px;
    }

    .btn-pre-footer {
        padding: 1.25rem 2rem;
    }

    /* Footer tablet layout */
    .footer-top-inner,
    .footer-bottom-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand,
    .footer-socials,
    .footer-copyright,
    .footer-legal,
    .footer-nav,
    .footer-statement {
        padding: 1.4rem 1.25rem;
        border: 0;
    }

    .footer-top-inner {
        gap: 0;
    }

    .footer-brand {
        justify-content: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    }

    .footer-nav {
        justify-content: center;
        gap: 0.85rem 1.1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    }

    .footer-nav-link {
        font-size: 0.88rem;
        padding: 0.2rem 0;
    }

    .footer-socials {
        justify-content: center;
    }

    .footer-statement {
        border-top: 1px solid rgba(255, 255, 255, 0.15);
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    }

    .footer-statement p {
        overflow-wrap: anywhere;
    }

    .footer-legal {
        justify-content: center;
        gap: 0.35rem 0.6rem;
    }
}

@media (max-width: 767px) {
    html {
        font-size: 15px;
    }

    .container {
        padding-right: 1.5rem;
        padding-left: 1.5rem;
    }

    p {
        font-size: 0.95rem;
        line-height: 1.62;
    }

    /* Services section mobile */
    .solutions.module {
        padding: 4.2rem 0 3.6rem;
    }

    .solutions .content-wrapper {
        gap: 1.25rem;
        margin-bottom: 2.2rem;
        align-items: flex-start;
    }

    .solutions .heading-label {
        margin-bottom: 0.95rem;
        gap: 0.55rem;
        font-size: 0.72rem;
        color: #111111;
    }

    .solutions .svgCode {
        color: #111111;
    }

    .solutions .module-heading {
        font-size: clamp(1.72rem, 8vw, 2.15rem);
        line-height: 1.02;
        color: #111111;
        max-width: 300px;
    }

    .solutions .animated-copy {
        font-size: 0.86rem;
        line-height: 1.5;
        color: #374151;
        max-width: 100%;
    }

    .services-swiper {
        padding-bottom: 1.25rem;
    }

    .swiper-slide {
        width: 82vw;
        max-width: 320px;
    }

    .solution-card {
        height: 405px;
        border-radius: 8px;
    }

    .solution-card .content {
        padding: 1.3rem;
    }

    .solution-card .icon {
        top: 1.25rem;
        right: 1.25rem;
        width: 40px;
        height: 40px;
    }

    .solution-card .heading {
        font-size: 1.12rem;
        margin-bottom: 0.35rem;
    }

    .solution-card .description {
        font-size: 0.8rem;
        line-height: 1.42;
        color: rgba(236, 244, 255, 0.96);
    }

    .solutions .pagination {
        gap: 16px;
        margin-top: 1.65rem;
        padding: 8px 10px;
    }

    /* McCarthy about – mobile: fully stacked, no bleed */
    .mccarthy-inner {
        grid-template-columns: 1fr;
        padding: 0rem;
    }

    .mccarthy-big-heading {
        font-size: clamp(1.72rem, 8vw, 2.15rem) !important;
    }

    .mccarthy-hero-band {
        padding: 3rem 0 0 0;
    }

    .mccarthy-left {
        padding: 1rem;
        margin-bottom: 40px;
    }

    .mccarthy-right {
        margin-right: -1.5rem;
        padding-left: 0;
        width: calc(100% + 1.5rem);
    }

    .mccarthy-mosaic-full {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 180px 100px 180px;
        /* Reduced for mobile */
        width: 100%;
    }

    .mc-wide-pano {
        width: 100%;
        /* No overhang on mobile */
    }
h3.heading {
    font-size: 20px !important;
}
    .hero-section {
        height: 70vh;
        min-height: 500px;
        max-height: none;
        padding-top: 0;
        padding-bottom: 0;
    }

    .carousel-indicators {
        display: none;
    }

    .mobile-pagination {
        display: block;
    }

    .carousel-bottom-bar {
        justify-content: space-between;
        align-items: center;
        padding-top: 1rem;
    }

    .carousel-pause-btn {
        margin-left: 1rem;
    }

    .hero-geo-accents {
        display: none;
    }

    .hero-badges {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
        margin-top: 4rem;
    }

    /* Removed about-stats-grid */

    /* Pinned section fallback for mobile */
    .dream-build-section {
        min-height: auto;
    }

    .dream-build-pinned {
        position: relative;
        height: auto;
        grid-template-columns: 1fr;
    }

    .dream-build-text-panel {
        padding: 4rem 1.5rem;
        background-color: var(--color-navy);
    }

    .db-text-layer {
        position: relative;
        left: 0;
        right: 0;
        opacity: 1;
        transform: none;
        margin-bottom: 3rem;
    }

    .db-text-layer:last-child {
        margin-bottom: 0;
    }

    .db-headline {
        font-size: 2.25rem;
    }

    #layer-step1 .db-headline {
        color: #ffffff !important;
    }

    .dream-build-image-panel {
        height: 380px;
    }

    .image-rail {
        position: relative;
        height: 100%;
        width: 100%;
        display: flex;
        flex-direction: row;
        transform: none !important;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
    }

    .rail-slide {
        height: 100%;
        width: 100%;
        flex-shrink: 0;
        scroll-snap-align: start;
        padding: 2rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        height: 420px;
        padding: 2rem;
    }

    .contact-form-container {
        padding: 2rem 1.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Pre-footer mobile tuning */
    .pre-footer-cta {
        min-height: 0;
        height: 360px;
        padding-top: 1.35rem;
        padding-bottom: 1.35rem;
        align-items: center;
    }

    .pre-footer-content {
        padding-top: 0;
    }

    .pre-footer-text-wrapper {
        max-width: 360px;
    }

    .cta-subtitle {
        font-size: 0.78rem;
        letter-spacing: 0.08em;
        margin-bottom: 0.7rem;
    }

    .cta-heading {
        font-size: clamp(1.62rem, 8.6vw, 2.15rem);
        line-height: 1.02;
        margin-bottom: 0.72rem;
    }

    .cta-description {
        font-size: 0.86rem;
        line-height: 1.42;
        max-width: 290px;
    }

    .cta-description br {
        display: none;
    }

    .cta-button-wrapper {
        margin-top: 0.72rem;
    }

    .btn-pre-footer {
        padding: 0.85rem 1.2rem;
        font-size: 0.72rem;

    }

    a.btn-pre-footer.btn-header {
        display: none;
    }

    .cta-svg-pattern {
        opacity: 0.3;
    }

    /* Footer mobile layout */
    .footer-brand-logo {
        height: 34px;
    }

    .footer-brand,
    .footer-socials,
    .footer-copyright,
    .footer-legal,
    .footer-nav,
    .footer-statement {
        padding: 1.15rem 1rem;
    }

    .footer-nav {
        gap: 0.65rem 0.95rem;
    }

    .footer-nav-link {
        font-size: 0.82rem;
    }

    .footer-statement p,
    .footer-statement-link,
    .footer-legal-link,
    .footer-copyright p {
        font-size: 0.75rem;
        line-height: 1.55;
    }

    .footer-legal {
        row-gap: 0.25rem;
    }

    .footer-legal-sep {
        display: none;
    }
}

@media (max-width: 480px) {
    .solutions.module {
        padding: 3.7rem 0 3.2rem;
    }

    .solutions .module-heading {
        font-size: clamp(1.45rem, 8.3vw, 1.95rem);
        max-width: 260px;
    }

    .solutions .animated-copy {
        font-size: 0.8rem;
        line-height: 1.42;
    }

    .swiper-slide {
        width: 86vw;
        max-width: none;
    }

    .solution-card {
        height: 375px;
    }

    .solution-card .heading {
        font-size: 1rem;
    }

    .solution-card .description {
        font-size: 0.76rem;
    }

    .pre-footer-cta {
        height: 330px;
        min-height: 0;
        padding-top: 1rem;
        padding-bottom: 1rem;
    }

    .cta-heading {
        font-size: clamp(1.45rem, 8.4vw, 1.95rem);
    }

    .cta-description {
        font-size: 0.8rem;
        max-width: 250px;
    }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--color-orange);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px);
    background-color: var(--color-brand-blue);
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.back-to-top svg {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

.back-to-top:hover svg {
    transform: translateY(-2px);
}

.back-to-top:hover {
    transform: translateY(-5px);
    background-color: #d9561a;
    color: #ffffff;
}

.back-to-top svg {
    width: 24px;
    height: 24px;
}
