/* ==========================================
   SURETECH ENGINEERING - COMPONENTS STYLES
   ========================================== */

/* Hero Banner Component */
.hero {
  height: 100vh;
  min-height: 700px;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: #03060a;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
  filter: brightness(0.7) contrast(1.1);
  transform: scale(1.05);
  animation: slowZoom 20s infinite alternate;
}

@keyframes slowZoom {
  from { transform: scale(1); }
  to { transform: scale(1.08); }
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 70% 50%, rgba(255, 85, 0, 0.05) 0%, rgba(10, 13, 20, 0.95) 70%, rgba(10, 13, 20, 1) 100%);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 680px;
}

.hero-title {
  font-size: 64px;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 24px;
  text-transform: uppercase;
}

.hero-desc {
  font-size: 18px;
  margin-bottom: 40px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 16px;
}

/* Stats Component */
.stats-bar {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 40px 0;
  position: relative;
  z-index: 4;
}

.stats-grid {
  grid-template-columns: repeat(4, 1fr);
  text-align: center;
}

.stat-item {
  border-right: 1px solid var(--border-color);
}

.stat-item:last-child {
  border-right: none;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: 800;
  color: var(--accent-orange);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 13px;
  text-transform: uppercase;
  color: var(--text-secondary);
  letter-spacing: 0.1em;
  font-weight: 500;
}

/* Trailer Configurator Component */
.configurator-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  display: grid;
  grid-template-columns: 1fr 1.1fr;
}

.configurator-controls {
  padding: 40px;
  border-right: 1px solid var(--border-color);
}

.config-group {
  margin-bottom: 30px;
}

.config-label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 14px;
  color: var(--text-primary);
}

/* Type Selector Buttons */
.type-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.type-btn {
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 16px 10px;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  transition: all var(--transition-fast);
}

.type-btn svg {
  width: 32px;
  height: 32px;
  stroke-width: 1.5;
  color: var(--text-muted);
}

.type-btn span {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.type-btn:hover {
  background-color: rgba(255, 255, 255, 0.05);
  border-color: var(--text-secondary);
  color: #fff;
}

.type-btn.active {
  background-color: rgba(255, 85, 0, 0.05);
  border-color: var(--accent-orange);
  color: #fff;
  box-shadow: 0 0 15px rgba(255, 85, 0, 0.15);
}

.type-btn.active svg {
  color: var(--accent-orange);
}

/* Config Options (Select/Checkboxes) */
.select-wrapper {
  position: relative;
}

.config-select {
  width: 100%;
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 14px 16px;
  color: #fff;
  font-family: var(--font-body);
  font-size: 14px;
  appearance: none;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.config-select:focus {
  outline: none;
  border-color: var(--accent-orange);
}

.config-select option {
  background-color: var(--bg-secondary);
  color: #fff;
}

.select-wrapper::after {
  content: '▼';
  font-size: 10px;
  color: var(--text-muted);
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

/* Range Sliders */
.range-slider-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.range-values {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: var(--text-secondary);
}

.range-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.1);
  outline: none;
}

.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent-orange);
  cursor: pointer;
  transition: transform var(--transition-fast);
}

.range-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

/* Configurator Preview & Specs Dashboard */
.configurator-preview {
  padding: 40px;
  background-color: #0d121c;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.preview-visual {
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: radial-gradient(circle, rgba(255, 85, 0, 0.03) 0%, transparent 70%);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 30px;
  margin-bottom: 30px;
}

.preview-visual img {
  max-width: 100%;
  max-height: 180px;
  object-fit: contain;
  filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.6));
}

.preview-spec-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 30px;
}

.preview-spec-row {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px dashed var(--border-color);
  padding-bottom: 10px;
}

.preview-spec-row .spec-name {
  color: var(--text-secondary);
  font-size: 14px;
}

.preview-spec-row .spec-val {
  font-weight: 600;
  color: #fff;
  font-size: 14px;
}

/* Product Cards Component */
.product-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  overflow: hidden;
  transition: all var(--transition-medium);
  display: flex;
  flex-direction: column;
  position: relative;
}

.product-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 85, 0, 0.4);
  box-shadow: 0 20px 40px -20px rgba(255, 85, 0, 0.15);
}

.product-img-wrapper {
  position: relative;
  height: 240px;
  overflow: hidden;
  background-color: #080b11;
}

.product-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-medium);
}

.product-card:hover .product-img-wrapper img {
  transform: scale(1.06);
}

.product-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background-color: var(--accent-orange);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 3px;
  letter-spacing: 0.05em;
  z-index: 10;
}

.product-info {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-name {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #fff;
}

.product-desc {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.5;
  flex-grow: 1;
}

.product-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
  margin-bottom: 24px;
}

.meta-item {
  font-size: 12px;
  color: var(--text-muted);
}

.meta-item span {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  margin-top: 2px;
}

/* Catalog Filter Pills */
.filter-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 20px;
}

.filter-pills {
  display: flex;
  gap: 10px;
  list-style: none;
  flex-wrap: wrap;
}

.filter-pill {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 10px 20px;
  border-radius: 40px;
  cursor: pointer;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all var(--transition-fast);
}

.filter-pill:hover {
  border-color: var(--text-secondary);
  color: #fff;
}

