/*
Theme Name: Thomas Trucks & Equipment
Theme URI: https://criticalmkt.com
Author: Critical Marketing
Author URI: https://criticalmkt.com
Description: Custom theme for Thomas Trucks & Equipment, LLC — modern editorial industrial
Version: 1.1.0
*/

/* ==========================================================================
   DESIGN TOKENS
   ========================================================================== */
:root {
    /* Colors */
    --color-red: #A30310;
    --color-red-dark: #7E0108;
    --color-red-bright: #C50416;
    --color-dark: #0F1113;
    --color-dark-deeper: #0A0B0D;
    --color-surface: #F7F4EE;
    --color-surface-warm: #EFEAE0;
    --color-text: #0F1113;
    --color-text-muted: #5B5E63;
    --color-text-dim: #9BA0A6;
    --color-border: rgba(15, 17, 19, 0.08);
    --color-border-light: rgba(255, 255, 255, 0.15);
    --color-white: #FFFFFF;
    --color-off-white: #F7F4EE;

    /* Typography */
    --font-display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spacing */
    --container-width: 1400px;
    --container-narrow: 1200px;
    --container-padding: 32px;
    --section-padding-y: clamp(80px, 10vw, 160px);

    /* Transitions */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --transition-base: 0.4s var(--ease-out);

    /* Shadows */
    --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 6px 30px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.12);
}

/* ==========================================================================
   RESET + BASE
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-surface);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}
img, picture, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
ul, ol { list-style: none; padding: 0; margin: 0; }
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 0.95;
    letter-spacing: -0.025em;
    margin: 0;
}

/* ==========================================================================
   LAYOUT
   ========================================================================== */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}
.container--narrow { max-width: var(--container-narrow); }

section { padding: var(--section-padding-y) 0; }

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 24px 0;
    transition: background 0.4s ease, padding 0.4s ease, border-color 0.4s ease;
    border-bottom: 1px solid transparent;
}
.site-header.scrolled {
    background: rgba(15, 17, 19, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 16px 0;
    border-bottom-color: rgba(255, 255, 255, 0.08);
}
.site-header.light {
    /* When on light sections if ever needed */
    background: rgba(247, 244, 238, 0.92);
    backdrop-filter: blur(16px);
}
.header-inner {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}
.site-logo img {
    height: 60px;
    width: auto;
    max-width: none;
    display: block;
}
@media (max-width: 768px) {
    .site-logo img { height: 44px; }
}

.site-nav {
    display: flex;
    gap: 40px;
    align-items: center;
}
.site-nav a {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: rgba(255, 255, 255, 0.82);
    position: relative;
    padding: 6px 0;
    transition: color 0.25s ease;
}
.site-nav a::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 1px;
    background: var(--color-red);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s var(--ease-out);
}
.site-nav a:hover {
    color: #fff;
}
.site-nav a:hover::after {
    transform: scaleX(1);
}
.site-nav a.current { color: #fff; }

.header-phone {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.02em;
    padding: 10px 20px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 2px;
    transition: all 0.3s ease;
}
.header-phone:hover {
    border-color: var(--color-red);
    background: var(--color-red);
}

/* Mobile menu */
.mobile-toggle {
    display: none;
    width: 32px;
    height: 24px;
    position: relative;
    z-index: 101;
}
.mobile-toggle span {
    display: block;
    position: absolute;
    height: 2px;
    width: 100%;
    background: #fff;
    transition: all 0.3s ease;
    left: 0;
}
.mobile-toggle span:nth-child(1) { top: 4px; }
.mobile-toggle span:nth-child(2) { top: 11px; }
.mobile-toggle span:nth-child(3) { top: 18px; }
.mobile-toggle.active span:nth-child(1) { top: 11px; transform: rotate(45deg); }
.mobile-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-toggle.active span:nth-child(3) { top: 11px; transform: rotate(-45deg); }

.mobile-nav {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: min(100%, 420px);
    background: var(--color-dark);
    padding: 100px 40px 40px;
    transform: translateX(100%);
    transition: transform 0.4s var(--ease-out);
    z-index: 99;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav a {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 600;
    color: #fff;
    letter-spacing: -0.02em;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.mobile-nav .mobile-phone {
    margin-top: auto;
    font-size: 15px;
    font-family: var(--font-body);
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 16px 0;
    color: var(--color-red);
}

@media (max-width: 1024px) {
    .site-nav, .header-phone { display: none; }
    .mobile-toggle { display: block; }
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border: 1px solid transparent;
    border-radius: 2px;
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: nowrap;
}
.btn .arrow { transition: transform 0.3s ease; }
.btn:hover .arrow { transform: translateX(4px); }

.btn-primary {
    background: var(--color-red);
    color: #fff;
    border-color: var(--color-red);
}
.btn-primary:hover {
    background: var(--color-red-bright);
    border-color: var(--color-red-bright);
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(163, 3, 16, 0.3);
}

.btn-outline-light {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.4);
}
.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: #fff;
}

.btn-outline-dark {
    background: transparent;
    color: var(--color-dark);
    border-color: var(--color-dark);
}
.btn-outline-dark:hover {
    background: var(--color-dark);
    color: #fff;
}

.btn-dark {
    background: var(--color-dark);
    color: #fff;
    border-color: var(--color-dark);
}
.btn-dark:hover {
    background: var(--color-red);
    border-color: var(--color-red);
}

/* Text link w/ arrow */
.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-dark);
    padding-bottom: 2px;
    border-bottom: 1px solid currentColor;
    transition: color 0.3s ease, gap 0.3s ease;
}
.link-arrow:hover { color: var(--color-red); gap: 16px; }

