/*
 * Energi Theme — Main Stylesheet
 * Design: JIANGSU YONTON ENERGY (江苏远腾能源)
 * Aesthetic: premium minimal, warm & clean, energy-tech
 *
 * @package Energi
 * @since   1.0.0
 */

/* ────────────────────── 1. DESIGN TOKENS ────────────────────── */
:root {
    /* Background */
    --bg-page:      #faf9f5;
    --bg-card:      #ffffff;
    --bg-dark:      #0e1b1f;
    --bg-darker:    #080f12;

    /* Accent */
    --clr-accent:        #00b894;
    --clr-accent-glow:   rgba(0, 184, 148, 0.15);
    --clr-accent-hover:  #00a381;
    --clr-gold:          #d4952b;
    --clr-gold-light:    rgba(212, 149, 43, 0.12);

    /* Text */
    --text-primary:   #1a1d1c;
    --text-mid:       #5c605e;
    --text-light:     #919593;
    --text-white:     #ffffff;
    --text-white-dim: rgba(255, 255, 255, 0.55);

    /* Border & Radius */
    --border:        #e6e3db;
    --radius-sm:     4px;
    --radius:        6px;
    --radius-lg:     12px;

    /* Spacing */
    --space-xs:  0.5rem;
    --space-sm:  1rem;
    --space-md:  1.5rem;
    --space-lg:  2rem;
    --space-xl:  3rem;
    --space-2xl: 5rem;
    --space-3xl: 7rem;

    /* Typography */
    --font-sans:   'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;

    /* Container */
    --container: 1200px;

    /* Header */
    --header-height: 72px;
    --topbar-height: 36px;
}

/* ────────────────────── 2. RESET & BASE ────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-page);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--clr-accent);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--clr-accent-hover);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); }
h2 { font-size: clamp(2rem, 3.5vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.75rem); }
h4 { font-size: 1.125rem; }

p { margin-bottom: 1rem; }

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* ────────────────────── 3. TOP BAR ────────────────────── */
.top-bar {
    background: var(--bg-dark);
    height: var(--topbar-height);
    font-size: 0.78rem;
    color: var(--text-white-dim);
    position: relative;
    z-index: 1001;
}

.top-bar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--topbar-height);
}

.top-bar__contact {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.top-bar__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.65);
    transition: color 0.2s ease;
}

.top-bar__link:hover {
    color: var(--clr-accent);
}

.top-bar__icon {
    flex-shrink: 0;
}

.top-bar__social {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.top-bar__social-link {
    color: rgba(255, 255, 255, 0.5);
    transition: color 0.2s ease;
    display: flex;
}

.top-bar__social-link:hover {
    color: var(--clr-accent);
}

/* ────────────────────── 4. HEADER / MAIN NAV ────────────────────── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--bg-page);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    height: var(--header-height);
}

.site-header.scrolled {
    border-bottom-color: var(--border);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.04);
}

.site-header__inner {
    display: flex;
    align-items: center;
    height: var(--header-height);
    gap: var(--space-lg);
}

.site-header__logo {
    flex-shrink: 0;
}

.site-header__logo .custom-logo-link {
    display: block;
}

.site-header__logo .custom-logo {
    height: 40px;
    width: auto;
}

.site-header__logo .site-title {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

/* ── Primary Menu ── */
.site-header__nav {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.primary-menu {
    display: flex;
    list-style: none;
    gap: 2px;
}

.primary-menu > .menu-item {
    position: relative;
}

.primary-menu > .menu-item > a {
    display: block;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-mid);
    border-radius: var(--radius-sm);
    transition: color 0.2s ease, background 0.2s ease;
}

.primary-menu > .menu-item > a:hover,
.primary-menu > .current-menu-item > a {
    color: var(--text-primary);
    background: rgba(0, 0, 0, 0.04);
}

/* Submenu */
.primary-menu .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: var(--space-xs) 0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    list-style: none;
}

.primary-menu .menu-item:hover > .sub-menu {
    display: block;
}

.primary-menu .sub-menu .menu-item a {
    display: block;
    padding: 0.5rem 1.25rem;
    font-size: 0.85rem;
    color: var(--text-mid);
}

.primary-menu .sub-menu .menu-item a:hover {
    color: var(--text-primary);
    background: var(--bg-page);
}

