/*
Theme Name: KZK Motors
Theme URI: https://kzkmotors.co.uk
Description: Premium car dealership theme for KZK Motors London. Luxury, performance, and prestige vehicles.
Version: 1.0.0
Author: KZK Motors
Author URI: https://kzkmotors.co.uk
License: Proprietary
Text Domain: kzk-motors
*/

/* ========================================================================
   CSS RESET & BASE
   ======================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@700;900&family=Montserrat:ital,wght@1,600&display=swap');

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #18181b;
  background-color: #fafafa;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background-color: #18181b;
  color: #fff;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

input {
  font-family: inherit;
}

/* ========================================================================
   UTILITY CLASSES
   ======================================================================== */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .container { padding: 0 1.5rem; }
}

@media (min-width: 1024px) {
  .container { padding: 0 2rem; }
}

.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;
}

/* ========================================================================
   WHATSAPP FLOATING BUTTON
   ======================================================================== */
.whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 50;
  background-color: #25D366;
  color: #fff;
  padding: 1rem;
  border-radius: 50%;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

.whatsapp-float svg {
  width: 2rem;
  height: 2rem;
}

.whatsapp-float .tooltip {
  position: absolute;
  right: 4rem;
  background: #fff;
  color: #18181b;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  font-size: 0.875rem;
  font-weight: 500;
  opacity: 0;
  transition: opacity 0.3s ease;
  white-space: nowrap;
  pointer-events: none;
}

.whatsapp-float:hover .tooltip {
  opacity: 1;
}

/* ========================================================================
   NAVIGATION
   ======================================================================== */
.navbar {
  background: rgba(24, 24, 27, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: fixed;
  width: 100%;
  z-index: 40;
  border-bottom: 1px solid #27272a;
}

.navbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 5rem;
}

@media (min-width: 768px) {
  .navbar-inner { height: 6rem; }
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  text-decoration: none;
}

.kzk-digital-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
  transition: transform 0.3s ease;
}

.kzk-digital-logo:hover {
  transform: scale(1.02);
}

.kzk-top {
  font-family: 'Orbitron', sans-serif;
  font-size: 2.5rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  color: transparent;
  -webkit-text-stroke: 2px #fff;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
}

.kzk-bottom {
  font-family: 'Montserrat', sans-serif;
  font-style: italic;
  font-size: 0.9rem;
  letter-spacing: 0.25em;
  font-weight: 600;
  color: transparent;
  -webkit-text-stroke: 1px #fff;
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.4);
  margin-top: 0.1rem;
}

