/*
 * components.css — EV Enterprise Theme Component Styles
 * All UI components using only CSS custom properties from tokens.css.
 * No hardcoded color values.
 */

/* ═══════════════════════════════════════════════════
   1. LAYOUT — Container / Section / Main
═══════════════════════════════════════════════════ */
.container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: clamp(1rem, 4vw, 2rem);
    padding-right: clamp(1rem, 4vw, 2rem);
}

.container--narrow {
    max-width: 900px;
}

.container--wide {
    max-width: 1400px;
}

.section {
    padding: clamp(3rem, 7vw, 6rem) 0;
    background-color: var(--background);
}

.section--alt {
    background-color: var(--card);
}

.section--hero {
    background: var(--hero-gradient);
    padding: clamp(4rem, 10vw, 8rem) 0 clamp(3rem, 7vw, 6rem);
}

/* ═══════════════════════════════════════════════════
   2. HEADER / NAV
═══════════════════════════════════════════════════ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--foreground);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
    gap: 1.5rem;
}

.site-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    text-decoration: none;
}

.site-logo img {
    height: 40px;
    width: auto;
}

.site-logo__text {
    font-size: 1.25rem;
    font-weight: var(--font-weight-bold);
    color: #ffffff;
    letter-spacing: -0.025em;
}

/* Primary Nav */
.primary-nav {
    display: flex;
    align-items: center;
    gap: 0;
}

.primary-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.primary-nav>ul>li {
    display: flex;
    align-items: center;
}

.primary-nav a {
    display: block;
    padding: 0.5rem 0.875rem;
    font-size: 0.9375rem;
    font-weight: var(--font-weight-medium);
    line-height: 1.1;
    color: rgba(255, 255, 255, 0.85);
    border-radius: var(--radius-md);
    transition: background-color var(--transition-fast), color var(--transition-fast);
    text-decoration: none;
    white-space: nowrap;
}

.primary-nav>ul>li>a {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
}

.primary-nav a:hover,
.primary-nav .current-menu-item>a,
.primary-nav .current_page_item>a {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    text-decoration: none;
}

.primary-nav li {
    position: relative;
}

.primary-nav .sub-menu {
    list-style: none;
    margin: 0;
    padding: 0.375rem;
    position: absolute;
    top: calc(100% + 0.35rem);
    left: 0;
    min-width: 220px;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity var(--transition-fast), transform var(--transition-fast), visibility var(--transition-fast);
    z-index: 30;
}

.primary-nav .sub-menu a {
    color: var(--foreground);
    border-radius: calc(var(--radius-md) - 2px);
}

.primary-nav .sub-menu a:hover,
.primary-nav .sub-menu .current-menu-item>a,
.primary-nav .sub-menu .current_page_item>a {
    background: var(--muted);
    color: var(--accent);
}

.primary-nav li:hover>.sub-menu,
.primary-nav li:focus-within>.sub-menu,
.primary-nav li.is-submenu-open>.sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.submenu-toggle {
    display: none;
    background: transparent;
    border: 0;
    color: inherit;
    cursor: pointer;
    padding: 0.35rem 0.45rem;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    line-height: 1;
}

.submenu-toggle:hover {
    background: rgba(255, 255, 255, 0.12);
}

/* Header CTA */
.header-cta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

