/* ══════════════════════════════════════════════
   DTW Specification Tool
   ══════════════════════════════════════════════ */

/* ── Hero ──────────────────────────────────── */
.spec-hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
  color: #fff;
  padding: 72px 0 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.spec-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.spec-hero h1 {
  font-size: 2.4rem;
  font-weight: 700;
  margin: 0 0 20px;
  letter-spacing: -0.5px;
  line-height: 1.2;
}
.spec-hero .intro-text {
  max-width: 740px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.75);
}
.spec-hero .intro-text p { margin: 0; }

/* ── Filter Bar ────────────────────────────── */
.spec-filters {
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 4px 12px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.2s ease;
}
.spec-filters-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}
.filter-group {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}
.filter-group label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #94a3b8;
  margin-right: 2px;
  white-space: nowrap;
}

/* Filter Pills */
.filter-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border: 1.5px solid #e2e8f0;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  background: #fff;
  color: #475569;
  transition: all 0.15s ease;
  user-select: none;
  white-space: nowrap;
  line-height: 1;
}
.filter-pill:hover {
  border-color: #0f172a;
  color: #0f172a;
  background: #f8fafc;
}
.filter-pill.active {
  background: #0f172a;
  color: #fff;
  border-color: #0f172a;
}

/* Search */
.spec-search {
  padding: 7px 14px 7px 36px;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  font-size: 0.88rem;
  min-width: 200px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E") 12px center no-repeat;
  transition: border-color 0.15s ease;
}
.spec-search:focus {
  outline: none;
  border-color: #0f172a;
  box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.08);
}

/* U-value Slider */
.u-value-slider {
  display: flex;
  align-items: center;
  gap: 8px;
}
.u-value-slider input[type="range"] {
  width: 110px;
  accent-color: #0f172a;
  cursor: pointer;
}
.u-value-display {
  font-size: 0.82rem;
  font-weight: 600;
  color: #334155;
  min-width: 90px;
  white-space: nowrap;
}

/* Sort & Reset */
.spec-sort {
  padding: 7px 12px;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  font-size: 0.85rem;
  background: #fff;
  color: #475569;
  cursor: pointer;
}
.filter-reset {
  padding: 7px 14px;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  font-size: 0.82rem;
  color: #94a3b8;
  font-weight: 500;
  transition: all 0.15s ease;
}
.filter-reset:hover {
  background: #fef2f2;
  border-color: #fca5a5;
  color: #dc2626;
}

/* Results Bar */
.spec-results-bar {
  padding: 16px 0 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.results-count {
  font-size: 0.88rem;
  color: #64748b;
  font-weight: 500;
}

/* Mobile Filter Toggle */
.filter-toggle-btn {
  display: none;
  padding: 10px 20px;
  background: #0f172a;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  letter-spacing: 0.3px;
}
.filter-toggle-btn:active { transform: scale(0.98); }

/* ── Card Grid ─────────────────────────────── */
.spec-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 20px 0 72px;
}

/* System Card */
.system-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.system-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1), 0 2px 8px rgba(0, 0, 0, 0.04);
  border-color: #cbd5e1;
}

/* Card Image */
/* Card Image */
.card-image {
  height: 200px;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border-bottom: 1px solid #e2e8f0;
  overflow: hidden;
}
.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.spec-card:hover .card-image img {
  transform: scale(1.05);
}














}

/* Brand Badge */
.brand-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #fff;
  line-height: 1;
}
.brand-badge.cortizo {
  background: #2563eb;
}
.brand-badge.smart-systems {
  background: #059669;
}

/* Card Body */
.card-body {
  padding: 16px 18px 14px;
}
.card-body h3 {
  font-size: 0.98rem;
  font-weight: 650;
  margin: 0 0 10px;
  line-height: 1.3;
  color: #0f172a;
}

/* Tags */
.card-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.card-tag {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 5px;
  background: #f1f5f9;
  color: #64748b;
  letter-spacing: 0.2px;
  text-transform: uppercase;
  line-height: 1;
}
.card-tag.thermal {
  background: #dcfce7;
  color: #166534;
}

/* Card Spec Chips */
.card-specs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: #64748b;
}
.card-specs span {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.card-specs strong {
  color: #1e293b;
  font-weight: 600;
}

/* Card Footer */
.card-footer {
  padding: 12px 18px 16px;
  border-top: 1px solid #f1f5f9;
}
.card-footer .btn {
  width: 100%;
  text-align: center;
  font-size: 0.82rem;
  padding: 9px 16px;
  border-radius: 8px;
}

/* No Results */
.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 20px;
  color: #64748b;
}
.no-results h3 {
  font-size: 1.1rem;
  color: #334155;
  margin-bottom: 8px;
}
.no-results p { margin: 0; }
.no-results button {
  background: none;
  border: none;
  color: #2563eb;
  cursor: pointer;
  text-decoration: underline;
  font-size: inherit;
}

/* ── Modals ────────────────────────────────── */
.spec-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: fadeIn 0.15s ease;
}
.spec-modal-overlay.active {
  display: flex;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.spec-modal {
  background: #fff;
  border-radius: 16px;
  max-width: 700px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.2);
  animation: slideUp 0.2s ease;
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #e2e8f0;
  font-size: 1.3rem;
  cursor: pointer;
  color: #64748b;
  z-index: 10;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  transition: all 0.15s ease;
  line-height: 1;
}
.modal-close:hover {
  background: #f1f5f9;
  color: #0f172a;
}

