/**
 * Vivek Engineers - Corporate Classy Precision Manufacturing Theme
 * Signature Palette: Forest Industrial Green (#1e5900) & Steel Charcoal & Brushed Metallic
 */

:root {
    /* Vivek Engineers Signature Logo Green */
    --ve-green: #1e5900;
    --ve-green-hover: #267300;
    --ve-green-light: #34a814;
    --ve-green-dark: #123c00;
    --ve-green-bg: rgba(30, 89, 0, 0.08);
    --ve-green-glow: rgba(30, 89, 0, 0.35);

    /* Steel Charcoal & Industrial Palette */
    --ve-bg-dark: #0a0e13;
    --ve-bg-panel: #121820;
    --ve-bg-card: #18202b;
    --ve-bg-card-hover: #1f2a38;
    --ve-border: #242f3d;
    --ve-border-light: #384657;
    --ve-text-light: #f8fafc;
    --ve-text-muted: #94a3b8;
    --ve-text-dim: #64748b;
    --ve-steel: #334155;
    --ve-gold: #d4af37;

    --ve-font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --ve-font-heading: 'Chakra Petch', 'Inter', sans-serif;
}

body {
    font-family: var(--ve-font-sans);
    color: #334155;
    background-color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

img, svg, video, canvas, iframe {
    max-width: 100%;
}
img, video {
    height: auto;
}
input, select, textarea {
    max-width: 100%;
}

h1, h2, h3, h4, h5, h6, .font-heading {
    font-family: var(--ve-font-heading);
    letter-spacing: -0.01em;
    font-weight: 700;
}

a {
    color: var(--ve-green);
    text-decoration: none;
    transition: all 0.25s ease;
}

a:hover {
    color: var(--ve-green-hover);
}

.text-accent {
    color: var(--ve-green) !important;
}

.text-accent-light {
    color: var(--ve-green-light) !important;
}

.bg-accent {
    background-color: var(--ve-green) !important;
}

.letter-spacing-1 {
    letter-spacing: 0.08em;
}

.very-small {
    font-size: 0.72rem;
    line-height: 1.5;
}

/* Opacity-based light text utilities (used on dark banners & footer) */
.text-light-50 {
    color: rgba(255, 255, 255, 0.68) !important;
}

.text-light-75 {
    color: rgba(255, 255, 255, 0.85) !important;
}

/* -------------------------------------------------------------
   Top Bar (Corporate Classy Light Strip)
------------------------------------------------------------- */
.top-bar {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.82rem;
    color: #475569;
}

.top-bar .top-link {
    color: #475569;
    text-decoration: none;
    transition: color 0.2s;
}

.top-bar .top-link:hover {
    color: var(--ve-green);
}

.top-bar .cert-badge {
    color: var(--ve-green);
    font-weight: 600;
    background: rgba(30, 89, 0, 0.08);
    padding: 3px 12px;
    border-radius: 4px;
    border: 1px solid rgba(30, 89, 0, 0.2);
}

.top-bar .social-links a {
    color: #64748b;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.top-bar .social-links a:hover {
    color: var(--ve-green);
}

/* -------------------------------------------------------------
   Navbar (Corporate Classy White Design)
------------------------------------------------------------- */
.main-navbar {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
    transition: all 0.3s ease;
}

.navbar-brand-logo {
    height: 48px;
    max-width: 100%;
}

.brand-symbol {
    width: 44px;
    height: 44px;
    background: #ffffff;
    border: 2px solid var(--ve-green);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px var(--ve-green-glow);
    padding: 3px;
}

.brand-symbol img {
    max-height: 34px;
    max-width: 34px;
    object-fit: contain;
}

.brand-symbol.sm {
    width: 36px;
    height: 36px;
}

.brand-symbol.sm img {
    max-height: 26px;
    max-width: 26px;
}

.brand-title {
    font-family: var(--ve-font-heading);
    font-weight: 800;
    font-size: 1.25rem;
    color: #0f172a;
    letter-spacing: 0.04em;
    display: block;
    line-height: 1.1;
}

.brand-subtitle {
    font-size: 0.65rem;
    color: #64748b;
    letter-spacing: 0.12em;
    font-weight: 600;
    display: block;
}

.main-navbar .nav-link {
    color: #334155;
    font-weight: 500;
    font-size: 0.92rem;
    padding: 8px 14px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.main-navbar .nav-link:hover,
.main-navbar .nav-link.active {
    color: var(--ve-green);
    background: rgba(30, 89, 0, 0.06);
}

.main-navbar .nav-link.active {
    color: var(--ve-green);
    font-weight: 600;
}

/* Infrastructure section tabs use the site green and charcoal palette. */
.infra-section-nav .nav-link {
    color: var(--ve-steel);
    background: #ffffff;
    border: 1px solid #d7e0d2;
    border-radius: 6px;
    font-weight: 600;
    transition: color .2s ease, background-color .2s ease, border-color .2s ease;
}
.infra-section-nav .nav-link:hover,
.infra-section-nav .nav-link:focus-visible {
    color: var(--ve-green);
    background: var(--ve-green-bg);
    border-color: rgba(30, 89, 0, .35);
}
.infra-section-nav .nav-link.active,
.infra-section-nav .nav-link.active:hover,
.infra-section-nav .nav-link.active:focus-visible {
    color: #ffffff;
    background: var(--ve-green);
    border-color: var(--ve-green);
}

.main-navbar .dropdown-menu {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
    border-radius: 8px;
    padding: 8px 0;
}

.main-navbar .dropdown-item {
    color: #334155;
    font-size: 0.9rem;
    padding: 8px 18px;
    transition: all 0.15s ease;
}

.main-navbar .dropdown-item:hover {
    color: var(--ve-green);
    background-color: #f8fafc;
}

.btn-rfq {
    background: linear-gradient(135deg, var(--ve-green) 0%, #113800 100%);
    color: #ffffff !important;
    border: 1px solid rgba(52, 168, 20, 0.4);
    border-radius: 6px;
    box-shadow: 0 4px 14px var(--ve-green-glow);
    transition: all 0.3s ease;
}

.btn-rfq:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(30, 89, 0, 0.5);
    background: linear-gradient(135deg, var(--ve-green-hover) 0%, var(--ve-green) 100%);
}

.btn-accent {
    background: var(--ve-green);
    color: #ffffff;
    border: 1px solid var(--ve-green-hover);
    border-radius: 4px;
    transition: all 0.25s ease;
}

.btn-accent:hover {
    background: var(--ve-green-hover);
    color: #ffffff;
    border-color: var(--ve-green-light);
}

/* -------------------------------------------------------------
   Hero Banner / Carousel
------------------------------------------------------------- */
.hero-slider {
    position: relative;
    background: #080b0e;
    min-height: clamp(600px, 48vw, 860px);
}

.hero-slide {
    position: relative;
    min-height: clamp(600px, 48vw, 860px);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(8, 11, 14, 0.92) 0%, rgba(8, 11, 14, 0.66) 45%, rgba(8, 11, 14, 0.22) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 85px 0;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(30, 89, 0, 0.25);
    border: 1px solid rgba(52, 168, 20, 0.5);
    color: #a3e635;
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.hero-title {
    font-size: 3.3rem;
    line-height: 1.15;
    color: #ffffff;
    margin-top: 15px;
    margin-bottom: 20px;
    font-weight: 800;
}

.hero-lead {
    font-size: 1.15rem;
    color: #cbd5e1;
    max-width: 650px;
    margin-bottom: 30px;
}

/* -------------------------------------------------------------
   Inner Page Hero Banner (photographic background + dark scrim)
------------------------------------------------------------- */
.page-hero {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    isolation: isolate;
}

/* -------------------------------------------------------------
   Stat Counter Bar (Corporate Classy Light Strip)
------------------------------------------------------------- */
.stats-strip {
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.02);
}

.stat-item {
    padding: 26px 15px;
    border-right: 1px solid #f1f5f9;
}

.stat-item:last-child {
    border-right: none;
}

.stat-number {
    font-family: var(--ve-font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1;
}

.stat-number.text-accent-light {
    color: var(--ve-green) !important;
}

.stat-label {
    font-size: 0.82rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 6px;
    font-weight: 600;
}

/* -------------------------------------------------------------
   Industrial Cards & Sections
------------------------------------------------------------- */
.section-tag {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--ve-green);
    display: block;
    margin-bottom: 6px;
}

.section-heading {
    font-size: 2.3rem;
    color: #0f172a;
    margin-bottom: 12px;
}

.card-product {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card-product:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.08);
    border-color: var(--ve-green);
}

.card-product .prod-thumb {
    height: 230px;
    background: #0f172a;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-product .prod-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card-product:hover .prod-thumb img {
    transform: scale(1.06);
}

.card-product .badge-cat {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(10, 14, 19, 0.85);
    color: #ffffff;
    font-size: 0.72rem;
    padding: 4px 10px;
    border-radius: 4px;
    text-transform: uppercase;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.card-product .prod-body {
    padding: 22px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-product .prod-title {
    font-size: 1.18rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #0f172a;
}

.spec-list {
    font-size: 0.82rem;
    color: #475569;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px dashed #e2e8f0;
}

/* -------------------------------------------------------------
   Timeline (Company Milestones)
------------------------------------------------------------- */
.timeline-modern {
    position: relative;
    padding: 20px 0;
}

.timeline-modern::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 3px;
    background: #cbd5e1;
    transform: translateX(-50%);
}

.timeline-row {
    position: relative;
    margin-bottom: 40px;
}

.timeline-row .timeline-point {
    position: absolute;
    left: 50%;
    top: 15px;
    width: 22px;
    height: 22px;
    background: var(--ve-green);
    border: 4px solid #ffffff;
    box-shadow: 0 0 0 2px var(--ve-green);
    border-radius: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.timeline-box {
    width: 45%;
    padding: 24px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.timeline-row:nth-child(odd) .timeline-box {
    margin-left: auto;
}

.timeline-row:nth-child(even) .timeline-box {
    margin-right: auto;
}

.timeline-year {
    font-family: var(--ve-font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--ve-green);
    margin-bottom: 6px;
}

@media (max-width: 768px) {
    .timeline-modern::before {
        left: 20px;
    }
    .timeline-row .timeline-point {
        left: 20px;
    }
    .timeline-box {
        width: calc(100% - 50px);
        margin-left: 50px !important;
    }
}

/* -------------------------------------------------------------
   Client Logos Slider (Corporate Classy White Design)
------------------------------------------------------------- */
.oem-clients-strip {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    overflow: hidden;
}

.oem-marquee {
    overflow: hidden;
    position: relative;
    width: 100%;
    padding: 14px 0 20px;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 6%, #000 94%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, #000 6%, #000 94%, transparent 100%);
}

.oem-marquee-track {
    display: flex;
    gap: 1.5rem;
    width: max-content;
    animation: oemScroll 34s linear infinite;
    will-change: transform;
}

.oem-marquee:hover .oem-marquee-track {
    animation-play-state: paused;
}

@keyframes oemScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-100% / 3));
    }
}

