@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Light theme — refined for high-tech premium feel */
    --bg-primary: #ffffff;
    --bg-secondary: #f4f6f9;
    --bg-tertiary: #eaedf2;
    --bg-dark: #0a1128;
    --text-primary: #0a1128;
    --text-secondary: #3c4858;
    --text-muted: #6c7a89;
    --brand-navy: #002855;
    --brand-green: #5fa92c;
    --brand-green-hover: #4e8e20;
    --brand-green-bright: #9ee356;
    --brand-green-light: rgba(95, 169, 44, 0.1);
    --brand-teal: #00509d;
    --brand-teal-dark: #00366b;
    --brand-gradient: linear-gradient(135deg, var(--brand-navy) 0%, var(--brand-teal) 100%);
    --border-color: rgba(0, 40, 85, 0.07);
    --border-color-strong: rgba(0, 40, 85, 0.12);
    --shadow-sm: 0 4px 12px rgba(0, 40, 85, 0.02);
    --shadow-md: 0 10px 30px rgba(0, 40, 85, 0.04);
    --shadow-lg: 0 20px 48px rgba(0, 40, 85, 0.06);
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-normal: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    
    /* Glassmorphism system */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-bg-hover: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.5);
    --glass-border-hover: rgba(255, 255, 255, 0.8);
    --glass-shadow: 0 8px 32px 0 rgba(0, 40, 85, 0.03);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background: #ffffff;
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Blueprint / Tech grid dot pattern */
.tech-grid-bg {
    position: relative;
}

.tech-grid-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(0, 40, 85, 0.04) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
    z-index: 0;
}

.tech-grid-bg > * {
    position: relative;
    z-index: 1;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.25;
    color: var(--text-primary);
}

h1 {
    font-size: 2.75rem;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2.25rem;
    letter-spacing: -0.01em;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.75rem;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 48px;
    height: 3px;
    background-color: var(--brand-green);
    border-radius: 2px;
}

h2.center::after {
    left: 50%;
    transform: translateX(-50%);
}

p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

a {
    color: var(--brand-navy);
}

/* Layout Containers */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 5rem 0;
}

.section-alt {
    background-color: var(--bg-secondary);
    padding: 5rem 0;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    align-items: center;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

@media (max-width: 1024px) {
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .section, .section-alt {
        padding: 3.5rem 0;
    }
    h1 {
        font-size: 2rem;
    }
    h2 {
        font-size: 1.75rem;
    }
}

/* ========== TOP CONTACT BAR ========== */
.top-bar {
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    padding: 0.6rem 0;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.01em;
}

.top-bar-inner {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 2rem;
}

.top-bar a {
    color: var(--text-secondary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-fast);
}

.top-bar a svg, .top-bar a i {
    color: var(--brand-green);
    width: 14px;
    height: 14px;
    transition: var(--transition-fast);
    stroke-width: 2.5px;
}

.top-bar a:hover {
    color: var(--brand-navy);
}

.top-bar a:hover svg, .top-bar a:hover i {
    color: var(--brand-green-hover);
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .top-bar {
        display: none;
    }
}

/* ========== HEADER & NAVIGATION ========== */
header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 40, 85, 0.05);
    z-index: 1000;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.01);
    transition: background-color var(--transition-normal), box-shadow var(--transition-normal);
}

header.phantom-active {
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(9.4px);
    -webkit-backdrop-filter: blur(9.4px);
    box-shadow: 0 8px 32px 0 rgba(0, 40, 85, 0.08);
}

header.phantom-active .top-bar {
    max-height: 0;
    opacity: 0;
    padding-top: 0;
    padding-bottom: 0;
    border-bottom: none;
    pointer-events: none;
}

.top-bar {
    transition: max-height var(--transition-normal), opacity var(--transition-normal), padding var(--transition-normal);
    max-height: 50px;
    overflow: hidden;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 76px;
    transition: height var(--transition-normal);
}

header.phantom-active .nav-container {
    height: 60px;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: opacity var(--transition-fast);
}
.logo img {
    display: block;
}

.logo:hover {
    opacity: 0.9;
}

.nav-menu {
    display: flex;
    gap: 0.4rem;
    list-style: none;
    align-items: center;
}

.nav-link {
    display: inline-block;
    white-space: nowrap;
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color var(--transition-fast);
    padding: 0.5rem 0.25rem;
    margin: 0 0.4rem;
    position: relative;
}

.nav-link:hover {
    color: var(--brand-navy);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--brand-green);
    transition: width var(--transition-fast);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link.active {
    color: var(--brand-navy);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--brand-green);
}

/* Get A Quote nav button */
.nav-cta {
    display: inline-block;
    background-color: var(--brand-navy);
    color: #fff !important;
    padding: 0.55rem 1.4rem;
    border-radius: 99px;
    font-weight: 700;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all var(--transition-fast);
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 40, 85, 0.15);
}

