/* ═══════════════════════════════════════════════════════════════════════════
   RALLY ATL — HOMEPAGE STYLESHEET (/public/homepage.css)
   Mobile-First Architecture with 640px Responsive Breakpoint
   ═══════════════════════════════════════════════════════════════════════════ */

body {
  background-image:
    radial-gradient(at 0% 0%, rgba(46, 204, 113, 0.04) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(26, 46, 68, 0.03) 0px, transparent 50%);
}

main {
  justify-content: center;
}

/* ── Nav Cards (Mobile Base: Horizontal Row) ── */

#navCardDeck {
  width: 100%;
  max-width: 1200px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  grid-gap: 8px;
  padding: 0 4px;
}

.nav-card {
  display: grid;
  grid-template-columns: 56px 1fr;
  grid-template-areas:
    "icon title"
    "icon desc";
  gap: 4px 16px;
  align-items: center;
  background: var(--white, #ffffff);
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  padding: 16px 20px;
  text-decoration: none;
  color: var(--text, #1e293b);
  transition: all 0.2s ease;
}

.nav-card:hover {
  background-color: #f0fdf4;
  border-color: #86efac;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

/* ── Nav Icons ── */
.nav-icon {
  grid-area: icon;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #eff6ff;
  border: 1px solid #dbeafe;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  transition: transform 0.25s ease;
}

.nav-card:hover .nav-icon {
  transform: scale(1.08);
}

/* ── Headings & Text ── */
.nav-card h2 {
  grid-area: title;
  font-size: 18px;
  font-weight: 700;
  color: var(--navy, #1a2e44);
  margin: 0;
}

.nav-card p {
  grid-area: desc;
  font-size: 13.5px;
  color: var(--muted, #64748b);
  line-height: 1.45;
  margin: 0;
}

/* ── Action Buttons (Hidden on mobile row layout) ── */
.nav-btn {
  display: none;
}

/* ── Desktop & Tablet (640px+): Vertical Card Layout ── */
@media (min-width: 640px) {

  #navCardDeck {
    padding: 16px 20px;
  }

  .nav-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 28px 24px 22px;
    min-height: 310px;
  }

  .nav-icon {
    width: 76px;
    height: 76px;
    font-size: 34px;
    margin: 0 auto 12px;
  }

  .nav-card h2 {
    font-size: 19px;
  }

  .nav-card p {
    margin: 8px 0 16px;
    flex: 1;
  }

  .nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    color: #1d4ed8;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    transition: all 0.2s ease;
    margin-top: auto;
  }

  .nav-card:hover .nav-btn {
    background: #1d4ed8;
    color: #ffffff;
    border-color: #1d4ed8;
  }
}