/* ==========================================================
   LB Industrial — Wireframe Stylesheet (grayscale, no brand)
   ========================================================== */

* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --black: #1a1a1a;
  --dark: #333;
  --mid: #666;
  --light: #999;
  --pale: #ccc;
  --bg: #f5f5f5;
  --white: #fff;
  /* LB brand red, sourced from the LB Industrial logo SVG */
  --lb-red: #c52328;
  --lb-red-dark: #a01d22;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--black);
  line-height: 1.6;
  background: var(--white);
}

a { color: inherit; }

/* Wireframe banner */
.wf-banner {
  background: var(--black);
  color: var(--white);
  text-align: center;
  padding: 6px;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* ===== Header ===== */
.site-header {
  border-bottom: 4px solid var(--lb-red);
  padding: 6px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  background: var(--white);
  z-index: 100;
  transition: transform 0.3s ease;
}

/* Slide the header offscreen when the user scrolls down to the footer.
   Re-engaged by JS in script.js via IntersectionObserver. */
.site-header.header-hidden {
  transform: translateY(-100%);
}

.logo {
  width: 190px;
  height: 64px;
  background: var(--bg);
  border: 1px dashed var(--light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: var(--mid);
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none;
}

.logo:has(img) {
  background: none;
  border: none;
}

.logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.nav {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav a {
  color: var(--dark);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
}

.nav a:hover, .nav a.active {
  border-bottom-color: var(--black);
}

.cta-btn {
  background: var(--lb-red);
  color: var(--white);
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.cta-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.cta-btn:hover { background: var(--lb-red-dark); }

/* ===== Hero ===== */
.hero {
  padding: 100px 32px;
  text-align: center;
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse at center,
      rgba(245, 245, 245, 0.94) 0%,
      rgba(245, 245, 245, 0.82) 45%,
      rgba(245, 245, 245, 0.45) 80%,
      rgba(245, 245, 245, 0.20) 100%),
    image-set(
      url('images/shared/page-header-bg.webp') type('image/webp'),
      url('images/shared/page-header-bg.jpg') type('image/jpeg'));
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-bottom: 1px solid var(--pale);
}

.hero h1 {
  font-size: 56px;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.1;
  letter-spacing: -1px;
}

.hero p {
  font-size: 18px;
  color: var(--mid);
  max-width: 640px;
  margin: 0 auto 24px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Page hero (smaller, for inner pages) */
.page-hero {
  padding: 56px 32px;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-color: var(--bg);
  background-image:
    linear-gradient(90deg,
      rgba(245, 245, 245, 0.96) 0%,
      rgba(245, 245, 245, 0.88) 35%,
      rgba(245, 245, 245, 0.55) 65%,
      rgba(245, 245, 245, 0.25) 100%),
    image-set(
      url('images/shared/page-header-bg.webp') type('image/webp'),
      url('images/shared/page-header-bg.jpg') type('image/jpeg'));
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  border-bottom: 1px solid var(--pale);
}

.page-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.breadcrumb {
  font-size: 12px;
  color: var(--mid);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 8px;
}

.page-hero h1 {
  font-size: 40px;
  margin-bottom: 8px;
}

.page-hero p {
  color: var(--mid);
  max-width: 600px;
}

/* Hero load animation: each line fades and lifts in, staggered so
   the eye walks down through the block. Shared between the home hero
   (.hero) and the interior page header (.page-hero). */
@keyframes hero-rise {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.page-hero .breadcrumb,
.page-hero h1,
.page-hero p,
.hero > h1,
.hero > p,
.hero > .hero-actions {
  animation: hero-rise 0.6s ease-out both;
}

.page-hero .breadcrumb { animation-delay: 0ms; }
.page-hero h1          { animation-delay: 120ms; }
.page-hero p           { animation-delay: 240ms; }

.hero > h1            { animation-delay: 0ms; }
.hero > p             { animation-delay: 120ms; }
.hero > .hero-actions { animation-delay: 240ms; }

@media (prefers-reduced-motion: reduce) {
  .page-hero .breadcrumb,
  .page-hero h1,
  .page-hero p,
  .hero > h1,
  .hero > p,
  .hero > .hero-actions {
    animation: none;
  }
}

/* ===== Sections ===== */
section {
  padding: 64px 32px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-size: 28px;
  margin-bottom: 8px;
}

.section-sub {
  color: var(--mid);
  margin-bottom: 32px;
  font-size: 14px;
}

/* ===== Home: category cards ===== */
.category-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.category-card {
  border: 1px solid var(--pale);
  text-decoration: none;
  color: inherit;
  display: block;
  transition: border-color 0.2s;
}

.category-card:hover { border-color: var(--black); }

.category-img {
  height: 320px;
  background: var(--bg);
  border-bottom: 1px dashed var(--light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mid);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  overflow: hidden;
}

.category-img:has(img) {
  background: none;
  border-bottom: none;
  padding: 0;
}

.category-img picture,
.category-img img {
  width: 100%;
  height: 100%;
  display: block;
}

.category-img img {
  object-fit: cover;
  transition: transform 0.5s ease;
}

/* Subtle zoom-in on hover; .category-img has overflow:hidden so the
   scaled image stays inside its container. */
.category-card:hover .category-img img {
  transform: scale(1.05);
}

.category-body { padding: 28px; }

.category-body h3 {
  font-size: 24px;
  margin-bottom: 8px;
}

.category-body p {
  color: var(--mid);
  font-size: 14px;
  margin-bottom: 16px;
}

.category-location {
  color: var(--dark) !important;
  font-size: 13px !important;
  line-height: 1.5;
  padding: 12px 0;
  border-top: 1px solid var(--pale);
  border-bottom: 1px solid var(--pale);
  margin-bottom: 16px !important;
}

.category-location strong {
  display: block;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--lb-red);
  margin-bottom: 2px;
}

.category-arrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  border-bottom: 1px solid var(--black);
  padding-bottom: 2px;
  font-weight: 700;
}

/* ===== Tabs ===== */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 40px;
  /* Stick the tab strip just below the sticky site header so it stays
     visible while the user reads / swipes through tab content below. */
  position: sticky;
  top: 76px;
  background: var(--white);
  z-index: 50;
  padding-top: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--pale);
}

.tab {
  padding: 12px 32px;
  background: var(--white);
  border: 1px solid var(--pale);
  cursor: pointer;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 500;
  color: var(--mid);
  font-family: inherit;
  font-weight: 500;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
  white-space: nowrap;
}

.tab:hover {
  border-color: var(--mid);
  color: var(--black);
}

.tab.active {
  background: var(--black);
  border-color: var(--black);
  color: var(--white);
}

.tab.active:hover {
  border-color: var(--black);
  color: var(--white);
}

/* Mobile: horizontal-swipe single row instead of wrap */
@media (max-width: 700px) {
  .tabs {
    top: 64px; /* shorter mobile header */
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    /* Bleed to viewport edges so swipe feels right */
    margin-left: -16px;
    margin-right: -16px;
    padding: 8px 16px 12px;
    /* mask-image breaks position:sticky in some browsers, so omit on mobile */
  }

  .tabs::-webkit-scrollbar { height: 0; }

  .tab {
    flex-shrink: 0;
    scroll-snap-align: start;
    padding: 12px 16px;
    font-size: 11px;
  }
}

/* ===== Service title bar with prev/next arrows ===== */
.service-titlebar {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}

/* Steelwork tabs are title-only (no service-info column).
   Cap the gallery + titlebar width so portrait heroes don't blow up
   to the full section width on desktop. */
.tab-content[data-content-group="steelwork"] > .service-titlebar,
.tab-content[data-content-group="steelwork"] > .service-description,
.tab-content[data-content-group="steelwork"] > .service-img {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

/* Service description sitting between the titlebar and the gallery */
.service-description {
  text-align: center;
  font-size: 15px;
  line-height: 1.55;
  color: var(--dark);
  margin: 0 auto 28px;
}

/* CTA centred below each steelwork gallery
   (only applies to CAD tab now, since other tabs moved their CTA into
   the thumb grid as a filler cell.) */
.tab-content[data-content-group="steelwork"] > .service-cta {
  max-width: 760px;
  margin: 32px auto 0;
  display: flex;
  justify-content: center;
}

/* CTA living inside the thumb grid — sits in the otherwise-empty cell
   left over from the odd thumb counts (3, 5, 7). On desktop it takes a
   thumb-sized 3:2 button slot; on mobile it spans the whole row. */
.service-thumbs .service-cta {
  aspect-ratio: 3 / 2;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
}
.service-thumbs .service-cta .cta-btn {
  /* Float at natural size in the middle of the empty cell */
  padding: 14px 24px;
  font-size: 13px;
  text-align: center;
  white-space: nowrap;
}
@media (max-width: 767px) {
  .service-thumbs .service-cta {
    grid-column: 1 / -1;
    aspect-ratio: auto;
    margin-top: 8px;
  }
  .service-thumbs .service-cta .cta-btn {
    padding: 17px 28px;
    font-size: 13px;
  }
}

/* Desktop: arrange the steelwork gallery as 2 columns —
   hero on the left, thumbnail grid on the right. Mobile keeps the
   default stacked layout from .service-gallery. */
@media (min-width: 768px) {
  .tab-content[data-content-group="steelwork"] > .service-titlebar,
  .tab-content[data-content-group="steelwork"] > .service-description,
  .tab-content[data-content-group="steelwork"] > .service-img {
    max-width: none; /* align with the full-width tab strip */
  }
  .tab-content[data-content-group="steelwork"] .service-gallery {
    display: grid;
    grid-template-columns: 1.7fr 1fr;
    gap: 16px;
    align-items: start;
  }
  /* Inside the narrower right column, stack thumbs in two cols */
  .tab-content[data-content-group="steelwork"] .service-thumbs {
    grid-template-columns: repeat(2, 1fr);
  }
}

.service-titlebar h2 {
  flex: 1;
  margin: 0;
  font-size: 28px;
  line-height: 1.25;
  text-align: center;
}

.title-nav-btn {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  background: var(--white);
  border: 1px solid var(--pale);
  cursor: pointer;
  font-family: inherit;
  font-size: 18px;
  line-height: 1;
  color: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s, background-color 0.15s, color 0.15s;
}

.title-nav-btn:hover:not(:disabled) {
  background: var(--black);
  border-color: var(--black);
  color: var(--white);
}

.title-nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

@media (max-width: 600px) {
  .service-titlebar {
    gap: 10px;
    margin-bottom: 20px;
  }
  .service-titlebar h2 {
    font-size: 18px;
  }
  .title-nav-btn {
    width: 38px;
    height: 38px;
    font-size: 16px;
  }
}

.tab-content { display: none; }
.tab-content.active { display: block; }

/* Primary tabs (forklifts: Sales|Services, Electric|Diesel) */
.primary-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 32px;
  border: 1px solid var(--pale);
  width: fit-content;
}

.primary-tab {
  padding: 12px 32px;
  background: var(--white);
  border: none;
  cursor: pointer;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-family: inherit;
  color: var(--mid);
  font-weight: 500;
}

.primary-tab.active {
  background: var(--black);
  color: var(--white);
}

/* ===== Service detail panel ===== */
.service-panel {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: start;
}

.service-img {
  height: 420px;
  background: var(--bg);
  border: 1px dashed var(--light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mid);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* When the slot has real media, drop the placeholder styling */
.service-img:has(picture),
.service-img:has(.service-gallery) {
  height: auto;
  background: none;
  border: none;
  display: block;
  padding: 0;
}

/* ===== Service gallery (hero + thumbnail strip) ===== */
.service-gallery {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Hero / single-photo container: adapts to the image's natural aspect.
   The img's intrinsic width/height attributes reserve layout space (no CLS). */
.service-hero,
.service-img > picture {
  display: block;
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--pale);
}

.service-hero > picture {
  display: block;
  width: 100%;
}

.service-img > picture img,
.service-hero img {
  width: 100%;
  height: auto;
  display: block;
}

.service-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 8px;
}

.service-thumb {
  border: 2px solid var(--pale);
  background: none;
  padding: 0;
  cursor: pointer;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  transition: border-color 0.15s, opacity 0.15s;
  opacity: 0.7;
  font: inherit;
}

.service-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.service-thumb:hover {
  opacity: 1;
  border-color: var(--mid);
}

.service-thumb.active {
  border-color: var(--black);
  opacity: 1;
}

/* Video thumbnail — small play icon overlay so users know it's a video */
.service-thumb-video {
  position: relative;
}
.service-thumb-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.65);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  padding-left: 2px; /* visually centre the right-pointing triangle */
  pointer-events: none;
}

