/* ============================================
   Zastrow Auto Group, LLC — Main Stylesheet
   Industry: Computer Systems Design & Related Services
   ============================================ */

:root {
  --bg: #0E1016;
  --surface: #171925;
  --surface-alt: #1E2030;
  --surface-hover: #242638;
  --primary: #38BDF8;
  --primary-hover: #0EA5E9;
  --primary-muted: rgba(56, 189, 248, 0.12);
  --secondary: #E879F9;
  --secondary-hover: #D946EF;
  --secondary-muted: rgba(232, 121, 249, 0.12);
  --accent-gradient: linear-gradient(135deg, #38BDF8, #818CF8);
  --accent-gradient-2: linear-gradient(135deg, #E879F9, #FB923C);
  --light-bg: #F5F6FA;
  --light-surface: #FFFFFF;
  --text-on-dark: #E2E4EA;
  --text-on-dark-muted: #9A9DB0;
  --text-on-light: #212431;
  --text-on-light-muted: #6B6F82;
  --border: rgba(255, 255, 255, 0.08);
  --border-light: rgba(0, 0, 0, 0.08);
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 8px 48px rgba(0, 0, 0, 0.35);
  --shadow-card: 0 2px 12px rgba(0, 0, 0, 0.12);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-sans: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  background: var(--bg);
  color: var(--text-on-dark);
  line-height: 1.7;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--primary-hover);
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.25;
  font-weight: 700;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-sm {
  max-width: 900px;
}

/* ============================================
   NAVIGATION (.site-nav — class selector)
   ============================================ */

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(14, 16, 22, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition), box-shadow var(--transition);
}

.site-nav.scrolled {
  background: rgba(14, 16, 22, 0.95);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

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

.site-nav .nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-on-dark);
  letter-spacing: -0.02em;
}

.site-nav .nav-logo .logo-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-gradient);
}

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

.site-nav .nav-links a {
  font-size: 0.925rem;
  font-weight: 500;
  color: var(--text-on-dark-muted);
  position: relative;
  padding: 6px 0;
}

.site-nav .nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-gradient);
  border-radius: 1px;
  transition: width var(--transition);
}

.site-nav .nav-links a:hover,
.site-nav .nav-links a.active {
  color: var(--text-on-dark);
}

.site-nav .nav-links a:hover::after,
.site-nav .nav-links a.active::after {
  width: 100%;
}

.site-nav .nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: #0E1016 !important;
  padding: 10px 22px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.875rem;
  transition: all var(--transition);
}

.site-nav .nav-cta:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(56, 189, 248, 0.35);
}

.site-nav .nav-cta::after {
  display: none !important;
}

/* Mobile nav toggle */
.site-nav .nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 1001;
}

.site-nav .nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-on-dark);
  border-radius: 2px;
  transition: var(--transition);
}

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

.site-nav .nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

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

/* ============================================
   HERO SECTION
   ============================================ */

.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 24px 80px;
  background: var(--bg);
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-section::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(232, 121, 249, 0.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

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

.hero-section .hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 8px 20px;
  font-size: 0.825rem;
  font-weight: 500;
  color: var(--text-on-dark-muted);
  margin-bottom: 32px;
  letter-spacing: 0.02em;
}

.hero-section .hero-badge .badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% {}
}

.hero-section h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  background: linear-gradient(135deg, #FFFFFF 0%, #38BDF8 40%, #E879F9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
}

.hero-section .hero-description {
  font-size: 1.175rem;
  line-height: 1.75;
  color: var(--text-on-dark-muted);
  max-width: 640px;
  margin: 0 auto 40px;
}

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

.hero-section .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  font-family: var(--font-sans);
}

.hero-section .btn-primary {
  background: var(--primary);
  color: #0E1016;
}

.hero-section .btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(56, 189, 248, 0.35);
}

.hero-section .btn-outline {
  background: transparent;
  color: var(--text-on-dark);
  border: 1.5px solid var(--border);
}

.hero-section .btn-outline:hover {
  border-color: var(--primary);
  background: var(--primary-muted);
  transform: translateY(-2px);
}

/* ============================================
   ABOUT SECTION
   ============================================ */

.about-section {
  padding: 100px 24px;
  background: var(--surface);
  position: relative;
}

.about-section .about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.about-section .about-visual {
  position: relative;
}

.about-section .about-visual .visual-box {
  aspect-ratio: 4/3;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-section .about-visual .visual-box::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.06) 0%, rgba(232, 121, 249, 0.06) 100%);
}

.about-section .about-visual .visual-icon {
  font-size: 5rem;
  position: relative;
  z-index: 1;
  color: #309ACB;
}

.about-section .about-visual .floating-card {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  box-shadow: var(--shadow);
  z-index: 2;
}

.about-section .about-visual .floating-card .fc-number {
  font-size: 1.75rem;
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.about-section .about-visual .floating-card .fc-label {
  font-size: 0.8rem;
  color: var(--text-on-dark-muted);
  margin-top: 2px;
}

.about-section .section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 16px;
}

.about-section h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--text-on-dark);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.about-section .about-text {
  color: var(--text-on-dark-muted);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 24px;
}

.about-section .about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 32px;
}

.about-section .about-stat {
  text-align: center;
  padding: 20px 12px;
  background: var(--surface-alt);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.about-section .about-stat .stat-number {
  font-size: 1.75rem;
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.about-section .about-stat .stat-label {
  font-size: 0.8rem;
  color: var(--text-on-dark-muted);
  margin-top: 4px;
}

/* ============================================
   SERVICES SECTION
   ============================================ */

.services-section {
  padding: 100px 24px;
  background: var(--bg);
}

.services-section .section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 60px;
}

.services-section .section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 16px;
}

