/* ============================================================
   METRO PALM – APPLE-STYLE BASE
   ============================================================ */
:root {
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Urbanist', sans-serif;
  --font-mono: 'Space Grotesk', monospace;

  /* Sizing & Rhythm */
  --radius-sm: 0.75rem;
  --radius-md: 1rem;
  --radius-lg: 1.5rem;
  --radius-xl: 2rem;

  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;

  --transition: 0.25s cubic-bezier(0.25, 0.1, 0.25, 1);
  --transition-spring: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* ----- Light Mode (Ghost White) ----- */
body {
  --bg-primary: #f8f9fa;          /* ghost white background */
  --bg-secondary: #ffffff;        /* pure white cards */
  --bg-tertiary: #f0f0f0;         /* subtle hover / input bg */
  --text-primary: #0a0a0a;        /* near black */
  --text-secondary: #3a3a3a;      /* dark gray */
  --text-muted: #8e8e93;          /* Apple style muted */
  --border: #e5e5ea;              /* light border */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.06);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.08);
  --glass-bg: rgba(255,255,255,0.7);
  --glass-border: rgba(0,0,0,0.06);
  --header-bg: rgba(248,249,250,0.85);
  --input-bg: #ffffff;
  --accent: #0a0a0a;              /* black for primary actions */
  --accent-hover: #2a2a2a;
  --accent-glow: rgba(0,0,0,0.08);
  --danger: #e74c3c;
  --success: #2ecc71;
  --warning: #f39c12;
  --info: #3498db;
}

/* ----- Dark Mode (Deep Black) ----- */
body.dark {
  --bg-primary: #0a0a0a;
  --bg-secondary: #1a1a1a;
  --bg-tertiary: #222222;
  --text-primary: #f5f5f7;
  --text-secondary: #a1a1a6;
  --text-muted: #6e6e73;
  --border: #2c2c2e;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.5);
  --glass-bg: rgba(26,26,26,0.7);
  --glass-border: rgba(255,255,255,0.08);
  --header-bg: rgba(10,10,10,0.85);
  --input-bg: #1a1a1a;
  --accent: #f5f5f7;              /* white for primary actions */
  --accent-hover: #ffffff;
  --accent-glow: rgba(255,255,255,0.12);
}

/* ----- Reset ----- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.5;
  transition: background-color var(--transition), color var(--transition);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

p {
  color: var(--text-secondary);
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  background: none;
}

input, select, textarea {
  font-family: var(--font-body);
  font-size: 1rem;
}

ul, ol {
  list-style: none;
}

/* ----- Utility Classes ----- */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.hidden {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ----- Typography ----- */
.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.text-accent { color: var(--accent); }
.font-mono { font-family: var(--font-mono); }