/* J & J Auto Village LLC — site styles */

:root {
  --bg: #0f1218;
  --bg-elevated: #171c26;
  --surface: #1e2533;
  --text: #f2f4f8;
  --muted: #9aa3b5;
  --accent: #1e5eff;
  --accent-dim: #1146c7;
  --accent-soft: rgba(30, 94, 255, 0.14);
  --border: rgba(255, 255, 255, 0.07);
  --radius: 14px;
  --radius-sm: 10px;
  --font-display: "Outfit", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --max: 1120px;
  --header-h: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: #73a5ff;
}

.muted {
  color: var(--muted);
  font-weight: 400;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 1000;
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: #1a1408;
  font-weight: 600;
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  left: 16px;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(15, 18, 24, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  text-decoration: none;
}

.logo-img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: 14px;
  flex: 0 0 auto;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(145deg, var(--accent), var(--accent-dim));
  color: #1a1408;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.1;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.1;
}

.logo-text small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 4px;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  cursor: pointer;
  position: relative;
}

.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle-bar {
  top: 50%;
  margin-top: -1px;
}

.nav-toggle-bar::before,
.nav-toggle-bar::after {
  content: "";
}

.nav-toggle-bar::before {
  top: -7px;
}

.nav-toggle-bar::after {
  top: 7px;
}

.site-header.nav-open .nav-toggle-bar {
  background: transparent;
}

.site-header.nav-open .nav-toggle-bar::before {
  transform: translateX(-50%) rotate(45deg);
  top: 0;
}

.site-header.nav-open .nav-toggle-bar::after {
  transform: translateX(-50%) rotate(-45deg);
  top: 0;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}

.site-nav a:hover {
  color: var(--text);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.site-nav-hidden {
  display: none !important;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn-primary {
  background: linear-gradient(180deg, var(--accent), var(--accent-dim));
  color: #1a1408;
  border-color: rgba(0, 0, 0, 0.12);
}

.btn-primary:hover {
  color: #120e05;
  filter: brightness(1.05);
}

.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: rgba(232, 180, 76, 0.35);
  color: var(--accent);
}

.btn-lg {
  padding: 0.85rem 1.5rem;
  font-size: 1.05rem;
}

.btn-nav {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

/* Hero */

.hero {
  position: relative;
  min-height: min(78vh, 820px);
  display: flex;
  align-items: center;
  padding: 4rem 1.25rem 5rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 70% at 70% 20%, rgba(232, 180, 76, 0.12), transparent 55%),
    radial-gradient(ellipse 60% 50% at 10% 80%, rgba(90, 120, 200, 0.08), transparent 45%),
    linear-gradient(180deg, var(--bg) 0%, #121722 100%);
  pointer-events: none;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 100% 48px;
  opacity: 0.35;
  mask-image: linear-gradient(180deg, black 0%, transparent 85%);
}

.hero-content {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
}

.eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3.35rem);
  font-weight: 700;
  line-height: 1.08;
  margin: 0 0 1rem;
  max-width: 14ch;
}

.lead {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 42rem;
  margin: 0 0 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.25rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  max-width: 520px;
  margin: 0;
  padding: 1rem 0 0;
  border-top: 1px solid var(--border);
}

.hero-stats div {
  margin: 0;
}

.hero-stats dt {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.25rem;
}

.hero-stats dd {
  margin: 0;
  font-weight: 600;
  color: var(--text);
}

/* Sections */

.section {
  padding: 4.5rem 1.25rem;
}

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

.section-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2.5rem;
}

