/* Boyer Country – shared styles (main site + tundra page) */
:root {
  --green: #0ee708;
  --green-soft: #5cf257;
  --ink: #ffffff;
  --muted: #d3dbe2;
  --glass: rgba(16, 22, 28, 0.58);
  --glass-strong: rgba(12, 17, 22, 0.72);
  --edge: rgba(255, 255, 255, 0.16);
  --teal: #2a7e8c;
  --teal-hover: #33959f;
  --tan: #f1c79a;
  --radius: 12px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.55;
  background: #10232f;
  min-height: 100vh;
}

/* iOS ignores fixed backgrounds; use a pinned layer instead */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background: #10232f url("bg.jpg") center / cover no-repeat;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(5, 15, 25, 0.25) 0%, rgba(5, 15, 25, 0.45) 55%, rgba(5, 15, 25, 0.65) 100%);
}

a { color: var(--green-soft); }

.wrap { width: min(1040px, 100% - 32px); margin: 0 auto; }

/* Top bar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(8, 14, 20, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--edge);
}
.topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--green);
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.brand img { width: 30px; height: auto; }
.nav { display: flex; gap: 16px; flex-wrap: nowrap; white-space: nowrap; }
.nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
  opacity: 0.9;
}
.nav a:hover { color: var(--green); opacity: 1; }

/* Hero */
.hero { text-align: center; padding: 48px 0 28px; }
.hero h1 {
  margin: 0;
  color: var(--green);
  font-size: clamp(2rem, 6vw, 3.2rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.35);
}
.hero .tag {
  margin: 10px 0 0;
  font-size: clamp(1rem, 2.6vw, 1.2rem);
  color: var(--ink);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
}
.hero .logo {
  display: block;
  width: min(300px, 62vw);
  height: auto;
  margin: 26px auto 0;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.35));
}

/* Glass panels and cards */
.panel {
  background: var(--glass);
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 22px 24px;
}
.panel + .panel { margin-top: 16px; }

section { padding: 18px 0; scroll-margin-top: 70px; }

h2 {
  color: var(--green);
  font-size: clamp(1.35rem, 3.6vw, 1.7rem);
  margin: 0 0 12px;
  text-align: center;
}
h3 { color: var(--green); font-size: 1.3rem; margin: 0 0 8px; }

.lead { font-size: 1.08rem; margin: 0 auto; max-width: 760px; text-align: center; }

/* Profile sections */
.profile { width: min(780px, 100%); margin: 0 auto; }
.profile .item { padding: 18px 0; border-top: 1px solid var(--edge); }
.profile .item:first-of-type { border-top: 0; padding-top: 4px; }
.profile .item:last-child { padding-bottom: 0; }
.profile h3 { margin: 0 0 6px; }
.profile p { margin: 0; }
.profile p + p { margin-top: 8px; }

/* Contact */
.contact { text-align: center; }
.contact .email {
  display: inline-block;
  font-size: clamp(1.1rem, 3.4vw, 1.35rem);
  font-weight: 700;
  color: var(--green);
  text-decoration: none;
  margin: 6px 0 14px;
  word-break: break-all;
}

footer {
  text-align: center;
  padding: 30px 0 40px;
  color: var(--muted);
  font-size: 0.88rem;
}
footer img { width: 36px; height: auto; display: block; margin: 0 auto 8px; opacity: 0.95; }

/* ---------- Listing page (tundra) ---------- */
.price {
  color: var(--green);
  font-size: clamp(1.8rem, 6vw, 2.6rem);
  font-weight: 800;
  margin: 8px 0 0;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.35);
}
.hero-photo {
  display: block;
  width: 100%;
  max-height: 64vh;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--edge);
  cursor: zoom-in;
  margin-top: 22px;
}
.specs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
}
.spec {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--edge);
  border-radius: 10px;
  padding: 12px 14px;
  text-align: center;
}
.spec b { display: block; font-size: 1.08rem; }
.spec span { color: var(--muted); font-size: 0.82rem; }
.list { margin: 0; padding-left: 22px; }
.list li { margin: 5px 0; }
.terms p { margin: 0 0 10px; }
.terms p:last-child { margin-bottom: 0; }
.terms b { color: var(--green-soft); }

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 8px;
}
.gallery button {
  padding: 0;
  border: 1px solid var(--edge);
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  cursor: zoom-in;
}
.gallery img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .2s; }
.gallery button:hover img { transform: scale(1.04); }

.lb {
  position: fixed; inset: 0; background: rgba(0, 0, 0, .93);
  display: none; align-items: center; justify-content: center; z-index: 20;
}
.lb.open { display: flex; }
.lb img { max-width: 96vw; max-height: 86vh; object-fit: contain; }
.lb .ctl {
  position: absolute; background: rgba(255, 255, 255, .14); color: #fff; border: 0;
  font-size: 1.6rem; width: 48px; height: 48px; border-radius: 50%; cursor: pointer;
}
.lb .prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lb .next { right: 10px; top: 50%; transform: translateY(-50%); }
.lb .close { right: 10px; top: 10px; }
.lb .count { position: absolute; bottom: 14px; color: #ccc; font-size: .9rem; }

@media (max-width: 560px) {
  .nav { gap: 12px; }
  .nav a { font-size: 0.88rem; }
  .panel { padding: 18px 16px; }
}
