/* ==========================================================================
   1. CSS Reset
   ========================================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
ul,
ol,
blockquote,
figure {
    margin: 0;
    padding: 0;
}

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

a {
    text-decoration: none;
    color: inherit;
}

a:hover {
    text-decoration: none;
}

ul,
ol {
    list-style: none;
}

button {
    background: none;
    border: none;
    cursor: pointer;
    font: inherit;
    color: inherit;
}

/* ==========================================================================
   2. CSS Custom Properties
   ========================================================================== */

:root {
    /* Colors */
    --bg: #ffffff;
    --bg-secondary: #f0ebe4;
    --bg-dark: #1c1917;
    --text: #2d2d2d;
    --text-muted: #7a6f63;
    --text-light: #ffffff;
    --accent: #c45a2d;
    --accent-hover: #a84b24;
    --accent-steel: #5c5347;
    --accent-warm: #d4a574;
    --border: #ddd5ca;
    --header-bg: rgba(28, 25, 23, 0.7);
    --header-bg-scrolled: rgba(255, 255, 255, 0.97);

    /* Typography */
    --font-heading: 'Barlow Condensed', sans-serif;
    --font-body: 'Lora', serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* Spacing */
    --gap-sm: 0.75rem;
    --gap: 1.5rem;
    --gap-lg: 3rem;
    --gap-xl: 4rem;
    --gap-xxl: 6rem;

    /* Layout */
    --container-width: 1200px;
    --container-wide: 1400px;
    --header-height: 72px;

    /* Effects */
    --radius: 4px;
    --radius-lg: 8px;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.12);

    /* Z-index */
    --z-header: 100;
    --z-menu-overlay: 200;
    --z-menu: 300;
}

/* ==========================================================================
   3. Base / Body
   ========================================================================== */

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--gh-font-body, var(--font-body));
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   4. Typography
   ========================================================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--gh-font-heading, var(--font-heading));
    color: var(--text);
}

h1 {
    font-weight: 800;
    font-size: 3rem;
    line-height: 1.1;
}

h2 {
    font-weight: 700;
    font-size: 2rem;
    line-height: 1.2;
}

h3 {
    font-weight: 700;
    font-size: 1.5rem;
    line-height: 1.3;
}

h4 {
    font-weight: 700;
    font-size: 1.25rem;
    line-height: 1.4;
}

p {
    margin-bottom: 1rem;
}

/* ==========================================================================
   5. Layout
   ========================================================================== */

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--gap);
}

.container-wide {
    max-width: var(--container-wide);
    margin: 0 auto;
    padding: 0 var(--gap);
}

.site-content {
    padding-top: var(--header-height);
}

.home-template .site-content {
    padding-top: 0;
}

/* ==========================================================================
   6. Ghost Editor Card Width Classes
   ========================================================================== */

.kg-width-wide {
    margin-left: calc(50% - 50vw + var(--gap));
    margin-right: calc(50% - 50vw + var(--gap));
    max-width: calc(100vw - var(--gap) * 2);
}

.kg-width-full {
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    max-width: 100vw;
}

/* ==========================================================================
   7. Site Header
   ========================================================================== */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background-color: var(--header-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    z-index: var(--z-header);
    transition: background-color 0.35s ease, border-bottom-color 0.35s ease, box-shadow 0.35s ease, backdrop-filter 0.35s ease;
}

.site-header.is-scrolled {
    background-color: var(--header-bg-scrolled);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
}

.site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

/* --- Logo --- */

.site-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--text-light);
    transition: color 0.3s ease;
}

.site-logo::before {
    content: '';
    display: block;
    width: 4px;
    height: 28px;
    background-color: var(--accent);
    border-radius: 1px;
    flex-shrink: 0;
    transition: height 0.3s ease;
}

.site-logo:hover {
    color: var(--text-light);
    text-decoration: none;
}

.site-logo:hover::before {
    height: 32px;
}

.site-header.is-scrolled .site-logo {
    color: var(--text);
}

.site-header.is-scrolled .site-logo:hover {
    color: var(--accent);
}

.site-logo img {
    height: 38px;
    width: auto;
}

.site-logo-text {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1;
}

/* --- Desktop Nav --- */

.site-nav {
    display: flex;
    align-items: center;
    gap: 1.75rem;
}

