/* =========================================================
   DirectAuto — Buy Direct Auto Broker Inc.
   Computer Systems Design and Related Services
   Theme: near-black with cyan accent (dark)
   ========================================================= */

:root {
  --bg: #0B0E14;
  --bg-2: #0E121B;
  --surface: #111722;
  --surface-2: #161D2A;
  --border: #1F2836;
  --border-2: #2A3547;
  --text: #E8EAED;
  --muted: #A8B2C1;
  --muted-2: #7C8799;
  --accent: #06B6D4;
  --accent-bright: #22D3EE;
  --accent-deep: #0891B2;
  --danger: #F0502E;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-size: 16px;
  font-family: "Segoe UI", "Inter", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: var(--accent-bright);
  text-decoration: none;
}

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

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

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

h1, h2, h3, h4 {
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* =========================================================
   Navigation — centered inline logo, links on both sides
   ========================================================= */

.logo-center-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: #0A0D13;
  border-bottom: 1px solid var(--border);
}

.logo-center-nav .nav-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 32px;
}

.nav-group {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-left {
  justify-content: flex-start;
}

.nav-right {
  justify-content: flex-end;
}

.nav-group a {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: color 0.2s ease;
}

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

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

.logo-center-nav .brand:hover {
  color: var(--text);
}

.brand .mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--accent-bright), var(--accent-deep));
  color: #06131A;
  font-weight: 900;
  font-size: 1rem;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 10px;
  background-color: var(--accent);
  color: #06131A;
  font-weight: 700;
  font-size: 0.88rem;
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.nav-cta:hover {
  background-color: var(--accent-bright);
  color: #06131A;
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid var(--border-2);
  border-radius: 10px;
  background-color: var(--surface);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  border-radius: 2px;
  background-color: var(--text);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 0 32px 24px;
  background-color: #0A0D13;
  border-bottom: 1px solid var(--border);
}

.mobile-menu a {
  padding: 12px 0;
  color: var(--muted);
  font-weight: 600;
  border-bottom: 1px solid var(--border);
}

.mobile-menu a:last-child {
  border-bottom: none;
}

.mobile-menu .nav-cta {
  margin-top: 12px;
  justify-content: center;
}

.logo-center-nav.open .mobile-menu {
  display: flex;
}

.logo-center-nav.open .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.logo-center-nav.open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.logo-center-nav.open .nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* =========================================================
   Hero — full width headline + vehicle search panel
   ========================================================= */

.search-hero {
  position: relative;
  padding: 96px 0 88px;
  background-color: var(--bg);
  background-image:
    radial-gradient(1100px 480px at 50% -10%, #0B2A36 0%, transparent 60%),
    linear-gradient(180deg, #0B0E14 0%, #0B0E14 100%);
  border-bottom: 1px solid var(--border);
}

.search-hero .container {
  text-align: center;
}

.search-hero .eyebrow {
  display: inline-block;
  margin-bottom: 22px;
  padding: 8px 16px;
  border: 1px solid var(--border-2);
  border-radius: 999px;
  color: var(--accent-bright);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background-color: var(--surface);
}

.search-hero h1 {
  font-size: clamp(2.4rem, 5.4vw, 4.1rem);
  max-width: 900px;
  margin: 0 auto 22px;
  letter-spacing: -0.03em;
}

.search-hero h1 .highlight {
  color: var(--accent-bright);
}

.search-hero .lead {
  max-width: 680px;
  margin: 0 auto 40px;
  color: var(--muted);
  font-size: 1.12rem;
}

.search-panel {
  max-width: 1080px;
  margin: 0 auto;
  padding: 28px;
  border: 1px solid var(--border-2);
  border-radius: 18px;
  background-color: var(--surface);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  text-align: left;
}

.search-panel .panel-title {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 18px;
}

.quote-form {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.quote-form .field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.quote-form label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.quote-form input,
.quote-form select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border-2);
  border-radius: 10px;
  background-color: var(--bg-2);
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
}

.quote-form input:focus,
.quote-form select:focus {
  outline: none;
  border-color: var(--accent);
}

.quote-form select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23A8B2C1' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 34px;
}

.quote-form .submit-btn {
  align-self: flex-end;
  padding: 12px 18px;
  border: none;
  border-radius: 10px;
  background-color: var(--accent);
  color: #06131A;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.quote-form .submit-btn:hover {
  background-color: var(--accent-bright);
  transform: translateY(-1px);
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

.hero-chips span {
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
  background-color: var(--bg-2);
}

/* =========================================================
   About
   ========================================================= */

.about-section {
  padding: 96px 0;
  background-color: var(--bg-2);
  border-bottom: 1px solid var(--border);
}

.about-section .about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.about-section .kicker {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--accent-bright);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.about-section h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  margin-bottom: 24px;
}

.about-copy p {
  color: var(--muted);
  margin-bottom: 18px;
  font-size: 1.05rem;
}

.about-copy p strong {
  color: var(--text);
}

.about-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.metric-card {
  padding: 26px;
  border: 1px solid var(--border-2);
  border-radius: 16px;
  background-color: var(--surface);
}

.metric-card .metric-value {
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--accent-bright);
}

.metric-card .metric-label {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.95rem;
}

/* =========================================================
   Tabbed content
   ========================================================= */

.tabbed-sections {
  padding: 96px 0;
  background-color: var(--bg);
  border-bottom: 1px solid var(--border);
}

.tabbed-sections .section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}

