/* =========================================================
   School Digital Ecosystem — Design System
   Palette: deep navy/forest primary + warm gold accent
   ========================================================= */

:root {
  --brand-primary: #0f3d3e;      /* deep forest/navy */
  --brand-primary-dark: #092626;
  --brand-accent: #c9a227;       /* warm gold */
  --brand-accent-light: #e8cf7a;
  --brand-bg: #f7f7f5;
  --brand-text: #1e2422;
  --brand-muted: #5c6763;
  --radius-lg: 1rem;
  --radius-md: 0.65rem;
}

body {
  color: var(--brand-text);
  background: #ffffff;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

h1, h2, h3, h4, .fw-display {
  font-family: Georgia, 'Times New Roman', serif;
  letter-spacing: -0.01em;
}

/* ---- Bootstrap overrides ---- */
.btn-primary {
  background-color: var(--brand-primary);
  border-color: var(--brand-primary);
}
.btn-primary:hover, .btn-primary:focus {
  background-color: var(--brand-primary-dark);
  border-color: var(--brand-primary-dark);
}
.btn-outline-primary {
  color: var(--brand-primary);
  border-color: var(--brand-primary);
}
.btn-outline-primary:hover {
  background-color: var(--brand-primary);
  border-color: var(--brand-primary);
}
.btn-accent {
  background-color: var(--brand-accent);
  border-color: var(--brand-accent);
  color: #1e2422;
  font-weight: 600;
}
.btn-accent:hover { background-color: var(--brand-accent-light); color: #1e2422; }
.text-primary-brand { color: var(--brand-primary) !important; }
.text-accent { color: var(--brand-accent) !important; }
.bg-brand { background-color: var(--brand-primary) !important; }
.bg-brand-soft { background-color: #eef3f2 !important; }

/* ---- Nav ---- */
.announcement-bar {
  background: var(--brand-primary-dark);
  color: #f2ead0;
}
.navbar-brand { color: var(--brand-primary) !important; }
.brand-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--brand-primary); color: #fff; font-size: 1rem;
}
.nav-link { color: var(--brand-text) !important; font-weight: 500; }
.nav-link.active { color: var(--brand-primary) !important; }
.footer-link { color: #cbd3d1; text-decoration: none; }
.footer-link:hover { color: var(--brand-accent); }

/* ---- Hero ---- */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  color: #fff;
  overflow: hidden;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(9,38,38,.92) 20%, rgba(9,38,38,.55) 100%);
}
.hero .container { position: relative; z-index: 2; }
.hero-motto { color: var(--brand-accent-light); letter-spacing: .08em; text-transform: uppercase; font-size: .85rem; }

.page-hero {
  background: var(--brand-primary);
  color: #fff;
  padding: 4rem 0 3rem;
}

/* ---- Cards / sections ---- */
.section-pad { padding: 4.5rem 0; }
.card-feature {
  border: none;
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 24px rgba(15,61,62,.08);
  transition: transform .2s ease, box-shadow .2s ease;
  height: 100%;
}
.card-feature:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(15,61,62,.14); }
.icon-badge {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--brand-bg); color: var(--brand-primary);
  display: flex; align-items: center; justify-content: center; font-size: 1.4rem;
}
.stat-number { font-size: 2.4rem; font-weight: 700; color: var(--brand-primary); }
.section-eyebrow {
  color: var(--brand-accent); text-transform: uppercase; letter-spacing: .1em; font-weight: 700; font-size: .8rem;
}

.gallery-thumb { border-radius: var(--radius-md); overflow: hidden; aspect-ratio: 4/3; background: var(--brand-bg); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

.timeline-step {
  border-left: 3px solid var(--brand-accent);
  padding-left: 1.25rem;
  margin-bottom: 1.5rem;
}

/* ---- Auth pages (Phase 2) ---- */
body.auth-page { background: var(--brand-bg); }

/* ---- Utilities ---- */
.rounded-xl { border-radius: var(--radius-lg) !important; }