.nav-link {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.site-header.is-scrolled .nav-link {
    color: var(--text-muted);
}

.site-header.is-scrolled .nav-link:hover,
.site-header.is-scrolled .nav-link.nav-current {
    color: var(--text);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.nav-link:hover {
    color: var(--text-light);
    text-decoration: none;
}

.nav-link:hover::after,
.nav-link.nav-current::after {
    transform: scaleX(1);
}

.nav-link.nav-current {
    color: var(--text-light);
}

.site-header.is-scrolled .nav-link.nav-current {
    color: var(--accent);
}

/* --- E-shop Button --- */

.nav-eshop-btn {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background-color: var(--accent);
    color: var(--text-light);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-radius: var(--radius);
    transition: background-color 0.2s ease, transform 0.15s ease;
    margin-left: 0.25rem;
    white-space: nowrap;
}

.nav-eshop-btn:hover {
    background-color: var(--accent-hover);
    color: var(--text-light);
    text-decoration: none;
    transform: translateY(-1px);
}

.nav-eshop-btn:active {
    transform: translateY(0);
}

/* --- Hamburger --- */

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    padding: 4px;
}

.hamburger-line {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text-light);
    transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.3s ease;
}

.site-header.is-scrolled .hamburger-line {
    background-color: var(--text);
}

.mobile-menu-toggle.is-active .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-menu-toggle.is-active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.is-active .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================================
   8. Mobile Menu
   ========================================================================== */

.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: var(--z-menu-overlay);
}

.mobile-menu-overlay.is-active {
    display: block;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -320px;
    width: 320px;
    height: 100vh;
    background-color: var(--bg-dark);
    padding: calc(var(--header-height) + var(--gap-lg)) var(--gap) var(--gap);
    z-index: var(--z-menu);
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    border-left: 3px solid var(--accent);
}

.mobile-menu.is-active {
    right: 0;
}

.mobile-menu-nav {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.mobile-menu-nav .nav-link {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.mobile-menu-nav .nav-link:hover {
    color: var(--accent);
    padding-left: 0.5rem;
}

.mobile-menu-nav .nav-link.nav-current {
    color: var(--accent);
}

.mobile-menu-nav .nav-eshop-btn {
    display: block;
    text-align: center;
    margin-top: var(--gap);
    margin-left: 0;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

/* ==========================================================================
   9. Footer
   ========================================================================== */

.site-footer {
    background-color: var(--bg-dark);
    color: var(--text-light);
    margin-top: var(--gap-xxl);
}

.footer-inner {
    padding-top: var(--gap-xl);
    padding-bottom: var(--gap-xl);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--gap-xl);
}

.footer-logo {
    display: inline-block;
    margin-bottom: var(--gap);
    color: var(--text-light);
}

.footer-logo:hover {
    color: var(--text-light);
    text-decoration: none;
}

.footer-logo img {
    height: 32px;
    width: auto;
    filter: brightness(0) invert(1);
}

.footer-logo-text {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.25rem;
}

.footer-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    line-height: 1.6;
    max-width: 320px;
}

.footer-heading {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-light);
    margin-bottom: var(--gap);
}

.footer-nav-links {
    display: flex;
    flex-direction: column;
    gap: var(--gap-sm);
}

.footer-link {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: var(--accent);
    text-decoration: none;
}

.footer-contact-list {
    display: flex;
    flex-direction: column;
    gap: var(--gap-sm);
}

.footer-contact-item {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

a.footer-contact-item:hover {
    color: var(--accent);
    text-decoration: none;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: var(--gap) 0;
}

.footer-bottom .container-wide {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
}

.footer-powered {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
}

.footer-powered a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-powered a:hover {
    color: var(--accent);
    text-decoration: none;
}

/* ==========================================================================
   10. Section Title
   ========================================================================== */

.section-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 2rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: var(--gap-lg);
    color: var(--text);
}

/* ==========================================================================
   11. Hero
   ========================================================================== */

.hero {
    position: relative;
    min-height: 45vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    background-color: var(--bg-dark);
    background-image: var(--hero-image, none);
    background-size: cover;
    background-position: center;
    padding: calc(var(--header-height) + var(--gap-xl)) 0 var(--gap-xl);
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(28, 25, 23, 0.88) 0%,
        rgba(28, 25, 23, 0.65) 50%,
        rgba(28, 25, 23, 0.35) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: left;
    color: var(--text-light);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--text-light);
    margin-bottom: var(--gap-sm);
    letter-spacing: -0.02em;
}

