/* ==========================================================================
   KIVARO - Premium Project Management & Advisory
   Custom Stylesheet
   ========================================================================== */

/* ---------- Root Variables ---------- */
:root {
    --color-black: #0a0a0a;
    --color-dark: #1a1a1a;
    --color-charcoal: #2c2c2c;
    --color-grey-dark: #4a4a4a;
    --color-grey: #6c6c6c;
    --color-grey-light: #b8b8b8;
    --color-grey-lighter: rgba(255,255,255,0.09);
    --color-bg-light: #061022;
    --color-bg-cream: #0D1B2E;
    --color-bg-soft: #1E293B;
    --color-white: #ffffff;
    --color-accent: #ffffff;
    --color-navy: #061022;
    --color-navy-soft: #0D1B2E;

    --font-heading: 'Archivo', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    --transition-base: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-slow: all 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);

    --section-padding-y: 120px;
    --section-padding-y-sm: 80px;
}

/* ---------- Base / Reset ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-charcoal);
    background-color: #061022;
    font-weight: 400;
    overflow-x: hidden;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--color-black);
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1, .h1 {
    font-size: clamp(1.875rem, 3.5vw, 3.5rem);
    font-weight: 600;
    letter-spacing: -0.03em;
    text-transform: uppercase;
}

h2, .h2 {
    font-size: clamp(1.5rem, 2.5vw, 2.5rem);
    font-weight: 600;
    text-transform: uppercase;
}

h3, .h3 {
    font-size: clamp(1.5rem, 2.5vw, 2.25rem);
    font-weight: 600;
}

h4, .h4 {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
    font-weight: 600;
}

h5, .h5 {
    font-size: 1.125rem;
    font-weight: 600;
}

h6, .h6 {
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

p {
    margin-bottom: 1.25rem;
    color: #CBD5E1;
    font-weight: 400;
}

p.lead {
    font-size: 1.25rem;
    line-height: 1.6;
    font-weight: 300;
    color: #CBD5E1;
}

a {
    color: var(--color-black);
    text-decoration: none;
    transition: var(--transition-base);
}

a:hover {
    color: var(--color-grey);
}

.text-uppercase-spaced {
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--color-grey);
}

/* ---------- Layout / Container ---------- */
.container-xxl {
    max-width: 1440px;
    padding-left: 2rem;
    padding-right: 2rem;
}

.section {
    padding-top: var(--section-padding-y);
    padding-bottom: var(--section-padding-y);
}

@media (max-width: 991.98px) {
    :root {
        --section-padding-y: 80px;
        --section-padding-y-sm: 60px;
    }
}

/* ---------- Buttons ---------- */
.btn {
    border-radius: 0;
    padding: 0.95rem 2.25rem;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    transition: var(--transition-base);
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

.btn-outline-light-custom {
    background-color: transparent;
    color: var(--color-white);
    border-color: var(--color-white);
}

.btn-outline-light-custom:hover {
    background-color: var(--color-white);
    color: var(--color-black);
}

.btn-link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-black);
    padding: 0;
    border: 0;
    background: transparent;
}

.btn-link-arrow .arrow {
    display: inline-block;
    width: 36px;
    height: 1px;
    background: var(--color-black);
    position: relative;
    transition: var(--transition-base);
}

.btn-link-arrow .arrow::after {
    content: '';
    position: absolute;
    right: 0;
    top: -3px;
    width: 8px;
    height: 8px;
    border-top: 1px solid var(--color-black);
    border-right: 1px solid var(--color-black);
    transform: rotate(45deg);
}

.btn-link-arrow:hover .arrow {
    width: 56px;
}

