/* Version 3: Modern Industrial Corporate Overhaul for TLD Global Services */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@600;700;800;900&display=swap');

:root {
    --primary: #004a99;
    /* Professional Navy */
    --secondary: #1b5e20;
    /* Industrial Forest Green */
    --accent: #ffd700;
    /* Gold/Solar Yellow */
    --bg-light: #ffffff;
    --bg-alt: #ffffff;
    /* Light Slate */
    --text-main: #1e293b;
    /* Slate 800 */
    --text-muted: #64748b;
    /* Slate 500 */
    --border: #e2e8f0;
    /* Slate 200 */
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

body {
    background-color: var(--bg-light);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.2;
}

.display-1 {
    font-size: clamp(2.5rem, 8vw, 5rem) !important;
}

.display-2 {
    font-size: clamp(2rem, 6vw, 4rem) !important;
}

.display-3 {
    font-size: clamp(1.75rem, 5vw, 3rem) !important;
}

.display-4 {
    font-size: clamp(1.1rem, 2vw, 1.25rem) !important;
}

.section-white h2,
.section-white p,
.text-white h2 {
    color: #ffffff !important;
}

/* --- Navigation --- */
.navbar {
    background: #ffffff !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    padding: 1rem 0 !important;
}

.navbar-brand img {
    height: 3.2rem !important;
    filter: none !important;
    transition: height 0.3s ease;
}

/* Mobile Navbar Adjustments */
@media (max-width: 991px) {
    .navbar {
        padding: 0.5rem 1rem !important;
    }

    .navbar-brand img {
        height: 2.2rem !important;
    }

    .navbar-collapse {
        background: #ffffff;
        padding: 2rem !important;
        border-radius: 0;
        box-shadow: var(--shadow);
        margin-top: 0;
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        height: 100vh;
        z-index: 1050;
        overflow-y: auto;
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        transition: transform 0.3s ease-in-out;
    }

    .navbar-collapse:not(.show) {
        transform: translateX(100%);
        display: none !important;
    }

    .navbar-collapse.show {
        transform: translateX(0);
    }

    .nav-item {
        padding: 0.5rem 0;
        border-bottom: 1px solid var(--border);
    }

    .nav-item:last-child {
        border-bottom: none;
    }
}

.nav-link {
    color: var(--text-main) !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary) !important;
}

/* --- Hero Section --- */
.hero-overlay {
    height: 70vh !important;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    position: relative;
    padding: 0 !important;
}

.hero-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: black;
    opacity: 0.7;
    z-index: 1;
}

.hero-overlay .container {
    position: relative;
    z-index: 2;
    color: #fff !important;
}

.hero-overlay h1,
.hero-overlay h2 {
    color: #fff !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* --- Specialized Industrial Styling --- */

/* Skewed Image Frame (from screenshots) */
.industrial-frame {
    position: relative;
    display: inline-block;
}

.industrial-frame img {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 85%);
    border-radius: 4px;
    box-shadow: var(--shadow);
}

.industrial-frame::after {
    content: '';
    position: absolute;
    top: 20px;
    left: -20px;
    width: 100%;
    height: 100%;
    border: 3px solid var(--secondary);
    z-index: -1;
    border-radius: 4px;
}

.card {
    display: flex !important;
    flex-direction: column !important;
}

.card .p-4 {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card h4 {
    margin-bottom: 0.75rem;
    min-height: 2.5rem;
    /* Ensure titles align on desktop */
}

/* Corporate Cards */
.card,
.content-card,
.service-card {
    background: #ffffff !important;
    border: 1px solid var(--border) !important;
    padding: 2.5rem !important;
    /* Restored base padding */
    border-radius: 8px !important;
    box-shadow: var(--shadow) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
    overflow: hidden !important;
    /* Ensure image corners are clipped */
}

/* Full Bleed Card for edge-to-edge images */
.card-full-bleed {
    padding: 0 !important;
}

/* Add padding specifically to content areas in full-bleed cards */
.card-full-bleed .p-4,
.card-full-bleed .card-content {
    padding: 2.5rem !important;
}

/* Add padding specifically to content areas */
.card .p-4,
.card-content,
.content-card {
    padding: 2.5rem !important;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08) !important;
    border-color: var(--primary) !important;
}