.link-arrow-light {
    color: rgba(255, 255, 255, 0.9);
}
.link-arrow-light:hover { color: var(--color-red); }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--color-dark);
    color: #fff;
    overflow: hidden;
    padding-top: 120px;
    padding-bottom: 80px;
}
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) contrast(1.1) brightness(0.7);
}
.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(15, 17, 19, 0.6) 0%, rgba(15, 17, 19, 0.8) 60%, rgba(15, 17, 19, 0.95) 100%),
        linear-gradient(90deg, rgba(15, 17, 19, 0.7) 0%, rgba(15, 17, 19, 0.3) 60%);
}
.hero-inner {
    position: relative;
    z-index: 2;
    width: 100%;
}
.hero-content {
    max-width: 980px;
}
.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(3rem, 9vw, 8.5rem);
    font-weight: 700;
    line-height: 0.92;
    letter-spacing: -0.035em;
    margin: 0 0 32px;
    color: #fff;
}
.hero h1 .accent {
    color: var(--color-red);
    font-family: var(--font-display);
    font-weight: 700;
}
.hero-subtitle {
    font-family: var(--font-body);
    font-size: clamp(1.05rem, 1.4vw, 1.3rem);
    font-weight: 400;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.78);
    max-width: 620px;
    margin: 0 0 48px;
}
.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}
.hero-meta {
    position: absolute;
    left: var(--container-padding);
    right: var(--container-padding);
    bottom: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 2;
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
}
.hero-meta span { display: inline-block; }
.hero-meta-left, .hero-meta-right {
    display: flex;
    gap: 28px;
}
.hero-meta-left span:not(:last-child)::after,
.hero-meta-right span:not(:last-child)::after {
    content: '';
    display: inline-block;
    width: 1px;
    height: 10px;
    background: rgba(255, 255, 255, 0.25);
    margin-left: 28px;
    vertical-align: middle;
}

@media (max-width: 768px) {
    .hero { min-height: 90vh; padding-top: 100px; }
    .hero-buttons { flex-direction: column; align-items: flex-start; }
    .hero-buttons .btn { width: 100%; max-width: 340px; }
    .hero-meta { position: static; flex-direction: column; gap: 12px; align-items: flex-start; margin-top: 60px; }
    .hero-meta-right { display: none; }
}