.oem-slide-item {
    flex: 0 0 280px;
    width: 280px;
}

.client-logo-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 18px 24px;
    height: 125px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.05);
}

.client-logo-card:hover {
    background: #ffffff;
    border-color: var(--ve-green);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.1), 0 0 16px var(--ve-green-glow);
    transform: translateY(-4px);
}

.client-logo-card img {
    height: 64px;
    max-height: 64px;
    max-width: 92%;
    width: auto;
    object-fit: contain;
    opacity: 0.96;
    transition: all 0.25s ease;
}

.client-logo-card:hover img {
    opacity: 1;
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .oem-slide-item {
        flex: 0 0 220px;
        width: 220px;
    }
    .client-logo-card {
        height: 100px;
        padding: 14px 16px;
    }
    .client-logo-card img {
        height: 50px;
        max-height: 50px;
    }
}

/* -------------------------------------------------------------
   Facilities Table
------------------------------------------------------------- */
.table-facilities th {
    background: #111822;
    color: #ffffff;
    font-family: var(--ve-font-heading);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 14px 18px;
    border-bottom: 2px solid var(--ve-green);
}

.table-facilities td {
    padding: 14px 18px;
    vertical-align: middle;
}

/* -------------------------------------------------------------
   Footer
------------------------------------------------------------- */
.industrial-cta-strip {
    background: linear-gradient(135deg, #1a211a 0%, #12160f 100%);
    border-top: 1px solid #2b352b;
    border-bottom: 1px solid #2b352b;
}

.site-footer {
    background: #161c25;
    color: #b8c3d1;
    font-size: 0.9rem;
}

.site-footer .text-muted {
    color: rgba(255, 255, 255, 0.66) !important;
}

.site-footer a {
    color: #cbd5e1;
}

.site-footer a:hover {
    color: var(--ve-green-light);
}

.site-footer .widget-title {
    color: #ffffff;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 20px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--ve-green);
    display: inline-block;
}

.site-footer .footer-links a {
    color: #c2ccd8;
    display: block;
    margin-bottom: 8px;
}

.site-footer .footer-links a:hover {
    color: var(--ve-green-light);
    padding-left: 4px;
}

.site-footer .cert-pill {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.14);
    padding: 8px 14px;
    border-radius: 6px;
}

