/* GSQ Services Ltd — mobile-first static site */
:root {
  --bg: #ffffff;
  --bg-soft: #f5f5f6;
  --bg-dark: #111111;
  --ink: #1a1a1a;
  --ink-muted: #5c5c5c;
  --line: #e4e4e7;
  --accent: #c9a227; /* warm gold */
  --accent-ink: #1a1a1a;
  --danger: #b91c1c;
  --radius: 12px;
  --shadow: 0 8px 28px rgba(0,0,0,.08);
  --max: 1120px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
ul { margin: 0; padding: 0; list-style: none; }
h1,h2,h3 { line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 .5em; }
p { margin: 0 0 1em; color: var(--ink-muted); }
.container { width: min(100% - 2rem, var(--max)); margin-inline: auto; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: .75rem 0;
}
.brand { display: flex; align-items: center; gap: .75rem; }
.brand img { width: 52px; height: 52px; object-fit: contain; border-radius: 50%; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-size: 1rem; }
.brand-text span { font-size: .72rem; color: var(--ink-muted); letter-spacing: .04em; text-transform: uppercase; }

.nav { display: none; gap: 1.25rem; align-items: center; }
.nav a { font-size: .95rem; font-weight: 500; }
.nav a.active { color: var(--accent); }
.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 10px;
  background: #fff; cursor: pointer;
}
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--ink); position: relative; }
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--ink);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

