/* ============================================================
   Reconnect Canada — shared styles
   All four pages import this file
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400;1,700&family=DM+Sans:wght@300;400;500&display=swap');

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

:root {
  --maple:       #C8392B;
  --maple-deep:  #8B2219;
  --maple-light: #F2D2CF;
  --maple-pale:  #FDF5F4;
  --cream:       #FAF8F4;
  --ink:         #1A1714;
  --ink-soft:    #3D3833;
  --muted:       #7A7570;
  --border:      rgba(26,23,20,0.1);
  --border-soft: rgba(26,23,20,0.06);
  --white:       #FFFFFF;
  --radius:      12px;
  --radius-sm:   8px;
  --shadow:      0 2px 16px rgba(26,23,20,0.08);
  --shadow-lg:   0 8px 40px rgba(26,23,20,0.12);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ---- NAV ---- */
.rc-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250,248,244,0.95);
  backdrop-filter: blur(8px);
  border-bottom: 0.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2.5rem;
}
.rc-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--maple);
  text-decoration: none;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 6px;
}
.rc-nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}
.rc-nav-links a {
  font-size: 0.875rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.rc-nav-links a:hover { color: var(--ink); }
.rc-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--maple);
  color: white;
  border: none;
  padding: 0.6rem 1.3rem;
  border-radius: 100px;
  font-size: 0.875rem;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, transform 0.1s;
}
.rc-btn:hover  { background: var(--maple-deep); }
.rc-btn:active { transform: scale(0.98); }
.rc-btn-outline {
  background: transparent;
  color: var(--maple);
  border: 1px solid var(--maple);
}
.rc-btn-outline:hover { background: var(--maple-pale); }

/* ---- FOOTER ---- */
.rc-footer {
  border-top: 0.5px solid var(--border);
  padding: 1.5rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--muted);
}
.rc-footer-logo {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  color: var(--maple);
  font-size: 0.95rem;
}
.rc-footer-links { display: flex; gap: 1.5rem; }
.rc-footer-links a { color: var(--muted); text-decoration: none; }
.rc-footer-links a:hover { color: var(--ink); }

/* ---- SEARCH BAR ---- */
.rc-search-wrap {
  display: flex;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: white;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s;
}
.rc-search-wrap:focus-within {
  box-shadow: var(--shadow-lg);
  border-color: rgba(200,57,43,0.3);
}
.rc-search-wrap input {
  flex: 1;
  border: none;
  padding: 0.9rem 1.2rem;
  font-size: 0.95rem;
  font-family: 'DM Sans', sans-serif;
  background: transparent;
  color: var(--ink);
  outline: none;
}
.rc-search-wrap input::placeholder { color: #B5AFA9; }
.rc-search-wrap button {
  background: var(--maple);
  color: white;
  border: none;
  padding: 0.9rem 1.5rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}
.rc-search-wrap button:hover { background: var(--maple-deep); }

/* ---- SCHOOL CARD ---- */
.school-card {
  background: white;
  border: 0.5px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s;
  cursor: pointer;
}
.school-card:hover {
  border-color: rgba(200,57,43,0.3);
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}
.school-card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--maple-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.school-card-name {
  font-weight: 500;
  font-size: 0.95rem;
  margin-bottom: 2px;
}
.school-card-meta {
  font-size: 0.8rem;
  color: var(--muted);
}
.school-card-badge {
  margin-left: auto;
  font-size: 0.7rem;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 100px;
  background: var(--maple-pale);
  color: var(--maple);
  white-space: nowrap;
  flex-shrink: 0;
}
.school-card-badge.closed {
  background: #F5F5F5;
  color: var(--muted);
}

/* ---- LEVEL ICONS ---- */
.level-icon { font-size: 1.4rem; }

/* ---- PROVINCE PILL ---- */
.prov-pill {
  font-size: 0.75rem;
  color: var(--muted);
  border: 0.5px solid var(--border);
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  background: white;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.prov-pill:hover,
.prov-pill.active {
  background: var(--maple);
  color: white;
  border-color: var(--maple);
}

/* ---- ANIMATIONS ---- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.4s ease both; }
.fade-up-2 { animation: fadeUp 0.4s 0.1s ease both; }
.fade-up-3 { animation: fadeUp 0.4s 0.2s ease both; }
.fade-up-4 { animation: fadeUp 0.4s 0.3s ease both; }

/* ---- UTILITIES ---- */
.container { max-width: 1100px; margin: 0 auto; padding: 0 2rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