.section-head.align-left {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  margin: 0 0 0.65rem;
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

.section-note {
  margin: 2rem 0 0;
  padding: 1rem 1.15rem;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  border: 1px solid rgba(232, 180, 76, 0.2);
  color: var(--muted);
  font-size: 0.95rem;
}

.section-note strong {
  color: var(--accent);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.35rem 1.45rem;
}

.card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.checklist {
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

.checklist li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 0.85rem;
  color: var(--muted);
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.highlight-box {
  background: linear-gradient(165deg, var(--surface), #232b3d);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
}

.highlight-box blockquote {
  margin: 0;
  font-size: 1.15rem;
  font-style: italic;
  color: var(--text);
  line-height: 1.55;
}

.highlight-box .cite {
  margin: 1rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
}

.step-num {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
}

.steps h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 0.35rem;
}

.steps p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.gallery-item {
  margin: 0;
}

.gallery-ph {
  aspect-ratio: 4/3;
  border-radius: var(--radius);
  background: linear-gradient(145deg, var(--surface), #252e40);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  display: grid;
  place-items: center;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.9rem;
}

.gallery-img {
  aspect-ratio: 4/3;
  width: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  background: linear-gradient(145deg, var(--surface), #252e40);
  border: 1px dashed rgba(255, 255, 255, 0.12);
}

.gallery-item figcaption {
  margin-top: 0.5rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.cta-band {
  padding: 3rem 1.25rem;
  background: linear-gradient(90deg, rgba(232, 180, 76, 0.12), transparent);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.cta-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.cta-inner h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin: 0 0 0.35rem;
}

.cta-inner p {
  margin: 0;
  color: var(--muted);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.address {
  font-style: normal;
  margin: 1rem 0 1.25rem;
  color: var(--text);
  line-height: 1.65;
}

.hours {
  margin: 0;
}

.hours div {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 0.75rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
}

.hours dt {
  margin: 0;
  font-weight: 600;
  color: var(--muted);
  font-size: 0.9rem;
}

.hours dd {
  margin: 0;
}

.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  min-height: 280px;
  background: var(--surface);
}

.map-wrap iframe {
  width: 100%;
  height: 320px;
  border: 0;
  display: block;
}

.map-note {
  margin: 0;
  padding: 0.75rem 1rem 1rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.map-cta {
  margin-top: 0.75rem;
}

.map-cta-btn {
  width: 100%;
  justify-content: center;
  border-radius: var(--radius-sm);
}

/* Reviews */

.reviews-layout {
  display: grid;
  grid-template-columns: minmax(0, 360px) minmax(0, 1.4fr);
  gap: 2rem;
  align-items: flex-start;
  margin-bottom: 3rem;
}

.reviews-form-card,
.reviews-list-card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 1.5rem 1.6rem;
}

.reviews-form-card h3,
.reviews-list-card h3,
.reviews-videos h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.field span {
  font-weight: 600;
}

.field select,
.field input[type="text"],
.field input[type="file"],
.field textarea {
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: #11141c;
  color: var(--text);
  padding: 0.55rem 0.7rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  resize: vertical;
}

.field select:focus,
.field input[type="text"]:focus,
.field input[type="file"]:focus,
.field textarea:focus {
  outline: 2px solid var(--accent-soft);
  outline-offset: 1px;
}

.full-width {
  width: 100%;
}

.small-text {
  font-size: 0.8rem;
  margin-top: 0.5rem;
}

.reviews-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.review-item {
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  padding: 0.85rem 1rem;
  background: rgba(15, 18, 24, 0.8);
}

.review-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
  font-size: 0.86rem;
  color: var(--muted);
}

.review-rating {
  color: var(--accent);
  font-weight: 600;
}

.review-name {
  font-weight: 700;
  color: var(--text);
}

.review-stars {
  margin: 0.35rem 0 0.5rem;
  color: var(--accent);
  letter-spacing: 0.02em;
  font-size: 0.95rem;
}

.review-text {
  margin: 0;
  font-size: 0.95rem;
}

.review-media {
  margin-top: 0.75rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.5rem;
}

.review-media img,
.review-media video {
  width: 100%;
  max-height: 180px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: #000;
}

.reviews-videos {
  margin-top: 2rem;
}

.reviews-video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.reviews-video-grid video {
  width: 100%;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: #000;
}

.video-fallback {
  margin: 0;
  padding: 0.9rem 0.8rem;
  border-radius: var(--radius-sm);
  border: 1px dashed rgba(255, 255, 255, 0.18);
  background: rgba(15, 18, 24, 0.4);
  text-align: center;
  font-size: 0.92rem;
}

.social-links {
  margin-top: 1.75rem;
}

.social-links h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

.social-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.95rem;
}

.social-links a {
  text-decoration: none;
}

/* Footer */

.site-footer {
  padding: 2.5rem 1.25rem;
  border-top: 1px solid var(--border);
  background: #0c0e13;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  text-align: center;
}

.footer-brand {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}

.footer-copy {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-note {
  margin: 1rem 0 0;
  font-size: 0.82rem;
  color: var(--muted);
  opacity: 0.85;
}

/* Mobile nav */

@media (max-width: 768px) {
  .nav-toggle {
    display: none;
  }

  .site-nav {
    position: static;
    inset: auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
    padding: 0;
    background: transparent;
    backdrop-filter: none;
    transform: none;
    transition: none;
    overflow: visible;
  }

  .site-nav ul {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.7rem;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
  }

  .site-nav li {
    border-bottom: 0;
    flex: 0 0 auto;
  }

  .site-nav a {
    display: inline-block;
    padding: 0.35rem 0.2rem;
    font-size: 0.88rem;
  }

  .btn-nav {
    display: none;
  }

  .hero-stats {
    grid-template-columns: 1fr;
    max-width: none;
  }

  .split {
    grid-template-columns: 1fr;
  }

  .gallery {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .map-wrap iframe {
    height: 240px;
  }

  .reviews-layout {
    grid-template-columns: 1fr;
  }

  .cta-inner {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .btn-lg {
    width: 100%;
  }
}
