/* ================================================================
   Aimy Golf Cart GPS — Shared Styles
   ================================================================ */

*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  margin: 0;
  padding: 0;
  background: #fff;
  color: #1a1a1a;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: #0a8f5a; }

/* ── Nav ──────────────────────────────────────── */

.site-nav-outer {
  background: #0b2a4a;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 960px;
  margin: 0 auto;
  padding: 12px 20px;
}

.site-nav .logo {
  text-decoration: none;
  line-height: 0;
  flex-shrink: 0;
}

/* Logo asset: SVG viewBox matches the wordmark; a full-width PNG scaled by height looked tiny. */
.site-nav .logo img {
  display: block;
  height: clamp(36px, 5.2vw, 52px);
  width: auto;
  max-width: min(520px, 78vw);
}

.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.88);
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active { color: #7ee0a8; }

/* Mobile hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  padding: 4px;
  color: rgba(255, 255, 255, 0.92);
}

/* ── Section primitives ──────────────────────── */

.section {
  max-width: 960px;
  margin: 0 auto;
  padding: 44px 20px;
}

.section-narrow {
  max-width: 720px;
  margin: 0 auto;
  padding: 44px 20px;
}

.section-title {
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 12px;
  color: #1a1a1a;
}

.section-sub {
  font-size: 17px;
  color: #555;
  margin: 0 0 32px;
  max-width: 600px;
}

.text-center { text-align: center; }
.text-center .section-sub { margin-left: auto; margin-right: auto; }

/* Tablet guide — tighter vertical rhythm */
.section-narrow.tablet-guide-block {
  padding-top: 22px;
  padding-bottom: 22px;
}

.section-narrow.tablet-guide-note {
  padding-top: 18px;
  padding-bottom: 18px;
}

.tablet-guide-cards {
  margin-top: 14px;
}

.tablet-guide-callout,
.tablet-guide-callout-sm {
  margin-top: 14px;
}

.tablet-guide-block .spec-table + .tablet-guide-callout {
  margin-top: 14px;
}

@media (max-width: 768px) {
  .section-narrow.tablet-guide-block {
    padding-top: 26px;
    padding-bottom: 26px;
  }
}

/* ── Hero ─────────────────────────────────────── */

.hero {
  text-align: center;
  padding: 28px 20px 22px;
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 44px;
  font-weight: 800;
  margin: 0 0 10px;
  color: #1a1a1a;
  line-height: 1.15;
}

.hero .tagline {
  font-size: 19px;
  color: #555;
  margin: 0 0 20px;
  line-height: 1.6;
}

.hero-img {
  width: 100%;
  max-width: 760px;
  border-radius: 12px;
  margin: 0 auto 28px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.hero-img--after-headline {
  margin-top: 0;
  margin-bottom: 18px;
}

.hero .tagline-follow {
  margin-top: 0;
  margin-bottom: 18px;
}

.home-pilot-line {
  font-size: 15px;
  color: #3d4f48;
  margin: 0 auto 22px;
  max-width: 560px;
  line-height: 1.55;
}

/* Home content bands (desktop rhythm) */

.section-home-panel.section {
  background: linear-gradient(180deg, #f5fbf7 0%, #eef4f0 100%);
  border: 1px solid #cce3d7;
  border-radius: 16px;
  max-width: 920px;
  box-shadow: 0 2px 12px rgba(15, 35, 25, 0.04);
}

.section-home-panel .section-sub {
  margin-bottom: 24px;
}

.section-home-panel .card {
  background: #fff;
  border: 1px solid #e0eae3;
}

@media (min-width: 769px) {
  hr.divider-home-tight {
    margin: 20px auto;
    border-top-color: transparent;
    max-width: 880px;
  }

  .section-home-panel.section {
    padding: 26px 28px 30px;
  }

  .section-home-panel .grid-3,
  .section-home-panel .grid-2 {
    gap: 16px;
  }

  .section-home-panel .steps {
    gap: 22px;
  }

  .section-home-panel .card {
    padding: 22px 20px;
  }
}

@media (max-width: 768px) {
  .section-home-panel.section {
    margin-left: 12px;
    margin-right: 12px;
  }
}

/* Mounting page — photo strip: side-by-side on wide viewports; stacks to one column on phones */

.mount-photo-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 16px 0 8px;
  align-items: start;
}

.mount-photo-row--two {
  grid-template-columns: repeat(2, 1fr);
}

.mount-photo-row figure {
  margin: 0;
}

.mount-photo-row img {
  width: 100%;
  max-height: min(38vw, 360px);
  object-fit: contain;
  border-radius: 10px;
  border: 1px solid #e0e0e0;
  background: #f4f4f4;
}

.mount-photo-row figcaption {
  font-size: 12px;
  color: #777;
  margin-top: 6px;
  line-height: 1.35;
}

@media (max-width: 700px) {
  .mount-photo-row {
    grid-template-columns: 1fr;
  }
}

/* ── Course search ────────────────────────────── */

.search-section {
  max-width: 500px;
  margin: 0 auto 20px;
  position: relative;
}

.search-section h2 {
  text-align: center;
  font-size: 22px;
  margin: 0 0 10px;
  color: #222;
}

.course-count {
  text-align: center;
  font-size: 15px;
  color: #0a8f5a;
  margin-bottom: 14px;
}

.search-input-wrap { position: relative; }

.search-input-wrap input {
  width: 100%;
  padding: 14px 16px 14px 44px;
  font-size: 16px;
  border: 2px solid #ddd;
  border-radius: 10px;
  outline: none;
  transition: border-color 0.2s;
  background: #fff;
}

.search-input-wrap input:focus { border-color: #0a8f5a; }

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
  font-size: 18px;
  pointer-events: none;
}

.search-status {
  text-align: center;
  font-size: 14px;
  color: #888;
  margin-top: 8px;
}

/* ── Search results dropdown ──────────────────── */

.results {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  max-height: 360px;
  overflow-y: auto;
  display: none;
  background: #fff;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  position: absolute;
  left: 0; right: 0;
  z-index: 100;
}

.results.visible { display: block; }

.results li {
  padding: 12px 16px;
  border-bottom: 1px solid #f0f0f0;
}

.results li:last-child { border-bottom: none; }
.results li:hover { background: #f7fdf9; }

.result-name { font-weight: 600; color: #111; }

.result-distance {
  font-weight: 400;
  color: #0a8f5a;
  font-size: 14px;
  margin-left: 6px;
}

.result-location { font-size: 14px; color: #666; margin-top: 2px; }

.result-badge {
  display: inline-block;
  font-size: 11px;
  background: #e6f9f0;
  color: #0a8f5a;
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: 8px;
  vertical-align: middle;
}

.results-empty {
  padding: 20px 16px;
  text-align: center;
  color: #888;
  font-size: 15px;
}

.nearby-prompt {
  padding: 12px 16px;
  text-align: center;
  color: #0a8f5a;
  cursor: pointer;
  font-weight: 500;
  border-bottom: 1px solid #f0f0f0;
}

.nearby-prompt:hover { background: #f0faf5; }

/* ── Grid layouts ─────────────────────────────── */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

/* ── Feature / value cards ────────────────────── */

.card {
  background: #f9fafb;
  border-radius: 12px;
  padding: 28px 24px;
}

.card-icon {
  font-size: 28px;
  margin-bottom: 12px;
}

.card h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 8px;
  color: #1a1a1a;
}

.card p {
  font-size: 15px;
  color: #555;
  margin: 0;
  line-height: 1.5;
}

/* ── Step list (How It Works) ─────────────────── */

.steps {
  display: flex;
  gap: 32px;
  counter-reset: step;
}

.step {
  flex: 1;
  text-align: center;
  counter-increment: step;
}

.step::before {
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #e6f9f0;
  color: #0a8f5a;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 14px;
}

.step h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 6px;
}

.step p {
  font-size: 15px;
  color: #555;
  margin: 0;
}

/* ── Setup tier cards (mounting page) ─────────── */

.tier {
  border: 2px solid #e8e8e8;
  border-radius: 14px;
  padding: 32px 28px;
  margin-bottom: 32px;
  position: relative;
}

.tier.recommended {
  border-color: #0a8f5a;
}

.tier-badge {
  position: absolute;
  top: -13px;
  left: 24px;
  background: #0a8f5a;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tier h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 4px;
  color: #1a1a1a;
}

.tier .tier-subtitle {
  font-size: 15px;
  color: #888;
  margin: 0 0 16px;
}

.tier .tier-price {
  font-size: 28px;
  font-weight: 800;
  color: #0a8f5a;
  margin: 0 0 18px;
}

.tier .tier-price span {
  font-size: 15px;
  font-weight: 400;
  color: #888;
}

.tier h3 {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #999;
  margin: 20px 0 10px;
}

.tier ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tier li {
  padding: 6px 0;
  font-size: 15px;
  color: #333;
  position: relative;
  padding-left: 22px;
}

.tier li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: #0a8f5a;
  font-weight: 700;
}

.tier .parts-list li::before { content: "\2022"; }

.tier-img {
  width: 100%;
  border-radius: 10px;
  margin: 16px 0;
}

.tier-cta {
  display: inline-block;
  margin-top: 18px;
  padding: 12px 24px;
  background: #f0faf5;
  color: #0a8f5a;
  font-weight: 600;
  font-size: 15px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s;
}

.tier-cta:hover { background: #ddf5ea; }

/* ── Photo gallery ────────────────────────────── */

.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.gallery img {
  width: 100%;
  border-radius: 10px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.gallery-caption {
  font-size: 13px;
  color: #888;
  text-align: center;
  margin-top: 6px;
}

/* ── Google Play badge (official asset; landing page /get-app.html) ─ */

.play-store-badge-link {
  display: inline-block;
  line-height: 0;
  border-radius: 10px;
  box-shadow: 0 2px 14px rgba(15, 23, 42, 0.1);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.play-store-badge-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.14);
}

.play-store-badge-link:focus-visible {
  outline: 3px solid rgba(10, 143, 90, 0.45);
  outline-offset: 3px;
}

.play-store-badge-img {
  height: 72px;
  width: auto;
  display: block;
}

@media (max-width: 480px) {
  .play-store-badge-img { height: 64px; }
}

.play-store-hero-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 22px;
}

.play-store-contact-block {
  text-align: center;
  margin-bottom: 28px;
  padding: 20px 16px;
  background: #f8faf9;
  border-radius: 12px;
  border: 1px solid #e2ebe6;
}

.play-store-contact-block p {
  margin: 0 0 14px;
  font-size: 15px;
  color: #555;
}

/* Get app landing — large Play badge */
.play-store-get-app-hero {
  text-align: center;
  margin: 28px auto 48px;
  padding: 36px 24px 32px;
  max-width: 640px;
  background: linear-gradient(180deg, #f4fbf7 0%, #eef6f1 100%);
  border: 1px solid #cfe8da;
  border-radius: 16px;
  box-shadow: 0 4px 28px rgba(15, 23, 42, 0.06);
}

.play-store-badge-link--hero {
  display: inline-block;
  border-radius: 12px;
  box-shadow: 0 6px 32px rgba(15, 23, 42, 0.12);
}

.play-store-badge-img--hero {
  height: auto !important;
  width: min(100%, 520px);
  max-width: 100%;
}

.play-store-get-app-note {
  margin: 22px 0 0;
  font-size: 15px;
  color: #555;
}

.play-store-get-app-note a {
  color: #0a8f5a;
  font-weight: 600;
  text-decoration: none;
}

.play-store-get-app-note a:hover {
  text-decoration: underline;
}

/* ── CTA buttons ──────────────────────────────── */

.btn {
  display: inline-block;
  padding: 14px 32px;
  font-size: 17px;
  font-weight: 600;
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.2s, transform 0.1s;
  cursor: pointer;
  border: none;
}

.btn:active { transform: scale(0.98); }

.btn-primary {
  background: #0a8f5a;
  color: #fff;
}

.btn-primary:hover { background: #078a50; }

.btn-secondary {
  background: transparent;
  color: #0a8f5a;
  border: 2px solid #0a8f5a;
}

.btn-secondary:hover { background: #f0faf5; }

.btn-group {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Info callout ─────────────────────────────── */

.callout {
  background: #f0faf5;
  border-left: 4px solid #0a8f5a;
  border-radius: 0 10px 10px 0;
  padding: 20px 24px;
  margin: 24px 0;
}

.callout p { margin: 0; font-size: 15px; color: #333; }
.callout strong { color: #0a8f5a; }

/* ── Spec table ───────────────────────────────── */

.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  margin: 16px 0;
}

.spec-table th,
.spec-table td {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid #eee;
}

.spec-table th {
  color: #888;
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ── Footer ───────────────────────────────────── */

.site-footer {
  text-align: center;
  padding: 40px 20px;
  font-size: 14px;
  color: #999;
  border-top: 1px solid #eee;
  margin-top: 40px;
}

.site-footer a { color: #999; }
.site-footer a:hover { color: #0a8f5a; }

/* ── Divider ──────────────────────────────────── */

.divider {
  border: none;
  border-top: 1px solid #eee;
  margin: 0;
}

/* ── Responsive ───────────────────────────────── */

@media (max-width: 768px) {
  .hero h1 { font-size: 32px; }
  .hero .tagline { font-size: 17px; }

  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }

  .steps { flex-direction: column; gap: 20px; }

  .gallery { grid-template-columns: 1fr; }

  .section { padding: 40px 20px; }
  .section-narrow { padding: 40px 20px; }

  .section-title { font-size: 24px; }

  .tier { padding: 24px 20px; }

  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 56px;
    right: 20px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 12px 20px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    gap: 12px;
    z-index: 200;
  }
  .nav-toggle { display: block; }
  .site-nav { position: relative; }
}
