@import url('https://fonts.googleapis.com/css2?family=Courier+Prime:wght@400;700&display=swap');

:root {
  --black: #2E2E2E;
  --charcoal: #444444;
  --slate: #6C7B83;
  --soft-grey: #D7D5D5;
  --white: #F3F3F4;

  --border: rgba(255, 255, 255, 0.08);
  --overlay: rgba(20, 20, 20, 0.42);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--white);
  color: var(--black);
  overflow-x: hidden;
}

body {
  font-family: Arial, Helvetica, sans-serif;
}

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

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 20;

  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 2.5rem 4rem;
}

.brand-logo {
  font-size: 4rem;
  font-weight: 900;
  color: var(--white);
  letter-spacing: -0.08em;
  line-height: 1;
}

.region-nav {
  display: flex;
  gap: 2rem;
}

.region-nav a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  transition: opacity 0.2s ease;
}

.region-nav a:hover {
  opacity: 0.7;
}

.region-nav .active {
  color: var(--white);
}

.hero {
  position: relative;
  min-height: 72vh;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 7rem 2rem 3rem;

  background:
    linear-gradient(var(--overlay), var(--overlay)),
    url("https://images.unsplash.com/photo-1507525428034-b723cf961d3e?q=80&w=2070&auto=format&fit=crop")
    center center / cover no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  backdrop-filter: blur(1px);
}

.hero-content {
  position: relative;
  z-index: 2;

  width: 100%;
  max-width: 1500px;

  text-align: center;

  transform: translateY(-3.5rem);
}

.hero-kicker {
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 1.2rem;
  font-weight: 800;

  margin: 0;
}

.hero-subtitle {
  margin-top: 0.7rem;

  color: rgba(255, 255, 255, 0.7);

  font-family: "Courier Prime", monospace;
  font-size: 1rem;
  letter-spacing: 0.08em;
}

.search-bar {
  margin-top: 3rem;

  display: grid;
  grid-template-columns: 1fr 1.2fr 1.1fr 2.2fr 0.8fr;

  gap: 1rem;

  align-items: end;
}

.search-bar label {
  display: flex;
  flex-direction: column;
  align-items: flex-start;

  background: rgba(243, 243, 244, 0.92);

  padding: 1rem 1.2rem;

  min-height: 92px;
}

.search-bar span {
  font-family: "Courier Prime", monospace;
  font-size: 0.9rem;
  color: var(--charcoal);

  margin-bottom: 0.6rem;
}

.search-bar select {
  width: 100%;

  border: none;
  background: transparent;

  color: var(--black);

  font-size: 1.02rem;
  font-weight: 600;

  outline: none;

  cursor: pointer;
}

.dimensions-field select {
  font-size: 0.95rem;
}

.search-bar button {
  border: none;

  background: var(--slate);
  color: var(--white);

  min-height: 92px;

  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 0.04em;

  cursor: pointer;

  transition: opacity 0.2s ease;
}

.search-bar button:hover {
  opacity: 0.9;
}

.results-preview {
  background: #f7f7f7;

  padding: 4rem 4rem 5rem;
}

.section-heading p,
.result-section-heading span {
  color: var(--slate);

  text-transform: uppercase;
  letter-spacing: 0.18em;

  font-size: 0.9rem;
  font-weight: 700;
}

.section-heading h1 {
  max-width: 900px;

  color: var(--black);

  font-size: clamp(3rem, 6vw, 5rem);
  line-height: 1.02;

  margin-top: 1rem;
  margin-bottom: 4rem;

  letter-spacing: -0.05em;
}

.result-section-heading {
  margin-bottom: 1.75rem;
}

.result-section-heading h2 {
  margin: 0.6rem 0 0;

  color: var(--black);

  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 1;

  letter-spacing: -0.05em;
}

.manufacturer-section {
  margin-bottom: 4rem;
}

.manufacturer-grid {
  display: grid;
  grid-template-columns: minmax(280px, 560px);
  gap: 2rem;
}

.exact-section {
  margin-bottom: 1rem;
}

.result-grid {
  display: grid;
  gap: 2rem;
}

