/* 
 * NN Enterprises - B2B Homepage Styles 
 * Color Palette: Royal Navy Blue, Slate Grey, White, Gold
 */

:root {
    /* Colors */
    --color-navy: #0F172A;
    /* Deep Navy / Slate 900 */
    --color-royal-blue: #1E3A8A;
    /* Brighter Royal Blue */
    --color-slate: #64748B;
    /* Slate Grey */
    --color-slate-dark: #334155;
    --color-gold: #D4AF37;
    /* Metallic Gold */
    --color-gold-hover: #B5952F;
    --color-white: #FFFFFF;
    --color-light-grey: #F1F5F9;
    /* Backgrounds */
    --color-text-main: #1E293B;
    --color-text-light: #94A3B8;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    /* Typography */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Layout */
    --container-width: 1200px;
    --header-height: 80px;
    --top-bar-height: 40px;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-white);
    color: var(--color-text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-navy);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Utility Classes */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    font-size: 0.9rem;
    border: none;
}

.btn-primary {
    background-color: var(--color-gold);
    color: var(--color-navy);
}

.btn-primary:hover {
    background-color: var(--color-gold-hover);
    transform: translateY(-2px);
}

.btn-outline {
    border: 2px solid var(--color-gold);
    color: var(--color-gold);
    background: transparent;
}

.btn-outline:hover {
    background-color: var(--color-gold);
    color: var(--color-navy);
}

.section-padding {
    padding: var(--spacing-lg) 0;
}

.text-center {
    text-align: center;
}

.text-white {
    color: var(--color-white);
}

.text-gold {
    color: var(--color-gold);
}

/* Flex Utilities */
.flex-responsive {
    display: flex;
    flex-wrap: wrap;
    gap: 4rem;
    align-items: center;
}

@media (max-width: 768px) {
    .flex-responsive {
        flex-direction: column;
        gap: 2rem !important;
    }
}

/* Top Trust Bar */
.top-bar {
    background-color: var(--color-navy);
    color: var(--color-white);
    height: var(--top-bar-height);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 500;
    z-index: 1001;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.top-bar span {
    margin-right: 1.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Header & Navigation */
.main-header {
    background-color: var(--color-white);
    height: var(--header-height);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-navy);
    letter-spacing: -1px;
}

.logo span {
    color: var(--color-gold);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-weight: 600;
    color: var(--color-slate-dark);
    font-size: 0.95rem;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--color-gold);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--color-navy);
}

.nav-links a:hover::after {
    width: 100%;
}

.cta-btn-header {
    background-color: var(--color-navy);
    color: var(--color-white);
    padding: 0.6rem 1.2rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.9rem;
}

.cta-btn-header:hover {
    background-color: var(--color-royal-blue);
    transform: translateY(-1px);
}

/* Hero Section */
.hero-split {
    display: flex;
    height: calc(100vh - var(--header-height) - var(--top-bar-height));
    min-height: 600px;
    position: relative;
    overflow: hidden;
}

.hero-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: var(--spacing-lg);
    position: relative;
    transition: flex 0.5s ease;
    text-align: center;
    color: var(--color-white);
}

.hero-side::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    /* Increased opacity for better text contrast as requested */
    opacity: 0.85;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 500px;
}

/* Industrial Side - CSS Pattern Fallback */
.hero-left {
    background-color: #1e293b;
    /* Dark Slate */
    background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 30px 30px;
}

.hero-left::before {
    /* No overlay needed for solid pattern, or very light to ensure text pop */
    background: none;
}

/* Spiritual Side - CSS Pattern Fallback */
.hero-right {
    background-color: #1E3A8A;
    /* Royal Blue */
    background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 30px 30px;
}

.hero-right::before {
    background: none;
}

/* Hero Text Enforcement */
.hero-split .hero-side {
    color: #ffffff !important;
    text-decoration: none !important;
}

.hero-split .hero-side h1,
.hero-split .hero-side .hero-title {
    color: #ffffff !important;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.9);
    opacity: 1 !important;
}

.hero-split .hero-side .hero-title span {
    color: #FFD700 !important;
    /* Bright Gold */
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.9);
}