/* ---------- Header / Navigation ---------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    background-color: rgba(255, 255, 255, 0);
    transition: var(--transition-base);
    padding: 1.5rem 0;
}

.site-header.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    padding: 0.75rem 0;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(10px);
}

.navbar-brand {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    color: var(--color-black) !important;
    padding: 0;
}

.site-header.transparent:not(.scrolled) .navbar-brand,
.site-header.transparent:not(.scrolled) .nav-link {
    color: var(--color-white) !important;
}

.site-header.transparent:not(.scrolled) .navbar-toggler-icon-custom span {
    background-color: var(--color-white);
}

/*  CUSTOM STYLE  */
.site-header.transparent:not(.scrolled) .navbar-brand img{filter: none; height: 40px;}
.navbar-brand img{filter: invert(1) sepia(1) saturate(5) hue-rotate(200deg); height: 40px;}
.footer-brand img{height: 40px;}

.navbar-nav .nav-link {
    color: var(--color-black);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 0.5rem 1.25rem !important;
    position: relative;
    transition: var(--transition-base);
}

.navbar-nav .nav-link:hover {
    color: var(--color-grey);
}

.navbar-nav .nav-link.active {
    color: var(--color-black);
}

.navbar-nav .nav-link.active:not(.dropdown-toggle)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1.25rem;
    right: 1.25rem;
    height: 1px;
    background-color: currentColor;
}

/* Keep Bootstrap caret visible on active dropdown toggles */
.navbar-nav .nav-link.dropdown-toggle::after {
    vertical-align: 0.18em;
    margin-left: 0.35em;
    transition: transform 0.3s ease;
}

.navbar-nav .nav-link.dropdown-toggle[aria-expanded="true"]::after {
    transform: rotate(-180deg);
}

/* Dropdown */
.dropdown-menu {
    border: 0;
    border-radius: 0;
    margin-top: 0.5rem !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    padding: 1rem 0;
    min-width: 240px;
    background-color: var(--color-white);
}

.dropdown-item {
    padding: 0.65rem 1.5rem;
    font-size: 0.82rem;
    color: var(--color-charcoal);
    transition: var(--transition-base);
    font-weight: 400;
    letter-spacing: 0.06em;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background-color: var(--color-bg-light);
    color: var(--color-black);
    padding-left: 1.85rem;
}

/* Custom toggler */
.navbar-toggler {
    border: 0;
    padding: 0.5rem;
    box-shadow: none !important;
}

.navbar-toggler-icon-custom {
    display: inline-block;
    width: 28px;
    height: 18px;
    position: relative;
}

.navbar-toggler-icon-custom span {
    display: block;
    position: absolute;
    height: 1px;
    width: 100%;
    background: var(--color-black);
    transition: var(--transition-base);
}

.navbar-toggler-icon-custom span:nth-child(1) { top: 0; }
.navbar-toggler-icon-custom span:nth-child(2) { top: 8px; }
.navbar-toggler-icon-custom span:nth-child(3) { top: 16px; }

.hero-content {
    position: relative;
    z-index: 2;
    padding-bottom: 4rem;
    padding-top: 4rem;
    width: 100%;
}

.hero-eyebrow {
    color: rgba(255, 255, 255, 0.92);
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.25);
    transform: translateY(12px);
    transition: transform 0.9s ease 0.15s;
}

.hero-title {
    color: var(--color-white);
    margin-bottom: 2rem;
    max-width: 18ch;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
    transform: translateY(20px);
    transition: transform 0.9s ease 0.3s;
}

p.hero-lead,
.hero-lead {
    color: rgba(255, 255, 255, 0.95);
    max-width: 580px;
    font-size: 1.15rem;
    margin-bottom: 2.5rem;
    text-shadow: 0 1px 16px rgba(0, 0, 0, 0.3);
    transform: translateY(20px);
    transition: transform 0.9s ease 0.45s;
}

/* ---------- Inner Page Hero ---------- */
.page-hero {
    background-color: #061022;
    padding: 200px 0 100px;
    position: relative;
    overflow: hidden;
    color: var(--color-white);
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-image: var(--page-hero-image, none);
    z-index: 0;
    transform: scale(1.03);
    transition: transform 12s ease-out;
}

