/* ============================================================
   AP MOTORS — Shared styles
   Modern, minimal, premium. Plus Jakarta Sans throughout.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@200;300;400;500;600;700;800&family=Instrument+Serif:ital@0;1&display=swap');

:root {
  --bg: #fafaf9;
  --bg-card: #ffffff;
  --bg-dark: #0f0f10;
  --bg-soft: #f4f3f0;
  --ink: #0f0f10;
  --ink-soft: #3a3a3c;
  --ink-muted: #767678;
  --ink-faint: #a8a8aa;
  --line: #e7e5e0;
  --line-strong: #c9c5bd;
  --accent: #1e6fff;       /* electric blue — modern EV feel */
  --accent-hover: #0a4fcc;
  --success: #16a34a;
  --danger: #dc2626;
  --whatsapp: #25d366;
  --whatsapp-dark: #128c7e;

  --sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --display: 'Instrument Serif', Georgia, serif;

  --container: 1240px;
  --radius: 14px;
  --radius-sm: 8px;
}

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

html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

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

/* ============ HEADER ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 250, 249, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
/* Prevent sticky header from covering anchor targets when jumping via #links */
[id] { scroll-margin-top: 90px; }
.site-header .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.brand-logo {
  height: 42px;
  width: auto;
  display: block;
}
.site-footer .brand-logo {
  filter: invert(1);
}
.header-nav {
  display: none;
  gap: 28px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
}
.header-nav a:hover { color: var(--ink); }
.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: background 0.2s;
}
.header-cta:hover { background: #2a2a2d; }
.header-cta svg { width: 14px; height: 14px; }

@media (min-width: 900px) {
  .header-nav { display: flex; }
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  border-radius: 999px;
  transition: all 0.2s ease;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--ink);
  color: #fff;
}
.btn-primary:hover {
  background: #2a2a2d;
  transform: translateY(-1px);
}
.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-outline:hover {
  border-color: var(--ink);
  background: #fff;
}
.btn-wa {
  background: var(--whatsapp);
  color: #fff;
}
.btn-wa:hover {
  background: var(--whatsapp-dark);
}
.btn svg { width: 18px; height: 18px; }

/* ============ WHATSAPP FLOAT ============ */
.wa-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 60px;
  height: 60px;
  background: var(--whatsapp);
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45), 0 0 0 6px rgba(37, 211, 102, 0.12);
  z-index: 40;
  transition: transform 0.2s;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 32px; height: 32px; }

/* ============ FOOTER ============ */
.site-footer {
  background: var(--bg-dark);
  color: #b0b0b2;
  padding: 60px 0 30px;
  margin-top: 100px;
}
.footer-content {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-top: 36px;
}
.footer-contact h4 {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #fff;
  font-weight: 600;
  margin-bottom: 12px;
}
.footer-contact a {
  font-size: 15px;
  color: #d4d4d6;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.footer-contact a:hover { color: #fff; }
.footer-contact svg { width: 16px; height: 16px; }
.footer-bottom {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid #1f1f22;
  font-size: 12px;
  color: #6a6a6c;
  text-align: center;
  letter-spacing: 0.02em;
}

@media (min-width: 768px) {
  .footer-content { flex-direction: row; justify-content: space-between; align-items: flex-end; }
}
