/*
 * SPYDERCRANE® Model Pages — shared stylesheet
 * styles-model.css — loaded on all /models/*.cfm pages
 *
 * Body classes (image sizing variants; all use the same hero structure):
 *   model-page--side          pick-carry, 200
 *   model-page--side-sm       090
 *   model-page--side-md       300, 400
 *   model-page--side-lg       500
 *   model-page--side-xl       700
 *   model-page--side-1006     1006
 *
 * Hero structure on every series page:
 *   [ copy + CTAs | crane image ]
 *                    [ spec callouts under crane only ]
 */

/* Breadcrumb */
.breadcrumb {
  background: var(--slate);
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.breadcrumb-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  font-family: var(--font-b);
}
.breadcrumb-inner a { color: rgba(255,255,255,0.4); transition: color 0.2s; }
.breadcrumb-inner a:hover { color: var(--white); }
.breadcrumb-inner span { color: rgba(255,255,255,0.2); }
.breadcrumb-inner .current { color: rgba(255,255,255,0.7); }
.breadcrumb--offset { margin-top: 94px; }

/* Model Hero — side-stats (default) */
/* Model Hero */
.model-hero {
  background: var(--slate);
  padding: 64px 0 40px;
  overflow: visible;
}

.model-hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: stretch;
}

.model-hero-content {
  padding-bottom: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.model-series-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(183,0,6,0.15);
  border: 1px solid rgba(183,0,6,0.35);
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 20px;
}

.model-hero-content h1 {
  font-family: var(--font-d);
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 800;
  color: var(--white);
  line-height: 1.0;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.model-hero-content h1 span {
  color: var(--red);
}

.model-subtitle {
  font-family: var(--font-b);
  font-size: 15px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 28px;
  letter-spacing: 0.02em;
}

.model-hero-desc {
  font-size: 16px;
  line-height: 1.75;
  color: rgba(255,255,255,0.65);
  margin-bottom: 20px;
  max-width: 480px;
}
.model-hero-desc:last-of-type { margin-bottom: 0; }

.model-hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 28px;
}

.model-hero-right {
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: flex-end;
}

.model-hero-image {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  position: relative;
  flex: 1;
  min-height: 320px;
  padding: 8px 0 0;
}

.model-hero-image::before {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 65%;
  height: 24px;
  background: radial-gradient(ellipse, rgba(0,0,0,0.45) 0%, transparent 75%);
  border-radius: 50%;
  z-index: 0;
}

.model-hero-image img {
  width: 100%;
  max-width: 520px;
  height: auto;
  object-fit: contain;
  object-position: bottom center;
  position: relative;
  z-index: 1;
  transform: none;
  filter: drop-shadow(0 12px 18px rgba(0,0,0,0.35));
}

/* Spec callouts — under the crane only (right column), not full-width */
.model-hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--r-lg);
  padding: 18px 6px;
  margin-top: 4px;
  flex-shrink: 0;
}

.model-hero-stat {
  text-align: center;
  padding: 0 4px;
  border-right: 1px solid rgba(255,255,255,0.08);
}
.model-hero-stat:last-child { border-right: none; }

.model-hero-stat-num {
  font-family: var(--font-d);
  font-size: 24px;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  margin-bottom: 4px;
}
.model-hero-stat-num em { color: var(--red); font-style: normal; }

.model-hero-stat-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-400);
}

/* Size variants — image column width / crane scale only */
.model-page--side-sm .model-hero-image img { max-width: 400px; }
.model-page--side-md .model-hero-image img { max-width: 540px; }
.model-page--side-lg .model-hero-inner { grid-template-columns: 1fr 1.25fr; gap: 40px; }
.model-page--side-lg .model-hero-image img { max-width: 100%; }
.model-page--side-xl .model-hero-inner { grid-template-columns: 1fr 1.3fr; gap: 40px; }
.model-page--side-xl .model-hero-image { min-height: 380px; }
.model-page--side-xl .model-hero-image img { max-width: 100%; }
.model-page--side-xl .model-hero-image::before { width: 72%; }