.page-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(6,16,34,0.85) 0%, rgba(6,16,34,0.65) 55%, rgba(30,41,59,0.4) 100%);
    z-index: 1;
}

.page-hero > .container-xxl {
    position: relative;
    z-index: 2;
}

/* Per-page background images (soft, complementary tones) */
.page-hero-about      { --page-hero-image: url('../images/about-banner.jpg'); }
.page-hero-services   { --page-hero-image: url('../images/services-banner.jpg'); }
.page-hero-projects   { --page-hero-image: url('../images/projects-banner.jpg'); }
.page-hero-contact    { --page-hero-image: url('../images/contact-banner.jpg'); }
.page-hero-experience { --page-hero-image: url('../images/experience-banner.jpg'); }
.page-hero-team { --page-hero-image: url('../images/team-banner.jpg'); }

/* Project detail page */
.project-detail         { padding-top: 180px; }
.project-detail h6      { margin-bottom: 0.15rem; }
.project-detail-title   { text-transform: uppercase; }
.project-detail .btn    { padding: 0.6rem 1.5rem; }
.img-4-3                { width: 100%; aspect-ratio: 4/3; object-fit: cover; }

@media (max-width: 767.98px) {
    .project-detail     { padding-top: 100px; }
}

.page-hero h1 {
    font-size: clamp(1.875rem, 3.5vw, 3.5rem);
    margin-bottom: 1.5rem;
    color: var(--color-white);
}

.page-hero p,
.page-hero .lead {
    color: rgba(255, 255, 255, 0.88);
}

.page-hero .text-uppercase-spaced {
    color: rgba(255, 255, 255, 0.7);
}

.page-hero .breadcrumb-custom {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 2rem;
}

.page-hero .breadcrumb-custom a {
    color: rgba(255, 255, 255, 0.65);
}

.page-hero .breadcrumb-custom a:hover {
    color: var(--color-white);
}

/* ---------- Section Heading ---------- */
.section-eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: var(--color-grey);
    margin-bottom: 1.5rem;
    font-weight: 500;
    position: relative;
    padding-left: 50px;
}

.section-eyebrow::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 36px;
    height: 1px;
    background: var(--color-grey);
}

.section-title {
    margin-bottom: 1.5rem;
}

/* ---------- Project Card ---------- */
.project-card {
    display: block;
    color: inherit;
    margin-bottom: 3rem;
}

.project-card .project-image {
    position: relative;
    overflow: hidden;
    background-color: var(--color-bg-light);
    margin-bottom: 1.5rem;
}

.project-card .project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.project-card:hover .project-image img {
    transform: scale(1.06);
}

.project-card .project-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0);
    transition: var(--transition-base);
}

.project-card:hover .project-image::after {
    background: rgba(0,0,0,0.05);
}

.project-card .project-meta {
    font-size: 0.72rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-grey);
    margin-bottom: 0.5rem;
}

.project-card h4 {
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    transition: var(--transition-base);
}

.project-card:hover h4 {
    color: var(--color-grey-dark);
}

/* ---------- About Image Stack (Home page) ---------- */
.about-image-stack {
    position: relative;
    padding-bottom: 2.5rem;
    padding-right: 2.5rem;
}

.about-image-stack .about-image-main {
    aspect-ratio: 4 / 5;
    position: relative;
    z-index: 1;
}

.about-image-stack .about-image-accent {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 55%;
    aspect-ratio: 4 / 3;
    z-index: 2;
    border: 8px solid var(--color-white);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}

.about-image-stack img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 767.98px) {
    .about-image-stack {
        padding-bottom: 1.5rem;
        padding-right: 1.5rem;
    }
    .about-image-stack .about-image-main { aspect-ratio: 4 / 3; }
    .about-image-stack .about-image-accent { width: 50%; aspect-ratio: 1 / 1; border-width: 5px; }
}

/* ---------- Image Reveal Block ---------- */
.image-reveal {
    overflow: hidden;
    position: relative;
}