/* Mobile Toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    padding: 0.5rem;
    color: #ffffff;
    cursor: pointer;
    border-radius: var(--radius-md);
    transition: background-color var(--transition-fast);
}

.nav-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

.nav-toggle__icon {
    display: block;
    position: relative;
    width: 22px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: background var(--transition-fast);
}

.nav-toggle__icon::before,
.nav-toggle__icon::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: transform var(--transition-base);
}

.nav-toggle__icon::before {
    top: -6px;
}

.nav-toggle__icon::after {
    top: 6px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__icon {
    background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__icon::before {
    transform: translate(0, 6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__icon::after {
    transform: translate(0, -6px) rotate(-45deg);
}

@media (max-width: 900px) {
    .nav-toggle {
        display: block;
    }

    .primary-nav {
        display: none;
        position: absolute;
        top: 68px;
        left: 0;
        right: 0;
        background: var(--foreground);
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        box-shadow: var(--shadow-md);
        padding: 1rem;
        flex-direction: column;
        align-items: stretch;
    }

    .primary-nav.is-open {
        display: flex;
    }

    .primary-nav ul {
        flex-direction: column;
        gap: 0.125rem;
        width: 100%;
    }

    .primary-nav li {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
    }

    .primary-nav a {
        padding: 0.75rem 1rem;
        flex: 1;
    }

    .submenu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin-right: 0.35rem;
    }

    .primary-nav .sub-menu {
        position: static;
        width: 100%;
        min-width: 0;
        padding: 0.25rem 0 0.4rem 1rem;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        background: transparent;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
    }

    .primary-nav li.is-submenu-open>.sub-menu {
        display: block;
    }

    .primary-nav .sub-menu a {
        color: inherit;
        padding: 0.55rem 0.75rem;
    }

    .header-cta {
        display: none;
    }
}

/* Header variants */
.site-header--standard .site-header__inner {
    gap: 1.5rem;
    align-items: center;
}

.site-header--compact .site-header__inner {
    gap: 0.75rem;
    height: 58px;
}

.site-header--compact .primary-nav a {
    padding: 0.25rem 0.55rem;
    font-size: 0.8125rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.site-header--compact .site-logo img {
    height: 32px;
}

.site-header--floating {
    margin: 0.75rem auto 0;
    width: min(1320px, calc(100% - 1.5rem));
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(10px);
}

/* Menu variants */
.primary-nav--menu-1 a {
    border: 1px solid transparent;
}

.primary-nav--menu-1 .current-menu-item>a,
.primary-nav--menu-1 .current_page_item>a {
    border-color: rgba(255, 255, 255, 0.18);
}

.primary-nav--menu-2 ul {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius-full);
    padding: 0.3rem;
}

.primary-nav--menu-2 a {
    border-radius: var(--radius-full);
    border: 1px solid transparent;
}

.primary-nav--menu-2 a:hover,
.primary-nav--menu-2 .current-menu-item>a,
.primary-nav--menu-2 .current_page_item>a {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.28);
}

.primary-nav--menu-3 a {
    background: transparent;
    border-radius: 0;
    padding-left: 0.25rem;
    padding-right: 0.25rem;
    position: relative;
    font-weight: var(--font-weight-semibold);
}

.primary-nav--menu-3 a::after {
    content: "";
    position: absolute;
    left: 0.4rem;
    right: 0.4rem;
    bottom: 0.2rem;
    height: 2px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform var(--transition-fast);
}

.primary-nav--menu-3 a:hover::after,
.primary-nav--menu-3 .current-menu-item>a::after,
.primary-nav--menu-3 .current_page_item>a::after {
    transform: scaleX(1);
}