/* Hero entrance animation (page load, separate from scroll-reveal) */
.hero .eyebrow,
.hero h1,
.hero .hero-subtitle,
.hero .hero-buttons,
.hero .hero-meta {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.hero-entered .eyebrow { opacity: 1; transform: none; transition-delay: 0.15s; }
.hero-entered h1 { opacity: 1; transform: none; transition-delay: 0.3s; }
.hero-entered .hero-subtitle { opacity: 1; transform: none; transition-delay: 0.55s; }
.hero-entered .hero-buttons { opacity: 1; transform: none; transition-delay: 0.75s; }
.hero-entered .hero-meta { opacity: 1; transform: none; transition-delay: 0.95s; }

@media (prefers-reduced-motion: reduce) {
    .hero .eyebrow, .hero h1, .hero .hero-subtitle, .hero .hero-buttons, .hero .hero-meta {
        opacity: 1 !important; transform: none !important; transition: none !important;
    }
}

/* ==========================================================================
   EYEBROW
   ========================================================================== */
.eyebrow {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: var(--color-red);
    margin-bottom: 24px;
}
.eyebrow-light { color: var(--color-red); }

/* ==========================================================================
   SECTION HEADINGS
   ========================================================================== */
.section-heading {
    font-family: var(--font-display);
    font-size: clamp(2.25rem, 5vw, 4.5rem);
    font-weight: 700;
    line-height: 0.98;
    letter-spacing: -0.03em;
    margin: 0 0 24px;
}
.section-heading .accent { color: var(--color-red); }
.section-lede {
    font-family: var(--font-body);
    font-size: clamp(1rem, 1.3vw, 1.15rem);
    line-height: 1.6;
    color: var(--color-text-muted);
    max-width: 520px;
    margin: 0 0 36px;
}

/* Dark-section variants */
.section-dark {
    background: var(--color-dark);
    color: #fff;
}
.section-dark .section-heading { color: #fff; }
.section-dark .section-lede { color: rgba(255, 255, 255, 0.7); }

/* ==========================================================================
   INVENTORY SECTION (Split editorial)
   ========================================================================== */
.inventory-split {
    background: var(--color-surface);
}
.inventory-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 80px;
    align-items: start;
}
.inventory-intro {
    position: sticky;
    top: 120px;
}
.inventory-list {
    border-top: 1px solid var(--color-border);
}
.inventory-item {
    display: grid;
    grid-template-columns: 180px 1fr auto;
    gap: 32px;
    align-items: center;
    padding: 28px 0;
    border-bottom: 1px solid var(--color-border);
    position: relative;
    transition: padding 0.4s var(--ease-out);
}
.inventory-item::before {
    content: '';
    position: absolute;
    inset: 0 -24px;
    background: var(--color-surface-warm);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
    border-radius: 4px;
}
.inventory-item:hover::before { opacity: 1; }
.inventory-item > * { position: relative; z-index: 1; }

.inventory-item:hover { padding-left: 24px; padding-right: 24px; }
.inventory-item:hover .inventory-name { color: var(--color-red); }
.inventory-item:hover .inventory-arrow { transform: translateX(8px); color: var(--color-red); }

.inventory-thumb {
    width: 180px;
    height: 120px;
    overflow: hidden;
    border-radius: 3px;
    background: var(--color-dark);
}
.inventory-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(50%) contrast(1.05);
    transition: transform 0.6s var(--ease-out), filter 0.4s ease;
}
.inventory-item:hover .inventory-thumb img {
    transform: scale(1.05);
    filter: grayscale(0%) contrast(1);
}

.inventory-name {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--color-text);
    margin: 0 0 6px;
    transition: color 0.3s ease;
}
.inventory-desc {
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--color-text-muted);
    margin: 0;
}
.inventory-arrow {
    font-family: var(--font-display);
    font-size: 24px;
    color: var(--color-text);
    transition: transform 0.3s ease, color 0.3s ease;
}

