/* ============================================================
   316 POWERSPORTS — styles
   ============================================================ */

:root {
  --bg:        #f6f8fb;   /* off-white page */
  --surface:   #e9eef5;   /* alt sections */
  --surface-2: #ffffff;   /* cards / raised elements */
  --line:      #d8dee8;   /* borders */
  --text:      #131720;   /* near-black text */
  --muted:     #586273;   /* secondary text */
  --accent:    #0b3fb5;   /* Yamaha blue */
  --accent-2:  #1761d8;   /* brighter blue */
  --shadow:    0 1px 3px rgba(16, 24, 40, 0.07), 0 1px 2px rgba(16, 24, 40, 0.04);
  --radius:    12px;
  --maxw:      1140px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Barlow", system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------------- Header / Nav ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 248, 251, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  font-family: "Oswald", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 1.6rem;
  letter-spacing: 1px;
  color: var(--text);
  white-space: nowrap;
}
.logo span { color: var(--accent); }

.nav { display: flex; gap: 8px; }

.nav-link {
  font-family: "Teko", sans-serif;
  font-size: 1.35rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  padding: 6px 14px;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}
.nav-link:hover { color: var(--text); }
.nav-link.active { color: var(--accent); background: rgba(11, 63, 181, 0.08); }

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 26px;
  background: var(--text);
  transition: transform 0.25s, opacity 0.25s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  padding: 48px 0 44px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 0%, rgba(11, 63, 181, 0.12), transparent 60%),
    linear-gradient(180deg, #e7eefb 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg, transparent, transparent 22px,
    rgba(11, 63, 181, 0.03) 22px, rgba(11, 63, 181, 0.03) 24px
  );
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; }
.hero-kicker {
  font-family: "Teko", sans-serif;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--accent-2);
  font-size: 0.95rem;
  margin: 0 0 4px;
}
.hero-brand {
  font-family: "Oswald", sans-serif;
  font-weight: 700;
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  line-height: 0.95;
  margin: 0;
  text-transform: uppercase;
}
.hero-brand span { color: var(--accent); }
.hero-title {
  font-family: "Teko", sans-serif;
  font-weight: 500;
  font-size: clamp(1.4rem, 3.2vw, 2.1rem);
  line-height: 1.05;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text);
  margin: 8px 0 0;
}
.hero-sub {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 14px auto 22px;
}
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.btn {
  font-family: "Teko", sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 10px 28px;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s, background 0.2s, border-color 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #1657e0; }
.btn-ghost { border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); }

/* ---------------- Sections ---------------- */
.section { padding: 80px 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section-title {
  font-family: "Teko", sans-serif;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1;
  margin: 0 0 36px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.section-title .bar {
  width: 8px;
  height: 0.9em;
  background: var(--accent);
  border-radius: 2px;
  flex: none;
}
.section-intro { color: var(--muted); margin: -20px 0 32px; font-size: 1.1rem; }

/* ---------------- About ---------------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: stretch;
}
.about-text { display: flex; flex-direction: column; }
.about-text p { font-size: 1.15rem; margin: 0 0 18px; }
.about-text p:first-child { margin-top: 0; } /* keep first line flush with photo top */

/* Contact card sits at the bottom of the left column, level with the Location box */
.contact-card { margin-top: auto; }
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 0;
  border-bottom: 1px dashed var(--line);
}
.contact-list li:last-child { border-bottom: none; }
.contact-label { color: var(--muted); }
.contact-list a { color: var(--accent); font-weight: 600; }
.contact-list a:hover { text-decoration: underline; }

.storefront {
  margin: 0 0 20px;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface-2);
  aspect-ratio: 16 / 10;
  box-shadow: var(--shadow);
}
.storefront img { width: 100%; height: 100%; object-fit: cover; }
.storefront img.missing { display: none; }
.storefront-fallback {
  display: none;
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--muted);
  font-family: "Teko", sans-serif;
  font-size: 1.5rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.storefront-fallback small { font-family: "Barlow", sans-serif; font-size: 0.85rem; text-transform: none; letter-spacing: 0; }