.exact-grid,
.close-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.expanded-grid {
  margin-top: 2rem;
}

.close-results-section {
  background: #f7f7f7;

  padding: 5rem 4rem 7rem;
}

.result-card {
  background: var(--white);

  border: 1px solid rgba(0, 0, 0, 0.06);

  padding: 1.5rem;

  min-height: 280px;
}

.manufacturer-card {
  border: 2px solid rgba(108, 123, 131, 0.34);
}

.retailer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 12px;

  margin-bottom: 14px;
  padding: 10px;

  border-radius: 12px;

  background: rgba(255, 255, 255, 0.92);
}

.retailer-name {
  color: #061315;

  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.retailer-logo {
  max-width: 110px;
  max-height: 38px;

  object-fit: contain;
  display: block;
}

.result-image {
  width: 100%;
  max-height: 220px;

  object-fit: contain;
  display: block;

  margin-bottom: 16px;

  border-radius: 14px;

  background: #ffffff;
}

.stock-tag {
  display: inline-flex;

  background: rgba(108, 123, 131, 0.12);

  color: var(--slate);

  padding: 0.5rem 1rem;

  font-size: 0.78rem;
  font-weight: 700;

  margin-bottom: 1.4rem;
}

.result-card h2 {
  font-size: 1.6rem;

  margin: 0 0 1rem;

  letter-spacing: -0.04em;
}

.result-card p {
  color: var(--charcoal);

  line-height: 1.6;

  margin-bottom: 1.4rem;
}

.result-card strong {
  display: block;

  font-size: 1.7rem;

  margin-bottom: 1rem;
}

.result-card small {
  color: rgba(0, 0, 0, 0.6);

  font-family: "Courier Prime", monospace;
}

.result-link {
  display: inline-flex;

  margin-top: 1.5rem;

  color: var(--slate);

  font-weight: 800;
  letter-spacing: 0.04em;
}

.result-link:hover {
  opacity: 0.7;
}

.show-more-button {
  margin-top: 2rem;

  border: 1px solid rgba(0, 0, 0, 0.12);

  background: transparent;
  color: var(--black);

  padding: 1rem 1.4rem;

  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;

  cursor: pointer;
}

.show-more-button:hover {
  background: rgba(108, 123, 131, 0.12);
}

.brand-strip {
  width: 100%;

  overflow: hidden;

  background: var(--white);

  border-top: 1px solid rgba(0, 0, 0, 0.06);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);

  padding: 1.8rem 0;
}

.brand-track {
  display: flex;
  gap: 4rem;

  width: max-content;

  animation: scrollBrands 45s linear infinite;
}

.brand-track span {
  color: rgba(0, 0, 0, 0.48);

  text-transform: uppercase;
  letter-spacing: 0.12em;

  font-size: 0.95rem;
  font-weight: 700;

  white-space: nowrap;
}

@keyframes scrollBrands {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

footer {
  background: var(--white);

  text-align: center;

  padding: 3rem 2rem;

  color: rgba(0, 0, 0, 0.5);

  font-family: "Courier Prime", monospace;
  font-size: 0.9rem;
}

@media (max-width: 1200px) {
  .search-bar {
    grid-template-columns: 1fr 1fr;
  }

  .dimensions-field {
    grid-column: span 2;
  }

  .search-bar button {
    grid-column: span 2;
  }

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

@media (max-width: 768px) {
  .site-header {
    padding: 2rem;
    flex-direction: column;
    gap: 1.5rem;
  }

  .brand-logo {
    font-size: 3rem;
  }

  .hero {
    min-height: 82vh;
    padding: 9rem 1.5rem 3rem;
  }

  .hero-content {
    transform: none;
  }

  .search-bar {
    grid-template-columns: 1fr;
    margin-top: 2.5rem;
  }

  .dimensions-field,
  .search-bar button {
    grid-column: auto;
  }

  .results-preview,
  .close-results-section {
    padding: 4rem 2rem;
  }

  .section-heading h1 {
    font-size: 3rem;
  }

  .exact-grid,
  .close-grid,
  .manufacturer-grid {
    grid-template-columns: 1fr;
  }
}