﻿:root {
  --bg: #f5f7fb;
  --ink: #1a2534;
  --muted: #56657a;
  --brand: #c94a1f;
  --brand-2: #a63a16;
  --panel: #ffffff;
  --line: #d8e2ef;
  --soft: #eef4fb;
  --radius: 16px;
  --shadow: 0 14px 30px rgba(22, 34, 52, 0.1);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--ink);
  font-family: "Space Grotesk", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background:
    radial-gradient(1100px 540px at 100% -18%, #dbe7f7 0%, rgba(219, 231, 247, 0) 64%),
    radial-gradient(620px 340px at 0% 8%, #fbe7df 0%, rgba(251, 231, 223, 0) 68%),
    var(--bg);
}

img { max-width: 100%; display: block; }

.wrap {
  width: min(1160px, 92vw);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(216, 226, 239, 0.84);
  background: rgba(245, 247, 251, 0.88);
}

.site-nav {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo img {
  height: clamp(34px, 4.2vw, 44px);
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.pill-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 40px;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: #29466b;
  background: #fff;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.9rem;
}

.pill-link:hover {
  border-color: #b9ccE3;
  background: #f9fbfe;
}

.hero {
  padding: clamp(2.2rem, 6vw, 4.6rem) 0 clamp(2rem, 4vw, 3.2rem);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(1.2rem, 2.6vw, 2.2rem);
  align-items: center;
}

.eyebrow {
  margin: 0;
  display: inline-block;
  padding: 0.34rem 0.72rem;
  border: 1px solid #edb7a7;
  border-radius: 999px;
  background: #fff2ed;
  color: #81311c;
  font-size: 0.84rem;
}

h1 {
  margin: 0.95rem 0 0;
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 0.95;
  font-size: clamp(2.08rem, 5.2vw, 4.1rem);
  color: #102036;
}

.hero-copy p {
  margin: 1rem 0 0;
  max-width: 60ch;
  color: var(--muted);
  font-size: clamp(1rem, 2.2vw, 1.06rem);
  line-height: 1.58;
}

.feature-list {
  margin: 1.1rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.feature-list li {
  display: flex;
  gap: 0.56rem;
  color: #27405f;
  font-size: 0.96rem;
}

.feature-list li::before {
  content: "";
  margin-top: 0.44rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 4px #fdeae4;
  flex: 0 0 auto;
}

.cta-row {
  margin-top: 1.28rem;
  display: flex;
  gap: 0.74rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.64rem 1rem;
  border-radius: 11px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.93rem;
  transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(140deg, var(--brand), var(--brand-2));
  box-shadow: 0 8px 18px rgba(183, 64, 24, 0.25);
}

.btn-secondary {
  color: #1f4269;
  border-color: #c4d5eb;
  background: #fff;
}

.hero-media {
  display: grid;
  grid-template-columns: 1.08fr 1fr;
  gap: 0.75rem;
  min-height: 430px;
}

.hero-media img {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  object-fit: cover;
  width: 100%;
  height: 100%;
  box-shadow: var(--shadow);
}

.section {
  padding: 0.7rem 0 2.3rem;
}

.section h2 {
  margin: 0;
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: clamp(1.7rem, 3.2vw, 2.45rem);
}

.section .sub {
  margin: 0.42rem 0 0;
  color: var(--muted);
}

.notice {
  margin-top: 0.96rem;
  border: 1px solid #efc8bb;
  background: #fff5f1;
  border-radius: 10px;
  color: #7d2f1b;
  padding: 0.75rem 0.85rem;
  font-size: 0.92rem;
}

.gallery-grid {
  margin-top: 1.04rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.92rem;
}

.gallery-card {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 16px rgba(20, 33, 50, 0.05);
}

.gallery-card img {
  width: 100%;
  height: 186px;
  object-fit: cover;
}

.gallery-meta {
  padding: 0.72rem 0.76rem 0.88rem;
}

.gallery-title {
  margin: 0;
  color: #183454;
  font-weight: 700;
  font-size: 0.96rem;
  line-height: 1.3;
}

.gallery-caption {
  margin: 0.34rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.42;
}

.loading-msg,
.error-msg {
  border: 1px dashed #c8d8eb;
  background: #fff;
  border-radius: 12px;
  padding: 1rem;
  color: var(--muted);
}

.page-intro {
  padding: clamp(1.8rem, 4.2vw, 2.8rem) 0 1.1rem;
}

.page-intro h1 {
  margin: 0;
  font-size: clamp(2rem, 4.1vw, 3.2rem);
}

.page-intro p {
  margin: 0.62rem 0 0;
  color: var(--muted);
  max-width: 72ch;
}

.dealer-layout {
  padding-bottom: 2.2rem;
  display: grid;
  grid-template-columns: 1fr 1.18fr;
  gap: 1rem;
  align-items: start;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  padding: 0.92rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.52rem;
}

label {
  display: block;
  font-size: 0.88rem;
  color: #334f73;
  font-weight: 700;
  margin: 0.25rem 0;
}

input,
button {
  width: 100%;
  min-height: 42px;
  padding: 0.62rem 0.72rem;
  border-radius: 10px;
  border: 1px solid #c8d7ea;
  font-family: inherit;
  font-size: 0.93rem;
}

button {
  border: none;
  color: #fff;
  background: linear-gradient(140deg, var(--brand), var(--brand-2));
  font-weight: 700;
  cursor: pointer;
}

.btn-row {
  margin-top: 0.58rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.52rem;
}

#dealerMap {
  height: 430px;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.result-list {
  margin-top: 0.74rem;
  display: grid;
  gap: 0.52rem;
  max-height: 260px;
  overflow: auto;
  padding-right: 0.2rem;
}

.result-item {
  border: 1px solid #d6e2f0;
  border-radius: 10px;
  background: #fff;
  padding: 0.6rem;
  color: #284564;
  font-size: 0.9rem;
}

.result-item b {
  color: #1a3556;
}

.admin-tools {
  margin-top: 0.8rem;
  border-top: 1px dashed #d7e1ee;
  padding-top: 0.72rem;
}

.admin-tools summary {
  cursor: pointer;
  color: #4e6078;
  font-size: 0.86rem;
  font-weight: 700;
}

.admin-tools .admin-body {
  margin-top: 0.62rem;
}

.site-footer {
  border-top: 1px solid #dce5f0;
  margin-top: 1.2rem;
  padding: 1.1rem 0 2.3rem;
  color: #687a91;
  font-size: 0.88rem;
}

@media (max-width: 1020px) {
  .gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .hero-media {
    grid-template-columns: 1fr;
    grid-template-rows: 220px 220px;
    min-height: 0;
  }
  .dealer-layout { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-grid,
  .btn-row { grid-template-columns: 1fr; }
  .site-nav { min-height: 68px; }
}
