/* Rent Bike Daily — base styles & theme tokens
   Theme variables are written by app.jsx from the active palette/typography. */

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

html, body { margin: 0; padding: 0; }

body {
  font-family: var(--font-body, 'DM Sans', system-ui, sans-serif);
  background: var(--bg, #F4ECDD);
  color: var(--ink, #15224A);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

.img-real {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--soft);
}
.img-real img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}

.bike-panel {
  position: relative;
  width: 100%;
  overflow: hidden;
}
.bike-panel-inner {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  padding: 6%;
}
.bike-panel-inner svg { width: 100%; height: 100%; max-width: 100%; max-height: 100%; }
.bike-panel-tag {
  position: absolute;
  bottom: 14px; left: 14px;
  background: rgba(0,0,0,0.78);
  color: #fff;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.04em;
  padding: 5px 10px;
  border-radius: 6px;
}

button { font: inherit; color: inherit; }

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

::selection { background: var(--accent, #E04E2E); color: #fff; }

/* ────────── Layout shell ────────── */

.app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: 100%;
  max-width: 1240px;
  padding: 0 32px;
  margin: 0 auto;
}

/* ────────── Top nav ────────── */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1.5px solid var(--ink);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.01em;
}
.brand-mark {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--accent);
  position: relative;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
}
.brand-mark::after {
  content: '';
  position: absolute; inset: -4px;
  border-radius: 50%;
  border: 1.5px dashed var(--ink);
  opacity: 0.4;
}
.nav-links {
  display: flex;
  gap: 4px;
  align-items: center;
}
.nav-link {
  appearance: none; background: transparent; border: 0;
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
  position: relative;
}
.nav-link:hover { background: rgba(0,0,0,0.06); }
.nav-link[data-active="1"] {
  background: var(--ink);
  color: var(--bg);
}
.nav-cta {
  appearance: none; border: 0;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: transform 0.12s ease;
}
.nav-cta:hover { transform: translateY(-1px); }

.mobile-toggle {
  display: none;
  appearance: none; border: 1.5px solid var(--ink);
  background: transparent;
  width: 40px; height: 40px;
  border-radius: 999px;
  cursor: pointer;
  align-items: center; justify-content: center;
}
.mobile-toggle span {
  display: block; width: 16px; height: 1.5px;
  background: var(--ink);
  position: relative;
}
.mobile-toggle span::before,
.mobile-toggle span::after {
  content: ''; position: absolute; left: 0; width: 16px; height: 1.5px;
  background: var(--ink);
}
.mobile-toggle span::before { top: -5px; }
.mobile-toggle span::after { top: 5px; }

/* ────────── Common type ────────── */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: var(--font-display-weight, 700);
  letter-spacing: var(--font-display-tracking, -0.02em);
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: clamp(48px, 8vw, 112px); line-height: 0.92; }
h2 { font-size: clamp(36px, 5vw, 64px); line-height: 0.98; }
h3 { font-size: clamp(22px, 2.5vw, 30px); line-height: 1.1; }

p { margin: 0; line-height: 1.55; text-wrap: pretty; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  white-space: nowrap;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
}
.eyebrow.is-pop { background: var(--pop); color: var(--ink); }
.eyebrow.is-accent { background: var(--accent); color: #fff; }

/* ────────── Footer ────────── */

footer {
  margin-top: auto;
  background: var(--ink);
  color: var(--bg);
  padding: 64px 0 32px;
}
footer h4 {
  font-size: clamp(40px, 6vw, 80px);
  line-height: 0.95;
  margin-bottom: 32px;
}
.foot-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.18);
  font-size: 14px;
}
.foot-grid h5 {
  font-family: var(--font-body);
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  opacity: 0.55; margin: 0 0 12px;
}
.foot-grid p { opacity: 0.8; line-height: 1.7; }
.foot-meta {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 32px; margin-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 13px; opacity: 0.55;
}

/* ────────── Mobile ────────── */

@media (max-width: 760px) {
  .container { padding: 0 20px; }
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .mobile-toggle { display: flex; }
  .nav-inner { height: 60px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}

/* ────────── Mobile drawer ────────── */
.drawer {
  position: fixed; inset: 0;
  background: var(--bg);
  z-index: 100;
  display: none;
  flex-direction: column;
  padding: 24px;
}
.drawer[data-open="1"] { display: flex; }
.drawer-top {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 32px;
}
.drawer-link {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 700;
  padding: 16px 0;
  border-bottom: 1px solid rgba(0,0,0,0.1);
  cursor: pointer;
}
.drawer-link[data-active="1"] { color: var(--accent); }

/* ────────── Toast ────────── */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--bg);
  padding: 12px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  z-index: 200;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
  animation: toastIn 0.2s ease;
}
@keyframes toastIn {
  from { opacity: 0; transform: translate(-50%, 8px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}