@media (max-width: 1024px) {
    .inventory-grid { grid-template-columns: 1fr; gap: 60px; }
    .inventory-intro { position: static; }
}
@media (max-width: 640px) {
    .inventory-item { grid-template-columns: 100px 1fr auto; gap: 20px; padding: 20px 0; }
    .inventory-thumb { width: 100px; height: 80px; }
    .inventory-name { font-size: 1.3rem; }
    .inventory-desc { font-size: 13px; }
}

/* ==========================================================================
   ABOUT SECTION
   ========================================================================== */
.about {
    background: var(--color-dark);
    color: #fff;
    overflow: hidden;
}
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    align-items: center;
}
.about-image {
    position: relative;
    aspect-ratio: 4/5;
    overflow: hidden;
    border-radius: 4px;
}
.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(30%) contrast(1.05);
}
.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 48px;
    padding-top: 48px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.about-stat-number {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.03em;
    color: var(--color-red);
    margin: 0 0 10px;
}
.about-stat-label {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 1024px) {
    .about-grid { grid-template-columns: 1fr; gap: 60px; }
    .about-image { max-width: 500px; aspect-ratio: 4/3; }
}

/* ==========================================================================
   PROCESS / INSPECTION STEPS
   ========================================================================== */
.process { background: var(--color-surface); }
.process-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 80px;
}
.process-header .section-lede { margin-left: auto; margin-right: auto; }
.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    counter-reset: step;
}
.process-step {
    position: relative;
    padding-top: 80px;
}
.process-step::before {
    counter-increment: step;
    content: "0" counter(step);
    position: absolute;
    top: 0;
    left: 0;
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 500;
    color: var(--color-red);
    letter-spacing: 0.2em;
}
.process-step::after {
    content: '';
    position: absolute;
    top: 12px;
    left: 40px;
    right: 0;
    height: 1px;
    background: var(--color-border);
}
.process-step:last-child::after { display: none; }
.process-step h3 {
    font-family: var(--font-display);
    font-size: clamp(1.25rem, 2vw, 1.6rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    margin: 0 0 16px;
    line-height: 1.15;
}
.process-step p {
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 1024px) { .process-steps { grid-template-columns: repeat(2, 1fr); gap: 48px; } }
@media (max-width: 540px) { .process-steps { grid-template-columns: 1fr; gap: 48px; } }

/* ==========================================================================
   SOLD GALLERY (masonry-style grid)
   ========================================================================== */
.sold { background: var(--color-dark); color: #fff; }
.sold-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 40px;
    margin-bottom: 64px;
    flex-wrap: wrap;
}
.sold-header-text { max-width: 560px; }
.sold-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: 200px;
    gap: 16px;
}
.sold-item {
    position: relative;
    overflow: hidden;
    border-radius: 3px;
    background: #000;
}
.sold-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--ease-out);
    filter: grayscale(20%) contrast(1.05);
}
.sold-item:hover img { transform: scale(1.08); filter: grayscale(0%) contrast(1); }
.sold-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.8) 100%);
    pointer-events: none;
}
.sold-label {
    position: absolute;
    bottom: 20px; left: 20px;
    z-index: 2;
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: #fff;
}
.sold-label::before {
    content: 'SOLD  ·  ';
    color: var(--color-red);
}
.sold-item:nth-child(1) { grid-column: span 3; grid-row: span 2; }
.sold-item:nth-child(2) { grid-column: span 3; grid-row: span 1; }
.sold-item:nth-child(3) { grid-column: span 2; grid-row: span 1; }
.sold-item:nth-child(4) { grid-column: span 1; grid-row: span 1; }
.sold-item:nth-child(5) { grid-column: span 2; grid-row: span 1; }
.sold-item:nth-child(6) { grid-column: span 4; grid-row: span 1; }