.services-section h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--text-on-dark);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.services-section .section-subtitle {
  color: var(--text-on-dark-muted);
  font-size: 1.05rem;
}

.services-section .services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 1200px;
  margin: 0 auto;
}

.services-section .service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px 32px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.services-section .service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-gradient);
  opacity: 0;
  transition: opacity var(--transition);
}

.services-section .service-card:hover {
  transform: translateY(-4px);
  border: 1px solid rgba(56, 189, 248, 0.3);
  box-shadow: var(--shadow-lg);
}

.services-section .service-card:hover::before {
  opacity: 1;
}

.services-section .service-card .card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: var(--primary-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.services-section .service-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-on-dark);
  margin-bottom: 12px;
}

.services-section .service-card p {
  font-size: 0.925rem;
  color: var(--text-on-dark-muted);
  line-height: 1.7;
}

/* ============================================
   FEATURES / WHY CHOOSE US SECTION
   ============================================ */

.features-section {
  padding: 100px 24px;
  background: var(--surface);
}

.features-section .features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
}

.features-section .feature-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 28px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--transition);
}

.features-section .feature-item:hover {
  border: 1px solid rgba(232, 121, 249, 0.3);
  transform: translateY(-2px);
}

.features-section .feature-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: var(--radius-sm);
  background: var(--secondary-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
}

.features-section .feature-content h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-on-dark);
  margin-bottom: 8px;
}

.features-section .feature-content p {
  font-size: 0.9rem;
  color: var(--text-on-dark-muted);
  line-height: 1.65;
}

.features-section h2 {
  text-align: center;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--text-on-dark);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.features-section .section-subtitle {
  text-align: center;
  color: var(--text-on-dark-muted);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto 48px;
}

/* ============================================
   STATS / COUNTER SECTION
   ============================================ */

.stats-section {
  padding: 80px 24px;
  background: var(--bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stats-section .stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
}

.stats-section .stat-item {
  text-align: center;
}

.stats-section .stat-value {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  background: var(--accent-gradient-2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}

.stats-section .stat-desc {
  font-size: 0.875rem;
  color: var(--text-on-dark-muted);
  margin-top: 8px;
  font-weight: 500;
}

/* ============================================
   CONTACT SECTION
   ============================================ */

.contact-section {
  padding: 100px 24px;
  background: var(--surface);
}

.contact-section .contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  max-width: 1200px;
  margin: 0 auto;
}

.contact-section h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--text-on-dark);
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}

.contact-section .contact-lead {
  color: var(--text-on-dark-muted);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 28px;
}

.contact-section .contact-info-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.contact-section .contact-info-item .info-icon {
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: var(--radius-sm);
  background: var(--primary-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.contact-section .contact-info-item .info-label {
  font-size: 0.775rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-on-dark-muted);
  margin-bottom: 4px;
}

.contact-section .contact-info-item .info-value {
  font-size: 1rem;
  color: var(--text-on-dark);
  font-weight: 500;
}

.contact-section .contact-form {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}

.contact-section .contact-form .form-group {
  margin-bottom: 18px;
}

.contact-section .contact-form label {
  display: block;
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--text-on-dark);
  margin-bottom: 6px;
}

.contact-section .contact-form input,
.contact-section .contact-form textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-on-dark);
  font-size: 0.9rem;
  font-family: var(--font-sans);
  transition: border-color var(--transition);
  resize: vertical;
}

.contact-section .contact-form input:focus,
.contact-section .contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.contact-section .contact-form textarea {
  min-height: 120px;
}

.contact-section .contact-form .btn-submit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  background: var(--primary);
  color: #0E1016;
  border: none;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.925rem;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: all var(--transition);
}

.contact-section .contact-form .btn-submit:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(56, 189, 248, 0.35);
}

.contact-section .form-success {
  display: none;
  text-align: center;
  padding: 32px;
}

.contact-section .form-success.visible {
  display: block;
}

.contact-section .form-success .success-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.contact-section .form-success p {
  color: var(--text-on-dark);
  font-size: 1.05rem;
}

/* ============================================
   FOOTER
   ============================================ */

.site-footer {
  padding: 28px 24px;
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.site-footer .footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.site-footer .footer-brand {
  font-size: 0.85rem;
  color: var(--text-on-dark-muted);
}

.site-footer .footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.site-footer .footer-links a {
  font-size: 0.85rem;
  color: var(--text-on-dark-muted);
  font-weight: 500;
  transition: color var(--transition);
}

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

.site-footer .footer-contact {
  font-size: 0.85rem;
  color: var(--text-on-dark-muted);
}

/* ============================================
   SCROLL REVEAL ANIMATION
   ============================================ */

.fade-up {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
  .about-section .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .services-section .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-section .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .features-section .features-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .site-nav .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    flex-direction: column;
    background: var(--surface);
    padding: 100px 32px 40px;
    gap: 20px;
    transition: right var(--transition);
    border-left: 1px solid var(--border);
    z-index: 1000;
  }

  .site-nav .nav-links.open {
    right: 0;
  }

  .site-nav .nav-toggle {
    display: flex;
  }

  .services-section .services-grid {
    grid-template-columns: 1fr;
  }

  .contact-section .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-section .hero-actions {
    flex-direction: column;
  }

  .about-section .about-stats {
    grid-template-columns: repeat(3, 1fr);
  }

  .site-footer .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .about-section .about-stats {
    grid-template-columns: 1fr;
  }

  .stats-section .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
}
