/* ============================================================
   Virat Public School — Soft & Friendly Design System
   Plum + Rose + Sky, with generous breathing room
   ============================================================ */

:root {
  /* Plum (primary) */
  --plum-50:  #fbf6fb;
  --plum-100: #f4e9f3;
  --plum-200: #ead4ec;
  --plum-300: #d8b1dd;
  --plum-400: #c486cc;
  --plum-500: #a862b4;
  --plum-600: #8a4a96;
  --plum-700: #6d3877;

  /* Rose (accent) */
  --rose-50:  #fff5f7;
  --rose-100: #ffe5ec;
  --rose-200: #ffc8d6;
  --rose-300: #ffa3b9;
  --rose-400: #ff7898;
  --rose-500: #f25a82;
  --rose-600: #d63e6b;

  /* Sky (secondary) */
  --sky-50:   #f2f9ff;
  --sky-100:  #dff0ff;
  --sky-200:  #b9dffe;
  --sky-300:  #8ac8fc;
  --sky-400:  #5aaef6;
  --sky-500:  #3892e6;

  /* Neutrals */
  --ink-900:  #2a1f33;
  --ink-700:  #4a3d54;
  --ink-500:  #7a6e85;
  --ink-300:  #b5acc0;
  --ink-100:  #ebe6ef;
  --cream:    #fdfbf8;
  --paper:    #ffffff;

  /* Semantic */
  --color-text:       var(--ink-900);
  --color-text-soft:  var(--ink-700);
  --color-text-mute:  var(--ink-500);
  --color-bg:         var(--cream);
  --color-surface:    var(--paper);
  --color-line:       rgba(106, 56, 119, 0.08);
  --color-primary:    var(--plum-600);
  --color-primary-soft: var(--plum-100);
  --color-accent:     var(--rose-500);
  --color-accent-soft: var(--rose-100);
  --color-info:       var(--sky-500);
  --color-info-soft:  var(--sky-100);

  /* Type */
  --font-display: 'Fraunces', 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Spacing */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;
  --s-10: 128px;

  /* Radii */
  --r-sm: 10px;
  --r-md: 18px;
  --r-lg: 28px;
  --r-xl: 40px;
  --r-pill: 999px;

  /* Shadow */
  --shadow-sm: 0 2px 8px rgba(106, 56, 119, 0.05);
  --shadow-md: 0 8px 30px rgba(106, 56, 119, 0.07);
  --shadow-lg: 0 20px 60px rgba(106, 56, 119, 0.10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { color: var(--color-primary); text-decoration: none; }
a:hover { color: var(--plum-700); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  color: var(--ink-900);
  margin: 0;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 500; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); font-weight: 500; }
h3 { font-size: 1.25rem; font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; font-family: var(--font-body); }
p  { margin: 0 0 1em; color: var(--color-text-soft); }

/* === Skip link === */
.skip-link {
  position: absolute; top: -100px; left: 8px;
  background: var(--plum-700); color: white;
  padding: 8px 16px; border-radius: 0 0 var(--r-md) var(--r-md);
  z-index: 1000;
}
.skip-link:focus { top: 0; }

/* === Container === */
.container-wide {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 var(--s-5);
}
.container-narrow {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 var(--s-5);
}

/* === Top bar === */
.top-bar {
  background: var(--plum-700);
  color: white;
  font-size: 13px;
  padding: 8px 0;
}
.top-bar a { color: white; opacity: 0.9; }
.top-bar a:hover { opacity: 1; }
.top-bar .container-wide {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: var(--s-3);
}
.top-tag {
  background: rgba(255,255,255,0.15);
  padding: 3px 12px; border-radius: var(--r-pill);
  font-size: 12px; letter-spacing: 0.02em;
}

/* === Header === */
.site-header {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-line);
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(255,255,255,0.85);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--s-4) 0;
  gap: var(--s-5);
}
.brand {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; color: inherit;
}
.brand-logo {
  width: 44px; height: 44px;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, var(--plum-400), var(--rose-400));
  color: white; font-family: var(--font-display); font-weight: 600;
  display: grid; place-items: center; font-size: 22px;
  flex-shrink: 0;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 18px; color: var(--ink-900); }
.brand-sub  { font-size: 12px; color: var(--color-text-mute); }

.primary-nav {
  display: flex; align-items: center; gap: var(--s-5);
}
.nav-link {
  color: var(--color-text-soft); font-size: 15px; font-weight: 500;
  text-decoration: none; padding: 6px 0;
  position: relative;
}
.nav-link:hover { color: var(--plum-600); }
.nav-cta {
  background: var(--rose-500); color: white !important;
  padding: 10px 20px; border-radius: var(--r-pill);
  font-weight: 600;
  transition: background 0.2s;
}
.nav-cta:hover { background: var(--rose-600); }