.image-reveal img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.image-reveal:hover img {
    transform: scale(1.04);
}

.contact-info-block h6 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--color-grey);
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.contact-info-block p,
.contact-info-block a {
    font-size: 1.05rem;
    color: var(--color-black);
    line-height: 1.6;
}

/* ---------- Filter Tabs ---------- */
.filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 4rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--color-grey-lighter);
}

.filter-tabs .filter-btn {
    background: transparent;
    border: 1px solid var(--color-grey-lighter);
    padding: 0.65rem 1.5rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--color-grey-dark);
    transition: var(--transition-base);
    cursor: pointer;
    font-weight: 500;
}

.filter-tabs .filter-btn:hover {
    border-color: var(--color-black);
    color: var(--color-black);
}

.filter-tabs .filter-btn.active {
    background-color: var(--color-black);
    color: var(--color-white);
    border-color: var(--color-black);
}

/* ---------- Footer ---------- */
.site-footer {
    background-color: var(--color-black);
    color: var(--color-grey-light);
    padding: 100px 0 30px;
    position: relative;
}

.site-footer h6 {
    color: var(--color-white);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.75rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.site-footer .footer-brand {
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    color: var(--color-white);
    margin-bottom: 1.5rem;
    display: inline-block;
}

.site-footer p,
.site-footer a {
    color: var(--color-grey-light);
    font-size: 0.95rem;
    line-height: 1.8;
}

.site-footer a:hover {
    color: var(--color-white);
}

.site-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-footer ul li {
    margin-bottom: 0.5rem;
}

.site-footer .footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 5rem;
    padding-top: 2rem;
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    color: var(--color-grey);
}

/* ---------- Animations / Reveal ---------- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ---------- Utilities ---------- */
.bg-light-grey { background-color: var(--color-bg-light); }

@media (min-width: 992px) {
    /* Hide mobile-only elements on desktop */
    .mobile-nav-badge,
    .mobile-nav-header,
    .mobile-nav-backdrop { display: none !important; }
}

/* Bullet list */
.list-clean {
    list-style: none;
    padding: 0;
    margin: 0;
}

.list-clean li {
    padding: 0.5rem 0;
    border-top: 1px solid var(--color-grey-lighter);
    font-size: 0.95rem;
    color: var(--color-charcoal);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.list-clean li:last-child {
    border-bottom: 1px solid var(--color-grey-lighter);
}

.list-clean li::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background-color: var(--color-black);
    border-radius: 50%;
    flex-shrink: 0;
}