.hero-tagline {
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    padding-left: 1.5rem;
    border-left: 3px solid var(--accent);
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 0;
}

/* ==========================================================================
   11b. Brand Logos Strip
   ========================================================================== */

.brand-logos {
    padding: var(--gap-xl) 0;
    border-bottom: 1px solid var(--border);
}

.brand-logos-track {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--gap-xl);
    flex-wrap: wrap;
}

.brand-logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    flex-shrink: 0;
    opacity: 0.45;
    filter: grayscale(100%);
    transition: opacity 0.35s ease, filter 0.35s ease, transform 0.35s ease;
}

.brand-logo-item:hover {
    opacity: 1;
    filter: grayscale(0%);
    transform: scale(1.08);
    text-decoration: none;
}

.brand-logo-item img {
    height: 100%;
    width: auto;
    max-width: 140px;
    object-fit: contain;
}

/* ==========================================================================
   11c. Intro Section
   ========================================================================== */

.intro {
    padding: var(--gap-xxl) 0;
}

.intro-inner {
    display: flex;
    align-items: flex-start;
    gap: var(--gap-lg);
    max-width: 800px;
}

.intro-accent {
    width: 4px;
    min-height: 80px;
    background: linear-gradient(180deg, var(--accent) 0%, var(--accent-warm) 100%);
    border-radius: 2px;
    flex-shrink: 0;
    margin-top: 0.35rem;
}

.intro-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text);
    margin-bottom: var(--gap);
    line-height: 1.2;
}

.intro-description {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-muted);
    margin-bottom: 0;
}

/* ==========================================================================
   11d. Value Propositions
   ========================================================================== */

.value-props {
    padding: var(--gap-xxl) 0;
    background-color: var(--bg-secondary);
}

.value-props-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--gap-xl);
}

.value-prop {
    text-align: center;
    padding: var(--gap-lg) var(--gap);
}

.value-prop-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    margin: 0 auto var(--gap);
    color: var(--accent);
    border: 2px solid var(--border);
    border-radius: 50%;
    transition: border-color 0.3s ease, color 0.3s ease;
}

.value-prop:hover .value-prop-icon {
    border-color: var(--accent);
    color: var(--accent-hover);
}

.value-prop-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.15rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text);
    margin-bottom: 0.75rem;
}

.value-prop-text {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 0;
}

/* ==========================================================================
   12. Category Rows — Alternating Image / Text
   ========================================================================== */

.categories {
    padding: var(--gap-lg) 0 var(--gap-xxl);
}

.category-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
    color: var(--text);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: box-shadow 0.35s ease;
}

.category-row + .category-row {
    margin-top: var(--gap-lg);
}

.category-row:hover {
    box-shadow: var(--shadow-hover);
    text-decoration: none;
    color: var(--text);
}

.category-row-reverse {
    direction: rtl;
}

.category-row-reverse > * {
    direction: ltr;
}

.category-row-image {
    position: relative;
    overflow: hidden;
    min-height: 320px;
}

.category-row-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.category-row:hover .category-row-image img {
    transform: scale(1.04);
}

.category-row-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--gap-xl) var(--gap-lg);
    background-color: var(--bg);
}

.category-row-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text);
    margin-bottom: var(--gap-sm);
    line-height: 1.15;
}

.category-row-description {
    font-size: 1rem;
    line-height: 1.65;
    color: var(--text-muted);
    margin-bottom: var(--gap);
}

.category-row-link {
    display: inline-block;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    transition: color 0.25s ease, letter-spacing 0.25s ease;
}

.category-row:hover .category-row-link {
    color: var(--accent-hover);
    letter-spacing: 0.14em;
}

/* ==========================================================================
   13. Machine Card
   ========================================================================== */

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

.machine-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.machine-card-link {
    display: block;
    color: var(--text);
}

.machine-card-link:hover {
    text-decoration: none;
    color: var(--text);
}

.machine-card-image {
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.machine-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.machine-card:hover .machine-card-image img {
    transform: scale(1.05);
}

.machine-card-content {
    padding: var(--gap);
}

.machine-card-tag {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent-steel);
    background-color: var(--bg-secondary);
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius);
    margin-bottom: 0.5rem;
}

