/* Colegi de școală – stiluri proprii, peste Bootstrap 5 */
:root {
  --ink: #1f3a5f;
  --ink-2: #2e5480;
  --chalk: #f6f3ec;
  --paper: #fffdf8;
  --accent: #f2b632;
  --accent-ink: #3a2a00;
  --muted: #6b6b6b;
  --line: #e4ddcf;
  --bs-body-font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --bs-body-color: #262626;
  --bs-link-color: var(--ink-2);
  --bs-link-color-rgb: 46, 84, 128;
  --bs-link-hover-color: var(--ink);
}
body { background: var(--chalk); min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1 0 auto; }
h1, h2, h3, .serif { font-family: Georgia, "Times New Roman", serif; color: var(--ink); }
h1 { font-weight: 700; }

/* meniul */
.site-nav { background: var(--ink); }
.site-nav .brand { color: #fff; font-family: Georgia, serif; font-weight: 700; display: flex; align-items: center; gap: .55rem; }
.site-nav .brand img { border-radius: 7px; }
.site-nav .nav-link { color: rgba(255,255,255,.82); }
.site-nav .nav-link:hover, .site-nav .nav-link:focus, .site-nav .nav-link.active { color: #fff; }
.site-nav .nav-link.active { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 6px; text-decoration-thickness: 2px; }
.site-nav .navbar-toggler { border-color: rgba(255,255,255,.4); }
.site-nav .navbar-toggler-icon { filter: invert(1); }

.btn-accent { background: var(--accent); color: var(--accent-ink); font-weight: 600; border: 0; }
.btn-accent:hover, .btn-accent:focus { background: #e3a51d; color: var(--accent-ink); }
.btn-ink { background: var(--ink); color: #fff; border: 0; }
.btn-ink:hover, .btn-ink:focus { background: var(--ink-2); color: #fff; }

.site-footer { background: #ece6d8; color: var(--muted); font-size: .9rem; padding: 1.1rem 0; margin-top: 3rem; }
.site-footer a { color: var(--muted); }

/* pagina principală */
.hero { background: var(--ink); color: #fff; padding: 4.5rem 0 5rem; position: relative; overflow: hidden; }
.hero::after { /* „tabla” cu urme de cretă */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .07;
  background-image: radial-gradient(circle at 20% 30%, #fff 0 1px, transparent 2px), radial-gradient(circle at 70% 60%, #fff 0 1px, transparent 2px);
  background-size: 38px 38px, 52px 52px;
}
.hero h1 { color: #fff; font-size: clamp(2rem, 5vw, 3.3rem); line-height: 1.12; max-width: 17ch; }
.hero .lead { color: rgba(255,255,255,.85); max-width: 46ch; }
.hero .chalk { color: var(--accent); }
.hero-card { background: var(--paper); color: #262626; border-radius: 14px; padding: 1.4rem 1.5rem; box-shadow: 0 18px 40px rgba(0,0,0,.25); transform: rotate(-1.5deg); max-width: 360px; }
.hero-card .row-line { border-bottom: 1px dashed var(--line); padding: .45rem 0; display: flex; justify-content: space-between; gap: 1rem; font-size: .95rem; }
.hero-card .row-line:last-child { border-bottom: 0; }
.steps .step-n { width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; }
.section { padding: 3.5rem 0 1rem; }

/* cartonașe */
.card-paper { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; }
.page-head { padding: 2.2rem 0 1.2rem; }
.page-head p { color: var(--muted); margin-bottom: 0; }
.narrow { max-width: 480px; margin: 0 auto; }
.muted { color: var(--muted); }
.small-note { font-size: .88rem; color: var(--muted); }

/* școlile mele */
.school-results { max-height: 320px; overflow-y: auto; }
.school-results .list-group-item { cursor: pointer; }
.school-results .list-group-item:hover, .school-results .list-group-item:focus { background: #f3efe4; }
.chosen-school { background: #eef3f9; border: 1px solid #c9d7e8; border-radius: 10px; padding: .7rem .9rem; }
.enrol-card .years { font-variant-numeric: tabular-nums; }

/* colegii */
.person { display: flex; align-items: center; gap: .75rem; padding: .55rem 0; border-bottom: 1px solid var(--line); }
.person:last-child { border-bottom: 0; }
.avatar { width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--ink); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; flex: 0 0 auto; font-size: .95rem; }
.avatar.same { background: var(--accent); color: var(--accent-ink); }
.badge-class { background: #fbe9bd; color: var(--accent-ink); font-weight: 600; }

/* invită */
.invite-link { font-family: ui-monospace, Consolas, monospace; background: #fff; }

.legal h2 { font-size: 1.25rem; margin-top: 1.6rem; }
.legal p, .legal li { line-height: 1.6; }

@media (max-width: 767.98px) {
  .site-nav .navbar-nav { padding: .5rem 0; }
  .hero { padding: 3rem 0 3.5rem; }
  .hero-card { transform: none; margin-top: 2rem; }
}

/* „versiune de test” (CDS_PREVIEW=1): bandă deasupra meniului, doar pentru cine nu e conectat */
.preview-notice { background: var(--accent); color: var(--ink); text-align: center; font-size: .9rem; padding: 8px 16px; line-height: 1.4; }
.preview-notice strong { margin-right: 4px; }
@media print { .preview-notice { display: none; } }

/* pagina „În curând” (CDS_ACCESS_KEY: site închis) */
.soon-page { background: var(--chalk); min-height: 100vh; display: flex; align-items: center; justify-content: center; }
.soon { text-align: center; padding: 2rem 1.5rem; color: var(--ink); }
.soon h1 { font-family: Georgia, 'Times New Roman', serif; margin: 1rem 0 .5rem; }
.soon p { color: #5a6472; font-size: 1.1rem; margin: 0; }