.nav-cta:hover {
    background-color: var(--brand-green);
    box-shadow: 0 6px 16px rgba(95, 169, 44, 0.20);
    transform: translateY(-1px);
}

.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.6rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.mobile-nav-toggle:hover {
    background-color: rgba(0, 40, 85, 0.05);
}

@media (max-width: 960px) {
    .mobile-nav-toggle {
        display: flex;
    }
    .nav-menu {
        position: fixed;
        top: 76px;
        left: 0;
        width: 100%;
        height: calc(100vh - 76px);
        background-color: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 2.5rem 1.5rem;
        gap: 0.75rem;
        transform: translateY(-100%);
        opacity: 0;
        transition: transform var(--transition-normal), opacity var(--transition-normal);
        pointer-events: none;
        border-top: 1px solid var(--border-color);
    }
    .nav-menu.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }
    .nav-link {
        font-size: 1.05rem;
        padding: 0.6rem 1.5rem;
        width: 100%;
        text-align: center;
        margin: 0.25rem 0;
    }
    .nav-link::after {
        left: 50%;
        transform: translateX(-50%);
        bottom: 0;
    }
    .nav-link:hover::after {
        width: 60px;
    }
    .nav-link.active::after {
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 60px;
        height: 2px;
        background-color: var(--brand-green);
    }
    .nav-cta {
        margin-top: 1rem;
        text-align: center;
        display: block;
        padding: 0.85rem 1.5rem;
        width: 100%;
    }
}

/* ========== HERO SECTION ========== */
/* ========== HERO SLIDER SECTION ========== */
.hero-slider {
    position: relative;
    height: 100vh;
    min-height: 600px;
    width: 100%;
    overflow: hidden;
    color: #fff;
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1), visibility 1s;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.slide-media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

/* Background video container */
.slide-video-wrap {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
    background: #000;
}

.slide-video-wrap iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 56.25vw; /* 16:9 ratio */
    min-height: 100vh;
    min-width: 177.77vh; /* 16:9 ratio */
    transform: translate(-50%, -50%) scale(1.3);
    pointer-events: none;
    border: none;
}

.slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(0, 40, 85, 0.877) 0%,
        rgba(0, 44, 95, 0.699) 30%,
        rgba(0, 50, 107, 0.30) 60%,
        rgba(0, 0, 0, 0.02) 100%
    );
    z-index: 2;
}

.hero-slider::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 60%;
    height: 140%;
    background: radial-gradient(circle, rgba(95, 169, 44, 0.15) 0%, transparent 60%);
    pointer-events: none;
    z-index: 3;
}

.hero-slider::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
    z-index: 3;
}

.slide-content-container {
    position: relative;
    z-index: 4;
    height: 100%;
    display: flex;
    align-items: center;
}

