/* =====================================================
   META ARCHITECTS — RESPONSIVE STYLES
   Consolidated 2026-09-02
   ===================================================== */

/* ---------------------------------------------------
   3. SLIKE — spreči overflow na mobilnom
   Važi za SVE stranice projekata i projects.html
--------------------------------------------------- */
img,
img.img-responsive,
.legendary-gallery img,
.project-images img,
.page-wrapper img {
    max-width: 100% !important;
    height: auto !important;
}

/* ---------------------------------------------------
   4. FIGURE u galriji projekata — mobilni 1 kolona
   Na malim ekranima svaka figura zauzima punu širinu
--------------------------------------------------- */
@media only screen and (max-width: 767px) {
    .legendary-gallery figure.col-sm-6,
    .legendary-gallery figure.col-xl-6,
    .legendary-gallery figure.col-lg-6,
    .legendary-gallery figure.col-md-6 {
        width: 100% !important;
        float: none !important;
        padding: 0 0 10px 0 !important;
    }

    .legendary-gallery {
        margin: 0 0 0 0 !important;
    }
}

/* ---------------------------------------------------
   5. CONTAINER overflow fix — sprečava horizontalni scroll
--------------------------------------------------- */
body {
    overflow-x: hidden;
}

.page-wrapper,
.container,
.container-fluid {
    max-width: 100%;
    overflow-x: hidden;
}

/* ---------------------------------------------------
   6. PROJEKAT INFO — col-sm-6 blokovi na mobilnom
   jedan ispod drugog
--------------------------------------------------- */
@media only screen and (max-width: 767px) {
    .section-about .col-sm-6 {
        width: 100% !important;
        float: none !important;
    }
    .aboutproject p {
        text-align: left !important;
    }
}

/* ---------------------------------------------------
   7. PROJEKT SLIKE — puna širina na mobilnim uređajima
--------------------------------------------------- */
@media only screen and (max-width: 767px) {
    .project-images {
        width: 100% !important;
    }
}

/* ---------------------------------------------------
   13. STICKY FOOTER - UVEK NA SAMOM DNU STRANICE
--------------------------------------------------- */
html, body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.page-wrapper,
.portfolio-grid-container {
    display: flex;
    flex-direction: column;
    flex: 1 0 auto;
}

.section-footer {
    margin-top: auto !important;
}

/* ---------------------------------------------------
   14. TEAM PAGE STYLES
--------------------------------------------------- */
.team-page-container {
    padding-top: 110px;
    padding-bottom: 60px;
}

.team-header-block {
    margin-bottom: 50px;
}

.team-header-title {
    font-family: 'Lato', sans-serif;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #111111;
    text-transform: uppercase;
    margin: 0 0 12px 0;
}

.team-title-line {
    width: 35px;
    height: 2px;
    background-color: #333333;
    margin-bottom: 25px;
}

.team-intro-text {
    font-family: 'Lato', sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: #444444;
    max-width: 520px;
    margin: 0;
}

.team-member-row {
    display: flex;
    gap: 45px;
    align-items: flex-start;
    margin-bottom: 20px;
}

.team-member-img-col {
    flex: 0 0 45%;
    max-width: 45%;
}

.team-member-img-col img {
    width: 100% !important;
    height: auto !important;
    display: block;
    object-fit: cover;
}

.team-member-info-col {
    flex: 1;
}

.member-accent-line {
    width: 45px;
    height: 1.5px;
    background-color: #777777;
    margin-bottom: 22px;
    margin-top: 5px;
}

.member-role {
    font-family: 'Lato', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #111111;
    margin: 0 0 10px 0;
}

.member-name {
    font-family: 'Lato', sans-serif;
    font-size: 26px;
    font-weight: 700;
    color: #111111;
    margin: 0 0 22px 0;
    line-height: 1.25;
}

.member-bio p {
    font-family: 'Lato', sans-serif;
    font-size: 14px;
    line-height: 1.65;
    color: #444444;
    margin-bottom: 16px;
}

