/* =============================================
   NORTH SHORE PUB RUN — Styles
   Theme: Fresh & Outdoorsy · Bold & Sporty
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@700;800;900&family=DM+Sans:wght@400;500;600&display=swap');

/* --- Variables --- */
:root {
  --cream:   #FAFAF7;
  --surface: #F0EDE6;
  --green:   #2D5A27;
  --green-dark: #1E3E1B;
  --green-light: #3D7235;
  --amber:   #E8A020;
  --amber-light: #F5C050;
  --text:    #1A1A1A;
  --text-muted: #5A5A52;
  --border:  #D8D4CC;
  --radius:  8px;
  --radius-lg: 16px;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

img { display: block; width: 100%; height: auto; }

a { color: inherit; text-decoration: none; }

/* --- Typography --- */
.display {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.section-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
}

/* --- Layout --- */
.container {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 20px;
}

section { padding: 56px 0; }

/* --- Scroll Fade-In --- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =============================================
   NAV
   ============================================= */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--green);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--cream);
}

.nav-cta {
  background: var(--amber);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 0.8rem;
  padding: 8px 16px;
  border-radius: var(--radius);
  letter-spacing: 0.02em;
  transition: background 0.2s;
  min-height: 36px;
  display: flex;
  align-items: center;
}

.nav-cta:hover { background: var(--amber-light); }

/* =============================================
   HERO
   ============================================= */
#hero {
  background: var(--green);
  padding: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  overflow: hidden;
}

.hero-topo {
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 38px,
      rgba(255,255,255,0.04) 38px,
      rgba(255,255,255,0.04) 39px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 38px,
      rgba(255,255,255,0.03) 38px,
      rgba(255,255,255,0.03) 39px
    );
  pointer-events: none;
}

/* Decorative topographic arcs */
.hero-topo::before {
  content: '';
  position: absolute;
  top: -60%;
  right: -40%;
  width: 140%;
  height: 140%;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow:
    0 0 0 40px rgba(255,255,255,0.03),
    0 0 0 80px rgba(255,255,255,0.025),
    0 0 0 130px rgba(255,255,255,0.02),
    0 0 0 200px rgba(255,255,255,0.015);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 100px 20px 52px;
  max-width: 640px;
  margin: 0 auto;
  width: 100%;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 100px;
  padding: 6px 14px;
  margin-bottom: 24px;
}

.hero-eyebrow span {
  font-size: 0.78rem;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.04em;
}

.hero-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}

.hero-title {
  font-size: clamp(4.5rem, 22vw, 7.5rem);
  color: var(--cream);
  margin-bottom: 4px;
}

.hero-title .accent { color: var(--amber); }

.hero-subtitle {
  font-size: clamp(1.8rem, 9vw, 3rem);
  color: rgba(255,255,255,0.55);
  margin-bottom: 28px;
}

.hero-meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 36px;
}

.hero-meta-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.8);
  font-size: 0.95rem;
  font-weight: 500;
}

.hero-meta-icon {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--amber);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  padding: 16px 28px;
  border-radius: var(--radius);
  min-height: 54px;
  transition: background 0.2s, transform 0.15s;
  width: 100%;
  justify-content: center;
}

.hero-cta:hover { background: var(--amber-light); transform: translateY(-1px); }
.hero-cta:active { transform: translateY(0); }

.hero-notice {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
  font-size: 0.83rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.4;
}

.hero-cta-arrow {
  font-size: 1.2rem;
  transition: transform 0.2s;
}

.hero-cta:hover .hero-cta-arrow { transform: translateX(4px); }

/* =============================================
   HOW IT WORKS
   ============================================= */
#how-it-works { background: var(--cream); }

.section-header {
  margin-bottom: 36px;
}

.section-title {
  font-size: clamp(2.8rem, 12vw, 4rem);
  margin-top: 6px;
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}

.step:last-child { border-bottom: none; }

.step-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 3.5rem;
  line-height: 1;
  color: var(--border);
  min-width: 56px;
  text-align: right;
  flex-shrink: 0;
  padding-top: 4px;
}

.step-body {}

.step-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--green);
  margin-bottom: 4px;
}

.step-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Timeline box */
.timeline {
  background: var(--green);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-top: 32px;
}

.timeline-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--amber);
  margin-bottom: 16px;
}

.timeline-rows { display: flex; flex-direction: column; gap: 12px; }

.timeline-row {
  display: flex;
  align-items: baseline;
  gap: 14px;
}

.timeline-time {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--cream);
  min-width: 72px;
  flex-shrink: 0;
}

.timeline-event {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.45;
}

/* =============================================
   ROUTES
   ============================================= */
#routes { background: var(--surface); }

.routes-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 4px;
}

.route-card {
  background: var(--cream);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}

.route-map {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  background: var(--surface);
}

.route-info {
  padding: 20px;
}

.route-tag {
  display: inline-block;
  background: var(--green);
  color: var(--cream);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 100px;
  margin-bottom: 10px;
}

.route-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 1.6rem;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 4px;
}

.route-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.routes-note {
  margin-top: 20px;
  padding: 16px 20px;
  background: rgba(232, 160, 32, 0.12);
  border-left: 3px solid var(--amber);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.87rem;
  color: var(--text-muted);
}

/* =============================================
   COMMUNITY
   ============================================= */
#community { background: var(--cream); padding-bottom: 0; }

.community-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 32px;
}

.community-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 22px 18px;
  border: 1px solid var(--border);
}

.community-icon {
  font-size: 2rem;
  margin-bottom: 10px;
  line-height: 1;
}

.community-card-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--green);
  margin-bottom: 6px;
}

.community-card-desc {
  font-size: 0.83rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.group-photo-wrap {
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  overflow: hidden;
  margin: 0 -20px;
}

.group-photo-wrap img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* =============================================
   NEWSLETTER
   ============================================= */
#newsletter {
  background: var(--green);
  padding: 48px 0;
}

#newsletter .section-label { color: var(--amber-light); }

#newsletter .section-title { color: var(--cream); }

.newsletter-sub {
  color: rgba(255,255,255,0.65);
  font-size: 0.95rem;
  margin-top: 8px;
  margin-bottom: 28px;
  line-height: 1.55;
}

/* Mailerlite form override */
.ml-embedded { width: 100% !important; }
.ml-embedded .ml-form-embedContent { background: transparent !important; }

/* =============================================
   FOOTER
   ============================================= */
footer {
  background: var(--green-dark);
  padding: 32px 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-logo {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 1.5rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--cream);
}

.footer-address {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.6;
}

.footer-address a {
  color: var(--amber);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-copy {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.3);
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

/* =============================================
   TABLET BREAKPOINT
   ============================================= */
@media (min-width: 768px) {
  .container { padding: 0 32px; }

  .hero-meta { flex-direction: row; flex-wrap: wrap; gap: 16px; }

  .hero-cta { width: auto; }

  .community-card-desc { font-size: 0.88rem; }

  .routes-grid { flex-direction: row; }
  .route-card { flex: 1; }

  .group-photo-wrap { margin: 0; border-radius: var(--radius-lg); }
}
