/* ============================================================
   db Automotive — standalone HTML/CSS version
   ============================================================ */

:root {
  --radius: 0.875rem;

  --background: #fbfcfd;
  --foreground: #0f1729;

  --card: #ffffff;
  --border: #e3e8ef;
  --muted-foreground: #5a6478;
  --secondary-bg: #f3f5f9;

  --hero: #131a2b;
  --hero-foreground: #f6f8fb;
  --gradient-hero: linear-gradient(135deg, #111827 0%, #1f2a44 50%, #2b4f9c 100%);

  --accent: #2e7af0;
  --accent-foreground: #ffffff;

  --shadow-glow: 0 20px 60px -20px rgba(46, 122, 240, 0.5);

  --grid-line: rgba(255, 255, 255, 0.06);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--background);
  color: var(--foreground);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }

/* ---------- Layout helpers ---------- */
.container {
  max-width: 1152px;
  margin: 0 auto;
  padding: 0 24px;
}
.container-sm { max-width: 720px; }
.center { text-align: center; }

.section { padding: 80px 0; }
@media (min-width: 640px) { .section { padding: 112px 0; } }

.section-alt {
  background: rgba(243, 245, 249, 0.5);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head { max-width: 640px; margin-bottom: 56px; }
.section-title {
  margin-top: 12px;
  font-size: 1.875rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
@media (min-width: 640px) { .section-title { font-size: 2.25rem; } }

.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
}
.eyebrow-light {
  display: inline-block;
  padding: 4px 16px;
  border-radius: 999px;
  border: 1px solid rgba(246, 248, 251, 0.2);
  background: rgba(246, 248, 251, 0.05);
  color: rgba(246, 248, 251, 0.8);
}

.muted { color: var(--muted-foreground); margin-top: 16px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  font-weight: 600;
  transition: opacity 0.2s, background 0.2s, border-color 0.2s;
  cursor: pointer;
  border: 0;
}
.btn-sm { padding: 8px 20px; font-size: 0.875rem; }
.btn-lg { padding: 12px 28px; font-size: 0.875rem; }
.btn-accent { background: var(--accent); color: var(--accent-foreground); }
.btn-accent:hover { opacity: 0.9; }
.btn-ghost {
  background: transparent;
  color: var(--hero-foreground);
  border: 1px solid rgba(246, 248, 251, 0.3);
}
.btn-ghost:hover { background: rgba(246, 248, 251, 0.1); }
.shadow-glow { box-shadow: var(--shadow-glow); }
.with-icon svg { width: 16px; height: 16px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  color: var(--hero-foreground);
}
.hero-bg {
  position: absolute; inset: 0;
  background: var(--gradient-hero);
  opacity: 0.9;
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.2;
}

.nav {
  position: relative;
  z-index: 10;
  max-width: 1152px;
  margin: 0 auto;
  padding: 24px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

/* Logo banner with seamless fade */
.logo-wrap {
  position: relative;
  z-index: 10;
  max-width: 896px;
  margin: 0 auto;
  padding: 0 24px;
}
.logo-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
}
.logo-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: screen;
  -webkit-mask-image: radial-gradient(ellipse at center, black 20%, rgba(0,0,0,0.6) 45%, transparent 75%);
          mask-image: radial-gradient(ellipse at center, black 20%, rgba(0,0,0,0.6) 45%, transparent 75%);
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 1152px;
  margin: 0 auto;
  padding: 32px 24px 96px;
  text-align: center;
}
@media (min-width: 640px) { .hero-content { padding-bottom: 128px; } }
.hero-title {
  max-width: 720px;
  margin: 24px auto 0;
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
@media (min-width: 640px) { .hero-title { font-size: 3.75rem; } }
.hero-sub {
  max-width: 600px;
  margin: 24px auto 0;
  font-size: 1.125rem;
  color: rgba(246, 248, 251, 0.8);
}
.hero-cta {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

/* ---------- Services grid ---------- */
.grid { display: grid; gap: 20px; }
.grid-services { grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-services { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-services { grid-template-columns: repeat(3, 1fr); } }

.grid-2 { grid-template-columns: 1fr; gap: 32px; }
@media (min-width: 768px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }

.card {
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 16px;
  padding: 24px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.card:hover {
  border-color: rgba(46, 122, 240, 0.5);
  box-shadow: var(--shadow-glow);
}
.card h3 { font-size: 1.125rem; font-weight: 600; }
.card p { margin-top: 8px; font-size: 0.875rem; color: var(--muted-foreground); }

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(46, 122, 240, 0.1);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  transition: background 0.2s, color 0.2s;
}
.card-icon svg { width: 20px; height: 20px; }
.card:hover .card-icon { background: var(--accent); color: var(--accent-foreground); }

/* ---------- Pricing card ---------- */
.price-card {
  border-radius: 24px;
  padding: 40px;
  color: var(--hero-foreground);
  background: var(--gradient-hero);
  box-shadow: var(--shadow-glow);
}
.price { margin-top: 16px; display: flex; align-items: baseline; gap: 8px; }
.price-amount { font-size: 3.75rem; font-weight: 700; letter-spacing: -0.02em; }
.price-unit { color: rgba(246, 248, 251, 0.7); }
.price-note { margin-top: 24px; color: rgba(246, 248, 251, 0.8); }

.info-stack {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
}
.info-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 16px;
  padding: 24px;
}
.info-card .card-icon { margin-bottom: 0; flex-shrink: 0; }
.info-card h3 { font-weight: 600; }
.info-card p { margin-top: 4px; font-size: 0.875rem; color: var(--muted-foreground); }

/* ---------- Contact ---------- */
.section-contact { padding: 96px 0; }
.section-contact .btn { margin-top: 40px; }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  text-align: center;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}