/* ── Search Toggle ── */
.site-header__search-toggle {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-light);
    padding: 8px;
    display: flex;
    transition: color 0.2s ease;
}

.site-header__search-toggle:hover {
    color: var(--text-primary);
}

/* ── Search Overlay ── */
.search-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(14, 27, 31, 0.96);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.search-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.search-overlay__inner {
    width: 100%;
    max-width: 600px;
    padding: var(--space-lg);
    position: relative;
}

.search-overlay__form {
    display: flex;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    transition: border-color 0.3s ease;
}

.search-overlay__form:focus-within {
    border-bottom-color: var(--clr-accent);
}

.search-overlay__input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    font-size: 1.5rem;
    font-family: var(--font-sans);
    color: var(--text-white);
    padding: var(--space-md) 0;
}

.search-overlay__input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.search-overlay__submit {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    padding: var(--space-md);
}

.search-overlay__close {
    position: absolute;
    top: -60px;
    right: 0;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
}

/* ── Mobile Menu Toggle ── */
.site-header__menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.menu-toggle__bar {
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.site-header__menu-toggle.active .menu-toggle__bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.site-header__menu-toggle.active .menu-toggle__bar:nth-child(2) {
    opacity: 0;
}

.site-header__menu-toggle.active .menu-toggle__bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ────────────────────── 5. SECTIONS ────────────────────── */
.section {
    padding: var(--space-3xl) 0;
}

.section--dark {
    background: var(--bg-dark);
    color: var(--text-white);
}

.section--dark h2,
.section--dark h3,
.section--dark h4 { color: var(--text-white); }

.section--dark .section__desc { color: var(--text-white-dim); }

.section__header {
    margin-bottom: var(--space-2xl);
    text-align: center;
}

.section__header--left {
    text-align: left;
}

.section__tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--clr-accent);
    margin-bottom: var(--space-sm);
}

.section__title {
    margin-bottom: var(--space-sm);
}

.section__title .em {
    color: var(--clr-accent);
    font-family: var(--font-display);
    font-style: italic;
}

.section__desc {
    color: var(--text-mid);
    max-width: 600px;
    margin: 0 auto;
    font-size: 1rem;
}

.section__divider {
    width: 3rem;
    height: 2px;
    background: var(--clr-accent);
    margin: var(--space-md) auto 0;
}

/* ────────────────────── 6. BUTTONS ────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.8rem 1.8rem;
    border-radius: 100px;
    border: none;
    cursor: pointer;
    transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
    text-decoration: none;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn--primary {
    background: var(--clr-accent);
    color: var(--text-white);
}

.btn--primary:hover {
    background: var(--clr-accent-hover);
    color: var(--text-white);
}

.btn--outline {
    background: transparent;
    color: var(--text-white);
    border: 1.5px solid rgba(255, 255, 255, 0.2);
}

.btn--outline:hover {
    border-color: var(--clr-accent);
    color: var(--clr-accent);
}

.btn--ghost {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn--ghost:hover {
    border-color: var(--clr-accent);
    color: var(--clr-accent);
}

.btn--arrow::after {
    content: '→';
    font-size: 1.1em;
    transition: transform 0.2s ease;
}

.btn--arrow:hover::after {
    transform: translateX(3px);
}

/* ────────────────────── 7. HERO ────────────────────── */
.hero {
    background: var(--bg-dark);
    color: var(--text-white);
    position: relative;
    overflow: hidden;
    padding: calc(var(--space-3xl) + var(--topbar-height)) 0 var(--space-3xl);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: radial-gradient(ellipse at 70% 50%, rgba(0, 184, 148, 0.12) 0%, transparent 70%);
}

.hero__inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: center;
}

.hero__content { max-width: 600px; }

.hero__title {
    color: var(--text-white);
    margin-bottom: var(--space-md);
    line-height: 1.1;
}

.hero__subtitle {
    font-family: var(--font-display);
    font-size: clamp(1rem, 2vw, 1.5rem);
    font-style: italic;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: var(--space-lg);
}

.hero__desc {
    color: var(--text-white-dim);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: var(--space-lg);
}