.machine-card-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.machine-card-excerpt {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 0;
}

/* ==========================================================================
   14. Machine Grid
   ========================================================================== */

.machine-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--gap);
}

/* ==========================================================================
   15. Trust Strip
   ========================================================================== */

.trust-strip {
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding: var(--gap-xxl) 0;
    border-top: 3px solid var(--accent);
}

.trust-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--gap-xl);
}

.trust-item {
    text-align: center;
}

.trust-value {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 3rem;
    color: var(--text-light);
    display: block;
}

.trust-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 0.5rem;
    display: block;
}

/* ==========================================================================
   16. Contact CTA
   ========================================================================== */

.contact-cta {
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding: var(--gap-xl) 0;
}

.contact-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--gap-xl);
}

.contact-cta-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.75rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.contact-cta-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    margin-bottom: 0;
    max-width: 400px;
}

.contact-cta-details {
    display: flex;
    gap: var(--gap-lg);
}

.contact-cta-item {
    display: flex;
    flex-direction: column;
    color: var(--text-light);
    transition: color 0.2s ease;
}

.contact-cta-item:hover {
    color: var(--accent);
    text-decoration: none;
}

.contact-cta-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0.25rem;
}

.contact-cta-value {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
}

/* ==========================================================================
   17. Breadcrumbs
   ========================================================================== */

.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    margin-bottom: var(--gap-lg);
    padding-top: var(--gap-lg);
}

.breadcrumb-link {
    color: var(--accent-steel);
    transition: color 0.2s ease;
}

.breadcrumb-link:hover {
    color: var(--accent);
    text-decoration: underline;
}

.breadcrumb-separator {
    color: var(--text-muted);
}

.breadcrumb-current {
    color: var(--text-muted);
}

/* ==========================================================================
   18. Archive Header
   ========================================================================== */

.archive-page {
    padding-bottom: var(--gap-xxl);
}

.archive-header {
    margin-bottom: var(--gap-xl);
}

.archive-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.archive-description {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin-bottom: var(--gap);
}

.archive-count {
    display: inline-block;
    font-size: 0.85rem;
    color: var(--accent-steel);
    background-color: var(--bg-secondary);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius);
}

/* ==========================================================================
   19. Pagination
   ========================================================================== */

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--gap);
    margin-top: var(--gap-xl);
    padding-top: var(--gap-xl);
    border-top: 1px solid var(--border);
}

.pagination-link {
    display: inline-block;
    padding: 0.6rem 1.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text);
    transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.pagination-link:hover {
    border-color: var(--accent);
    color: var(--accent);
    text-decoration: none;
}

.pagination-link:active {
    background-color: var(--bg-secondary);
}

.pagination-info {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ==========================================================================
   20. Machine Detail
   ========================================================================== */

.machine-detail {
    padding-bottom: var(--gap-xxl);
}

.machine-detail-header {
    margin-bottom: var(--gap-lg);
}

.machine-detail-tag {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent-steel);
    background-color: var(--bg-secondary);
    padding: 0.3rem 0.75rem;
    border-radius: var(--radius);
    margin-bottom: var(--gap);
    transition: color 0.2s ease, background-color 0.2s ease;
}

.machine-detail-tag:hover {
    color: var(--accent);
    background-color: var(--border);
    text-decoration: none;
}

.machine-detail-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 2.75rem;
    line-height: 1.1;
}

.machine-detail-image {
    margin-bottom: var(--gap-xl);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.machine-detail-image img {
    width: 100%;
    height: auto;
}

/* ==========================================================================
   21. Shared Content Body
   ========================================================================== */

.content-body a {
    color: var(--accent);
    text-decoration: underline;
    transition: color 0.2s ease;
}

.content-body a:hover {
    color: var(--accent-hover);
}

.content-body h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-top: var(--gap-xl);
    margin-bottom: var(--gap);
}

.content-body h3 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-top: var(--gap-lg);
    margin-bottom: var(--gap-sm);
}

.content-body p {
    margin-bottom: var(--gap);
    line-height: 1.7;
}

.content-body ul,
.content-body ol {
    margin-bottom: var(--gap);
    padding-left: 1.5rem;
    list-style: disc;
}

