/* ===========================
   NAVBAR
   =========================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-h);
    z-index: 1000;
    transition: background var(--trans-normal), box-shadow var(--trans-normal);
}

.navbar.transparent {
    background: var(--white);
    box-shadow: 0 1px 12px rgba(0, 0, 0, 0.03);
}

.navbar.solid {
    background: var(--white);
    box-shadow: 0 2px 24px rgba(0, 0, 0, 0.1);
}

.navbar__inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-md);
}

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

.navbar__logo img,
.navbar__logo svg {
    height: 38px;
    width: auto;
}

.navbar__links {
    display: flex;
    align-items: center;
    gap: 2.2rem;
}

.navbar__link {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 0.75rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--navy);
    transition: color var(--trans-fast);
    position: relative;
}

.navbar__link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--red);
    transition: width var(--trans-fast);
}

.navbar__link:hover {
    color: var(--red);
}

.navbar__link:hover::after {
    width: 100%;
}

.navbar__link.active {
    color: var(--navy);
}

.navbar__link.active::after {
    width: 100%;
}

.navbar__cta {
    flex-shrink: 0;
}

/* Hamburger */
.navbar__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 6px;
    cursor: pointer;
}

.navbar__toggle span {
    display: block;
    width: 26px;
    height: 2px;
    background: var(--navy);
    border-radius: 2px;
    transition: all var(--trans-fast);
}

/* Mobile menu */
.navbar__mobile {
    display: none;
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--white);
    padding: var(--sp-md);
    border-top: 1px solid var(--grey);
    z-index: 999;
}

.navbar__mobile.open {
    display: block;
}

.navbar__mobile-links {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.navbar__mobile-link {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 0.85rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--navy);
    padding: 1rem 0;
    border-bottom: 1px solid var(--grey);
    display: block;
    transition: color var(--trans-fast), padding-left var(--trans-fast);
}

.navbar__mobile-link:hover {
    color: var(--red);
    padding-left: 0.75rem;
}

.navbar__mobile-link.active {
    color: var(--red);
}

.navbar__mobile .btn {
    margin-top: 1.5rem;
    width: 100%;
    justify-content: center;
}

@media (max-width: 1023px) {

    .navbar__links,
    .navbar__cta {
        display: none;
    }

    .navbar__toggle {
        display: flex;
    }
}

/* ===========================
   FOOTER
   =========================== */
.footer {
    background: var(--navy);
    color: var(--white);
    padding-top: var(--sp-xl);
}

.footer__top-bar {
    height: 4px;
    background: var(--red);
    margin-bottom: var(--sp-xl);
}

.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: var(--sp-lg);
    padding-bottom: var(--sp-lg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer__logo {
    height: 40px;
    width: auto;
    margin-bottom: 1.25rem;
    filter: brightness(0) invert(1);
}

.footer__tagline {
    font-family: var(--font-heading);
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 1rem;
}

.footer__desc {
    font-family: var(--font-body);
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.60);
    line-height: 1.7;
    max-width: 34ch;
}

.footer__col-title {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--white);
    margin-bottom: 1.5rem;
}

.footer__links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer__link {
    font-family: var(--font-body);
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.60);
    transition: color var(--trans-fast), padding-left var(--trans-fast);
}

.footer__link:hover {
    color: var(--white);
    padding-left: 6px;
}

.footer__contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-family: var(--font-body);
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.60);
    margin-bottom: 0.9rem;
    line-height: 1.5;
}

.footer__contact-icon {
    color: var(--red);
    font-size: 1.3rem;
    margin-top: 0;
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.footer__countries {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 1rem;
}

.footer__country-tag {
    font-family: var(--font-heading);
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.25rem 0.6rem;
    border-radius: 2px;
}

.footer__bottom {
    padding: 1.5rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer__copy {
    font-family: var(--font-body);
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.40);
}

.footer__copy-red {
    color: var(--red);
}

/* ===========================
   BACK TO TOP BUTTON
   =========================== */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--red);
    color: var(--white);
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 20px rgba(206, 14, 45, 0.4);
    transition: transform var(--trans-fast), box-shadow var(--trans-fast), opacity var(--trans-fast);
    z-index: 900;
    cursor: pointer;
    border: none;
}

.back-to-top.visible {
    display: flex;
}

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(206, 14, 45, 0.55);
}

/* ===========================
   PROJECT CARD
   =========================== */
.project-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    aspect-ratio: 4/3;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

.project-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--trans-slow);
}

.project-card:hover .project-card__img {
    transform: scale(1.07);
}

.project-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 42, 82, 0.92) 0%, rgba(0, 42, 82, 0.30) 60%, transparent 100%);
    transition: opacity var(--trans-normal);
}

.project-card__body {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
}

.project-card__tag {
    font-family: var(--font-heading);
    font-size: 0.65rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--red);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    padding: 0.2rem 0.6rem;
    border-radius: 2px;
    display: inline-block;
    margin-bottom: 0.6rem;
}