@media (max-width: 900px) {
    .site-header--floating {
        margin: 0;
        width: 100%;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
}

/* ═══════════════════════════════════════════════════
   3. FOOTER
═══════════════════════════════════════════════════ */
.site-footer {
    background-color: var(--foreground);
    color: var(--background);
    padding: 4rem 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 3rem;
}

@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 560px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

.footer-brand .site-logo__text {
    color: var(--background);
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.9rem;
    margin-top: 0.875rem;
    line-height: 1.7;
}

.footer-col h4 {
    font-size: 0.8125rem;
    font-weight: var(--font-weight-semibold);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 1rem;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col li+li {
    margin-top: 0.5rem;
}

.footer-col a {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.9375rem;
    transition: color var(--transition-fast);
    text-decoration: none;
}

.footer-col a:hover {
    color: var(--primary);
    text-decoration: none;
}

.footer-bottom {
    margin-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding: 1.25rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: #ffffff;
}

.footer-bottom p {
    color: #ffffff;
}

.footer-bottom a {
    color: #ffffff;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-bottom a:hover {
    color: var(--primary);
}

.footer-social {
    display: flex;
    gap: 0.75rem;
}

.footer-social a {
    color: rgba(255, 255, 255, 0.5);
    transition: color var(--transition-fast);
    text-decoration: none;
}

.footer-social a:hover {
    color: var(--primary);
}

/* Footer variants */
.site-footer--footer-2 .footer-grid {
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 1.5rem;
}

.site-footer--footer-2 .footer-col,
.site-footer--footer-2 .footer-brand {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.site-footer--footer-2 .footer-bottom {
    margin-top: 2rem;
}

.site-footer--footer-3 {
    padding-top: 1.5rem;
}

.site-footer--footer-3 .footer-grid {
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 1rem;
    align-items: start;
}

.site-footer--footer-3 .footer-col h4 {
    margin-bottom: 0.4rem;
    letter-spacing: 0.03em;
}

.site-footer--footer-3 .footer-col li+li {
    margin-top: 0.15rem;
}

.site-footer--footer-3 .footer-bottom {
    margin-top: 1rem;
    font-size: 0.78rem;
    padding-top: 0.9rem;
}

.site-footer--footer-3 .footer-brand p {
    margin-top: 0.55rem;
    font-size: 0.84rem;
    line-height: 1.45;
}

/* Global design variants */
.ev-design-minimal .site-header {
    box-shadow: none;
    border-bottom-width: 1px;
}

.ev-design-minimal .btn {
    border-radius: 4px;
    box-shadow: none;
}

.ev-design-minimal .card {
    box-shadow: none;
    border-color: var(--border);
}

.ev-design-minimal .badge {
    border-radius: 6px;
    letter-spacing: 0.02em;
}

.ev-design-industrial .site-header {
    border-bottom-width: 2px;
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.18);
}

.ev-design-industrial .btn {
    border-radius: 2px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    border-width: 2px;
}

.ev-design-industrial .card {
    border-width: 2px;
    box-shadow: none;
}

.ev-design-industrial .section-heading .badge {
    border-radius: 2px;
    border: 1px solid var(--accent);
}

/* ═══════════════════════════════════════════════════
   4. BUTTONS
═══════════════════════════════════════════════════ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.65rem 1.375rem;
    font-size: 0.9375rem;
    font-weight: var(--font-weight-semibold);
    border-radius: var(--radius-md);
    border: 1.5px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: background-color var(--transition-fast), color var(--transition-fast),
        border-color var(--transition-fast), box-shadow var(--transition-fast);
    white-space: nowrap;
}

.btn:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
}

/* Primary */
.btn--primary {
    background-color: var(--primary);
    color: var(--primary-foreground);
    border-color: var(--primary);
}

.btn--primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    color: var(--primary-foreground);
    text-decoration: none;
    box-shadow: var(--shadow-md);
}

/* Secondary */
.btn--secondary {
    background-color: var(--background);
    color: var(--accent);
    border-color: var(--border);
}

.btn--secondary:hover {
    background-color: var(--muted);
    color: var(--accent);
    border-color: var(--border);
    text-decoration: none;
}

/* Ghost */
.btn--ghost {
    background: transparent;
    color: var(--foreground);
    border-color: transparent;
}

.btn--ghost:hover {
    background-color: var(--muted);
    text-decoration: none;
}

/* Sizes */
.btn--sm {
    padding: 0.375rem 0.875rem;
    font-size: 0.875rem;
}

.btn--lg {
    padding: 0.875rem 2rem;
    font-size: 1.0625rem;
}

/* ═══════════════════════════════════════════════════
   5. BADGE
═══════════════════════════════════════════════════ */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.75rem;
    font-size: 0.78125rem;
    font-weight: var(--font-weight-semibold);
    letter-spacing: 0.04em;
    border-radius: var(--radius-full);
    background-color: var(--badge-bg);
    color: var(--badge-text);
    text-transform: uppercase;
}

.badge--muted {
    background-color: var(--muted);
    color: var(--muted-foreground);
}

.badge--category {
    background: var(--secondary);
    color: var(--secondary-foreground);
    font-size: 0.75rem;
    font-weight: var(--font-weight-medium);
    text-transform: capitalize;
    letter-spacing: 0;
}

