/* =========================================================
   GLOBAL IMAGE CONSISTENCY
========================================================= */

.about-us-img-box .img-box {
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    width: 100%;
    height: auto !important;
    aspect-ratio: 4 / 3;
    border-radius: 10px;
}

@supports not (aspect-ratio: 4 / 3) {
    .about-us-img-box .img-box {
        position: relative;
        height: 0;
        padding-bottom: 75%;
        background-size: cover !important;
        background-position: center center !important;
    }
}

.projects-item .img-box img,
.blog-item .img-box img,
.services-carousel-item img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    object-position: center;
}

.sec-hero.display-table {
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
}


/* =========================================================
   MODERN SOFIA HEADER
========================================================= */

.sc-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    padding: 10px 16px;
    pointer-events: none;
}

.sc-header-inner {
    width: 100%;
    max-width: 1240px;
    height: 68px;
    margin: 0 auto;
    padding: 0 16px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    background: rgba(255, 255, 255, 0.97);
    border: 1px solid rgba(20, 32, 52, 0.08);
    border-radius: 16px;

    box-shadow:
        0 8px 30px rgba(15, 23, 42, 0.08);

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    pointer-events: auto;

    transition:
        height 0.25s ease,
        padding 0.25s ease,
        box-shadow 0.25s ease,
        border-radius 0.25s ease;
}


/* =========================================================
   SCROLLED HEADER
========================================================= */

.sc-header.sc-scrolled {
    padding-top: 7px;
}

.sc-header.sc-scrolled .sc-header-inner {
    height: 60px;

    box-shadow:
        0 8px 28px rgba(15, 23, 42, 0.13);

    border-color: rgba(20, 32, 52, 0.10);
}


/* =========================================================
   LOGO
========================================================= */

.sc-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.sc-logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.sc-logo img {
    display: block;
    width: 142px;
    height: auto;
    max-height: 52px;
    object-fit: contain;
}


/* =========================================================
   DESKTOP NAVIGATION
========================================================= */

.sc-desktop-nav {
    display: flex;
    align-items: center;
    height: 100%;
    margin-left: auto;
    margin-right: 22px;
}

.sc-menu {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0;
    margin: 0;
}

.sc-menu > li {
    position: relative;
}

.sc-menu > li > a {
    position: relative;

    display: flex;
    align-items: center;
    gap: 6px;

    min-height: 42px;
    padding: 0 12px;

    color: #172033;

    font-size: 13px;
    font-weight: 600;
    line-height: 1;

    text-decoration: none;
    white-space: nowrap;

    border-radius: 9px;

    transition:
        color 0.2s ease,
        background 0.2s ease;
}

.sc-menu > li > a:hover,
.sc-menu > li > a:focus-visible {
    color: #f57009;
    background: rgba(245, 112, 9, 0.07);
}

.sc-menu > li > a.sc-active {
    color: #f57009;
}


/* =========================================================
   SERVICES / LOCATIONS ARROW
========================================================= */

.sc-arrow {
    font-size: 9px;
    transition: transform 0.2s ease;
}

.sc-services:hover > a .sc-arrow,
.sc-services:focus-within > a .sc-arrow,
.sc-locations:hover > a .sc-arrow,
.sc-locations:focus-within > a .sc-arrow {
    transform: rotate(180deg);
}


/* =========================================================
   DESKTOP SERVICES DROPDOWN
========================================================= */

.sc-dropdown {
    position: absolute;

    top: calc(100% + 10px);
    left: 0;

    width: 285px;

    padding: 7px;

    background: #ffffff;

    border: 1px solid rgba(20, 32, 52, 0.08);
    border-radius: 13px;

    box-shadow:
        0 18px 45px rgba(15, 23, 42, 0.14);

    list-style: none;

    opacity: 0;
    visibility: hidden;

    transform: translateY(8px);

    transition:
        opacity 0.2s ease,
        visibility 0.2s ease,
        transform 0.2s ease;
}

.sc-services:hover .sc-dropdown,
.sc-services:focus-within .sc-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.sc-dropdown li {
    margin: 0;
    padding: 0;
}

.sc-dropdown a {
    display: flex;
    align-items: center;

    min-height: 42px;

    padding: 9px 11px;

    color: #263247;

    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.35;

    text-decoration: none;

    border-radius: 8px;

    transition:
        color 0.2s ease,
        background 0.2s ease,
        padding-left 0.2s ease;
}

