/* ==========================================================================
   BASE — Reset + global defaults
   ========================================================================== */

/* ---------- Box‑model reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ---------- Root ---------- */
html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

/* ---------- Body ---------- */
body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background-color: var(--bg-home);
  transition: background-color var(--transition-slow);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Section-specific body backgrounds */
body[data-section="home"]       { background-color: var(--bg-home); }
body[data-section="wholesale"]  { background-color: var(--bg-wholesale); }
body[data-section="consulting"] { background-color: var(--bg-consulting); }
body[data-section="brand"]      { background-color: var(--bg-brand); }
body[data-section="roasting"]   { background-color: var(--bg-roasting); }
body[data-section="cafe"]       { background-color: var(--bg-cafe); }
body[data-section="contact"]    { background-color: var(--bg-contact); }

/* Custom cursor — desktop only */
@media (hover: hover) and (pointer: fine) {
  html, body,
  body * {
    cursor: url('../assets/cursors/brush32.png') 16 0, auto !important;
  }
}

@media (hover: none), (pointer: coarse) {
  html, body, body * {
    cursor: auto !important;
  }
}

/* ---------- Links ---------- */
a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

/* ---------- Buttons ---------- */
button {
  border: none;
  background: none;
  cursor: inherit;
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

/* ---------- Lists ---------- */
ul, ol {
  list-style: none;
}

/* ---------- Selection ---------- */
::selection {
  background: var(--cream-300);
  color: var(--text-primary);
}

::-moz-selection {
  background: var(--cream-300);
  color: var(--text-primary);
}

/* ---------- Accessibility — screen‑reader only ---------- */
.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 visible ---------- */
:focus-visible {
  outline: 2px solid var(--wood-500);
  outline-offset: 2px;
}

/* ---------- Scrollbar (webkit) ---------- */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--cream-300);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--olive-400);
}