.hero-content {
    max-width: 720px;
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-subtitle {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #fff;
    background-color: rgba(0, 40, 85, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 0.4rem 1.25rem;
    border-radius: 99px;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    display: inline-block;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-slider h1 {
    font-size: 3.5rem;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    color: #fff;
    letter-spacing: -0.02em;
    font-family: var(--font-display);
}

.hero-slider p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    color: #ffffff;
    font-weight: 500;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.699);
}

/* Slider Controls */
.slider-nav {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.75rem;
    z-index: 5;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active {
    background: var(--brand-green);
    transform: scale(1.2);
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 40, 85, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
}
.slider-arrow svg {
    display: block;
    width: 20px;
    height: 20px;
}

.slider-arrow:hover {
    background: var(--brand-green);
    border-color: var(--brand-green);
}

.slider-arrow-prev {
    left: 2rem;
}

.slider-arrow-next {
    right: 2rem;
}

@media (max-width: 1024px) {
    .slider-arrow {
        display: none;
    }
    .hero-slider h1 {
        font-size: 2.8rem;
    }
    .hero-slider p {
        font-size: 1.05rem;
    }
}

/* Page hero — lighter, blue-dominant gradient */
.page-hero {
    padding: 10rem 0 5rem 0;
    background: linear-gradient(105deg, rgba(0, 40, 85, 0.98) 0%, rgba(0, 80, 157, 0.8) 50%, rgba(95, 169, 44, 0.3) 100%), url('../Liftronic-rail-mounted-arm-900x600.jpg') no-repeat center center;
    background-size: cover;
    color: #fff;
    position: relative;
}

.about-page-hero {
    background-image: linear-gradient(105deg, rgba(0, 40, 85, 0.94) 0%, rgba(0, 80, 157, 0.74) 55%, rgba(95, 169, 44, 0.28) 100%), url('../images/about-us-hero.jpeg');
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 100%;
    background: radial-gradient(circle, rgba(95, 169, 44, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.page-hero h1 {
    color: #fff;
    margin-bottom: 0.5rem;
    font-size: 2.75rem;
}

.page-hero p {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 0;
    font-size: 1.1rem;
}

.page-hero .hero-subtitle {
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
    padding: 0.25rem 0.75rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
    .hero-slider {
        height: 78vh;
        height: 78svh;
        min-height: 500px;
        max-height: 720px;
        position: relative;
        padding: 0;
    }
    .hero-slider .slide-content-container {
        padding: 3rem 0 4.5rem;
        align-items: center;
    }
    .hero-slider .slide-video-wrap iframe {
        transform: translate(-50%, -50%) scale(1.1);
    }
    .hero-slider .hero-content {
        max-width: 620px;
    }
    .hero-slider .hero-subtitle {
        max-width: 100%;
        font-size: 0.7rem;
        padding: 0.4rem 0.85rem;
        white-space: normal;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    }
    .hero-slider h1 {
        font-size: 1.8rem;
        line-height: 1.2;
        margin-bottom: 1rem;
    }
    .hero-slider p {
        font-size: 0.95rem;
        line-height: 1.5;
        margin-bottom: 1.5rem;
    }
    .hero-slider .btn-group {
        flex-wrap: wrap;
        gap: 0.75rem;
    }
    .page-hero {
        padding: 6rem 0 2.5rem 0;
    }
    .btn {
        padding: 0.7rem 1.35rem;
        font-size: 0.82rem;
    }
}

@media (max-width: 480px) {
    .hero-slider .slide-content-container {
        padding: 2.5rem 0 4rem;
    }
    .hero-slider .btn-group {
        flex-direction: column;
        align-items: stretch;
    }
    .hero-slider .btn-group .btn {
        width: min(100%, 280px);
        justify-content: center;
        text-align: center;
    }
}

/* ========== BUTTONS ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    padding: 0.85rem 2rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 99px; /* Rounded pill style */
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    border: none;
    font-family: var(--font-sans);
    letter-spacing: -0.01em;
}

.btn-primary {
    background-color: var(--brand-green);
    color: #fff;
    box-shadow: 0 2px 8px rgba(95, 169, 44, 0.15);
}

.btn-primary:hover {
    background-color: var(--brand-green-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(95, 169, 44, 0.25);
}

.btn-secondary {
    background-color: transparent;
    border: 1.5px solid var(--border-color-strong);
    color: var(--text-primary);
}

.btn-secondary:hover {
    border-color: var(--brand-navy);
    color: var(--brand-navy);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 40, 85, 0.06);
}

.btn-white {
    background-color: #fff;
    color: var(--brand-navy);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.btn-white:hover {
    background-color: rgba(255, 255, 255, 0.95);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 40, 85, 0.12);
}

.btn-outline-white {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.btn-outline-white:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.45);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 255, 255, 0.08);
}

.btn-group {
    display: flex;
    gap: 1rem;
}

/* ========== CARDS (GLASSMORPHISM) ========== */
.card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2.5rem;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    box-shadow: var(--glass-shadow);
    display: flex;
    flex-direction: column;
}

.card .btn,
.card a.btn {
    margin-top: auto;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(95, 169, 44, 0.03) 0%, transparent 100%);
    opacity: 0;
    transition: opacity var(--transition-normal);
    pointer-events: none;
}

.card:hover {
    transform: translateY(-6px) translateZ(0);
    box-shadow: 0 20px 48px rgba(0, 40, 85, 0.07);
    border-color: var(--glass-border-hover);
    background: var(--glass-bg-hover);
}

.card:hover::before {
    opacity: 1;
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--brand-navy);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 40, 85, 0.04);
    width: 64px;
    height: 64px;
    border-radius: 12px;
    transition: all var(--transition-normal);
}

.card:hover .card-icon {
    background: var(--brand-green-light);
    color: var(--brand-green-hover);
}

.card-icon svg, .card-icon i {
    width: 32px;
    height: 32px;
    color: inherit;
}

.card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
    color: var(--brand-navy);
}

.card p {
    font-size: 0.95rem;
    margin-bottom: 0;
    color: var(--text-secondary);
}

/* Product image card — used on homepage */
.product-image-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: var(--glass-shadow);
}

.product-image-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 48px rgba(0, 40, 85, 0.07);
    border-color: var(--glass-border-hover);
    background: var(--glass-bg-hover);
}

.product-image-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-bottom: 1px solid rgba(0, 40, 85, 0.05);
    transition: transform var(--transition-normal);
}

.product-image-card:hover img {
    transform: scale(1.03);
}

.product-image-card .product-card-body {
    padding: 1.75rem;
}

.product-image-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--brand-navy);
}

.product-image-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 0;
}

/* ========== PRODUCT PAGE SPECIFICS ========== */
.category-filter {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: #fff;
    border: 1.5px solid var(--border-color-strong);
    color: var(--text-secondary);
    padding: 0.6rem 1.5rem;
    border-radius: 99px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition-fast);
    font-family: var(--font-sans);
    text-decoration: none;
}

