/* SY TRAFFIC BV - custom enhancements */

/* Base typography */
body {
    font-family: "Open Sans", sans-serif;
    color: #334155;
}

h1, h2, h3, h4, h5, h6,
.display-1, .display-2, .display-3, .display-5, .display-6,
.navbar .nav-link,
.btn {
    font-family: "Rubik", "Open Sans", sans-serif;
}

/* Shared site header (home, contact, articles, legal) */
.site-topbar {
    position: relative;
    z-index: 1040;
}

.topbar-right {
    min-height: 48px;
    white-space: nowrap;
}

.topbar-phone-link,
.topbar-phone-label {
    font-size: clamp(0.95rem, 1.4vw, 1.15rem);
    line-height: 1.2;
}

.navbar .btn-primary.active {
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.35);
}

.brand-wrap {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    max-width: 100%;
}

.brand-text {
    font-family: "Rubik", "Open Sans", sans-serif;
    font-size: clamp(1.05rem, 2vw, 1.45rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.02em;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
}

@media (max-width: 575.98px) {
    .navbar .navbar-brand {
        padding-left: 1rem !important;
        padding-right: 2rem;
        height: 64px;
    }
    .brand-text {
        font-size: 0.95rem;
    }
}

/* Carousel & media sizing */
#header-carousel .carousel-item {
    height: clamp(420px, 70vh, 680px);
    min-height: 420px;
    max-height: 680px;
    background: #02245B;
    overflow: hidden;
}

#header-carousel .carousel-media,
#header-carousel .carousel-item img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

#header-carousel .carousel-item img {
    object-fit: cover;
    object-position: center center;
}

.ratio-box {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #e9eef5;
}

.ratio-box img,
.project-media img,
.article-thumb img,
.article-hero img,
.feature-img img,
.about-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.about-images-row {
    min-height: 360px;
}

.about-images-row > [class*="col-"] {
    display: flex;
}

.about-img {
    aspect-ratio: 3 / 4;
    width: 100%;
    min-height: 260px;
    max-height: 400px;
}

.feature-img {
    aspect-ratio: 4 / 3;
    min-height: 280px;
    max-height: 460px;
}

.project-item {
    display: block;
    position: relative;
    overflow: hidden;
}

.project-media {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #0b2a63;
}

.project-item img,
.project-carousel .owl-item.center img {
    transform: none;
    transition: transform .4s ease, filter .4s ease;
    filter: grayscale(.15);
}

.project-item:hover img,
.project-carousel .owl-item.center img {
    transform: scale(1.08);
    filter: grayscale(0);
}

.experience-badge {
    min-width: 120px;
    text-align: center;
}

.experience-badge .display-2 {
    line-height: 1;
    color: #fff;
}

/* FAQ */
.faq-item {
    border: 1px solid #e8edf5;
    border-radius: 12px;
    margin-bottom: .85rem;
    overflow: hidden;
    background: #fff;
}

.faq-item .faq-question {
    width: 100%;
    text-align: left;
    background: #fff;
    border: 0;
    padding: 1.05rem 1.2rem;
    font-family: "Rubik", "Open Sans", sans-serif;
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--dark);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    cursor: pointer;
}

.faq-item .faq-question i {
    color: var(--primary);
    transition: transform .25s ease;
}

.faq-item .faq-question[aria-expanded="true"] i {
    transform: rotate(180deg);
}

.faq-item .faq-answer {
    padding: 0 1.2rem 1.15rem;
    color: var(--secondary);
    line-height: 1.7;
}

/* Articles */
.article-card {
    background: #fff;
    border: 1px solid #edf0f4;
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease;
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(2, 36, 91, .1);
}

.article-thumb {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #e9eef5;
}

.article-body {
    padding: 1.25rem 1.35rem 1.5rem;
}

.article-body time {
    display: block;
    color: var(--primary);
    font-size: .9rem;
    font-weight: 600;
    margin-bottom: .5rem;
}

.article-body h3 {
    font-size: 1.15rem;
    margin-bottom: .75rem;
}

.article-body h3 a {
    color: var(--dark);
    text-decoration: none;
}

.article-body h3 a:hover {
    color: var(--primary);
}

.article-body p {
    color: var(--secondary);
    margin-bottom: 1rem;
}

.read-more {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

.article-hero {
    aspect-ratio: 21 / 9;
    overflow: hidden;
    background: #e9eef5;
}

@media (max-width: 767.98px) {
    .article-hero {
        aspect-ratio: 16 / 10;
    }
}

.article-content,
.legal-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #334155;
}

.article-content h3,
.legal-content h3 {
    color: var(--dark);
    margin-top: 1.75rem;
}

.maps-iframe {
    min-height: 420px;
    border: 0;
}

.contact-info-box .btn-square {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Success modal */
.success-modal .success-icon {
    font-size: 3.5rem;
    color: #16a34a;
}

/* Floating actions */
.float-actions {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 1040;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    overflow: visible;
}

.float-btn {
    width: 54px;
    height: 54px;
    min-width: 54px;
    min-height: 54px;
    border-radius: 50%;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    color: #fff !important;
    border: 0;
    text-decoration: none !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .18);
    transition: transform .2s ease, background .2s ease;
    padding: 0 !important;
    margin: 0;
    line-height: 0 !important;
    font-size: 0 !important;
}

.float-btn i,
.float-btn svg {
    display: block;
    margin: 0 auto;
    line-height: 1;
    flex-shrink: 0;
}

