/*
  LCK Auto Ventures — style.css
  Tailwind-like utility + custom brand overrides.
  Brand colors:
    - Primary dark: #28292e
    - Accent maroon: #8f272d
    - Text: white / gray-100
*/

:root {
  --brand-dark: #28292e;
  --brand-darker: #1d1e22;
  --brand-accent: #8f272d;
  --brand-accent-light: #a83239;
  --brand-gold: #c9a227;
  --text-main: #ffffff;
  --text-muted: #a1a1aa;
  --border: rgba(255, 255, 255, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* The header is fixed, so anchor targets need to clear it when scrolled to. */
[id] {
  scroll-margin-top: 5.5rem;
}

body {
  background-color: var(--brand-dark);
  color: var(--text-main);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
}

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

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

/* Keyboard focus needs to be visible; buttons and links had no focus style. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--brand-gold);
  outline-offset: 2px;
  border-radius: 0.25rem;
}

/* Custom button variants */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  font-weight: 600;
  border-radius: 0.5rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
  cursor: pointer;
  border: 1px solid transparent;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background-color: var(--brand-accent);
  color: #fff;
}

.btn-primary:hover {
  background-color: var(--brand-accent-light);
  box-shadow: 0 8px 20px rgba(143, 39, 45, 0.35);
}

.btn-secondary {
  background-color: transparent;
  color: #fff;
  border-color: var(--border);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.25);
}

.btn-whatsapp {
  background-color: #25d366;
  color: #fff;
}

.btn-whatsapp:hover {
  background-color: #1ebe57;
}

.btn-gold {
  background-color: var(--brand-gold);
  color: #1d1e22;
}

.btn-gold:hover {
  background-color: #dbb53a;
}

/* Form elements */
.form-group {
  margin-bottom: 1rem;
}

.form-label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #e4e4e7;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  color: #fff;
  font-size: 1rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: #71717a;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--brand-accent);
  box-shadow: 0 0 0 3px rgba(143, 39, 45, 0.25);
  background-color: rgba(255, 255, 255, 0.07);
}

.form-select option {
  background-color: var(--brand-darker);
  color: #fff;
}

input[type="checkbox"] {
  accent-color: var(--brand-accent);
}

/* Header / nav — matches the Jawa Yezdi dealer microsite: black bar, brand
   wordmark at the left, centred uppercase nav, single white pill CTA. */
#site-header {
  background-color: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-logo {
  height: 30px;
  width: auto;
  display: block;
}

@media (min-width: 768px) {
  .site-logo {
    height: 37px;
  }
}

/* Visually hidden but still read by screen readers, so the dealer name is
   announced even though the logo image shows the manufacturer wordmark. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.topnav-link {
  position: relative;
  padding: 0.35rem 0;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: #d4d4d8;
  white-space: nowrap;
  transition: color 0.15s ease;
}

.topnav-link:hover {
  color: #fff;
}

.topnav-link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background-color: #fff;
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

.topnav-link:hover::after,
.topnav-link.active::after {
  transform: scaleX(1);
}

.topnav-link.active {
  color: #fff;
}

.topnav-phone {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #d4d4d8;
  white-space: nowrap;
  transition: color 0.15s ease;
}

.topnav-phone:hover {
  color: #fff;
}

/* White pill CTA, as on the reference site */
.btn-book {
  background-color: #fff;
  color: #111;
  border-radius: 9999px;
  padding: 0.6rem 1.35rem;
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
}

.btn-book:hover {
  background-color: #e9e9ec;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.nav-link {
  position: relative;
  padding: 0.5rem 0;
  color: #e4e4e7;
  font-weight: 500;
  transition: color 0.15s ease;
}

.nav-link:hover {
  color: #fff;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background-color: var(--brand-accent);
  transition: width 0.2s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Hero */
.hero-section {
  position: relative;
  background: linear-gradient(135deg, var(--brand-dark) 0%, var(--brand-darker) 100%);
  overflow: hidden;
}

/* Hero photo layer at 50% opacity, sitting on the brand gradient above.
   Kept as its own ::after layer (rather than a background on .hero-section)
   so the opacity applies to the photo alone and not to the hero's content. */
.hero-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('/images/hero-banner.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.2;
  pointer-events: none;
  z-index: 0;
}

/* At 20% the photo is subtle enough that the original brand glow is all the
   overlay the hero needs — a dark scrim on top would erase the image. */
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 30%, rgba(143, 39, 45, 0.18), transparent 55%);
  pointer-events: none;
  z-index: 1;
}