.filter-btn:hover, .filter-btn.active {
    background: var(--brand-navy);
    color: #fff;
    border-color: var(--brand-navy);
    box-shadow: 0 4px 12px rgba(0, 40, 85, 0.15);
    text-decoration: none;
}

.product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card .product-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-group-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--brand-green-hover);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.product-card .btn {
    margin-top: auto;
}

/* Accordion / Collapsible sections for product sub-groups */
.accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: all var(--transition-fast);
    margin-bottom: 0.75rem;
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--brand-navy);
    font-size: 1.15rem;
    box-shadow: var(--shadow-sm);
}

.accordion-header:hover {
    background: var(--bg-tertiary);
    border-color: var(--border-color-strong);
    transform: translateY(-1px);
}

.accordion-header.active {
    background: var(--brand-navy);
    color: #fff;
    border-color: var(--brand-navy);
    border-radius: 12px 12px 0 0;
    margin-bottom: 0;
}

.accordion-header .arrow {
    transition: transform var(--transition-fast);
    font-size: 0.85rem;
}

.accordion-header.active .arrow {
    transform: rotate(180deg);
}

.accordion-body {
    display: none;
    padding: 2rem;
    border: 1px solid var(--border-color);
    border-top: none;
    border-radius: 0 0 12px 12px;
    margin-bottom: 0.75rem;
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.accordion-body.open {
    display: block;
    animation: fadeInUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Sub-product list inside accordion */
.sub-product-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}

.sub-product-item {
    padding: 1.25rem;
    background: var(--bg-secondary);
    border-radius: 10px;
    border: 1px solid var(--border-color);
    transition: all var(--transition-fast);
    font-size: 0.95rem;
    color: var(--text-primary);
    font-weight: 500;
}

.sub-product-item:hover {
    border-color: var(--brand-green);
    background: var(--brand-green-light);
}

/* ========== AGV ADVANTAGES SECTION ========== */
.advantage-item {
    padding: 1.5rem;
    border-left: 4px solid var(--brand-green);
    background: var(--bg-secondary);
    border-radius: 0 8px 8px 0;
    margin-bottom: 1rem;
}

.advantage-item h4 {
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
    color: var(--brand-navy);
}

.advantage-item p {
    margin-bottom: 0;
    font-size: 0.95rem;
}

/* ========== VIDEO LIGHTBOX MODAL ========== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-normal);
}

.modal.open {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 800px;
    aspect-ratio: 16/9;
    background-color: #000;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

.modal-content iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ========== VIDEO GRID / APPLICATION CARDS ========== */
.video-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    transition: var(--transition-normal);
    cursor: pointer;
}

.video-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.video-card .video-thumb {
    position: relative;
    width: 100%;
    height: 180px;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.video-card .video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-card .play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.25);
    transition: var(--transition-fast);
}

.video-card:hover .play-overlay {
    background: rgba(0, 0, 0, 0.4);
}

.play-overlay .play-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--brand-green);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
}

.video-card .video-info {
    padding: 1.25rem;
}

.video-card h3 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.video-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

