/*
 Theme Name:   Twenty Twenty-Four Child
 Description:  Persistent child theme for the KUVEAY project
 Author:       Max Shvartsman
 Template:     twentytwentyfour
 Version:      1.0.0
*/

@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700&family=Syne:wght@400;500&family=Urbanist:wght@400;500&display=swap");

/* You can add custom CSS here later if you want to keep it out of the templates */

:root {
    --sw-home-blue: #4959c8;
    --sw-home-blue-deep: #4959c8;
    --sw-home-ink: #2e2b34;
    --sw-home-copy: #4f4b57;
    --sw-home-border: rgba(46, 43, 52, 0.18);
    --sw-home-surface: #ffffff;
    --sw-home-soft: #ffffff;
    --sw-home-shadow: 0 22px 42px rgba(23, 34, 78, 0.1);
}


/* Force the Spectra separator to show up */
.wp-block-uagb-separator__inner {
    border-top: 1px solid #e5e5e5 !important; /* Change hex to your preferred line color */
    width: 100%;
    min-height: 1px;
    display: block;
}

.sw-public-homepage {
    display: none;
    font-family: "Manrope", var(--wp--preset--font-family--body);
    color: var(--sw-home-ink);
    background: #fff;
}

.sw-public-homepage a {
    text-decoration: none;
}

body.sw-public-site-nav header nav.wp-block-uagb-container .wp-block-navigation,
body.sw-public-site-nav header nav.wp-block-uagb-container .second-nav-bar {
    display: none !important;
}

body.sw-public-site-nav header nav.wp-block-uagb-container {
    width: auto !important;
    margin-top: 0 !important;
}

body.sw-public-site-nav header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 1000;
    pointer-events: none;
}

body.sw-public-site-nav header > * {
    pointer-events: auto;
}

body.sw-public-site-nav header > .is-layout-constrained,
body.sw-public-site-nav header > .is-layout-constrained > .alignwide,
body.sw-public-site-nav header .has-base-2-background-color {
    background: transparent !important;
}

body.sw-public-site-nav header > .is-layout-constrained {
    padding-top: 2.5rem !important;
    padding-bottom: 0 !important;
}

body.sw-public-site-nav header > .is-layout-constrained,
body.sw-public-site-nav header > .is-layout-constrained > .alignwide,
body.sw-public-site-nav header > .is-layout-constrained > .alignwide > .alignwide {
    width: fit-content;
    max-width: calc(100vw - 2rem);
    margin-left: auto !important;
    margin-right: auto !important;
}

body.sw-public-site-nav header > .is-layout-constrained > .alignwide > .alignwide {
    justify-content: center !important;
}

body.sw-public-site-nav:not(.sw-public-home--active) {
    padding-top: 6.5rem;
}

body.sw-public-site-nav header nav.wp-block-uagb-container > .uagb-container-inner-blocks-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

body.sw-public-site-nav .wp-block-site-logo img.custom-logo {
    width: 11.4rem;
    height: auto;
}

.sw-public-site-nav .sw-public-nav {
    margin-left: 0;
    display: flex;
    align-items: center;
}

.sw-public-site-nav .sw-public-nav__toggle {
    display: none;
    width: 2.9rem;
    height: 2.9rem;
    padding: 0;
    border: 1px solid rgba(29, 44, 98, 0.12);
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(28, 42, 96, 0.08);
}

.sw-public-site-nav .sw-public-nav__toggle span {
    display: block;
    width: 1rem;
    height: 2px;
    margin: 0.18rem auto;
    background: #1b2450;
}

.sw-public-site-nav .sw-public-nav__panel {
    display: flex;
    align-items: center;
    gap: 0;
    min-height: 3.7rem;
    padding: 0;
    border-radius: 0.32rem;
    background: rgba(255, 255, 255, 0.98);
    overflow: hidden;
    margin-left:150px;
}

