:root {
  --blue: #0105be;
  --blue-deep: #02047f;
  --yellow: #ffdc00;
  --yellow-deep: #f0c800;
  --red: #e8101b;
  --ink: #12142a;
  --bg: #f7f8fc;
  --surface: #ffffff;
  --surface-alt: #eef0f8;
  --text: #12142a;
  --muted: #555a72;
  --border: #dfe2ee;
  --link: #0105be;
  --sale: #0b7a3e;
  --radius: 14px;
  --shadow: 0 1px 2px rgb(10 15 60 / 6%), 0 6px 18px rgb(10 15 60 / 7%);
  --font-display: 'Montserrat', 'Arial Black', sans-serif;
  --font-body: 'Murecho', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #0d0f1f;
    --surface: #171a30;
    --surface-alt: #1f2340;
    --text: #eef0fa;
    --muted: #a7acc6;
    --border: #2c3156;
    --link: #a9b2ff;
    --sale: #4cc283;
    --shadow: none;
    color-scheme: dark;
  }
}

:root[data-theme='dark'] {
  --bg: #0d0f1f;
  --surface: #171a30;
  --surface-alt: #1f2340;
  --text: #eef0fa;
  --muted: #a7acc6;
  --border: #2c3156;
  --link: #a9b2ff;
  --sale: #4cc283;
  --shadow: none;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
}

a {
  color: var(--link);
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.15;
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

.narrow {
  max-width: 760px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 8px;
  top: -48px;
  z-index: 10;
  padding: 8px 12px;
  background: var(--yellow);
  color: var(--ink);
  font-weight: 700;
}

.skip-link:focus {
  top: 8px;
}

/* Announcement and header */

.announcement {
  background: var(--red);
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 500;
  text-align: center;
  padding: 8px 0;
}

.announcement a {
  color: #ffffff;
  font-weight: 700;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--blue);
  border-bottom: 5px solid var(--yellow);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 76px;
}

.wordmark {
  display: block;
  flex-shrink: 0;
  line-height: 0;
}

.wordmark img {
  width: auto;
  height: 60px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current='page'] {
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-decoration-color: var(--yellow);
  text-underline-offset: 7px;
}