.sc-dropdown a:hover,
.sc-dropdown a:focus-visible {
    color: #f57009;
    background: #fff6ef;
    padding-left: 15px;
}


/* =========================================================
   HEADER ACTIONS
========================================================= */

.sc-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}


/* =========================================================
   PHONE
========================================================= */

.sc-phone {
    display: flex;
    align-items: center;
    gap: 8px;

    padding: 7px 10px;

    color: #172033;

    text-decoration: none;

    border-radius: 9px;

    transition: background 0.2s ease;
}

.sc-phone:hover {
    background: #f5f7fa;
}

.sc-phone-icon {
    width: 30px;
    height: 30px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #f57009;
    background: #fff2e8;

    border-radius: 50%;

    font-size: 13px;
}

.sc-phone-content {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.sc-phone-label {
    color: #8a93a3;

    font-size: 9px;
    font-weight: 600;

    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.sc-phone-number {
    margin-top: 3px;

    color: #172033;

    font-size: 12px;
    font-weight: 700;
}


/* =========================================================
   QUOTE BUTTON
========================================================= */

.sc-quote {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 38px;

    padding: 0 15px;

    color: #ffffff !important;
    background: #f57009;

    border-radius: 8px;

    font-size: 11px;
    font-weight: 700;

    text-decoration: none !important;
    white-space: nowrap;

    box-shadow:
        0 5px 14px rgba(245, 112, 9, 0.22);

    transition:
        transform 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}

.sc-quote:hover {
    color: #ffffff !important;

    background: #dd5f00;

    transform: translateY(-1px);

    box-shadow:
        0 8px 18px rgba(245, 112, 9, 0.27);
}


/* =========================================================
   MOBILE MENU BUTTON
========================================================= */

.sc-mobile-toggle {
    display: none;

    width: 40px;
    height: 40px;

    padding: 0;

    border: 0;
    border-radius: 9px;

    background: #f5f7fa;

    cursor: pointer;

    align-items: center;
    justify-content: center;

    flex-direction: column;

    gap: 5px;

    transition: background 0.2s ease;
}

.sc-mobile-toggle:hover {
    background: #fff0e6;
}

.sc-mobile-toggle span {
    display: block;

    width: 19px;
    height: 2px;

    background: #172033;

    border-radius: 3px;

    transition:
        transform 0.25s ease,
        opacity 0.2s ease;
}

.sc-mobile-toggle.sc-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.sc-mobile-toggle.sc-open span:nth-child(2) {
    opacity: 0;
}

.sc-mobile-toggle.sc-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}


/* =========================================================
   MOBILE OVERLAY
========================================================= */

.sc-mobile-overlay {
    position: fixed;
    inset: 0;

    z-index: 10000;

    background: rgba(12, 18, 30, 0.48);

    opacity: 0;
    visibility: hidden;

    transition:
        opacity 0.25s ease,
        visibility 0.25s ease;
}

.sc-mobile-overlay.sc-open {
    opacity: 1;
    visibility: visible;
}


/* =========================================================
   MOBILE DRAWER
========================================================= */

.sc-mobile-drawer {
    position: fixed;

    top: 0;
    right: 0;

    z-index: 10001;

    width: min(350px, 88vw);
    height: 100dvh;

    background: #ffffff;

    box-shadow:
        -15px 0 50px rgba(15, 23, 42, 0.18);

    transform: translateX(105%);

    transition:
        transform 0.3s cubic-bezier(.22,.61,.36,1);

    overflow-y: auto;

    overscroll-behavior: contain;

    -webkit-overflow-scrolling: touch;
}

.sc-mobile-drawer.sc-open {
    transform: translateX(0);
}


/* =========================================================
   MOBILE DRAWER HEADER
========================================================= */

.sc-mobile-head {
    min-height: 70px;

    padding: 10px 18px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    border-bottom: 1px solid #edf0f4;
}

.sc-mobile-head a {
    display: flex;
    align-items: center;
}

.sc-mobile-head img {
    display: block;

    width: 135px;
    height: auto;
}

.sc-mobile-close {
    width: 38px;
    height: 38px;

    border: 0;
    border-radius: 8px;

    background: #f5f7fa;

    color: #172033;

    font-size: 22px;

    cursor: pointer;
}


/* =========================================================
   MOBILE NAVIGATION
========================================================= */

.sc-mobile-nav {
    padding: 12px 16px 30px;
}

.sc-mobile-nav ul {
    list-style: none;

    padding: 0;
    margin: 0;
}

.sc-mobile-nav > ul > li {
    border-bottom: 1px solid #edf0f4;
}

.sc-mobile-nav > ul > li > a,
.sc-mobile-service-trigger,
.sc-mobile-location-trigger {
    width: 100%;

    min-height: 52px;

    padding: 0 4px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    color: #172033;

    background: transparent;
    border: 0;

    font-size: 14px;
    font-weight: 650;

    text-decoration: none;

    cursor: pointer;

    text-align: left;
}

.sc-mobile-nav > ul > li > a:hover,
.sc-mobile-service-trigger:hover,
.sc-mobile-location-trigger:hover {
    color: #f57009;
}


/* =========================================================
   MOBILE CHEVRON
========================================================= */

.sc-mobile-chevron {
    transition: transform 0.2s ease;
}

.sc-mobile-service-trigger.sc-expanded .sc-mobile-chevron,
.sc-mobile-location-trigger.sc-expanded .sc-mobile-chevron {
    transform: rotate(180deg);
}


/* =========================================================
   MOBILE SERVICE LINKS
========================================================= */

.sc-mobile-services {
    display: none;

    padding: 0 0 9px 10px;
}

.sc-mobile-services.sc-expanded {
    display: block;
}

.sc-mobile-services a {
    display: flex;
    align-items: center;

    min-height: 43px;

    padding: 7px 10px;

    color: #596579;

    font-size: 12.5px;
    font-weight: 600;

    line-height: 1.35;

    text-decoration: none;

    border-left: 2px solid #f57009;
}

.sc-mobile-services a:hover {
    color: #f57009;
    background: #fff8f3;
}


/* =========================================================
   DESKTOP LOCATIONS MEGA MENU
========================================================= */

.sc-location-mega {
    position: absolute;

    top: calc(100% + 10px);
    right: -70px;

    width: min(850px, 82vw);

    padding: 18px;

    background: #ffffff;

    border: 1px solid rgba(20, 32, 52, 0.08);
    border-radius: 15px;

    box-shadow:
        0 20px 50px rgba(15, 23, 42, 0.15);

    opacity: 0;
    visibility: hidden;

    transform: translateY(8px);

    transition:
        opacity 0.2s ease,
        visibility 0.2s ease,
        transform 0.2s ease;
}

.sc-locations:hover .sc-location-mega,
.sc-locations:focus-within .sc-location-mega {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.sc-location-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 16px;
}

.sc-location-column {
    min-width: 0;
}

.sc-location-title {
    display: flex;
    align-items: center;

    gap: 7px;

    margin: 0 0 9px;
    padding-bottom: 8px;

    color: #172033;

    font-size: 11px;
    font-weight: 800;

    letter-spacing: 0.06em;
    text-transform: uppercase;

    border-bottom: 1px solid #edf0f4;
}

.sc-location-links {
    list-style: none;

    padding: 0;
    margin: 0;
}

.sc-location-links li {
    margin: 0;
    padding: 0;
}

.sc-location-links a {
    display: flex;
    align-items: center;

    gap: 7px;

    min-height: 35px;

    padding: 6px 8px;

    color: #596579;

    font-size: 11.5px;
    font-weight: 600;

    line-height: 1.25;

    text-decoration: none;

    border-radius: 7px;

    transition:
        color 0.2s ease,
        background 0.2s ease,
        padding-left 0.2s ease;
}

.sc-location-links a:hover,
.sc-location-links a:focus-visible {
    color: #f57009;

    background: #fff6ef;

    padding-left: 11px;
}

.sc-location-icon {
    width: 19px;

    flex: 0 0 19px;

    text-align: center;

    font-size: 14px;

    line-height: 1;
}

.sc-location-flag {
    width: 19px;

    flex: 0 0 19px;

    text-align: center;

    font-size: 14px;

    line-height: 1;
}

.sc-location-note {
    margin: 14px 2px 0;

    padding-top: 11px;

    border-top: 1px solid #edf0f4;

    color: #8a93a3;

    font-size: 10px;

    line-height: 1.5;
}

.sc-location-note a {
    color: #f57009;

    font-weight: 700;

    text-decoration: none;
}


/* =========================================================
   MOBILE LOCATIONS ACCORDION
========================================================= */

.sc-mobile-locations {
    display: none;

    padding: 0 0 12px 10px;
}

.sc-mobile-locations.sc-expanded {
    display: block;
}

.sc-mobile-location-group {
    margin-bottom: 11px;
}

.sc-mobile-location-heading {
    display: flex;
    align-items: center;

    gap: 7px;

    padding: 7px 10px;

    color: #172033;

    font-size: 11px;
    font-weight: 800;

    letter-spacing: 0.05em;

    text-transform: uppercase;
}

.sc-mobile-location-links {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 2px 8px;
}

.sc-mobile-location-links a {
    display: flex;
    align-items: center;

    gap: 6px;

    min-height: 38px;

    padding: 6px 10px;

    color: #596579;

    font-size: 12px;
    font-weight: 600;

    text-decoration: none;

    border-left: 2px solid #f57009;
}

.sc-mobile-location-links a:hover,
.sc-mobile-location-links a:focus-visible {
    color: #f57009;

    background: #fff8f3;
}

.sc-mobile-location-note {
    margin: 4px 10px 0;

    color: #8a93a3;

    font-size: 10px;

    line-height: 1.45;
}


/* =========================================================
   MOBILE CTA
========================================================= */

.sc-mobile-cta {
    margin-top: 22px;
}

.sc-mobile-cta a {
    width: 100%;

    min-height: 46px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #ffffff !important;

    background: #f57009;

    border-radius: 9px;

    font-size: 13px;
    font-weight: 700;

    text-decoration: none;
}

.sc-mobile-cta a:hover {
    background: #dd5f00;
}


/* =========================================================
   MOBILE CONTACT
========================================================= */

.sc-mobile-contact {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 9px;

    margin-top: 10px;
}

.sc-mobile-contact a {
    min-height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 7px;

    color: #172033;

    background: #f5f7fa;

    border-radius: 8px;

    font-size: 11px;
    font-weight: 700;

    text-decoration: none;
}

.sc-mobile-contact a:hover {
    color: #f57009;
}


/* =========================================================
   FLOATING CALL / WHATSAPP BUTTONS
========================================================= */

.sc-floating {
    position: fixed;

    right: 17px;
    bottom: 22px;

    z-index: 9998;

    display: flex;
    flex-direction: column;

    gap: 8px;
}

.sc-floating a {
    width: 47px;
    height: 47px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    color: #ffffff !important;

    font-size: 18px;

    text-decoration: none !important;

    box-shadow:
        0 7px 20px rgba(15, 23, 42, 0.18);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.sc-floating a:hover {
    color: #ffffff !important;

    transform:
        translateY(-2px) scale(1.04);
}

.sc-floating-phone {
    background: #1677ff;
}

.sc-floating-whatsapp {
    background: #25d366;
}


/* =========================================================
   ACCESSIBILITY
========================================================= */

.sc-menu a:focus-visible,
.sc-mobile-nav a:focus-visible,
.sc-mobile-service-trigger:focus-visible,
.sc-mobile-location-trigger:focus-visible,
.sc-mobile-toggle:focus-visible,
.sc-mobile-close:focus-visible,
.sc-quote:focus-visible,
.sc-phone:focus-visible,
.sc-floating a:focus-visible {
    outline: 2px solid #f57009;
    outline-offset: 2px;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1050px) {

    .sc-header {
        padding-left: 10px;
        padding-right: 10px;
    }

    .sc-header-inner {
        padding: 0 12px;
    }

    .sc-desktop-nav {
        margin-right: 10px;
    }

    .sc-menu {
        gap: 0;
    }

    .sc-menu > li > a {
        padding-left: 8px;
        padding-right: 8px;

        font-size: 12px;
    }

    .sc-phone-content {
        display: none;
    }

    .sc-phone {
        padding: 5px;
    }

    .sc-phone-icon {
        width: 32px;
        height: 32px;
    }

    .sc-quote {
        padding: 0 11px;

        font-size: 10px;
    }

    .sc-location-mega {
        right: -100px;

        width: min(760px, 78vw);

        padding: 14px;
    }

    .sc-location-grid {
        gap: 10px;
    }

    .sc-location-links a {
        font-size: 10.5px;

        padding-left: 5px;
        padding-right: 5px;
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {

    .sc-header {
        top: 0;

        padding:
            7px 8px;
    }

    .sc-header-inner {
        height: 58px;

        padding:
            0 10px;

        border-radius: 12px;
    }

    .sc-header.sc-scrolled {
        padding-top: 5px;
    }

    .sc-header.sc-scrolled .sc-header-inner {
        height: 56px;
    }

    .sc-logo img {
        width: 125px;

        max-height: 45px;
    }

    .sc-desktop-nav {
        display: none;
    }

    .sc-actions {
        margin-left: auto;

        gap: 6px;
    }

    .sc-phone {
        padding: 0;
    }

    .sc-phone-icon {
        width: 35px;
        height: 35px;

        background: #fff2e8;
    }

    .sc-phone-content {
        display: none;
    }

    .sc-quote {
        display: none;
    }

    .sc-mobile-toggle {
        display: flex;
    }

    .sc-location-mega {
        display: none;
    }

    .sc-floating {
        right: 10px;

        bottom: 15px;

        gap: 7px;
    }

    .sc-floating a {
        width: 44px;
        height: 44px;

        font-size: 16px;
    }
}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 380px) {

    .sc-header-inner {
        padding:
            0 8px;
    }

    .sc-logo img {
        width: 112px;
    }

    .sc-mobile-toggle {
        width: 37px;
        height: 37px;
    }

    .sc-phone-icon {
        width: 33px;
        height: 33px;
    }

    .sc-mobile-location-links {
        grid-template-columns: 1fr;
    }
}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .sc-header-inner,
    .sc-dropdown,
    .sc-location-mega,
    .sc-mobile-overlay,
    .sc-mobile-drawer,
    .sc-mobile-toggle span,
    .sc-mobile-chevron {
        transition: none !important;
    }
}


/* =========================================================
   LANGUAGE SELECTOR
========================================================= */
.sc-language-switcher {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin-left: 10px;
    z-index: 1002;
}
.sc-language-switcher > summary {
    list-style: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 40px;
    padding: 8px 12px;
    border: 1px solid rgba(0,0,0,.12);
    border-radius: 8px;
    background: #fff;
    color: #1b1b1b;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}
.sc-language-switcher > summary::-webkit-details-marker { display: none; }
.sc-language-switcher > summary::after {
    content: '▾';
    font-size: 12px;
}
.sc-language-switcher[open] > summary { box-shadow: 0 6px 20px rgba(0,0,0,.10); }
.sc-language-options {
    position: absolute;
    top: calc(100% + 7px);
    right: 0;
    min-width: 175px;
    padding: 6px;
    margin: 0;
    list-style: none;
    background: #fff;
    border: 1px solid rgba(0,0,0,.10);
    border-radius: 10px;
    box-shadow: 0 12px 30px rgba(0,0,0,.14);
}
.sc-language-options a {
    display: block;
    padding: 9px 10px;
    border-radius: 7px;
    color: #222;
    text-decoration: none;
    font-size: 14px;
}
.sc-language-options a:hover,
.sc-language-options a:focus-visible { background: #f2f5f8; }
.sc-language-options a[aria-current="page"] { font-weight: 700; }
.sc-mobile-language {
    margin: 14px 0 8px;
    padding: 0 14px;
}
.sc-mobile-language-label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 700;
    opacity: .75;
}
.sc-mobile-language-list {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}
.sc-mobile-language-list a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 11px;
    min-height: 38px;
    border: 1px solid #dfe3e8;
    border-radius: 7px;
    background: #ffffff !important;
    color: #172033 !important;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.25;
    white-space: nowrap;
    box-sizing: border-box;
}
.sc-mobile-language-list a:hover,
.sc-mobile-language-list a:focus-visible {
    background: #f7f8fa !important;
    color: #f47b20 !important;
    border-color: #f47b20;
}
.sc-mobile-language-list a[aria-current="page"] {
    font-weight: 700;
    color: #f47b20 !important;
    border-color: #f47b20;
    background: #fff7f0 !important;
}
@media (max-width: 1199px) {
    .sc-language-switcher { display: none; }
}