.card-title {
    color: var(--primary);
    font-size: 1.5rem !important;
    margin-bottom: 1rem;
}

/* Section Decor */
.section-tag {
    color: var(--secondary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.85rem;
    display: block;
    margin-bottom: 0.5rem;
}

/* --- Commitment Icons --- */
.commitment-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 1.5rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
    color: var(--primary);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card:hover .commitment-icon {
    transform: scale(1.1) rotate(5deg);
    color: var(--secondary);
}

/* --- Logo Grids & Slider --- */
.logo-container {
    padding: 2rem;
    background: #fff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 120px;
    transition: all 0.3s ease;
    border: 1px solid var(--border);
    margin: 0 15px;
    flex: 0 0 250px;
}

.logo-slider {
    overflow: hidden;
    padding: 40px 0;
    background: white;
    position: relative;
    width: 100%;
}

.logo-slider-track {
    display: flex;
    width: calc(250px * 12);
    /* 6 logos * 2 for seamless loop */
    animation: scroll 30s linear infinite;
}

.logo-slider-track:hover {
    animation-play-state: paused;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-250px * 6));
    }
}

.logo-container img {
    max-height: 60px;
    max-width: 100%;
    filter: grayscale(100%);
    opacity: 0.6;
}

.logo-container:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/* --- News Section --- */
.news-card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: var(--shadow);
}

.news-img {
    height: 200px;
    object-fit: cover;
}

.news-content {
    padding: 1.5rem;
}

.news-tag {
    background: var(--bg-alt);
    color: var(--primary);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* --- Footer --- */
.footer-corporate {
    background: #1a202c !important;
    color: #cbd5e0;
    padding: 5rem 0 2rem !important;
}

.footer-corporate h4 {
    color: #fff !important;
    margin-bottom: 1.5rem;
}

.footer-corporate a {
    color: #cbd5e0;
    transition: color 0.3s ease;
}

.footer-corporate a:hover {
    color: var(--accent);
}

/* Utilities */
.bg-alt {
    background-color: var(--bg-alt) !important;
}

.text-primary {
    color: var(--primary) !important;
}

.text-secondary {
    color: var(--secondary) !important;
}

.btn-primary {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
    border-radius: 4px !important;
    font-weight: 600 !important;
    padding: 0.75rem 2rem !important;
}

.btn-secondary {
    background-color: var(--secondary) !important;
    border-color: var(--secondary) !important;
}

/* --- Pure Image Masonry --- */
.masonry-portfolio {
    column-count: 3;
    column-gap: 1.5rem;
    orphans: 1;
    widows: 1;
}

.masonry-portfolio img {
    width: 100%;
    height: auto;
    margin-bottom: 1.5rem;
    display: block;
    border-radius: 4px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.masonry-portfolio img:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

@media (max-width: 991px) {
    .masonry-portfolio {
        column-count: 2;
    }
}

@media (max-width: 575px) {
    .masonry-portfolio {
        column-count: 1;
    }
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    .hero-overlay {
        height: 60vh !important;
        padding: 4rem 0 !important;
    }

    section {
        padding: 0 !important;
    }

    .logo-container {
        flex: 0 0 180px;
        height: 90px;
        padding: 1rem;
        margin: 0 10px;
    }

    .logo-slider-track {
        width: calc(180px * 12);
    }

    @keyframes scroll {
        0% {
            transform: translateX(0);
        }

        100% {
            transform: translateX(calc(-180px * 6));
        }
    }

    .industrial-frame::after {
        display: none;
        /* Simplify for mobile */
    }
}

@media (max-width: 576px) {
    .display-1 {
        font-size: 2.2rem !important;
    }

    .display-2 {
        font-size: 1.8rem !important;
    }

    .display-3 {
        font-size: 1.6rem !important;
    }

    .navbar-brand img {
        height: 2.5rem !important;
    }

    .logo-container {
        flex: 0 0 140px;
        height: 70px;
    }

    .logo-slider-track {
        width: calc(140px * 12);
    }

    @keyframes scroll {
        0% {
            transform: translateX(0);
        }

        100% {
            transform: translateX(calc(-140px * 6));
        }
    }
}