@media (max-width: 900px) {
    .sold-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
    .sold-item:nth-child(n) { grid-column: span 1; grid-row: span 1; }
    .sold-item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
}

/* ==========================================================================
   CONSIGNMENT BANNER
   ========================================================================== */
.consignment {
    background: var(--color-surface);
    position: relative;
    overflow: hidden;
}
.consignment-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
    align-items: center;
}
.consignment-image {
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: 4px;
}
.consignment-image img {
    width: 100%; height: 100%;
    object-fit: cover;
    filter: grayscale(20%);
}
.consignment-list {
    margin: 32px 0 40px;
}
.consignment-list li {
    padding: 14px 0;
    border-bottom: 1px solid var(--color-border);
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--color-text);
    display: flex;
    align-items: center;
    gap: 16px;
}
.consignment-list li::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--color-red);
    border-radius: 50%;
    flex-shrink: 0;
}

@media (max-width: 1024px) {
    .consignment-grid { grid-template-columns: 1fr; gap: 48px; }
}

/* ==========================================================================
   FINAL CTA
   ========================================================================== */
.cta-final {
    background: var(--color-dark);
    color: #fff;
    padding: clamp(100px, 12vw, 180px) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cta-final::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(163, 3, 16, 0.18) 0%, transparent 60%);
    pointer-events: none;
}
.cta-final-inner {
    position: relative;
    z-index: 2;
    max-width: 920px;
    margin: 0 auto;
}
.cta-final h2 {
    font-size: clamp(2.5rem, 7vw, 6rem);
    margin: 0 0 32px;
    color: #fff;
}
.cta-final p {
    font-family: var(--font-body);
    font-size: clamp(1.1rem, 1.4vw, 1.3rem);
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0 48px;
    max-width: 580px;
    margin-left: auto;
    margin-right: auto;
}
.cta-final-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
    background: var(--color-dark-deeper);
    color: rgba(255, 255, 255, 0.65);
    padding: 80px 0 40px;
    font-family: var(--font-body);
    font-size: 14px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 64px;
}
.footer-brand-logo {
    height: 56px;
    width: auto;
    margin-bottom: 24px;
}
.footer-brand p {
    max-width: 320px;
    line-height: 1.6;
    margin: 0 0 24px;
}
.footer-col h4 {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: rgba(255, 255, 255, 0.4);
    margin: 0 0 20px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col a {
    color: rgba(255, 255, 255, 0.75);
    transition: color 0.3s ease;
}
.footer-col a:hover { color: var(--color-red); }
.footer-contact p { margin: 0 0 10px; line-height: 1.6; }
.footer-contact strong { color: #fff; font-weight: 600; display: block; margin-bottom: 2px; }
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    font-size: 12px;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
}

@media (max-width: 900px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media (max-width: 540px) {
    .footer-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   PAGE HERO (interior pages)
   ========================================================================== */
.page-hero {
    position: relative;
    padding: 200px 0 120px;
    background: var(--color-dark);
    color: #fff;
    overflow: hidden;
}
.page-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.page-hero-bg img {
    width: 100%; height: 100%;
    object-fit: cover;
    filter: grayscale(100%) brightness(0.45);
}
.page-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 900px;
}
.page-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 6rem);
    line-height: 0.98;
    letter-spacing: -0.03em;
    margin: 0 0 20px;
    color: #fff;
}
.page-hero p {
    font-size: clamp(1rem, 1.3vw, 1.2rem);
    color: rgba(255, 255, 255, 0.75);
    max-width: 620px;
    margin: 0;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .page-hero { padding: 140px 0 80px; }
}

/* ==========================================================================
   INTERIOR PAGE CONTENT
   ========================================================================== */