/* Responsive tweaks */
@media (max-width: 991.98px) {
    /* ── Mobile nav panel (slide-in from left) ── */
    .navbar-collapse.collapse:not(.show) { display: block !important; }

    .navbar-collapse {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 85% !important;
        max-width: 360px !important;
        height: 100dvh !important;
        max-height: 100dvh !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        -webkit-overflow-scrolling: touch !important; /* iOS momentum scroll */
        overscroll-behavior: contain !important;      /* prevent scroll chaining to body */
        background: #ffffff !important;
        padding: 0 !important;
        margin: 0 !important;
        border: none !important;
        z-index: 1055 !important;
        transform: translateX(-100%);
        visibility: hidden;
        transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94), visibility 0s linear 0.35s !important;
    }

    .navbar-collapse.collapsing {
        height: 100dvh !important;
        overflow-y: auto !important;
        transition: none !important;
    }

    .navbar-collapse.mobile-nav-open {
        transform: translateX(0) !important;
        visibility: visible !important;
        transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94), visibility 0s linear 0s !important;
    }

    /* Backdrop — z-index 1029 keeps it below site-header (1030) so the
       panel (inside the header's stacking context) correctly paints above it */
    .mobile-nav-backdrop {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(6, 16, 34, 0.55);
        z-index: 1029;
        backdrop-filter: blur(2px);
        -webkit-backdrop-filter: blur(2px);
    }
    .mobile-nav-backdrop.active { display: block; }

    /* Panel header */
    .mobile-nav-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 1.1rem 1.25rem;
        background: #061022;
        border-bottom: 1px solid rgba(255,255,255,0.08);
        position: sticky;
        top: 0;
        z-index: 2;
    }
    .mobile-nav-logo { height: 34px; width: auto; filter: none !important; }
    .mobile-nav-close {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 34px;
        height: 34px;
        background: rgba(255,255,255,0.1);
        border: none;
        border-radius: 50%;
        color: #ffffff;
        cursor: pointer;
        transition: background 0.2s;
        flex-shrink: 0;
    }
    .mobile-nav-close:hover { background: rgba(255,255,255,0.2); }

    /* Nav list */
    .navbar-nav { padding: 0.25rem 0; }
    .navbar-nav > .nav-item { border-bottom: 1px solid #f0f0f0; }
    .navbar-nav > .nav-item:last-child { border-bottom: none; }

    /* Nav links */
    .site-header.transparent:not(.scrolled) .navbar-collapse .nav-link { color: #1a1a1a !important; }
    .navbar-nav .nav-link {
        display: flex !important;
        align-items: center !important;
        gap: 0.85rem !important;
        padding: 0.875rem 1.25rem !important;
        color: #1a1a1a !important;
        font-size: 0.82rem !important;
        font-weight: 500 !important;
    }
    .navbar-nav .nav-link:hover { background: #f7f8fa; color: #061022 !important; }
    .navbar-nav .nav-link.active { color: #061022 !important; }
    .navbar-nav .nav-link.active::after { display: none; }

    /* Letter badges */
    .mobile-nav-badge {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 34px;
        height: 34px;
        min-width: 34px;
        background: #061022;
        color: #ffffff;
        font-size: 0.72rem;
        font-weight: 600;
        border-radius: 8px;
        letter-spacing: 0.02em;
        text-transform: uppercase;
        font-family: var(--font-heading);
    }

    /* Dropdown toggle — chevron on the right */
    .navbar-nav .nav-link.dropdown-toggle { position: relative; }
    .navbar-nav .nav-link.dropdown-toggle::after {
        display: inline-block !important;
        margin-left: auto !important;
        border-top: 0 !important;
        border-right: 1.5px solid #aaa !important;
        border-bottom: 1.5px solid #aaa !important;
        border-left: 0 !important;
        width: 7px !important;
        height: 7px !important;
        transform: rotate(-45deg) !important;
        vertical-align: 0 !important;
        transition: transform 0.25s !important;
    }
    .navbar-nav .nav-link.dropdown-toggle[aria-expanded="true"]::after {
        transform: rotate(45deg) !important;
    }

    /* Dropdown sub-items */
    .dropdown-menu { box-shadow: none !important; padding: 0 !important; border: none !important; background: #f7f8fa !important; margin: 0 !important; }
    .dropdown-item {
        padding: 0.7rem 1.25rem 0.7rem 4.25rem !important;
        font-size: 0.79rem !important;
        border-bottom: 1px solid #ebebeb !important;
        color: #4a4a4a !important;
    }
    .dropdown-item:last-child { border-bottom: none !important; }
    .dropdown-item:hover, .dropdown-item:focus {
        background: #eef0f3 !important;
        color: #061022 !important;
        padding-left: 4.25rem !important;
    }
    .page-hero { padding: 160px 0 80px; }
    .hero-lead { font-size: 1rem; }
}

/* ==========================================================================
   NEW COMPONENTS (premium redesign)
   ========================================================================== */

/* ---------- Static Hero (no carousel) ---------- */
.hero-static {
    position: relative;
    min-height: 100vh;
    background-color: #061022;
    overflow: hidden;
    color: var(--color-white);
    display: flex;
    align-items: center;
    padding-top: 100px;
}

.hero-static .hero-bg-static {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
    transform: scale(1.02);
    animation: heroSubtleZoom 18s ease-out forwards;
}

@keyframes heroSubtleZoom {
    from { transform: scale(1.02); }
    to { transform: scale(1.06); }
}

.hero-static .hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, rgba(6,16,34,0.85) 0%, rgba(6,16,34,0.68) 45%, rgba(30,41,59,0.45) 75%, rgba(100,116,139,0.28) 100%);
    z-index: 1;
}

.hero-static .hero-content {
    position: relative;
    z-index: 2;
    padding: 5rem 0 6rem;
    width: 100%;
}

.hero-static .hero-eyebrow {
    color: rgba(255, 255, 255, 0.92);
    opacity: 0;
    transform: translateY(14px);
    animation: heroRise 1.1s cubic-bezier(0.22, 0.61, 0.36, 1) 0.2s forwards;
}

.hero-static .hero-title {
    color: var(--color-white);
    margin-bottom: 2rem;
    max-width: 20ch;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.25);
    opacity: 0;
    transform: translateY(20px);
    animation: heroRise 1.1s cubic-bezier(0.22, 0.61, 0.36, 1) 0.35s forwards;
}

.hero-static .hero-lead {
    color: rgba(255, 255, 255, 0.92);
    max-width: 620px;
    font-size: 1.15rem;
    margin-bottom: 0;
    opacity: 0;
    transform: translateY(20px);
    animation: heroRise 1.1s cubic-bezier(0.22, 0.61, 0.36, 1) 0.5s forwards;
}

.hero-static .hero-meta-static {
    position: absolute;
    bottom: 3rem;
    left: 0;
    right: 0;
    z-index: 3;
    pointer-events: none;
    opacity: 0;
    animation: fadeIn 1.2s ease 1s forwards;
}

.hero-static .hero-meta-static .meta-item {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.72rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

@keyframes heroRise {
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    to { opacity: 1; }
}

@media (max-width: 991.98px) {
    .hero-static { min-height: 88vh; }
    .hero-static .hero-content { padding: 4rem 0 5rem; }
    .hero-static .hero-meta-static { bottom: 1.5rem; }
    .hero-static .hero-lead { font-size: 1rem; }
}

/* ---------- Service cards (2-up) ---------- */
.service-card {
    position: relative;
    overflow: hidden;
    height: 100%;
    min-height: 520px;
    display: block;
    text-decoration: none;
    color: var(--color-white);
    background-color: var(--color-navy);
}

.service-card .service-card-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 1.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 0;
}

.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(6, 16, 34, 0.25) 0%, rgba(6, 16, 34, 0.58) 50%, rgba(6, 16, 34, 0.95) 100%);
    z-index: 1;
    transition: var(--transition-base);
}