.hero__actions {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.hero__image {
    aspect-ratio: 4 / 3;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.hero__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Scroll indicator */
.hero__scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
}

.hero__scroll-line {
    width: 1px;
    height: 20px;
    background: rgba(255, 255, 255, 0.2);
}

.hero__scroll-arrow {
    width: 8px;
    height: 8px;
    border-right: 1.5px solid rgba(255, 255, 255, 0.25);
    border-bottom: 1.5px solid rgba(255, 255, 255, 0.25);
    transform: rotate(45deg);
    animation: scrollBounce 1.6s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: rotate(45deg) translateY(0); }
    50%      { transform: rotate(45deg) translateY(5px); }
}

/* ────────────────────── 8. PRODUCT GRID ────────────────────── */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: var(--space-md);
}

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-4px);
    border-color: var(--clr-accent);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.06);
}

.product-card__image {
    aspect-ratio: 4 / 3;
    background: var(--bg-page);
    overflow: hidden;
}

.product-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-card:hover .product-card__image img {
    transform: scale(1.03);
}

.product-card__body {
    padding: var(--space-md);
}

.product-card__series {
    font-family: var(--font-display);
    font-size: 0.82rem;
    font-style: italic;
    color: var(--clr-accent);
    margin-bottom: 4px;
}

.product-card__name {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    line-height: 1.35;
}

.product-card__spec {
    font-size: 0.82rem;
    color: var(--text-light);
    line-height: 1.5;
}

.product-grid--dark .product-card {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.06);
}

.product-grid--dark .product-card:hover {
    border-color: rgba(0, 184, 148, 0.35);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.35);
}

.product-grid--dark .product-card__name { color: var(--text-white); }
.product-grid--dark .product-card__spec { color: rgba(255, 255, 255, 0.4); }

/* ────────────────────── 9. PRODUCT DETAIL (Spec Table) ────────────────────── */
.specs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.specs-table th,
.specs-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.specs-table th {
    width: 200px;
    font-weight: 500;
    color: var(--text-light);
    background: var(--bg-page);
}

.specs-table td {
    color: var(--text-primary);
}

/* ────────────────────── 10. BROCHURE / DETAIL SECTIONS ────────────────────── */
.brochure-section {
    background: var(--bg-dark);
    color: var(--text-white);
    padding: var(--space-3xl) 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.brochure__top {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-xl);
    flex-wrap: wrap;
}

.brochure__tag {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--clr-accent);
    background: var(--clr-accent-glow);
    padding: 0.35rem 0.9rem;
    border-radius: 100px;
}

.brochure__series {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-style: italic;
    color: rgba(255, 255, 255, 0.45);
}

.brochure__hero {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: var(--space-2xl);
    align-items: center;
    margin-bottom: var(--space-xl);
}

.brochure__image {
    aspect-ratio: 3 / 4;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: #111;
}

.brochure__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.brochure__content h3 {
    color: var(--text-white);
    margin-bottom: var(--space-md);
}

.brochure__content p {
    color: var(--text-white-dim);
    font-size: 1rem;
    line-height: 1.8;
}

.brochure-features {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

.brochure-features li {
    padding: var(--space-md);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius);
}

.brochure-features li strong {
    display: block;
    color: var(--clr-accent);
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.brochure-features li span {
    color: var(--text-white);
    font-size: 0.95rem;
}

/* Config table */
.config-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: var(--space-md);
    margin-top: var(--space-xl);
}

.config-card {
    background: rgba(255, 255, 255, 0.04);
    border-radius: var(--radius);
    padding: var(--space-lg);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.config-card__kwh {
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: var(--clr-accent);
    line-height: 1;
}

.config-card__name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-white);
    margin-top: 4px;
}

.config-card__info {
    font-size: 0.78rem;
    color: var(--text-white-dim);
    margin-top: 2px;
}

/* ────────────────────── 11. ABOUT SECTION ────────────────────── */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: var(--space-2xl);
    align-items: center;
}

.about-grid__image {
    aspect-ratio: 5 / 4;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-dark);
    position: relative;
}

.about-grid__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-grid__text p {
    font-size: 1rem;
    color: var(--text-mid);
    line-height: 1.85;
    margin-bottom: var(--space-md);
}

.about-grid__text p strong {
    color: var(--text-primary);
}

/* ────────────────────── 12. STATS BAR ────────────────────── */
.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-sm);
    padding-top: var(--space-xl);
    margin-top: var(--space-xl);
    border-top: 1px solid var(--border);
}

