/* base.css - CSS reset, root variables, typography, common utilities */

@font-face {
  font-family: 'Montserrat';
  src: url("../fonts/Montserrat-Regular.62d08c41cefb.ttf") format('truetype'),
       url("../fonts/Montserrat-Regular.1ac7925190b2.otf") format('opentype');
  font-weight: 400;
  font-style: normal;
}


:root {
  /* Color palette */
  --primary: #003d5b;
  --secondary: #b8d7e0;
  --ternary: #f1f2f4;
  --accent: #25e2cc;
  --text-color: #281d1b;
  --text-color-secondary: #fff;
  --neutral-color: #b4b5b6;
  --border-color: rgba(0, 0, 0, 0.12);

  /* Extended semantic tokens */
  --primary-hover: #002a3f;
  --surface: #ffffff;
  --surface-alt: #f1f2f4;
  --text-secondary: #2a2b2c;
  --text-color-muted: rgba(42, 43, 44, 0.67);
  --border-color-light: #e8e9ea;
  --warning-color: #994c00;
  --warning-bg: rgba(239, 222, 180, 0.5);
  --success-color: #10845b;
  --success-bg: #d4edda;
  --error-color: #dc3545;

  /* Canonical aliases for migration */
  --color-primary: var(--primary);
  --color-primary-hover: var(--primary-hover);
  --color-secondary: var(--secondary);
  --color-accent: var(--accent);
  --color-surface: var(--surface);
  --color-surface-alt: var(--surface-alt);
  --color-text: var(--text-color);
  --color-text-muted: var(--text-color-muted);
  --color-border: var(--border-color);
  --color-border-light: var(--border-color-light);

  /* Typography */
  --font-family: 'Montserrat', sans-serif;
  --font-size-base: 16px;
  --line-height-base: 1.6;

  /* Spacing */
  --spacing-xs: 8px;
  --spacing-sm: 16px;
  --spacing-md: 24px;
  --spacing-lg: 32px;
  --spacing-xl: 48px;
  --spacing-xxl: 64px;

  /* Border radius */
  --border-radius-sm: 4px;
  --border-radius-md: 8px;
  --border-radius-lg: 22px;

  /* Transitions */
  --transition-fast: 0.15s ease-in-out;
  --transition-normal: 0.3s ease-in-out;
}

/* CSS Reset */
* {
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
}

*,
::before,
::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  font-size: 16px;
  font-family: 'Montserrat', sans-serif;
}

body {
  font-family: 'Montserrat', sans-serif;
  color: var(--text-color);
  line-height: 1.6;
}

/* Typography */
h1, h2, h3, h4, h5, h6, p {
  margin: 0;
  padding: 0;
  font-family: var(--font-family);
}

h1 {
  font-size: 52px;
  font-weight: 600;
  line-height: 1.2;
}

h2 {
  font-size: 48px;
  font-weight: 600;
  line-height: 1.2;
}

h3 {
  font-size: 34px;
  font-weight: 600;
  line-height: 1.3;
}

h4 {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.3;
}

h5 {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.4;
}

h6 {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.4;
}

p {
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
}

/* Responsive typography */
@media screen and (max-width: 767px) {

  h2 {
    font-size: 32px;
  }

  h3 {
    font-size: 28px;
  }

  h4 {
    font-size: 20px;
  }

  p {
    font-size: 14px;
  }
}

/* Focus styles for accessibility */
/* *:focus {
  outline: 2px solid var(--secondary);
  outline-offset: 2px;
} */

/* Remove focus outline for mouse users */
*:focus:not(:focus-visible) {
  outline: none;
}

/* Error styles */
.errorlist {
  font-weight: 400;
  font-size: 14px;
  line-height: 1.43;
  margin-top: -10px;
  margin-bottom: 10px;
}
.errorlist .error {
  color: var(--error-color);
}

/* Alert primitives */

.alert {
  padding: 12px 16px;
  margin-bottom: 16px;
  border: 1px solid transparent;
  border-radius: var(--border-radius-sm);
}

.alert-danger {
  background-color: #f8d7da;
  border-color: #f5c2c7;
  color: #842029;
}

.alert-success {
  background-color: #d1e7dd;
  border-color: #badbcc;
  color: #0f5132;
}

.d-none {
  display: none !important;
}

.mb-3 {
  margin-bottom: var(--spacing-sm);
}