/* Forklift-services heroes stay a 3:2 box even when content swaps between
   picture and video — keeps the gallery layout stable on every click. */
.tab-content[data-content-group="forklift-services"] .service-hero {
  aspect-ratio: 3 / 2;
}
.service-hero video,
.service-img > video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.tab-content[data-content-group="forklift-services"] .service-hero img,
.tab-content[data-content-group="forklift-services"] .service-hero picture,
.tab-content[data-content-group="forklift-services"] .service-hero video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* ===== Repair grid (8 sub-services as cards) ===== */
.repair-intro {
  max-width: 720px;
  margin-bottom: 32px;
}

.repair-intro h2 {
  font-size: 28px;
  margin-bottom: 12px;
}

.repair-intro p {
  color: var(--dark);
  font-size: 15px;
}

.repair-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.repair-item {
  border: 1px solid var(--pale);
  background: var(--white);
  display: flex;
  flex-direction: column;
}

.repair-item picture,
.repair-item img {
  width: 100%;
  display: block;
}

.repair-item picture {
  aspect-ratio: 3 / 2;
  overflow: hidden;
}

.repair-item img {
  height: 100%;
  object-fit: cover;
}

.repair-item h4 {
  font-size: 14px;
  margin: 14px 14px 4px;
  color: var(--black);
  font-weight: 600;
}