.stat {
    text-align: center;
    padding: var(--space-md);
}

.stat__num {
    font-family: var(--font-display);
    font-size: 2.8rem;
    color: var(--clr-accent);
    line-height: 1;
}

.stat__label {
    font-size: 0.82rem;
    color: var(--text-light);
    margin-top: 0.4rem;
}

.stats--dark {
    border-top-color: rgba(255, 255, 255, 0.06);
}

.stats--dark .stat__num {
    color: var(--text-white);
    font-family: var(--font-sans);
    font-weight: 700;
}

.stats--dark .stat__label {
    color: var(--text-white-dim);
}

/* ────────────────────── 13. CASE / APPLICATION CARDS ────────────────────── */
.case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--space-md);
}

.case-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 3 / 2;
    background: var(--bg-dark);
    transition: transform 0.3s ease;
}

.case-card:hover {
    transform: translateY(-4px);
}

.case-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.case-card:hover .case-card__image {
    transform: scale(1.05);
}

.case-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 30%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: var(--space-lg);
}

.case-card__title {
    color: var(--text-white);
    font-size: 1.15rem;
    font-weight: 700;
}

.case-card__sub {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.85rem;
    margin-top: 2px;
}

/* ────────────────────── 14. CONTACT PAGE ────────────────────── */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: var(--space-2xl);
    align-items: start;
}

.contact-info {
    padding: var(--space-xl);
    background: var(--bg-dark);
    color: var(--text-white);
    border-radius: var(--radius-lg);
}

.contact-info h3 {
    color: var(--text-white);
    margin-bottom: var(--space-lg);
}

.contact-info__item {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
    font-size: 0.95rem;
}

.contact-info__item svg {
    flex-shrink: 0;
    margin-top: 3px;
    color: var(--clr-accent);
}

.contact-form-wrap {
    padding: var(--space-xl);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

/* CF7 form overrides */
.wpcf7-form label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
    display: block;
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form textarea,
.wpcf7-form select {
    width: 100%;
    padding: 0.7rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    color: var(--text-primary);
    background: var(--bg-page);
    transition: border-color 0.2s ease;
}

.wpcf7-form input:focus,
.wpcf7-form textarea:focus,
.wpcf7-form select:focus {
    outline: none;
    border-color: var(--clr-accent);
}

.wpcf7-form textarea { min-height: 120px; resize: vertical; }

.wpcf7-form input[type="submit"] {
    background: var(--clr-accent);
    color: var(--text-white);
    border: none;
    padding: 0.85rem 2.5rem;
    border-radius: 100px;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.25s ease;
}

.wpcf7-form input[type="submit"]:hover {
    background: var(--clr-accent-hover);
}

/* ────────────────────── 15. BREADCRUMB ────────────────────── */
.breadcrumb {
    padding: var(--space-md) 0;
    font-size: 0.82rem;
}

.breadcrumb ol {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0;
}

.breadcrumb li {
    color: var(--text-light);
}

.breadcrumb li:last-child {
    color: var(--text-primary);
}

.breadcrumb .breadcrumb-sep {
    margin: 0 0.5rem;
    color: var(--border);
}

/* ────────────────────── 16. PAGINATION ────────────────────── */
.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: var(--space-xl);
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-mid);
    border: 1px solid var(--border);
    transition: all 0.2s ease;
}

.pagination .page-numbers.current {
    background: var(--clr-accent);
    border-color: var(--clr-accent);
    color: var(--text-white);
}

.pagination .page-numbers:hover:not(.current) {
    border-color: var(--clr-accent);
    color: var(--clr-accent);
}

/* ────────────────────── 17. SIDEBAR ────────────────────── */
.with-sidebar {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: var(--space-xl);
    align-items: start;
}

.sidebar {
    position: sticky;
    top: calc(var(--header-height) + var(--space-lg));
}

.sidebar__title {
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
}

.sidebar__list {
    list-style: none;
}

.sidebar__list li a {
    display: block;
    padding: 0.5rem 0;
    font-size: 0.9rem;
    color: var(--text-mid);
    border-bottom: 1px solid var(--border);
}

.sidebar__list li a:hover,
.sidebar__list li.current a {
    color: var(--clr-accent);
}