/* ═══════════════════════════════════════════════════
   6. CARD
═══════════════════════════════════════════════════ */
.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow var(--transition-base), transform var(--transition-base);
}

.card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.card__image {
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--muted);
}

.card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.card:hover .card__image img {
    transform: scale(1.03);
}

.card__body {
    padding: 1.375rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.card__meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: var(--muted-foreground);
}

.card__title {
    font-size: 1.0625rem;
    font-weight: var(--font-weight-semibold);
    color: var(--foreground);
    line-height: 1.35;
    margin: 0;
}

.card__title a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.card__title a:hover {
    color: var(--accent);
    text-decoration: none;
}

.card__excerpt {
    font-size: 0.9rem;
    color: var(--muted-foreground);
    line-height: 1.65;
    flex: 1;
}

.card__footer {
    padding: 1rem 1.375rem;
    border-top: 1px solid var(--border);
}

/* ═══════════════════════════════════════════════════
   7. HERO SECTION
═══════════════════════════════════════════════════ */
.hero {
    text-align: center;
}

.hero__eyebrow {
    margin-bottom: 1.25rem;
}

.hero__title {
    margin-bottom: 1.25rem;
    color: var(--foreground);
}

.hero__title strong,
.hero__title em {
    color: var(--primary);
    font-style: normal;
}

.hero__body {
    font-size: clamp(1rem, 2.5vw, 1.1875rem);
    color: var(--muted-foreground);
    max-width: 640px;
    margin: 0 auto 2rem;
}

.hero__actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.875rem;
}

/* ── Hero with background image ── */
.section--hero-image {
    position: relative;
    overflow: hidden;
    /* gradient is overridden by inline background-image */
    background: var(--foreground);
    padding: clamp(5rem, 12vw, 10rem) 0 clamp(4rem, 10vw, 8rem);
    text-align: center;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.hero--on-image .hero__title {
    color: #ffffff;
}

.hero--on-image .hero__title strong,
.hero--on-image .hero__title em {
    color: rgba(255, 255, 255, 0.9);
}

.hero--on-image .hero__body {
    color: rgba(255, 255, 255, 0.85);
}

.hero--on-image .badge--ghost {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(4px);
}

/* White outline button for hero on dark images */
.btn--outline-white {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.7);
    color: #ffffff;
    backdrop-filter: blur(4px);
}

.btn--outline-white:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: #ffffff;
    color: #ffffff;
    text-decoration: none;
}

/* ═══════════════════════════════════════════════════
   7b. HERO CAROUSEL
═══════════════════════════════════════════════════ */
.hero-carousel-section {
    padding: 0 !important;
    /* carousel handles its own height */
}

.hero-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.hero-carousel__track {
    position: relative;
    width: 100%;
    /* Explicit height — all children are position:absolute so the
       track needs its own height (not min-height driven by children). */
    height: auto;
    overflow: hidden;
}

.hero-carousel__slide {
    display: none;
    position: relative;
    background-size: cover;
    background-position: center;
    min-height: clamp(640px, 86vh, 1000px);
}

.hero-carousel__slide .container {
    width: 100%;
}

.hero-carousel__slide .hero {
    padding: clamp(5rem, 12vw, 10rem) 0 clamp(4rem, 10vw, 8rem);
    text-align: center;
}

.hero-carousel__slide.is-active {
    display: flex;
    align-items: center;
}

/* ── Arrow Controls ── */
.hero-carousel__prev,
.hero-carousel__next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.15);
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    color: #ffffff;
    cursor: pointer;
    backdrop-filter: blur(6px);
    transition: background var(--transition-fast), border-color var(--transition-fast), transform 0.2s;
}

.hero-carousel__prev {
    left: 1.5rem;
}

.hero-carousel__next {
    right: 1.5rem;
}

.hero-carousel__prev:hover,
.hero-carousel__next:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.7);
    transform: translateY(-50%) scale(1.08);
}

/* ── Dot Pagination ── */
.hero-carousel__dots {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.hero-carousel__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: 1.5px solid rgba(255, 255, 255, 0.5);
    cursor: pointer;
    padding: 0;
    transition: background var(--transition-fast), transform var(--transition-fast), border-color var(--transition-fast);
}