.repair-item p {
  font-size: 12px;
  color: var(--mid);
  margin: 0 14px 14px;
  line-height: 1.45;
}

@media (max-width: 900px) {
  .repair-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .repair-grid { grid-template-columns: 1fr; }
}

.service-info h2 {
  font-size: 28px;
  margin-bottom: 16px;
}

.service-info > p {
  margin-bottom: 16px;
  color: var(--dark);
  font-size: 15px;
}

.service-info h4 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--mid);
  margin-top: 24px;
  margin-bottom: 12px;
}

.service-info ul {
  list-style: none;
}

.service-info li {
  padding: 10px 0;
  border-bottom: 1px solid var(--bg);
  color: var(--dark);
  font-size: 14px;
}

.service-info li::before {
  content: "—";
  margin-right: 12px;
  color: var(--light);
}

.inline-actions {
  margin-top: 24px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ===== Product grid (legacy — superseded by .model-grid) ===== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.product-card {
  border: 1px solid var(--pale);
  background: var(--white);
}

.product-img {
  height: 240px;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mid);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 1px dashed var(--light);
}

.product-body { padding: 20px; }

.product-body h3 {
  font-size: 17px;
  margin-bottom: 6px;
}

.product-spec {
  font-size: 12px;
  color: var(--mid);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.product-link {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--black);
  text-decoration: none;
  border-bottom: 1px solid var(--black);
  padding-bottom: 2px;
}

