@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Montserrat:wght@500;600;700&display=swap');

/* ============================================================
   AWE (Allwreck Experts) design tokens
   ============================================================ */
:root {
  --awe-primary: #0B3A82;
  --awe-blue: #12A5E8;
  --awe-teal: #00B4A6;
  --awe-green: #6CBF4A;
  --awe-text: #2D3748;
  --awe-muted: #64748B;
  --awe-border: #E2E8F0;
  --awe-background: #F7FAFC;
  --awe-white: #FFFFFF;
  --awe-footer: #06346B;
  --awe-grad: linear-gradient(135deg, #0B3A82 0%, #075CA8 45%, #12A5E8 100%);
  --awe-hero: linear-gradient(135deg, #06346B 0%, #075CA8 45%, #12A5E8 100%);
  --awe-cta: linear-gradient(135deg, #087BD4 0%, #12A5E8 100%);
  --awe-radius-sm: 8px;
  --awe-radius-md: 12px;
  --awe-radius-lg: 16px;
  --awe-shadow: 0 8px 30px rgba(11, 58, 130, .08);
  --awe-shadow-blue: 0 10px 30px rgba(18, 165, 232, .22);
  --awe-content: 1200px;
}

/* ============================================================
   Base
   ============================================================ */
body {
  font-family: 'Inter', -apple-system, 'Segoe UI', sans-serif;
  background: var(--awe-background);
  color: var(--awe-text);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Inter', sans-serif;
  color: var(--awe-primary);
  line-height: 1.15;
}

h1 { font-size: 2.75rem; font-weight: 700; }
h2 { font-size: 2.125rem; font-weight: 700; }
h3 { font-size: 1.5rem; font-weight: 600; }
h4 { font-size: 1.25rem; font-weight: 600; }

a { color: var(--awe-blue); text-decoration: none; }
a:hover { color: var(--awe-primary); }

/* legacy alias so pages not yet restyled keep a sane look */
.dance-font { font-family: 'Montserrat', sans-serif; font-weight: 600; }

/* ============================================================
   Layout helpers
   ============================================================ */
.container-awe {
  width: 100%;
  max-width: var(--awe-content);
  margin-inline: auto;
  padding-inline: 1rem;
}

.awe-section { padding: 5rem 0; }
.awe-section-light { background: var(--awe-background); }
.awe-section-white { background: var(--awe-white); }
.awe-section-dark { background: var(--awe-footer); color: var(--awe-white); }

.awe-eyebrow {
  display: inline-block;
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--awe-blue);
  margin-bottom: .75rem;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn-awe,
.btn-awe-solid {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: .625rem 1.5rem;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: var(--awe-white);
  background: var(--awe-cta);
  border: none;
  border-radius: 10px;
  transition: transform .2s ease, box-shadow .2s ease;
}

.btn-awe:hover,
.btn-awe-solid:hover {
  color: var(--awe-white);
  transform: translateY(-2px);
  box-shadow: var(--awe-shadow-blue);
}

.btn-awe-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: .625rem 1.5rem;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: var(--awe-primary);
  background: var(--awe-white);
  border: 1px solid var(--awe-border);
  border-radius: 10px;
  transition: border-color .2s ease, color .2s ease, transform .2s ease;
}

.btn-awe-outline:hover {
  color: var(--awe-blue);
  border-color: var(--awe-blue);
  transform: translateY(-2px);
}

.btn-awe-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: .625rem 1.5rem;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: var(--awe-primary);
  background: var(--awe-white);
  border: none;
  border-radius: 10px;
  box-shadow: var(--awe-shadow);
  transition: transform .2s ease;
}

.btn-awe-light:hover {
  color: var(--awe-primary);
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--awe-cta);
  border: none;
  color: var(--awe-white);
  border-radius: 10px;
  font-weight: 600;
  min-height: 44px;
}