/* ========== GALLERY ========== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.gallery-item {
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    aspect-ratio: 4/3;
    border: 1px solid var(--border-color);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item .gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* ========== FORMS ========== */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.form-input, .form-textarea {
    width: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    border: 1.5px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.8rem 1rem;
    border-radius: 10px;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.form-input:focus, .form-textarea:focus {
    outline: none;
    background-color: #fff;
    border-color: var(--brand-navy);
    box-shadow: 0 0 0 4px rgba(0, 58, 120, 0.08);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

/* ========== FOOTER ========== */
footer {
    background-color: var(--bg-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 5rem 0 2rem 0;
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

footer h4 {
    font-family: var(--font-display);
    font-weight: 700;
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    letter-spacing: 0.02em;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

@media (max-width: 960px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.footer-logo-badge {
    background-color: #ffffff;
    padding: 0.5rem 0.85rem;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    height: 44px;
}

.footer-logo-badge img {
    height: 100%;
    width: auto;
    object-fit: contain;
}

.footer-col h4 {
    color: #fff;
}

.footer-col p {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-col a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    display: inline-block;
    transition: all var(--transition-fast);
}
 
.footer-col a:hover {
    color: var(--brand-green-bright);
    transform: translateX(4px);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.75rem;
}

.footer-col ul li a {
    font-size: 0.9rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 0;
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color var(--transition-fast);
}

.footer-bottom a:hover {
    color: #fff;
}

/* ========== STATS / KPI ========== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem;
    text-align: center;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--brand-green);
    margin-bottom: 0.5rem;
    line-height: 1;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--brand-green) 0%, #aacc00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

/* ========== CONTACT INFO CARDS ========== */
.contact-info-card {
    background: linear-gradient(135deg, var(--brand-navy) 0%, var(--brand-teal) 100%);
    color: #fff;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 12px 30px rgba(0, 40, 85, 0.15);
}

.contact-info-card h3 {
    font-family: var(--font-display);
    color: #fff;
    margin-bottom: 1.25rem;
    font-size: 1.4rem;
}

.contact-info-card p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
}

.contact-info-card a {
    color: #fff;
    text-decoration: underline;
    font-weight: 600;
    transition: color var(--transition-fast);
}

.contact-info-card a:hover {
    color: var(--brand-green-bright);
}

/* ========== UTILITIES ========== */
.text-center {
    text-align: center;
}

.mb-0 {
    margin-bottom: 0;
}

.mb-1 {
    margin-bottom: 0.5rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mb-3 {
    margin-bottom: 1.5rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

.mt-2 {
    margin-top: 1rem;
}

.mt-4 {
    margin-top: 2rem;
}

.product-card-icon-wrap {
    height: 200px;
    background: linear-gradient(135deg, rgba(0, 40, 85, 0.02) 0%, rgba(30, 95, 116, 0.05) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.product-card-icon-wrap::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(0, 40, 85, 0.03) 1px, transparent 1px);
    background-size: 16px 16px;
    pointer-events: none;
}

.product-card-icon-wrap > * {
    position: relative;
    z-index: 1;
}

.cta-section {
    background: radial-gradient(circle at 80% 20%, var(--brand-navy) 0%, #081125 100%);
    padding: 6rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
    z-index: 0;
}

.cta-section > * {
    position: relative;
    z-index: 1;
}

.cta-section h2 {
    color: #fff;
    font-size: 2.25rem;
    margin-bottom: 1rem;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    line-height: 1.6;
}

/* ========== HERO QUICK NAV OVERLAY ========== */
.hero-quick-nav {
    position: absolute;
    bottom: 2rem;
    left: 0;
    width: 100%;
    z-index: 10;
}
.quick-nav-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}
.quick-nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: rgba(0, 40, 85, 0.85);
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 99px;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: background-color var(--transition-fast), transform var(--transition-fast), border-color var(--transition-fast);
}
.quick-nav-content {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.quick-nav-content small {
    font-size: 8px;
    font-weight: 200;
    opacity: 0.75;
    line-height: 1.0;
    align-self:center;
}
.small-img {
    width: 15px;
    height: 15px;
    object-fit:contain;
    border-radius: 4px;
}
.small-text {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.quick-nav-btn:hover {
    background-color: var(--brand-green);
    border-color: var(--brand-green-bright);
    transform: translateY(-2px);
}

/* ========== PRODUCT ROLLOVER CARDS ========== */
.product-rollover-card {
    background-color: var(--bg-primary);
    border: 1px solid #ebebeb;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
}
.product-rollover-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 40, 85, 0.08);
    border-color: var(--brand-navy);
}
.product-rollover-media {
    position: relative;
    width: 100%;
    padding-bottom: 66.67%; /* 3:2 Aspect Ratio */
    overflow: hidden;
    background-color: #f8fafc;
}
.rollover-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}
.product-rollover-card:hover .rollover-img {
    transform: scale(1.05);
}
.product-rollover-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.product-rollover-content h3 {
    font-size: 1.2rem;
    color: var(--brand-navy);
    margin-bottom: 0.75rem;
}
.product-rollover-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 1.25rem;
    flex-grow: 1;
}
.rollover-link {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color var(--transition-fast);
}
.product-rollover-card:hover .rollover-link {
    color: var(--brand-green);
}

/* ========== COMPETENCE CARDS ========== */
.competence-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
    background: rgba(255, 255, 255, 0.05) !important;
}

@media (max-width: 768px) {
    .hero-quick-nav {
        display: none;
    }
    .slider-nav {
        bottom: 1.5rem !important;
    }
}

/* ========== NAVIGATION DROPDOWN MENU ========== */
.nav-dropdown-wrapper {
    position: relative;
}
.nav-dropdown-heading { display: flex; align-items: center; }
.nav-dropdown-toggle {
    display: inline-flex;
    width: 1.5rem;
    height: 2rem;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    color: var(--text-secondary);
    font-size: 1.1rem;
    cursor: pointer;
    transition: transform var(--transition-fast);
}

.nav-dropdown-wrapper:hover > .nav-dropdown-heading > .nav-dropdown-toggle,
.nav-dropdown-wrapper:focus-within > .nav-dropdown-heading > .nav-dropdown-toggle,
.nav-dropdown-wrapper.brands-open > .nav-dropdown-heading > .nav-dropdown-toggle {
    transform: rotate(90deg);
}

.dropdown-caret {
    font-size: 0.6rem;
    vertical-align: middle;
    margin-left: 0.2rem;
    opacity: 0.7;
}

.nav-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background-color: #ffffff;
    border: 1px solid rgba(0, 40, 85, 0.08);
    border-radius: 8px;
    padding: 0.75rem 0;
    min-width: 220px;
    list-style: none;
    box-shadow: 0 10px 30px rgba(0, 40, 85, 0.08);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity var(--transition-fast), transform var(--transition-fast), visibility var(--transition-fast);
    z-index: 1100;
}

.nav-dropdown::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 0;
    width: 100%;
    height: 15px;
}

.nav-dropdown-wrapper:hover .nav-dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.nav-dropdown-wrapper.brands-open > .nav-dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.dropdown-link {
    display: block;
    padding: 0.6rem 1.25rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.85rem;
    transition: background-color var(--transition-fast), color var(--transition-fast);
    white-space: nowrap;
    text-align: left;
}

.dropdown-link:hover {
    background-color: var(--bg-secondary);
    color: var(--brand-navy);
}

.dropdown-link.active {
    color: var(--brand-green);
    font-weight: 600;
}

.nav-submenu-wrapper { position: relative; }
.nav-submenu-heading { display: flex; align-items: center; }
.nav-submenu-toggle { display: none; }
.nav-submenu-heading > .dropdown-link .dropdown-caret {
    display: inline-block;
    transform: rotate(0deg);
    transition: transform var(--transition-fast);
}

@media (min-width: 1025px) {
    .nav-submenu-heading > .dropdown-link { flex: 1; }
    .nav-submenu-toggle {
        display: inline-flex;
        width: 1.5rem;
        height: 2rem;
        align-items: center;
        justify-content: center;
        border: 0;
        background: transparent;
        color: var(--text-secondary);
        font-size: 1.1rem;
        cursor: pointer;
        transition: transform var(--transition-fast);
    }
    .nav-submenu-wrapper:hover > .nav-submenu-heading > .nav-submenu-toggle,
    .nav-submenu-wrapper:focus-within > .nav-submenu-heading > .nav-submenu-toggle {
        transform: rotate(90deg);
    }

    .nav-submenu-wrapper:hover > .nav-submenu-heading > .dropdown-link .dropdown-caret,
    .nav-submenu-wrapper:focus-within > .nav-submenu-heading > .dropdown-link .dropdown-caret {
        transform: rotate(-90deg);
    }
}

.nav-submenu {
    position: absolute;
    top: 0;
    left: 100%;
    min-width: 240px;
    padding: 0.5rem 0;
    list-style: none;
    background: #fff;
    border: 1px solid rgba(0, 40, 85, 0.08);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 40, 85, 0.08);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(-12px);
    transition: transform var(--transition-fast), opacity var(--transition-fast), visibility var(--transition-fast);
}