/* ===== Floating contact ===== */
.float-contact {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 50;
}

.float-btn {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: #25D366;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  transition: background 0.2s ease, transform 0.2s ease;
}

.float-btn svg {
  width: 32px;
  height: 32px;
  display: block;
}

.float-btn:hover { background: #1ebe5d; transform: translateY(-2px); }

/* Return-to-top button (injected by script.js, sits above the WhatsApp
   button). Hidden by default; .visible is added once scrollY > 300. */
.float-btn-top {
  background: var(--black);
  border: none;
  padding: 0;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: background 0.2s ease, transform 0.2s ease,
              opacity 0.3s ease, visibility 0.3s ease;
}

.float-btn-top.visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.float-btn-top:hover {
  background: var(--dark);
  transform: translateY(-2px);
}

.float-btn-top svg {
  width: 26px;
  height: 26px;
}

/* ===== Footer ===== */
.site-footer {
  background: var(--black);
  color: var(--white);
  padding: 56px 32px 24px;
  margin-top: 80px;
}

.footer-grid {
  display: grid;
  /* 5 columns: brand 2fr, two link cols, locations 1.5fr (wider for addresses),
     contact 1fr */
  grid-template-columns: 2fr 1fr 1fr 1.5fr 1fr;
  column-gap: 40px;
  row-gap: 0;
  max-width: 1200px;
  margin: 0 auto;
  padding-bottom: 32px;
  border-bottom: 1px solid #333;
}

/* Red horizontal divider sitting between the column titles (row 1)
   and the column contents (row 3). Spans the full footer-grid width
   to match the grey copyright separator just below. */
.footer-divider {
  grid-column: 1 / -1;
  height: 1px;
  background: var(--lb-red);
  border: none;
  margin: 4px 0 20px 0;
}

/* The brand title h4 is now an image wrapper — strip h4 text styling
   so the logo sits cleanly without extra spacing. Bottom padding
   matches the descender space of the text-based h4 titles so the
   logo doesn't appear to touch the red divider. */
.footer-brand-title {
  letter-spacing: normal;
  text-transform: none;
  line-height: 0;
  margin: 0;
  padding-bottom: 4px;
}

.footer-brand-title img {
  display: block;
  max-width: 100%;
  height: auto;
}

.footer-locations p {
  /* Multi-line address blocks need slight inner line-height boost */
  line-height: 1.5;
  margin-bottom: 12px;
}

.footer-locations p strong {
  color: var(--white);
  font-weight: 600;
}

/* Footer collapses to a single column on mobile via the generic
   max-width:900px rule lower in this stylesheet — no extra media
   queries needed here. */

.footer-grid h4 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin: 0;
  color: var(--white);
  align-self: end;
}