.sw-public-site-nav .sw-public-nav__links,
.sw-public-site-nav .sw-public-nav__actions {
    margin-left: 50px;
    display: flex;
    align-items: center;
    gap: 0;
    margin-right:0;
}

.sw-public-site-nav .sw-public-nav__link,
.sw-public-site-nav .sw-public-nav__secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3.7rem;
    color: #2e2b34;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.18s ease, color 0.18s ease;
}

.sw-public-site-nav .sw-public-nav__link {
    padding: 0 1.45rem;
    line-height: 1;
}

.sw-public-site-nav .sw-public-nav__link + .sw-public-nav__link {
    border-left: 1px solid rgba(33, 44, 97, 0.14);
}

.sw-public-site-nav .sw-public-nav__link:hover,
.sw-public-site-nav .sw-public-nav__link:focus,
.sw-public-site-nav .sw-public-nav__link.is-active {
    background: #eef1fb;
    color: var(--sw-home-blue, #4a5bd2);
    outline: none;
}

.sw-public-site-nav .sw-public-nav__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-height: 3.7rem;
    padding: 0 1.35rem;
    border-radius: 0;
    border: 0;
    color: #fff !important;
    font-size: 0.95rem;
    font-weight: 600;
    background: var(--sw-home-blue) !important;
    box-shadow: none;
    text-decoration: none;
    white-space: nowrap;
}

.sw-public-site-nav .sw-public-nav__cta:visited,
.sw-public-site-nav .sw-public-nav__cta:hover,
.sw-public-site-nav .sw-public-nav__cta:focus {
    color: #fff !important;
    background: var(--sw-home-blue) !important;
}

.sw-public-site-nav .sw-public-nav__secondary {
    outline: none;
    padding-right: 1rem;
    margin-right: 1rem;
}

.sw-public-site-nav .sw-public-nav__cta-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.1rem;
    height: 1.1rem;
    flex: 0 0 1.1rem;
}

.sw-public-site-nav .sw-public-nav__cta-icon svg {
    display: block;
    width: 100%;
    height: 100%;
}

.sw-home-section,
.sw-home-contact,
.sw-home-footer {
    padding-inline: clamp(1.25rem, 4vw, 4rem);
}

.sw-home-hero {
    position: relative;
    min-height: clamp(26rem, 72vh, 42rem);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(3.75rem, 10vw, 8rem) clamp(1.25rem, 5vw, 4rem);
    background:
        linear-gradient(180deg, rgba(9, 16, 36, 0.34), rgba(9, 16, 36, 0.5)),
        url("/wp-content/themes/twentytwentyfour-child/assets/home/swiftwater-drone-hero-poster.jpg") center/cover;
    overflow: hidden;
}

.sw-home-hero__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.sw-home-hero.is-video-ready .sw-home-hero__video {
    opacity: 1;
}

.sw-home-hero__backdrop {
    display: none;
}

.sw-home-hero__content {
    position: relative;
    z-index: 2;
    max-width: 62rem;
    text-align: center;
    color: #fff;
}

.sw-home-kicker {
    margin: 0 0 0.75rem;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.sw-home-kicker {
    color: var(--sw-home-blue);
}

.sw-home-hero__lede {
    color: rgba(255, 255, 255, 0.92);
}

.sw-home-hero h1,
.sw-home-section-heading h2,
.sw-home-contact h2,
.sw-home-careers h2 {
    margin: 0;
    font-family: "Manrope", var(--wp--preset--font-family--body);
    font-weight: 600;
    letter-spacing: -0.04em;
}

.sw-home-hero h1 {
    max-width: 58rem;
    margin-inline: auto;
    color: #fff !important;
    font-family: "Manrope", var(--wp--preset--font-family--body);
    font-size: clamp(3rem, 5.7vw, 4.75rem);
    font-weight: 400;
    line-height: 1.02;
    letter-spacing: -0.045em;
}

.sw-home-hero h1 span,
.sw-home-hero__lede span {
    display: block;
}

.sw-home-hero__lede,
.sw-home-section-heading p,
.sw-home-reach__copy p,
.sw-home-careers__content p,
.sw-home-contact__copy p {
    margin: 1rem auto 0;
    max-width: 42rem;
    font-size: clamp(1rem, 1.9vw, 1.15rem);
    line-height: 1.65;
}

.sw-home-hero__lede {
    max-width: 44rem;
    color: rgba(255, 255, 255, 0.95) !important;
    font-size: clamp(1rem, 1.5vw, 1.35rem);
    font-weight: 400;
    line-height: 1.55;
}

.sw-home-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 2rem;
}

