/* Basic reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #0b1020;
  background: radial-gradient(circle at top left, #e0f7ff 0, #f0fffb 45%, #ffffff 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.shell {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header & nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: linear-gradient(
    120deg,
    rgba(15, 118, 210, 0.96),
    rgba(5, 150, 105, 0.96)
  );
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  gap: 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: #ffffff;
}

.logo-mark {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-weight: 600;
  font-size: 0.95rem;
}

.logo-subtitle {
  font-size: 0.75rem;
  opacity: 0.75;
}

.site-nav ul {
  list-style: none;
  display: flex;
  gap: 1.25rem;
  padding: 0;
  margin: 0;
  font-size: 0.9rem;
}

.site-nav a {
  color: rgba(255, 255, 255, 0.78);
  padding-bottom: 0.3rem;
  border-bottom: 2px solid transparent;
  transition: color 0.16s ease, border-color 0.16s ease;
}

.site-nav li.active a,
.site-nav a:hover {
  color: #ffffff;
  border-color: #ff7b3b;
}

.auth-links {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.5rem 1.05rem;
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease,
    box-shadow 0.16s ease, transform 0.08s ease;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, #0ea5e9, #22c55e);
  color: #012a1f;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.25);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.35);
}

.btn-ghost {
  background: transparent;
  color: #f8fafc;
  border-color: rgba(248, 250, 252, 0.2);
}

.btn-ghost:hover {
  background: rgba(15, 23, 42, 0.7);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0.35rem;
  border-radius: 999px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 3px 0;
  border-radius: 999px;
  background: #f9fafb;
}

/* Hero */
.hero {
  padding: 3.5rem 0 3rem 0;
  color: #f9fafb;
  background-image: linear-gradient(
      to right,
      rgba(6, 78, 59, 0.8),
      rgba(22, 163, 74, 0.6),
      rgba(34, 197, 94, 0.4)
    ),
    url('../img/header-runner.jpg');
  background-size: cover;
  background-position: center;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(0, 1.5fr);
  gap: 2.5rem;
  align-items: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.7rem;
  color: #a5b4fc;
  font-weight: 600;
}

.hero h1 {
  margin: 0.75rem 0 0.75rem 0;
  font-size: clamp(2rem, 3vw + 1rem, 2.7rem);
  line-height: 1.15;
}

.hero-text {
  margin: 0;
  font-size: 0.98rem;
  color: rgba(241, 245, 249, 0.9);
  max-width: 34rem;
}

.hero-actions {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-meta {
  margin-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.8rem;
}

.hero-meta .meta-label {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(148, 163, 184, 0.95);
  margin-bottom: 0.2rem;
}

.hero-meta .meta-value {
  font-weight: 600;
}

.hero-media {
  display: grid;
  gap: 0.9rem;
}

.hero-slider {
  position: relative;
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.6);
  background: rgba(15, 23, 42, 0.8);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 450ms ease, transform 450ms ease;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-slide-active {
  opacity: 1;
  transform: scale(1);
  position: relative;
}

.hero-slider-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: none;
  background: rgba(15, 23, 42, 0.7);
  color: #e5e7eb;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  padding: 0;
}

.hero-slider-prev {
  left: 10px;
}

.hero-slider-next {
  right: 10px;
}

.hero-slider-dots {
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}

.hero-slider-dots button {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  border: none;
  background: rgba(148, 163, 184, 0.7);
  padding: 0;
}

.hero-slider-dots button.hero-slider-dot-active {
  background: #22c55e;
}

.link {
  display: inline-flex;
  margin-top: 0.6rem;
  font-size: 0.86rem;
  color: #0284c7;
}

.link:hover {
  text-decoration: underline;
}