.service-card:hover .service-card-image { transform: scale(1.06); }

.service-card .service-card-inner {
    position: relative;
    z-index: 2;
    padding: 3rem 2.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 520px;
}

.service-card .service-num {
    font-size: 0.72rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--color-accent);
    font-weight: 500;
    margin-bottom: 1.25rem;
}

.service-card h3 {
    color: var(--color-white);
    font-size: 1.85rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    line-height: 1.2;
}

.service-card p {
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.95rem;
    line-height: 1.65;
    margin-bottom: 1.75rem;
    max-width: 90%;
}

.service-card .service-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--color-white);
    padding: 0.85rem 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.55);
    align-self: flex-start;
    transition: var(--transition-base);
}

.service-card:hover .service-cta {
    background-color: var(--color-white);
    color: var(--color-navy);
    border-color: var(--color-white);
}

.service-card .service-cta-arrow {
    width: 22px;
    height: 1px;
    background-color: currentColor;
    position: relative;
    transition: width 0.4s ease;
}

.service-card .service-cta-arrow::after {
    content: '';
    position: absolute;
    right: 0;
    top: -3px;
    width: 7px;
    height: 7px;
    border-top: 1px solid currentColor;
    border-right: 1px solid currentColor;
    transform: rotate(45deg);
}

.service-card:hover .service-cta-arrow { width: 32px; }

