/* ============================================
   St. Vincent De Paul Hospitals — Base Styles
   Variables, Reset, Typography, Buttons
   ============================================ */

:root {
  --color-navy:    #0e2a55;
  --color-navy-2:  #143264;
  --color-red:     #b91c2c;
  --color-red-dk:  #9c0d1c;
  --color-gold:    #c9a227;
  --color-text:    #1f2937;
  --color-muted:   #6b7280;
  --color-light:   #f3f4f6;
  --color-bg:      #ffffff;
  --color-border:  #e5e7eb;

  --font-display: "Playfair Display", Georgia, serif;
  --font-body:    "Inter", -apple-system, BlinkMacSystemFont, sans-serif;

  --container:    1200px;
  --radius:       6px;
  --shadow-sm:    0 2px 8px rgba(0,0,0,0.06);
  --shadow-md:    0 8px 24px rgba(0,0,0,0.08);

  /* Spacing Scale (Tailwind-inspired) */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-24: 6rem;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px; /* Base for rems */
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; transition: all 0.22s ease; }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-4);
}

/* Typography Hierarchy */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-navy);
}

h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
h4 { font-size: 1.125rem; }

p { margin-bottom: var(--space-4); }
p:last-child { margin-bottom: 0; }

/* Global Focus-Visible ring */
:focus-visible {
  outline: 2px solid var(--color-red);
  outline-offset: 3px;
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.875rem;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: none;
  user-select: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-red);
  color: #fff;
  box-shadow: 0 4px 12px rgba(185, 28, 44, 0.15);
}

.btn-primary:hover {
  background: var(--color-red-dk);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(185, 28, 44, 0.25);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-outline {
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  color: #fff;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
  transform: translateY(-2px);
}

.btn-outline-dark {
  background: transparent;
  border: 1.5px solid var(--color-navy);
  color: var(--color-navy);
}

.btn-outline-dark:hover {
  background: rgba(14, 42, 85, 0.05);
  transform: translateY(-2px);
}

.btn i { font-size: 0.8rem; }
