/* ---- Theme colors (taken from the logo) ---- */
:root {
  --navy: #1b1f2b;
  --navy-2: #263044;
  --blue: #1e9be0;
  --lime: #8dc63f;
  --bg: #f3f5f9;
  --card: #ffffff;
  --text: #1c2230;
  --muted: #6b7385;
  --radius: 16px;
  --shadow: 0 2px 8px rgba(20, 30, 60, .06);
  --shadow-hover: 0 14px 32px rgba(20, 30, 60, .16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

/* ---- Header ---- */
header {
  background: radial-gradient(ellipse at top, var(--navy-2) 0%, var(--navy) 70%);
  color: #fff;
  padding: .75rem 1rem 2.5rem;
  text-align: center;
}
.logo {
  height: 140px; max-width: 100%; width: auto; object-fit: contain;
  display: block; margin: 0 auto;
  mix-blend-mode: lighten; /* hides the logo's flat navy box against the gradient */
}
header p {
  margin: .25rem 0 0;
  color: #b8c4dc;
  letter-spacing: .08em;
  font-size: 1rem;
}

.lang { text-align: right; }
.lang button {
  background: rgba(255, 255, 255, .06);
  color: #cfd6e4;
  border: 1px solid rgba(255, 255, 255, .2);
  min-height: 36px; padding: .3rem .9rem;
  border-radius: 999px; cursor: pointer; font-size: .9rem;
  transition: background .2s, color .2s, border-color .2s;
}
.lang button:hover { background: rgba(255, 255, 255, .16); }
.lang button.active { background: var(--blue); border-color: var(--blue); color: #fff; }

/* ---- Layout ---- */
main { max-width: 1100px; margin: 0 auto; padding: 0 1rem 1rem; }

/* Search bar floats over the header edge and stays at the top when scrolling */
.controls {
  position: sticky; top: .75rem; z-index: 10;
  display: flex; gap: .6rem; flex-wrap: wrap;
  margin: -1.5rem 0 1rem;
  padding: .75rem;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--radius);
  box-shadow: 0 6px 24px rgba(20, 30, 60, .14);
}
.controls input { flex: 1; min-width: 180px; }
.controls input, .controls select {
  padding: .7rem .9rem;
  border: 1px solid #dde2ec;
  border-radius: 10px;
  font-size: 1rem;
  background: #fff;
  color: var(--text);
  transition: border-color .2s, box-shadow .2s;
}
.controls input:focus, .controls select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(30, 155, 224, .2);
}

.note { color: var(--muted); font-size: .9rem; margin: 0 0 1.25rem; padding: 0 .25rem; }

/* ---- Cards ---- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.25rem;
}
.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease;
  animation: rise .5s ease both;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.card:nth-child(2) { animation-delay: .06s; }
.card:nth-child(3) { animation-delay: .12s; }
.card:nth-child(4) { animation-delay: .18s; }
.card:nth-child(5) { animation-delay: .24s; }
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

.photo {
  aspect-ratio: 1 / 1;
  max-height: 260px;
  width: 100%;
  background: linear-gradient(145deg, #f6f8fc, #e9edf5);
  border-radius: 12px;
  margin-bottom: 1rem;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.photo img {
  width: 100%; height: 100%; object-fit: contain;
  mix-blend-mode: multiply; /* makes white photo backgrounds blend in */
  transition: transform .4s ease;
}
.card:hover .photo img { transform: scale(1.06); }
.no-photo { color: #9aa3b5; font-size: .9rem; }

.brand {
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: .75rem; font-weight: 700;
  margin: 0 0 .2rem;
}
.card h2 { margin: 0 0 .75rem; font-size: 1.2rem; line-height: 1.25; }
.specs { list-style: none; padding: 0; margin: 0 0 .75rem; font-size: .9rem; color: var(--muted); }
.specs li { padding: .15rem 0; }
.card > p:not(.brand) { font-size: .9rem; color: #4a5266; margin: 0 0 1rem; }
.swatch {
  display: inline-block; width: .85em; height: .85em;
  border-radius: 50%; border: 1px solid rgba(0, 0, 0, .25);
  margin-right: .3em; vertical-align: -1px;
}

/* Price pill pinned to the bottom of each card */
.price {
  margin-top: auto; align-self: flex-start;
  background: linear-gradient(135deg, var(--blue), #1578b8);
  color: #fff; font-weight: 700; font-size: 1.05rem;
  padding: .3rem .9rem; border-radius: 999px;
}
.price.tbd { background: #eceff5; color: var(--muted); font-weight: 500; font-size: .9rem; }

.empty { text-align: center; color: var(--muted); padding: 2rem; }

/* ---- Map ---- */
.find-us { margin-top: 3rem; }
.find-us h2 { margin-bottom: .25rem; }
.find-us iframe {
  width: 100%; height: 360px; border: 0; border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.find-us a { color: var(--blue); font-weight: 600; text-decoration: none; }
.find-us a:hover { text-decoration: underline; }

/* ---- Footer ---- */
footer {
  background: var(--navy); color: #8d97ad;
  text-align: center; padding: 1.75rem; margin-top: 3rem;
}

/* ---- Small screens ---- */
@media (max-width: 600px) {
  .logo { height: 100px; }
  .photo { max-height: 220px; }
  .controls { position: static; margin-top: -1.25rem; }
}

/* Respect users who turn off animations */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ---- Header contact chip (same look as the language buttons) ---- */
.chip {
  margin-top: .9rem;
  background: rgba(255, 255, 255, .06);
  color: #cfd6e4;
  border: 1px solid rgba(255, 255, 255, .2);
  min-height: 36px; padding: .3rem .9rem;
  border-radius: 999px; cursor: pointer; font-size: .9rem; font-family: inherit;
  transition: background .2s;
}
.chip:hover { background: rgba(255, 255, 255, .16); color: #fff; }
.chip[hidden] { display: none; }
