:root {
    --primary-color: #0b103e; /* Navy Blue from 'EKLINGJI' */
    --secondary-color: #8B281B; /* Maroon from border */
    --accent-yellow: #ebd65d; /* Yellow from arrow/letters */
    --accent-green: #2f5636; /* Green from Bull */
    --accent-blue: #4286bb; /* Light blue from paper plane */
    --text-dark: #111111;
    --bg-light: #f8f9fa;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
}

p {
    line-height: 1.1 !important;
}

/* Navbar styling */
.navbar {
    background-color: #ffffff !important;
}

.navbar-brand img {
    height: 90px; /* Increased size so the text is legible */
    object-fit: contain;
}

.navbar-brand:hover,
.navbar-brand:focus,
.navbar-brand:active {
    background-color: transparent !important;
    outline: none !important;
    box-shadow: none !important;
}

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

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

/* Custom Buttons */
.btn-primary-custom {
    background-color: var(--primary-color) !important;
    color: #ffffff !important;
    border: none !important;
}
.btn-primary-custom:hover {
    background-color: #1a2266;
    color: #ffffff;
}

.btn-secondary-custom {
    background-color: var(--secondary-color);
    color: #ffffff;
    border: none;
}
.btn-secondary-custom:hover {
    background-color: #a83121;
    color: #ffffff;
}

.btn-yellow-custom {
    background-color: var(--accent-yellow);
    color: var(--primary-color);
    font-weight: bold;
    border: none;
}
.btn-yellow-custom:hover {
    background-color: #f1df77;
    color: var(--primary-color);
}

/* Carousel */
.carousel-item .hero-img {
    object-fit: cover;
    height: 80vh;
    min-height: 500px;
    filter: none; /* Removed old filter to use overlay instead */
}

@media (max-width: 768px) {
    .carousel-item .hero-img {
        height: 480px !important;
        min-height: 480px !important;
    }
}

/* Gradient Overlay for better text readability and premium look */
.carousel-item .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(11, 16, 62, 0.9) 0%, rgba(11, 16, 62, 0.6) 40%, rgba(0, 0, 0, 0.2) 100%);
    z-index: 1;
}

.hero-caption {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    background: none;
    padding: 0;
    border: none;
    text-align: left;
}

.caption-content {
    background: rgba(11, 16, 62, 0.3); /* Subtle glassmorphism */
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    padding: 40px;
    border-radius: 15px;
    border-left: 5px solid var(--accent-yellow);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.tracking-wide {
    letter-spacing: 2px;
}

/* Carousel Animations */
.carousel-item.active .animate-up-1 {
    animation: fadeInUp 0.8s ease-out 0.2s both;
}
.carousel-item.active .animate-up-2 {
    animation: fadeInUp 0.8s ease-out 0.4s both;
}
.carousel-item.active .animate-up-3 {
    animation: fadeInUp 0.8s ease-out 0.6s both;
}
.carousel-item.active .animate-up-4 {
    animation: fadeInUp 0.8s ease-out 0.8s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Section titles */
.section-title {
    position: relative;
    margin-bottom: 40px;
    color: var(--primary-color);
    font-weight: 700;
    text-transform: uppercase;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background-color: var(--accent-green);
}

.section-title.text-center::after {
    left: 50%;
    transform: translateX(-50%);
}

/* Subtitle tighter line-height for Service Section & Who We Are */
.nj-home-services-container .section-subtitle,
.nj-whoweare-content .lead {
    line-height: 1.1 !important;
}

/* Justify text for subtitles and paragraphs */
.nj-home-services-container .section-subtitle {
    text-align: center !important;
}

.nj-whoweare-container .lead,
.nj-whoweare-container p,
.about-text-content p,
.about-text-content {
    text-align: justify !important;
}

/* Cards */
.card {
    border: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    border-bottom: 4px solid transparent;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-bottom-color: var(--secondary-color);
}

.card-title {
    color: var(--primary-color);
    font-weight: 700;
}

/* Custom backgrounds */
.bg-primary-custom { background-color: var(--primary-color) !important; color: white; }
.bg-secondary-custom { background-color: var(--secondary-color) !important; color: white; }
.bg-light-custom { background-color: var(--bg-light) !important; }

/* Text colors */
.text-primary-custom { color: var(--primary-color) !important; }
.text-secondary-custom { color: var(--secondary-color) !important; }
.text-yellow-custom { color: var(--accent-yellow) !important; }
.text-green-custom { color: var(--accent-green) !important; }

.hover-yellow { transition: color 0.3s; }
.hover-yellow:hover { color: var(--accent-yellow) !important; }

/* Footer */
.nj-footer h5 {
    color: var(--accent-yellow);
}

.nj-footer a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s;
}

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

.img-fluid {
    border-radius: 8px;
}

/* Header Banner Background */
.header-banner {
    background-image: url('https://images.unsplash.com/photo-1590283603385-17ffb3a7f29f?q=80&w=1920&h=400&fit=crop');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    padding: 100px 0;
}
.header-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(11, 16, 62, 0.85); /* Primary color overlay */
    z-index: 1;
}
.header-banner > .container {
    position: relative;
    z-index: 2;
}