.sw-home-actions--center {
    justify-content: center;
}

.sw-home-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3rem;
    padding: 0.9rem 1.4rem;
    border-radius: 0.4rem;
    border: 1px solid transparent;
    font-size: 0.96rem;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.sw-home-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 24px rgba(34, 47, 104, 0.16);
}

.sw-home-button--primary {
    color: #fff;
    background: var(--sw-home-blue);
}

.sw-home-button--ghost {
    color: #fff;
    border-color: var(--sw-home-blue);
    background: var(--sw-home-blue);
}

.sw-home-button--light {
    color: var(--sw-home-blue-deep);
    background: #fff;
}

.sw-home-section {
    padding-top: clamp(4.4rem, 7vw, 6.25rem);
    padding-bottom: clamp(4rem, 7vw, 5.8rem);
}

.sw-home-section-heading {
    max-width: 46rem;
    margin: 0 auto 2.8rem;
    text-align: center;
}

.sw-home-section--light .sw-home-section-heading,
.sw-home-technology .sw-home-section-heading {
    max-width: 40rem;
    margin: 0 0 2.8rem;
    text-align: left;
}

.sw-home-partners .sw-home-section-heading {
    max-width: none;
    margin-bottom: 4.4rem;
}

.sw-home-section-heading h2,
.sw-home-contact h2,
.sw-home-careers h2 {
    color: var(--sw-home-ink);
    font-size: clamp(2.2rem, 3.8vw, 3.9rem);
    font-weight: 500;
    line-height: 1.05;
}

.sw-home-section-heading--inverse,
.sw-home-section-heading--inverse .sw-home-kicker,
.sw-home-section-heading--inverse p,
.sw-home-team .sw-home-button,
.sw-home-projects .sw-home-button {
    color: #fff;
}

.sw-home-section-heading--inverse .sw-home-kicker {
    color: rgba(255, 255, 255, 0.74);
}

.sw-home-section--light .sw-home-section-heading p,
.sw-home-technology .sw-home-section-heading p,
.sw-home-reach__copy p,
.sw-home-careers__content p {
    margin-left: 0;
}

.sw-home-pillars,
.sw-home-tech-grid,
.sw-home-team-grid {
    display: grid;
    gap: 1.2rem;
}

.sw-home-pillars {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.sw-home-pillar,
.sw-home-tech-item {
    padding: 1.1rem 0.15rem 0;
    border-radius: 0;
    border: 0;
    border-top: 1px solid rgba(46, 43, 52, 0.18);
    background: transparent;
    box-shadow: none;
}

.sw-home-pillar__icon,
.sw-home-tech-item__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.8rem;
    height: 1.8rem;
    color: var(--sw-home-blue-deep);
}

.sw-home-pillar__icon img,
.sw-home-tech-item__icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.sw-home-pillar h3,
.sw-home-tech-item h3,
.sw-home-project-card h3,
.sw-home-team-card h3 {
    margin: 1.1rem 0 0.55rem;
    font-family: "Manrope", var(--wp--preset--font-family--body);
    font-size: 1.05rem;
    line-height: 1.32;
}

