/* ============================================
   RUNSMART — global.css
   Shared across all pages
   ============================================ */

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: 'Poppins', sans-serif; }

/* ── TOKENS ── */
:root {
  /* Brand */
  --green:        #9fcd2b;
  --green-dark:   #7aaa12;
  --green-light:  #f0f9d8;
  --green-mid:    #dff0a0;

  /* Neutrals */
  --dark:         #1a1a12;
  --body:         #f7f8f2;
  --white:        #ffffff;
  --muted:        #6b6b58;
  --subtle:       #7a7a66;
  --disabled:      #cccccc;
  --disabled-light: #bbbbbb;
  --faint:        #e8ead8;
  --border:       rgba(26, 26, 18, 0.09);

  /* Semantic */
  --green-text:   #3d5c00;

  /* Radius */
  --r:            12px;
  --r-lg:         18px;
  --r-pill:       100px;
}

/* ── BASE ── */
body {
  font-family: 'Poppins', sans-serif;
  background: var(--body);
  color: var(--dark);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: clip;
}

/* ── TYPOGRAPHY ── */
h1 {
  font-size: 56px;
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -1.5px;
  color: var(--dark);
}

h1 em { font-style: normal; color: var(--green); }

h2 {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.12;
  color: var(--dark);
}

h3 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.3px;
  color: var(--dark);
}

.nav-logo img {
  display: block;
  height: 36px;
  width: auto;
}

.f-logo img {
  display: block;
  height: 32px;
  width: auto;
  margin-bottom: 10px;
}

.eyebrow {
  font-size: 11px;
  font-weight: 600;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
  display: block;
}

.section-sub {
  font-size: 16px;
  font-weight: 300;
  color: var(--muted);
  max-width: 500px;
  line-height: 1.75;
}

/* ── BUTTONS ── */
.btn-primary {
  padding: 14px 28px;
  border-radius: var(--r-pill);
  border: none;
  background: var(--green);
  color: var(--dark);
  font-size: 15px;
  font-weight: 600;
  transition: background 0.2s, transform 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-primary:hover { background: var(--green-dark); transform: translateY(-1px); }

.btn-secondary {
  padding: 13px 24px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
  background: none;
  color: var(--muted);
  font-size: 14px;
  font-weight: 400;
  transition: border-color 0.2s, color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-secondary:hover { border-color: rgba(26, 26, 18, 0.25); color: var(--dark); }

.btn-dark {
  padding: 15px 32px;
  border-radius: var(--r-pill);
  border: 2px solid var(--dark);
  background: var(--dark);
  color: var(--white);
  font-size: 15px;
  font-weight: 600;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-dark:hover {
  background: transparent;
  color: var(--dark);
  transform: translateY(-1px);
}

.btn-outline-light {
  padding: 14px 26px;
  border-radius: var(--r-pill);
  border: 1.5px solid rgba(26, 26, 18, 0.25);
  background: none;
  color: var(--dark);
  font-size: 14px;
  font-weight: 500;
  transition: border-color 0.2s, background 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-outline-light:hover { border-color: var(--dark); background: rgba(26,26,18,0.05); }

/* For dark/colored backgrounds — white outline, white text */
.btn-outline-white {
  padding: 14px 26px;
  border-radius: var(--r-pill);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  background: none;
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  font-weight: 500;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  text-decoration: none;
}
.btn-outline-white:hover { border-color: rgba(255,255,255,0.7); color: var(--white); background: rgba(255,255,255,0.08); }

/* Small nav buttons */
.btn-nav-ghost {
  padding: 7px 16px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  background: none;
  transition: color 0.2s, border-color 0.2s;
}
.btn-nav-ghost:hover { color: var(--dark); border-color: rgba(26,26,18,0.2); }

.btn-nav {
  padding: 8px 18px;
  border-radius: var(--r-pill);
  border: none;
  background: var(--green);
  color: var(--dark);
  font-size: 13px;
  font-weight: 600;
  transition: background 0.2s;
}
.btn-nav:hover { background: var(--green-dark); }

/* ── EYEBROW PILL ── */
.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green-light);
  border-radius: var(--r-pill);
  padding: 5px 14px;
  font-size: 11px;
  font-weight: 600;
  color: var(--green-text);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  width: fit-content;
}
.eyebrow-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
}

/* ── NAV ── */
#nav-placeholder {
  position: sticky;
  top: 0;
  z-index: 50;
}

