/* ==============================================================
   OlaOrder Base Styles
   ============================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--color-ink);
  background: var(--color-surface-alt);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: var(--leading-tight);
  letter-spacing: -0.01em;
  margin: 0 0 var(--space-3);
  color: var(--color-ink);
}

h1 { font-size: var(--text-3xl); font-weight: 600; letter-spacing: -0.02em; }
h2 { font-size: var(--text-2xl); font-weight: 600; letter-spacing: -0.015em; }
h3 { font-size: var(--text-xl); font-weight: 600; }
h4 { font-size: var(--text-lg); font-weight: 600; }

p { margin: 0 0 var(--space-4); }

a {
  color: var(--color-indigo);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-standard);
}
a:hover { text-decoration: underline; }

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

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

button {
  font-family: inherit;
  cursor: pointer;
}

input, textarea, select {
  font-family: inherit;
  font-size: var(--text-base);
}

/* Visible keyboard focus everywhere — accessibility requirement.
   2px to match the refined focus rings on buttons/toggles/inputs;
   consistent ring weight across every focusable element. */
:focus-visible {
  outline: 2px solid var(--color-indigo);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

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

.container {
  max-width: var(--max-width-content);
  margin: 0 auto;
  padding: 0 var(--space-5);
}

.container-narrow {
  max-width: var(--max-width-narrow);
  margin: 0 auto;
  padding: 0 var(--space-5);
}

@media (max-width: 480px) {
  .container, .container-narrow {
    padding: 0 var(--space-4);
  }
}