.sw-home-pillar p,
.sw-home-tech-item p,
.sw-home-project-card p,
.sw-home-team-card p,
.sw-home-map-card__stats span,
.sw-home-reach__list {
    margin: 0;
    color: var(--sw-home-copy);
    font-size: 0.94rem;
    line-height: 1.62;
}

.sw-home-projects,
.sw-home-team {
    position: relative;
    background:
        linear-gradient(180deg, rgba(10, 17, 40, 0.58), rgba(10, 17, 40, 0.7)),
        url("https://swiftwaterconsulting.ca/wp-content/uploads/2024/01/019.-Lawyer-Sunset-2-1-1024x576.jpg") center/cover fixed;
}

.sw-home-project-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.35rem;
}

.sw-home-project-card,
.sw-home-team-card {
    overflow: hidden;
    border-radius: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.93);
    box-shadow: var(--sw-home-shadow);
}

.sw-home-project-card img {
    display: block;
    width: 100%;
    aspect-ratio: 1.25;
    object-fit: cover;
}

.sw-home-project-card__body,
.sw-home-team-card__body {
    padding: 1.15rem 1.2rem 1.25rem;
}

.sw-home-reach {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: center;
}

.sw-home-reach__copy h2 {
    margin: 0;
    font-family: "Manrope", var(--wp--preset--font-family--body);
    font-size: clamp(1.9rem, 3.8vw, 3rem);
}

.sw-home-map-card {
    border-radius: 1.8rem;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--sw-home-border);
    box-shadow: var(--sw-home-shadow);
}

.sw-home-map-card__surface {
    position: relative;
    min-height: 24rem;
    background: linear-gradient(180deg, #dfe7ff 0%, #eef3ff 100%);
}

.sw-home-map-canvas {
    width: 100%;
    min-height: 24rem;
}

.sw-home-map-legend {
    position: absolute;
    left: 1rem;
    bottom: 1rem;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.8rem 0.9rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 12px 28px rgba(29, 42, 95, 0.18);
    backdrop-filter: blur(10px);
}

.sw-home-map-legend__item {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    color: var(--sw-home-ink);
    font-size: 0.8rem;
    font-weight: 700;
}

.sw-home-map-legend__marker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.35rem;
    min-height: 1.8rem;
    flex: 0 0 auto;
}

.sw-home-map-legend__marker > * {
    transform: scale(0.8);
    transform-origin: center;
}

.sw-home-map-legend__marker svg {
    display: block;
}

.sw-home-map-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 24rem;
    margin: 0;
    padding: 1.5rem;
    text-align: center;
    color: var(--sw-home-copy);
}

.sw-home-map-card__stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    padding: 1.2rem;
}

.sw-home-map-card__stats strong {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
}

.sw-home-tech-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.sw-home-tech-item {
    background: linear-gradient(180deg, #ffffff 0%, #f7f9ff 100%);
}

.sw-home-team-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.sw-home-team-card img {
    display: block;
    width: calc(100% - 1.6rem);
    margin: 0.8rem auto 0;
    border-radius: 1.1rem;
    aspect-ratio: 0.92;
    object-fit: cover;
}

.sw-home-map-popup {
    width: min(18rem, 70vw);
    font-family: var(--wp--preset--font-family--body);
    color: #1d2746;
}

.sw-home-map-popup__logo-wrap {
    margin-bottom: 0.75rem;
    text-align: center;
}

.sw-home-map-popup__logo {
    max-width: 100%;
    max-height: 3.25rem;
    object-fit: contain;
}

.sw-home-map-popup__type,
.sw-home-map-popup__client,
.sw-home-map-popup__company-summary,
.sw-home-map-popup p {
    margin: 0.5rem 0 0;
    line-height: 1.6;
}

.sw-home-map-popup__type {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--sw-home-blue);
}

.sw-home-map-popup h3 {
    margin: 0.45rem 0 0;
    font-family: var(--wp--preset--font-family--body);
    font-size: 1rem;
    line-height: 1.3;
}