.site-nav .header-phone {
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

.site-nav .header-phone:hover {
  background: var(--yellow-deep);
  text-decoration: none;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 2px solid rgb(255 255 255 / 60%);
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
}

.menu-icon,
.menu-icon::before,
.menu-icon::after {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto;
  background: #ffffff;
  content: '';
}

.menu-icon::before {
  transform: translateY(-6px);
}

.menu-icon::after {
  transform: translateY(4px);
}

@media (max-width: 980px) {
  .wordmark img {
    height: 52px;
  }

  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 8px 16px 20px;
    background: var(--blue);
    border-bottom: 5px solid var(--yellow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav ul {
    flex-direction: column;
  }

  .site-nav li a {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid rgb(255 255 255 / 18%);
  }

  .site-nav .header-phone {
    margin-top: 14px;
    text-align: center;
  }
}

/* Buttons and chips */

.button {
  display: inline-block;
  border: 2px solid transparent;
  border-radius: 999px;
  padding: 10px 20px;
  background: var(--yellow);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.button:hover {
  background: var(--yellow-deep);
}

.button-blue {
  background: var(--blue);
  color: #ffffff;
}

.button-blue:hover {
  background: var(--blue-deep);
}

.button-outline {
  background: transparent;
  border-color: currentColor;
  color: inherit;
}

.button-outline:hover {
  background: rgb(255 255 255 / 12%);
}

.button-small {
  padding: 6px 14px;
  font-size: 0.875rem;
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.chip {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
}

.chip:hover {
  border-color: var(--blue);
  color: var(--link);
}

/* Page sections */

.hero {
  position: relative;
  overflow: hidden;
  background-color: var(--blue);
  background-image: radial-gradient(circle at 50% 50%, rgb(255 255 255 / 9%) 0 9px, transparent 10px);
  background-size: 36px 36px;
  color: #ffffff;
  padding: 64px 0 72px;
}

.hero h1 {
  max-width: 14em;
  margin: 0 0 16px;
  font-size: clamp(2rem, 5vw, 3.25rem);
}

.hero h1 em {
  color: var(--yellow);
  font-style: normal;
}

.hero p {
  max-width: 36em;
  margin: 0 0 28px;
  font-size: 1.125rem;
  opacity: 0.92;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}

.hero-logo {
  width: 100%;
  border: 4px solid #ffffff;
  border-radius: var(--radius);
  box-shadow: 0 12px 32px rgb(0 0 40 / 35%);
}

@media (max-width: 820px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-logo {
    order: -1;
    max-width: 480px;
  }
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.page-hero {
  background: var(--blue);
  color: #ffffff;
  padding: 40px 0 44px;
  border-bottom: 6px solid var(--yellow);
}

.page-hero h1 {
  margin: 0 0 8px;
  font-size: clamp(1.875rem, 4vw, 2.75rem);
}

.page-hero p {
  max-width: 40em;
  margin: 0;
  font-size: 1.125rem;
  opacity: 0.92;
}

.section {
  padding: 48px 0;
}

.section-alt {
  background: var(--surface-alt);
}

.section-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
  margin-bottom: 20px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.feature-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px;
  border: 1px solid var(--border);
  border-top: 6px solid var(--yellow);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  color: var(--text);
  text-decoration: none;
}

.feature-card:hover {
  border-top-color: var(--blue);
}

.feature-card h2 {
  margin: 0;
  font-size: 1.25rem;
  color: var(--link);
}

.feature-card p {
  margin: 0;
  color: var(--muted);
}

.prose h2 {
  margin: 36px 0 12px;
  font-size: 1.5rem;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose ul,
.prose ol {
  padding-left: 1.25em;
}

.prose li + li {
  margin-top: 6px;
}

.callout {
  margin: 28px 0;
  padding: 20px 24px;
  border-left: 6px solid var(--yellow);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.callout p {
  margin: 0 0 12px;
}

.callout p:last-child {
  margin-bottom: 0;
}

.hours-table {
  border-collapse: collapse;
}

.hours-table th,
.hours-table td {
  padding: 2px 16px 2px 0;
  text-align: left;
  font-weight: 400;
}

.contact-list .hours-table th {
  font-weight: 500;
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
}

.price-table th,
.price-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.price-table th {
  font-weight: 500;
}

.price-table td {
  font-weight: 700;
  text-align: right;
}

.discount-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin: 8px 0 24px;
}

.discount-card {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.discount-card h2 {
  margin: 0 0 4px;
  font-size: 1.375rem;
}

.discount-amount {
  margin: 0 0 12px;
  color: var(--link);
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  align-items: start;
}

.contact-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.contact-list strong {
  display: block;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 500;
}

.map-frame {
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 0;
  border-radius: var(--radius);
  background: var(--surface-alt);
}

/* Inventory */

.filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin: 24px 0 12px;
}

.field {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 0.875rem;
}

.field-search {
  grid-column: 1 / -1;
}

.field input,
.field select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 1rem;
}

.field input:focus,
.field select:focus,
.button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 2px;
}

.results-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 16px;
}

.results-bar p {
  margin: 0;
}

.muted {
  color: var(--muted);
}

.link-button {
  border: 0;
  background: none;
  color: var(--link);
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}

.status-message {
  padding: 32px 16px;
  color: var(--muted);
  text-align: center;
}

.lot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lot-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.lot-image {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  padding: 12px;
  background: #ffffff;
}

.lot-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.lot-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 6px;
  padding: 12px 14px 14px;
}

.lot-meta,
.lot-detail {
  margin: 0;
  color: var(--muted);
  font-size: 0.8125rem;
}

.lot-name {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
}

.lot-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.badge {
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--surface-alt);
  font-size: 0.75rem;
}

.badge-sale {
  background: var(--yellow);
  color: var(--ink);
  font-weight: 700;
}

.lot-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 8px;
}

.lot-price {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
}

.lot-price strong {
  color: var(--sale);
}

.lot-price s {
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 400;
}

.show-more {
  display: flex;
  justify-content: center;
  margin: 28px 0 8px;
}

/* Footer */

.site-footer {
  margin-top: 48px;
  background: var(--blue-deep);
  color: #dfe6f2;
  font-size: 0.9375rem;
}

.site-footer a {
  color: #ffffff;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
  padding-top: 40px;
  padding-bottom: 28px;
}

.footer-heading {
  margin: 0 0 8px;
  color: var(--yellow);
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
}

.site-footer address {
  font-style: normal;
}

.footer-links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-legal {
  padding-top: 16px;
  padding-bottom: 24px;
  border-top: 1px solid rgb(255 255 255 / 15%);
  font-size: 0.8125rem;
  opacity: 0.8;
}

.footer-legal p {
  margin: 0;
}