body { font-family: 'Open Sans', sans-serif; }
h1, h2, h3, h4, h5, h6, .navbar-brand, .nav-link, .btn, .display-1, .display-2, .display-3, .display-4, .display-5, .display-6, .section-title, .tracking-wide { font-family: 'Poppins', sans-serif; }

.nj-header .navbar-nav .nav-link { font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 0.95rem; text-transform: uppercase; color: var(--primary-color); }
.nj-header .navbar-nav .nav-link:hover, .nj-header .navbar-nav .nav-link.active { color: var(--secondary-color); }

/* Hide default theme entry header on singular pages */
.singular .entry-header { border-bottom: 3px solid var(--global--color-border); padding-bottom: calc(2 * var(--global--spacing-vertical)); margin-bottom: calc(3 * var(--global--spacing-vertical)); display: none !important; }

/* Contact Form 7 Integration for NJ Contact Widget */
.contact-form-wrapper .wpcf7-form-control:not(.wpcf7-submit) { display: block; width: 100%; padding: 0.375rem 0.75rem; font-size: 1rem; font-weight: 400; line-height: 1.5; color: #212529; background-color: #fff; background-clip: padding-box; border: 1px solid #ced4da; border-radius: 0.375rem; transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out; margin-bottom: 1rem; }
.contact-form-wrapper .wpcf7-submit { display: block; width: 100%; padding: 0.5rem 1rem; font-size: 1.25rem; border-radius: 0.5rem; background-color: var(--primary-color); color: #ffffff; border: none; font-weight: 600; cursor: pointer; transition: background-color 0.3s; }
.contact-form-wrapper .wpcf7-submit:hover { background-color: #1a2266; color: #ffffff; }
.contact-form-wrapper label { font-weight: 500; margin-bottom: 0.5rem; display: block; }

.contact-form-wrapper textarea.wpcf7-form-control { height: 80px !important; resize: none; }

/* Custom Carousel Caption override */
.carousel-caption {
    position: absolute !important;
    right: 0% !important;
    bottom: 2.25rem !important;
    left: 0% !important;
    padding-top: 3.25rem !important;
    padding-bottom: 2.25rem !important;
    color: #fff !important;
    text-align: center !important;
}

/* Back to Top Button */
.nj-back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background-color: var(--accent-yellow);
    color: var(--primary-color) !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    z-index: 999;
    transition: all 0.3s ease;
    text-decoration: none;
}
.nj-back-to-top:hover {
    background-color: var(--primary-color);
    color: var(--accent-yellow) !important;
    transform: translateY(-3px);
}