.nav {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.5px;
  color: var(--dark);
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}
.nav-links a {
  font-size: 14px;
  font-weight: 400;
  color: var(--muted);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--dark); }
.nav-links a.active { color: var(--dark); font-weight: 500; }

.nav-right { display: flex; gap: 10px; align-items: center; }

/* Mobile hamburger (hidden by default) */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: all 0.2s;
}

/* Mobile nav drawer */
.nav-mobile {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 20px 24px;
  z-index: 49;
  flex-direction: column;
  gap: 4px;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  font-size: 15px;
  font-weight: 400;
  color: var(--muted);
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s;
}
.nav-mobile a:last-child { border-bottom: none; }
.nav-mobile a:hover { color: var(--dark); }

/* ── TRUST BAR ── */
.trust-bar {
  background: var(--dark);
  display: flex;
  overflow-x: auto;
}
.trust-item {
  padding: 26px 36px;
  border-right: 1px solid rgba(255, 255, 255, 0.07);
  flex-shrink: 0;
  flex: 1;
}
.trust-item:last-child { border-right: none; }
.trust-num {
  font-size: 26px;
  font-weight: 700;
  color: var(--green);
  letter-spacing: -0.5px;
  line-height: 1;
  margin-bottom: 4px;
}
.trust-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.42);
  font-weight: 300;
  line-height: 1.5;
}

/* ── SECTION BASE ── */
section { padding: 88px 48px; }

/* ── CONTENT CONTAINER ── */
/* Constrains content width on large screens without affecting full-bleed backgrounds */
.section-content {
  max-width: 1160px;
  margin: 0 auto;
}

/* ── PHOTO STRIP ── */
.photo-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: 340px;
  overflow: hidden;
  background: var(--dark);
}
.photo-item { position: relative; overflow: hidden; }
.photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  transition: transform 0.6s ease;
}
.photo-item:hover img { transform: scale(1.05); }
.photo-cap {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 14px 16px;
  background: linear-gradient(to top, rgba(26,26,18,0.72), transparent);
  font-size: 11px;
  color: rgba(255,255,255,0.7);
  font-weight: 300;
  line-height: 1.4;
}

/* ── APP BADGES (footer) ── */
.app-badges { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.65);
  font-size: 12px;
  transition: background 0.2s, color 0.2s;
}
.badge:hover { background: rgba(255,255,255,0.1); color: var(--white); }
.badge-icon { flex-shrink: 0; color: white; width: 20px; height: 20px; }
.badge-sub { font-size: 9px; display: block; opacity: 0.6; line-height: 1; }
.badge-name { font-size: 13px; font-weight: 500; display: block; line-height: 1.2; color: var(--white); }

/* ── FOOTER ── */
footer {
  background: var(--dark);
  padding: 56px 48px 28px;
}
.footer-top {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 44px;
}
.f-logo { font-size: 18px; font-weight: 700; color: var(--white); margin-bottom: 10px; letter-spacing: -0.3px; }
.f-tagline { font-size: 12px; font-weight: 300; color: rgba(255,255,255,0.35); line-height: 1.75; margin-bottom: 20px; max-width: 280px; }
.f-col-title { font-size: 11px; font-weight: 600; color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 12px; }
.f-links { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.f-links a { font-size: 13px; color: rgba(255,255,255,0.35); font-weight: 300; transition: color 0.2s; }
.f-links a:hover { color: rgba(255,255,255,0.8); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12px;
  color: rgba(255,255,255,0.25);
}
.footer-bottom a { color: rgba(255,255,255,0.25); transition: color 0.2s; }
.footer-bottom a:hover { color: rgba(255,255,255,0.5); }
.footer-legal { display: flex; gap: 18px; }

/* ── RESPONSIVE ── */
@media (max-width: 920px) {
  .nav { padding: 0 20px; }
  .nav-links, .nav-right { display: none; }
  .nav-hamburger { display: flex; }
  h1 { font-size: 38px; letter-spacing: -1px; }
  h2 { font-size: 30px; }
  section { padding: 56px 24px; }
  .trust-bar { flex-wrap: wrap; }
  .trust-item { flex: 1 1 45%; border-right: none; border-bottom: 1px solid rgba(255,255,255,0.07); }
  .photo-strip { grid-template-columns: 1fr 1fr; height: auto; }
  .photo-item { height: 180px; }
  footer { padding: 44px 24px 24px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 28px; }
}

@media (max-width: 560px) {
  .footer-top { grid-template-columns: 1fr; }
}