@media (min-width: 1025px) {
    .nav-submenu-wrapper:hover > .nav-submenu,
    .nav-submenu-wrapper:focus-within > .nav-submenu {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateX(0);
    }
}

/* Dropdown mobile styling */
@media (max-width: 1024px) {
    .nav-dropdown-heading > .nav-link { flex: 1; }
    .nav-dropdown-toggle {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1.35rem;
    }

    .nav-dropdown {
        position: static;
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        box-shadow: none;
        border: none;
        background: transparent;
        padding: 0.5rem 0 0.5rem 1rem;
        min-width: auto;
        display: none;
    }
    
    .nav-menu.open .nav-dropdown-wrapper.brands-open > .nav-dropdown {
        display: block;
    }
    
    .dropdown-link {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    .nav-submenu {
        position: static;
        display: block;
        min-width: 0;
        max-height: 0;
        overflow: hidden;
        padding: 0 0 0 0.75rem;
        border: 0;
        box-shadow: none;
        opacity: 0;
        visibility: visible;
        pointer-events: none;
        transform: translateX(-12px);
        transition: max-height var(--transition-fast), transform var(--transition-fast), opacity var(--transition-fast);
    }

    .nav-submenu-wrapper.submenu-open > .nav-submenu {
        max-height: 8rem;
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
        transform: translateX(0);
    }

    .nav-submenu-heading { flex: 1; }
    .nav-submenu-heading > .dropdown-link { flex: 1; }
    .nav-submenu-toggle {
        display: inline-flex;
        width: 2.5rem;
        height: 2.5rem;
        align-items: center;
        justify-content: center;
        border: 0;
        background: transparent;
        color: var(--text-secondary);
        font-size: 1.35rem;
        cursor: pointer;
        transition: transform var(--transition-fast);
    }
    .nav-submenu-wrapper.submenu-open > .nav-submenu-heading > .nav-submenu-toggle {
        transform: rotate(90deg);
    }
    
    .dropdown-caret {
        display: inline-block;
        transform: rotate(90deg);
    }

    .nav-submenu-heading > .dropdown-link .dropdown-caret {
        display: none;
    }

    .nav-submenu-wrapper.submenu-open > .nav-submenu-heading > .dropdown-link .dropdown-caret {
        transform: rotate(180deg);
    }
}

/* Blog admin and public article pages */
.blog-admin { max-width: 1080px; }
.blog-admin-heading { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; margin-bottom: 2rem; padding: 1.75rem 2rem; border-radius: 16px; color: #fff; background: var(--brand-gradient); }
.blog-admin-heading h1 { margin: 0; color: #fff; }
.blog-admin-nav, .blog-admin-nav form, .blog-admin-toolbar, .blog-admin-actions { display: flex; align-items: center; gap: 1rem; }
.blog-admin-toolbar { justify-content: space-between; margin-bottom: 1.5rem; }
.blog-admin-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: 0 0 1.5rem; }
.blog-admin-stats > div { display: grid; gap: .15rem; padding: 1.1rem 1.25rem; border: 1px solid var(--border-color); border-radius: 12px; background: #fff; box-shadow: var(--shadow-sm); }
.blog-admin-stats strong { color: var(--brand-navy); font: 700 1.6rem/1.2 var(--font-display); }
.blog-admin-stats span { color: var(--text-muted); font-size: .85rem; }
.blog-admin-toolbar p { margin: 0; }
.blog-admin-form, .blog-admin-editor { max-width: 760px; margin: 0 auto; }
.blog-admin-editor { max-width: 1080px; }
.blog-admin-form form, .blog-admin-editor form { display: grid; gap: 1rem; }
.blog-admin-form label, .blog-admin-editor label { display: grid; gap: .4rem; font-weight: 600; }
.blog-admin-form input, .blog-admin-editor input, .blog-admin-editor textarea, .blog-admin-editor select { width: 100%; padding: .75rem; border: 1px solid var(--border-color-strong); border-radius: 8px; font: inherit; }
.blog-admin-form input:focus, .blog-admin-editor input:focus, .blog-admin-editor textarea:focus, .blog-admin-editor select:focus { outline: 3px solid rgba(95,169,44,.2); border-color: var(--brand-green); }
.blog-admin-editor small { color: var(--text-muted); font-weight: 400; }
.blog-editor-field { display: grid; gap: .6rem; }
.blog-editor-modes { display: flex; align-items: center; flex-wrap: wrap; gap: .65rem; }
.blog-html-source { font: .9rem/1.55 Consolas, monospace !important; white-space: pre; }
.blog-plain-source { white-space: pre-wrap; }
.blog-article-body table { width: 100%; border-collapse: collapse; margin: 1.25rem 0; }
.blog-article-body th, .blog-article-body td { padding: .65rem; border: 1px solid var(--border-color-strong); text-align: left; }
.blog-article-body tr:first-child > th, .blog-article-body tr:first-child > td, .blog-article-body tr:first-child > th *, .blog-article-body tr:first-child > td * { color: #fff !important; background: #263f55; font-weight: 700; }
.blog-article-body img { max-width: 100%; height: auto; }
.blog-admin-error { padding: .85rem 1rem; border-radius: 8px; color: #8b1e1e; background: #fff0f0; }
.blog-admin-table-wrap { overflow-x: auto; border-radius: 12px; background: #fff; box-shadow: var(--shadow-sm); }
.blog-admin-table { width: 100%; border-collapse: collapse; text-align: left; }
.blog-admin-table th, .blog-admin-table td { padding: .9rem 1rem; border-bottom: 1px solid var(--border-color); vertical-align: middle; }
.blog-admin-table th { color: var(--brand-navy); background: var(--bg-secondary); }
.blog-admin-table td small { display: block; color: var(--text-muted); }
.blog-status { display: inline-block; padding: .25rem .6rem; border-radius: 20px; font-size: .8rem; background: var(--bg-tertiary); }
.blog-status.published { color: #27651c; background: #eff8e9; }
.blog-delete-form { display: inline; margin-left: .5rem; }
.blog-link-button { padding: 0; border: 0; color: #a32727; background: none; font: inherit; text-decoration: underline; cursor: pointer; }
.blog-empty { max-width: 720px; margin: auto; text-align: center; }
.blog-card { display: flex; flex-direction: column; align-items: flex-start; }
.blog-card .btn { margin-top: auto; }
.blog-cover { width: 100%; aspect-ratio: 16/9; object-fit: cover; margin: -1rem -1rem 1.25rem; max-width: calc(100% + 2rem); border-radius: 12px 12px 0 0; }
.blog-date { margin-bottom: .75rem; color: var(--brand-green); font-size: .85rem; font-weight: 700; }
.blog-article { max-width: 900px; }
.blog-article-cover { display: block; width: 100%; max-height: 560px; margin-bottom: 2rem; border-radius: 16px; object-fit: cover; }
.blog-article-body { margin-bottom: 2rem; line-height: 1.8; overflow-wrap: anywhere; }
.blog-article-body p, .blog-article-body div { margin-bottom: 1rem; }
.blog-article-body li[data-list="bullet"] { list-style-type: disc; }
@media (max-width: 700px) {
    .blog-admin-heading, .blog-admin-toolbar { align-items: stretch; flex-direction: column; }
    .blog-admin-heading { padding: 1.25rem; }
    .blog-admin-nav { flex-wrap: wrap; }
    .blog-admin-stats { grid-template-columns: 1fr; }
    .blog-admin-table th, .blog-admin-table td { padding: .7rem; }
}

/* Classic writing screen */
.blog-admin-editor { max-width: 1320px; }
.blog-admin-editor form { display: block; }
.blog-editor-layout { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 1.25rem; align-items: start; }
.blog-editor-main { display: grid; gap: 1rem; min-width: 0; }
.blog-editor-title input { padding: .9rem 1rem; border-color: transparent; background: transparent; font: 600 1.85rem/1.2 var(--font-display); }
.blog-editor-title input:focus { background: #fff; }
.blog-editor-sidebar { position: sticky; top: 1rem; }
.blog-publish-panel { display: grid; gap: 1rem; padding: 1rem; border: 1px solid var(--border-color); border-radius: 10px; background: #fff; box-shadow: var(--shadow-sm); }
.blog-publish-panel h2 { margin: 0; color: var(--brand-navy); font: 700 1.05rem/1.3 var(--font-display); }
.blog-cover-current { margin: 0; overflow-wrap: anywhere; font-size: .85rem; }
.blog-admin-editor .blog-admin-actions { justify-content: space-between; padding-top: .85rem; border-top: 1px solid var(--border-color); }
.blog-editor-field { overflow: hidden; border: 1px solid var(--border-color-strong); border-radius: 9px; background: #fff; }
.blog-editor-modes { gap: 0; padding: .45rem .75rem 0; border-bottom: 1px solid var(--border-color); background: #f6f7f7; }
.blog-mode-button { padding: .65rem .9rem; border: 0; border-radius: 5px 5px 0 0; color: var(--text-muted); background: transparent; font-size: .9rem; }
.blog-quill-toolbar.ql-toolbar.ql-snow { display: flex; flex-wrap: wrap; gap: .15rem; padding: .5rem .65rem; border: 0; border-bottom: 1px solid var(--border-color); background: #fff; }
.blog-quill-toolbar .ql-formats { margin-right: .4rem; }
.blog-quill-toolbar button { border-radius: 4px; }
.blog-quill-toolbar button:hover, .blog-quill-toolbar button:focus-visible { background: #f0f3f5; }
#article-body-visual.ql-container.ql-snow { min-height: 430px; border: 0; font: 1rem/1.75 var(--font-sans); }
#article-body-visual .ql-editor { min-height: 430px; padding: 1.5rem 1.75rem; }
#article-body-visual .ql-editor.ql-blank::before { left: 1.75rem; color: #8c969d; font-style: normal; }
#article-body-visual .ql-editor table { width: 100%; }
#article-body-visual .ql-editor tr:first-child > th, #article-body-visual .ql-editor tr:first-child > td, #article-body-visual .ql-editor tr:first-child > th *, #article-body-visual .ql-editor tr:first-child > td * { color: #fff !important; background: #263f55; font-weight: 700; }
#article-body-visual .ql-editor img { max-width: 100%; height: auto; }
.blog-seo-fields { display: grid; gap: .8rem; padding: .9rem; border: 1px solid var(--border-color); border-radius: 8px; }
.blog-seo-fields summary { color: var(--brand-navy); font-weight: 700; cursor: pointer; }
.blog-seo-fields label { margin-top: .6rem; }
.blog-plain-source, .blog-html-source { min-height: 430px; border: 0 !important; border-radius: 0 !important; }
.blog-plain-source { padding: 1.5rem 1.75rem !important; white-space: pre-wrap; }
.blog-html-source { padding: 1.5rem 1.75rem !important; font: .9rem/1.65 Consolas, monospace !important; white-space: pre; }
.blog-editor-hint { margin: 0; padding: .7rem .9rem; border-top: 1px solid var(--border-color); color: var(--text-muted); background: #fafafa; font-size: .83rem; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (max-width: 900px) {
    .blog-editor-layout { grid-template-columns: minmax(0, 1fr); }
    .blog-editor-sidebar { position: static; }
}
@media (max-width: 700px) {
    #article-body-visual.ql-container.ql-snow, #article-body-visual .ql-editor,
    .blog-plain-source, .blog-html-source { min-height: 340px; }
    #article-body-visual .ql-editor, .blog-plain-source, .blog-html-source { padding: 1rem !important; }
    #article-body-visual .ql-editor.ql-blank::before { left: 1rem; }
    .blog-quill-toolbar.ql-toolbar.ql-snow { gap: .1rem; }
}
.ergomatic-range-grid { align-items: stretch; }
.ergomatic-range-card { height: 100%; }
.ergomatic-range-card .btn { margin-top: auto; }
@media (max-width: 768px) {
    .ergomatic-range-grid {
        justify-items: center;
        align-items: stretch;
        gap: 1.5rem;
    }
    .ergomatic-range-card {
        width: 100%;
        min-width: 0;
        max-width: 40rem;
        text-align: center;
    }
    .ergomatic-range-card .btn { align-self: center; }
}