.menu-toggle {
  display: none; background: var(--color-surface); border: 1.5px solid var(--color-line); cursor: pointer;
  width: 44px; height: 44px; padding: 0; border-radius: 12px;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px;
  box-shadow: 0 2px 6px rgba(106, 56, 119, 0.06);
}
.menu-toggle span {
  display: block; width: 22px; height: 3px; background: #1a1226; border-radius: 3px;
  transition: transform 0.2s, opacity 0.2s;
}
.menu-toggle:hover { background: var(--plum-50); border-color: var(--plum-300); }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
.mobile-menu {
  display: none;
  flex-direction: column;
  padding: var(--s-4) var(--s-5) var(--s-5);
  background: var(--color-surface);
  border-top: 1px solid var(--color-line);
  gap: var(--s-3);
  box-shadow: 0 8px 20px rgba(106, 56, 119, 0.06);
}
.mobile-menu a { padding: 10px 0; color: var(--ink-700); font-size: 16px; }
.mobile-menu a:hover { color: var(--plum-600); }

@media (max-width: 880px) {
  .primary-nav { display: none; }
  .menu-toggle { display: flex; }
  .mobile-menu.open { display: flex; }
}

/* === Hero (soft, minimal) === */
.hero {
  padding: var(--s-9) 0 var(--s-8);
  text-align: center;
  background:
    radial-gradient(ellipse at top left, var(--rose-100), transparent 50%),
    radial-gradient(ellipse at top right, var(--sky-100), transparent 50%),
    var(--cream);
}
.hero-inner { max-width: 760px; margin: 0 auto; }
.hero h1 {
  margin: var(--s-4) 0 var(--s-4);
  color: var(--ink-900);
}
.hero p.lead {
  font-size: 1.1rem; color: var(--color-text-soft);
  max-width: 560px; margin: 0 auto var(--s-6);
  line-height: 1.6;
}
.hero-cta {
  display: flex; gap: var(--s-3); justify-content: center; flex-wrap: wrap;
  margin-top: var(--s-5);
}
.hero-tags {
  display: flex; gap: var(--s-3); justify-content: center; flex-wrap: wrap;
  margin-top: var(--s-6);
  font-size: 13px; color: var(--color-text-mute);
}
.hero-tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: var(--r-pill);
  background: var(--color-surface);
  border: 1px solid var(--color-line);
}

/* === Buttons === */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px;
  border-radius: var(--r-pill);
  font-family: var(--font-body); font-size: 15px; font-weight: 600;
  text-decoration: none; border: none; cursor: pointer;
  transition: all 0.2s;
}
.btn-primary {
  background: var(--plum-600); color: white;
}
.btn-primary:hover { background: var(--plum-700); color: white; transform: translateY(-1px); }
.btn-accent {
  background: var(--rose-500); color: white;
}
.btn-accent:hover { background: var(--rose-600); color: white; transform: translateY(-1px); }
.btn-ghost {
  background: var(--color-surface); color: var(--plum-700);
  border: 1.5px solid var(--color-line);
}
.btn-ghost:hover { background: var(--plum-50); border-color: var(--plum-300); }
.btn-lg { padding: 14px 32px; font-size: 16px; }

/* === Sections === */
.section { padding: var(--s-9) 0; }
.section-soft { background: var(--color-surface); }
.section-blush { background: var(--rose-50); }
.section-sky { background: var(--sky-50); }
.section-plum { background: var(--plum-700); color: white; }
.section-plum h2, .section-plum h3 { color: white; }
.section-plum p { color: rgba(255,255,255,0.85); }

.section-eyebrow {
  display: inline-block;
  font-size: 13px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--rose-500);
  margin-bottom: var(--s-3);
}
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: var(--s-3);
  font-weight: 500;
}
.section-sub {
  color: var(--color-text-soft);
  font-size: 1.05rem;
  max-width: 540px;
  margin-bottom: var(--s-7);
}
.section-center { text-align: center; }
.section-center .section-sub { margin-left: auto; margin-right: auto; }

