/* Pedal Forward styles: clean, approachable, responsive, accessible (light theme) */
:root {
  /* Light palette */
  --bg: #ffffff;              /* page background */
  --bg-alt: #f5f7fb;          /* subtle section background */
  --surface: #ffffff;         /* cards/nav surfaces */
  --text: #0b1220;            /* primary text */
  --muted: #42536b;           /* secondary text */
  --primary: #3b82f6;         /* Blue 500 */
  --primary-strong: #2563eb;  /* Blue 600 */
  --accent: #0ea5e9;          /* Sky 500 */
  --ring: #93c5fd;            /* focus ring */
  --border: #dbe3ef;          /* subtle borders */
  --shadow: 0 1px 2px rgba(2, 6, 23, 0.04), 0 8px 24px rgba(2, 6, 23, 0.06);
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  line-height: 1.6;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Offset the page for a fixed header */
  padding-top: var(--header-h, 64px);
}

/* Global focus visibility */
:focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; }

/* Utility: screen-reader only */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* Anchor offset for fixed/sticky header */
:target { scroll-margin-top: var(--header-h, 72px); }

.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

/* Header & Nav */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: rgba(255,255,255,0.9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 0.75rem 0; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; font-weight: 700; letter-spacing: 0.2px; text-decoration: none; color: var(--text); }
.brand-mark { font-size: 1.3rem; }
.brand-name { font-size: 1.05rem; }

.nav-toggle { display: none; background: none; border: 1px solid var(--border); color: var(--text); padding: 0.45rem; border-radius: 10px; background: #fff; box-shadow: var(--shadow); }
.nav-toggle:focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; }
.nav-toggle .bar { display: block; width: 22px; height: 2px; background: var(--text); margin: 4px 0; border-radius: 2px; }