.project-card__title {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.05rem;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.3rem;
}

.project-card__client {
    font-family: var(--font-body);
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.65);
}

/* ===========================
   SERVICE CARD
   =========================== */
.service-card {
    background: var(--white);
    border: 1px solid var(--grey);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    transition: transform var(--trans-normal), box-shadow var(--trans-normal), border-color var(--trans-normal);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: var(--red);
    transition: height var(--trans-normal);
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: var(--grey-dark);
}

.service-card:hover::before {
    height: 100%;
}

.service-card__sublabel {
    font-family: var(--font-heading);
    font-size: 0.68rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 0.75rem;
}

.service-card__title {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.05rem;
    color: var(--navy);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 1rem;
}

.service-card__text {
    font-family: var(--font-body);
    font-size: 0.92rem;
    color: #555;
    line-height: 1.7;
}

/* ===========================
   PILLAR CARD (3-col)
   =========================== */
.pillar-card {
    display: flex;
    flex-direction: column;
    gap: 0;
    text-align: center;
    padding: 3rem 2rem;
    position: relative;
}

.pillar-card+.pillar-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10%;
    bottom: 10%;
    width: 1px;
    background: var(--grey);
}

.pillar-card__num {
    margin: 0 auto 1.5rem;
}

.pillar-card__sublabel {
    font-family: var(--font-heading);
    font-size: 0.68rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 0.6rem;
}

.pillar-card__title {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.15rem;
    color: var(--navy);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 1rem;
}

.pillar-card__text {
    font-family: var(--font-body);
    font-size: 0.92rem;
    color: #555;
    line-height: 1.7;
    text-align: center;
}

/* Value card (dark) */
.value-card {
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
}

.value-card--navy {
    background: var(--navy);
}

.value-card--red {
    background: var(--red);
}

.value-card__num {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 2.5rem;
    color: rgba(255, 255, 255, 0.18);
    letter-spacing: 0.05em;
    line-height: 1;
    margin-bottom: 1rem;
}

.value-card__title {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.75rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 0.4rem;
}

.value-card__name {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.5rem;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 1.25rem;
}

.value-card__text {
    font-family: var(--font-body);
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.7;
    margin-top: auto;
}

/* ===========================
   TIMELINE
   =========================== */
.timeline {
    display: flex;
    gap: 0;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 22px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--grey);
    z-index: 0;
}

.timeline-item {
    flex: 1;
    position: relative;
    padding-top: 3.5rem;
    text-align: center;
}

.timeline-item__dot {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--white);
    border: 3px solid var(--red);
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--trans-fast), border-color var(--trans-fast);
}

.timeline-item:hover .timeline-item__dot {
    background: var(--red);
}

.timeline-item__year {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.2rem;
    color: var(--navy);
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.timeline-item__label {
    font-family: var(--font-heading);
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 0.5rem;
}

.timeline-item__text {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: #666;
    line-height: 1.6;
    padding: 0 0.5rem;
}

/* ===========================
   FILTER BAR
   =========================== */
.filter-bar {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    font-family: var(--font-heading);
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 0.65rem 1.4rem;
    border-radius: 2px;
    border: 1px solid var(--grey);
    color: #666;
    background: var(--white);
    transition: all var(--trans-fast);
    cursor: pointer;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--navy);
    color: var(--white);
    border-color: var(--navy);
}

/* ===========================
   EXCELLENCE ICON CARD
   =========================== */
.icon-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--red);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--white);
    margin: 0 auto 1.5rem;
    flex-shrink: 0;
}

/* ===========================
   CONTACT FORM
   =========================== */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-label {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--navy);
}

.form-input,
.form-textarea {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--black);
    background: var(--gypsum);
    border: 1px solid var(--grey);
    border-radius: var(--radius);
    padding: 0.9rem 1.1rem;
    transition: border-color var(--trans-fast), box-shadow var(--trans-fast);
    width: 100%;
}

.form-input:focus,
.form-textarea:focus {
    border-color: var(--navy);
    box-shadow: 0 0 0 3px rgba(0, 59, 113, 0.12);
    background: var(--white);
}

.form-textarea {
    resize: vertical;
    min-height: 140px;
}

/* ===========================
   FOOTER RESPONSIVE
   =========================== */
@media (max-width: 1023px) {
    .footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--sp-md);
    }
}

@media (max-width: 599px) {
    .footer__grid {
        grid-template-columns: 1fr;
    }

    .footer__bottom {
        flex-direction: column;
        text-align: center;
    }

    .stats-strip {
        flex-wrap: wrap;
    }

    .stat-item {
        flex: 1 0 50%;
    }

    .timeline {
        flex-direction: column;
    }

    .timeline::before {
        display: none;
    }

    .timeline-item {
        padding-top: 0;
        padding-left: 3.5rem;
        text-align: left;
    }

    .timeline-item__dot {
        top: 0;
        left: 0;
        transform: none;
    }
}