.member-bio p:last-child {
    margin-bottom: 0;
}

.team-divider {
    border: none;
    border-top: 1px solid #e0e0e0;
    margin: 50px 0;
}

.team-cta-banner {
    background-color: #f4f4f4;
    padding: 30px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 50px;
    margin-bottom: 60px;
}

.team-cta-left {
    display: flex;
    align-items: center;
    gap: 25px;
}

.team-cta-icon {
    width: 65px;
    height: auto;
    flex-shrink: 0;
}

.team-cta-title {
    font-family: 'Lato', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #111111;
    margin: 0 0 4px 0;
}

.team-cta-sub {
    font-family: 'Lato', sans-serif;
    font-size: 14px;
    color: #555555;
    margin: 0;
}

.team-cta-btn {
    display: inline-block;
    background-color: #000000;
    color: #ffffff !important;
    text-decoration: none !important;
    padding: 14px 30px;
    font-family: 'Lato', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    white-space: nowrap;
    border: none;
    cursor: pointer;
}

.team-cta-btn:hover {
    background-color: #333333;
    color: #ffffff !important;
}

@media only screen and (max-width: 880px) {
    .team-member-row {
        flex-direction: column;
        gap: 30px;
    }
    
    .team-member-img-col {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .team-cta-banner {
        flex-direction: column;
        align-items: flex-start;
        padding: 25px 20px;
        gap: 25px;
    }
    
    .team-cta-left {
        gap: 15px;
    }
    
    .team-cta-btn {
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }
}

/* =====================================================
   ABOUT PAGE STYLES
   ===================================================== */
.about-page-container {
    padding-top: 145px !important;
    padding-bottom: 60px;
}

/* 1. Hero Section */
.about-hero-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 50px;
    margin-bottom: 50px;
}

.about-hero-col-text {
    flex: 0 0 44%;
    max-width: 44%;
    padding-top: 5px;
}

.about-hero-col-img {
    flex: 0 0 53%;
    max-width: 53%;
}

.about-hero-col-img img {
    width: 100%;
    height: auto;
    display: block;
}

.about-eyebrow {
    font-family: 'Lato', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #777777;
    margin-bottom: 25px;
    display: block;
}

.about-hero-title {
    font-family: 'Lato', sans-serif;
    font-size: 48px;
    font-weight: 700;
    line-height: 1.12;
    color: #111111;
    margin: 0 0 35px 0;
    letter-spacing: -0.5px;
}

.about-hero-intro {
    font-family: 'Lato', sans-serif;
    font-size: 15px;
    line-height: 1.7;
    color: #555555;
    margin: 0;
    max-width: 440px;
}

/* Divider */
.about-divider {
    border: none;
    border-top: 1px solid #e2e2e2;
    margin: 55px 0 65px 0;
}

/* 2. Middle Text Block */
.about-text-block {
    max-width: 780px;
    margin: 0 auto 75px auto;
    font-family: 'Lato', sans-serif;
    font-size: 15px;
    line-height: 1.75;
    color: #444444;
}

.about-text-block p {
    margin-bottom: 24px;
}

.about-text-block p:last-child {
    margin-bottom: 0;
}

/* 3. Stats Section */
.about-stats-banner {
    background-color: #f4f4f4;
    padding: 50px 40px;
    margin-bottom: 75px;
}

