/* Site custom styles (pruned for BS5) */
body,
.navbar {
    font-family: "Montserrat", sans-serif;
    -webkit-transition: background-color 0.25s ease-in-out;
    -ms-transition: background-color 0.25s ease-in-out;
    transition: background-color 0.25s ease-in-out;
}

section {
    position: relative;
}

h1,
.fw600 {
    font-weight: 600;
}

.fw100 {
    font-weight: 100;
}

.fp {
    height: 100vh;
}

.display-5 {
    font-size: 3rem;
    line-height: 1.1;
}

/* Legacy helpers removed: .gradi, .gradi-rev, #home::before, .bg-semi-black, .nav-link overrides, .white-out, and absolute #map. */

/* Utilities for images (replacing inline styles) */
.img-logo-box-30h {
    height: 30px;
}

.img-footer-logo-35w {
    width: 35px;
}

/* Design system additions */
html {
    scroll-behavior: smooth;
}

/* Prevent horizontal scroll from animated layers and wide elements */
html,
body {
    overflow-x: hidden;
}

:root {
    --bw-bg: #ffffff;
    --bw-surface: #ffffff;
    --bw-text: #1f2937;
    --bw-muted: #6b7280;
    --bw-border: #e5e7eb;
    --bw-primary: #0d6efd;
    --bw-hero-grad: linear-gradient(180deg, rgba(248, 250, 252, 0.75) 0%, rgba(255, 255, 255, 0.75) 100%);
    --bw-accent: #111827;
}

body {
    color: var(--bw-text);
    background-color: var(--bw-bg);
}

/* Header */
.site-header .navbar {
    transition: padding 0.2s ease, box-shadow 0.2s ease;
    padding-top: .75rem;
    padding-bottom: .75rem;
}

.site-header .navbar.navbar-compact {
    padding-top: .25rem;
    padding-bottom: .25rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .06);
}

/* Hero */
.hero {
    min-height: 92vh;
    overflow: hidden;
}

.hero-title {
    font-weight: 800;
    letter-spacing: -0.02em;
}

.display-xxl {
    font-size: clamp(2.5rem, 3.5vw + 1rem, 4.5rem);
    line-height: 1.04;
}

.overline {
    font-size: .75rem;
    letter-spacing: .08em;
}

/* Sections */
.section-title {
    font-weight: 900;
    letter-spacing: -0.01em;
}

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

/* Add generous whitespace */
.section {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

@media (min-width: 768px) {
    .section {
        padding-top: 7rem;
        padding-bottom: 7rem;
    }
}

@media (min-width: 992px) {
    .section {
        padding-top: 9rem;
        padding-bottom: 9rem;
    }
}

/* Roomier cards/case tiles */
.section .card-modern .card-body {
    padding: 2rem;
}

.case-tile {
    padding: 2.5rem !important;
}

.underline-accent {
    position: relative;
    display: inline-block;
}

.underline-accent::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 64px;
    height: 4px;
    background: var(--bw-accent);
    border-radius: 3px;
}

.section .card-modern {
    border: none;
    border-radius: .85rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .06);
}

.section .card-modern .card-title {
    font-weight: 600;
}

/* Case tiles */
.case-tile {
    background-color: var(--bw-surface);
    border: none;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .05);
    transition: transform .15s ease, box-shadow .15s ease;
}

.case-tile:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, .06);
}

#clients {

    position: relative;
    overflow: hidden;
}

/* Client grid */
.client-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem;
    align-items: center;
}

/* Partner logos */
.partner-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: center;
}

.partner-logos img {
    height: 48px;
    width: auto;
    opacity: .95;
}

@media (min-width: 768px) {
    .partner-logos img {
        height: 56px;
    }
}

.client-grid img {
    max-width: 100%;
    height: auto;
    opacity: .9;
    transition: opacity .15s ease;
}

.client-grid img:hover {
    opacity: 1;
}

@media (min-width: 576px) {
    .client-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 768px) {
    .client-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
    }
}

@media (min-width: 992px) {
    .client-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 2rem;
    }
}

/* Map */
#map {
    min-height: 360px;
}

/* Reveal */
.reveal {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity .4s ease, transform .4s ease;
}

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

/* AI-like animated background */
.ai-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
    opacity: 0;
    transition: opacity .9s ease;
}

.ai-bg.dark {
    background: var(--bw-accent);
}

.ai-bg canvas {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
}

/* Fade-in class when blobs are mounted */
.ai-bg.ai-bg-in {
    opacity: 1;
}




/* Ensure content sits above animated layers */
.section>.container,
.section>.container-fluid {
    position: relative;
    z-index: 1;
}

/* Ensure images are visible and consistent */
img {
    display: inline-block;
}

img[loading="lazy"] {
    content-visibility: auto;
}

/* Navbar visibility & bold CTAs */
.site-header .navbar .nav-link {
    color: var(--bw-text);
}

.site-header .navbar .nav-link:hover {
    color: #000;
}

.site-header .navbar .btn.btn-primary {
    background: var(--bw-text);
    border: none;
}

.site-header .navbar .btn.btn-primary:hover {
    background: #000;
}

.navbar-toggler {
    border-color: rgba(0, 0, 0, .2);
}

/* Stronger section rhythm */
.section {
    scroll-margin-top: 80px;
}