/* The "LB INDUSTRIAL TECHNOLOGY PTE LTD" heading uses LB red instead of white */
.footer-brand-title {
  color: var(--lb-red);
}

.footer-grid a, .footer-grid p {
  color: #ccc;
  text-decoration: none;
  font-size: 13px;
  display: block;
  padding: 4px 0;
  line-height: 1.5;
}

.footer-grid a:hover { color: var(--white); }

.footer-brand p {
  font-size: 13px;
  color: #999;
}

.copyright {
  text-align: center;
  font-size: 11px;
  color: #666;
  padding-top: 24px;
  letter-spacing: 1px;
}

/* ===== About: stats / capability strip ===== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
  padding: 48px 0;
  border-top: 1px solid var(--pale);
  border-bottom: 1px solid var(--pale);
}

.stat-num {
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--mid);
}

/* ===== Contact page ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 48px;
  align-items: start;
}

.form-row { margin-bottom: 16px; }

.form-row label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--mid);
  margin-bottom: 6px;
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--pale);
  font-family: inherit;
  font-size: 14px;
  background: var(--white);
}

.form-row textarea {
  min-height: 140px;
  resize: vertical;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.contact-info {
  background: var(--bg);
  padding: 28px;
  border: 1px solid var(--pale);
}

.contact-info h3 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 16px;
  color: var(--mid);
}

.contact-info .info-item {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--pale);
}

.contact-info .info-item:last-of-type { border-bottom: none; }

.contact-info .info-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--mid);
  margin-bottom: 4px;
}

.contact-info .info-value {
  font-size: 16px;
  color: var(--black);
  font-weight: 500;
}

.whatsapp-btn {
  display: block;
  background: var(--black);
  color: var(--white);
  padding: 14px;
  text-decoration: none;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  text-align: center;
  margin-top: 12px;
}

/* Generic */
.btn-secondary {
  display: inline-block;
  padding: 12px 24px;
  border: 1px solid var(--black);
  color: var(--black);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  background: var(--white);
}