.content-body ol {
    list-style: decimal;
}

.content-body li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.content-body blockquote {
    border-left: 4px solid var(--accent);
    padding: var(--gap) var(--gap-lg);
    margin: var(--gap-lg) 0;
    background-color: var(--bg-secondary);
    border-radius: 0 var(--radius) var(--radius) 0;
}

.content-body blockquote p:last-child {
    margin-bottom: 0;
}

.content-body pre {
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding: var(--gap);
    border-radius: var(--radius-lg);
    overflow-x: auto;
    margin-bottom: var(--gap);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    line-height: 1.5;
}

.content-body code {
    font-family: var(--font-mono);
    font-size: 0.9em;
    background-color: var(--bg-secondary);
    padding: 0.15rem 0.4rem;
    border-radius: var(--radius);
}

.content-body pre code {
    background: none;
    padding: 0;
    border-radius: 0;
}

.content-body table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: var(--gap-lg);
    font-size: 0.95rem;
}

.content-body table th {
    background-color: var(--bg-secondary);
    font-family: var(--font-heading);
    font-weight: 700;
    text-align: left;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
}

.content-body table td {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    font-family: var(--font-mono);
    font-size: 0.9rem;
}

.content-body figure {
    margin: var(--gap-lg) 0;
}

.content-body figcaption {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: var(--gap-sm);
}

.content-body hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: var(--gap-xl) 0;
}

.content-body img {
    border-radius: var(--radius);
}

.machine-detail-content {
    max-width: 800px;
    margin-bottom: var(--gap-xl);
}

/* ==========================================================================
   22. Page Full
   ========================================================================== */

.page-full {
    max-width: 800px;
    padding-top: var(--gap-lg);
    padding-bottom: var(--gap-xxl);
}

.page-full-header {
    margin-bottom: var(--gap-xl);
}

.page-full-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 2.75rem;
    line-height: 1.1;
}

.page-full-image {
    margin-bottom: var(--gap-xl);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.page-full-image img {
    width: 100%;
    height: auto;
}

/* ==========================================================================
   23. Post Meta
   ========================================================================== */

.post-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: var(--gap);
}

.post-meta-separator {
    color: var(--border);
}

/* ==========================================================================
   24. Error 404
   ========================================================================== */

.error-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    text-align: center;
    padding: var(--gap-xxl) var(--gap);
}

.error-page-inner {
    max-width: 500px;
}

.error-code {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 8rem;
    line-height: 1;
    color: var(--accent);
    margin-bottom: var(--gap);
}

.error-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.75rem;
    margin-bottom: var(--gap);
}

.error-description {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: var(--gap-lg);
}

.error-button {
    display: inline-block;
    padding: 0.75rem 2rem;
    background-color: var(--accent);
    color: var(--text-light);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: var(--radius);
    transition: background-color 0.2s ease;
}

.error-button:hover {
    background-color: var(--accent-hover);
    color: var(--text-light);
    text-decoration: none;
}

.error-button:active {
    transform: translateY(1px);
}

/* ==========================================================================
   25. Scroll Reveal & Stagger Animations
   ========================================================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
}

.reveal.is-visible {
    animation: fadeInUp 0.6s ease forwards;
}

.reveal.is-visible .stagger-1 {
    animation: fadeInUp 0.5s ease forwards;
    animation-delay: 0.1s;
    opacity: 0;
}

.reveal.is-visible .stagger-2 {
    animation: fadeInUp 0.5s ease forwards;
    animation-delay: 0.2s;
    opacity: 0;
}

.reveal.is-visible .stagger-3 {
    animation: fadeInUp 0.5s ease forwards;
    animation-delay: 0.3s;
    opacity: 0;
}

/* Stagger value props */
.reveal.is-visible .value-prop:nth-child(1) {
    animation: fadeInUp 0.5s ease forwards;
    animation-delay: 0.1s;
    opacity: 0;
}

.reveal.is-visible .value-prop:nth-child(2) {
    animation: fadeInUp 0.5s ease forwards;
    animation-delay: 0.2s;
    opacity: 0;
}

.reveal.is-visible .value-prop:nth-child(3) {
    animation: fadeInUp 0.5s ease forwards;
    animation-delay: 0.3s;
    opacity: 0;
}

