/* ================================================================
   Aimy GolfGPS — 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 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 960px;
  margin: 0 auto;
  padding: 16px 20px;
}

.site-nav .logo {
  font-size: 20px;
  font-weight: 700;
  color: #1a1a1a;
  text-decoration: none;
}

.site-nav .logo span { color: #0a8f5a; }

.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  color: #555;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active { color: #0a8f5a; }

/* Mobile hamburger */
.nav-toggle { display: none; background: none; border: none; font-size: 24px; cursor: pointer; padding: 4px; }

/* ── Section primitives ──────────────────────── */

.section {
  max-width: 960px;
  margin: 0 auto;
  padding: 60px 20px;
}

.section-narrow {
  max-width: 720px;
  margin: 0 auto;
  padding: 60px 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; }

/* ── Hero ─────────────────────────────────────── */

.hero {
  text-align: center;
  padding: 50px 20px 30px;
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 44px;
  font-weight: 800;
  margin: 0 0 14px;
  color: #1a1a1a;
  line-height: 1.15;
}

.hero .tagline {
  font-size: 19px;
  color: #555;
  margin: 0 0 32px;
  line-height: 1.6;
}

.hero-img {
  width: 100%;
  max-width: 760px;
  border-radius: 12px;
  margin: 0 auto 40px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

/* ── 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;
}

/* ── 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; }
}