@media (max-width: 767.98px) {
    .service-card, .service-card .service-card-inner { min-height: 420px; }
    .service-card h3 { font-size: 1.5rem; }
}

.team-pillar {
    padding: 2.5rem 2rem;
    background-color: var(--color-white);
    border: 1px solid var(--color-grey-lighter);
    transition: var(--transition-base);
    height: 100%;
}

.team-pillar:hover {
    border-color: var(--color-navy);
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(37, 99, 235, 0.06);
}

.team-pillar h4 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.team-pillar p {
    font-size: 0.95rem;
    color: var(--color-grey-dark);
    line-height: 1.65;
    margin: 0;
}

/* ---------- Contact 2-column ---------- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border: 1px solid var(--color-grey-lighter);
    background-color: var(--color-white);
}

.contact-grid > .contact-col {
    padding: 4rem 3.5rem;
}

.contact-grid > .contact-col-left {
    background-color: var(--color-bg-cream);
}

.contact-grid > .contact-col-right {
    padding: 0;
    min-height: 540px;
    position: relative;
}

.contact-grid .contact-map-frame-inline {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.contact-grid .contact-map-frame-inline iframe {
    width: 100%;
    height: 100%;
    border: 0;
    filter: grayscale(15%) contrast(0.96);
    transition: filter 0.4s ease;
}

.contact-grid .contact-map-frame-inline:hover iframe {
    filter: grayscale(0%) contrast(1);
}

@media (max-width: 991.98px) {
    .contact-grid { grid-template-columns: 1fr; }
    .contact-grid > .contact-col { padding: 3rem 2rem; }
    .contact-grid > .contact-col-right { min-height: 380px; }
}

/* ---------- Subtle "premium" tweaks ---------- */
.section-title-sm {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 600;
    margin-bottom: 1rem;
}

.divider-accent {
    width: 56px;
    height: 2px;
    background-color: var(--color-accent);
    border: 0;
    margin: 1rem 0 1.5rem;
}

/* ==========================================================================
   DARK NAVY THEME
   Primary: #061022 | Secondary: #0D1B2E | Surface: #1E293B | Border: #334155 | Footer: #030A18
   Accent: #ffffff / #ffffff | Text: #F8FAFC / #CBD5E1 / #94A3B8
   ========================================================================== */