/* ===== OEM brand strip ===== */
.brand-strip {
  background: var(--bg);
  padding: 40px 32px;
  text-align: center;
  border-top: 1px solid var(--pale);
  border-bottom: 1px solid var(--pale);
}

.brand-strip-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.brand-strip-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--mid);
  margin-bottom: 24px;
}

.brand-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  align-items: center;
  max-width: 564px;
  margin: 0 auto;
}

.brand-logo {
  width: 120px;
  height: 56px;
  background: var(--white);
  border: 1px dashed var(--light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: var(--mid);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
}

.brand-logo:has(img) {
  background: none;
  border: none;
}

.brand-logo img {
  max-width: 80%;
  max-height: 70%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.65;
  transition: filter 0.2s ease, opacity 0.2s ease;
}

.brand-logo img[src*="mitsubishi"] { max-width: 90%; max-height: 95%; }
.brand-logo img[src*="hyster"]     { max-width: 95%; max-height: 90%; }
.brand-logo img[src*="goodsense"]  { max-width: 95%; max-height: 90%; }

.brand-logo:hover img {
  filter: grayscale(0);
  opacity: 1;
}

/* ===== Project showcase ===== */
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.project-card {
  display: block;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--pale);
  background: var(--white);
  transition: border-color 0.2s;
}

.project-card:hover { border-color: var(--black); }

.project-img {
  height: 220px;
  background: var(--bg);
  border-bottom: 1px dashed var(--light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mid);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align: center;
  padding: 16px;
}

.project-body { padding: 20px; }

.project-tag {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--mid);
  margin-bottom: 6px;
}

.project-card h3 {
  font-size: 17px;
  margin-bottom: 6px;
}

.project-meta {
  font-size: 12px;
  color: var(--mid);
}

/* ===== Model card grid (forklifts) ===== */
.model-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ===== Forklift sales filter ===== */
.model-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 32px;
  align-items: center;
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.filter-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--mid);
  margin-right: 4px;
}

.filter-pill {
  padding: 8px 14px;
  background: var(--white);
  border: 1px solid var(--pale);
  cursor: pointer;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--mid);
  font-family: inherit;
  font-weight: 500;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}

.filter-pill:hover {
  border-color: var(--mid);
  color: var(--black);
}

.filter-pill.active {
  background: var(--black);
  border-color: var(--black);
  color: var(--white);
}

@media (max-width: 600px) {
  .model-filter {
    gap: 12px;
  }
  .filter-group {
    width: 100%;
  }
}

.model-card {
  display: flex;
  flex-direction: column;
  text-align: left;
  width: 100%;
  border: 1px solid var(--pale);
  background: var(--white);
  font-family: inherit;
  padding: 0;
  transition: border-color 0.2s;
}

.model-card:hover {
  border-color: var(--light);
}

.model-img {
  height: 200px;
  background: var(--bg);
  border-bottom: 1px dashed var(--light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mid);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  overflow: hidden;
}

.model-img:has(img),
.model-img:has(video) {
  background: none;
  border-bottom: none;
  padding: 0;
  height: auto;
  aspect-ratio: 3 / 2;
}

.model-img picture,
.model-img img,
.model-img video {
  width: 100%;
  height: 100%;
  display: block;
}

.model-img img {
  object-fit: cover;
}

/* Video fills the 3:2 frame edge-to-edge — sides may crop slightly if the
   source is wider than 3:2, but no letterbox bars. */
.model-img video {
  object-fit: cover;
}

.model-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.model-body h3 {
  font-size: 17px;
  margin-bottom: 14px;
  color: var(--black);
  line-height: 1.25;
}