.hero-carousel__dot.is-active {
    background: #ffffff;
    border-color: #ffffff;
    transform: scale(1.3);
}

.hero-carousel__dot:hover:not(.is-active) {
    background: rgba(255, 255, 255, 0.7);
}

/* ── Responsive arrows ── */
@media (max-width: 600px) {
    .hero-carousel__slide {
        min-height: clamp(500px, 76vh, 700px);
    }

    .hero-carousel__prev,
    .hero-carousel__next {
        width: 38px;
        height: 38px;
    }

    .hero-carousel__prev {
        left: 0.75rem;
    }

    .hero-carousel__next {
        right: 0.75rem;
    }
}

/* ═══════════════════════════════════════════════════
   8. FEATURES STRIP
═══════════════════════════════════════════════════ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.75rem;
}

.feature-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
    transition: box-shadow var(--transition-base);
}

.feature-card:hover {
    box-shadow: var(--shadow-md);
}

.feature-card__icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: var(--badge-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
}

.feature-card__icon svg {
    width: 24px;
    height: 24px;
}

.feature-card__title {
    font-size: 1.0625rem;
    font-weight: var(--font-weight-semibold);
    color: var(--foreground);
    margin: 0;
}

.feature-card__body {
    font-size: 0.9rem;
    color: var(--muted-foreground);
    line-height: 1.65;
    margin: 0;
}

/* ═══════════════════════════════════════════════════
   9. PRODUCT GRID
═══════════════════════════════════════════════════ */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

/* ═══════════════════════════════════════════════════
   10. CERTIFICATIONS STRIP
═══════════════════════════════════════════════════ */
.cert-strip {
    padding: 2.5rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--background);
}

.cert-strip__label {
    text-align: center;
    font-size: 0.78125rem;
    font-weight: var(--font-weight-semibold);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted-foreground);
    margin-bottom: 1.5rem;
}

.cert-strip__logos {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2.5rem;
}

.cert-strip__logo {
    max-height: 48px;
    width: auto;
    opacity: 0.65;
    filter: grayscale(1);
    transition: opacity var(--transition-fast), filter var(--transition-fast);
}

.cert-strip__logo:hover {
    opacity: 1;
    filter: grayscale(0);
}

/* ═══════════════════════════════════════════════════
   11. CTA BANNER
═══════════════════════════════════════════════════ */
.cta-banner {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: var(--primary-foreground);
    border-radius: var(--radius-xl);
    padding: 3.5rem 2rem;
    text-align: center;
}

.cta-banner__title {
    color: inherit;
    margin-bottom: 0.875rem;
}

.cta-banner__body {
    color: rgba(255, 255, 255, 0.85);
    max-width: 560px;
    margin: 0 auto 2rem;
    font-size: 1.0625rem;
}

.cta-banner__actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.875rem;
}

.cta-banner .btn--secondary {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
    color: var(--primary-foreground);
    backdrop-filter: blur(4px);
}

.cta-banner .btn--secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    color: var(--primary-foreground);
}

/* ═══════════════════════════════════════════════════
   12. ACCORDION (FAQ)
═══════════════════════════════════════════════════ */
.accordion {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.accordion__item {
    border-bottom: 1px solid var(--border);
}

.accordion__item:last-child {
    border-bottom: none;
}

.accordion__trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: var(--background);
    border: none;
    cursor: pointer;
    text-align: left;
    font-size: 1rem;
    font-weight: var(--font-weight-medium);
    color: var(--foreground);
    transition: background-color var(--transition-fast);
}

.accordion__trigger:hover {
    background: var(--muted);
}

.accordion__trigger[aria-expanded="true"] {
    background: var(--badge-bg);
    color: var(--accent);
}

.accordion__icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: var(--muted-foreground);
    transition: transform var(--transition-base);
}

.accordion__trigger[aria-expanded="true"] .accordion__icon {
    transform: rotate(180deg);
    color: var(--accent);
}

.accordion__content {
    display: none;
    padding: 0 1.5rem 1.25rem;
    background: var(--background);
    font-size: 0.9375rem;
    color: var(--muted-foreground);
    line-height: 1.75;
}