/* === Cards (soft, rounded) === */
.card {
  background: var(--color-surface);
  border-radius: var(--r-lg);
  padding: var(--s-6);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.card h3 { margin-bottom: 8px; }
.card p { font-size: 15px; color: var(--color-text-soft); margin: 0; }

.card-link {
  display: block; text-decoration: none; color: inherit;
}

/* Quick access cards - simple 2x2 */
.quick-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-4);
}
@media (min-width: 720px) { .quick-grid { grid-template-columns: repeat(4, 1fr); } }
.quick-card {
  display: block; padding: var(--s-5);
  background: var(--color-surface);
  border-radius: var(--r-md);
  text-decoration: none; color: inherit;
  transition: all 0.2s;
  border: 1px solid transparent;
}
.quick-card:hover {
  background: white;
  border-color: var(--rose-200);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.quick-card h3 { font-size: 1.05rem; margin-bottom: 4px; }
.quick-card p { font-size: 14px; margin: 0; color: var(--color-text-mute); }

/* === Notice list (clean) === */
.notice-list { display: flex; flex-direction: column; gap: var(--s-3); }
.notice-item {
  display: block; padding: var(--s-5);
  background: var(--color-surface);
  border-radius: var(--r-md);
  text-decoration: none; color: inherit;
  transition: background 0.2s;
}
.notice-item:hover { background: white; box-shadow: var(--shadow-sm); }
.notice-tag {
  display: inline-block;
  font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--rose-500);
  background: var(--rose-50);
  padding: 3px 10px; border-radius: var(--r-pill);
  margin-bottom: 8px;
}
.notice-item h3 { font-size: 1.1rem; margin: 4px 0 6px; }
.notice-meta { font-size: 13px; color: var(--color-text-mute); }

/* === Album cards (very soft) === */
.album-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-5);
}
@media (min-width: 640px) { .album-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 920px) { .album-grid { grid-template-columns: repeat(3, 1fr); } }

.album-card {
  display: block; text-decoration: none; color: inherit;
  background: var(--color-surface);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform 0.2s;
}
.album-card:hover { transform: translateY(-3px); }
.album-thumb {
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--plum-200), var(--rose-200));
  position: relative;
  overflow: hidden;
}
.album-thumb::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 60%, rgba(0,0,0,0.06));
}
.album-thumb.sky   { background: linear-gradient(135deg, var(--sky-200), var(--plum-100)); }
.album-thumb.rose  { background: linear-gradient(135deg, var(--rose-200), var(--plum-200)); }
.album-thumb.plum  { background: linear-gradient(135deg, var(--plum-300), var(--plum-100)); }
.album-thumb.mix   { background: linear-gradient(135deg, var(--sky-200), var(--rose-200)); }

.album-body { padding: var(--s-4) var(--s-5); }
.album-body h3 { font-size: 1.1rem; margin-bottom: 4px; }
.album-body p { font-size: 14px; color: var(--color-text-mute); margin: 0; }

/* === Stats (very soft, minimal) === */
.stat-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-5);
  text-align: center;
}
@media (min-width: 720px) { .stat-row { grid-template-columns: repeat(4, 1fr); } }
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 500;
  color: white;
  line-height: 1;
}
.stat-label {
  font-size: 13px;
  color: rgba(255,255,255,0.85);
  margin-top: 6px;
  letter-spacing: 0.02em;
}

/* === Testimonial (single, gentle) === */
.testimonial {
  max-width: 640px; margin: 0 auto;
  text-align: center;
  padding: var(--s-6);
}
.testimonial p.quote {
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1.5;
  color: var(--ink-700);
  font-weight: 400;
  font-style: italic;
  margin-bottom: var(--s-4);
}
.testimonial p.author {
  font-size: 14px;
  color: var(--color-text-mute);
  margin: 0;
}
.testimonial .author-name { color: var(--plum-700); font-weight: 600; }

/* === Values (3 simple cards) === */
.value-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-4);
}
@media (min-width: 720px) { .value-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .value-grid { grid-template-columns: repeat(4, 1fr); } }
.value-card {
  padding: var(--s-5);
  background: var(--color-surface);
  border-radius: var(--r-md);
  text-align: left;
}
.value-card h3 { font-size: 1.1rem; margin-bottom: 6px; }
.value-card p { font-size: 14px; color: var(--color-text-soft); margin: 0; line-height: 1.55; }

/* === CTA banner (soft pill) === */
.cta-pill {
  background: linear-gradient(135deg, var(--rose-100), var(--plum-100));
  border-radius: var(--r-xl);
  padding: var(--s-8) var(--s-6);
  text-align: center;
}
.cta-pill h2 { margin-bottom: var(--s-3); }
.cta-pill p { color: var(--color-text-soft); margin-bottom: var(--s-5); max-width: 480px; margin-left: auto; margin-right: auto; }

