/*
Theme Name: Irwin
Theme URI: https://www.lirwinandsonsupply.com
Author: L. Irwin and Son Supply
Author URI: https://www.lirwinandsonsupply.com
Description: Custom theme for L. Irwin and Son Supply — used heavy equipment dealer in Loxley, AL.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: irwin
*/

/* =========================================================
   DESIGN TOKENS
   ========================================================= */
:root {
  --color-primary:    #786453;   /* tan/brown */
  --color-dark:       #2b2b2b;   /* charcoal */
  --color-off-white:  #f5f0eb;   /* warm off-white */
  --color-rust:       #b85c2c;   /* rust orange accent */
  --color-rust-hover: #9a4a22;
  --color-mid:        #5a4a3a;   /* darker brown for hover */
  --color-text:       #1e1e1e;
  --color-muted:      #6b6b6b;
  --color-border:     #d8cfc7;
  --color-card-bg:    #ffffff;
  --color-dark-alt:   #1e1a17;

  --font-heading: 'Oswald', 'Roboto Condensed', Arial Narrow, sans-serif;
  --font-body:    'Open Sans', 'Helvetica Neue', Arial, sans-serif;

  --radius:  4px;
  --shadow:  0 2px 12px rgba(0,0,0,0.12);
  --shadow-lg: 0 6px 30px rgba(0,0,0,0.18);
  --transition: 0.2s ease;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-off-white);
  line-height: 1.65;
}

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

a { color: var(--color-rust); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-rust-hover); }

ul, ol { list-style: none; }

/* =========================================================
   TYPOGRAPHY
   ========================================================= */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
  color: var(--color-dark);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.2rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* =========================================================
   LAYOUT UTILITIES
   ========================================================= */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section { padding: 5rem 0; }