.float-btn i {
    font-size: 1.2rem !important;
    width: 1.2rem;
    height: 1.2rem;
    text-align: center;
}

.float-btn:hover {
    transform: translateY(-2px);
    color: #fff !important;
}

a.back-to-top.float-btn {
    background: var(--primary) !important;
    position: relative !important;
    inset: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    top: auto !important;
    display: inline-flex !important;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity .25s ease, transform .25s ease, visibility .25s ease;
    z-index: 2;
}

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

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

a.back-to-top.float-btn .back-to-top-icon {
    width: 22px;
    height: 22px;
    display: block;
    color: #fff;
}

.whatsapp-btn {
    background: #25D366;
}

.whatsapp-btn i {
    font-size: 1.5rem !important;
    width: 1.5rem;
    height: 1.5rem;
}

.social-flower {
    position: relative;
    width: 54px;
    height: 54px;
    overflow: visible;
    z-index: 5;
}

.social-toggle {
    background: var(--dark);
    position: relative;
    z-index: 3;
}

.social-flower.open .social-toggle {
    background: var(--primary);
}

.social-petals {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 0;
    height: 0;
    pointer-events: none;
    z-index: 2;
}

.social-petals .petal {
    position: absolute;
    left: 0;
    top: 0;
    width: 46px;
    height: 46px;
    margin: -23px 0 0 -23px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff !important;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    box-shadow: 0 6px 16px rgba(2, 36, 91, .22);
    opacity: 0;
    visibility: hidden;
    transform: rotate(var(--angle, 180deg)) translate(0) rotate(calc(var(--angle, 180deg) * -1)) scale(0.45);
    transition: transform .35s cubic-bezier(.2, .9, .3, 1.15), opacity .25s ease, visibility .25s ease, background .2s ease;
    transition-delay: calc(var(--i, 0) * 0.035s);
    font-size: 1rem;
    line-height: 1;
}

.social-petals .petal i {
    font-size: 1.05rem !important;
    line-height: 1;
    display: block;
}

.social-flower.open .social-petals {
    pointer-events: auto;
}

.social-flower.open .social-petals .petal {
    opacity: 1;
    visibility: visible;
    transform: rotate(var(--angle, 180deg)) translate(var(--radius, 90px)) rotate(calc(var(--angle, 180deg) * -1)) scale(1);
}

.social-petals .petal:hover {
    background: var(--dark);
    color: #fff !important;
}

.hp-field {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

/* Section rhythm */
.container-xxl.py-5 {
    padding-top: 4rem !important;
    padding-bottom: 4rem !important;
}

#project.container-fluid {
    padding-top: 4rem !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

#project .mt-5 {
    margin-top: 0 !important;
}

@media (max-width: 767.98px) {
    .container-xxl.py-5 {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
}
.locations-map-wrap {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(2, 36, 91, .12);
    border: 1px solid #e8edf5;
}

.work-areas-map {
    width: 100%;
    height: min(520px, 70vh);
    min-height: 360px;
    background: #dbe4f0;
}

.location-chips {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
    justify-content: center;
}

.location-chip {
    border: 1px solid #d7dee8;
    background: #fff;
    color: var(--dark);
    border-radius: 999px;
    padding: .55rem 1rem;
    font-family: "Rubik", "Open Sans", sans-serif;
    font-weight: 600;
    font-size: .95rem;
    cursor: pointer;
    transition: .2s ease;
}

.location-chip i {
    color: var(--primary);
    margin-right: .35rem;
}

.location-chip:hover,
.location-chip.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.location-chip:hover i,
.location-chip.active i {
    color: #fff;
}

.sy-map-pin {
    background: transparent;
    border: 0;
}

.sy-map-pin-dot {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: #FF5E14;
    font-size: 1.7rem;
    filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .25));
}

.map-popup {
    min-width: 160px;
}

.map-popup strong {
    display: block;
    color: #02245B;
    font-size: 1.05rem;
    margin-bottom: .35rem;
}

.map-popup-text {
    margin: 0 0 .5rem;
    color: #5F656F;
    font-size: .9rem;
}

.map-popup-link {
    display: block;
    color: #FF5E14;
    font-weight: 600;
    margin-bottom: .55rem;
    text-decoration: none;
}

.map-popup-btn {
    display: inline-block;
    background: #FF5E14;
    color: #fff !important;
    text-decoration: none;
    padding: .4rem .75rem;
    border-radius: 8px;
    font-size: .85rem;
    font-weight: 600;
}

.leaflet-container a {
    color: #FF5E14;
}

/* Cookie bar */
.cookie-consent {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 1080;
    background: rgba(2, 36, 91, .97);
    color: #fff;
    border-radius: 14px;
    padding: 1rem 1.15rem;
    box-shadow: 0 16px 40px rgba(0, 0, 0, .25);
}

.cookie-inner {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.cookie-inner a {
    color: #ffb894;
}

.cookie-actions {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
}

@media (max-width: 575.98px) {
    .float-actions {
        right: 12px;
        bottom: 12px;
    }
    .float-btn,
    .social-flower {
        width: 50px;
        height: 50px;
        min-width: 50px;
        min-height: 50px;
    }
    .display-1 {
        font-size: calc(1.6rem + 2.5vw) !important;
    }
    .cookie-consent {
        bottom: 90px;
    }
}
