/* ==========================================================================
   Sonnac Lanka Enterprises — Brand Design System
   Loaded LAST (after dark-theme.css) so its :root tokens win the cascade
   and flow into the legacy Motoz template's var() references automatically,
   without rewriting the 750-line !important override sheet underneath it.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* ---- Brand colors, sampled from the logo ---- */
  --brand-red: #B8202E;
  --brand-red-light: #D62E3F;
  --brand-navy: #123A5C;
  --brand-navy-light: #1B4D78;
  --brand-gold: #EFC12E;
  --brand-silver: #A8ACB2;

  /* ---- Surface scale (replaces 5 scattered near-black legacy vars) ---- */
  --surface-0: #0A0E13;
  --surface-1: #10151C;
  --surface-2: #161C25;
  --surface-3: #1E2630;
  --surface-border: rgba(168, 172, 178, 0.14);

  /* ---- Text ---- */
  --text-primary: #F5F7FA;
  --text-secondary: #A8ACB2;
  --text-muted: #6B7280;

  /* ---- Re-point legacy template variables at the new system ---- */
  --mainColor: var(--brand-red);
  --heroColor: var(--surface-0);
  --footerColor: var(--surface-1);
  --copyrightColor: var(--surface-0);
  --headerTopColor: var(--surface-0);
  --aztechColor: var(--surface-2);
  --codColor: var(--surface-1);
  --grayColor: var(--text-secondary);
  --bodyFont: 'Inter', sans-serif;

  /* ---- Typography scale ---- */
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.375rem;
  --text-2xl: 1.75rem;
  --text-3xl: 2.25rem;
  --text-4xl: 3rem;
  --text-5xl: 3.75rem;

  /* ---- Spacing scale ---- */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-8: 48px;
  --space-10: 64px;
  --space-12: 96px;

  /* ---- Motion ---- */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --duration-fast: 150ms;
  --duration-base: 250ms;
  --duration-slow: 400ms;

  /* ---- Radius / elevation ---- */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 999px;
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.28);
  --shadow-card-hover: 0 12px 32px rgba(184, 32, 46, 0.18), 0 4px 16px rgba(0, 0, 0, 0.35);
}

body {
  background-color: var(--surface-0);
  color: var(--text-primary);
  font-family: var(--font-body);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

a, button, .cursor-pointer, [role="button"] {
  cursor: pointer;
}

/* ==========================================================================
   Reusable brand components — use these across every redesigned section
   instead of introducing one-off styles per page.
   ========================================================================== */

/* Small uppercase label used above section headings, e.g. "— New Arrivals" */
.brand-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-gold);
}
.brand-eyebrow::before {
  content: "";
  width: 24px;
  height: 2px;
  background: var(--brand-red);
  display: inline-block;
}

/* Buttons */
.btn-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 14px 32px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-base);
  border-radius: var(--radius-full);
  border: none;
  text-decoration: none;
  transition: transform var(--duration-fast) var(--ease-out),
              box-shadow var(--duration-fast) var(--ease-out),
              background-color var(--duration-fast) var(--ease-out),
              color var(--duration-fast) var(--ease-out),
              border-color var(--duration-fast) var(--ease-out);
}
.btn-brand-primary {
  background: var(--brand-red);
  color: #fff;
  box-shadow: 0 4px 16px rgba(184, 32, 46, 0.35);
}
.btn-brand-primary:hover,
.btn-brand-primary:focus-visible {
  background: var(--brand-red-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(184, 32, 46, 0.45);
  color: #fff;
}
.btn-brand-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--surface-border);
}
.btn-brand-outline:hover,
.btn-brand-outline:focus-visible {
  border-color: var(--brand-gold);
  color: var(--brand-gold);
  transform: translateY(-2px);
}

/* Cards — vehicle cards, testimonial cards, etc. build on this */
.brand-card {
  background: var(--surface-2);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: transform var(--duration-base) var(--ease-out),
              box-shadow var(--duration-base) var(--ease-out),
              border-color var(--duration-base) var(--ease-out);
}
.brand-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(184, 32, 46, 0.35);
}

/* Small gold pill badge — ratings, "featured", highlights */
.badge-gold {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(239, 193, 46, 0.12);
  color: var(--brand-gold);
  border: 1px solid rgba(239, 193, 46, 0.3);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* Focus ring — visible keyboard focus across all interactive elements */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--brand-gold);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