/* === Footer (soft, minimal) === */
.site-footer {
  background: var(--plum-50);
  color: var(--ink-700);
  padding: var(--s-7) 0 var(--s-5);
  margin-top: var(--s-9);
  border-top: 1px solid var(--color-line);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-5);
  margin-bottom: var(--s-5);
}
@media (min-width: 720px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.site-footer h4 {
  color: var(--plum-700);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: var(--s-3);
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer a { color: var(--ink-700); font-size: 14px; }
.site-footer a:hover { color: var(--plum-700); }
.site-footer p { color: var(--ink-500); font-size: 14px; line-height: 1.6; }
.site-footer .brand-name { color: var(--ink-900); }
.site-footer .brand-sub  { color: var(--ink-500); }

.footer-bottom {
  border-top: 1px solid var(--color-line);
  padding-top: var(--s-4);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: var(--s-3);
  font-size: 13px;
  color: var(--ink-500);
}

/* === Forms (soft) === */
.form { display: flex; flex-direction: column; gap: var(--s-4); }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label { font-size: 14px; font-weight: 500; color: var(--ink-700); }
.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--color-line);
  border-radius: var(--r-md);
  background: var(--color-surface);
  font-family: var(--font-body); font-size: 15px;
  color: var(--ink-900);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: none;
  border-color: var(--plum-400);
  box-shadow: 0 0 0 4px var(--plum-100);
}
.form-textarea { min-height: 120px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr; gap: var(--s-3); }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.form-help { font-size: 13px; color: var(--color-text-mute); }
.form-error { color: var(--rose-600); font-size: 13px; }
.form-success {
  background: var(--sky-50);
  border: 1px solid var(--sky-200);
  color: var(--ink-700);
  padding: var(--s-4);
  border-radius: var(--r-md);
  text-align: center;
}

/* === Page header (inner pages) === */
.page-header {
  padding: var(--s-9) 0 var(--s-7);
  text-align: center;
  background: radial-gradient(ellipse at center, var(--rose-50), transparent 70%);
}
.page-header h1 { margin-bottom: var(--s-3); }
.page-header p { color: var(--color-text-soft); max-width: 540px; margin: 0 auto; font-size: 1.05rem; }

/* === Content blocks (long pages) === */
.prose { max-width: 680px; margin: 0 auto; }
.prose h2 { margin: var(--s-7) 0 var(--s-3); }
.prose h3 { margin: var(--s-5) 0 var(--s-2); font-family: var(--font-body); }
.prose p, .prose li { font-size: 16px; line-height: 1.7; color: var(--color-text-soft); }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li { margin-bottom: 8px; }

/* === Table (results) === */
.table-wrap {
  background: var(--color-surface);
  border-radius: var(--r-lg);
  padding: var(--s-4);
  box-shadow: var(--shadow-sm);
  overflow-x: auto;
}
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.table th, .table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--color-line);
}
.table th {
  font-weight: 600; color: var(--plum-700);
  font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em;
}
.table tr:last-child td { border-bottom: none; }
.table tr:hover td { background: var(--plum-50); }

/* === Faculty cards (gentle) === */
.faculty-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-5);
}
@media (min-width: 640px) { .faculty-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 920px) { .faculty-grid { grid-template-columns: repeat(3, 1fr); } }
.faculty-card {
  background: var(--color-surface);
  border-radius: var(--r-lg);
  padding: var(--s-5);
  text-align: center;
}
.faculty-avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  margin: 0 auto var(--s-3);
  background: linear-gradient(135deg, var(--plum-300), var(--rose-300));
  display: grid; place-items: center;
  color: white; font-family: var(--font-display);
  font-size: 28px; font-weight: 500;
}
.faculty-card h3 { font-size: 1.05rem; margin-bottom: 4px; }
.faculty-card .role { color: var(--rose-500); font-size: 13px; font-weight: 500; margin-bottom: 6px; }
.faculty-card .meta { color: var(--color-text-mute); font-size: 13px; }

/* === Utility === */
.text-center { text-align: center; }
.mb-3 { margin-bottom: var(--s-3); }
.mb-4 { margin-bottom: var(--s-4); }
.mb-5 { margin-bottom: var(--s-5); }
.mb-6 { margin-bottom: var(--s-6); }
.mb-7 { margin-bottom: var(--s-7); }
.mt-4 { margin-top: var(--s-4); }
.mt-5 { margin-top: var(--s-5); }
.mt-6 { margin-top: var(--s-6); }
.mt-7 { margin-top: var(--s-7); }
.mt-8 { margin-top: var(--s-8); }
.flex { display: flex; gap: var(--s-3); flex-wrap: wrap; align-items: center; }
.stack > * + * { margin-top: var(--s-3); }
.stack-lg > * + * { margin-top: var(--s-5); }
.divider-soft { height: 1px; background: var(--color-line); margin: var(--s-7) 0; border: none; }