/* 1006 — larger crane */
.model-page--side-1006 .model-hero-inner { grid-template-columns: 1fr 1.65fr; gap: 28px; }
.model-page--side-1006 .model-hero-image { min-height: 480px; }
.model-page--side-1006 .model-hero-image img {
  max-width: 100%;
  max-height: 720px;
}

/* Specs section */
.specs-section {
  background: var(--off-white);
  padding: 72px 0;
}

.specs-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 56px;
  align-items: start;
}

.specs-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--gray-200);
  margin-bottom: 32px;
}

.specs-tab {
  font-family: var(--font-b);
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-400);
  padding: 12px 20px;
  border: none;
  background: none;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all 0.2s;
  white-space: nowrap;
}
.specs-tab:hover { color: var(--gray-800); }
.specs-tab.active {
  color: var(--red);
  border-bottom-color: var(--red);
}

.specs-panel { display: none; }
.specs-panel.active { display: block; }

/* Scrollable wrapper for tables on small screens */
.spec-table-wrap {
  position: relative;
}

.spec-table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--r-lg);
  scrollbar-width: thin;
  scrollbar-color: var(--gray-400) transparent;
}
.spec-table-scroll::-webkit-scrollbar { height: 6px; }
.spec-table-scroll::-webkit-scrollbar-thumb { background: var(--gray-400); border-radius: 3px; }
.spec-table-scroll::-webkit-scrollbar-track { background: transparent; }

.spec-table-hint {
  display: none;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--gray-400);
  font-family: var(--font-b);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}
.spec-table-hint svg { flex-shrink: 0; }

/* Spec table — multi-model (3 columns) */
.spec-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--r-lg);
  overflow: hidden;
  font-size: 14px;
}

.spec-table thead th {
  background: var(--slate);
  color: var(--white);
  font-family: var(--font-d);
  font-size: 13px;
  font-weight: 700;
  padding: 16px 20px;
  text-align: center;
}
.spec-table thead th:first-child {
  text-align: left;
  background: var(--gray-800);
  width: 34%;
}

.spec-table tbody tr:nth-child(even) td { background: var(--off-white); }
.spec-table tbody tr:nth-child(even) td:first-child { background: var(--gray-100); }

.spec-table td {
  padding: 13px 20px;
  border-bottom: 1px solid var(--gray-200);
  color: var(--gray-800);
  font-family: var(--font-b);
  text-align: center;
}
.spec-table td:first-child {
  text-align: left;
  font-weight: 600;
  color: var(--gray-600);
  background: var(--white);
  font-size: 13px;
}
.spec-table tbody tr:last-child td { border-bottom: none; }

.spec-note {
  font-size: 11px;
  color: var(--gray-400);
  margin-top: 12px;
  font-family: var(--font-b);
  font-style: italic;
}

/* Power options table */
.power-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.power-badge.standard {
  background: rgba(34,139,34,0.1);
  color: #228b22;
  border: 1px solid rgba(34,139,34,0.2);
}
.power-badge.optional {
  background: rgba(183,0,6,0.08);
  color: var(--red);
  border: 1px solid rgba(183,0,6,0.2);
}

/* Features list */
.features-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--r-md);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.feature-item:hover {
  border-color: rgba(183,0,6,0.25);
  box-shadow: 0 3px 12px rgba(0,0,0,0.06);
}