/* Stagger brand logos */
.reveal.is-visible .brand-logo-item:nth-child(1) {
    animation: fadeInUp 0.4s ease forwards;
    animation-delay: 0.05s;
    opacity: 0;
}

.reveal.is-visible .brand-logo-item:nth-child(2) {
    animation: fadeInUp 0.4s ease forwards;
    animation-delay: 0.1s;
    opacity: 0;
}

.reveal.is-visible .brand-logo-item:nth-child(3) {
    animation: fadeInUp 0.4s ease forwards;
    animation-delay: 0.15s;
    opacity: 0;
}

.reveal.is-visible .brand-logo-item:nth-child(4) {
    animation: fadeInUp 0.4s ease forwards;
    animation-delay: 0.2s;
    opacity: 0;
}

.reveal.is-visible .brand-logo-item:nth-child(5) {
    animation: fadeInUp 0.4s ease forwards;
    animation-delay: 0.25s;
    opacity: 0;
}

/* ==========================================================================
   26. Responsive Breakpoints
   ========================================================================== */

@media (max-width: 1024px) {
    .machine-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .value-prop:last-child {
        grid-column: 1 / -1;
        max-width: 400px;
        margin: 0 auto;
    }

    .contact-cta-inner {
        flex-direction: column;
        text-align: center;
    }

    .contact-cta-description {
        max-width: none;
    }

    .contact-cta-details {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .site-nav {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-tagline {
        font-size: 0.85rem;
    }

    .hero {
        min-height: 35vh;
        padding: calc(var(--header-height) + var(--gap-lg)) 0 var(--gap-lg);
    }

    .category-row {
        grid-template-columns: 1fr;
    }

    .category-row-reverse {
        direction: ltr;
    }

    .category-row-image {
        min-height: 240px;
    }

    .category-row-text {
        padding: var(--gap-lg) var(--gap);
    }

    .brand-logos-track {
        gap: var(--gap-lg);
    }

    .brand-logo-item {
        height: 36px;
    }

    .brand-logo-item img {
        max-width: 100px;
    }

    .intro-inner {
        flex-direction: column;
        gap: var(--gap);
    }

    .intro-accent {
        width: 48px;
        min-height: 4px;
        height: 4px;
    }

    .intro-title {
        font-size: 1.5rem;
    }

    .value-props-grid {
        grid-template-columns: 1fr;
    }

    .value-prop:last-child {
        grid-column: auto;
        max-width: none;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--gap-lg);
    }

    .footer-bottom .container-wide {
        flex-direction: column;
        gap: var(--gap-sm);
        text-align: center;
    }

    .trust-grid {
        flex-direction: column;
        gap: var(--gap);
    }

    .trust-value {
        font-size: 2.5rem;
    }

    .archive-title {
        font-size: 2rem;
    }

    .machine-detail-title {
        font-size: 2rem;
    }

    .page-full-title {
        font-size: 2rem;
    }

    .error-code {
        font-size: 5rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

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

    .hero {
        min-height: 30vh;
        padding: calc(var(--header-height) + var(--gap)) 0 var(--gap);
    }

    .category-row-image {
        min-height: 200px;
    }

    .category-row-title {
        font-size: 1.35rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .contact-cta-details {
        flex-direction: column;
        align-items: center;
    }

    .breadcrumbs {
        font-size: 0.8rem;
    }

    .pagination {
        flex-direction: column;
        gap: var(--gap-sm);
    }
}

/* ==========================================================================
   27. Utility Classes
   ========================================================================== */

body.no-scroll {
    overflow: hidden;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.bg-secondary {
    background-color: var(--bg-secondary);
}

/* ==========================================================================
   28. Print Styles
   ========================================================================== */

@media print {
    .site-header,
    .mobile-menu,
    .mobile-menu-overlay,
    .site-footer,
    .contact-cta,
    .breadcrumbs,
    .pagination,
    .error-button {
        display: none !important;
    }

    body {
        background: white;
        color: black;
        font-size: 12pt;
    }

    .site-content {
        padding-top: 0;
    }

    .machine-card,
    .category-row {
        box-shadow: none;
        border: 1px solid #ccc;
        break-inside: avoid;
    }

    a {
        color: black;
        text-decoration: underline;
    }

    img {
        max-width: 100%;
    }
}
