/* ==========================================================================
   JS PRODUCTION OÜ - Clean Tech Industrial Design System
   WordPress + LiveCanvas + Bootstrap 5 Ready
   ========================================================================== */

:root {
    /* Brand Colors */
    --brand-red: #DC2626;
    --brand-red-hover: #B91C1C;
    --brand-red-light: #FEE2E2;
    --brand-red-glow: rgba(220, 38, 38, 0.25);
    
    --brand-amber: #F59E0B;
    --brand-amber-hover: #D97706;
    --brand-amber-light: #FEF3C7;
    --brand-amber-glow: rgba(245, 158, 11, 0.2);

    /* Dark Industrial Palette (Hero, Nav, Footer) */
    --brand-dark: #070A12;
    --brand-dark-surface: #0E1424;
    --brand-dark-card: #151D30;
    --brand-dark-border: rgba(255, 255, 255, 0.1);

    /* Light Content Palette */
    --surface-main: #F8FAFC;
    --surface-card: #FFFFFF;
    --surface-hover: #F1F5F9;

    /* Typography & Neutrals */
    --text-primary: #0F172A;
    --text-secondary: #475569;
    --text-muted: #64748B;
    --text-light: #F8FAFC;

    /* Borders & Dividers */
    --border-light: #E2E8F0;
    --border-medium: #CBD5E1;

    /* Spacing & Radii */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-pill: 9999px;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 10px 25px -5px rgba(15, 23, 42, 0.06), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
    --shadow-lg: 0 20px 35px -10px rgba(15, 23, 42, 0.1), 0 10px 15px -5px rgba(15, 23, 42, 0.04);
    --shadow-glow-red: 0 4px 12px rgba(220, 38, 38, 0.2);

    /* Font Family */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* ==========================================================================
   Base & Reset
   ========================================================================== */
body {
    font-family: var(--font-sans);
    color: var(--text-primary);
    background-color: var(--surface-main);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.02em;
    word-break: normal;
    overflow-wrap: normal;
    hyphens: manual;
}

h1, .hero-heading {
    font-size: clamp(1.65rem, 5.2vw, 2.6rem);
    line-height: 1.18;
    letter-spacing: -0.03em;
}

h2, .section-title, .cta-heading {
    font-size: clamp(1.35rem, 4.2vw, 2.1rem);
    line-height: 1.25;
    letter-spacing: -0.02em;
}

h3 {
    font-size: clamp(1.15rem, 3.2vw, 1.5rem);
    line-height: 1.3;
}

.section-title {
    font-size: 2.1rem;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.section-eyebrow {
    color: var(--brand-amber);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

a {
    color: var(--brand-red);
    text-decoration: none;
    transition: all 0.2s ease;
}

a:hover {
    color: var(--brand-red-hover);
}

/* Form Invalid state */
.is-invalid {
    border-color: var(--brand-red) !important;
    background-color: #FEF2F2 !important;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1030;
    background: #070A12 !important;
    background-color: #070A12 !important;
    box-shadow: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    transition: all 0.3s ease;
}

/* WordPress Admin Bar Compatibility */
body.admin-bar .site-header {
    top: 32px !important;
}


@media (max-width: 782px) {
    body.admin-bar #wpadminbar {
        position: fixed !important;
        top: 0 !important;
    }
    body.admin-bar .site-header {
        top: 46px !important;
    }
    
}

/* Bootstrap 5.3 Font Weight Utilities Parity */
.fw-medium { font-weight: 500 !important; }
.fw-semibold { font-weight: 600 !important; }

.site-header.scrolled {
    background: #070A12;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    border-bottom-color: rgba(255, 255, 255, 0.12);
}

.site-logo-img {
    height: 44px;
    width: auto;
    object-fit: contain;
}

.site-header .navbar-toggler {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border: none !important;
    background: transparent !important;
    color: #FFFFFF !important;
}

.site-header .navbar-toggler-icon {
    width: 24px;
    height: 24px;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.95%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.5' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100%;
}

/* Global Unified Breadcrumbs Component (.site-breadcrumbs) */
.site-breadcrumbs,
.breadcrumb-bar,
nav[aria-label="breadcrumb"],
.breadcrumb-nav-wrap {
    background-color: #FFFFFF;
    border-bottom: 1px solid var(--border-light, #E2E8F0);
    padding: 0.55rem 0;
    margin-top: 76px;
    position: relative;
    z-index: 10;
}

.site-breadcrumbs .breadcrumb,
.breadcrumb-bar .breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    list-style: none;
    margin-bottom: 0;
    padding: 0;
    font-size: 0.875rem;
    line-height: 1.4;
}

.site-breadcrumbs .breadcrumb-item,
.breadcrumb-bar .breadcrumb-item {
    display: inline-flex;
    align-items: center;
}

.site-breadcrumbs .breadcrumb-item + .breadcrumb-item::before,
.breadcrumb-bar .breadcrumb-item + .breadcrumb-item::before {
    content: "/";
    padding: 0 0.5rem;
    color: var(--text-muted, #94A3B8);
    font-size: 0.8125rem;
    font-weight: 400;
}

.site-breadcrumbs .breadcrumb-link,
.breadcrumb-bar .breadcrumb-link {
    color: var(--text-secondary, #475569) !important;
    text-decoration: none;
    font-weight: 400;
    transition: color 0.15s ease-in-out;
}

.site-breadcrumbs .breadcrumb-link:hover,
.breadcrumb-bar .breadcrumb-link:hover {
    color: var(--brand-red, #DC2626) !important;
    text-decoration: underline;
}

.site-breadcrumbs .breadcrumb-item.active,
.breadcrumb-bar .breadcrumb-item.active {
    color: var(--brand-red, #DC2626) !important;
    font-weight: 600 !important;
}

section.hero-internal-standalone,
.hero-internal-standalone {
    padding-top: calc(76px + 4rem) !important;
}

@media (max-width: 991.98px) {
    .site-logo-img {
        height: 38px;
    }
    .site-breadcrumbs,
    .breadcrumb-bar,
    nav[aria-label="breadcrumb"],
    .breadcrumb-nav-wrap {
        margin-top: 70px !important;
        padding: 0.45rem 0;
    }
    section.hero-internal-standalone,
    .hero-internal-standalone {
        padding-top: calc(70px + 2.5rem) !important;
    }
}

.nav-link-custom {
    color: rgba(255, 255, 255, 0.85) !important;
    font-weight: 500;
    font-size: 14.5px;
    padding: 8px 14px !important;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.nav-link-custom:hover, 
.nav-link-custom.active {
    color: var(--brand-amber) !important;
    background: rgba(255, 255, 255, 0.05);
}

.dropdown-menu-custom {
    background: rgba(14, 20, 36, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--brand-dark-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 8px;
    min-width: 290px;
}

.dropdown-item-custom,
.dropdown-item-parent {
    color: #FFFFFF !important;
    font-size: 14px;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s ease;
    text-decoration: none;
}

.dropdown-item-custom:hover, 
.dropdown-item-custom.active,
.dropdown-item-parent:hover,
.dropdown-item-parent.active {
    color: var(--brand-amber) !important;
    background: rgba(245, 158, 11, 0.12);
}

.dropdown-item-custom i,
.dropdown-item-parent i {
    color: var(--brand-amber);
    width: 16px;
    text-align: center;
    font-size: 14px;
}

/* Level 2 Sub-item Children Hierarchy */
.dropdown-child-list {
    margin-left: 14px;
    padding-left: 12px;
    border-left: 2px solid rgba(245, 158, 11, 0.35);
    margin-top: 4px;
    margin-bottom: 4px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.dropdown-item-child {
    color: #CBD5E1 !important;
    font-size: 13px;
    font-weight: 400;
    padding: 5px 10px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.18s ease;
    text-decoration: none;
}

.dropdown-item-child:hover, 
.dropdown-item-child.active {
    color: var(--brand-amber) !important;
    background: rgba(255, 255, 255, 0.06);
    padding-left: 13px;
}

.sub-tree-marker {
    color: var(--brand-amber);
    font-size: 11px;
    opacity: 0.85;
    line-height: 1;
}

/* ==========================================================================
   Buttons & Badges
   ========================================================================== */
.btn-brand-primary,
.btn.btn-brand-primary {
    background-color: var(--brand-red) !important;
    border: 1px solid var(--brand-red) !important;
    color: #FFFFFF !important;
    font-weight: 600;
    font-size: 15px;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-glow-red);
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.25s ease;
    cursor: pointer;
    min-height: 44px;
}

.btn-brand-primary:hover,
.btn.btn-brand-primary:hover {
    background-color: var(--brand-red-hover) !important;
    border-color: var(--brand-red-hover) !important;
    color: #FFFFFF !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(220, 38, 38, 0.3);
}

.btn-brand-glass,
.btn.btn-brand-glass {
    background: rgba(255, 255, 255, 0.08) !important;
    background-color: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    color: #FFFFFF !important;
    font-weight: 600;
    font-size: 15px;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.25s ease;
    cursor: pointer;
    min-height: 44px;
}

.btn-brand-glass:hover,
.btn.btn-brand-glass:hover {
    background: rgba(255, 255, 255, 0.18) !important;
    background-color: rgba(255, 255, 255, 0.18) !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
    color: var(--brand-amber) !important;
    transform: translateY(-2px);
}

.badge-amber-pill {
    background: rgba(245, 158, 11, 0.12);
    color: var(--brand-amber);
    border: 1px solid rgba(245, 158, 11, 0.4);
    padding: 6px 18px;
    border-radius: var(--radius-pill);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.badge-red-soft {
    background: rgba(220, 38, 38, 0.1);
    color: var(--brand-red);
    border: 1px solid rgba(220, 38, 38, 0.3);
    padding: 6px 16px;
    border-radius: var(--radius-pill);
    font-size: 12.5px;
    font-weight: 700;
}

/* ==========================================================================
   Hero Section (Dark Industrial)
   ========================================================================== */
.hero-industrial {
    position: relative;
    background: var(--brand-dark);
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 110px 0 50px;
}

.hero-video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 0;
    opacity: 0.75;
}

.hero-poster-mobile {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    z-index: 0;
    opacity: 0.75;
}

.hero-overlay-dark {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(7, 10, 18, 0.72) 0%, rgba(7, 10, 18, 0.65) 50%, rgba(7, 10, 18, 0.88) 100%);
    z-index: 1;
}

.hero-content-wrap {
    position: relative;
    z-index: 2;
}

/* Base Hero Typography (Used across general layouts) */
.hero-heading {
    color: var(--text-primary);
    font-size: 2.75rem;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.hero-lead {
    color: var(--text-secondary);
    font-size: 1.15rem;
    line-height: 1.7;
    max-width: 780px;
    margin-bottom: 32px;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

/* Specific Industrial Hero Typography (Homepage Video Hero Tuning) */
#esileht .hero-heading,
.hero-industrial .hero-heading {
    color: #FFFFFF !important;
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.65);
    font-size: 2.75rem;
    line-height: 1.16;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
}

#esileht .hero-lead,
.hero-industrial .hero-lead {
    color: #E2E8F0 !important;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.65);
    font-size: 1.18rem;
    line-height: 1.65;
    max-width: 780px;
    margin-bottom: 34px;
}

.hero-industrial .btn-brand-primary,
.hero-industrial .btn-brand-glass {
    padding: 12px 26px;
    font-size: 1rem;
}

/* Tablet & Medium Desktop Breakpoints for Homepage Hero */
@media (min-width: 992px) {
    .hero-industrial {
        padding: 120px 0 60px;
    }
    .hero-industrial .hero-heading {
        font-size: 3.25rem;
        line-height: 1.15;
        letter-spacing: -0.032em;
        margin-bottom: 24px;
        max-width: 960px;
    }
    .hero-industrial .hero-lead {
        font-size: 1.22rem;
        line-height: 1.65;
        max-width: 820px;
        margin-bottom: 36px;
    }
    .hero-industrial .btn-brand-primary,
    .hero-industrial .btn-brand-glass {
        padding: 13px 28px;
        font-size: 1.02rem;
    }
}

/* Standard Desktop (1200px - 1599px: 1200px, 1366px, 1440px) */
@media (min-width: 1200px) {
    .hero-industrial {
        padding: 130px 0 70px;
    }
    .hero-industrial .hero-heading {
        font-size: 3.65rem;
        line-height: 1.14;
        letter-spacing: -0.035em;
        margin-bottom: 26px;
        max-width: 1040px;
    }
    .hero-industrial .hero-lead {
        font-size: 1.28rem;
        line-height: 1.65;
        max-width: 880px;
        margin-bottom: 40px;
    }
    .hero-industrial .btn-brand-primary,
    .hero-industrial .btn-brand-glass {
        padding: 14px 32px;
        font-size: 1.05rem;
        min-height: 50px;
    }
}

/* Large & Ultra-Wide Desktop (1600px - 1920px+) */
@media (min-width: 1600px) {
    .hero-industrial .hero-heading {
        font-size: 3.85rem;
        line-height: 1.12;
        max-width: 1120px;
    }
    .hero-industrial .hero-lead {
        font-size: 1.32rem;
        max-width: 920px;
    }
}

.hero-stat-card {
    background: rgba(14, 20, 36, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--brand-dark-border);
    border-radius: var(--radius-md);
    padding: 20px 14px;
    text-align: center;
    transition: all 0.25s ease;
}

.hero-stat-card:hover {
    background: rgba(21, 29, 48, 0.85);
    border-color: rgba(245, 158, 11, 0.4);
    transform: translateY(-3px);
}

.hero-stat-value {
    color: var(--brand-amber);
    font-weight: 700;
    font-size: 1.75rem;
    line-height: 1;
    margin-bottom: 6px;
}

.hero-stat-label {
    color: #94A3B8;
    font-size: 12.5px;
    margin: 0;
    line-height: 1.35;
}

/* ==========================================================================
   Service Cards Modern
   ========================================================================== */
.service-card-modern {
    background: var(--surface-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.25s ease;
    cursor: pointer;
}

.service-card-modern:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--brand-red);
}

.service-card-img-holder {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.service-card-img-holder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.service-card-modern:hover .service-card-img-holder img {
    transform: scale(1.05);
}

.service-card-floating-badge {
    position: absolute;
    bottom: 14px;
    right: 14px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--brand-dark);
    color: var(--brand-amber);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    border: 1px solid var(--brand-dark-border);
    box-shadow: var(--shadow-md);
}

.service-card-body-modern {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.service-card-meta {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--brand-red);
    margin-bottom: 6px;
}

.service-card-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.service-card-text {
    color: var(--text-secondary);
    font-size: 14.5px;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.service-card-cta-row {
    font-weight: 600;
    font-size: 14px;
    color: var(--brand-red);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.2s ease;
}

.service-card-modern:hover .service-card-cta-row {
    gap: 12px;
    color: var(--brand-red-hover);
}

/* ==========================================================================
   Bento Grid Benefits
   ========================================================================== */
.bento-card {
    background: var(--surface-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 28px;
    height: 100%;
    box-shadow: var(--shadow-sm);
    transition: all 0.25s ease;
}

.bento-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-medium);
}

.bento-icon-box {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: rgba(220, 38, 38, 0.1);
    color: var(--brand-red);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 16px;
}

.bento-icon-box.amber {
    background: rgba(245, 158, 11, 0.12);
    color: var(--brand-amber);
}

/* ==========================================================================
   RAL Swatches & Filter
   ========================================================================== */
.ral-swatch-card {
    background: var(--surface-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    overflow: hidden;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
    cursor: pointer;
}

.ral-swatch-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--brand-amber);
}

.ral-color-block {
    height: 70px;
    width: 100%;
}

.ral-details {
    padding: 10px 8px;
}

.ral-code-text {
    font-weight: 700;
    font-size: 13.5px;
    color: var(--text-primary);
    display: block;
}

.ral-name-text {
    font-size: 12px;
    color: var(--text-secondary);
}

/* Filter Buttons */
.filter-btn {
    background: var(--surface-card);
    border: 1px solid var(--border-light);
    color: var(--text-secondary);
    padding: 7px 18px;
    border-radius: var(--radius-pill);
    font-size: 13.5px;
    font-weight: 600;
    transition: all 0.2s ease;
    cursor: pointer;
    min-height: 40px;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--brand-dark);
    border-color: var(--brand-dark);
    color: #FFFFFF;
}

/* ==========================================================================
   Interactive Price Calculator Card
   ========================================================================== */
.calculator-box {
    background: var(--surface-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 32px;
    box-shadow: var(--shadow-md);
}

.calc-result-display {
    background: var(--brand-dark-surface);
    border: 1px solid var(--brand-dark-border);
    border-radius: var(--radius-md);
    padding: 24px;
    color: #FFFFFF;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.calc-result-display .text-muted,
.calc-result-display p {
    color: #94A3B8 !important;
}

.calc-result-display .text-secondary {
    color: #CBD5E1 !important;
}

.calc-price-big {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--brand-amber);
    line-height: 1.1;
}

/* ==========================================================================
   Reviews & Social Proof
   ========================================================================== */
.review-card-modern {
    background: var(--surface-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 26px;
    height: 100%;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.review-stars {
    color: var(--brand-amber);
    font-size: 14px;
    margin-bottom: 12px;
}

.review-quote {
    font-size: 14.5px;
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 20px;
    font-style: italic;
}

.review-author-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.review-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--surface-hover);
    color: var(--text-primary);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    border: 1px solid var(--border-light);
}

/* ==========================================================================
   Mobile & Tablet Responsive Adjustments
   ========================================================================== */
@media (max-width: 991.98px) {
    .site-header .site-logo-img {
        height: 38px;
    }
    .offcanvas.offcanvas-end {
        width: 320px;
        max-width: 85vw;
    }
}

@media (max-width: 767.98px) {
    html, body {
        overflow-x: hidden;
    }

    /* Hero First-Screen Composition Fix */
    .hero-industrial {
        min-height: 100vh;
        min-height: 100dvh;
        padding-top: 84px; /* Account for fixed top navbar */
        padding-bottom: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .hero-video-bg {
        object-position: center center;
    }
    .hero-heading,
    .hero-industrial .hero-heading {
        font-size: 1.85rem;
        line-height: 1.2;
        margin-bottom: 16px;
    }
    .hero-lead,
    .hero-industrial .hero-lead {
        font-size: 0.95rem;
        line-height: 1.55;
        margin-bottom: 24px;
        max-width: 100%;
    }
    .hero-industrial .btn {
        padding: 10px 20px;
        font-size: 14.5px;
        min-height: 44px;
    }

    /* Section Typography & Spacing */
    .section-title {
        font-size: 1.65rem;
        line-height: 1.25;
    }
    .service-card-img-holder {
        height: 190px;
    }
    .service-card-body-modern {
        padding: 18px;
    }
    .bento-card {
        padding: 20px;
    }
    .calculator-box {
        padding: 20px;
    }
    .calc-result-display {
        padding: 18px;
    }
    .review-card-modern {
        padding: 20px;
    }

    /* Mobile Button Spacing & Ergonomics - Doubled Spacing */
    .btn {
        min-height: 44px;
        text-align: center;
    }
    .d-flex.gap-4,
    .d-flex.flex-wrap.gap-4,
    .d-flex.gap-3,
    .d-flex.flex-wrap.gap-3 {
        row-gap: 24px !important;
        column-gap: 24px !important;
    }
    .d-flex.gap-2,
    .d-flex.flex-wrap.gap-2 {
        row-gap: 16px !important;
        column-gap: 16px !important;
    }
}

/* Action Button Groups - Doubled Distance (32px Desktop) */
.d-flex.gap-4,
.d-flex.flex-wrap.gap-4 {
    gap: 32px !important;
    row-gap: 24px !important;
    column-gap: 32px !important;
}

@media (max-width: 575.98px) {
    .hero-content-wrap .d-flex.flex-wrap,
    .service-hero .d-flex.flex-wrap {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        max-width: 320px;
        margin-left: auto;
        margin-right: auto;
        gap: 20px !important;
        row-gap: 20px !important;
    }
    .hero-content-wrap .d-flex.flex-wrap .btn,
    .service-hero .d-flex.flex-wrap .btn {
        width: 100%;
    }
}

@media (max-width: 360px) {
    .hero-heading,
    .hero-industrial .hero-heading {
        font-size: 1.65rem;
    }
    .hero-lead,
    .hero-industrial .hero-lead {
        font-size: 0.88rem;
    }
    .btn-brand-primary, .btn-brand-glass {
        padding: 10px 16px;
        font-size: 14px;
    }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    background: #070A12 !important;
    background-color: #070A12 !important;
    color: #94A3B8;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 70px;
    padding-bottom: 40px;
}

.site-footer h1,
.site-footer h2,
.site-footer h3,
.site-footer h4,
.site-footer h5,
.site-footer h6,
.site-footer .h5,
.site-footer .footer-heading {
    color: #FFFFFF !important;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.site-footer .footer-brand-title {
    color: var(--brand-red, #DC2626) !important;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.footer-link {
    color: #94A3B8;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 10px;
    transition: color 0.2s ease;
    word-break: normal;
    overflow-wrap: normal;
    hyphens: none;
}

.footer-link:hover {
    color: var(--brand-amber);
}

.footer-social-link {
    color: #FFFFFF !important;
    font-size: 19px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
    line-height: 1;
}

.footer-social-link:hover {
    color: var(--brand-amber, #F59E0B) !important;
    transform: translateY(-2px);
}

.footer-bottom {
    margin-top: 50px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 13.5px;
}

@media (max-width: 991.98px) {
    .site-footer {
        padding-top: 45px;
        padding-bottom: 30px;
    }
    .site-footer h1,
    .site-footer h2,
    .site-footer h3,
    .site-footer h4,
    .site-footer h5,
    .site-footer h6,
    .site-footer .h5,
    .site-footer .footer-heading {
        font-size: 1.05rem;
        margin-bottom: 14px;
    }
    .site-footer .footer-link {
        font-size: 13.5px;
        line-height: 1.38;
        margin-bottom: 8px;
    }
    .site-footer .footer-col-right {
        padding-left: 0 !important;
    }
    .footer-bottom {
        margin-top: 30px;
        padding-top: 18px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .site-footer .footer-link {
        font-size: 13px;
        letter-spacing: -0.15px;
    }
}

/* ==========================================================================
   Mobile Offcanvas Menu Drawer
   ========================================================================== */
.offcanvas-mobile-menu {
    background-color: var(--brand-dark, #070A12) !important;
    border-left: 1px solid rgba(255, 255, 255, 0.1) !important;
    width: 320px !important;
    max-width: 85vw !important;
    z-index: 1055 !important;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    pointer-events: auto !important;
}

.offcanvas-backdrop.show {
    z-index: 1050 !important;
    background-color: rgba(7, 10, 18, 0.75) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.offcanvas-mobile-menu .offcanvas-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    padding: 1.25rem 1.5rem;
}

.offcanvas-mobile-menu .offcanvas-body {
    padding: 1.5rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.offcanvas-nav-link {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    border-radius: var(--radius-sm, 8px);
    color: var(--text-light, #F8FAFC) !important;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 0.95rem;
    min-height: 44px;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.offcanvas-nav-link i {
    color: var(--brand-amber, #F59E0B);
    font-size: 1.05rem;
    width: 22px;
    text-align: center;
    margin-right: 10px;
}

.offcanvas-nav-link:hover,
.offcanvas-nav-link:focus {
    background-color: rgba(255, 255, 255, 0.06);
    color: #FFFFFF !important;
}

.offcanvas-nav-link.active {
    background-color: rgba(245, 158, 11, 0.12) !important;
    color: var(--brand-amber, #F59E0B) !important;
}

.offcanvas-sub-link {
    display: flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 6px;
    color: #CBD5E1 !important;
    text-decoration: none !important;
    font-size: 0.88rem;
    font-weight: 500;
    min-height: 40px;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.offcanvas-sub-link:hover,
.offcanvas-sub-link:focus {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--brand-amber, #F59E0B) !important;
}

.offcanvas-sub-link.active {
    background-color: rgba(245, 158, 11, 0.12) !important;
    color: var(--brand-amber, #F59E0B) !important;
}

/* ==========================================================================
   Language Switcher (Desktop & Mobile)
   ========================================================================== */
.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
    border-radius: var(--radius-sm, 8px);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.lang-btn {
    border: 0;
    border-radius: 6px;
    font-size: 12.5px;
    font-weight: 700;
    padding: 6px 12px;
    color: #94A3B8;
    background: transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    min-width: 44px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

.lang-btn:hover,
.lang-btn:focus-visible {
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.1);
}

.lang-btn.active {
    background: var(--brand-red, #DC2626) !important;
    color: #FFFFFF !important;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.4);
}



/* ==========================================================================
   Remediation Overrides (Picostrap Colophon & Dropdown Contrast Safety)
   ========================================================================== */
#wrapper-footer-colophon {
    display: none !important;
}

.site-header .dropdown-menu-custom,
.dropdown-menu.dropdown-menu-custom {
    background-color: #0E1424 !important;
    background: rgba(14, 20, 36, 0.98) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
}

.dropdown-item-parent,
.dropdown-item-custom {
    color: #FFFFFF !important;
}

.dropdown-item-child {
    color: #CBD5E1 !important;
}

.dropdown-item-child:hover,
.dropdown-item-child:focus {
    color: #F59E0B !important;
    background: rgba(245, 158, 11, 0.1) !important;
}

/* Align .py-lg-6 with standard Bootstrap 5.3.3 spacing in redesign_v2 */
@media (min-width: 992px) {
    .py-lg-6 {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
}

/* Bootstrap 5.3 Rounded Utility Classes Parity */
.rounded-4 {
    border-radius: 1rem !important;
}
.rounded-5 {
    border-radius: 1.5rem !important;
}

/* Neutralize WordPress core border leakage on directional border classes */
.border-top {
    border-top: 1px solid var(--border-light, #E2E8F0) !important;
    border-right: none !important;
    border-bottom: none !important;
    border-left: none !important;
}
.border-bottom {
    border-bottom: 1px solid var(--border-light, #E2E8F0) !important;
    border-top: none !important;
    border-right: none !important;
    border-left: none !important;
}
.border-start {
    border-left: 1px solid var(--border-light, #E2E8F0) !important;
    border-top: none !important;
    border-right: none !important;
    border-bottom: none !important;
}
.border-end {
    border-right: 1px solid var(--border-light, #E2E8F0) !important;
    border-top: none !important;
    border-bottom: none !important;
    border-left: none !important;
}

/* ==========================================================================
   Responsive Pricing Tables (Mobile Card Transformation)
   ========================================================================== */
@media (max-width: 767.98px) {
    .table-responsive {
        border: none !important;
        overflow-x: visible !important;
        padding: 0 !important;
    }

    .table-responsive table.table {
        display: block !important;
        width: 100% !important;
        border: none !important;
        margin-bottom: 0 !important;
        background: transparent !important;
    }

    /* Hide desktop table header on mobile */
    .table-responsive table.table thead {
        display: none !important;
    }

    .table-responsive table.table tbody {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
        padding: 10px 0 !important;
    }

    /* Transform each row into a distinct mobile card */
    .table-responsive table.table tbody tr {
        display: flex !important;
        flex-direction: column !important;
        background: #FFFFFF !important;
        border: 1px solid var(--border-light, #E2E8F0) !important;
        border-radius: 12px !important;
        padding: 14px 16px !important;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
        transition: transform 0.2s ease, box-shadow 0.2s ease !important;
    }

    .table-responsive table.table tbody tr:hover {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
        border-color: rgba(220, 38, 38, 0.3) !important;
    }

    /* Cell layout inside the card */
    .table-responsive table.table tbody tr td {
        display: block !important;
        width: 100% !important;
        padding: 0 !important;
        border: none !important;
        background: transparent !important;
        text-align: left !important;
    }

    /* Category / Service Title */
    .table-responsive table.table tbody tr td:first-child {
        font-size: 15px !important;
        font-weight: 700 !important;
        color: var(--text-primary, #0F172A) !important;
        line-height: 1.4 !important;
        margin-bottom: 6px !important;
        padding-left: 0 !important;
    }

    .table-responsive table.table tbody tr td:first-child strong {
        color: var(--text-primary, #0F172A) !important;
        font-weight: 700 !important;
    }

    /* Middle / Secondary cell (Unit or Note) */
    .table-responsive table.table tbody tr td:not(:first-child):not(:last-child) {
        font-size: 13px !important;
        color: var(--text-secondary, #64748B) !important;
        margin-bottom: 8px !important;
        line-height: 1.45 !important;
    }

    .table-responsive table.table tbody tr td:not(:first-child):not(:last-child) .badge {
        font-size: 12px !important;
        padding: 4px 8px !important;
        background: var(--surface-main, #F8FAFC) !important;
        border: 1px solid var(--border-light, #E2E8F0) !important;
        color: var(--text-secondary, #475569) !important;
        font-weight: 600 !important;
    }

    /* Price Row (Last Cell) */
    .table-responsive table.table tbody tr td:last-child {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        margin-top: 6px !important;
        padding-top: 10px !important;
        padding-right: 0 !important;
        border-top: 1px dashed var(--border-light, #E2E8F0) !important;
        font-size: 16px !important;
        font-weight: 800 !important;
        color: var(--brand-red, #DC2626) !important;
        white-space: normal !important;
    }

    .table-responsive table.table tbody tr td:last-child strong,
    .table-responsive table.table tbody tr td:last-child .text-danger {
        font-size: 16px !important;
        font-weight: 800 !important;
        color: var(--brand-red, #DC2626) !important;
        text-align: right !important;
    }
}








/* Mobile Responsive Heading Refinements (Prevents word clipping/overflow on long words) */
@media (max-width: 991.98px) {
    h1, .hero-heading, [style*="font-size: 2.5rem"], [style*="font-size: 2.4rem"], [style*="font-size: 2.35rem"] {
        font-size: clamp(1.55rem, 5.2vw, 2rem) !important;
        line-height: 1.22 !important;
        word-break: normal !important;
        overflow-wrap: normal !important;
    }
    h2, .section-title, .cta-heading, [style*="font-size: 2.2rem"], [style*="font-size: 2.1rem"] {
        font-size: clamp(1.3rem, 4.2vw, 1.75rem) !important;
        line-height: 1.25 !important;
        word-break: normal !important;
        overflow-wrap: normal !important;
    }
}

@media (max-width: 575.98px) {
    h1, .hero-heading, [style*="font-size: 2.5rem"], [style*="font-size: 2.4rem"], [style*="font-size: 2.35rem"] {
        font-size: clamp(1.4rem, 5.6vw, 1.7rem) !important;
        line-height: 1.22 !important;
        word-break: normal !important;
        overflow-wrap: normal !important;
    }
    h2, .section-title, .cta-heading, [style*="font-size: 2.2rem"], [style*="font-size: 2.1rem"] {
        font-size: clamp(1.2rem, 4.5vw, 1.45rem) !important;
        line-height: 1.26 !important;
        word-break: normal !important;
        overflow-wrap: normal !important;
    }
}

@media (max-width: 380px) {
    h1, .hero-heading, [style*="font-size: 2.5rem"], [style*="font-size: 2.4rem"], [style*="font-size: 2.35rem"] {
        font-size: clamp(1.3rem, 5.4vw, 1.5rem) !important;
        line-height: 1.24 !important;
    }
    h2, .section-title, .cta-heading, [style*="font-size: 2.2rem"], [style*="font-size: 2.1rem"] {
        font-size: clamp(1.12rem, 4.4vw, 1.28rem) !important;
        line-height: 1.28 !important;
    }
}