.feature-icon {
  width: 36px;
  height: 36px;
  background: rgba(183,0,6,0.08);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.feature-name {
  font-family: var(--font-d);
  font-size: 13px;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 2px;
}
.feature-desc {
  font-size: 12px;
  line-height: 1.5;
  color: var(--gray-600);
}

/* Sidebar CTA card */
.specs-sidebar {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cta-card {
  background: var(--slate);
  border-radius: var(--r-lg);
  padding: 28px;
  color: var(--white);
}

.cta-card h3 {
  font-family: var(--font-d);
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}
.cta-card p {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 20px;
  line-height: 1.6;
}
.cta-card .btn {
  width: 100%;
  justify-content: center;
  margin-bottom: 10px;
}
.cta-card .btn:last-child { margin-bottom: 0; }

.download-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--r-lg);
  padding: 24px;
}
.download-card h4 {
  font-family: var(--font-d);
  font-size: 14px;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 14px;
}
.download-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-100);
  font-size: 13px;
  font-weight: 600;
  color: var(--red);
  transition: color 0.2s;
  font-family: var(--font-b);
  cursor: pointer;
}
.download-link:last-child { border-bottom: none; padding-bottom: 0; }
.download-link:hover { color: var(--red-dark); }
.download-link::before { content: '↓'; font-size: 14px; font-weight: 700; }

/* Feature video buttons */
.feature-video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.feature-video-btn {
  font-family: var(--font-b);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--white);
  background: var(--slate-mid);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--r-sm);
  padding: 16px 14px;
  text-align: center;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  line-height: 1.4;
}
.feature-video-btn:hover {
  background: var(--red);
  transform: translateY(-1px);
}

/* Feature / accessory video modal */
.video-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  z-index: 999;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.video-modal-overlay.open { display: flex; }

.video-modal-box {
  background: var(--white);
  border-radius: var(--r-lg);
  width: 100%;
  max-width: 640px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  padding: 32px;
}

.video-modal-close {
  position: absolute;
  top: 16px;
  right: 18px;
  font-size: 22px;
  color: var(--gray-400);
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1;
}
.video-modal-close:hover { color: var(--gray-800); }

.video-modal-title {
  font-family: var(--font-d);
  font-size: 19px;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 18px;
  padding-right: 24px;
}

.video-modal-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--gray-100);
  margin-bottom: 20px;
}
.video-modal-frame iframe,
.video-modal-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  object-fit: cover;
}

.video-modal-desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--gray-600);
  font-family: var(--font-b);
}

/* See in Action gallery */
.action-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.action-photo {
  aspect-ratio: 4 / 3;
  border-radius: var(--r-md);
  overflow: hidden;
  cursor: pointer;
  background: var(--gray-100);
  position: relative;
}
.action-photo::after {
  content: '⤢';
  position: absolute;
  top: 8px;
  right: 8px;
  width: 26px;
  height: 26px;
  background: rgba(28,28,32,0.65);
  color: var(--white);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  opacity: 0;
  transition: opacity 0.2s;
}
.action-photo:hover::after { opacity: 1; }

.action-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.action-photo:hover img { transform: scale(1.05); }

/* Lightbox */
.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10,12,18,0.92);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.lightbox-overlay.open { display: flex; }

.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--r-md);
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 28px;
  font-size: 32px;
  color: var(--white);
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.lightbox-close:hover { opacity: 1; }

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.1);
  border: none;
  color: var(--white);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.lightbox-nav:hover { background: rgba(255,255,255,0.2); }
.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }

.lightbox-counter {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.6);
  font-size: 13px;
  font-family: var(--font-b);
}

/* Accessories section */
.accessories-section {
  background: var(--white);
  padding: 72px 0;
  border-top: 1px solid var(--gray-200);
}

.accessories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 0;
}

.accessory-card {
  border: 1px solid var(--gray-200);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  background: var(--white);
  cursor: pointer;
  text-align: left;
  width: 100%;
  padding: 0;
  font: inherit;
  color: inherit;
}
.accessory-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.08);
}

.accessory-img {
  background: var(--gray-100);
  height: 160px;
  overflow: hidden;
}
.accessory-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.accessory-body { padding: 14px 16px 16px; }
.accessory-name {
  font-family: var(--font-d);
  font-size: 14px;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 0;
  line-height: 1.35;
}
.accessory-desc {
  font-size: 13px;
  line-height: 1.6;
  color: var(--gray-600);
  margin-bottom: 14px;
}
.accessory-link {
  font-size: 12px;
  font-weight: 600;
  color: var(--red);
  font-family: var(--font-b);
}
.accessory-link::after { content: ' →'; }