.btn-primary:hover,
.btn-primary:focus {
  background: linear-gradient(135deg, #075CA8 0%, #087BD4 100%);
  color: var(--awe-white);
  box-shadow: var(--awe-shadow-blue);
}

.btn-outline-primary {
  color: var(--awe-blue);
  border-color: var(--awe-blue);
  border-radius: 10px;
  font-weight: 600;
}

.btn-outline-primary:hover {
  background: var(--awe-blue);
  color: var(--awe-white);
  border-color: var(--awe-blue);
}

/* ============================================================
   Navbar (white, sticky)
   ============================================================ */
.awe-navbar {
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(14px) saturate(1.15);
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
  border-bottom: 1px solid var(--awe-border);
  box-shadow: 0 1px 2px rgba(11, 58, 130, .04);
  padding-block: .5rem;
}

/* keep the bar slim: only .awe-navbar controls vertical height */
.awe-navbar .navbar {
  padding-block: 0;
}

/* container-awe is a plain block, not a Bootstrap .container, so it misses the
   navbar flex. Restore a centered flex row on desktop so the logo (brand) and the
   nav links share one vertically-centered line. Mobile (< lg) stays stacked. */
@media (min-width: 992px) {
  .awe-navbar .container-awe {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
  }
}

.awe-navbar .navbar-brand {
  display: flex;
  align-items: center;
  gap: .875rem;
  padding-inline: .25rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.4375rem;
  letter-spacing: -.015em;
  color: var(--awe-primary);
}

.awe-navbar .navbar-brand img {
  width: 60px;
  height: 60px;
  flex: 0 0 auto;
}

.awe-navbar .brand-name {
  white-space: nowrap;
}

.awe-navbar .navbar-brand:hover { color: var(--awe-primary); }

.awe-navbar .navbar-brand .brand-accent {
  color: var(--awe-blue);
  font-weight: 700;
}

@media (max-width: 991.98px) {
  .awe-navbar .navbar-brand img { width: 48px; height: 48px; }
  .awe-navbar .navbar-brand { font-size: 1.25rem; gap: .625rem; }
}

/* compact CTA inside the slim navbar */
.awe-navbar .btn-awe {
  min-height: 0;
  padding: .5rem 1.125rem;
  font-size: .875rem;
  border-radius: 9px;
}

.awe-navbar .nav-link {
  color: var(--awe-text);
  font-weight: 500;
  font-size: .9375rem;
  padding-inline: .75rem;
  padding-block: .375rem;
  border-radius: 8px;
  transition: color .2s ease, background-color .2s ease;
}

.awe-navbar .nav-link:hover,
.awe-navbar .nav-link:focus,
.awe-navbar .nav-link.active {
  color: var(--awe-blue);
  background: rgba(18, 165, 232, .08);
}

.awe-navbar .dropdown-menu {
  background: var(--awe-white);
  border: 1px solid var(--awe-border);
  border-radius: var(--awe-radius-md);
  box-shadow: var(--awe-shadow);
  padding-block: .5rem;
}

.awe-navbar .dropdown-item {
  color: var(--awe-text);
  font-weight: 500;
  border-radius: var(--awe-radius-sm);
  padding: .5rem .875rem;
}

.awe-navbar .dropdown-item:hover {
  background: var(--awe-background);
  color: var(--awe-blue);
}

/* ============================================================
   Hero / section bands (legacy class names, new look)
   ============================================================ */
.main-bg {
  background-image:
    linear-gradient(90deg, rgba(6, 52, 107, .35) 0%, rgba(6, 52, 107, .82) 28%, rgba(6, 52, 107, .82) 72%, rgba(6, 52, 107, .35) 100%),
    url('/static/images/hero-ev-city.webp');
  background-color: #06346B;
  background-size: cover;
  background-position: center;
  min-height: calc(100vh - 64px);
  color: var(--awe-white);
  display: flex;
  align-items: center;
}

.awe-cta-band {
  background-image:
    linear-gradient(90deg, rgba(6, 52, 107, .92) 0%, rgba(7, 92, 168, .65) 55%, rgba(18, 165, 232, .25) 100%),
    url('/static/images/cta-sustainability.webp');
  background-size: cover;
  background-position: center;
  color: var(--awe-white);
  border-top: 4px solid var(--awe-green);
}

.main-bg h1,
.main-bg h2,
.main-bg .text-white { color: var(--awe-white); }

.main-bg .awe-hero-eyebrow {
  display: inline-block;
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--awe-blue);
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(18, 165, 232, .35);
  border-radius: 999px;
  padding: .375rem 1rem;
  margin-bottom: 1.25rem;
}

.main-bg .awe-hero-headline {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: clamp(2.125rem, 5vw, 3.75rem);
  line-height: 1.1;
  color: var(--awe-white);
  margin-bottom: 1rem;
}