.page-content {
    padding: var(--section-padding-y) 0;
    background: var(--color-surface);
}
.page-content-inner {
    max-width: 780px;
    margin: 0 auto;
}
.page-content-inner h2 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    margin: 48px 0 20px;
}
.page-content-inner h3 {
    font-size: clamp(1.3rem, 2vw, 1.6rem);
    margin: 32px 0 16px;
}
.page-content-inner p {
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--color-text);
    margin: 0 0 20px;
}
.page-content-inner ul:not(.consignment-list) {
    margin: 0 0 24px;
    padding-left: 24px;
}
.page-content-inner ul:not(.consignment-list) li {
    list-style: disc;
    margin-bottom: 8px;
    font-size: 1.05rem;
    line-height: 1.6;
}

/* ==========================================================================
   CONTACT PAGE
   ========================================================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
    align-items: start;
}
.contact-info { }
.contact-info-card {
    padding: 24px 0;
    border-bottom: 1px solid var(--color-border);
}
.contact-info-card:last-child { border-bottom: 0; }
.contact-info-card h3 {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--color-red);
    margin: 0 0 10px;
}
.contact-info-card p {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--color-text);
    margin: 0;
    line-height: 1.4;
    letter-spacing: -0.01em;
}
.contact-info-card a { color: inherit; }
.contact-info-card a:hover { color: var(--color-red); }

.contact-form-wrap {
    background: #fff;
    padding: 48px;
    border-radius: 4px;
    box-shadow: var(--shadow-md);
}
.contact-form-wrap h2 {
    font-size: 1.6rem;
    margin: 0 0 24px;
}
/* WPForms overrides */
.wpforms-container {
    font-family: var(--font-body) !important;
}
.wpforms-container .wpforms-field-label {
    font-family: var(--font-body) !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.12em !important;
    color: var(--color-text-muted) !important;
    margin-bottom: 8px !important;
}
.wpforms-container input[type="text"],
.wpforms-container input[type="email"],
.wpforms-container input[type="tel"],
.wpforms-container textarea {
    font-family: var(--font-body) !important;
    font-size: 15px !important;
    padding: 12px 14px !important;
    border: 1px solid var(--color-border) !important;
    border-radius: 2px !important;
    background: var(--color-surface) !important;
    color: var(--color-text) !important;
    transition: border-color 0.3s ease, background 0.3s ease !important;
}
.wpforms-container input:focus,
.wpforms-container textarea:focus {
    border-color: var(--color-red) !important;
    background: #fff !important;
    outline: 0 !important;
    box-shadow: 0 0 0 3px rgba(163, 3, 16, 0.1) !important;
}
.wpforms-container .wpforms-submit {
    background: var(--color-red) !important;
    color: #fff !important;
    font-family: var(--font-body) !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.06em !important;
    padding: 16px 32px !important;
    border: 0 !important;
    border-radius: 2px !important;
    transition: all 0.3s ease !important;
}
.wpforms-container .wpforms-submit:hover {
    background: var(--color-red-bright) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 20px rgba(163, 3, 16, 0.25) !important;
}

@media (max-width: 1024px) {
    .contact-grid { grid-template-columns: 1fr; gap: 48px; }
}

/* ==========================================================================
   INVENTORY PAGE (detailed cards)
   ========================================================================== */
.inventory-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}
.inventory-card {
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.4s var(--ease-out), box-shadow 0.4s ease;
}
.inventory-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}
.inventory-card-img {
    aspect-ratio: 4/3;
    overflow: hidden;
    background: var(--color-dark);
}
.inventory-card-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease-out);
}
.inventory-card:hover .inventory-card-img img { transform: scale(1.05); }
.inventory-card-body { padding: 28px; }
.inventory-card h3 {
    font-size: 1.4rem;
    margin: 0 0 12px;
    letter-spacing: -0.02em;
}
.inventory-card p {
    font-size: 15px;
    color: var(--color-text-muted);
    margin: 0;
    line-height: 1.55;
}