/* Detail Modal */
.detail-header {
  display: flex;
  gap: 24px;
  padding: 32px 32px 0;
}
.detail-image {
  width: 200px;
  height: 200px;
  background: #f8fafc; overflow: hidden;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid #e2e8f0;
}
.detail-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  
}
.detail-info { flex: 1; padding-top: 4px; }
.detail-info h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0 0 12px;
  color: #0f172a;
  line-height: 1.25;
}
.detail-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* Detail Body */
.detail-body {
  padding: 24px 32px 32px;
}
.detail-description {
  font-size: 0.95rem;
  line-height: 1.75;
  color: #475569;
  margin-bottom: 28px;
}

/* Detail Sections */
.detail-section {
  margin-bottom: 24px;
}
.detail-section h4 {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: #94a3b8;
  font-weight: 700;
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #f1f5f9;
}
.detail-specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 24px;
}
.spec-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  padding: 6px 0;
}
.spec-row .label { color: #64748b; }
.spec-row .value {
  font-weight: 600;
  color: #0f172a;
}
.detail-opening-types {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.detail-quote {
  background: #f8fafc;
  padding: 16px 20px;
  border-radius: 10px;
  font-size: 0.92rem;
  color: #475569;
  line-height: 1.65;
  border-left: 3px solid #2563eb;
}

/* Detail Actions */
.detail-actions {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid #f1f5f9;
}
.detail-actions .btn {
  flex: 1;
  text-align: center;
  padding: 12px 20px;
  font-weight: 600;
  border-radius: 10px;
  font-size: 0.88rem;
}

/* ── Lead Capture Modal ────────────────────── */
.lead-modal .spec-modal { max-width: 480px; }
.lead-form-content {
  padding: 36px 32px;
}
.lead-form-content h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 24px;
  color: #0f172a;
}
.lead-field {
  margin-bottom: 18px;
}
.lead-field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: #334155;
}
.lead-field input {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  font-size: 0.9rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  box-sizing: border-box;
}
.lead-field input:focus {
  outline: none;
  border-color: #0f172a;
  box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.08);
}
.lead-submit {
  width: 100%;
  padding: 12px;
  margin-top: 8px;
  font-size: 0.92rem;
}
.lead-privacy {
  font-size: 0.75rem;
  color: #94a3b8;
  margin-top: 16px;
  text-align: center;
  line-height: 1.5;
}
.lead-privacy a {
  color: #64748b;
  text-decoration: underline;
}

/* ── Spec Sheet Output Modal ───────────────── */
.spec-sheet-modal .spec-modal { max-width: 560px; }
.spec-sheet-content {
  padding: 36px 32px;
}
.spec-sheet-header {
  text-align: center;
  border-bottom: 2px solid #0f172a;
  padding-bottom: 20px;
  margin-bottom: 24px;
}
.spec-sheet-header h2 {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #0f172a;
  margin: 0 0 4px;
}
.spec-sheet-header p {
  margin: 0;
  color: #64748b;
  font-size: 0.88rem;
}
.spec-sheet-header .date {
  font-size: 0.8rem;
  color: #94a3b8;
  margin-top: 4px;
}
.spec-sheet-section {
  margin-bottom: 20px;
}
.spec-sheet-section h4 {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-weight: 700;
  color: #94a3b8;
  margin: 0 0 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid #f1f5f9;
}
.spec-sheet-row {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  font-size: 0.88rem;
  color: #334155;
}
.spec-sheet-row span:last-child {
  font-weight: 600;
  color: #0f172a;
}
.spec-sheet-footer {
  border-top: 1px solid #e2e8f0;
  padding-top: 20px;
  margin-top: 24px;
  text-align: center;
  font-size: 0.82rem;
  color: #94a3b8;
  line-height: 1.6;
}
.spec-sheet-footer strong {
  color: #334155;
  display: block;
  font-size: 0.88rem;
}
.copy-btn {
  display: block;
  margin: 24px auto 0;
  padding: 10px 28px;
  border-radius: 10px;
  font-weight: 600;
  transition: all 0.2s ease;
}
.copy-btn.copied {
  background: #059669 !important;
  border-color: #059669 !important;
}

/* ── Responsive ────────────────────────────── */

/* Tablet */
@media (max-width: 1024px) {
  .spec-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .detail-specs-grid {
    grid-template-columns: 1fr;
  }
  .spec-hero h1 { font-size: 2rem; }
}

/* Mobile */
@media (max-width: 768px) {
  .spec-hero {
    padding: 48px 0 32px;
  }
  .spec-hero h1 {
    font-size: 1.5rem;
  }
  .spec-hero .intro-text {
    font-size: 0.92rem;
  }

  /* Collapsible filter panel */
  .filter-toggle-btn { display: block; }
  .spec-filters-inner {
    display: none;
    padding-top: 14px;
    flex-direction: column;
    align-items: stretch;
  }
  .spec-filters-inner.open { display: flex; }
  .filter-group {
    width: 100%;
    padding-bottom: 8px;
  }
  .spec-search {
    width: 100%;
    min-width: unset;
  }
  .spec-sort { width: 100%; }

  /* Single column grid */
  .spec-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 16px 0 48px;
  }

  /* Full-screen modals */
  .spec-modal-overlay { padding: 0; }
  .spec-modal {
    max-width: 100%;
    max-height: 100vh;
    height: 100%;
    border-radius: 0;
    box-shadow: none;
  }
  .detail-header {
    flex-direction: column;
    padding: 24px 20px 0;
    gap: 16px;
  }
  .detail-image {
    width: 100%;
    height: 160px;
  }
  .detail-body { padding: 20px; }
  .detail-actions { flex-direction: column; }
  .lead-form-content { padding: 28px 20px; }
  .spec-sheet-content { padding: 28px 20px; }
  .lead-modal .spec-modal,
  .spec-sheet-modal .spec-modal {
    max-width: 100%;
  }
}
