/*
Theme Name: Winnipeg Wheels and Deals V2
Theme URI: https://winnipegwheelsdeals.com
Author: Codex
Description: WordPress theme converted from the Winnipeg Wheels & Deals React website.
Version: 1.0.1
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: winnipeg-wheels-deals
*/

:root {
  --wwd-ink: #0f172a;
  --wwd-muted: #64748b;
  --wwd-soft: #f8fafc;
  --wwd-line: #e2e8f0;
  --wwd-red: #dc2626;
  --wwd-white: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--wwd-white);
  color: var(--wwd-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.wwd-modal-open {
  overflow: hidden;
}

a {
  color: inherit;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

.wwd-container {
  width: min(100% - 32px, 1280px);
  margin-inline: auto;
}

.wwd-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
}

.wwd-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 12px;
}

.wwd-brand {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.wwd-logo {
  width: clamp(56px, 7vw, 96px);
  height: clamp(56px, 7vw, 96px);
  flex: 0 0 auto;
  border-radius: 999px;
  background: #fff;
  padding: 4px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.18);
  outline: 2px solid #cbd5e1;
}

.wwd-logo img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: contain;
}

.wwd-brand__name {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(18px, 2.2vw, 30px);
  font-style: italic;
  font-weight: 800;
  line-height: 1.05;
  color: #111827;
}

.wwd-brand__tagline {
  margin-top: 5px;
  color: var(--wwd-muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.wwd-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.wwd-nav a,
.wwd-mobile-nav a {
  text-decoration: none;
}

.wwd-nav__link {
  border-radius: 999px;
  padding: 10px 16px;
  color: #334155;
  font-size: 14px;
  font-weight: 700;
  transition: background 160ms ease, color 160ms ease;
}

.wwd-nav__link:hover,
.wwd-nav__link.is-active {
  background: var(--wwd-ink);
  color: #fff;
}

.wwd-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--wwd-line);
  border-radius: 12px;
  background: #fff;
  color: var(--wwd-ink);
  cursor: pointer;
}

.wwd-menu-button span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: currentColor;
}

.wwd-mobile-nav {
  display: none;
  border-top: 1px solid var(--wwd-line);
  padding: 12px 16px;
  background: #fff;
}

.wwd-mobile-nav.is-open {
  display: grid;
  gap: 8px;
}

.wwd-mobile-nav .wwd-nav__link {
  display: block;
  border-radius: 12px;
  background: var(--wwd-soft);
}

.wwd-hero {
  position: relative;
  isolation: isolate;
  min-height: min(900px, 100svh);
  overflow: hidden;
}

.wwd-hero__slides,
.wwd-hero__slides img,
.wwd-hero__wash {
  position: absolute;
  inset: 0;
}

.wwd-hero__slides {
  z-index: -2;
  background: #fff;
}

.wwd-hero__slides img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1400ms ease;
}

.wwd-hero__slides img.is-active {
  opacity: 1;
}

.wwd-hero__wash {
  z-index: -1;
  background: linear-gradient(90deg, rgba(255,255,255,0.45), rgba(255,255,255,0.1), transparent);
}

.wwd-hero__inner {
  position: relative;
  min-height: min(900px, 100svh);
  padding-block: 86px 72px;
}

.wwd-trust-badge,
.wwd-slide-count {
  position: absolute;
  top: 24px;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.15);
  backdrop-filter: blur(10px);
}

.wwd-trust-badge {
  left: 0;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  padding: 12px 16px;
  color: #1e293b;
  font-size: 14px;
  font-weight: 800;
}

.wwd-slide-count {
  right: 0;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.24);
  padding: 7px 12px;
  color: rgba(255, 255, 255, 0.95);
  font-size: 12px;
  font-weight: 700;
}

.wwd-search-panel {
  width: min(100%, 576px);
  margin-left: auto;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.22);
  backdrop-filter: blur(18px);
}

.wwd-search-panel__content {
  padding: clamp(18px, 3vw, 28px);
}

.wwd-panel-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.wwd-icon-box {
  display: inline-grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.88);
  color: #fff;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.2);
}

.wwd-panel-title h1 {
  margin: 0;
  color: #000;
  font-size: clamp(20px, 2.5vw, 24px);
  line-height: 1.2;
}

.wwd-panel-title span {
  color: var(--wwd-red);
}

.wwd-field {
  position: relative;
}