.model-subtitle {
  display: block;
  font-size: 13px;
  color: var(--mid);
  font-style: italic;
  min-height: 1.4em;
  margin-bottom: 4px;
  line-height: 1.4;
  text-align: center;
}

.model-specs {
  list-style: none;
  margin: 0;
  padding: 0;
  /* Flex column so the highlight cluster can be pushed to the bottom */
  display: flex;
  flex-direction: column;
  flex: 1;
}

.model-specs > li {
  font-size: 12px;
  color: var(--dark);
  padding: 6px 0;
  border-bottom: 1px solid var(--bg);
  line-height: 1.4;
}

.model-specs > li::before {
  content: "—";
  margin-right: 8px;
  color: var(--light);
}

.model-specs > li:last-child {
  border-bottom: none;
}

.model-specs > .model-spec-highlight {
  font-weight: 600;
  color: var(--black);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.5px;
  border-bottom: none;
  padding: 4px 0;
}

/* The first highlight in the cluster (the one immediately following a regular
   spec li). margin-top:auto pushes it — and all following highlights — to the
   bottom of the model-specs flex column, so the highlight cluster aligns
   above the action buttons across all cards regardless of spec count. */
.model-specs > li:not(.model-spec-highlight) + .model-spec-highlight {
  margin-top: auto;
  padding-top: 16px;
}

.model-specs > .model-spec-highlight::before {
  content: "✓";
  color: #1f8a3a;
  margin-right: 8px;
  font-weight: 700;
}

/* ===== Tooltip on safety-package highlight ===== */
.model-specs > .has-tooltip {
  position: relative;
}

.model-specs .tooltip-trigger {
  border-bottom: 1px solid var(--mid);
  cursor: help;
}

.model-specs .tooltip-content {
  display: none;
  position: absolute;
  top: calc(100% - 1px);
  left: 0;
  right: 0;
  z-index: 20;
  background: var(--white);
  border: 1px solid var(--light);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  padding: 8px 12px;
  list-style: none;
  margin: 0;
}

.model-specs > .has-tooltip:hover .tooltip-content,
.model-specs > .has-tooltip:focus-within .tooltip-content {
  display: block;
}

.model-specs .tooltip-content li {
  font-size: 10px;
  font-weight: normal;
  text-transform: none;
  letter-spacing: 0;
  color: var(--dark);
  padding: 3px 0;
  border-bottom: 1px solid var(--bg);
  line-height: 1.4;
}

.model-specs .tooltip-content li:last-child {
  border-bottom: none;
}

.model-specs .tooltip-content li::before {
  content: "—";
  margin-right: 6px;
  color: var(--light);
}

/* ===== Card actions row ===== */
.model-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
  padding-top: 8px;
}

.model-actions .cta-btn,
.model-actions .btn-secondary {
  flex: 1;
  text-align: center;
  font-size: 11px;
  padding: 10px 8px;
}

/* Used by the mobile drawer to lock body scroll while open. */
body.modal-open { overflow: hidden; }

/* ===== FAQ list (homepage) ===== */
.faq-list {
  max-width: 800px;
  border-top: 1px solid var(--pale);
}

.faq-item {
  border-bottom: 1px solid var(--pale);
}

.faq-item summary {
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  color: var(--black);
  padding: 18px 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

/* Hide native disclosure marker (Safari/Chrome differ) */
.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  font-size: 22px;
  color: var(--mid);
  font-weight: 300;
  flex-shrink: 0;
  transition: transform 0.15s;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  color: var(--mid);
  font-size: 14px;
  line-height: 1.65;
  padding: 0 0 20px 0;
  max-width: 720px;
}

/* ===== Mobile nav: hamburger toggle + slide-in drawer ===== */
.menu-toggle {
  display: none;
  background: var(--white);
  border: 1px solid var(--pale);
  padding: 8px 14px;
  font-size: 20px;
  cursor: pointer;
  font-family: inherit;
  color: var(--black);
  line-height: 1;
  min-width: 44px;
  min-height: 44px;
}