.main-bg .awe-hero-sub {
  color: rgba(255, 255, 255, .85);
  font-size: 1.125rem;
  max-width: 46rem;
}

.main-bg .awe-hero-services {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  color: rgba(255, 255, 255, .75);
  font-size: .9375rem;
  font-weight: 500;
  letter-spacing: .04em;
}

.search-bg {
  background: var(--awe-hero);
  color: var(--awe-white);
  padding: 4rem 0;
}

.search-bg h1,
.search-bg h2,
.search-bg h3,
.search-bg h4 { color: var(--awe-white); }

.search-bg p {
  color: rgba(255, 255, 255, .85);
}

.search-bg .awe-eyebrow {
  color: rgba(255, 255, 255, .9);
}

.awe-search-card {
  background: var(--awe-white);
  border-radius: var(--awe-radius-lg);
  box-shadow: var(--awe-shadow);
  padding: 1rem;
}

@media (min-width: 992px) {
  .awe-search-card {
    padding: 1.5rem;
  }
}

/* ============================================================
   Cards
   ============================================================ */
.awe-card {
  background: var(--awe-white);
  border: 1px solid var(--awe-border);
  border-radius: var(--awe-radius-lg);
  box-shadow: var(--awe-shadow);
}

.awe-card-hover {
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.awe-card-hover:hover {
  transform: translateY(-4px);
  box-shadow: var(--awe-shadow-blue);
  border-color: var(--awe-blue);
}

.awe-card-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 1.125rem;
  line-height: 1.3;
  color: var(--awe-primary);
}

.awe-card-img {
  height: 220px;
  object-fit: cover;
  object-position: center;
}

/* Spec list used on car cards + the listing detail panel */
.awe-spec-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem 1rem;
}

.awe-spec {
  display: flex;
  align-items: center;
  gap: .625rem;
  font-size: .875rem;
  color: var(--awe-text);
  min-width: 0;
}

.awe-spec-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 9px;
  background: rgba(11, 58, 130, .06);
  color: var(--awe-blue);
}

.awe-spec-icon svg {
  width: 18px;
  height: 18px;
}

.awe-spec-value {
  color: var(--awe-text);
  font-weight: 500;
  word-break: break-word;
}

.awe-spec-label {
  color: var(--awe-muted);
  font-weight: 500;
  margin-right: .375rem;
}

.awe-card-desc {
  color: var(--awe-muted);
  line-height: 1.7;
}

.awe-card-title-text {
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--awe-muted);
}

.awe-badge {
  display: inline-block;
  padding: .28rem .7rem;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .03em;
}

.awe-badge-active {
  background: rgba(108, 191, 74, .16);
  color: #4c8a32;
}

.awe-badge-closed {
  background: rgba(100, 116, 139, .14);
  color: var(--awe-muted);
}

.awe-card .card-badge {
  width: 96px;
  height: 96px;
  object-fit: contain;
  box-sizing: border-box;
  padding: 8px;
  background: rgba(11, 58, 130, .05);
  border: 1px solid var(--awe-border);
  border-radius: 50%;
  transition: transform .25s ease;
}

@media (min-width: 992px) {
  .awe-card .card-badge { width: 112px; height: 112px; padding: 10px; }
}

.awe-card-hover:hover .card-badge {
  transform: scale(1.04);
}

.awe-card .card-icon {
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--awe-radius-md);
  background: rgba(18, 165, 232, .1);
  color: var(--awe-primary);
  font-size: 1.5rem;
}

.awe-card .card-icon i,
.awe-card .card-icon .material-symbols-outlined {
  color: var(--awe-primary);
}

.card {
  border: 1px solid var(--awe-border);
  border-radius: var(--awe-radius-lg);
  box-shadow: var(--awe-shadow);
}

.card-header {
  background: var(--awe-white);
  border-bottom: 1px solid var(--awe-border);
  border-top-left-radius: var(--awe-radius-lg) !important;
  border-top-right-radius: var(--awe-radius-lg) !important;
}

/* ============================================================
   Tables (dashboard / listings)
   ============================================================ */
.table {
  --bs-table-bg: transparent;
}

.table thead th {
  font-family: 'Inter', sans-serif;
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--awe-muted);
  background: var(--awe-background);
  border-bottom: 2px solid var(--awe-border);
}

.table td,
.table th {
  border-color: var(--awe-border);
  vertical-align: middle;
}