.about-stats-grid {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.about-stat-item {
    flex: 1;
    padding: 0 30px;
    border-right: 1px solid #dcdcdc;
}

.about-stat-item:first-child {
    padding-left: 10px;
}

.about-stat-item:last-child {
    padding-right: 10px;
    border-right: none;
}

.about-stat-number {
    font-family: 'Lato', sans-serif;
    font-size: 46px;
    font-weight: 700;
    color: #111111;
    line-height: 1;
    margin-bottom: 14px;
}

.about-stat-label {
    font-family: 'Lato', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #666666;
}

/* 4. Values / Pillars Section (3 Columns) */
.about-values-grid {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 75px;
}

.about-value-col {
    flex: 1;
    padding: 0 35px;
    border-right: 1px solid #e0e0e0;
}

.about-value-col:first-child {
    padding-left: 0;
}

.about-value-col:last-child {
    padding-right: 0;
    border-right: none;
}

.about-value-icon {
    width: 44px;
    height: 44px;
    margin-bottom: 24px;
    display: block;
}

.about-value-title {
    font-family: 'Lato', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #111111;
    margin: 0 0 16px 0;
}

.about-value-desc {
    font-family: 'Lato', sans-serif;
    font-size: 14px;
    line-height: 1.7;
    color: #555555;
    margin: 0;
}

/* 5. Bottom Image Banner */
.about-bottom-img-wrap {
    margin: 0;
    width: 100%;
    max-width: none;
    overflow: hidden;
}

.about-bottom-img-wrap img {
    width: 100%;
    height: auto;
    display: block;
}

/* Mobile Responsiveness for About Page */
@media only screen and (max-width: 880px) {
    .about-page-container {
        padding-top: 90px;
    }

    .about-hero-row {
        flex-direction: column;
        gap: 30px;
        margin-bottom: 35px;
    }

    .about-hero-col-text,
    .about-hero-col-img {
        flex: 0 0 100%;
        max-width: 100%;
        padding-top: 0;
    }

    .about-hero-title {
        font-size: 36px;
        margin-bottom: 20px;
    }

    .about-divider {
        margin: 35px 0 40px 0;
    }

    .about-text-block {
        margin-bottom: 45px;
    }

    .about-stats-banner {
        padding: 30px 20px;
        margin-bottom: 45px;
    }

    .about-stats-grid {
        flex-direction: column;
        gap: 25px;
    }

    .about-stat-item {
        padding: 0;
        border-right: none;
        border-bottom: 1px solid #e0e0e0;
        padding-bottom: 20px;
    }

    .about-stat-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .about-values-grid {
        flex-direction: column;
        gap: 35px;
        margin-bottom: 45px;
    }

    .about-value-col {
        padding: 0;
        border-right: none;
        border-bottom: 1px solid #e0e0e0;
        padding-bottom: 30px;
    }

    .about-value-col:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .about-bottom-img-wrap {
        margin-bottom: 0;
    }
}

/* =====================================================
   SERVICES PAGE STYLES
   ===================================================== */
.services-page-container {
    padding-top: 145px !important;
    padding-bottom: 80px;
}

/* Header Section */
.services-header-row {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    margin-bottom: 70px;
}

.services-header-left {
    flex: 0 0 24% !important;
    max-width: 24% !important;
    padding-top: 5px !important;
    text-align: left !important;
}

.services-header-right {
    flex: 0 0 76% !important;
    max-width: 76% !important;
}

.services-eyebrow {
    font-family: 'Lato', sans-serif !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 2px !important;
    text-transform: uppercase !important;
    color: #111111 !important;
    display: block !important;
    text-align: left !important;
}

.services-header-title {
    font-family: 'Lato', sans-serif;
    font-size: 42px;
    font-weight: 700;
    line-height: 1.15;
    color: #111111;
    margin: 0 0 25px 0;
    letter-spacing: -0.5px;
}

.services-header-intro {
    font-family: 'Lato', sans-serif;
    font-size: 15px;
    line-height: 1.7;
    color: #555555;
    margin: 0;
    max-width: 520px;
}

/* Service Row Layout */
.services-row {
    display: flex;
    align-items: flex-start;
    gap: 40px;
}

.services-left-col {
    flex: 0 0 24% !important;
    max-width: 24% !important;
    padding-top: 5px !important;
    padding-right: 15px !important;
    box-sizing: border-box !important;
    text-align: left !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
}

.services-right-col {
    flex: 1 1 0 !important;
    max-width: none !important;
    min-width: 0 !important;
}

/* Number and Tag formatting in Left Block */
.services-num-wrap {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 16px !important;
    margin-bottom: 24px !important;
    text-align: left !important;
    width: 100% !important;
}

.services-num {
    font-family: 'Lato', sans-serif !important;
    font-size: 28px !important;
    font-weight: 300 !important;
    color: #222222 !important;
    line-height: 1 !important;
    margin: 0 !important;
}

.services-dash {
    font-family: 'Lato', sans-serif !important;
    font-size: 20px !important;
    font-weight: 300 !important;
    color: #222222 !important;
    margin: 0 !important;
}

.services-title {
    font-family: 'Lato', sans-serif !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 2px !important;
    text-transform: uppercase !important;
    color: #111111 !important;
    line-height: 1.55 !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: left !important;
    display: block !important;
    width: 100% !important;
}

/* Content grid inside services-right-col */
.services-grid-2col {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 30px;
    width: 100%;
    box-sizing: border-box;
}

.services-img-col {
    flex: 0 0 calc(50% - 15px);
    max-width: calc(50% - 15px);
    box-sizing: border-box;
}

.services-img-col img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
    display: block !important;
}