.storefront img.missing + .storefront-fallback { display: flex; }

.info-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.info-card {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow);
}
.info-card h3 {
  font-family: "Teko", sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 1.4rem;
  margin: 0 0 8px;
  color: var(--accent-2);
}
.info-card p { margin: 0; color: var(--text); }
.info-link { color: var(--accent); font-weight: 600; display: inline-block; margin-top: 10px; }
.info-link:hover { text-decoration: underline; }
.map-embed {
  margin-top: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  line-height: 0;
  box-shadow: var(--shadow);
}
.map-embed iframe { display: block; width: 100%; }

.hours { list-style: none; padding: 0; margin: 0; }
.hours li { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; border-bottom: 1px dashed var(--line); }
.hours li:last-child { border-bottom: none; }
.hours span:last-child { color: var(--muted); }

/* ---------------- Services ---------------- */
.services-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.subhead {
  font-family: "Teko", sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 1.7rem;
  margin: 0 0 18px;
  color: var(--text);
}
.service-list { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 28px; }
.service-list li {
  position: relative;
  padding: 7px 0 7px 22px;
  break-inside: avoid;
  border-bottom: 1px solid var(--line);
}
.service-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 8px; height: 8px;
  background: var(--accent);
  transform: translateY(-50%) rotate(45deg);
}

.makes-grid { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.makes-grid li {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 16px;
  font-weight: 600;
  font-size: 0.98rem;
  transition: border-color 0.2s, color 0.2s;
}
.makes-grid li:hover { border-color: var(--accent); color: var(--accent); }
.makes-note { color: var(--muted); margin-top: 18px; }

/* ---------------- Photos ---------------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface-2);
  aspect-ratio: 1 / 1;
  cursor: pointer;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-empty { color: var(--muted); text-align: center; padding: 8px 0; }
.gallery-empty.hidden { display: none; }

/* ---------------- FAQ ---------------- */
.faq-list { max-width: 840px; }
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
  box-shadow: var(--shadow);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  font-family: "Teko", sans-serif;
  font-size: 1.4rem;
  letter-spacing: 0.5px;
  color: var(--text);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  flex: none;
  color: var(--accent);
  font-size: 1.6rem;
  line-height: 1;
}
.faq-item[open] summary::after { content: "\2013"; }
.faq-answer { padding: 0 20px 18px; color: var(--muted); max-width: 72ch; }
.faq-answer a { color: var(--accent); font-weight: 600; }
.faq-answer a:hover { text-decoration: underline; }

/* ---------------- Lightbox ---------------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 92vw; max-height: 88vh; border-radius: 8px; }
.lightbox-close {
  position: absolute;
  top: 18px; right: 24px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.6rem;
  line-height: 1;
  cursor: pointer;
}

/* ---------------- Footer ---------------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0;
  background: var(--surface);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.footer-logo {
  font-family: "Oswald", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 1.3rem;
}
.site-footer p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* ---------------- Footer NAP ---------------- */
.footer-nap { margin: 0; color: var(--muted); font-size: 0.95rem; text-align: center; }
.footer-nap a { color: var(--accent); font-weight: 600; }
.footer-nap a:hover { text-decoration: underline; }
.footer-nap span { margin: 0 6px; color: var(--line); }

/* ---------------- Responsive ---------------- */
@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav {
    position: absolute;
    top: 72px; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .nav.open { max-height: 260px; }
  .nav-link {
    border-radius: 0;
    padding: 16px 24px;
    border-bottom: 1px solid var(--line);
  }

  .about-grid, .services-grid { grid-template-columns: 1fr; gap: 32px; }
  .service-list { columns: 1; }
}

@media (max-width: 480px) {
  .info-cards { grid-template-columns: 1fr; }
  .hero { padding: 64px 0 56px; }
}
