/* ═══════════════════════════════════════════════════
   DTV MOTORS — Main Stylesheet
   All pages share this file for consistent look & feel
   ═══════════════════════════════════════════════════ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=Oswald:wght@400;500;600;700&display=swap');

/* ── CSS Variables (Design Tokens) ── */
:root {
  /* Brand colors */
  --brand-50:  #fefbe6;
  --brand-100: #fdf3b8;
  --brand-200: #fce988;
  --brand-300: #f9dc55;
  --brand-400: #f6d02a;
  --brand-500: #f2c400;  /* Primary gold/amber */
  --brand-600: #d4ab00;
  --brand-700: #a98800;
  --brand-800: #7f6600;
  --brand-900: #554400;

  /* Surface/background colors */
  --surface-950: #0a0a0b;
  --surface-900: #111113;
  --surface-800: #1a1a1e;
  --surface-700: #242429;
  --surface-600: #2e2e35;

  /* Text colors */
  --text-primary: #e4e4e7;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;
  --text-white: #ffffff;

  /* Borders */
  --border-subtle: rgba(255, 255, 255, 0.05);
  --border-light: rgba(255, 255, 255, 0.10);
  --border-brand: rgba(242, 196, 0, 0.20);

  /* Spacing */
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 20px;
  --radius-xl: 24px;

  /* Typography */
  --font-display: 'Oswald', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  margin: 0;
  font-family: var(--font-body);
  background-color: var(--surface-950);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* ── Utility: Alpine.js cloak ── */
[x-cloak] { display: none !important; }

/* ── Grain Texture Overlay ── */
.grain::after {
  content: '';
  position: fixed;
  inset: 0;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
}

/* ── Typography ── */
.font-display { font-family: var(--font-display); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.1;
  color: var(--text-white);
}

/* ── Navigation ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: all 0.3s ease;
}

.nav--scrolled {
  background: rgba(10, 10, 11, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
}

.nav__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

@media (min-width: 640px) {
  .nav__inner { height: 5rem; padding: 0 1.5rem; }
}

.nav__logo {
  display: flex;
  align-items: center;
  transition: transform 0.2s ease;
}
.nav__logo:hover { transform: scale(1.05); }
.nav__logo img { height: 2.5rem; width: auto; }
@media (min-width: 640px) {
  .nav__logo img { height: 3rem; }
}

/* Desktop nav links */
.nav__links {
  display: none;
  align-items: center;
  gap: 0.25rem;
}
@media (min-width: 768px) {
  .nav__links { display: flex; }
}

.nav__link {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s ease;
  position: relative;
}
.nav__link:hover { color: var(--text-white); }
.nav__link--active { color: var(--brand-400); font-weight: 600; }
.nav__link--active::after { width: calc(100% - 2rem); background: var(--brand-500); }
.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0.25rem;
  left: 1rem;
  width: 0;
  height: 2px;
  background: var(--brand-500);
  transition: width 0.3s ease;
}
.nav__link:hover::after { width: calc(100% - 2rem); }

/* Language switcher */
.nav__lang {
  margin-left: 1rem;
  padding: 0.375rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  border: 1px solid var(--border-light);
  border-radius: 9999px;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}
.nav__lang:hover {
  border-color: rgba(242, 196, 0, 0.5);
  color: var(--brand-400);
}

/* CTA button */
.nav__cta {
  margin-left: 0.75rem;
  padding: 0.5rem 1.25rem;
  background: var(--brand-500);
  color: var(--surface-950);
  font-size: 0.875rem;
  font-weight: 700;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
}
.nav__cta:hover {
  background: var(--brand-400);
  box-shadow: 0 4px 20px rgba(242, 196, 0, 0.2);
}

/* Mobile hamburger */
.nav__hamburger {
  display: block;
  padding: 0.5rem;
  color: var(--text-secondary);
  background: none;
  border: none;
  cursor: pointer;
}
.nav__hamburger:hover { color: var(--text-white); }
@media (min-width: 768px) {
  .nav__hamburger { display: none; }
}

/* Mobile menu dropdown */
.nav__mobile {
  padding-bottom: 1rem;
}
.nav__mobile-inner {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  background: rgba(26, 26, 30, 0.8);
  backdrop-filter: blur(20px);
  border-radius: 0.75rem;
  padding: 0.75rem;
  border: 1px solid var(--border-subtle);
  animation: slideDown 0.3s ease-out;
}
.nav__mobile-link {
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: 0.5rem;
  transition: all 0.2s ease;
}
.nav__mobile-link:hover {
  color: var(--text-white);
  background: rgba(255, 255, 255, 0.05);
}
.nav__mobile-link--active {
  color: var(--brand-400);
  font-weight: 600;
  background: rgba(242, 196, 0, 0.06);
}
.nav__mobile-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
  padding: 0 1rem;
}
.nav__mobile-cta {
  flex: 1;
  text-align: center;
  padding: 0.625rem 1rem;
  background: var(--brand-500);
  color: var(--surface-950);
  font-size: 0.875rem;
  font-weight: 700;
  border-radius: 0.5rem;
}
.nav__mobile-lang {
  padding: 0.625rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  border: 1px solid var(--border-light);
  border-radius: 0.5rem;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
}

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

/* ── Footer ── */
.footer {
  border-top: 1px solid var(--border-subtle);
  background: var(--surface-950);
}
.footer__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 3rem 1rem 2rem;
}
@media (min-width: 640px) {
  .footer__inner { padding: 4rem 1.5rem 2rem; }
}
.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 640px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .footer__grid { grid-template-columns: 2fr 1fr 1fr; }
}