/* Next / Prev model nav */
.model-nav {
  background: var(--gray-100);
  padding: 28px 0;
  border-top: 1px solid var(--gray-200);
}
.model-nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.model-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-b);
  color: var(--gray-600);
  font-size: 13px;
  transition: color 0.2s;
}
.model-nav-link:hover { color: var(--red); }
.model-nav-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 2px;
}
.model-nav-name {
  font-family: var(--font-d);
  font-size: 16px;
  font-weight: 700;
  color: var(--gray-800);
}
.model-nav-link:hover .model-nav-name { color: var(--red); }
.model-nav-arrow {
  font-size: 22px;
  color: var(--gray-400);
}

/* ============================================================
   MOBILE
   ============================================================ */

/* ============================================================
   MOBILE
   ============================================================ */
@media (max-width: 768px) {

  /* Hero */
  .model-hero { padding: 40px 0 28px; }
  .model-hero-inner { grid-template-columns: 1fr; gap: 24px; }
  .model-hero-right { display: flex; min-height: 0; }
  .model-hero-image { min-height: 0; padding-top: 0; }
  .model-hero-image img { max-height: 280px; max-width: 100%; }
  .model-page--side-1006 .model-hero-image img { max-height: 380px; }
  .model-hero-content { padding-bottom: 0; height: auto; }
  .model-hero-content h1 { font-size: clamp(32px, 8vw, 48px); }
  .model-subtitle { font-size: 13px; margin-bottom: 20px; }
  .model-hero-desc { font-size: 14px; line-height: 1.65; margin-bottom: 16px; }
  .model-hero-actions { flex-direction: column; gap: 10px; margin-top: 24px; }
  .model-hero-actions .btn { width: 100%; justify-content: center; }
  .model-hero-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 0;
    margin-top: 16px;
    padding: 16px 8px;
  }
  .model-hero-stat:nth-child(2) { border-right: none; }
  .model-hero-stat-num { font-size: 22px; }

  /* Specs section */
  .specs-section { padding: 40px 0; }
  .specs-layout { grid-template-columns: 1fr; }
  .specs-sidebar { position: static; }

  /* Sidebar cards */
  .cta-card { padding: 22px 20px; }
  .cta-card .btn { width: 100%; justify-content: center; }
  .download-card { padding: 20px; }

  /* Spec tables */
  .specs-tabs { overflow-x: auto; }
  .spec-table { font-size: 12px; min-width: 480px; }
  .spec-table td, .spec-table thead th { padding: 10px 12px; }
  .spec-table thead th:first-child,
  .spec-table td:first-child {
    position: sticky;
    left: 0;
    z-index: 2;
    box-shadow: 2px 0 4px rgba(0,0,0,0.06);
  }
  .spec-table-hint { display: flex; }

  /* Feature video buttons */
  .feature-video-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .feature-video-btn { padding: 14px 10px; font-size: 11px; }

  /* Action gallery */
  .accessories-grid { grid-template-columns: 1fr; }
  .action-gallery { grid-template-columns: repeat(2, 1fr); gap: 8px; }

  /* Video modal */
  .video-modal-box { padding: 24px 18px; }
  .video-modal-title { font-size: 16px; margin-bottom: 14px; }

  /* Lightbox */
  .lightbox-overlay { padding: 16px; }
  .lightbox-nav { width: 40px; height: 40px; font-size: 18px; }
  .lightbox-prev { left: 4px; }
  .lightbox-next { right: 4px; }

  /* Model nav */
  .model-nav-inner { flex-direction: column; gap: 16px; text-align: center; }
  .model-nav-link { justify-content: center; }
}

/* Small phones */
@media (max-width: 480px) {
  .model-series-badge { font-size: 10px; padding: 4px 12px; }
  .feature-video-grid { grid-template-columns: 1fr; }
  .action-gallery { grid-template-columns: 1fr 1fr; }
  .specs-tab { padding: 10px 14px; font-size: 12px; }
}

