/* ===== VanTechCampers - Dark Rugged Theme ===== */
:root {
  --bg-dark: #0f1114;
  --bg-card: #1a1d23;
  --bg-card-hover: #22262e;
  --bg-section-alt: #141720;
  --text-primary: #f0f0f2;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  --accent: #e97a2b;
  --accent-hover: #f59542;
  --accent-glow: rgba(233, 122, 43, 0.15);
  --accent-dark: #c4641f;
  --green: #22c55e;
  --border: rgba(255,255,255,0.06);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: 0.3s ease;
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Inter', sans-serif;
  --container: 1160px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ===== Navbar ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: all var(--transition);
}

.navbar.scrolled {
  background: rgba(15, 17, 20, 0.95);
  backdrop-filter: blur(20px);
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.logo-van { color: var(--text-primary); }
.logo-campers { color: var(--accent); }

.nav-links {
  display: flex;
  list-style: none;
  gap: 36px;
  align-items: center;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition);
  letter-spacing: 0.01em;
}

.nav-links a:hover { color: var(--text-primary); }

.nav-cta {
  background: var(--accent);
  color: var(--bg-dark) !important;
  padding: 10px 24px;
  border-radius: 100px;
  font-weight: 600 !important;
  transition: background var(--transition), transform var(--transition) !important;
}

.nav-cta:hover {
  background: var(--accent-hover) !important;
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition);
}

.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(233, 122, 43, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(59, 130, 246, 0.04) 0%, transparent 50%),
    linear-gradient(180deg, #0f1114 0%, #141720 100%);
}

.hero-overlay {
  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.015'%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");
}

.hero-content {
  position: relative;
  text-align: center;
  max-width: 800px;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  margin-bottom: 40px;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  letter-spacing: 0.01em;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 24px rgba(233, 122, 43, 0.3);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(233, 122, 43, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid rgba(255,255,255,0.15);
}

.btn-outline:hover {
  border-color: rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.05);
}

.btn-full { width: 100%; }

.btn.sent {
  background: var(--green);
  box-shadow: 0 4px 24px rgba(34, 197, 94, 0.3);
}

/* ===== Section Headers ===== */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 12px;
}

.section-header h2,
.about-content h2,
.contact-info h2 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 16px;
}

.section-header p {
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* ===== Services ===== */
.services {
  padding: 120px 0;
  background: var(--bg-dark);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 32px;
  transition: all var(--transition);
}

.service-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(233, 122, 43, 0.2);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.service-icon {
  width: 56px;
  height: 56px;
  background: var(--accent-glow);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--accent);
}

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

.service-card h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.service-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ===== About ===== */
.about {
  padding: 120px 0;
  background: var(--bg-section-alt);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-content .section-tag { display: block; }

.about-lead {
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-bottom: 16px;
  font-weight: 400;
}

.about-content p {
  color: var(--text-secondary);
  margin-bottom: 32px;
  line-height: 1.7;
}

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

.feature {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.feature-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  background: var(--accent-glow);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.feature-icon svg { width: 20px; height: 20px; }

.feature strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.feature span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.about-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-image-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--bg-card);
  border: 2px dashed rgba(255,255,255,0.08);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.about-image-placeholder svg { width: 100px; }

/* ===== Gallery ===== */
.gallery {
  padding: 120px 0;
  background: var(--bg-dark);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.gallery-item { border-radius: var(--radius); overflow: hidden; }

.gallery-placeholder {
  aspect-ratio: 4/3;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 0.85rem;
  transition: all var(--transition);
}

.gallery-placeholder:hover {
  background: var(--bg-card-hover);
  border-color: rgba(233,122,43,0.15);
}

.gallery-placeholder svg { width: 32px; height: 32px; opacity: 0.4; }

/* ===== Contact ===== */
.contact {
  padding: 120px 0;
  background: var(--bg-section-alt);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-info .section-tag { display: block; }

.contact-info p {
  color: var(--text-secondary);
  margin-bottom: 32px;
  line-height: 1.7;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.contact-detail svg { width: 20px; height: 20px; color: var(--accent); min-width: 20px; }

.social-links {
  display: flex;
  gap: 12px;
}

.social-link {
  width: 44px;
  height: 44px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all var(--transition);
}

.social-link:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  transform: translateY(-2px);
}

.social-link svg { width: 20px; height: 20px; }

/* ===== Form ===== */
.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
}

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

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color var(--transition);
  outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%239ca3af' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

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

/* ===== Footer ===== */
.footer {
  padding: 60px 0 30px;
  background: var(--bg-dark);
  border-top: 1px solid var(--border);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 8px;
}

.footer-links {
  display: flex;
  gap: 32px;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: color var(--transition);
}

.footer-links a:hover { color: var(--text-primary); }

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: color var(--transition);
}

.footer-social a:hover { color: var(--accent); }
.footer-social svg { width: 18px; height: 18px; }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* ===== Window Selector ===== */
.window-selector {
  padding: 120px 0;
  background: var(--bg-section-alt);
}

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

/* Brand Selector */
.brand-selector {
  margin-bottom: 48px;
}

.selector-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 20px;
  text-align: center;
}

