/* ============================================================
   JBB — Global Styles
   Location: assets/css/global.css
   ============================================================ */

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---------- Base ---------- */
:root {
  --c-bg: #F3EBE1;
  --c-surface: #FFFFFF;
  --c-surface-2: #FAF6F0;
  --c-ink: #141110;
  --c-ink-2: #3F3F46;
  --c-ink-3: #57534E;
  --c-ink-4: #78716C;
  --c-ink-5: #A8A29E;
  --c-line: #E7E5E4;
  --c-line-2: #F5F5F4;
  --c-brand: #C07D5A;
  --c-brand-dark: #7A4E38;
  --c-brand-soft: #EFE8E0;
  --c-success: #15803D;
  --c-warning: #B45309;
  --c-danger: #B91C1C;
  --c-info: #1D4ED8;
  --c-dark: #141110;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.12);
  --font-body: 'Lato', system-ui, -apple-system, sans-serif;
  --font-head: 'Oxygen', system-ui, -apple-system, sans-serif;
}

body {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.5;
  color: var(--c-ink);
  background: var(--c-bg);
  overflow-x: hidden;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.25;
  color: var(--c-ink);
}

p { color: var(--c-ink-2); }

/* ---------- Links ---------- */
a {
  color: inherit;
  text-decoration: none;
  transition: color .15s ease, opacity .15s ease;
}

a:hover { opacity: .85; }

/* ---------- Buttons ---------- */
button {
  font-family: inherit;
  font-size: inherit;
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
  transition: background .2s ease, color .2s ease, opacity .2s ease, transform .1s ease;
}

button:active { transform: scale(0.98); }
button:disabled { opacity: 0.5; cursor: not-allowed; }

/* ---------- Inputs ---------- */
input,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  outline: none;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--c-ink-3) !important;
}

input::placeholder,
textarea::placeholder {
  color: var(--c-ink-5);
}

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

/* ---------- App shell ---------- */
#app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main#outlet {
  flex: 1;
  position: relative;
}

/* ---------- Scrollbar (subtle) ---------- */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #d6d3d1; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #a8a29e; }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.hidden { display: none !important; }
.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;
}

/* ---------- Focus ring (accessibility) ---------- */
*:focus-visible {
  outline: 2px solid var(--c-brand);
  outline-offset: 2px;
  border-radius: 2px;
}