.wwd-input,
.wwd-select,
.wwd-textarea {
  width: 100%;
  border: 1px solid var(--wwd-line);
  border-radius: 16px;
  background: #fff;
  color: var(--wwd-ink);
  outline: none;
}

.wwd-input,
.wwd-select {
  min-height: 46px;
  padding: 0 14px;
}

.wwd-textarea {
  min-height: 150px;
  padding: 14px;
  resize: vertical;
}

.wwd-search-panel .wwd-input,
.wwd-search-panel .wwd-select {
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.28);
  color: #fff;
  backdrop-filter: blur(8px);
}

.wwd-search-panel .wwd-input::placeholder {
  color: rgba(255, 255, 255, 0.78);
}

.wwd-suggestions {
  position: absolute;
  inset-inline: 0;
  top: calc(100% + 6px);
  z-index: 10;
  display: none;
  overflow: hidden;
  border: 1px solid var(--wwd-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 16px 45px rgba(15, 23, 42, 0.18);
}

.wwd-suggestions.is-open {
  display: block;
}

.wwd-suggestions button {
  width: 100%;
  border: 0;
  background: #fff;
  padding: 12px 14px;
  color: #334155;
  text-align: left;
  cursor: pointer;
}

.wwd-suggestions button:hover {
  background: var(--wwd-soft);
}

.wwd-filter-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.wwd-button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 16px;
  background: var(--wwd-ink);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.wwd-button:hover {
  background: #1e293b;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.16);
  transform: translateY(-1px);
}

.wwd-button--outline {
  border-color: var(--wwd-line);
  background: #fff;
  color: var(--wwd-ink);
}

.wwd-button--outline:hover {
  background: var(--wwd-soft);
}

.wwd-search-panel .wwd-button {
  width: 100%;
  margin-top: 14px;
}

.wwd-brand-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.wwd-brand-card {
  min-height: 116px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  padding: 14px;
  color: #334155;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.wwd-brand-card:hover {
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.18);
  transform: translateY(-3px);
}

.wwd-brand-card img {
  width: 54px;
  height: 54px;
  margin: 0 auto 8px;
  border-radius: 999px;
  background: #fff;
  object-fit: contain;
  padding: 7px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.14);
}

.wwd-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
}

.wwd-dots span {
  width: 24px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
}

.wwd-dots span.is-active {
  background: #fff;
}

.wwd-section {
  padding-block: clamp(44px, 6vw, 72px);
}

.wwd-section--soft {
  background: #f8fafc;
}

.wwd-section--dark {
  background: #0f172a;
  color: #fff;
}