.site-footer .footer-bottom {
    color: rgba(255, 255, 255, 0.72);
}

.site-footer .border-secondary-subtle {
    border-color: rgba(255, 255, 255, 0.12) !important;
}

.site-footer .footer-credit-link {
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
}

.site-footer .footer-credit-link:hover,
.site-footer .footer-credit-link:focus {
    color: var(--ve-green-light);
    text-decoration: underline;
}

.back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: none;
    z-index: 999;
    box-shadow: 0 4px 14px rgba(0,0,0,0.3);
}

/* -------------------------------------------------------------
   Responsive – Mobile, Tablet & All Devices
------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6,
.hero-title,
.section-heading {
    overflow-wrap: break-word;
}

.hero-title {
    font-size: clamp(2rem, 6.4vw, 3.3rem);
}

.section-heading {
    font-size: clamp(1.6rem, 5vw, 2.3rem);
}

.stat-number {
    font-size: clamp(1.9rem, 6vw, 2.5rem);
}

/* Collapsible navbar (below 1200px): scrollable panel + inline dropdowns */
@media (max-width: 1199.98px) {
    .main-navbar .navbar-collapse {
        max-height: calc(100vh - 130px);
        max-height: calc(100dvh - 130px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 10px;
    }

    .main-navbar .navbar-nav .nav-link {
        display: block;
        padding: 12px 6px;
        font-size: 1rem;
    }

    .main-navbar .dropdown-menu {
        position: static;
        float: none;
        width: 100%;
        margin-top: 0;
        box-shadow: none;
        border-radius: 6px;
        padding: 6px 0;
    }

    .main-navbar .dropdown-menu .dropdown-item {
        padding: 11px 18px;
    }
}

/* Hero banner scaling */
@media (max-width: 991.98px) {
    .hero-slider,
    .hero-slide {
        min-height: 540px;
    }
    .hero-content {
        padding: 70px 0;
    }
}

@media (max-width: 767.98px) {
    /* Keep the artwork full-bleed at mobile sizes while centering its focal area. */
    .hero-slide {
        background-size: cover;
        background-position: center center;
    }

    /* Full-width text on mobile needs an even scrim for legibility */
    .hero-overlay {
        background: linear-gradient(180deg, rgba(8, 11, 14, 0.93) 0%, rgba(8, 11, 14, 0.84) 55%, rgba(8, 11, 14, 0.74) 100%);
    }

    /* Stats strip becomes a 2 x 2 grid */
    .stat-item {
        padding: 20px 10px;
        border-right: 1px solid #1a232e;
        border-bottom: 1px solid #1a232e;
    }
    .stat-item:nth-child(2n) {
        border-right: none;
    }
    .stat-item:nth-child(n+3) {
        border-bottom: none;
    }
    .stat-label {
        font-size: 0.72rem;
    }
}

@media (max-width: 575.98px) {
    .hero-slider,
    .hero-slide {
        min-height: 500px;
    }
    .hero-content {
        padding: 54px 0;
    }
    .hero-badge {
        font-size: 0.72rem;
        padding: 5px 10px;
        letter-spacing: 0.04em;
    }
    .hero-lead {
        font-size: 1rem;
    }

    .page-hero {
        padding-top: 2.25rem !important;
        padding-bottom: 2.25rem !important;
    }

    .top-bar {
        font-size: 0.72rem;
    }
    .top-bar .cert-badge {
        padding: 3px 8px;
    }
    .top-bar .social-links a {
        font-size: 0.85rem;
    }

    .navbar-brand-logo {
        height: 40px;
    }

    .card-product .prod-thumb {
        height: 190px;
    }
    .card-product .prod-body {
        padding: 18px;
    }
    .card-product .prod-title {
        font-size: 1.05rem;
    }

    .client-logo-card {
        height: 100px;
        padding: 14px 16px;
    }

    .industrial-cta-strip .btn {
        flex: 1 1 100%;
    }

    .site-footer {
        font-size: 0.85rem;
    }
    .site-footer .widget-title {
        font-size: 0.92rem;
    }

    .back-to-top {
        bottom: 16px;
        right: 16px;
    }
}

/* Verified gallery and generated section imagery, September 2026. */
.prod-thumb { position: relative; }
.illustration-label { position: absolute; right: 12px; bottom: 12px; padding: 4px 8px; border-radius: 4px; background: rgba(9,14,20,.82); color: #fff; font-size: .65rem; letter-spacing: .06em; text-transform: uppercase; }
.prod-thumb img[src*="live-"] { object-fit: contain; background: transparent; }
.page-hero { background-size: cover; background-position: center; }
.company-gallery-image { width: 100%; height: 180px; object-fit: contain; background: #f4f5f6; }
.company-gallery summary { cursor: pointer; }
@media (max-width: 767.98px) {
    .hero-content { padding-left: 24px; padding-right: 24px; }
    .hero-slider .carousel-control-prev,
    .hero-slider .carousel-control-next { top: auto; bottom: 18px; width: 36px; height: 32px; }
    .hero-slider .carousel-control-prev { left: 12px; }
    .hero-slider .carousel-control-next { right: 12px; }
    .hero-badge { max-width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .carousel-item { transition: none; } }

/* Transparent generated product cutouts sit directly on the requested pale green stage. */
.product-photo-cutout,
.card-product .prod-thumb.product-photo,
.product-image-actions,
.product-image-preview-stage {
    background-color: #f0f7ec !important;
}
.product-photo-cutout { isolation: isolate; }
.product-photo-cutout img { object-fit: contain; mix-blend-mode: normal !important; }
.card-product:hover .product-photo-cutout img { transform: none; }

/* Show each complete product cutout at a larger, consistent scale. */
.card-product .prod-thumb.product-photo {
    height: 340px;
}
.card-product .prod-thumb.product-photo img {
    object-fit: contain;
    object-position: center;
    display: block;
}
.card-product:hover .prod-thumb.product-photo img { transform: none; }
@media (max-width: 768px) {
    .card-product .prod-thumb.product-photo { height: 290px; }
}

.card-product .prod-thumb { position: relative; }
.product-image-view { box-shadow: none; }

.product-image-actions {
    display: flex;
    justify-content: center;
    padding: .55rem .75rem;
    border-top: 1px solid rgba(30,89,0,.12);
}
.product-image-actions .product-image-view { min-width: 132px; }