.services-text-col {
    flex: 0 0 calc(50% - 15px);
    max-width: calc(50% - 15px);
    box-sizing: border-box;
}

.services-text-col p {
    font-family: 'Lato', sans-serif;
    font-size: 14px;
    line-height: 1.68;
    color: #333333;
    margin-bottom: 18px;
}

.services-text-col p:last-child {
    margin-bottom: 0;
}

.services-subheading {
    font-family: 'Lato', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #111111;
    margin: 28px 0 16px 0;
}

.services-sector-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.services-sector-list li {
    font-family: 'Lato', sans-serif;
    font-size: 14px;
    line-height: 2.1;
    color: #333333;
    display: flex;
    align-items: center;
    gap: 12px;
}

.services-sector-list li .dash {
    color: #333333;
    font-weight: 300;
}

/* Section Divider Line */
.services-divider {
    border: none;
    border-top: 1px solid #e5e5e5;
    margin: 60px 0;
}

/* Mobile Responsiveness for Services Page */
@media only screen and (max-width: 880px) {
    .services-page-container {
        padding-top: 90px !important;
        padding-bottom: 50px;
    }

    .services-header-row {
        flex-direction: column;
        gap: 20px;
        margin-bottom: 45px;
    }

    .services-header-left,
    .services-header-right,
    .services-left-col,
    .services-right-col {
        flex: 0 0 100%;
        max-width: 100%;
        padding-top: 0;
    }

    .services-header-title {
        font-size: 32px;
        margin-bottom: 16px;
    }

    .services-row {
        flex-direction: column;
        gap: 25px;
    }

    .services-grid-2col {
        flex-direction: column;
        gap: 25px;
    }

    .services-img-col,
    .services-text-col {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .services-divider {
        margin: 40px 0;
    }
}

/* =====================================================
   SHARED TYPOGRAPHY — MAIN PAGES ONLY
   About, Services, Team and Contact
   ===================================================== */
.page-title,
.about-hero-title,
.services-header-title,
.team-header-title,
.section-contact .alt h1 {
    font-family: 'Lato', sans-serif;
    font-size: 44px;
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.5px;
    text-transform: none;
    color: #111111;
}

.page-intro,
.about-hero-intro,
.services-header-intro,
.team-intro-text,
.section-contact .section-all-subtitle {
    font-family: 'Lato', sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.7;
    letter-spacing: normal;
    color: #555555;
}

.section-contact .section-all-subtitle {
    max-width: 520px;
}

.page-eyebrow,
.about-eyebrow,
.services-eyebrow {
    font-family: 'Lato', sans-serif;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.section-contact .footer-contact-block-label {
    font-family: 'Lato', sans-serif;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.section-contact .footer-small,
.section-contact a.email {
    font-family: 'Lato', sans-serif;
    font-size: 15px !important;
    font-weight: 400;
    line-height: 1.7;
}

@media only screen and (max-width: 880px) {
    .page-title,
    .about-hero-title,
    .services-header-title,
    .team-header-title,
    .section-contact .alt h1 {
        font-size: 36px;
    }
}

/* =====================================================
   CONSOLIDATED RESPONSIVE SYSTEM
   ===================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    width: 100%;
    min-width: 320px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    width: 100%;
    min-width: 320px;
    overflow-x: hidden;
}

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.container,
.nav-width-wrapper,
.full-width-wrapper {
    width: min(1170px, calc(100% - 48px)) !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box;
}

body.home-page-body {
    display: block;
    min-height: 100vh;
    min-height: 100dvh;
    background: #000 !important;
}

body.home-page-body .home-page,
body.home-page-body .hero-fullscreen,
body.home-page-body .home-video-background {
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    height: 100vh;
    height: 100dvh;
}

body.home-page-body .home-video-background > div,
body.home-page-body .home-video-background video {
    width: 100% !important;
    height: 100% !important;
}

body.home-page-body .home-video-background > div {
    background-position: center center !important;
    background-size: cover !important;
}

body.home-page-body .home-video-background video {
    inset: 0 !important;
    margin: 0 !important;
    transform: none !important;
    object-fit: cover !important;
}

body.home-page-body .home-page > .center-container {
    z-index: 2;
}

body.home-page-body .home-page .center-block > img {
    display: inline-block !important;
    width: clamp(145px, 18vw, 230px) !important;
    max-width: none !important;
    height: auto !important;
    max-height: 300px !important;
    margin: 0 auto !important;
    padding-top: 0 !important;
}

body.home-page-body h1.home-page-title {
    padding: 0 18px;
    overflow-wrap: anywhere;
}

.navigation-toggle {
    min-width: 44px;
    min-height: 44px;
    touch-action: manipulation;
}

.navigation-toggle-icon {
    margin: auto;
}

.navigation-overlay,
.navigation {
    overscroll-behavior: contain;
}

.menu-open {
    overflow: hidden;
}

.navigation .center-container {
    position: relative;
    min-height: 100%;
}

.menu-link {
    display: inline-block;
}

.main-navigation-logo .main-navigation-logo-img img {
    object-fit: contain !important;
}

.social-icons-list {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-wrap: nowrap !important;
    gap: 12px !important;
    width: max-content !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 0 !important;
    list-style: none !important;
}

.social-icons-list li,
.social-icon-link {
    flex: 0 0 36px !important;
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    margin: 0 !important;
    padding: 0 !important;
}

.social-icon-link {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    line-height: 1 !important;
    overflow: hidden !important;
}

.social-icon-link img,
.social-icon-link svg {
    display: block !important;
    flex: none !important;
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    min-height: 18px !important;
    max-width: 18px !important;
    max-height: 18px !important;
    margin: 0 !important;
    padding: 0 !important;
    object-fit: contain !important;
    border-radius: 0 !important;
}

.navigation-social-icons .social-icons-list {
    margin: 0 auto !important;
}

.section-contact .social-icons-list {
    justify-content: flex-start !important;
    margin: 10px 0 0 !important;
}

.section-contact .social-icon-link {
    transition: background-color 180ms ease, transform 180ms ease;
}

@media (hover: hover) and (pointer: fine) {
    .section-contact .social-icon-link:hover {
        background-color: #e5e5e5;
        transform: translateY(-2px);
    }
}

.section-contact .social-icon-link:focus-visible {
    background-color: #e5e5e5;
    outline: 2px solid #555;
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    .section-contact .social-icon-link:hover {
        transform: none;
    }
}

.ma-lightbox-close {
    appearance: none;
    padding: 0;
    border: 0;
    background: transparent;
}

@media only screen and (max-width: 1200px) {
    .main-navigation {
        display: none !important;
    }

    .navigation-toggle.mobile-only {
        display: block !important;
        visibility: visible !important;
    }
}

@media only screen and (max-width: 880px) {
    .container {
        width: calc(100% - 32px) !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .navigation {
        width: 100% !important;
        inset: 0 !important;
        padding: max(75px, calc(env(safe-area-inset-top) + 58px)) 24px max(28px, env(safe-area-inset-bottom)) !important;
        transform: none !important;
        overflow-y: auto !important;
    }

    .navigation .center-block {
        padding-top: 0 !important;
    }

    .navigation .menu {
        margin: 0 !important;
    }

    .menu-item {
        margin-bottom: clamp(12px, 2.2vh, 20px) !important;
    }

    .menu-link {
        font-size: clamp(22px, 7vw, 30px) !important;
        line-height: 1.12 !important;
    }

    body.home-page-body .home-page .center-block > img {
        width: clamp(150px, 51vw, 205px) !important;
    }

    body.home-page-body h1.home-page-title {
        width: 100%;
        margin: 18px 0 0 !important;
        font-size: clamp(9px, 2.65vw, 12px) !important;
        line-height: 1.55 !important;
        letter-spacing: 0.22em;
    }

    .row {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    input,
    textarea,
    select,
    button {
        max-width: 100%;
    }

    .section-contact input,
    .section-contact textarea {
        width: 100% !important;
    }
}

@media only screen and (max-width: 600px) {
    .container {
        width: calc(100% - 24px) !important;
    }

    .about-page-container,
    .services-page-container,
    .team-page-container {
        padding-top: 78px !important;
    }

    .page-title,
    .about-hero-title,
    .services-header-title,
    .team-header-title,
    .section-contact .alt h1 {
        font-size: clamp(30px, 10vw, 36px) !important;
        overflow-wrap: anywhere;
    }

    .project-layout {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    .project-gallery-main {
        gap: 18px !important;
    }
}

@media only screen and (max-height: 520px) and (orientation: landscape) {
    .navigation {
        padding-top: 54px !important;
    }
    .navigation .center-block {
        display: block;
    }
    .menu-item {
        display: inline-block;
        margin: 8px 12px !important;
    }
    .menu-link {
        font-size: 18px !important;
    }
    .navigation-social-icons {
        display: none !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Single authoritative header and menu cascade. */

@media only screen and (min-width: 1201px) {
    .main-navigation .nav-width-wrapper {
        width: 90% !important;
        max-width: none !important;
    }

    .main-navigation,
    .main-navigation.fix-sticky,
    .main-navigation.js-transparent,
    .main-navigation.reduce-height,
    body.home-page-body .main-navigation.transparent {
        position: fixed !important;
        inset: 0 0 auto 0 !important;
        display: block !important;
        width: 100% !important;
        height: 75px !important;
        min-height: 75px !important;
        background: #fff !important;
        border: 0 !important;
        box-shadow: none !important;
        opacity: 1 !important;
        z-index: 1200 !important;
    }

    body.home-page-body .main-navigation,
    body.home-page-body .main-navigation.transparent {
        background: transparent !important;
    }

    .main-navigation .nav-width-wrapper,
    .main-navigation-logo,
    .main-navigation-logo .main-navigation-logo-img {
        height: 75px !important;
    }

    .main-navigation-logo .main-navigation-logo-img {
        display: flex !important;
        align-items: center !important;
        left: 0 !important;
        padding: 0 10px !important;
        line-height: normal !important;
    }

    .main-inner-navigation ul > li:last-child {
        display: none !important;
    }

    .main-navigation-logo .main-navigation-logo-img img {
        display: block !important;
        width: 200px !important;
        height: 55px !important;
        max-width: 200px !important;
        max-height: 55px !important;
        object-fit: contain !important;
    }

    .main-inner-navigation,
    .main-inner-navigation ul,
    .main-inner-navigation ul li,
    .main-navigation .main-inner-navigation ul > li > a {
        height: 75px !important;
        line-height: 75px !important;
    }

    .main-navigation .main-inner-navigation a {
        color: #111 !important;
    }
}

@media only screen and (max-width: 1200px) {
    body:not(.home-page-body)::before {
        content: "";
        position: fixed;
        inset: 0 0 auto 0;
        width: 100%;
        height: 75px;
        background: #fff;
        z-index: 1080;
        pointer-events: none;
    }

    body.project-detail-page::before {
        transition: transform 0.35s ease, opacity 0.35s ease;
    }

    body.project-detail-page:not(.project-nav-visible)::before {
        transform: translateY(-100%);
        opacity: 0;
    }

    body.project-detail-page:not(.project-nav-visible) .logo.logo-light.scrollToTop,
    body.project-detail-page:not(.project-nav-visible) .navigation-toggle.mobile-only {
        transform: translateY(-140%) !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }

    .logo.logo-light.scrollToTop,
    body.menu-open .logo.logo-light.scrollToTop {
        position: fixed !important;
        display: block !important;
        visibility: visible !important;
        top: 10px !important;
        left: 16px !important;
        width: 200px !important;
        height: 55px !important;
        margin: 0 !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        z-index: 1300 !important;
    }

    .logo.logo-light .logo-img,
    .logo.logo-light .logo-img::before {
        display: block !important;
        visibility: visible !important;
        width: 200px !important;
        height: 55px !important;
        opacity: 1 !important;
    }

    .logo.logo-light .logo-img::before {
        content: "" !important;
        background: url(../img/logo-black-mobile2.png) left center / contain no-repeat !important;
    }

    .navigation-toggle.mobile-only {
        position: fixed !important;
        display: block !important;
        visibility: visible !important;
        top: 15px !important;
        right: 16px !important;
        width: 44px !important;
        height: 44px !important;
        opacity: 1 !important;
        z-index: 1301 !important;
    }

    .navigation-toggle-bars,
    .navigation-toggle-bars-light {
        background: #111 !important;
    }

    .navigation-overlay { z-index: 1210 !important; }
    .navigation { z-index: 1220 !important; padding-top: 75px !important; }

    .navigation-social-icons {
        position: absolute !important;
        left: 0 !important;
        right: 0 !important;
        bottom: max(28px, env(safe-area-inset-bottom)) !important;
        width: 100% !important;
        margin: 0 !important;
        transform: none !important;
    }
}

@media only screen and (max-width: 520px) {
    .logo.logo-light.scrollToTop,
    body.menu-open .logo.logo-light.scrollToTop,
    .logo.logo-light .logo-img,
    .logo.logo-light .logo-img::before {
        width: 164px !important;
        height: 45px !important;
    }
    .logo.logo-light.scrollToTop,
    body.menu-open .logo.logo-light.scrollToTop { top: 15px !important; }
}

/* Keep desktop project content aligned with the visible left edge of the header logo. */
@media only screen and (min-width: 992px) and (max-width: 1200px) {
    body.project-detail-page .project-layout {
        width: min(1170px, calc(100% - 48px)) !important;
        margin-left: auto !important;
        margin-right: auto !important;
        padding-left: 28px !important;
        padding-right: 0 !important;
    }
}

@media only screen and (min-width: 1201px) {
    body.project-detail-page .project-layout {
        width: 90% !important;
        margin-left: auto !important;
        margin-right: auto !important;
        padding-left: 28px !important;
        padding-right: 0 !important;
    }
}

@media only screen and (max-width: 991px) {
    body.project-detail-page .ma-lightbox-overlay,
    body.project-detail-page .ma-lightbox-content,
    body.project-detail-page .ma-lightbox-overlay img {
        touch-action: pan-y pinch-zoom !important;
    }

    body.project-detail-page .ma-lightbox-overlay img {
        -webkit-user-drag: none;
        user-select: none;
    }

    body.project-detail-page .ma-lightbox-nav {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 52px !important;
        height: 64px !important;
        min-width: 52px !important;
        min-height: 64px !important;
        padding: 0 !important;
    }

    body.project-detail-page .ma-lightbox-prev {
        left: 0 !important;
    }

    body.project-detail-page .ma-lightbox-next {
        right: 0 !important;
    }
}