.nav ul { display: flex; gap: 1rem; list-style: none; margin: 0; padding: 0; }
.nav a { color: #1f2a44; text-decoration: none; font-size: 0.97rem; padding: 0.35rem 0.25rem; border-radius: 8px; }
.nav a:hover, .nav a:focus { color: var(--primary-strong); background: #eef2ff; outline: none; }
.nav a.active { color: var(--primary-strong); background: #e0e7ff; font-weight: 600; }

/* Hero */
.hero { padding: 6rem 0 4rem; background: radial-gradient(1400px 600px at 10% -10%, rgba(37,99,235,0.10), transparent 60%), radial-gradient(1100px 600px at 90% -30%, rgba(14,165,233,0.10), transparent 60%); border-bottom: 1px solid var(--border); min-height: calc(var(--vh, 1vh) * 70); display: grid; align-items: center; position: relative; }
.hero::after { content: ""; position: absolute; inset: auto 0 -1px 0; height: 24px; background: linear-gradient(180deg, transparent, rgba(2,6,23,0.06)); pointer-events: none; }
.hero .container { display: grid; place-items: center; }
.hero-card { width: min(900px, 100%); background: #ffffff; border: 1px solid var(--border); border-radius: 16px; padding: clamp(1rem, 3vw, 2rem); box-shadow: var(--shadow); text-align: center; backdrop-filter: saturate(120%); }
.hero h1 { font-size: clamp(1.7rem, 2.6vw + 1rem, 2.6rem); line-height: 1.2; margin: 0 0 0.8rem; color: #0b1220; }
.hero .intro { font-size: clamp(1rem, 1.1vw + 0.6rem, 1.15rem); color: #334155; max-width: 70ch; }
.cta { margin-top: 1.25rem; display: flex; gap: 0.75rem; }

.btn { display: inline-block; padding: 0.7rem 1rem; border-radius: 12px; border: 1px solid var(--border); color: #0b1220; text-decoration: none; background: #ffffff; box-shadow: var(--shadow); transition: transform 120ms ease, background-color 120ms ease, color 120ms ease; }
.btn:hover, .btn:focus { transform: translateY(-1px); background: #f8fafc; outline: none; box-shadow: 0 0 0 4px var(--ring), var(--shadow); }
.btn-primary { color: #fff; background: linear-gradient(180deg, var(--primary), var(--primary-strong)); border: 1px solid #1e40af; }
.btn-primary:hover, .btn-primary:focus { filter: brightness(1.02); box-shadow: 0 0 0 4px rgba(147,197,253,0.8), var(--shadow); }

/* Sections */
.section { padding: 3rem 0; }
.section.alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section h2 { font-size: 1.5rem; margin: 0 0 1rem; display: flex; align-items: center; gap: 0.5rem; }
.section p { margin: 0 0 0.75rem; color: #1f2a44; }

.icon { font-size: 1.3rem; }
.note { color: #475569; font-style: italic; }

/* Lists */
.checklist, .bullets { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.6rem; }
.checklist li::before { content: "✅"; margin-right: 0.5rem; }
.bullets li::before { content: "•"; color: var(--accent); margin-right: 0.6rem; }
.checklist li, .bullets li { display: flex; align-items: flex-start; gap: 0.5rem; color: #1f2a44; }

.goals { counter-reset: goal; list-style: none; padding: 0; margin: 0 auto; display: grid; gap: clamp(0.75rem, 1.5vw, 1rem); max-width: 900px; }
.goals li { position: relative; padding-left: 2.6rem; background: linear-gradient(180deg, #ffffff, #f8fbff 70%); border: 1px solid var(--border); border-radius: 16px; padding: 1rem 1rem 1rem 3rem; box-shadow: var(--shadow); transition: transform 140ms ease, box-shadow 140ms ease; }
.goals li::before { counter-increment: goal; content: counter(goal); position: absolute; left: 0.9rem; top: 0.9rem; width: 1.8rem; height: 1.8rem; border-radius: 999px; display: grid; place-items: center; background: linear-gradient(180deg, var(--primary), var(--primary-strong)); color: #ffffff; font-weight: 800; font-size: 0.95rem; box-shadow: 0 2px 6px rgba(37,99,235,0.25); z-index: 2; }
.goals li::after { content: ""; position: absolute; left: 0.6rem; top: 0.6rem; width: 2.8rem; height: 2.8rem; border-radius: 999px; background: radial-gradient(closest-side, rgba(59,130,246,0.18), transparent 70%); z-index: 1; pointer-events: none; }
.goals li:hover, .goals li:focus-within { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(2,6,23,0.08), 0 2px 6px rgba(2,6,23,0.06); }
.goals li > strong { display: block; color: #0b1220; margin-bottom: 0.25rem; }

/* Goals remain a single centered column on all viewports */

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(0.8rem, 2vw, 1.2rem); }
.card { background: #ffffff; border: 1px solid var(--border); border-radius: 14px; padding: 1rem; box-shadow: var(--shadow); }
.card h3 { margin: 0 0 0.4rem; font-size: 1.1rem; }
.card p { margin: 0; color: #475569; }

.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.5rem; }
.contact-link { color: var(--primary-strong); text-decoration: none; word-break: break-word; }
.contact-link:hover, .contact-link:focus { text-decoration: underline; }
.socials a { color: #475569; text-decoration: none; }
.socials a:hover, .socials a:focus { color: var(--primary-strong); text-decoration: underline; }

/* Footer */
.site-footer { padding: 2rem 0; text-align: center; color: #6b7280; border-top: 1px solid var(--border); background: #fff; }

/* A11y */
.skip-link { position: absolute; left: -9999px; top: -9999px; }
.skip-link:focus { left: 1rem; top: 1rem; background: #111827; color: #fff; padding: 0.5rem 0.75rem; border-radius: 8px; z-index: 100; box-shadow: 0 0 0 4px var(--ring); }

/* Reduce motion preferences */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Responsive */
@media (max-width: 1024px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .cards { grid-template-columns: 1fr; }
}

@media (max-width: 800px) {
  .nav-toggle { display: inline-block; }
  .nav { position: fixed; top: var(--header-h, 64px); left: 0; right: 0; background: #ffffff; border-bottom: 1px solid var(--border); display: none; box-shadow: var(--shadow); }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; padding: 0.75rem 1rem 1rem; }
  .nav a { padding: 0.5rem 0.25rem; }
  .hero { padding-top: 4.2rem; min-height: calc(var(--vh, 1vh) * 75); }
}

/* Callouts */
.callout { border: 1px solid var(--border); border-left-width: 4px; border-radius: 12px; padding: 0.9rem 1rem; background: #f8fbff; color: #0b1220; box-shadow: var(--shadow); margin-top: 1rem; }
.callout.warning { border-left-color: #f59e0b; background: #fffbeb; }

/* Progressive enhancement: show mobile nav by default if JS is off */
.no-js .nav { display: block !important; position: static; box-shadow: none; border: 0; }
.no-js .nav-toggle { display: none !important; }