.tabbed-sections .kicker {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--accent-bright);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.tabbed-sections h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.5rem);
  margin-bottom: 16px;
}

.tabbed-sections .section-head p {
  color: var(--muted);
}

.tab-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 36px;
}

.tab-btn {
  padding: 12px 22px;
  border: 1px solid var(--border-2);
  border-radius: 999px;
  background-color: var(--bg-2);
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.tab-btn:hover {
  color: var(--text);
  border-color: var(--accent);
}

.tab-btn.active {
  background-color: var(--accent);
  color: #06131A;
  border-color: var(--accent);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
  animation: tabFade 0.35s ease;
}

@keyframes tabFade {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

.tab-panel .tab-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.tab-panel h3 {
  font-size: 1.5rem;
  margin-bottom: 16px;
  color: var(--text);
}

.tab-panel p {
  color: var(--muted);
  margin-bottom: 16px;
}

.tab-panel .tab-list {
  list-style: none;
}

.tab-panel .tab-list li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 12px;
  color: var(--muted);
}

.tab-panel .tab-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background-color: var(--accent);
}

.tab-panel .tab-side {
  padding: 28px;
  border: 1px solid var(--border-2);
  border-radius: 16px;
  background-color: var(--surface);
}

.tab-panel .tab-side h4 {
  font-size: 1rem;
  margin-bottom: 12px;
  color: var(--accent-bright);
}

.tab-panel .tab-side p {
  margin-bottom: 0;
  font-size: 0.98rem;
}

/* =========================================================
   Numeral features
   ========================================================= */

.numeral-features {
  padding: 96px 0;
  background-color: var(--bg-2);
  border-bottom: 1px solid var(--border);
}

.numeral-features .section-head {
  max-width: 640px;
  margin-bottom: 56px;
}

.numeral-features .kicker {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--accent-bright);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.numeral-features h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.5rem);
}

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

.feature-card {
  padding: 30px 26px;
  border: 1px solid var(--border-2);
  border-radius: 16px;
  background-color: var(--surface);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.feature-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}

.feature-card .numeral {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 18px;
}

.feature-card h3 {
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--muted);
  font-size: 0.95rem;
}

/* =========================================================
   Contact
   ========================================================= */

.contact-section {
  padding: 96px 0;
  background-color: var(--bg);
  border-bottom: 1px solid var(--border);
}

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

.contact-section .kicker {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--accent-bright);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.contact-section h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.5rem);
  margin-bottom: 20px;
}

.contact-section .contact-copy > p {
  color: var(--muted);
  margin-bottom: 28px;
  font-size: 1.05rem;
}

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

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

.contact-item .icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background-color: var(--surface);
  border: 1px solid var(--border-2);
  color: var(--accent-bright);
  font-weight: 800;
}

.contact-item .label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 2px;
}

.contact-item .value {
  color: var(--text);
  font-weight: 600;
}

.contact-form-card {
  padding: 32px;
  border: 1px solid var(--border-2);
  border-radius: 18px;
  background-color: var(--surface);
}

.contact-form-card h3 {
  font-size: 1.3rem;
  margin-bottom: 22px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-form .field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact-form label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--border-2);
  border-radius: 10px;
  background-color: var(--bg-2);
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
}

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

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

.contact-form .submit-btn {
  padding: 14px 20px;
  border: none;
  border-radius: 10px;
  background-color: var(--accent);
  color: #06131A;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.contact-form .submit-btn:hover {
  background-color: var(--accent-bright);
}

.form-status {
  min-height: 1.2em;
  margin-top: 4px;
  color: var(--accent-bright);
  font-size: 0.92rem;
  font-weight: 600;
}

/* =========================================================
   Footer — multi column
   ========================================================= */

.footer-multi {
  padding: 72px 0 40px;
  background-color: #080B10;
  border-top: 1px solid var(--border);
}

.footer-multi .footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
}

.footer-multi .footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 16px;
}

.footer-multi .footer-brand .mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--accent-bright), var(--accent-deep));
  color: #06131A;
  font-weight: 900;
}

.footer-multi .footer-about {
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 320px;
}

.footer-multi h4 {
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 18px;
}

.footer-multi ul {
  list-style: none;
}

.footer-multi ul li {
  margin-bottom: 12px;
}

.footer-multi ul a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
}

.footer-multi ul a:hover {
  color: var(--accent-bright);
}

.footer-multi .footer-contact p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 10px;
}

.footer-multi .footer-bottom {
  padding-top: 32px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted-2);
  font-size: 0.88rem;
}

.footer-multi .footer-bottom a {
  color: var(--muted-2);
}

.footer-multi .footer-bottom a:hover {
  color: var(--accent-bright);
}

/* =========================================================
   Scroll reveal
   ========================================================= */

.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: none;
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 1024px) {
  .quote-form {
    grid-template-columns: repeat(2, 1fr);
  }

  .quote-form .submit-btn {
    grid-column: span 2;
  }

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

  .footer-multi .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  .logo-center-nav .nav-inner {
    display: flex;
    justify-content: space-between;
  }

  .nav-group {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .about-section .about-grid,
  .tab-panel .tab-grid,
  .contact-section .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 20px;
  }

  .search-hero {
    padding: 64px 0 56px;
  }

  .quote-form {
    grid-template-columns: 1fr;
  }

  .quote-form .submit-btn {
    grid-column: auto;
  }

  .feature-grid,
  .about-metrics {
    grid-template-columns: 1fr;
  }

  .footer-multi .footer-top {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-multi .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}