/* Sections */
.section {
  padding: 2.75rem 0;
  background: radial-gradient(circle at top, #eff6ff 0, #ecfdf5 40%, #ffffff 100%);
  color: #0f172a;
}

.section-alt {
  background: radial-gradient(circle at top, #e0f2fe 0, #ecfdf5 35%, #ffffff 100%);
}

.section-header {
  max-width: 38rem;
  margin-bottom: 1.75rem;
}

.section-header h2 {
  margin: 0 0 0.4rem 0;
  font-size: 1.4rem;
}

.section-header p {
  margin: 0;
  font-size: 0.95rem;
  color: rgba(100, 116, 139, 1);
}

.grid {
  display: grid;
  gap: 1.1rem;
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  border-radius: 1rem;
  padding: 1.1rem 1.1rem 1.15rem;
  background: radial-gradient(circle at top left, #ffffff 0, #e0f2fe 45%, #ecfdf5 100%);
  border: 1px solid rgba(37, 99, 235, 0.25);
  box-shadow: 0 14px 30px rgba(148, 163, 184, 0.4);
}

.card h3 {
  margin: 0 0 0.45rem 0;
  font-size: 1rem;
}

.card p {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(71, 85, 105, 0.98);
}

.card-news {
  border-color: rgba(59, 130, 246, 0.6);
}

.card-eyebrow {
  margin: 0 0 0.2rem 0;
  font-size: 0.8rem;
  color: rgba(129, 140, 248, 0.95);
}

/* Events */
.events-filters {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 1.75rem;
  font-size: 0.85rem;
}

.events-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.events-tag {
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: #ffffff;
  padding: 0.3rem 0.8rem;
  font-size: 0.82rem;
  cursor: pointer;
  color: #0f172a;
}

.events-tag-active {
  border-color: #22c55e;
  background: #dcfce7;
}

.events-note {
  margin: 0;
  max-width: 20rem;
  color: rgba(100, 116, 139, 1);
}

.events-layout {
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(0, 1.4fr);
  gap: 2rem;
}

.events-heading {
  margin: 0 0 0.9rem 0;
  font-size: 1.1rem;
}

.event-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1rem;
  padding: 0.9rem 1rem;
  margin-bottom: 0.85rem;
  border-radius: 0.85rem;
  background: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow: 0 10px 26px rgba(148, 163, 184, 0.35);
}

.event-date {
  width: 60px;
  border-radius: 0.7rem;
  background: linear-gradient(160deg, #0ea5e9, #22c55e);
  color: #f9fafb;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 0.3rem;
}

.event-date-day {
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.1;
}

.event-date-month {
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
}

.event-body {
  font-size: 0.9rem;
}

.event-type {
  margin: 0 0 0.2rem 0;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #22c55e;
}

.event-title {
  margin: 0 0 0.2rem 0;
  font-size: 1rem;
}

.event-meta {
  margin: 0 0 0.2rem 0;
  color: rgba(75, 85, 99, 1);
}

.event-extra {
  margin: 0;
  color: rgba(107, 114, 128, 1);
}

.events-side {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.events-summary-card,
.events-cta-card {
  border-radius: 1rem;
  padding: 1.05rem 1.1rem;
  background: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow: 0 10px 24px rgba(148, 163, 184, 0.35);
  font-size: 0.9rem;
}

.events-summary-card h3,
.events-cta-card h3 {
  margin: 0 0 0.4rem 0;
  font-size: 1rem;
}

.events-summary-card ul {
  margin: 0 0 0.5rem 1.1rem;
  padding: 0;
}

.events-summary-card li {
  margin-bottom: 0.2rem;
}

.events-cta-card p {
  margin: 0 0 0.6rem 0;
}

.events-table-wrapper {
  width: 100%;
  overflow-x: auto;
}

.events-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
  background: #ffffff;
  border-radius: 0.9rem;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(148, 163, 184, 0.35);
}

.events-table th,
.events-table td {
  padding: 0.75rem 0.9rem;
  text-align: left;
}

.events-table thead {
  background: linear-gradient(135deg, #0ea5e9, #22c55e);
  color: #f9fafb;
}

.events-table tbody tr:nth-child(even) {
  background: #f1f5f9;
}

.events-table tbody tr:nth-child(odd) {
  background: #ffffff;
}

/* About */
.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.3fr);
  gap: 2rem;
}

.about-main {
  font-size: 0.95rem;
}

.about-section {
  margin-bottom: 1.4rem;
}

.about-section h3 {
  margin: 0 0 0.4rem 0;
  font-size: 1.05rem;
}

.about-section p {
  margin: 0 0 0.4rem 0;
  color: rgba(71, 85, 105, 1);
}

.about-list {
  margin: 0.3rem 0 0.2rem 1.1rem;
  padding: 0;
}

.about-list li {
  margin-bottom: 0.2rem;
}

.about-quote {
  border-left: 3px solid #22c55e;
  padding-left: 0.8rem;
  margin: 0 0 0.7rem 0;
  color: rgba(30, 64, 175, 1);
  font-style: italic;
}

.about-quote-author {
  margin: 0.3rem 0 0 0;
  font-style: normal;
  font-weight: 500;
  color: rgba(15, 23, 42, 1);
}

.about-side {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 0.9rem;
}

.about-card {
  border-radius: 1rem;
  padding: 1.05rem 1.1rem;
  background: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow: 0 10px 24px rgba(148, 163, 184, 0.35);
}

.about-card h3 {
  margin: 0 0 0.4rem 0;
  font-size: 1rem;
}

.about-card p {
  margin: 0 0 0.4rem 0;
}

@media (max-width: 900px) {
  .about-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.gallery-item {
  position: relative;
  border-radius: 0.9rem;
  overflow: hidden;
  background: #020617;
  cursor: pointer;
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.2), transparent);
  opacity: 0;
  transition: opacity 200ms ease;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 250ms ease;
}

.gallery-item:hover img,
.gallery-item:focus-within img {
  transform: scale(1.06);
}

.gallery-item:hover::after,
.gallery-item:focus-within::after {
  opacity: 1;
}

@media (max-width: 900px) {
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .gallery-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Contact */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(0, 1.4fr);
  gap: 2rem;
}

.contact-main {
  font-size: 0.95rem;
}

.contact-details {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.contact-details h3 {
  margin: 0 0 0.3rem 0;
  font-size: 1rem;
}

.contact-details p {
  margin: 0;
}

.contact-details a {
  color: #0ea5e9;
}

.contact-details a:hover {
  text-decoration: underline;
}

.contact-form {
  background: #ffffff;
  border-radius: 1rem;
  padding: 1.2rem 1.2rem 1.3rem;
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow: 0 12px 30px rgba(148, 163, 184, 0.4);
  font-size: 0.9rem;
}

.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 0.85rem;
}

.form-field {
  flex: 1 1 0;
  min-width: 0;
}

.form-field.full {
  flex-basis: 100%;
}

.form-field label {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(15, 23, 42, 0.9);
}

.form-field input,
.form-field textarea {
  width: 100%;
  border-radius: 0.6rem;
  border: 1px solid rgba(148, 163, 184, 0.9);
  padding: 0.5rem 0.6rem;
  font: inherit;
  font-size: 0.88rem;
  outline: none;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: #0ea5e9;
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.3);
}

