/* ===========================
   ZITOUNTERK CASSE - Design System
   Palette: Acier sombre + Orange chaud + Blanc cassé
   =========================== */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@400;600;700;900&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --steel-dark:   #1a1d22;
  --steel-mid:    #2c3140;
  --steel-light:  #3d4455;
  --orange:       #e8500a;
  --orange-light: #f4722e;
  --cream:        #f5f2ed;
  --white:        #ffffff;
  --text-muted:   #8a90a0;
  --border:       #3d4455;
  --success:      #2ecc71;
  --danger:       #e74c3c;

  --font-display: 'Barlow Condensed', sans-serif;
  --font-body:    'Inter', sans-serif;

  --radius:   6px;
  --radius-lg: 12px;
  --shadow:   0 4px 24px rgba(0,0,0,0.35);
  --transition: 0.22s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--steel-dark);
  line-height: 1.6;
  font-size: 16px;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  line-height: 1.1;
  letter-spacing: 0.02em;
}

/* ===== HEADER ===== */
.site-header {
  background: var(--steel-dark);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 3px solid var(--orange);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-icon {
  width: 44px;
  height: 44px;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo-name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 900;
  color: var(--white);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.logo-tagline {
  font-size: 11px;
  color: var(--orange);
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.main-nav a {
  color: var(--cream);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color var(--transition);
  position: relative;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0; right: 0;
  height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transition: transform var(--transition);
}

.main-nav a:hover { color: var(--orange); }
.main-nav a:hover::after { transform: scaleX(1); }

.nav-phone {
  background: var(--orange);
  color: var(--white) !important;
  padding: 8px 16px;
  border-radius: var(--radius);
  font-family: var(--font-display) !important;
  font-size: 18px !important;
  font-weight: 700 !important;
}
.nav-phone:hover { background: var(--orange-light) !important; color: var(--white) !important; }
.nav-phone::after { display: none !important; }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.menu-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--white);
  margin: 5px 0;
  transition: var(--transition);
}

/* ===== HERO ===== */
.hero {
  background: var(--steel-dark);
  position: relative;
  overflow: hidden;
  padding: 80px 24px 60px;
}

.hero-bg-pattern {
  position: absolute;
  inset: 0;
  background-image: 
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 40px,
      rgba(232,80,10,0.04) 40px,
      rgba(232,80,10,0.04) 41px
    );
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(232,80,10,0.15);
  border: 1px solid rgba(232,80,10,0.4);
  color: var(--orange-light);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero-badge::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--orange);
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero h1 {
  font-size: clamp(42px, 7vw, 90px);
  font-weight: 900;
  color: var(--white);
  text-transform: uppercase;
  line-height: 0.95;
  margin-bottom: 20px;
}

.hero h1 span { color: var(--orange); }

.hero-sub {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 40px;
  line-height: 1.7;
}

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

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 64px;
  max-width: 600px;
}

.hero-stat {
  background: var(--steel-mid);
  padding: 20px 24px;
  text-align: center;
}

.stat-num {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 900;
  color: var(--orange);
  line-height: 1;
}

.stat-label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 4px;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
}

.btn-primary {
  background: var(--orange);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--orange-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(232,80,10,0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.3);
}
.btn-secondary:hover {
  border-color: var(--orange);
  color: var(--orange);
}

.btn-outline {
  background: transparent;
  color: var(--orange);
  border-color: var(--orange);
}
.btn-outline:hover {
  background: var(--orange);
  color: var(--white);
}

/* ===== SECTIONS ===== */
.section {
  padding: 72px 24px;
}

.section-dark {
  background: var(--steel-dark);
  color: var(--white);
}

.section-mid {
  background: var(--steel-mid);
  color: var(--white);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  margin-bottom: 48px;
}

.section-eyebrow {
  font-size: 12px;
  font-weight: 600;
  color: var(--orange);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.section-title {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1.0;
}

.section-title span { color: var(--orange); }

.divider {
  width: 48px;
  height: 4px;
  background: var(--orange);
  border-radius: 2px;
  margin-top: 16px;
}

/* ===== FILTER BAR ===== */
.filter-bar {
  background: var(--white);
  border: 1px solid #e0dcd6;
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 200px;
}

.filter-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.filter-group select,
.filter-group input {
  flex: 1;
  padding: 9px 14px;
  border: 1.5px solid #ddd;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--steel-dark);
  background: var(--cream);
  transition: border-color var(--transition);
}

.filter-group select:focus,
.filter-group input:focus {
  outline: none;
  border-color: var(--orange);
}

/* ===== VEHICLE GRID ===== */
.vehicles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.vehicle-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
  transition: transform var(--transition), box-shadow var(--transition);
  border: 1px solid #e8e4de;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
}

.vehicle-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

.card-image-wrap {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: var(--steel-mid);
}

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

.vehicle-card:hover .card-image-wrap img {
  transform: scale(1.05);
}

.card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.badge-vehicle { background: var(--orange); color: var(--white); }
.badge-piece { background: var(--steel-dark); color: var(--white); border: 1px solid var(--orange); }

.card-photo-count {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0,0,0,0.65);
  color: var(--white);
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.card-body {
  padding: 18px 20px 20px;
}

.card-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 6px;
  color: var(--steel-dark);
}

.card-ref {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}

.card-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.card-meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: var(--steel-light);
}

.card-meta-item svg { width: 14px; height: 14px; color: var(--orange); }

.card-price {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 900;
  color: var(--orange);
}

.card-price small {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-muted);
  font-family: var(--font-body);
}