.accordion__content.is-open {
    display: block;
}

/* ═══════════════════════════════════════════════════
   13. FILTER BAR (Products)
═══════════════════════════════════════════════════ */
.filter-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2.5rem;
    padding: 1rem 1.25rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.filter-bar__label {
    font-size: 0.875rem;
    font-weight: var(--font-weight-medium);
    color: var(--muted-foreground);
    margin-right: 0.5rem;
    flex-shrink: 0;
}

.filter-btn {
    padding: 0.375rem 0.875rem;
    font-size: 0.875rem;
    font-weight: var(--font-weight-medium);
    border-radius: var(--radius-full);
    border: 1.5px solid var(--border);
    background: var(--background);
    color: var(--foreground);
    cursor: pointer;
    text-decoration: none;
    transition: background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
    display: inline-flex;
    align-items: center;
}

.filter-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--badge-bg);
    text-decoration: none;
}

.filter-btn.is-active,
.filter-btn[aria-current="true"] {
    background: var(--primary);
    color: var(--primary-foreground);
    border-color: var(--primary);
}

/* ═══════════════════════════════════════════════════
   14. BREADCRUMBS
═══════════════════════════════════════════════════ */
.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.375rem;
    font-size: 0.875rem;
    color: var(--muted-foreground);
    margin-bottom: 1.5rem;
    padding: 0.75rem 0;
}

.breadcrumb a {
    color: var(--muted-foreground);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.breadcrumb a:hover {
    color: var(--accent);
}

.breadcrumb__sep {
    color: var(--border);
    flex-shrink: 0;
}

.breadcrumb__current {
    color: var(--foreground);
    font-weight: var(--font-weight-medium);
}

/* ═══════════════════════════════════════════════════
   15. SECTION HEADING (reusable intro block)
═══════════════════════════════════════════════════ */
.section-heading {
    max-width: 700px;
}

.section-heading--center {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.section-heading .badge {
    margin-bottom: 0.875rem;
}

.section-heading h2 {
    margin-bottom: 0.75rem;
}

.section-heading p {
    font-size: 1.0625rem;
    color: var(--muted-foreground);
}

.section-heading+* {
    margin-top: 3rem;
}

/* ═══════════════════════════════════════════════════
   16. CONTACT FORM
═══════════════════════════════════════════════════ */
.contact-form {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: clamp(2rem, 5vw, 3rem);
    box-shadow: var(--shadow-md);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    margin-bottom: 1.125rem;
}

.form-group:last-of-type {
    margin-bottom: 0;
}

.form-group--full {
    grid-column: 1 / -1;
}

.form-message {
    padding: 0.875rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.9375rem;
    margin-bottom: 1.5rem;
}

.form-message--success {
    background: var(--badge-bg);
    color: var(--accent);
    border: 1px solid rgba(47, 178, 74, 0.25);
}

.form-message--error {
    background: #FEF2F2;
    color: var(--destructive);
    border: 1px solid rgba(220, 38, 38, 0.25);
}

/* ═══════════════════════════════════════════════════
   17. SINGLE PRODUCT — specs / gallery / downloads
═══════════════════════════════════════════════════ */
.product-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

@media (max-width: 860px) {
    .product-layout {
        grid-template-columns: 1fr;
    }
}

.product-gallery {
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--muted);
}

.product-gallery__main img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: contain;
    padding: 1.5rem;
}

.product-details {}

.product-details h1 {
    margin-bottom: 0.625rem;
}

.product-specs {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    font-size: 0.9375rem;
}

.product-specs th {
    width: 40%;
}

.product-downloads {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.product-downloads a {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.625rem 0.875rem;
    background: var(--muted);
    border-radius: var(--radius-md);
    font-size: 0.9375rem;
    color: var(--foreground);
    text-decoration: none;
    transition: background var(--transition-fast);
}

.product-downloads a:hover {
    background: var(--badge-bg);
    color: var(--accent);
    text-decoration: none;
}

/* ═══════════════════════════════════════════════════
   18. BLOG / ARCHIVE
═══════════════════════════════════════════════════ */
.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.75rem;
}