.footer__brand-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  max-width: 28rem;
  line-height: 1.6;
  margin-top: 1rem;
}

.footer__social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.footer__social-link {
  width: 2.25rem;
  height: 2.25rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}
.footer__social-link:hover {
  background: rgba(242, 196, 0, 0.1);
  border-color: var(--border-brand);
}
.footer__social-link svg {
  width: 1rem;
  height: 1rem;
  fill: var(--text-muted);
}

.footer__heading {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--text-white);
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}
.footer__link {
  display: block;
  font-size: 0.875rem;
  color: var(--text-muted);
  padding: 0.375rem 0;
  transition: color 0.2s ease;
}
.footer__link:hover { color: var(--brand-400); }

.footer__bottom {
  border-top: 1px solid var(--border-subtle);
  margin-top: 2.5rem;
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
@media (min-width: 640px) {
  .footer__bottom { flex-direction: row; justify-content: space-between; }
}
.footer__copyright {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn--primary {
  padding: 0.875rem 1.75rem;
  background: var(--brand-500);
  color: var(--surface-950);
  border-radius: 0.75rem;
  font-size: 1rem;
}
.btn--primary:hover {
  background: var(--brand-400);
  box-shadow: 0 8px 25px rgba(242, 196, 0, 0.25);
  transform: translateY(-1px);
}

.btn--outline {
  padding: 0.875rem 1.75rem;
  background: transparent;
  color: var(--text-white);
  border: 1px solid var(--border-light);
  border-radius: 0.75rem;
  font-size: 1rem;
}
.btn--outline:hover {
  border-color: rgba(242, 196, 0, 0.3);
  background: rgba(255, 255, 255, 0.05);
}

/* ── Section helpers ── */
.section {
  padding: 3.5rem 0;
}
@media (min-width: 640px) {
  .section { padding: 5rem 0; }
}
@media (min-width: 1024px) {
  .section { padding: 6rem 0; }
}
.section--alt {
  background: rgba(17, 17, 19, 0.5);
}
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}
@media (min-width: 640px) {
  .container { padding: 0 1.5rem; }
}

.section__label {
  color: var(--brand-500);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.section__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2rem;
  color: var(--text-white);
  margin-top: 0.75rem;
}
@media (min-width: 640px) {
  .section__title { font-size: 2.5rem; }
}
@media (min-width: 1024px) {
  .section__title { font-size: 3rem; }
}

/* ── Glow border effect ── */
.glow-border {
  box-shadow: 0 0 0 1px rgba(242, 196, 0, 0.15),
              0 0 30px -10px rgba(242, 196, 0, 0.2);
}

/* ── Card base ── */
.card {
  background: rgba(26, 26, 30, 0.5);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: all 0.3s ease;
}
.card:hover {
  border-color: var(--border-brand);
  transform: translateY(-2px);
}

/* ── Badge ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 1rem;
  background: rgba(242, 196, 0, 0.1);
  border: 1px solid rgba(242, 196, 0, 0.2);
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-400);
}
.badge__dot {
  width: 0.5rem;
  height: 0.5rem;
  background: var(--brand-500);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

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

/* ── Scroll indicator ── */
.scroll-indicator {
  animation: bounce-slow 2s ease-in-out infinite;
}
@keyframes bounce-slow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* ── Hero gradient ── */
.hero-gradient {
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(242, 196, 0, 0.08) 0%, transparent 60%),
              radial-gradient(ellipse 60% 40% at 80% 20%, rgba(242, 196, 0, 0.04) 0%, transparent 50%);
}

/* ── Decorative diagonal lines ── */
.diagonal-lines {
  background-image: repeating-linear-gradient(135deg, transparent, transparent 60px, rgba(242, 196, 0, 0.01) 60px, rgba(242, 196, 0, 0.01) 61px);
}

/* ── Page wrapper (adds nav spacing) ── */
.page-wrapper {
  padding-top: 5rem;
}

/* ── Stars rating ── */
.stars { display: flex; gap: 0.25rem; }
.stars svg { width: 1rem; height: 1rem; fill: var(--brand-500); }

/* ═══════════════════════════════════════════
   FLOATING CONTACT BUTTON
   Add to any page for quick client contact
   ═══════════════════════════════════════════ */
.float-contact {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
}

.float-contact__btn {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  transition: all 0.3s ease;
  font-size: 1.5rem;
}
.float-contact__btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(0,0,0,0.4);
}

.float-contact__main {
  background: var(--brand-500);
  color: var(--surface-950);
}
.float-contact__main:hover {
  background: var(--brand-400);
}

.float-contact__options {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
}

.float-contact__option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 1rem 0.5rem 1.25rem;
  background: var(--surface-800);
  border: 1px solid var(--border-light);
  border-radius: 2rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  transition: all 0.2s ease;
  animation: floatIn 0.3s ease backwards;
}
.float-contact__option:nth-child(1) { animation-delay: 0s; }
.float-contact__option:nth-child(2) { animation-delay: 0.05s; }
.float-contact__option:nth-child(3) { animation-delay: 0.1s; }

.float-contact__option:hover {
  background: var(--surface-700);
  border-color: var(--brand-500);
  transform: translateX(-4px);
}

.float-contact__option-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

@keyframes floatIn {
  from { opacity: 0; transform: translateY(10px) scale(0.9); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ═══════════════════════════════════════════
   ANIMATED COUNTER (for stats)
   ═══════════════════════════════════════════ */
.count-up {
  display: inline-block;
  transition: all 0.3s ease;
}
