@import url('tokens.css');

:root {
  --bg: hsl(var(--ui-background));
  --bg-alt: #f8fafc;
  --surface: hsl(var(--ui-card));
  --card: hsl(var(--ui-card));
  --text: hsl(var(--ui-foreground));
  --muted: hsl(var(--ui-muted-foreground));
  --primary: hsl(var(--ui-primary));
  --primary-600: hsl(142.1 70.6% 38% / 1);
  --accent: hsl(var(--ui-accent));
  --ring: hsl(var(--ui-ring) / 0.35);
  --border: hsl(var(--ui-border));
  --shadow: 0 1px 2px rgba(2, 8, 23, 0.06), 0 8px 24px rgba(2, 8, 23, 0.06);
  --maxw: 1100px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background: linear-gradient(180deg, var(--bg), var(--bg-alt));
}
img, video { max-width: 100%; height: auto; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
@media (max-width: 640px) { .container { padding: 0 16px; } }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 68px; }
.nav { position: relative; }
.brand { color: var(--text); text-decoration: none; font-weight: 800; letter-spacing: 0.2px; font-size: 20px; }
.brand-accent { color: var(--primary); }
.nav .menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 10px; align-items: center; }
.nav a { color: var(--text); text-decoration: none; padding: 10px 12px; border-radius: 8px; }
.nav a:hover { background: #eef2f6; }
.nav .cta a { color: #ffffff; background: linear-gradient(180deg, var(--primary), var(--primary-600)); border: 1px solid transparent; }
.nav .cta a:hover { filter: brightness(1.05); box-shadow: 0 6px 18px rgba(34, 197, 94, 0.25); }
.nav-toggle { display: none; }

@media (max-width: 780px) {
  .nav-toggle { display: inline-flex; align-items: center; gap: 6px; background: transparent; color: var(--text); border: 1px solid var(--border); padding: 10px 12px; border-radius: 8px; }
  .menu { display: none; flex-direction: column; gap: 6px; position: absolute; right: 0; top: 56px; background: #ffffff; border: 1px solid var(--border); padding: 8px; border-radius: 12px; box-shadow: var(--shadow); z-index: 1000; min-width: 220px; }
  .menu.open { display: flex; }
  .menu li { width: 100%; }
  .menu a { display: block; width: 100%; padding: 12px; text-align: center; border-radius: 10px; }
  .menu .cta { display: none; }
}

/* Utility to control visibility per breakpoint without Bootstrap */
.mobile-only { display: none; }
.desktop-only { display: initial; }
@media (max-width: 780px) { .mobile-only { display: initial; } .desktop-only { display: none; } }

/* Hero */
.hero { padding: 80px 0 40px; position: relative; background: radial-gradient(600px 300px at 10% 0%, rgba(34, 197, 94, 0.12), transparent 60%), radial-gradient(600px 300px at 90% 0%, rgba(16, 185, 129, 0.12), transparent 60%); }
.hero-art { position: relative; border-radius: 16px; overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow); background: linear-gradient(135deg, #e7f7ef, #f6fdf9); aspect-ratio: 16 / 9; min-height: 240px; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 560px) { .hero { padding: 56px 0 24px; } .hero-art { aspect-ratio: 4 / 3; min-height: 200px; } .hero-actions { flex-direction: column; align-items: stretch; } .btn.lg { width: 100%; } }
.hero-inner { display: block; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 28px; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }
.eyebrow { color: var(--primary-600); font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase; margin: 0 0 6px; font-size: 12px; }
h1 { font-size: clamp(28px, 7vw, 44px); line-height: 1.1; margin: 6px 0 10px; }
.lead { color: var(--muted); font-size: clamp(15px, 3.5vw, 18px); max-width: 60ch; }
.hero-actions { display: flex; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
.hero-art { position: relative; border-radius: 16px; overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow); background: linear-gradient(135deg, #e7f7ef, #f6fdf9); }
.hero-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chip { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--border); background: #fff; color: var(--text); padding: 6px 10px; border-radius: 999px; font-size: 12px; }
.chip svg { width: 14px; height: 14px; color: var(--primary); }

/* Sections */
.section { padding: 48px 0; }
.section.alt { background: linear-gradient(180deg, #ffffff, #f5f8fb); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
h2 { font-size: clamp(22px, 4vw, 32px); margin: 0 0 20px; }
h3 { font-size: 20px; margin: 0 0 8px; }
h4 { font-size: 16px; margin: 0 0 6px; }
.section-header { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.section-header h2 { margin: 0; }
.underline { height: 3px; background: linear-gradient(90deg, var(--primary), transparent); border-radius: 999px; width: 120px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.hidden { display: none; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text);
  border: 1px solid #cbd5e1;
  padding: 12px 16px;
  border-radius: 10px;
  transition: all 0.15s ease;
  background: #ffffff;
  min-height: 44px;
  text-align: center;
  font-weight: 600;
}
.btn:hover { border-color: #cbd5e1; box-shadow: 0 0 0 4px var(--ring); }
.btn.primary { background: linear-gradient(180deg, var(--primary), var(--primary-600)); color: #ffffff; border-color: transparent; }
.btn.primary:hover { filter: brightness(1.05); box-shadow: 0 8px 30px rgba(34, 197, 94, 0.25), 0 0 0 4px var(--ring); }
.btn.ghost { background: transparent; }
.btn.small { padding: 10px 14px; font-size: 14px; }
.btn.lg { padding: 14px 18px; font-size: 16px; }
@media (max-width: 560px) { .btn, .btn.lg, .btn.small { border-radius: 12px; font-weight: 700; } }

/* Button rows */
.buttons-row { display: flex; flex-wrap: wrap; gap: 12px; }
.card-actions { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 560px) {
  .buttons-row, .card-actions { display: grid; grid-template-columns: 1fr; }
  .buttons-row .btn, .card-actions .btn { width: 100%; }
  .btn.small { padding: 12px 16px; font-size: 15px; }
}
button[disabled], .btn[disabled] { opacity: 0.7; cursor: not-allowed; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 900px) { .cards { grid-template-columns: 1fr; } }
.card { background: var(--card); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); }
.card-media { height: 200px; background: linear-gradient(135deg, #e7f7ef, #f6fdf9); border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: center; }
.card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vehicle-a { background-image: none; }
.vehicle-b { background-image: none; }
.card-body { padding: 16px; }
.specs { list-style: none; margin: 12px 0 14px; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; }
.specs li { color: var(--muted); font-size: 14px; }
.specs strong { color: var(--text); font-weight: 600; }
.card-actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* About */
.grid { display: grid; gap: 16px; }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .grid-4 { grid-template-columns: 1fr; } }
.feature { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 14px; box-shadow: var(--shadow); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 20px; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 16px; box-shadow: var(--shadow); }
.contact-form { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 16px; box-shadow: var(--shadow); }

.form-row { display: grid; gap: 6px; margin: 10px 0; }
.form-row.two { grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .form-row.two { grid-template-columns: 1fr; } }
label { font-size: 13px; color: var(--muted); }
input, select, textarea {
  width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--border);
  background: #ffffff; color: var(--text);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px var(--ring); }

/* Footer */
.site-footer { border-top: 1px solid var(--border); margin-top: 20px; background: #ffffff; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 66px; }
.footer-nav { display: flex; gap: 12px; }
.footer-nav a { color: var(--text); text-decoration: none; padding: 6px 8px; }
.footer-nav a:hover { color: var(--text); }

.disclaimer { margin-top: 14px; }

/* Showcase */
.showcase-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 900px) { .showcase-grid { grid-template-columns: 1fr; } }
.showcase-card { background: var(--card); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); }
.showcase-media { height: 260px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #e7f7ef, #f6fdf9); }
.showcase-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.showcase-body { padding: 16px; }
.config { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 10px; }
@media (max-width: 560px) { .config { grid-template-columns: 1fr; } }
.social { display: flex; flex-wrap: wrap; gap: 8px 12px; }
.social a { color: var(--text); text-decoration: none; border: 1px solid var(--border); padding: 6px 10px; border-radius: 999px; background: #fff; }
.social a:hover { border-color: #cbd5e1; box-shadow: 0 0 0 4px var(--ring); }

/* Page hero headings */
.page-hero { background: linear-gradient(180deg, #ffffff, #f5f8fb); border-bottom: 1px solid var(--border); padding: 36px 0; }
.page-hero h1 { margin: 0; }

/* CTA band */
.band { background: linear-gradient(90deg, rgba(34,197,94,0.10), rgba(16,185,129,0.10)); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow); }
@media (max-width: 560px) {
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 8px; }
  .band { display: grid; gap: 10px; }
  .band .card-actions { display: grid; gap: 8px; }
  .band .card-actions .btn { width: 100%; }
  .footer-nav { flex-wrap: wrap; }
}