.section--dark { background: var(--color-dark); color: var(--color-off-white); }
.section--dark h2, .section--dark h3 { color: var(--color-off-white); }
.section--primary { background: var(--color-primary); color: #fff; }
.section--primary h2 { color: #fff; }

.section-header { text-align: center; margin-bottom: 3rem; }
.section-header h2 { margin-bottom: 0.5rem; }
.section-header p { color: var(--color-muted); max-width: 600px; margin: 0 auto; }
.section--dark .section-header p { color: #ccc; }

.section-divider {
  display: block;
  width: 60px;
  height: 4px;
  background: var(--color-rust);
  margin: 0.75rem auto 0;
  border-radius: 2px;
}

/* Grid helpers */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

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

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  white-space: nowrap;
}

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

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

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

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

.btn-lg { padding: 1rem 2.25rem; font-size: 1rem; }
.btn-sm { padding: 0.5rem 1.1rem; font-size: 0.8rem; }

/* =========================================================
   TOP BAR
   ========================================================= */
.site-topbar {
  background: var(--color-dark-alt);
  color: #bbb;
  font-size: 0.8rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid #333;
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.topbar-contact a { color: #ccc; margin-right: 1rem; }
.topbar-contact a:hover { color: var(--color-rust); }

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

.sister-banner { background: var(--color-dark-alt); border-bottom: 1px solid rgba(255,255,255,0.06); padding: 0.6rem 0; text-align: center; font-size: 0.82rem; color: #888; }
.sister-banner a { color: var(--color-rust); font-weight: 600; }
.sister-banner a:hover { color: #fff; }

/* =========================================================
   HEADER / NAV
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--color-dark);
  box-shadow: 0 2px 8px rgba(0,0,0,0.35);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  gap: 1.5rem;
}

/* Logo */
.site-logo a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.logo-icon {
  width: 48px;
  height: 48px;
  background: var(--color-rust);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.logo-icon svg { fill: #fff; }

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  border-top: 2px solid var(--color-rust);
  border-bottom: 2px solid var(--color-rust);
  padding: 5px 0;
  gap: 3px;
}
.logo-text .logo-name {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.logo-text .logo-sub {
  font-size: 0.65rem;
  color: #aaa;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-logo-dog {
  display: block;
  height: 40px;
  width: auto;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .site-logo-dog { height: 30px; }
}

/* Phone in header */
.header-phone a {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.03em;
}
.header-phone a:hover { color: var(--color-rust); }

/* Navigation */
.site-nav ul {
  display: flex;
  gap: 0;
  align-items: center;
}

.site-nav ul li > a {
  display: block;
  padding: 0.5rem 1rem;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ccc;
  transition: color var(--transition);
}

.site-nav ul li > a:hover,
.site-nav ul li.current-menu-item > a,
.site-nav ul li.current-page-ancestor > a {
  color: var(--color-rust);
}

.header-cta { flex-shrink: 0; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  transition: transform var(--transition), opacity var(--transition);
}

@media (max-width: 1024px) {
  .header-phone { display: none; }
  .site-nav ul { gap: 0; }
  .site-nav ul li > a { padding: 0.5rem 0.65rem; font-size: 0.78rem; }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--color-dark);
    border-top: 1px solid #444;
    padding: 1rem 0;
    z-index: 999;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; }
  .site-nav ul li > a { padding: 0.65rem 1.5rem; border-bottom: 1px solid #333; }
  .header-cta { display: none; }
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: 580px;
  display: flex;
  align-items: center;
  background: var(--color-dark) center/cover no-repeat;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(27,20,14,0.88) 0%,
    rgba(43,43,43,0.70) 60%,
    rgba(120,100,83,0.40) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
}

.hero-eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-rust);
  background: rgba(184,92,44,0.12);
  border: 1px solid rgba(184,92,44,0.4);
  padding: 0.3rem 0.85rem;
  border-radius: 2px;
  margin-bottom: 1.25rem;
}

.hero-title {
  color: #fff;
  margin-bottom: 1.25rem;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}

.hero-title span { color: var(--color-rust); }

.hero-desc {
  color: #ccc;
  font-size: 1.1rem;
  max-width: 560px;
  margin-bottom: 2rem;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* =========================================================
   SKYJACK DEALER SECTION
   ========================================================= */
.skyjack-section { background: var(--color-off-white); border-top: 1px solid var(--color-border); }

.skyjack-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.skyjack-text h2 { margin-bottom: 1rem; }
.skyjack-text p  { color: #555; margin-bottom: 0.75rem; }
.skyjack-text .hero-eyebrow { margin-bottom: 1rem; }

.skyjack-features {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.skyjack-feature {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.skyjack-feature-icon {
  width: 56px;
  height: 56px;
  background: var(--color-dark);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.skyjack-feature-icon svg { fill: var(--color-rust); }

.skyjack-feature h4 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  color: var(--color-dark);
  margin-bottom: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.skyjack-feature p { font-size: 0.88rem; color: #666; margin: 0; }

.skyjack-image a {
  display: block;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skyjack-image a:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.25);
}

.skyjack-image img {
  width: 100%;
  border-radius: var(--radius);
  display: block;
}

@media (max-width: 860px) {
  .skyjack-inner { grid-template-columns: 1fr; gap: 2.5rem; }
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.category-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 2rem 1.25rem;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  text-decoration: none;
  display: block;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--color-primary);
  color: var(--color-text);
}

.category-icon {
  width: 72px;
  height: 72px;
  background: var(--color-off-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  border: 2px solid var(--color-border);
  transition: background var(--transition), border-color var(--transition);
}

.category-card:hover .category-icon {
  background: rgba(120,100,83,0.1);
  border-color: var(--color-primary);
}

.category-icon svg { fill: var(--color-primary); }
.category-card:hover .category-icon svg { fill: var(--color-rust); }

.category-name {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-dark);
  margin-bottom: 0.35rem;
}

.category-count {
  font-size: 0.78rem;
  color: var(--color-muted);
}

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

/* =========================================================
   EQUIPMENT CARDS / GRID
   ========================================================= */
.equipment-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

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

.equipment-card {
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--transition), transform var(--transition);
}

.equipment-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.equipment-card-thumb {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #e8e0d8;
  position: relative;
}

.equipment-card-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.equipment-card:hover .equipment-card-thumb img {
  transform: scale(1.04);
}

.equipment-card-thumb .no-photo {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ddd6ce;
}

.equipment-card-thumb .no-photo svg {
  fill: #aaa;
  width: 64px; height: 64px;
}

.equipment-card-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 2px;
}

.badge-used-good { background: var(--color-primary); color: #fff; }
.badge-used-fair { background: var(--color-dark); color: #fff; }
.badge-like-new { background: var(--color-rust); color: #fff; }

.equipment-card-body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.equipment-card-category {
  font-size: 0.7rem;
  font-family: var(--font-heading);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 0.35rem;
}

.equipment-card-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-dark);
  margin-bottom: 0.5rem;
  line-height: 1.25;
}

.equipment-card-title a { color: inherit; }
.equipment-card-title a:hover { color: var(--color-rust); }

.equipment-card-meta {
  font-size: 0.82rem;
  color: var(--color-muted);
  margin-bottom: 1rem;
}

.equipment-card-price {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-rust);
  margin-bottom: 1rem;
}

.equipment-card-footer {
  margin-top: auto;
}

.equipment-card-footer .btn { width: 100%; text-align: center; }

/* =========================================================
   PHOTO GALLERY GRID (no links to individual listings)
   ========================================================= */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

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

.gallery-grid-item {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: var(--radius);
  background: #e8e0d8;
  cursor: pointer;
}

.gallery-grid-item[tabindex]:focus-visible {
  outline: 3px solid var(--color-rust);
  outline-offset: 2px;
}

.gallery-grid-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-grid-item:hover img {
  transform: scale(1.04);
}

.gallery-grid-item .no-photo {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ddd6ce;
}

.gallery-grid-item .no-photo svg {
  fill: #aaa;
  width: 64px; height: 64px;
}

.gallery-grid-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 0.6rem 0.85rem;
  background: linear-gradient(to top, rgba(0,0,0,0.72), rgba(0,0,0,0));
  color: #fff;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.gallery-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 1.75rem;
}

.gallery-pagination-btn {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-dark);
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 0.5rem 1rem;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}

.gallery-pagination-btn:hover:not(:disabled) {
  background: var(--color-rust);
  border-color: var(--color-rust);
  color: #fff;
}

.gallery-pagination-btn:disabled {
  opacity: 0.4;
  cursor: default;
}

.gallery-pagination-status {
  font-size: 0.82rem;
  color: var(--color-muted);
}

/* =========================================================
   GALLERY LIGHTBOX (fullscreen, swipeable)
   ========================================================= */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(20,16,12,0.96);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease;
  touch-action: pan-y;
}

.lightbox-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

body.lightbox-lock { overflow: hidden; }

.lightbox-content {
  max-width: 92vw;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.lightbox-img {
  max-width: 92vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 2px;
  user-select: none;
  -webkit-user-drag: none;
}

.lightbox-caption {
  color: #fff;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-align: center;
  min-height: 1.2em;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover { background: rgba(255,255,255,0.2); }

.lightbox-close {
  top: 1.25rem; right: 1.25rem;
  width: 44px; height: 44px;
  border-radius: 50%;
  font-size: 1.6rem;
  line-height: 1;
}

.lightbox-prev,
.lightbox-next {
  top: 50%;
  transform: translateY(-50%);
  width: 52px; height: 52px;
  border-radius: 50%;
  font-size: 2rem;
  line-height: 1;
}

.lightbox-prev { left: 1.25rem; }
.lightbox-next { right: 1.25rem; }

@media (max-width: 640px) {
  .lightbox-prev, .lightbox-next { width: 42px; height: 42px; font-size: 1.5rem; }
  .lightbox-close { top: 0.75rem; right: 0.75rem; }
  .lightbox-prev { left: 0.5rem; }
  .lightbox-next { right: 0.5rem; }
}

/* =========================================================
   TRUST / FEATURES STRIP
   ========================================================= */
.trust-section { background: var(--color-dark); }

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

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

.trust-icon {
  width: 68px; height: 68px;
  background: rgba(255,255,255,0.06);
  border: 2px solid rgba(184,92,44,0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}

.trust-icon svg { fill: var(--color-rust); }

.trust-item h3 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: #fff;
  margin-bottom: 0.6rem;
  letter-spacing: 0.05em;
}

.trust-item p { color: #aaa; font-size: 0.9rem; }

@media (max-width: 768px) {
  .trust-grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* =========================================================
   LOCATION STRIP
   ========================================================= */
.location-strip {
  background: #fff;
  color: var(--color-text);
  padding: 3.5rem 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.location-strip h2 { color: var(--color-dark); margin-bottom: 0.75rem; }
.location-strip p { color: #555; margin-bottom: 0.75rem; }

.location-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  text-align: left;
}

.location-map { border-radius: var(--radius); overflow: hidden; box-shadow: 0 4px 20px rgba(0,0,0,0.3); }

@media (max-width: 768px) {
  .location-inner { grid-template-columns: 1fr; }
}

/* =========================================================
   SINGLE EQUIPMENT PAGE
   ========================================================= */
.equipment-single { padding: 3rem 0 5rem; }

.equipment-single-inner {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 3rem;
  align-items: start;
}

.equipment-gallery { position: sticky; top: 90px; }

.gallery-main {
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: var(--radius);
  background: #e8e0d8;
  margin-bottom: 0.75rem;
}

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

.gallery-thumbs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.gallery-thumb {
  width: 80px; height: 60px;
  overflow: hidden;
  border-radius: 2px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color var(--transition);
}

.gallery-thumb.active,
.gallery-thumb:hover { border-color: var(--color-rust); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

.equipment-info { }

.equipment-breadcrumb {
  font-size: 0.8rem;
  color: var(--color-muted);
  margin-bottom: 0.75rem;
}
.equipment-breadcrumb a { color: var(--color-muted); }
.equipment-breadcrumb a:hover { color: var(--color-rust); }
.equipment-breadcrumb span { color: var(--color-dark); }

.equipment-category-tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary);
  background: rgba(120,100,83,0.1);
  border: 1px solid rgba(120,100,83,0.3);
  padding: 0.2rem 0.7rem;
  border-radius: 2px;
  margin-bottom: 0.75rem;
}

.equipment-title {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  margin-bottom: 0.5rem;
}

.equipment-price {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-rust);
  margin-bottom: 1.5rem;
}

.equipment-specs {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.equipment-specs h4 {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--color-muted);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}

.spec-row {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.9rem;
}
.spec-row:last-child { border-bottom: none; }
.spec-label { color: var(--color-muted); }
.spec-value { font-weight: 600; color: var(--color-dark); }

.equipment-description { margin-bottom: 2rem; }
.equipment-description h4 {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: var(--color-muted);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 0.5rem;
}
.equipment-description p { font-size: 0.95rem; }

/* Inquiry form box */
.inquiry-box {
  background: var(--color-dark);
  border-radius: var(--radius);
  padding: 2rem;
  color: #fff;
}

.inquiry-box h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 0.5rem;
}

.inquiry-box p { color: #bbb; font-size: 0.87rem; margin-bottom: 1.25rem; }

.inquiry-form-placeholder {
  background: rgba(255,255,255,0.05);
  border: 1px dashed rgba(255,255,255,0.15);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  color: #888;
  font-size: 0.85rem;
}

@media (max-width: 900px) {
  .equipment-single-inner { grid-template-columns: 1fr; }
  .equipment-gallery { position: static; }
}

/* =========================================================
   ARCHIVE / INVENTORY PAGE
   ========================================================= */
.archive-header {
  background: var(--color-dark);
  padding: 3.5rem 0 2.5rem;
  color: #fff;
}
.archive-header h1 { color: #fff; margin-bottom: 0.5rem; }
.archive-header p { color: #aaa; }

.filter-bar {
  background: var(--color-off-white);
  border-bottom: 1px solid var(--color-border);
  padding: 1rem 0;
  position: sticky;
  top: 72px;
  z-index: 100;
}

.filter-bar-inner {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.filter-label {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-right: 0.5rem;
}

.filter-btn {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border: 2px solid var(--color-border);
  border-radius: 2px;
  background: #fff;
  color: var(--color-dark);
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
  text-decoration: none;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--color-rust);
  border-color: var(--color-rust);
  color: #fff;
}

.inventory-section { padding: 3rem 0 5rem; }

.no-listings {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--color-muted);
}

/* =========================================================
   PAGE TEMPLATES (About, Contact, Blog)
   ========================================================= */
.page-hero {
  background: var(--color-dark);
  padding: 4rem 0 3rem;
  color: #fff;
}
.page-hero h1 { color: #fff; margin-bottom: 0.5rem; }
.page-hero p { color: #aaa; }
.page-hero .breadcrumb { font-size: 0.8rem; color: #888; margin-bottom: 0.75rem; }
.page-hero .breadcrumb a { color: #888; }
.page-hero .breadcrumb a:hover { color: var(--color-rust); }

.page-content-section { padding: 4rem 0 6rem; }

.page-two-col {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4rem;
}

@media (max-width: 768px) {
  .page-two-col { grid-template-columns: 1fr; gap: 2.5rem; }
}

/* Content styles inside page-content */
.content-body h2 { margin-bottom: 1rem; margin-top: 2rem; font-size: 1.5rem; }
.content-body h2:first-child { margin-top: 0; }
.content-body h3 { margin-bottom: 0.75rem; margin-top: 1.5rem; font-size: 1.15rem; }
.content-body p { margin-bottom: 1rem; color: #444; }
.content-body ul, .content-body ol {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
  color: #444;
}
.content-body ul li, .content-body ol li { margin-bottom: 0.4rem; }

/* Sidebar box */
.sidebar-box {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.sidebar-box h4 {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--color-primary);
}
.sidebar-box p, .sidebar-box ul { font-size: 0.9rem; color: #555; }
.sidebar-box ul { list-style: disc; padding-left: 1.2rem; }
.sidebar-box ul li { margin-bottom: 0.4rem; }

/* Contact form area */
.contact-form-area { margin-top: 2rem; }
.contact-form-placeholder {
  background: var(--color-off-white);
  border: 2px dashed var(--color-border);
  border-radius: var(--radius);
  padding: 3rem 2rem;
  text-align: center;
  color: var(--color-muted);
}
.contact-form-placeholder p { font-size: 0.85rem; }

/* Map placeholder */
.map-placeholder {
  background: #e0d8d0;
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 1.5rem;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-muted);
  font-size: 0.85rem;
  text-align: center;
  border: 1px solid var(--color-border);
}

.map-placeholder iframe { width: 100%; height: 280px; border: none; display: block; }

/* =========================================================
   BLOG
   ========================================================= */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

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

.post-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
}

.post-card-thumb {
  aspect-ratio: 16/9;
  background: #e8e0d8;
  overflow: hidden;
}
.post-card-thumb img { width: 100%; height: 100%; object-fit: cover; }

.post-card-body { padding: 1.5rem; }
.post-card-meta { font-size: 0.78rem; color: var(--color-muted); margin-bottom: 0.5rem; }
.post-card-title { font-size: 1.1rem; margin-bottom: 0.5rem; }
.post-card-title a { color: var(--color-dark); }
.post-card-title a:hover { color: var(--color-rust); }
.post-card-excerpt { font-size: 0.9rem; color: #555; }

/* Single post */
.single-post { padding: 4rem 0 6rem; }
.single-post-inner { max-width: 760px; margin: 0 auto; }
.post-meta { font-size: 0.85rem; color: var(--color-muted); margin-bottom: 0.5rem; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background: var(--color-dark-alt);
  color: #bbb;
  padding-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid #333;
}

.footer-brand .logo-text .logo-name { color: #fff; }
.footer-brand .logo-text .logo-sub { color: #888; }
.footer-brand .logo-a { display: flex; gap: 0.75rem; align-items: center; margin-bottom: 1.25rem; text-decoration: none; }

.footer-about {
  font-size: 0.88rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
  color: #999;
}

.footer-social { display: flex; gap: 0.5rem; }
.footer-social a {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.07);
  border: 1px solid #444;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #bbb;
  font-size: 0.8rem;
  transition: background var(--transition), color var(--transition);
}
.footer-social a:hover { background: var(--color-rust); border-color: var(--color-rust); color: #fff; }

.footer-col h5 {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--color-rust);
  display: inline-block;
}

.footer-col ul { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col ul li a {
  font-size: 0.87rem;
  color: #999;
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--color-rust); }

.footer-contact-line {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-bottom: 0.75rem;
  font-size: 0.87rem;
  color: #999;
}

.footer-contact-line svg { fill: var(--color-rust); flex-shrink: 0; margin-top: 2px; }
.footer-contact-line a { color: #ccc; }
.footer-contact-line a:hover { color: var(--color-rust); }

.footer-bottom {
  padding: 1.25rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: #666;
}

.footer-bottom a { color: #888; }
.footer-bottom a:hover { color: var(--color-rust); }

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
}

/* =========================================================
   PAGINATION
   ========================================================= */
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.35rem;
  margin-top: 3rem;
}

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  border: 2px solid var(--color-border);
  border-radius: var(--radius);
  color: var(--color-dark);
  background: #fff;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
  background: var(--color-rust);
  border-color: var(--color-rust);
  color: #fff;
}

/* =========================================================
   NOTICES & MISC
   ========================================================= */
.not-found { padding: 6rem 0; text-align: center; }
.not-found h1 { font-size: 6rem; color: var(--color-border); margin-bottom: 0; line-height: 1; }
.not-found h2 { margin-bottom: 1rem; }
.not-found p { color: var(--color-muted); margin-bottom: 2rem; }

.scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px; height: 44px;
  background: var(--color-rust);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
  transition: background var(--transition);
  box-shadow: var(--shadow);
}
.scroll-top.visible { display: flex; }
.scroll-top:hover { background: var(--color-rust-hover); }