.post-date {
    font-size: 0.8125rem;
    color: var(--muted-foreground);
}

/* ═══════════════════════════════════════════════════
   19. SINGLE POST content
═══════════════════════════════════════════════════ */
.entry-content {
    max-width: 760px;
    margin: 0 auto;
}

.entry-content h2,
.entry-content h3 {
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.entry-content p {
    margin-bottom: 1.25rem;
}

.entry-content ul,
.entry-content ol {
    margin-bottom: 1.25rem;
}

/* ═══════════════════════════════════════════════════
   20. PAGINATION
═══════════════════════════════════════════════════ */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    margin-top: 3rem;
}

.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    border: 1.5px solid var(--border);
    background: var(--background);
    font-size: 0.9375rem;
    font-weight: var(--font-weight-medium);
    color: var(--foreground);
    text-decoration: none;
    transition: background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
}

.page-numbers:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--badge-bg);
}

.page-numbers.current {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--primary-foreground);
}

/* ═══════════════════════════════════════════════════
   21. LOADING SPINNER (AJAX filters)
═══════════════════════════════════════════════════ */
.spinner {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 2.5px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.grid-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
}

/* ═══════════════════════════════════════════════════
   22. SOLUTION CARD
═══════════════════════════════════════════════════ */
.solution-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.75rem;
}

.solution-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: box-shadow var(--transition-base), transform var(--transition-base);
}

.solution-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.solution-card__icon {
    width: 56px;
    height: 56px;
    background: var(--badge-bg);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.solution-card__title {
    font-size: 1.125rem;
    font-weight: var(--font-weight-semibold);
    color: var(--foreground);
    margin: 0;
}

.solution-card__summary {
    font-size: 0.9375rem;
    color: var(--muted-foreground);
    line-height: 1.7;
    flex: 1;
    margin: 0;
}

/* ═══════════════════════════════════════════════════
   23. STATS ROW (About / Why Choose Us)
═══════════════════════════════════════════════════ */
.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat__number {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: var(--font-weight-bold);
    color: var(--primary);
    line-height: 1;
    margin-bottom: 0.375rem;
}

.stat__label {
    font-size: 0.9rem;
    color: var(--muted-foreground);
    font-weight: var(--font-weight-medium);
}

/* ═══════════════════════════════════════════════════
   24. USP LIST (Why Choose Us)
═══════════════════════════════════════════════════ */
.usp-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.usp-item {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

.usp-item__icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: var(--badge-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    margin-top: 0.125rem;
}

.usp-item__content h3 {
    font-size: 1.0625rem;
    margin-bottom: 0.375rem;
}

.usp-item__content p {
    font-size: 0.9375rem;
    color: var(--muted-foreground);
    margin: 0;
}

/* ═══════════════════════════════════════════════════
   25. NOTICE (404, empty states)
═══════════════════════════════════════════════════ */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--muted-foreground);
}

.empty-state h2 {
    color: var(--foreground);
    margin-bottom: 0.75rem;
}

.empty-state p {
    font-size: 1.0625rem;
    margin-bottom: 2rem;
}

/* Homepage Builder variants */
.hero--variant-hero-1 {
    max-width: 920px;
    margin: 0 auto;
}

.hero--variant-hero-2 {
    max-width: 640px;
    margin-left: 0;
    text-align: left !important;
}

.hero--variant-hero-2 .hero__body {
    margin-left: 0;
    margin-right: 0;
}

.hero--variant-hero-2 .hero__actions {
    justify-content: flex-start !important;
    align-items: stretch;
}

.hero--variant-hero-2 .btn {
    min-width: 210px;
    border-radius: var(--radius-full);
}

.hero--variant-hero-3 {
    max-width: 980px;
    margin: 0 auto;
    padding: clamp(1.25rem, 3vw, 2rem);
    border-radius: var(--radius-xl);
    backdrop-filter: blur(8px);
}

.hero--variant-hero-3 .hero__title {
    font-size: clamp(2.6rem, 5.4vw, 4.25rem);
    letter-spacing: -0.02em;
}