/* Hero content must sit above both layers. The markup already applies
   relative z-10 to the two hero columns; this covers anything else. */
.hero-section > * {
  position: relative;
  z-index: 2;
}

/* Product imagery.
   The official Jawa dealer microsite shows each bike whole — object-fit: contain
   on a light panel — rather than cropping it to fill the frame. Matched here so
   no part of the motorcycle is cut off at any card size. */
.product-media {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f4f4f5;
  padding: 0.75rem;
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

/* Card images link through to the model detail page. */
.card-image-link {
  position: relative;
  cursor: pointer;
}

.card-image-link::after {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(143, 39, 45, 0);
  transition: background-color 0.2s ease;
  pointer-events: none;
}

.model-card:hover .card-image-link::after {
  background-color: rgba(143, 39, 45, 0.08);
}

/* Cards */
.model-card {
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.model-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
  border-color: rgba(143, 39, 45, 0.5);
}

.model-card img {
  transition: transform 0.3s ease;
}

.model-card:hover img {
  transform: scale(1.04);
}

/* A contained image already touches the panel edges, so scaling it on hover
   would push the wheels outside the wrapper and clip them — the very cropping
   contain is here to avoid. Keep the lift on the card, not the bike. */
.model-card .product-media img,
.model-card:hover .product-media img {
  transform: none;
}

/* Trust badges */
.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.9rem;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
}

/* Offer strip */
.offer-strip {
  background: linear-gradient(90deg, var(--brand-accent), var(--brand-accent-light));
}

/* FAQ accordion */
.faq-answer {
  overflow: hidden;
  transition: max-height 0.25s ease;
}

/* Social icons whose real profile URL is not configured yet: keep them visible
   but non-interactive so they don't look like working links. */
[data-social-placeholder] {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

/* Footer */
.footer-link {
  color: var(--text-muted);
  transition: color 0.15s ease;
}

.footer-link:hover {
  color: #fff;
}

/* Modal */
.modal-overlay {
  background-color: rgba(0, 0, 0, 0.75);
  transition: opacity 0.2s ease;
}

.modal-dialog {
  transition: transform 0.2s ease;
  transform: scale(0.96);
}

.modal-overlay.opacity-100 .modal-dialog {
  transform: scale(1);
}

/* Map embed */
.map-embed {
  border: 0;
  width: 100%;
  height: 100%;
  min-height: 320px;
  border-radius: 0.75rem;
}

/* Sticky bottom bar */
.sticky-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background-color: var(--brand-darker);
  border-top: 1px solid var(--border);
}

@media (min-width: 768px) {
  .sticky-bottom-bar {
    display: none;
  }
}

/* Floating WhatsApp */
.whatsapp-float {
  position: fixed;
  bottom: 84px;
  right: 16px;
  z-index: 40;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
  transition: transform 0.15s ease;
}

.whatsapp-float:hover {
  transform: scale(1.08);
}

@media (min-width: 768px) {
  .whatsapp-float {
    bottom: 24px;
  }
}

/* Section heading underline */
.section-title {
  position: relative;
  display: inline-block;
  padding-bottom: 0.75rem;
  margin-bottom: 1.5rem;
}

.section-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 48px;
  height: 3px;
  background-color: var(--brand-accent);
  border-radius: 2px;
}

/* Tables */
.table-brand {
  width: 100%;
  border-collapse: collapse;
}

.table-brand th,
.table-brand td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.table-brand th {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.875rem;
}

/* Lazy image placeholder shimmer */
.lazy-image {
  background-color: var(--brand-darker);
  background-image: linear-gradient(90deg, rgba(255,255,255,0.03) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.03) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

.lazy-image.loaded {
  animation: none;
  background-image: none;
}

/* On a product panel the shimmer runs over the light backdrop, not the dark one,
   so the panel doesn't flash dark before the bike appears. */
.product-media.lazy-image {
  background-color: #f4f4f5;
}

.product-media.lazy-image:not(.loaded) {
  background-image: linear-gradient(90deg, rgba(0,0,0,0.03) 25%, rgba(0,0,0,0.07) 50%, rgba(0,0,0,0.03) 75%);
  background-size: 200% 100%;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Print styles */
@media print {
  .sticky-bottom-bar,
  .whatsapp-float,
  #site-header {
    display: none !important;
  }
}