@media (max-width: 900px) { .inventory-cards-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .inventory-cards-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   DYNAMIC INVENTORY LISTINGS
   ========================================================================== */
.listing-section {
    margin-bottom: 80px;
}
.listing-section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 32px;
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--color-border);
    flex-wrap: wrap;
}
.listing-section-heading {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 700;
    letter-spacing: -0.025em;
    margin: 0;
    color: var(--color-text);
}
.listing-section-count {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-text-muted);
    padding-bottom: 8px;
}
.listings-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}
@media (max-width: 900px) { .listings-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; } }
@media (max-width: 540px) { .listings-grid { grid-template-columns: 1fr; } }

.listing-card {
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.4s var(--ease-out), box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
}
.listing-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.listing-card-img {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: var(--color-dark);
}
.listing-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease-out);
}
.listing-card:hover .listing-card-img img { transform: scale(1.05); }
.listing-sold .listing-card-img img { filter: grayscale(70%) brightness(0.9); }

.listing-price-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--color-red);
    color: #fff;
    padding: 8px 14px;
    border-radius: 2px;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
    z-index: 2;
}
.listing-sold-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(15, 17, 19, 0.95);
    color: #fff;
    padding: 8px 18px;
    border-radius: 2px;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.2em;
    z-index: 2;
    border: 1px solid var(--color-red);
}
.listing-cat-tag {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--color-text);
    padding: 6px 12px;
    border-radius: 2px;
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    z-index: 2;
}

.listing-card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.listing-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.015em;
    margin: 0 0 8px;
    line-height: 1.25;
    color: var(--color-text);
}
.listing-specs {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
    margin: 0 0 12px;
}
.listing-meta {
    display: flex;
    gap: 16px;
    font-size: 14px;
    color: var(--color-text-muted);
    margin: 0 0 20px;
    flex-wrap: wrap;
}
.listing-sold-date {
    color: var(--color-red);
    font-weight: 500;
}
.listing-cta {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-text);
    padding: 10px 0 0;
    border-top: 1px solid var(--color-border);
    transition: gap 0.3s ease, color 0.3s ease;
}
.listing-cta:hover { color: var(--color-red); gap: 16px; }
.listing-cta span { transition: transform 0.3s ease; }

/* Recently-sold strip — warm off-white, lives at the bottom of /inventory/ */
.recently-sold {
    background: var(--color-surface-warm);
    padding: clamp(80px, 10vw, 140px) 0;
    color: var(--color-text);
}
.recently-sold .section-heading { color: var(--color-text); margin-top: 6px; margin-bottom: 0; }
.recently-sold .listing-section-header { border-bottom: 0; margin-bottom: 48px; align-items: flex-end; }

/* ==========================================================================
   SCROLL REVEAL
   ========================================================================== */
[data-reveal] {
    opacity: 0;
    transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
[data-reveal="fade-up"] { transform: translateY(40px); }
[data-reveal="fade-left"] { transform: translateX(-40px); }
[data-reveal="fade-right"] { transform: translateX(40px); }
[data-reveal="zoom-in"] { transform: scale(0.96); }
[data-reveal].revealed { opacity: 1; transform: none; }
[data-reveal-delay="1"] { transition-delay: 0.15s; }
[data-reveal-delay="2"] { transition-delay: 0.3s; }
[data-reveal-delay="3"] { transition-delay: 0.45s; }
[data-reveal-delay="4"] { transition-delay: 0.6s; }

@media (prefers-reduced-motion: reduce) {
    [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ==========================================================================
   UTILITIES
   ========================================================================== */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

/* ==========================================================================
   MOBILE ACTION BAR (bottom fixed CTA)
   ========================================================================== */
.mobile-action-bar {
    display: none;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: var(--color-dark);
    padding: 12px 16px;
    gap: 10px;
    z-index: 90;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
}
.mobile-action-bar .btn {
    flex: 1;
    padding: 12px 16px;
    font-size: 13px;
}
@media (max-width: 768px) {
    .mobile-action-bar { display: flex; }
    body { padding-bottom: 72px; }
}

/* Menu open state (prevents background scroll) */
body.menu-open { overflow: hidden; }