.hero--variant-hero-3 .hero__body {
    font-size: clamp(1.12rem, 2.8vw, 1.35rem);
}

.hero--variant-hero-3 .hero__actions .btn--primary {
    box-shadow: var(--shadow-lg);
}

.section--hero-image .hero--variant-hero-3 {
    background: rgba(8, 14, 24, 0.42);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.section--hero:not(.section--hero-image) .hero--variant-hero-3 {
    background: var(--card);
    border: 1px solid var(--border);
}

.section--hero-variant-hero-2 {
    background-position: center right !important;
}

.cert-strip--certs-2 {
    background: var(--card);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.cert-strip--certs-3 .cert-strip__label {
    font-size: 0.8125rem;
    letter-spacing: 0.06em;
}

.section--home-features-features-2 .feature-card {
    box-shadow: none;
    border-style: dashed;
    background: transparent;
}

.section--home-features-features-3 .features-grid {
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.section--home-features-features-3 .feature-card {
    padding: 1.25rem;
    border-radius: 10px;
}

.section--home-products-products-2 {
    background: var(--background);
}

.section--home-products-products-3 .product-grid {
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.section--home-products-products-3 .card__body {
    padding: 1rem;
}

.section--home-cta-cta-2 .cta-banner {
    border: 2px solid var(--border);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, var(--foreground), #1a2f55);
}

.section--home-cta-cta-3 .cta-banner {
    padding: 1.75rem;
    border-radius: 8px;
}

.section--home-cta-cta-3 .cta-banner__actions .btn {
    padding: 0.625rem 1rem;
}

.section--home-faq-faq-2 .accordion__item {
    border-radius: 0;
    border-left: 0;
    border-right: 0;
}

.section--home-faq-faq-2 .accordion__trigger {
    padding-left: 0;
    padding-right: 0;
}

.section--home-faq-faq-3 .accordion__item {
    box-shadow: var(--shadow-sm);
    border-radius: var(--radius-lg);
}

/* Inner pages variants */
.section--inner-hero-page-2 {
    padding-top: 2.5rem;
    padding-bottom: 2rem !important;
}

.section--inner-hero-page-2 .section-heading h1 {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.section--inner-hero-page-3 {
    border-bottom: 1px solid var(--border);
    box-shadow: inset 0 -60px 80px -80px rgba(0, 0, 0, 0.25);
}

.section--inner-hero-page-3 .section-heading {
    max-width: 860px;
}

.section--inner-usp-page-2 .usp-item {
    gap: 0.85rem;
}

.section--inner-usp-page-3 .usp-item {
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.section--inner-contact-page-2 .usp-item__icon {
    width: 36px;
    height: 36px;
}

.section--inner-contact-page-3 .usp-item {
    padding: 0.875rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

.section--inner-faq-support-page-2 {
    padding-top: 1.5rem;
}

.section--inner-faq-support-page-3 .btn {
    min-width: 240px;
}

/* System templates variants */
.section--generic-page-page-2 .entry-content {
    max-width: 820px;
}

.section--generic-page-page-3 .entry-content {
    max-width: 900px;
    padding: 1.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.section--system-archive-page-2 .post-grid,
.section--system-archive-page-2 .product-grid,
.section--system-archive-page-2 .solution-grid {
    gap: 1.25rem;
}

.section--system-archive-page-3 .post-grid,
.section--system-archive-page-3 .product-grid,
.section--system-archive-page-3 .solution-grid {
    gap: 1rem;
}

.section--single-post-page-2 .entry-content {
    max-width: 840px;
}

.section--single-post-page-3 article {
    padding: 1.25rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.section--single-product-page-2 .product-layout {
    gap: 2rem;
}

.section--single-product-page-3 .product-details {
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.section--single-solution-page-2 .product-layout {
    gap: 2rem;
}

.section--single-solution-page-3 .product-layout {
    align-items: stretch;
}

.section--search-page-page-3 .empty-state {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.section--404-page-page-2 .empty-state h1 {
    font-size: 2.5rem !important;
}

.section--404-page-page-3 .empty-state {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--card);
}


