/* ============================================================
   BASE.CSS — Design System Foundation
   Angela Symons Trading & Investment (Pty) Ltd
   ============================================================ */

/* --- Google Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

/* --- CSS Custom Properties (Design Tokens) --- */
:root {
  /* Brand Colors */
  --color-primary: #E91E8C;
  /* Hot Pink - Keeping the brand's main accent */
  --color-primary-light: #F54DA6;
  --color-primary-dark: #C4176F;
  --color-primary-glow: rgba(233, 30, 140, 0.15);
  --color-primary-subtle: rgba(233, 30, 140, 0.05);

  --color-secondary: #F8F9FA;
  /* Light Cloud Gray */
  --color-secondary-light: #FFFFFF;
  --color-secondary-dark: #E9ECEF;

  --color-surface: #FFFFFF;
  /* Pure White Surfaces */
  --color-surface-elevated: #F1F3F5;
  --color-surface-hover: #E9ECEF;

  --color-accent: #1A1A2E;
  /* Accent becomes Dark Charcoal */
  --color-accent-muted: rgba(26, 26, 46, 0.6);
  --color-accent-subtle: rgba(26, 26, 46, 0.08);

  /* Semantic Colors */
  --color-success: #00A36C;
  /* Slightly deeper for light mode contrast */
  --color-warning: #D97D00;
  --color-error: #D32F2F;
  --color-info: #0077CC;

  /* Text Colors */
  --text-primary: #1A1A2E;
  /* Dark Charcoal for readability */
  --text-secondary: #4A4A68;
  --text-tertiary: #8E8E93;
  --text-on-primary: #FFFFFF;

  /* Typography Scale — Fluid with clamp() */
  --font-heading: 'Oswald', 'Arial Narrow', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;

  --fs-display: clamp(2.8rem, 6vw, 5.5rem);
  --fs-h1: clamp(2.2rem, 4.5vw, 4rem);
  --fs-h2: clamp(1.8rem, 3.5vw, 3rem);
  --fs-h3: clamp(1.4rem, 2.5vw, 2rem);
  --fs-h4: clamp(1.15rem, 1.8vw, 1.5rem);
  --fs-body: clamp(0.95rem, 1.1vw, 1.125rem);
  --fs-body-lg: clamp(1.05rem, 1.3vw, 1.25rem);
  --fs-small: clamp(0.8rem, 0.9vw, 0.875rem);
  --fs-caption: clamp(0.7rem, 0.8vw, 0.75rem);

  --fw-light: 300;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;

  --lh-tight: 1.1;
  --lh-snug: 1.25;
  --lh-normal: 1.6;
  --lh-relaxed: 1.75;

  --ls-tight: -0.02em;
  --ls-normal: 0;
  --ls-wide: 0.05em;
  --ls-wider: 0.12em;

  /* Spacing Scale */
  --space-2xs: 0.25rem;
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  --space-5xl: 8rem;
  --space-section: clamp(4rem, 10vh, 8rem);

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  /* Shadows — Adjusted for light mode (subtle soft shadows) */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 16px 50px rgba(0, 0, 0, 0.15);
  --shadow-glow: 0 0 30px var(--color-primary-glow);
  --shadow-glow-sm: 0 0 15px var(--color-primary-glow);

  /* Transitions */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-in-out: cubic-bezier(0.45, 0, 0.55, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  --duration-fast: 150ms;
  --duration-normal: 300ms;
  --duration-slow: 500ms;
  --duration-slower: 800ms;

  /* Z-index Scale */
  --z-behind: -1;
  --z-base: 0;
  --z-above: 10;
  --z-sticky: 100;
  --z-nav: 1000;
  --z-overlay: 2000;
  --z-modal: 3000;
  --z-toast: 4000;

  /* Layout */
  --container-max: 1280px;
  --container-narrow: 900px;
  --nav-height: 80px;
  --grid-gap: var(--space-lg);
}

/* --- Modern CSS Reset --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: var(--fw-regular);
  line-height: var(--lh-normal);
  color: var(--text-primary);
  background-color: var(--color-secondary);
  overflow-x: hidden;
  min-height: 100vh;
}

/* Remove default list styles */
ul,
ol {
  list-style: none;
}

/* Reset anchors */
a {
  color: inherit;
  text-decoration: none;
}

/* Make images responsive */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Reset form elements */
input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
  border: none;
  outline: none;
  background: none;
}

button {
  cursor: pointer;
}

/* Remove built-in form typography styles */
input,
textarea {
  background-color: transparent;
}

/* Avoid text overflows */
p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

/* --- Base Typography --- */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
  text-transform: uppercase;
  color: var(--text-primary);
}

h1 {
  font-size: var(--fs-h1);
}

h2 {
  font-size: var(--fs-h2);
}

h3 {
  font-size: var(--fs-h3);
}

h4 {
  font-size: var(--fs-h4);
}

p {
  color: var(--text-secondary);
  max-width: 65ch;
}

strong {
  font-weight: var(--fw-semibold);
  color: var(--text-primary);
}

/* --- Selection --- */
::selection {
  background-color: var(--color-primary);
  color: var(--text-on-primary);
}

/* --- Focus Visible --- */
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* --- Scrollbar Styling --- */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--color-secondary-dark);
}

::-webkit-scrollbar-thumb {
  background: var(--color-primary-dark);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary);
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}