/* ============================================
   Base: reset, custom properties, typography
   ============================================ */

:root {
  /* Emerald / charcoal brand palette — deliberately distinct from
     RideHero's own navy/blue/gold identity. */
  --color-navy: #14231f;
  --color-navy-light: #1c322b;
  --color-blue: #2fae6e;
  --color-blue-dark: #1f8a56;
  --color-gold: #e29400;
  --color-text: #1a1d29;
  --color-text-muted: #40465a;
  --color-bg: #ffffff;
  --color-bg-alt: #f4f9f6;
  --color-border: #d8e6df;
  --color-success: #16a34a;
  --color-star: #e29400;

  --font-body: "Lexend", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-heading: var(--font-body);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;

  --shadow-card: 0 2px 12px rgba(20, 35, 31, 0.08);
  --shadow-card-hover: 0 8px 28px rgba(20, 35, 31, 0.14);

  --container-width: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  /* Bumped above the 16px default so body copy and UI text stay
     comfortably readable for readers with lower vision. Everything
     sized in rem scales proportionally from this. */
  font-size: 118.75%;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.15;
  margin: 0;
  font-weight: 800;
}

p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

button {
  font-family: inherit;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

/* Skip link for keyboard/screen-reader users */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-navy);
  color: #fff;
  padding: 12px 20px;
  z-index: 1000;
  border-radius: 0 0 8px 0;
}

.skip-link:focus {
  left: 0;
}

:focus-visible {
  outline: 3px solid var(--color-blue);
  outline-offset: 2px;
}