.menu-toggle:hover { background: var(--bg); }

.mobile-drawer {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 150;
}

.mobile-drawer.open { display: block; }

.mobile-drawer-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
}

.mobile-drawer-content {
  position: absolute;
  top: 0;
  right: 0;
  width: min(82vw, 320px);
  height: 100vh;
  background: var(--white);
  padding: 64px 24px 24px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.mobile-drawer-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--pale);
  background: var(--white);
  font-size: 22px;
  cursor: pointer;
  font-family: inherit;
  line-height: 1;
}

.mobile-drawer-logo {
  display: inline-flex;
  width: 130px;
  height: 44px;
  background: var(--bg);
  border: 1px dashed var(--light);
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: var(--mid);
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none;
  margin-bottom: 28px;
}

/* When the drawer logo has a real img, drop the placeholder box styling
   and let the image set its own size */
.mobile-drawer-logo:has(img) {
  width: auto;
  height: auto;
  background: none;
  border: none;
  padding: 0;
}

.mobile-drawer-logo img {
  height: 64px;
  width: auto;
  display: block;
}

.mobile-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  margin-bottom: 24px;
}

.mobile-nav a {
  display: block;
  padding: 16px 0;
  text-decoration: none;
  color: var(--black);
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 500;
  border-bottom: 1px solid var(--bg);
}

.mobile-nav a.active { border-left: 3px solid var(--black); padding-left: 12px; }

.mobile-nav a:hover { color: var(--mid); }

.mobile-drawer-cta {
  display: block;
  margin-top: auto;
  text-align: center;
}

/* ===== Mobile ===== */
@media (max-width: 900px) {
  .hero h1 { font-size: 36px; }
  .page-hero h1 { font-size: 28px; }
  .category-grid,
  .product-grid,
  .service-panel,
  .contact-grid,
  .footer-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .stats-grid { gap: 32px; }

  /* Footer on mobile: pair each title with its content block, hide the red
     divider (it's a desktop-only visual). The order: properties re-interleave
     the flattened title row and content row into title→content pairs. */
  .footer-divider { display: none; }
  .footer-grid > h4:nth-of-type(1) { order: 1; margin-top: 24px; }
  .footer-grid > div:nth-of-type(1) { order: 2; }
  .footer-grid > h4:nth-of-type(2) { order: 3; margin-top: 24px; }
  .footer-grid > div:nth-of-type(2) { order: 4; }
  .footer-grid > h4:nth-of-type(3) { order: 5; margin-top: 24px; }
  .footer-grid > div:nth-of-type(3) { order: 6; }
  .footer-grid > h4:nth-of-type(4) { order: 7; margin-top: 24px; }
  .footer-grid > div:nth-of-type(4) { order: 8; }
  .footer-grid > h4:nth-of-type(5) { order: 9; margin-top: 24px; }
  .footer-grid > div:nth-of-type(5) { order: 10; }
  .nav { display: none; }
  .site-header { padding: 6px 16px; gap: 8px; }
  .logo { width: 160px; height: 52px; }
  .site-header > .cta-btn { display: none; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .form-grid-2 { grid-template-columns: 1fr; }
  .modal { padding: 12px; }
  .float-contact { bottom: 16px; right: 16px; gap: 10px; }
  .float-btn { width: 52px; height: 52px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .cta-btn, .hero-actions .btn-secondary { text-align: center; }
  section { padding: 40px 16px; }
  .hero, .page-hero { padding: 48px 16px; }
  .page-hero { min-height: 230px; }
  .tabs { overflow-x: auto; flex-wrap: nowrap; }
  .tab { white-space: nowrap; }
  .project-grid { grid-template-columns: 1fr; }
  .brand-logo { width: 100px; height: 48px; font-size: 10px; }
  .model-grid { grid-template-columns: 1fr; }
  .modal-content { grid-template-columns: 1fr; max-height: 95vh; }
  .modal-gallery { padding: 16px; }
  .modal-img-main { min-height: 200px; }
  .modal-info { padding: 24px 20px; }
}