.card-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===== DETAIL PAGE ===== */
.detail-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-bottom: 32px;
}

.gallery-main {
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 420px;
  background: var(--steel-mid);
  cursor: zoom-in;
}

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

.gallery-thumbs {
  display: flex;
  gap: 8px;
}

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

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

.detail-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
  align-items: start;
}

.detail-specs {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid #e8e4de;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.spec-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.spec-item {
  padding: 14px 0;
  border-bottom: 1px solid #f0ece6;
}

.spec-item:nth-child(odd) { padding-right: 20px; border-right: 1px solid #f0ece6; }
.spec-item:nth-child(even) { padding-left: 20px; }

.spec-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  margin-bottom: 4px;
}

.spec-value {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--steel-dark);
}

.contact-card {
  background: var(--steel-dark);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: sticky;
  top: 88px;
}

.contact-card h3 {
  font-size: 24px;
  font-weight: 900;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.contact-card p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.contact-phone {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 900;
  color: var(--orange);
  text-decoration: none;
  display: block;
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}

.contact-info-line {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

/* ===== SERVICES SECTION ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.service-card {
  background: var(--steel-mid);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  border: 1px solid var(--border);
  transition: border-color var(--transition), transform var(--transition);
}

.service-card:hover {
  border-color: var(--orange);
  transform: translateY(-3px);
}

.service-icon {
  width: 52px;
  height: 52px;
  background: rgba(232,80,10,0.12);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--orange);
}

.service-icon svg { width: 28px; height: 28px; }

.service-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--white);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.service-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ===== ABOUT SECTION ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-content h2 { margin-bottom: 20px; }

.about-content p {
  font-size: 16px;
  line-height: 1.8;
  color: #5a5f6e;
  margin-bottom: 16px;
}

.about-highlights {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 32px;
}

.highlight-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.highlight-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
  margin-top: 7px;
  flex-shrink: 0;
}

.about-visual {
  background: var(--steel-dark);
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
}

.about-visual-inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.info-block {
  background: var(--steel-mid);
  border-radius: var(--radius);
  padding: 20px;
  border-left: 4px solid var(--orange);
}

.info-block-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 6px;
}

.info-block-value {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
}

/* ===== CONTACT SECTION ===== */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--steel-dark);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid #ddd;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--steel-dark);
  background: var(--cream);
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--orange);
  background: var(--white);
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.contact-info-panel {
  padding: 8px 0;
}

.contact-info-panel h3 {
  font-size: 30px;
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.info-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 28px;
}

.info-icon {
  width: 44px;
  height: 44px;
  background: var(--orange);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--white);
}

.info-icon svg { width: 22px; height: 22px; }

.info-text strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 3px;
}

.info-text span {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

.hours-table {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 20px;
  margin-top: 20px;
}

.hours-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #e0dcd6;
  font-size: 14px;
}

.hours-row:last-child { border-bottom: none; }
.hours-row strong { color: var(--steel-dark); }
.hours-row span { color: var(--orange); font-weight: 600; }

/* ===== FOOTER ===== */
.site-footer {
  background: var(--steel-dark);
  color: var(--cream);
  border-top: 3px solid var(--orange);
}

.footer-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 24px 40px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
}

.footer-brand p {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 16px;
  line-height: 1.7;
  max-width: 300px;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--orange);
  margin-bottom: 16px;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--orange); }

.footer-bottom {
  border-top: 1px solid var(--steel-mid);
  padding: 20px 24px;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-muted);
}

/* ===== EMPTY STATE ===== */
.empty-state {
  text-align: center;
  padding: 80px 24px;
  color: var(--text-muted);
}

.empty-state svg {
  width: 64px;
  height: 64px;
  opacity: 0.3;
  margin-bottom: 16px;
}

.empty-state p {
  font-size: 18px;
}

/* ===== NOTIFICATIONS ===== */
.notification {
  position: fixed;
  bottom: 24px;
  right: 24px;
  padding: 14px 20px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--shadow);
  z-index: 9999;
  transform: translateY(80px);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.notification.show {
  transform: translateY(0);
  opacity: 1;
}

.notification.success { background: var(--success); color: var(--white); }
.notification.error { background: var(--danger); color: var(--white); }

/* ===== BREADCRUMB ===== */
.breadcrumb {
  background: var(--steel-dark);
  padding: 14px 24px;
  border-bottom: 1px solid var(--border);
}

.breadcrumb-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
}

.breadcrumb-inner a { color: var(--text-muted); text-decoration: none; }
.breadcrumb-inner a:hover { color: var(--orange); }
.breadcrumb-inner span { color: var(--cream); }
.breadcrumb-sep { color: var(--border); }

/* ===== LOADER ===== */
.loader {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px;
}

.loader-spinner {
  width: 40px; height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--orange);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ===== NO PHOTO PLACEHOLDER ===== */
.no-photo {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--steel-mid);
  color: var(--text-muted);
  gap: 8px;
}
.no-photo svg { width: 40px; height: 40px; opacity: 0.4; }
.no-photo span { font-size: 12px; opacity: 0.6; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .detail-layout { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .contact-layout { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .main-nav { display: none; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0; background: var(--steel-dark); padding: 20px 24px; gap: 20px; border-bottom: 2px solid var(--orange); }
  .main-nav.open { display: flex; }
  .menu-toggle { display: flex; flex-direction: column; }
  .hero h1 { font-size: 48px; }
  .hero-stats { grid-template-columns: 1fr; max-width: 100%; }
  .vehicles-grid { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr; gap: 32px; }
  .form-row { grid-template-columns: 1fr; }
}