/* --- Body & base text --- */
body { color: #94A3B8; }

h1, h2, h3, h4, h5, h6 { color: #F8FAFC; }

p { color: #94A3B8; }

p.lead { color: #CBD5E1; }

a { color: #CBD5E1; }
a:hover { color: #F8FAFC; }

.text-uppercase-spaced { color: #94A3B8; }

/* --- Header --- */
.site-header { background-color: rgba(6, 16, 34, 0); }
.site-header.scrolled {
    background-color: rgba(6, 16, 34, 0.98);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(12px);
}

/* Logo */
.navbar-brand img { filter: none; height: 40px; }

/* Nav links */
.navbar-nav .nav-link { color: #CBD5E1; }
.navbar-nav .nav-link:hover { color: #F8FAFC; }
.navbar-nav .nav-link.active { color: #F8FAFC; }
.navbar-toggler-icon-custom span { background: #CBD5E1; }

/* Dropdown */
.dropdown-menu {
    background-color: #0D1B2E;
    border: 1px solid #334155;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}
.dropdown-item { color: #CBD5E1; }
.dropdown-item:hover,
.dropdown-item:focus { background-color: rgba(59, 130, 246, 0.1); color: #F8FAFC; }

/* Mobile nav collapse — dark header pages use same white panel */
@media (max-width: 991.98px) {
    .navbar-collapse { background: #ffffff !important; border: none !important; }
    .site-header.transparent:not(.scrolled) .navbar-collapse .nav-link { color: #1a1a1a !important; }
}

/* --- Buttons --- */
.btn-link-arrow { color: #CBD5E1; }
.btn-link-arrow .arrow { background: #CBD5E1; }
.btn-link-arrow .arrow::after { border-color: #CBD5E1; }

/* --- Section elements --- */
.section-eyebrow { color: #64748B; }
.section-eyebrow::before { background: #334155; }

/* --- Section separation after page hero --- */
.page-hero + .section { background-color: #0D1B2E; }

/* --- Project cards --- */
.project-card h4 { color: #F8FAFC; }
.project-card .project-meta { color: #64748B; }
.project-card:hover h4 { color: #ffffff; }
.project-card .project-image { border-radius: 4px; }
.project-card .project-image::after { background: rgba(6, 16, 34, 0.15); }

/* --- Filter tabs --- */
.filter-tabs { border-bottom-color: #334155; }
.filter-tabs .filter-btn { border-color: #ffffff; color: #ffffff; }
.filter-tabs .filter-btn:hover { background-color: rgba(255,255,255,0.1); border-color: #ffffff; color: #ffffff; }
.filter-tabs .filter-btn.active { background-color: #ffffff; color: #061022; border-color: #ffffff; }

/* --- Team pillars --- */
.team-pillar { background-color: #061022; border-color: #334155; }
.team-pillar h4 { color: #F8FAFC; }
.team-pillar p { color: #94A3B8; }
.team-pillar:hover { border-color: rgba(59, 130, 246, 0.4); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4); }

/* --- About image accent --- */
.about-image-stack .about-image-accent { border-color: #334155; }

/* --- Contact grid --- */
.contact-grid { background-color: #061022 !important; border-color: #334155; }
.contact-grid > .contact-col-left { background-color: #061022 !important; }
.contact-info-block p, .contact-info-block a { color: #CBD5E1; }
.contact-info-block h6 { color: #64748B; }

/* --- List clean --- */
.list-clean li { border-top-color: #334155; color: #CBD5E1; }
.list-clean li:last-child { border-bottom-color: #334155; }
.list-clean li::before { background-color: #ffffff; }

/* --- bg utilities --- */
.bg-light-grey { background-color: #0D1B2E; }

/* --- Footer --- */
.site-footer { background-color: #030A18; }
.site-footer .footer-bottom { color: #CBD5E1; font-size: 0.75rem; align-items: center; }

/* --- Project detail facts --- */
.text-uppercase-spaced + p.mb-0 { color: #CBD5E1; }

.powered-by-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: inherit;
    font-size: 0.75rem !important;
    vertical-align: middle;
}

.powered-by-logo {
    height: 26px;
    width: auto;
    vertical-align: middle;
}

/* ==========================================================================
   ADDITIONAL MOBILE RESPONSIVE RULES (≤575px)
   ========================================================================== */
@media (max-width: 575.98px) {

    /* Container — tighter edge padding on small phones */
    .container-xxl {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    /* Section vertical rhythm — reduce further */
    :root {
        --section-padding-y: 60px;
        --section-padding-y-sm: 40px;
    }

    /* Page hero (header-light inner pages) */
    .page-hero {
        padding: 120px 0 56px;
    }

    /* Static hero (service detail pages) */
    .hero-static {
        min-height: 100vh;
        padding-top: 80px;
    }
    .hero-static .hero-content {
        padding: 2.5rem 0 3.5rem;
    }
    .hero-static .hero-lead {
        font-size: 0.95rem;
    }

    /* Filter tabs — smaller buttons on narrow screens */
    .filter-tabs {
        gap: 0.5rem;
        margin-bottom: 2.5rem;
        padding-bottom: 1.5rem;
    }
    .filter-tabs .filter-btn {
        padding: 0.55rem 1rem;
        font-size: 0.7rem;
        letter-spacing: 0.12em;
    }

    /* Service cards — reduce minimum height */
    .service-card {
        min-height: 340px;
    }

    /* Section eyebrow */
    .section-eyebrow {
        margin-bottom: 0.75rem;
    }

    /* Section title margin */
    .section-title {
        margin-bottom: 1.25rem;
    }
}