/* ────────────────────── 18. 404 PAGE ────────────────────── */
.error404 {
    padding: var(--space-3xl) 0;
    text-align: center;
}

.error404__code {
    font-family: var(--font-display);
    font-size: 8rem;
    color: var(--clr-accent);
    line-height: 1;
    opacity: 0.3;
}

.error404 h2 {
    margin: var(--space-md) 0;
}

.error404 p {
    color: var(--text-mid);
    margin-bottom: var(--space-lg);
}

/* ────────────────────── 19. FOOTER ────────────────────── */
.site-footer {
    background: var(--bg-darker);
    color: var(--text-white-dim);
    padding: var(--space-3xl) 0 0;
    font-size: 0.9rem;
}

.site-footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: var(--space-xl);
    padding-bottom: var(--space-2xl);
}

.site-footer__heading {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: var(--space-md);
}

.site-footer__desc {
    font-size: 0.85rem;
    color: var(--text-white-dim);
    line-height: 1.7;
    margin-bottom: var(--space-md);
}

.site-footer__social {
    display: flex;
    gap: var(--space-sm);
}

.site-footer__social a {
    color: rgba(255, 255, 255, 0.35);
    transition: color 0.2s ease;
    display: flex;
}

.site-footer__social a:hover {
    color: var(--clr-accent);
}

.site-footer__menu {
    list-style: none;
}

.site-footer__menu li {
    margin-bottom: 0.5rem;
}

.site-footer__menu li a {
    color: var(--text-white-dim);
    font-size: 0.85rem;
    transition: color 0.2s ease;
}

.site-footer__menu li a:hover {
    color: var(--clr-accent);
}

.site-footer__contact {
    list-style: none;
}

.site-footer__contact li {
    display: flex;
    gap: 0.6rem;
    margin-bottom: 0.65rem;
    font-size: 0.85rem;
    color: var(--text-white-dim);
}

.site-footer__contact li svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--clr-accent);
}

.site-footer__contact li a {
    color: var(--text-white-dim);
}

.site-footer__contact li a:hover {
    color: var(--clr-accent);
}

.site-footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: var(--space-lg) 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.site-footer__copyright {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.35);
    margin-bottom: 0;
}

.site-footer__legal a {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.35);
}

.site-footer__legal a:hover {
    color: var(--clr-accent);
}

/* ────────────────────── 20. RESPONSIVE ────────────────────── */
@media (max-width: 1024px) {
    :root {
        --space-3xl: 5rem;
        --space-2xl: 3rem;
    }

    .site-footer__grid {
        grid-template-columns: 1fr 1fr;
    }

    .hero__inner,
    .about-grid,
    .contact-grid,
    .brochure__hero {
        grid-template-columns: 1fr;
    }

    .hero__image { order: -1; }

    .stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .with-sidebar {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    :root {
        --space-3xl: 4rem;
        --header-height: 60px;
    }

    .top-bar { display: none; }

    .site-header__menu-toggle {
        display: flex;
    }

    .site-header__nav {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--bg-page);
        flex-direction: column;
        justify-content: flex-start;
        padding: var(--space-lg);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
        overflow-y: auto;
    }

    .site-header__nav.active {
        opacity: 1;
        pointer-events: auto;
    }

    .primary-menu {
        flex-direction: column;
        gap: 0;
    }

    .primary-menu > .menu-item > a {
        font-size: 1.05rem;
        padding: 0.8rem 0;
        border-bottom: 1px solid var(--border);
    }

    .primary-menu .sub-menu {
        display: none !important;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .case-grid {
        grid-template-columns: 1fr;
    }

    .site-footer__grid {
        grid-template-columns: 1fr;
    }

    .site-footer__bottom {
        flex-direction: column;
        text-align: center;
    }

    .brochure-features {
        grid-template-columns: 1fr;
    }

    .config-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat__num {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
}

/* ────────────────────── 21. UTILITY ────────────────────── */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.text-center { text-align: center; }
.text-left   { text-align: left; }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mt-2xl { margin-top: var(--space-2xl); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }

.admin-bar .site-header {
    top: 32px;
}

@media (max-width: 782px) {
    .admin-bar .site-header {
        top: 46px;
    }
}

@media (max-width: 600px) {
    .admin-bar .site-header {
        top: 0;
    }
}