.sw-home-map-popup__client {
    font-weight: 700;
    color: #47516f;
}

.sw-home-map-popup__image {
    display: block;
    width: 100%;
    max-height: 10rem;
    margin-top: 0.9rem;
    border-radius: 0.9rem;
    object-fit: cover;
}

.sw-home-careers {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    border-top: 1px solid rgba(74, 91, 210, 0.12);
    border-bottom: 1px solid rgba(74, 91, 210, 0.12);
}

.sw-home-careers__content {
    max-width: 42rem;
}

.sw-home-careers__content p,
.sw-home-contact__copy p {
    color: var(--sw-home-copy);
}

.sw-home-partners {
    padding-top: clamp(2.7rem, 5vw, 3.75rem);
    border-top: 1px solid rgba(46, 43, 52, 0.16);
}

.sw-home-logo-carousel {
    position: relative;
    max-width: 98rem;
    margin: 0 auto;
    padding-inline: 1.0rem;
}

.sw-home-logo-carousel__viewport {
    overflow: hidden;
    scroll-behavior: auto;
    outline: none;
    cursor: grab;
    user-select: none;
}

.sw-home-logo-carousel__viewport.is-dragging {
    cursor: grabbing;
}

.sw-home-logo-carousel__track {
    display: flex;
    align-items: center;
    gap: clamp(2.2rem, 3vw, 3.75rem);
    width: max-content;
    will-change: transform;
}

.sw-home-logo-carousel__item {
    flex: 0 0 clamp(8.75rem, 12vw, 13rem);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 4rem;
    padding: 0.15rem 0.35rem;
}

.sw-home-logo-carousel__item img {
    max-width: 100%;
    max-height: 3rem;
    object-fit: contain;
    filter: none;
    opacity: 1;
    transition: transform 0.2s ease;
}

.sw-home-logo-grid__empty {
    margin: 0;
    text-align: center;
    color: var(--sw-home-copy);
}

.sw-home-logo-carousel__item:hover img {
    transform: translateY(-1px);
}