.wwd-section__eyebrow {
  margin: 0;
  color: var(--wwd-muted);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.wwd-section--dark .wwd-section__eyebrow,
.wwd-section--dark p {
  color: rgba(255, 255, 255, 0.72);
}

.wwd-section h2,
.wwd-section h3,
.wwd-section h4 {
  margin: 0;
}

.wwd-section h2 {
  margin-top: 8px;
  font-size: clamp(32px, 5vw, 46px);
  line-height: 1.05;
}

.wwd-section__lead {
  max-width: 760px;
  margin: 12px 0 0;
  color: #475569;
  line-height: 1.7;
}

.wwd-features,
.wwd-inventory-grid,
.wwd-contact-grid,
.wwd-finance-grid {
  display: grid;
  gap: 24px;
}

.wwd-features {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 32px;
}

.wwd-card {
  border: 1px solid var(--wwd-line);
  border-radius: 24px;
  background: #fff;
  color: var(--wwd-ink);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
}

.wwd-card__content {
  padding: clamp(20px, 3vw, 32px);
}

.wwd-card p {
  color: #475569;
  line-height: 1.65;
}

.wwd-inventory-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.wwd-inventory-controls {
  display: grid;
  min-width: min(100%, 580px);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.wwd-inventory-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.wwd-vehicle {
  overflow: hidden;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.wwd-vehicle:hover {
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.14);
  transform: translateY(-3px);
}

.wwd-vehicle__image {
  position: relative;
  height: 250px;
}

.wwd-vehicle__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wwd-pill {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  border-radius: 999px;
  background: var(--wwd-ink);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  padding: 0 12px;
}

.wwd-vehicle__image .wwd-pill {
  position: absolute;
  left: 16px;
  top: 16px;
}

.wwd-vehicle h3 {
  font-size: 21px;
}

.wwd-price {
  margin-top: 6px;
  font-size: 26px;
  font-weight: 900;
}

.wwd-meta-grid,
.wwd-result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.wwd-meta {
  border-radius: 16px;
  background: var(--wwd-soft);
  padding: 12px;
  color: #475569;
  font-size: 14px;
}

.wwd-vehicle .wwd-button {
  width: 100%;
  margin-top: 18px;
}

.wwd-empty {
  display: none;
  padding: 44px;
  text-align: center;
}

.wwd-empty.is-visible {
  display: block;
}

.wwd-finance-grid {
  grid-template-columns: 1.05fr 0.95fr;
  margin-top: 32px;
}

.wwd-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.wwd-field-span {
  grid-column: 1 / -1;
}

.wwd-label {
  display: block;
  margin-bottom: 8px;
  color: #334155;
  font-size: 14px;
  font-weight: 800;
}

.wwd-frequency {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.wwd-frequency button {
  min-height: 46px;
  border: 1px solid var(--wwd-line);
  border-radius: 16px;
  background: var(--wwd-soft);
  color: #334155;
  font-weight: 800;
  cursor: pointer;
}

.wwd-frequency button.is-active {
  border-color: var(--wwd-ink);
  background: var(--wwd-ink);
  color: #fff;
}

.wwd-result-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 22px;
}

.wwd-result {
  border-radius: 16px;
  background: var(--wwd-soft);
  padding: 16px;
}

.wwd-result span {
  color: var(--wwd-muted);
  font-size: 14px;
}

.wwd-result strong {
  display: block;
  margin-top: 5px;
  font-size: 21px;
}

.wwd-contact-grid {
  grid-template-columns: 0.9fr 1.1fr;
  margin-top: 32px;
}

.wwd-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  border-radius: 16px;
  background: var(--wwd-soft);
  padding: 16px;
}

.wwd-contact-item + .wwd-contact-item {
  margin-top: 14px;
}

.wwd-contact-item span {
  display: block;
  color: var(--wwd-muted);
  font-size: 14px;
  font-weight: 800;
}

.wwd-contact-item strong {
  display: block;
  margin-top: 4px;
}

.wwd-footer {
  background: #020617;
  color: #fff;
}

.wwd-footer__grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr 1fr;
  gap: 36px;
  padding-block: 48px;
}

.wwd-footer p,
.wwd-footer a {
  color: rgba(255, 255, 255, 0.72);
}

.wwd-footer a {
  display: block;
  margin-top: 10px;
  text-decoration: none;
}

.wwd-footer a:hover {
  color: #fff;
}

.wwd-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(2, 6, 23, 0.68);
  padding: 16px;
}

.wwd-modal.is-open {
  display: flex;
}

.wwd-modal__dialog {
  width: min(100%, 720px);
  max-height: 90vh;
  overflow: auto;
  border-radius: 24px;
  background: #fff;
}

.wwd-modal__dialog img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.wwd-modal__head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.wwd-modal__body {
  padding: 28px;
}

@media (max-width: 980px) {
  .wwd-nav {
    display: none;
  }

  .wwd-menu-button {
    display: block;
  }

  .wwd-search-panel {
    margin-top: 18px;
    margin-left: 0;
  }

  .wwd-brand-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wwd-features,
  .wwd-inventory-grid,
  .wwd-finance-grid,
  .wwd-contact-grid,
  .wwd-footer__grid {
    grid-template-columns: 1fr;
  }

  .wwd-inventory-header {
    align-items: stretch;
    flex-direction: column;
  }

  .wwd-inventory-controls {
    min-width: 0;
  }
}

@media (max-width: 640px) {
  .wwd-container {
    width: min(100% - 24px, 1280px);
  }

  .wwd-brand__tagline {
    display: none;
  }

  .wwd-trust-badge {
    max-width: 72%;
    padding: 10px 12px;
    font-size: 11px;
  }

  .wwd-slide-count {
    font-size: 10px;
  }

  .wwd-hero__inner {
    padding-top: 76px;
  }

  .wwd-filter-grid,
  .wwd-inventory-controls,
  .wwd-form-grid,
  .wwd-frequency,
  .wwd-result-grid,
  .wwd-meta-grid {
    grid-template-columns: 1fr;
  }

  .wwd-brand-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wwd-modal__dialog img {
    height: 220px;
  }

  .wwd-modal__head {
    display: block;
  }
}