.form-field textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-side {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 0.9rem;
}

.contact-card {
  border-radius: 1rem;
  padding: 1.05rem 1.1rem;
  background: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow: 0 10px 24px rgba(148, 163, 184, 0.35);
}

.contact-card h3 {
  margin: 0 0 0.4rem 0;
  font-size: 1rem;
}

.contact-card p {
  margin: 0 0 0.4rem 0;
}

@media (max-width: 900px) {
  .contact-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Results */
.results-list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.results-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1rem;
  border-radius: 1rem;
  padding: 1rem 1.1rem;
  background: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.5);
  box-shadow: 0 12px 30px rgba(148, 163, 184, 0.4);
  font-size: 0.9rem;
}

.results-item-muted {
  background: #f9fafb;
  border-style: dashed;
}

.results-meta {
  min-width: 80px;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  align-items: flex-start;
}

.results-date {
  margin: 0;
  font-weight: 600;
  color: #0f172a;
}

.results-distance {
  margin: 0;
  font-size: 0.8rem;
  color: rgba(75, 85, 99, 1);
}

.results-title {
  margin: 0 0 0.25rem 0;
  font-size: 1rem;
}

.results-description {
  margin: 0 0 0.4rem 0;
  color: rgba(71, 85, 105, 1);
}

.results-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.btn-small {
  padding: 0.35rem 0.9rem;
  font-size: 0.8rem;
}

@media (max-width: 640px) {
  .results-item {
    grid-template-columns: minmax(0, 1fr);
  }

  .results-meta {
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
  }
}

/* Auth (login/register) */
.auth-layout {
  max-width: 640px;
}

.auth-main {
  font-size: 0.95rem;
}

.auth-form {
  margin-bottom: 0.8rem;
}

.auth-extra-row {
  justify-content: space-between;
  align-items: center;
}

.auth-remember {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
}

.auth-remember input[type='checkbox'] {
  width: 14px;
  height: 14px;
}

.auth-switch {
  font-size: 0.85rem;
}

.auth-switch a {
  color: #0ea5e9;
}

.auth-switch a:hover {
  text-decoration: underline;
}

/* Footer */
.site-footer {
  margin-top: auto;
  border-top: 1px solid rgba(15, 23, 42, 0.95);
  background: radial-gradient(circle at top, #020617 0, #000000 100%);
  color: rgba(148, 163, 184, 0.9);
  font-size: 0.8rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 0 1.2rem 0;
}

.footer-title {
  margin: 0 0 0.2rem 0;
  font-weight: 500;
  color: #e5e7eb;
}

.footer-text {
  margin: 0;
}

.footer-links {
  display: flex;
  gap: 1rem;
}

.footer-links a {
  color: rgba(148, 163, 184, 0.9);
}

.footer-links a:hover {
  color: #e5e7eb;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.social-dots {
  display: flex;
  gap: 0.2rem;
}

.social-dots span {
  width: 6px;
  height: 6px;
  border-radius: 999px;
}

.social-dots span:nth-child(1) {
  background: #3b82f6;
}
.social-dots span:nth-child(2) {
  background: #22c55e;
}
.social-dots span:nth-child(3) {
  background: #f97316;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-media {
    order: -1;
  }
}

@media (max-width: 768px) {
  .header-inner {
    align-items: center;
  }

  .site-nav {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .auth-links {
    display: none;
  }

  .grid-3 {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 520px) {
  .hero {
    padding-top: 2.4rem;
  }
}