.table-hover tbody tr:hover {
  background: rgba(18, 165, 232, .05);
}

/* ============================================================
   Forms
   ============================================================ */
.form-control,
.form-select {
  background: var(--awe-white);
  border: 1px solid #CBD5E1;
  border-radius: var(--awe-radius-sm);
  padding: .75rem .875rem;
  font-size: 1rem;
  color: var(--awe-text);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--awe-blue);
  box-shadow: 0 0 0 3px rgba(18, 165, 232, .12);
}

.form-control::placeholder,
.form-select:disabled {
  color: var(--awe-muted);
}

.form-label {
  font-weight: 500;
  font-size: .9375rem;
  color: var(--awe-text);
}

.input-group > .btn {
  border-radius: var(--awe-radius-sm) !important;
}

/* ============================================================
   Search panel (home hero / gridview / auctions)
   ============================================================ */
.awe-search-form {
  display: grid;
  gap: 1rem;
}

.awe-search-field {
  position: relative;
  display: flex;
  align-items: center;
}

.awe-search-icon {
  position: absolute;
  left: .875rem;
  color: var(--awe-muted);
  display: inline-flex;
  align-items: center;
  pointer-events: none;
}

.awe-search-icon svg {
  width: 20px;
  height: 20px;
}

.awe-search-input,
.awe-search-select {
  width: 100%;
  height: 48px;
  padding: 0 .875rem 0 2.625rem;
  border: 1px solid var(--awe-border);
  border-radius: 10px;
  background: var(--awe-white);
  font-family: 'Inter', sans-serif;
  font-size: .9375rem;
  color: var(--awe-text);
  appearance: none;
  -webkit-appearance: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.awe-search-select {
  cursor: pointer;
  padding-right: 2rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='%2364748B' d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .75rem center;
}

.awe-search-input:focus,
.awe-search-select:focus {
  outline: none;
  border-color: var(--awe-blue);
  box-shadow: 0 0 0 3px rgba(18, 165, 232, .12);
}

.awe-search-input::placeholder {
  color: var(--awe-muted);
}

.awe-search-field-wide .awe-search-input {
  height: 54px;
  font-size: 1rem;
}

.awe-search-filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  gap: .75rem;
  align-items: stretch;
}

.awe-search-btn {
  height: 48px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .25rem;
  font-size: .9375rem;
  padding: 0 1.25rem;
}

.awe-search-btn svg {
  width: 18px;
  height: 18px;
}

@media (max-width: 991.98px) {
  .awe-search-filters {
    grid-template-columns: repeat(2, 1fr);
  }

  .awe-search-btn {
    grid-column: 1 / -1;
    height: 52px;
  }
}

@media (max-width: 575.98px) {
  .awe-search-filters {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   Footer
   ============================================================ */
.awe-footer {
  background: var(--awe-footer);
  color: #CBD5E1;
  border-top: 3px solid var(--awe-blue);
}

.awe-footer h5,
.awe-footer .awe-footer-heading {
  color: var(--awe-white);
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: .04em;
  padding-bottom: .75rem;
  border-bottom: 2px solid var(--awe-blue);
  margin-bottom: 1.25rem;
  display: inline-block;
}

.awe-footer a {
  color: #CBD5E1;
  transition: color .2s ease;
}

.awe-footer a:hover { color: var(--awe-blue); }

.awe-footer .footer-brand {
  display: flex;
  align-items: center;
  gap: .625rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--awe-white);
}

.awe-footer .footer-brand .brand-accent { color: var(--awe-blue); }

.awe-footer .footer-bottom {
  border-top: 1px solid rgba(203, 213, 225, .25);
  color: #94A3B8;
  font-size: .875rem;
}

/* ============================================================
   Misc
   ============================================================ */
.material-symbols-outlined {
  font-variation-settings:
  'FILL' 0,
  'wght' 400,
  'GRAD' 0,
  'opsz' 48;
  margin-right: 0;
}

.input-group > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.carousel {
  height: fit-content;
}

.badge-awe {
  background: rgba(18, 165, 232, .1);
  color: var(--awe-primary);
  font-weight: 600;
  border-radius: 999px;
  padding: .375rem .875rem;
}

.text-awe-muted { color: var(--awe-muted); }
.text-awe-green { color: var(--awe-green); }

.max-size-200 {
  max-width: 200px;
  max-height: 200px;
}