.hero-split .hero-side p,
.hero-split .hero-side .hero-subtitle {
    color: #f8fafc !important;
    /* Very light grey/white */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9);
    opacity: 1 !important;
    font-weight: 500 !important;
    /* Make it slightly bolder */
}

/* Center Overlap CTA */
.hero-cta-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.hero-main-cta {
    background: linear-gradient(45deg, var(--color-navy), var(--color-royal-blue));
    color: var(--color-white);
    padding: 1.25rem 2.5rem;
    font-size: 1.1rem;
    border-radius: 50px;
    border: 2px solid var(--color-gold);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
    /* Glowing Gold Effect */
    white-space: nowrap;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

.hero-main-cta:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.8);
}

/* Manufacturing Strength */
.stats-section {
    background-color: var(--color-light-grey);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border-top: 4px solid var(--color-gold);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--color-navy);
    display: block;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--color-slate);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.infrastructure-placeholder {
    width: 100%;
    height: 400px;
    background-color: #cbd5e1;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-slate-dark);
    font-size: 1.5rem;
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    :root {
        --header-height: 70px;
        --top-bar-height: auto;
    }

    /* body padding removed to fix white space issue */

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    .section-padding {
        padding: var(--spacing-md) 0;
    }

    /* Top Bar */
    .top-bar {
        font-size: 0.75rem;
        padding: 0.5rem 0;
    }

    .top-bar .container {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .top-bar span {
        margin: 0;
        display: block;
    }

    /* Header & Nav */
    .main-header .container {
        padding: 0 1.5rem;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        height: auto;
        background-color: var(--color-white);
        flex-direction: column;
        padding: 2rem;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
        text-align: center;
        border-top: 1px solid #f1f5f9;
        gap: 1.5rem;
    }

    .nav-links.active {
        display: flex;
        animation: slideDown 0.3s ease-out forwards;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .mobile-toggle {
        display: block !important;
    }

    .cta-btn-header {
        display: none;
    }

    /* Hero */
    .hero-split {
        flex-direction: column;
        min-height: auto;
        height: auto;
    }

    .hero-side {
        padding: 4rem 1.5rem;
        min-height: 300px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-cta-wrapper {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        margin-top: -25px;
        margin-bottom: -25px;
        text-align: center;
        z-index: 20;
    }

    /* Stats */
    .stats-grid {
        grid-template-columns: 1fr;
    }

    /* Footer */
    footer .container {
        flex-direction: column;
    }

    footer .container>div {
        flex-direction: column;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.25rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }
}

/* =========================================
   IMPROVEMENTS - ADDED STYLES
   ========================================= */

/* 1. About Us Redesign */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-content {
    padding-right: 2rem;
}

.about-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.about-title::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    background-color: var(--color-gold);
    bottom: -10px;
    left: 0;
}

.about-text {
    font-size: 1.1rem;
    color: var(--color-slate-dark);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.about-image {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 20px 20px 0px rgba(212, 175, 55, 0.2);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.about-image:hover img {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-content {
        padding-right: 0;
        text-align: center;
    }

    .about-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .about-image {
        box-shadow: 10px 10px 0px rgba(212, 175, 55, 0.2);
    }
}


/* 2. Highlighted Products Series Slider */
.slider-container {
    overflow: hidden;
    position: relative;
    width: 100%;
    padding: 2rem 0;
}

.slider-track {
    display: flex;
    width: calc(300px * 14);
    /* 300px slide width * number of slides (7 original + 7 duplicate) */
    animation: scroll 40s linear infinite;
}

.slide {
    width: 300px;
    padding: 0 1rem;
    flex-shrink: 0;
}

.product-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.product-image {
    height: 200px;
    background-color: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-info {
    padding: 1.5rem;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--color-navy);
}

.product-desc {
    font-size: 0.9rem;
    color: var(--color-slate);
    margin-bottom: 1rem;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-300px * 7));
    }

    /* Move by half the total width */
}

/* Pause on hover */
.slider-track:hover {
    animation-play-state: paused;
}


/* 3. Premium Quality Section Text Fix */
/* Targeting specifically via ID or strict class selector to override potential conflicts */
.premium-quality-section h2 {
    color: var(--color-white) !important;
}

.premium-quality-section p {
    color: rgba(255, 255, 255, 0.9) !important;
}