/* ============================================================
   main.css — NeuroIAMSPE
   CSS reset, custom properties, and base styles
   Design system: Dr. Igor Campana · Neurologia
   ============================================================ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=League+Spartan:wght@400;500;600;700&family=Merriweather:ital,wght@0,300;0,400;0,700;1,300;1,400&display=swap');

/* ------------------------------------------------------------
   Custom Properties
   ------------------------------------------------------------ */
:root {
  /* Colors */
  --primary:  #20515F;
  --beige:    #DDD0C6;
  --light:    #E5EBEA;
  --gray:     #737271;
  --white:    #FFFFFF;

  /* Semantic / status colors */
  --status-agendada:   #3B82F6;
  --status-realizada:  #22C55E;
  --status-cancelada:  #9CA3AF;
  --status-atrasada:   #EF4444;

  /* Typography */
  --font-heading: 'League Spartan', sans-serif;
  --font-body:    'Merriweather', serif;

  /* Spacing scale */
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  20px;
  --space-6:  24px;
  --space-8:  32px;
  --space-10: 40px;
  --space-12: 48px;

  /* Border radius */
  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   16px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md:  0 4px 12px rgba(0, 0, 0, 0.10);
  --shadow-lg:  0 8px 24px rgba(0, 0, 0, 0.12);

  /* Transitions */
  --transition-fast:   0.15s ease;
  --transition-normal: 0.25s ease;
  --transition-slow:   0.35s ease;

  /* Z-index layers */
  --z-base:    1;
  --z-header:  100;
  --z-drawer:  200;
  --z-tooltip: 300;
}

/* ------------------------------------------------------------
   CSS Reset
   ------------------------------------------------------------ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  background-color: var(--light);
  color: #333333;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  touch-action: manipulation;
}

img,
video,
svg {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

ul,
ol {
  list-style: none;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ------------------------------------------------------------
   Headings
   ------------------------------------------------------------ */
h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: #1a1a1a;
}

h1 { font-size: clamp(1.5rem, 4vw, 2rem); }
h2 { font-size: clamp(1.25rem, 3vw, 1.5rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.25rem); }
h4 { font-size: 1rem; }

/* ------------------------------------------------------------
   Selection
   ------------------------------------------------------------ */
::selection {
  background-color: var(--primary);
  color: var(--white);
}

/* ------------------------------------------------------------
   Focus visible (accessibility)
   ------------------------------------------------------------ */
:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* ------------------------------------------------------------
   Utility: visually hidden (accessibility)
   ------------------------------------------------------------ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}