.sw-home-logo-carousel__control {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 2.8rem;
    height: 2.8rem;
    border: 0;
    border-radius: 999px;
    background: rgba(33, 37, 52, 0.72);
    color: #fff;
    box-shadow: none;
    transform: translateY(-50%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.sw-home-logo-carousel__control span {
    display: inline-block;
    font-size: 1.5rem;
    line-height: 1;
}

.sw-home-logo-carousel__control--prev {
    left: 0;
}

.sw-home-logo-carousel__control--next {
    right: 0;
}

.sw-home-logo-carousel:hover .sw-home-logo-carousel__control,
.sw-home-logo-carousel:focus-within .sw-home-logo-carousel__control {
    opacity: 1;
    pointer-events: auto;
}

.sw-home-logo-carousel__control:hover {
    transform: translateY(-50%) scale(1.03);
    background: rgba(33, 37, 52, 0.84);
}

.sw-home-contact-wrap {
    padding-inline: clamp(1rem, 3vw, 2rem);
    padding-top: clamp(2.4rem, 5vw, 3.25rem);
    padding-bottom: 2.2rem;
}

.sw-home-contact {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
        "headline actions"
        "address brand";
    row-gap: clamp(1.9rem, 4vw, 3rem);
    column-gap: clamp(2rem, 4vw, 3rem);
    max-width: 97.5rem;
    min-height: clamp(23.5rem, 38vw, 31rem);
    margin: 0 auto;
    padding: clamp(3.2rem, 5.8vw, 4.85rem) clamp(2rem, 6vw, 6.25rem) clamp(2.6rem, 4.5vw, 3.65rem);
    color: #fff;
    background: #384da8;
    border-radius: 0.65rem;
}

.sw-home-contact__headline {
    grid-area: headline;
    align-self: start;
    justify-self: start;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 43.5rem;
}

.sw-home-contact__headline h2 {
    width: 100%;
    margin: 0 !important;
    font-family: "Syne", var(--wp--preset--font-family--body);
    font-size: clamp(3.8rem, 7vw, 4.75rem);
    font-weight: 400;
    line-height: 1.08;
    text-align: left;
    color: #fff;
}

.sw-home-contact__headline p {
    width: 100%;
    margin: 0.85rem 0 0;
    font-family: "Urbanist", var(--wp--preset--font-family--body);
    font-size: clamp(1.05rem, 1.8vw, 1.375rem);
    font-weight: 400;
    line-height: 1.55;
    text-align: left;
    color: #fff;
}

.sw-home-contact__actions {
    grid-area: actions;
    align-self: center;
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 0.95rem;
}

.sw-home-contact__button,
.sw-home-contact__linkedin {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.sw-home-contact__button {
    gap: 0.7rem;
    min-height: 3rem;
    padding: 0.9rem 1.25rem;
    border-radius: 0.25rem;
    font-family: "Syne", var(--wp--preset--font-family--body);
    font-size: 0.94rem;
    font-weight: 500;
    color: #384da8;
    background: #fff;
}

.sw-home-contact__button-arrow {
    width: 1rem;
    height: 1rem;
}

.sw-home-contact__button-arrow svg {
    display: block;
    width: 100%;
    height: 100%;
}

.sw-home-contact__button-arrow path {
    fill: none;
    stroke: #384da8;
    stroke-width: 1.1;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.sw-home-contact__linkedin {
    width: 3rem;
    height: 3rem;
    border-radius: 0.25rem;
    background: #fff;
}

.sw-home-contact__linkedin svg {
    width: 1.4rem;
    height: 1.4rem;
    fill: #384da8;
}

.sw-home-contact__address {
    grid-area: address;
    align-self: end;
    justify-self: start;
    max-width: 11.8rem;
}

.sw-home-contact__address p {
    margin: 0;
    font-family: "Urbanist", var(--wp--preset--font-family--body);
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.55;
    color: #fff;
}

.sw-home-contact__brand {
    grid-area: brand;
    align-self: end;
    justify-self: end;
}

.sw-home-contact__brand img {
    display: block;
    width: clamp(9rem, 12vw, 12rem);
    height: auto;
    filter: brightness(0) invert(1);
}

.sw-home-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    max-width: 87.5rem;
    margin: 0.8rem auto 0;
}

.sw-home-footer p,
.sw-home-footer__links a {
    margin: 0;
    font-family: "Urbanist", var(--wp--preset--font-family--body);
    font-size: 0.94rem;
    font-weight: 500;
    line-height: 1.5;
    color: #231f20;
}

.sw-home-footer__links {
    display: inline-flex;
    align-items: center;
    gap: 0.95rem;
}

.sw-home-footer__links span {
    width: 1px;
    height: 1.1rem;
    background: rgba(35, 31, 32, 0.15);
}

.sw-home-footer__links a {
    text-decoration: underline;
}

@media (max-width: 1180px) {
    .sw-home-pillars {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .sw-home-tech-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sw-home-team-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {

    .sw-home-team-grid {
        width: 50% !important;
    }

    .sw-home-project-grid,
    .sw-home-reach,
    .sw-home-careers,
    .sw-home-contact,
    .sw-home-team-grid,
    .sw-home-map-card__stats {
        grid-template-columns: 1fr !important;
    }

    .sw-home-pillars,
    .sw-home-tech-grid {
        grid-template-columns: 1fr 1fr;
    }

    .sw-home-careers {
        align-items: start;
    }

    .sw-home-contact {
        grid-template-areas:
            "headline"
            "actions"
            "address"
            "brand";
        row-gap: 2rem;
    }

    .sw-home-contact__actions,
    .sw-home-contact__brand {
        justify-self: start;
    }

    .sw-home-footer {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 640px) {

    body.sw-public-site-nav .wp-block-site-logo img.custom-logo {
        margin-left:10px;
        margin-block:2px;
    }

    body.sw-public-site-nav header {
        position: sticky;
        pointer-events: auto;
    }

    body.sw-public-site-nav:not(.sw-public-home--active) {
        padding-top: 0;
    }

    .sw-public-site-nav .sw-public-nav {
        position: relative;
    }

    .sw-public-site-nav .sw-public-nav__toggle {
        display: inline-block;
        margin-left: 8px;
        transform: scale(0.9);
        touch-action: manipulation;
        border-radius: 0;
        box-shadow: none;
        border: 0;
        border-left: 1px solid rgba(29, 44, 98, 0.12);
    }

    .sw-public-site-nav .sw-public-nav__panel {
        position: fixed;
        top: calc(env(safe-area-inset-top, 0px) + 7.9rem);
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        z-index: 1100;
        width: min(21rem, calc(100vw - 1rem));
        max-width: calc(100vw - 1rem);
        max-height: calc(100dvh - 6rem);
        padding: 1rem;
        border-radius: 1.2rem;
        background: rgba(255, 255, 255, 0.98);
        border: 1px solid rgba(27, 42, 96, 0.1);
        box-shadow: 0 24px 48px rgba(16, 27, 65, 0.18);
        display: none;
        flex-direction: column;
        align-items: stretch;
        min-height: auto;
        overflow: auto;
        margin-left:0 !important;
    }

    .sw-public-site-nav .sw-public-nav.is-open .sw-public-nav__panel {
        display: flex;
    }

    .sw-public-site-nav .sw-public-nav__links,
    .sw-public-site-nav .sw-public-nav__actions {
        flex-direction: column;
        align-items: stretch;
        margin-right:0;
    }

    .sw-public-site-nav .sw-public-nav__link,
    .sw-public-site-nav .sw-public-nav__secondary,
    .sw-public-site-nav .sw-public-nav__cta {
        width: 100%;
        padding: 0.85rem 1rem;
        border-radius: 0.9rem;
        text-align: left;
        min-height: auto;
        touch-action: manipulation;
    }

    .sw-public-site-nav .sw-public-nav__cta {
        justify-content: center;
        text-align: center;
    }

    .sw-public-site-nav .sw-public-nav__link + .sw-public-nav__link {
        border-left: 0;
    }

    .sw-home-hero {
        align-items: flex-end;
        min-height: 30rem;
        padding-bottom: 3rem;
    }

    .sw-home-actions {
        flex-direction: column;
    }

    .sw-home-button {
        width: 100%;
    }

    .sw-home-pillars,
    .sw-home-project-grid,
    .sw-home-tech-grid,
    .sw-home-team-grid {
        grid-template-columns: 1fr;
    }

    .sw-home-map-legend {
        left: 0.75rem;
        right: 0.75rem;
        bottom: 0.75rem;
    }

    .sw-home-logo-carousel {
        padding-inline: 0.35rem;
    }

    .sw-home-contact {
        padding: 2.4rem 1.35rem 2.6rem;
        min-height: auto;
    }

    .sw-home-contact__headline h2 {
        font-size: clamp(3rem, 13vw, 4rem);
    }

    .sw-home-contact__actions {
        width: 100%;
        flex-wrap: wrap;
    }

    .sw-home-contact__button {
        width: auto;
    }

    .sw-home-footer__links {
        flex-wrap: wrap;
    }

    .sw-home-logo-carousel__control {
        opacity: 1;
        pointer-events: auto;
    }
}

.wp-block-site-logo img { width: 9.0rem !important; margin-left: 14px; } 

body.sw-public-site-nav header > .is-layout-constrained > .alignwide {
  background-color: white !important; 
  border-radius: 6px;     
  box-shadow: 0 8px 24px rgba(26, 36, 84, 0.12); 
} 