@media (min-width: 768px) {
  .kzk-top { font-size: 3.5rem; -webkit-text-stroke: 3px #fff; }
  .kzk-bottom { font-size: 1.1rem; -webkit-text-stroke: 1.5px #fff; }
}

/* Desktop Nav Links */
.nav-links {
  display: none;
  align-items: center;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .nav-links { display: flex; }
}

.nav-link {
  color: #a1a1aa;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: #fff;
}

.nav-link-btn {
  background: #fff;
  color: #18181b;
  padding: 0.75rem 1.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background 0.2s ease;
  border-radius: 2px;
  display: inline-block;
}

.nav-link-btn:hover {
  background: #d4d4d8;
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: flex;
  align-items: center;
  padding: 0.5rem;
  color: #fff;
}

@media (min-width: 768px) {
  .mobile-menu-btn { display: none; }
}

.mobile-menu-btn svg {
  width: 1.5rem;
  height: 1.5rem;
}

/* Mobile Dropdown */
.mobile-menu {
  position: absolute;
  width: 100%;
  background: #fff;
  border-bottom: 1px solid #f4f4f5;
  transition: all 0.3s ease-in-out;
  opacity: 0;
  visibility: hidden;
  max-height: 0;
  overflow: hidden;
}

@media (min-width: 768px) {
  .mobile-menu { display: none !important; }
}

.mobile-menu.open {
  opacity: 1;
  visibility: visible;
  max-height: 300px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

.mobile-menu-inner {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.mobile-menu-link {
  color: #52525b;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.875rem;
  transition: color 0.2s ease;
}

.mobile-menu-link:hover {
  color: #18181b;
}

/* ========================================================================
   HERO SECTION
   ======================================================================== */
.hero {
  position: relative;
  padding-top: 5rem;
}

@media (min-width: 768px) {
  .hero { padding-top: 6rem; }
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-video {
  width: 100%;
  height: 60vh;
  object-fit: cover;
  pointer-events: none;
}

@media (min-width: 768px) {
  .hero-video { height: 80vh; }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.2));
}

.hero-content {
  position: relative;
  z-index: 10;
  height: 60vh;
  display: flex;
  align-items: center;
}

@media (min-width: 768px) {
  .hero-content { height: 80vh; }
}

.hero-text {
  max-width: 42rem;
  color: #fff;
}

.hero-title {
  font-size: 2.25rem;
  font-weight: 300;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  letter-spacing: 0.05em;
}

@media (min-width: 768px) {
  .hero-title { font-size: 3.75rem; }
}

@media (min-width: 1024px) {
  .hero-title { font-size: 4.5rem; }
}

.hero-title strong {
  font-weight: 600;
}

.hero-subtitle {
  font-size: 1rem;
  color: #d4d4d8;
  margin-bottom: 2.5rem;
  font-weight: 300;
  letter-spacing: 0.05em;
  max-width: 28rem;
}

@media (min-width: 768px) {
  .hero-subtitle { font-size: 1.125rem; }
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 640px) {
  .hero-buttons { flex-direction: row; }
}

.btn-primary {
  background: #fff;
  color: #18181b;
  padding: 1rem 2rem;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 2px;
  font-weight: 500;
  text-align: center;
}

.btn-primary:hover {
  background: #e4e4e7;
}

.btn-outline {
  background: transparent;
  border: 1px solid #fff;
  color: #fff;
  padding: 1rem 2rem;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 2px;
  text-align: center;
}

.btn-outline:hover {
  background: #fff;
  color: #18181b;
}

/* ========================================================================
   SHOWROOM SECTION
   ======================================================================== */
.showroom {
  padding: 6rem 0;
  background: #fafafa;
}

.showroom-header {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin-bottom: 3rem;
  gap: 2rem;
}

@media (min-width: 768px) {
  .showroom-header {
    flex-direction: row;
    align-items: flex-end;
  }
}

.showroom-title {
  font-size: 1.875rem;
  font-weight: 300;
  color: #18181b;
  margin-bottom: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.showroom-divider {
  width: 3rem;
  height: 2px;
  background: #18181b;
  margin-bottom: 1rem;
}

.showroom-subtitle {
  color: #71717a;
  font-weight: 300;
  font-size: 0.875rem;
}

/* Category Filters */
.category-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.category-btn {
  padding: 0.5rem 1.25rem;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: all 0.2s ease;
  border-radius: 2px;
  background: #fff;
  color: #71717a;
  border: 1px solid #e4e4e7;
}

.category-btn:hover {
  border-color: #18181b;
  color: #18181b;
}

.category-btn.active {
  background: #18181b;
  color: #fff;
  border-color: #18181b;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 6rem 2rem;
  background: #fff;
  border: 1px solid #f4f4f5;
  border-radius: 2px;
}

.empty-state svg {
  width: 3rem;
  height: 3rem;
  color: #e4e4e7;
  margin: 0 auto 1rem;
}

.empty-state h3 {
  font-size: 1.125rem;
  font-weight: 500;
  color: #18181b;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.empty-state p {
  color: #71717a;
  font-weight: 300;
  font-size: 0.875rem;
  line-height: 1.6;
}

/* Vehicle Grid */
.vehicle-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .vehicle-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .vehicle-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Vehicle Card */
.vehicle-card {
  background: #fff;
  border-radius: 2px;
  overflow: hidden;
  transition: box-shadow 0.5s ease;
  border: 1px solid #f4f4f5;
  cursor: pointer;
}

.vehicle-card:hover {
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

.vehicle-card-image {
  position: relative;
  height: 15rem;
  overflow: hidden;
  background: #f4f4f5;
}

.vehicle-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease-in-out;
}

.vehicle-card:hover .vehicle-card-image img {
  transform: scale(1.1);
}

.vehicle-card-type {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: #18181b;
  color: #fff;
  padding: 0.25rem 0.75rem;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 2px;
}

.vehicle-card-body {
  padding: 1.5rem;
}

.vehicle-card-name {
  font-size: 1.125rem;
  font-weight: 300;
  color: #18181b;
  margin-bottom: 0.5rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vehicle-card-price {
  font-size: 1.5rem;
  font-weight: 600;
  color: #18181b;
  margin-bottom: 1rem;
}

.vehicle-card-mileage {
  display: flex;
  align-items: center;
  color: #71717a;
  font-size: 0.75rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #f4f4f5;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.vehicle-card-mileage svg {
  width: 1rem;
  height: 1rem;
  margin-right: 0.5rem;
}

.vehicle-card-enquire {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #18181b;
  transition: color 0.2s ease;
  font-weight: 500;
}

.vehicle-card:hover .vehicle-card-enquire {
  color: #25D366;
}

.vehicle-card-enquire svg {
  width: 1rem;
  height: 1rem;
}

/* ========================================================================
   SELL YOUR CAR SECTION
   ======================================================================== */
.sell-section {
  padding: 6rem 0;
  background: #18181b;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.sell-bg-icon {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  opacity: 0.1;
  pointer-events: none;
}

.sell-bg-icon svg {
  width: 100%;
  height: 100%;
  color: #fff;
}

.sell-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 10;
}

@media (min-width: 1024px) {
  .sell-grid { grid-template-columns: 1fr 1fr; }
}

.sell-title {
  font-size: 1.875rem;
  font-weight: 300;
  margin-bottom: 1.5rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

@media (min-width: 768px) {
  .sell-title { font-size: 2.25rem; }
}

.sell-divider {
  width: 3rem;
  height: 2px;
  background: #fff;
  margin-bottom: 2rem;
}

.sell-description {
  color: #a1a1aa;
  font-weight: 300;
  font-size: 1.125rem;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.sell-features {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.sell-feature {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.sell-feature svg {
  width: 1.5rem;
  height: 1.5rem;
  color: #d4d4d8;
  flex-shrink: 0;
}

.sell-feature h4 {
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
}

.sell-feature p {
  color: #71717a;
  font-size: 0.875rem;
  font-weight: 300;
}

/* Sell Form */
.sell-form-card {
  background: #fff;
  border-radius: 2px;
  padding: 2rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  color: #18181b;
}

@media (min-width: 768px) {
  .sell-form-card { padding: 2.5rem; }
}

.sell-form-title {
  font-size: 1.25rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 2rem;
  text-align: center;
}

.sell-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #71717a;
  margin-bottom: 0.5rem;
}

.form-group input {
  width: 100%;
  background: #fafafa;
  border: 1px solid #e4e4e7;
  padding: 0.75rem 1rem;
  color: #18181b;
  font-size: 1rem;
  transition: all 0.2s ease;
  border-radius: 2px;
  outline: none;
}

.form-group input:focus {
  border-color: #18181b;
  box-shadow: 0 0 0 1px #18181b;
}

.form-group input::placeholder {
  color: #a1a1aa;
  text-transform: none;
}

.form-group input.uppercase-input {
  text-transform: uppercase;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .form-row { grid-template-columns: 1fr 1fr; }
}

.btn-submit {
  width: 100%;
  background: #18181b;
  color: #fff;
  padding: 1rem;
  margin-top: 1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 500;
  transition: background 0.2s ease;
  border-radius: 2px;
  border: none;
  cursor: pointer;
}

.btn-submit:hover {
  background: #27272a;
}

/* Success Message */
.form-success {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
  padding: 1.5rem;
  border-radius: 2px;
  text-align: center;
}

.form-success svg {
  width: 3rem;
  height: 3rem;
  margin: 0 auto 1rem;
  color: #22c55e;
}

.form-success h4 {
  font-size: 1.125rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.form-success p {
  font-size: 0.875rem;
  font-weight: 300;
}

/* ========================================================================
   FOOTER
   ======================================================================== */
.site-footer {
  background: #fff;
  padding-top: 5rem;
  padding-bottom: 2.5rem;
  color: #71717a;
  border-top: 1px solid #e4e4e7;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1024px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}

/* Brand Column */
.footer-brand-name {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.footer-brand-name .bold {
  font-weight: 700;
  font-size: 1.5rem;
  color: #18181b;
  letter-spacing: -0.05em;
}

.footer-brand-name .light {
  font-weight: 300;
  font-size: 1.5rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #18181b;
}

.footer-brand-desc {
  font-weight: 300;
  font-size: 0.875rem;
  line-height: 1.7;
  max-width: 24rem;
}

/* Contact Column */
.footer-heading {
  color: #18181b;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-weight: 300;
  font-size: 0.875rem;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.footer-contact-item svg {
  width: 1rem;
  height: 1rem;
  color: #a1a1aa;
  margin-top: 0.25rem;
  flex-shrink: 0;
}

/* Hours Column */
.footer-hours {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-weight: 300;
  font-size: 0.875rem;
}

.footer-hours-row {
  display: flex;
  justify-content: space-between;
}

/* Copyright */
.footer-copyright {
  border-top: 1px solid #f4f4f5;
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  gap: 1rem;
}

@media (min-width: 768px) {
  .footer-copyright {
    flex-direction: row;
    gap: 0;
  }
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #18181b;
}

/* ========================================================================
   MOBILE BOTTOM PADDING
   ======================================================================== */
@media (max-width: 767px) {
  body { padding-bottom: 5rem; }
}

/* ========================================================================
   ANIMATIONS
   ======================================================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

.fade-in-up-delay-1 { animation-delay: 0.1s; }
.fade-in-up-delay-2 { animation-delay: 0.2s; }
.fade-in-up-delay-3 { animation-delay: 0.3s; }