.nav.open {
  display: flex; flex-direction: column; align-items: stretch;
  position: absolute; left: 0; right: 0; top: 100%;
  background: #fff; border-bottom: 1px solid var(--line);
  padding: 1rem 1.25rem 1.25rem; gap: .75rem;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .8rem 1.2rem; border-radius: 999px; font-weight: 600; font-size: .95rem;
  border: 1px solid transparent; cursor: pointer; transition: .15s ease;
  text-align: center;
}
.btn-primary { background: var(--bg-dark); color: #fff; }
.btn-primary:hover { background: #000; color: #fff; }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { filter: brightness(1.05); color: var(--accent-ink); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-ghost-on-dark { background: transparent; border-color: rgba(255,255,255,.35); color: #fff; }
.btn-ghost-on-dark:hover { border-color: #fff; color: #fff; }
.btn-whatsapp { background: #25D366; color: #fff; }
.btn-whatsapp:hover { filter: brightness(1.05); color: #fff; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

/* Hero */
.hero {
  background: linear-gradient(160deg, #111 0%, #2a2a2a 55%, #1a1a1a 100%);
  color: #fff; padding: 3.5rem 0 3rem; position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: auto -20% -40% 40%; height: 80%;
  background: radial-gradient(circle, rgba(201,162,39,.25), transparent 60%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero-kicker {
  display: inline-block; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); font-weight: 600; margin-bottom: .75rem;
}
.hero h1 { font-size: clamp(2rem, 5vw, 3.1rem); color: #fff; max-width: 14ch; }
.hero p { color: #c9c9c9; max-width: 38ch; font-size: 1.05rem; }
.hero .btn-row { margin-top: 1.5rem; }

/* Sections */
.section { padding: 3.5rem 0; }
.section-soft { background: var(--bg-soft); }
.section-head { margin-bottom: 2rem; max-width: 40rem; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.eyebrow {
  font-size: .75rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); font-weight: 700; margin-bottom: .4rem;
}

/* Cards grid */
.grid-3 {
  display: grid; gap: 1.25rem;
  grid-template-columns: 1fr;
}
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.4rem; box-shadow: var(--shadow);
}
.card h3 { font-size: 1.1rem; margin-bottom: .4rem; }
.icon-dot {
  width: 40px; height: 40px; border-radius: 10px; background: var(--bg-dark);
  color: var(--accent); display: grid; place-items: center; font-weight: 800; margin-bottom: 1rem;
}

/* eBay shops */
.shop-cards { display: grid; gap: 1rem; grid-template-columns: 1fr; }
.shop-card {
  display: flex; flex-direction: column; gap: .75rem;
  border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem;
  background: #fff;
}
.shop-card strong { font-size: 1.15rem; }
.shop-card span { color: var(--ink-muted); font-size: .92rem; }

/* Why us */
.checks li {
  display: flex; gap: .75rem; align-items: flex-start;
  padding: .7rem 0; border-bottom: 1px solid var(--line); color: var(--ink-muted);
}
.checks li:last-child { border-bottom: 0; }
.checks li::before {
  content: "✓"; color: var(--accent); font-weight: 800; flex-shrink: 0;
}

/* Enquiry / contact */
.panel {
  background: var(--bg-dark); color: #fff; border-radius: calc(var(--radius) + 4px);
  padding: 1.75rem; box-shadow: var(--shadow);
}
.panel h2, .panel h3 { color: #fff; }
.panel p { color: #c9c9c9; }
.contact-list { display: grid; gap: .85rem; margin: 1.25rem 0; }
.contact-list a {
  display: flex; align-items: center; gap: .75rem;
  padding: .9rem 1rem; border-radius: 10px; background: #fff;
  border: 1px solid var(--line); color: var(--ink); font-weight: 500;
}
.contact-list a:hover { border-color: var(--ink); color: var(--ink); }
.contact-list .label { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); display: block; }
.panel .contact-list a {
  background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.1); color: #fff;
}
.panel .contact-list a:hover { border-color: var(--accent); color: #fff; }
.panel .contact-list .label { color: #aaa; }

/* Footer */
.site-footer {
  background: #0a0a0a; color: #aaa; padding: 2rem 0; font-size: .9rem;
  border-top: 1px solid #222;
}
.footer-inner {
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center;
}
.site-footer strong { color: #fff; }
.site-footer a:hover { color: var(--accent); }

/* Stock page */
.page-hero {
  padding: 2.25rem 0 1.5rem; border-bottom: 1px solid var(--line); background: var(--bg-soft);
}
.page-hero h1 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: .35rem; }
.filters {
  display: grid; gap: .75rem; margin: 1.5rem 0 1rem;
  grid-template-columns: 1fr 1fr;
}
.filters label { display: grid; gap: .35rem; font-size: .8rem; font-weight: 600; color: var(--ink-muted); }
.filters select, .filters input {
  width: 100%; padding: .7rem .8rem; border-radius: 10px;
  border: 1px solid var(--line); background: #fff; font: inherit; color: var(--ink);
}
.filters .span-2 { grid-column: 1 / -1; }
.results-meta {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap;
  gap: .75rem; margin-bottom: 1rem; font-size: .9rem; color: var(--ink-muted);
}
.results-meta .btn { flex-shrink: 0; }
.vehicle-grid {
  display: grid; gap: 1.25rem;
  grid-template-columns: 1fr;
}
.vehicle-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column;
  transition: transform .15s ease, box-shadow .15s ease;
}
.vehicle-card:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(0,0,0,.12); }
.vehicle-card .photo {
  position: relative; aspect-ratio: 16/10; background: #ddd; overflow: hidden;
}
.vehicle-card .photo img { width: 100%; height: 100%; object-fit: cover; }
.badge {
  position: absolute; top: .75rem; left: .75rem;
  background: var(--bg-dark); color: #fff; font-size: .7rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; padding: .35rem .55rem; border-radius: 6px;
}
.badge.sold { background: var(--danger); }
.badge.example { background: var(--accent); color: #111; }
.vehicle-card .body { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; gap: .55rem; flex: 1; }
.vehicle-card h3 { font-size: 1.05rem; margin: 0; }
.vehicle-card .variant { color: var(--ink-muted); font-size: .9rem; }
.vehicle-card .price {
  font-size: 1.35rem; font-weight: 800; color: var(--ink); letter-spacing: -0.02em;
}
.specs {
  display: grid; grid-template-columns: 1fr 1fr; gap: .4rem .75rem;
  font-size: .82rem; color: var(--ink-muted); margin-top: .25rem;
}
.specs span strong { color: var(--ink); font-weight: 600; display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; }
.empty-state {
  text-align: center; padding: 3rem 1rem; color: var(--ink-muted);
  border: 1px dashed var(--line); border-radius: var(--radius); background: #fff;
}

/* Vehicle detail */
.detail-layout {
  display: grid; gap: 1.5rem; padding: 1.75rem 0 3rem;
}
.gallery { display: grid; gap: .75rem; }
.gallery-main {
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  background: #eee; aspect-ratio: 16/10;
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: .5rem; flex-wrap: wrap; }
.gallery-thumbs button {
  border: 2px solid transparent; padding: 0; border-radius: 8px; overflow: hidden;
  width: 72px; height: 52px; cursor: pointer; background: #eee;
}
.gallery-thumbs button.active { border-color: var(--accent); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.detail-panel h1 { font-size: clamp(1.5rem, 3vw, 2rem); }
.detail-panel .price { font-size: 1.8rem; font-weight: 800; margin: .5rem 0 1rem; }
.spec-table {
  width: 100%; border-collapse: collapse; margin: 1rem 0 1.5rem; font-size: .95rem;
}
.spec-table th, .spec-table td {
  text-align: left; padding: .7rem .2rem; border-bottom: 1px solid var(--line);
}
.spec-table th { color: var(--ink-muted); font-weight: 500; width: 40%; }
.features { display: grid; gap: .45rem; margin: 1rem 0 1.5rem; }
.features li {
  padding-left: 1.2rem; position: relative; color: var(--ink-muted);
}
.features li::before {
  content: "•"; position: absolute; left: 0; color: var(--accent); font-weight: 800;
}
.notice {
  background: #fff8e6; border: 1px solid #f0d78c; color: #6b5300;
  padding: .85rem 1rem; border-radius: 10px; font-size: .9rem; margin-bottom: 1rem;
}

/* Desktop */
@media (min-width: 720px) {
  .nav { display: flex; }
  .nav-toggle { display: none; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .shop-cards { grid-template-columns: 1fr 1fr; }
  .filters { grid-template-columns: repeat(4, 1fr); }
  .filters .span-2 { grid-column: auto; }
  .vehicle-grid { grid-template-columns: repeat(2, 1fr); }
  .detail-layout { grid-template-columns: 1.2fr .8fr; align-items: start; }
  .hero { padding: 5rem 0 4.5rem; }
}
@media (min-width: 1024px) {
  .vehicle-grid { grid-template-columns: repeat(3, 1fr); }
  .brand img { width: 60px; height: 60px; }
}

/* Floating WhatsApp chat */
body { padding-bottom: 5.5rem; } /* keep content clear of FAB on mobile */
.wa-chat {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .65rem;
  pointer-events: none;
}
.wa-chat > * { pointer-events: auto; }
.wa-chat-panel {
  width: min(300px, calc(100vw - 2rem));
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(0,0,0,.18);
  padding: 1rem 1rem 1.1rem;
  transform-origin: bottom right;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px) scale(.98);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.wa-chat.open .wa-chat-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}
.wa-chat-panel-head {
  display: flex; align-items: center; gap: .7rem; margin-bottom: .75rem;
}
.wa-chat-panel-head img { width: 40px; height: 40px; flex-shrink: 0; }
.wa-chat-panel-head strong { display: block; font-size: .95rem; }
.wa-chat-panel-head span { display: block; font-size: .75rem; color: var(--ink-muted); }
.wa-chat-panel p {
  margin: 0 0 1rem; font-size: .9rem; color: var(--ink-muted); line-height: 1.45;
}
.wa-chat-close {
  position: absolute; top: .55rem; right: .55rem;
  width: 32px; height: 32px; border: 0; border-radius: 8px;
  background: transparent; cursor: pointer; color: var(--ink-muted); font-size: 1.25rem;
  line-height: 1;
}
.wa-chat-close:hover { background: var(--bg-soft); color: var(--ink); }
.wa-chat-panel { position: relative; }
.wa-chat-fab-wrap { position: relative; }
.wa-chat-fab {
  width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; color: #fff; border: 0;
  box-shadow: 0 10px 24px rgba(37,211,102,.4);
  cursor: pointer; display: grid; place-items: center;
  transition: transform .15s ease, filter .15s ease;
}
.wa-chat-fab:hover { filter: brightness(1.05); transform: scale(1.04); }
.wa-chat-fab:focus-visible { outline: 3px solid #111; outline-offset: 3px; }
.wa-chat-fab svg { width: 30px; height: 30px; display: block; }
.wa-chat-tooltip {
  position: absolute; right: calc(100% + .55rem); top: 50%; transform: translateY(-50%);
  background: #111; color: #fff; font-size: .78rem; font-weight: 600;
  padding: .4rem .65rem; border-radius: 8px; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity .15s ease;
}
.wa-chat-tooltip::after {
  content: ""; position: absolute; left: 100%; top: 50%; transform: translateY(-50%);
  border: 6px solid transparent; border-left-color: #111;
}
.wa-chat-fab-wrap:hover .wa-chat-tooltip,
.wa-chat-fab:focus-visible + .wa-chat-tooltip,
.wa-chat-tooltip.show-mobile {
  opacity: 1;
}
@media (max-width: 719px) {
  .wa-chat { right: .75rem; bottom: .75rem; }
  .wa-chat-tooltip { display: none; } /* avoid covering content; aria-label covers a11y */
  .wa-chat-fab { width: 54px; height: 54px; }
}
.price-call { font-size: 1.15rem !important; font-weight: 700; letter-spacing: 0; color: var(--ink); }
.detail-panel .price-call { font-size: 1.45rem !important; }
.home-stock-grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; margin-bottom: 1.25rem; }
@media (min-width: 720px) {
  .home-stock-grid { grid-template-columns: repeat(2, 1fr); max-width: 640px; }
}