.filter-pill.active {
  background-color: var(--accent-orange);
  border-color: var(--accent-orange);
  color: #fff;
  box-shadow: 0 4px 15px var(--accent-orange-glow);
}

.search-box {
  position: relative;
  max-width: 300px;
  width: 100%;
}

.search-input {
  width: 100%;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 12px 16px 12px 40px;
  color: #fff;
  font-family: var(--font-body);
  font-size: 14px;
}

.search-input:focus {
  outline: none;
  border-color: var(--accent-orange);
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

/* Dialog Spec Sheets Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(6, 9, 14, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-medium);
  padding: 20px;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-container {
  background-color: #ffffff;
  color: var(--text-dark);
  max-width: 900px;
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.8);
  position: relative;
  transform: translateY(40px) scale(0.95);
  transition: transform var(--transition-medium);
  display: flex;
  flex-direction: column;
  max-height: 90vh;
}

.modal-overlay.active .modal-container {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(15, 23, 42, 0.05);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dark);
  z-index: 10;
  transition: all var(--transition-fast);
}

.modal-close:hover {
  background-color: var(--accent-orange);
  color: #fff;
}

.modal-body {
  overflow-y: auto;
  padding: 40px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
}

.modal-gallery img {
  width: 100%;
  border-radius: 6px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  object-fit: cover;
  height: 280px;
}

.modal-title {
  font-size: 30px;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--text-dark);
  border-bottom: 2px solid var(--accent-orange);
  padding-bottom: 12px;
}

.modal-category {
  font-size: 12px;
  text-transform: uppercase;
  color: var(--accent-orange);
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.modal-description {
  color: #475569;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 24px;
}

/* Specifications Table */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
  font-size: 13px;
}

.spec-table th,
.spec-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border-color-light);
}

.spec-table th {
  background-color: #f1f5f9;
  color: var(--text-dark);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.05em;
}

.spec-table td.spec-lbl {
  font-weight: 600;
  color: #334155;
  width: 40%;
}

.spec-table td.spec-val {
  color: #57657a;
}

.modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 30px;
}

/* Timeline/Processes Component (Engineering Page) */
.process-timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.process-timeline::before {
  content: '';
  position: absolute;
  left: 31px;
  top: 0;
  width: 2px;
  height: 100%;
  background: linear-gradient(to bottom, var(--accent-orange) 0%, var(--bg-secondary) 100%);
}

.process-step {
  display: flex;
  gap: 30px;
  margin-bottom: 60px;
  position: relative;
}

.process-step:last-child {
  margin-bottom: 0;
}

.process-badge {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: var(--bg-secondary);
  border: 2px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--accent-orange);
  font-size: 20px;
  flex-shrink: 0;
  z-index: 2;
  transition: all var(--transition-fast);
  box-shadow: 0 0 0 8px var(--bg-primary);
}

.process-step:hover .process-badge {
  border-color: var(--accent-orange);
  background-color: var(--accent-orange);
  color: #fff;
  box-shadow: 0 0 0 8px var(--bg-primary), 0 0 20px var(--accent-orange-glow);
}

.process-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 30px;
  flex-grow: 1;
}

.process-card h3 {
  font-size: 22px;
  margin-bottom: 12px;
  color: #fff;
}

/* Contact Page Form & details */
.contact-grid {
  grid-template-columns: 1.2fr 1fr;
  gap: 50px;
}

.contact-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 40px;
  box-shadow: var(--card-shadow);
}

.form-title {
  font-size: 28px;
  margin-bottom: 24px;
  font-weight: 700;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group.full-width {
  grid-column: span 2;
}

.form-label {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
}

.form-input {
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 14px 16px;
  color: #fff;
  font-family: var(--font-body);
  font-size: 14px;
  transition: all var(--transition-fast);
}

.form-input:focus {
  outline: none;
  border-color: var(--accent-orange);
  background-color: rgba(255, 255, 255, 0.04);
}

textarea.form-input {
  min-height: 120px;
  resize: vertical;
}

.contact-info-panel {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.info-item {
  display: flex;
  gap: 20px;
}

.info-icon {
  width: 54px;
  height: 54px;
  border-radius: 6px;
  background-color: rgba(255, 85, 0, 0.05);
  border: 1px solid rgba(255, 85, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-orange);
  flex-shrink: 0;
}

.info-details h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
  color: #fff;
}

.info-details p,
.info-details a {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.5;
  text-decoration: none;
}

.info-details a:hover {
  color: var(--accent-orange);
}

/* Map frame placeholder */
.map-container {
  height: 280px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  margin-top: 30px;
  position: relative;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
  filter: grayscale(1) invert(0.9) contrast(1.2);
}

/* Responsive Component Adjustments */
@media (max-width: 900px) {
  .configurator-card {
    grid-template-columns: 1fr;
  }
  .configurator-controls {
    border-right: none;
    border-bottom: 1px solid var(--border-color);
  }
  .modal-body {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .modal-gallery img {
    height: 200px;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 40px;
  }
  .hero-desc {
    font-size: 16px;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .stat-item {
    border-right: none;
  }
  .stat-item:nth-child(odd) {
    border-right: 1px solid var(--border-color);
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-group.full-width {
    grid-column: span 1;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
  }
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .stat-item {
    border-right: none;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
  }
  .stat-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }
  .type-grid {
    grid-template-columns: 1fr;
  }
}
