/* ============================================================
   BAMBOX PREMIUM — BASE DESIGN SYSTEM
   File: assets/css/base.css
   Layer: Foundation (Mobile First)
   ============================================================ */

/* ------------------------------------------------------------
   1. CSS RESET (MODERN, SAFE)
   ------------------------------------------------------------ */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  line-height: 1.6;
  font-family: system-ui, -apple-system, BlinkMacSystemFont,
               "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-primary);
}

/* Remove default styles */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}

button {
  cursor: pointer;
}

a {
  text-decoration: none;
  color: inherit;
}

ul,
ol {
  list-style: none;
}

/* ------------------------------------------------------------
   2. DESIGN TOKENS (LUXURY SYSTEM CORE)
   ------------------------------------------------------------ */

:root {

  /* ================= BRAND COLORS ================= */

  --brand-black: #0b0b0c;
  --brand-white: #ffffff;

  --champagne-gold: #b99a5b;
  --champagne-soft: rgba(185, 154, 91, 0.25);

  --ink-900: #0f0f10;
  --ink-700: #2a2a2d;
  --ink-500: #4b4b50;
  --ink-300: #8a8a92;
  --ink-100: #f3f3f5;

  /* ================= BACKGROUNDS ================= */

  --bg-main: #ffffff;
  --bg-soft: #f7f7f8;
  --bg-elevated: #ffffff;
  --bg-dark: #0f0f10;

  /* ================= TEXT ================= */

  --text-primary: var(--ink-900);
  --text-secondary: var(--ink-500);
  --text-muted: var(--ink-300);
  --text-invert: #ffffff;

  /* ================= BORDERS ================= */

  --border-light: rgba(0, 0, 0, 0.08);
  --border-medium: rgba(0, 0, 0, 0.12);
  --border-dark: rgba(0, 0, 0, 0.2);

  /* ================= RADIUS ================= */

  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  /* ================= SHADOWS ================= */

  --shadow-soft:
    0 6px 18px rgba(0, 0, 0, 0.06);

  --shadow-medium:
    0 12px 36px rgba(0, 0, 0, 0.12);

  --shadow-luxury:
    0 30px 80px rgba(0, 0, 0, 0.18);

  /* ================= MOTION ================= */

  --ease-luxury: cubic-bezier(.19, 1, .22, 1);
  --ease-soft: cubic-bezier(.4, 0, .2, 1);

  --speed-fast: 160ms;
  --speed-normal: 320ms;
  --speed-slow: 600ms;

  /* ================= Z-INDEX SCALE ================= */

  --z-base: 1;
  --z-header: 10;
  --z-overlay: 50;
  --z-modal: 100;
  --z-toast: 200;
}

/* ------------------------------------------------------------
   3. TYPOGRAPHY SYSTEM (MOBILE FIRST)
   ------------------------------------------------------------ */

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.4rem);
}

h3 {
  font-size: clamp(1.4rem, 3vw, 1.8rem);
}

h4 {
  font-size: 1.25rem;
}

p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  max-width: 70ch;
}

/* ------------------------------------------------------------
   4. FORM BASE STYLES (PREMIUM FEEL)
   ------------------------------------------------------------ */

input[type="text"],
input[type="email"],
input[type="number"],
input[type="file"],
select,
textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  background-color: var(--bg-elevated);
  transition:
    border var(--speed-fast) var(--ease-soft),
    box-shadow var(--speed-fast) var(--ease-soft);
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--champagne-gold);
  box-shadow: 0 0 0 2px var(--champagne-soft);
}

/* ------------------------------------------------------------
   5. BUTTON BASE SYSTEM
   ------------------------------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  transition:
    transform var(--speed-fast) var(--ease-luxury),
    box-shadow var(--speed-fast) var(--ease-luxury),
    background var(--speed-fast) var(--ease-luxury);
}

.btn-primary {
  background-color: var(--brand-black);
  color: var(--text-invert);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-medium);
}

.btn-outline {
  border: 1px solid var(--border-medium);
  background: transparent;
}

.btn-block {
  width: 100%;
}

/* ------------------------------------------------------------
   6. UTILITY CLASSES (MINIMAL)
   ------------------------------------------------------------ */

.text-center { text-align: center; }
.mt-sm { margin-top: 12px; }
.mt-md { margin-top: 24px; }
.mt-lg { margin-top: 40px; }

.hidden { display: none !important; }

/* ------------------------------------------------------------
   END OF BASE SYSTEM
   ------------------------------------------------------------ */