.brand-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  max-width: 800px;
  margin: 0 auto;
}

.brand-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  min-width: 100px;
}

.brand-btn:hover {
  background: var(--bg-card-hover);
  border-color: rgba(233, 122, 43, 0.2);
  transform: translateY(-2px);
}

.brand-btn.selected {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 4px 20px rgba(233, 122, 43, 0.3);
}

.brand-btn.selected .brand-icon,
.brand-btn.selected .brand-name {
  color: #fff;
}

.brand-icon {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 0.05em;
}

.brand-name {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* Window Configurator */
.window-configurator {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  align-items: start;
}

.van-diagram {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  position: relative;
}

.van-svg {
  width: 100%;
  max-width: 450px;
  margin: 0 auto;
  display: block;
}

.window-zone {
  fill: rgba(34, 197, 94, 0.1);
  stroke: var(--green);
  stroke-width: 2;
  cursor: pointer;
  transition: all 0.2s ease;
  opacity: 0;
}

.window-zone:hover {
  opacity: 0.6;
}

.window-zone.selected {
  fill: var(--green);
  stroke: var(--green);
  opacity: 1;
}

.window-labels {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
  min-height: 28px;
}

.window-label {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-dark);
  padding: 4px 10px;
  border-radius: 4px;
  opacity: 0.5;
  transition: all 0.2s ease;
}

.window-label:hover {
  opacity: 1;
  color: var(--accent);
}

/* Selection Panel */
.selection-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

.selected-windows {
  margin-bottom: 24px;
}

.selected-windows h4 {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.window-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 80px;
}

.window-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  background: var(--bg-dark);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
}

.window-list li .window-code {
  color: var(--text-primary);
  font-weight: 500;
}

.window-list li .window-price {
  color: var(--accent);
  font-weight: 600;
}

.window-list li .remove-window {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

.window-list li .remove-window:hover {
  color: #ef4444;
}

.window-list .empty-message {
  color: var(--text-muted);
  font-style: italic;
  justify-content: center;
}

/* Cost Calculator */
.cost-calculator {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  margin-bottom: 24px;
}

.cost-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.cost-row.total {
  border-top: 1px solid var(--border);
  margin-top: 8px;
  padding-top: 16px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.cost-row.total span:last-child {
  color: var(--accent);
}

/* Basket Actions */
.basket-actions {
  display: flex;
  gap: 12px;
}

.basket-actions .btn {
  flex: 1;
  padding: 12px 16px;
  font-size: 0.85rem;
}

/* Basket Message */
.basket-message {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  padding: 12px;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid var(--green);
  border-radius: var(--radius-sm);
  color: var(--green);
  font-size: 0.9rem;
  font-weight: 500;
}

.basket-message.visible {
  display: flex;
  animation: fadeIn 0.3s ease;
}

.basket-message svg {
  width: 18px;
  height: 18px;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 900px) {
  .window-configurator {
    grid-template-columns: 1fr;
  }
  
  .selection-panel {
    max-width: 400px;
    margin: 0 auto;
    width: 100%;
  }
}

@media (max-width: 600px) {
  .brand-grid {
    gap: 8px;
  }
  
  .brand-btn {
    padding: 12px 14px;
    min-width: 80px;
  }
  
  .brand-icon {
    font-size: 0.9rem;
  }
  
  .brand-name {
    font-size: 0.65rem;
  }
  
  .window-selector {
    padding: 80px 0;
  }
  
  .van-diagram {
    padding: 24px 16px;
  }
}

/* ===== Animations ===== */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger service cards */
.service-card.fade-in:nth-child(2) { transition-delay: 0.1s; }
.service-card.fade-in:nth-child(3) { transition-delay: 0.2s; }

.gallery-item.fade-in:nth-child(2) { transition-delay: 0.05s; }
.gallery-item.fade-in:nth-child(3) { transition-delay: 0.1s; }
.gallery-item.fade-in:nth-child(4) { transition-delay: 0.15s; }
.gallery-item.fade-in:nth-child(5) { transition-delay: 0.2s; }
.gallery-item.fade-in:nth-child(6) { transition-delay: 0.25s; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .services-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-visual { order: -1; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .footer-content { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  .nav-links {
    position: fixed;
    top: 0; right: 0;
    width: 280px;
    height: 100vh;
    background: rgba(15, 17, 20, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 80px 32px 32px;
    gap: 24px;
    transform: translateX(100%);
    transition: transform var(--transition);
    border-left: 1px solid var(--border);
  }

  .nav-links.active { transform: translateX(0); }

  .nav-links a { font-size: 1.1rem; }

  .nav-cta {
    text-align: center;
    width: 100%;
  }

  .services, .about, .gallery, .contact { padding: 80px 0; }
  .section-header { margin-bottom: 40px; }

  .contact-form { padding: 28px 24px; }
}

@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; max-width: 360px; margin: 0 auto; }
  .hero-actions { flex-direction: column; align-items: center; }
  .btn { width: 100%; max-width: 300px; }
}
