/* Naveen Shiksha Niketan — Design System */

:root {
  --red: #DC2626;
  --red-deep: #991B1B;
  --red-darker: #7F1D1D;
  --red-50: #FEF2F2;
  --red-100: #FEE2E2;
  --black: #0A0A0A;
  --ink: #1A1A1A;
  --ink-2: #2C2C2C;
  --muted: #6B6B6B;
  --line: #E5E5E5;
  --line-2: #D4D4D4;
  --paper: #FAFAF7;
  --cream: #F5F1E8;
  --gold: #B8945F;
  --white: #FFFFFF;

  --serif: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  --serif-2: "Playfair Display", Georgia, serif;
  --sans: "Inter", -apple-system, system-ui, sans-serif;

  --pad: 28px;
  --pad-y: 96px;
  --radius: 4px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-lg: 0 12px 32px rgba(0,0,0,0.12), 0 4px 8px rgba(0,0,0,0.06);

  --container: 1240px;
}

[data-density="compact"] {
  --pad-y: 64px;
  --pad: 20px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--black);
  line-height: 1.15;
}

h1 { font-size: clamp(40px, 5vw, 68px); font-weight: 600; }
h2 { font-size: clamp(30px, 3.4vw, 46px); }
h3 { font-size: clamp(22px, 2vw, 28px); }
h4 { font-size: 18px; font-family: var(--sans); font-weight: 600; letter-spacing: 0.02em; }

p { color: var(--ink-2); }

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.container-narrow {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 var(--pad);
}

section { padding: var(--pad-y) 0; }

/* ============ TOP UTILITY BAR ============ */
.utilbar {
  background: var(--black);
  color: #D4D4D4;
  font-size: 13px;
  padding: 8px 0;
  border-bottom: 1px solid var(--red);
}
.utilbar-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.utilbar-left { display: flex; gap: 22px; flex-wrap: wrap; }
.utilbar-left span { display: inline-flex; align-items: center; gap: 6px; }
.utilbar-left svg { width: 13px; height: 13px; opacity: 0.7; }
.lang-toggle {
  display: inline-flex;
  border: 1px solid #333;
  border-radius: 999px;
  overflow: hidden;
  font-size: 12px;
}
.lang-toggle button {
  background: transparent;
  border: none;
  color: #999;
  padding: 4px 12px;
  cursor: pointer;
  font-family: var(--sans);
  font-weight: 500;
  letter-spacing: 0.05em;
}
.lang-toggle button.active {
  background: var(--red);
  color: white;
}

/* ============ NAVBAR ============ */
.nav {
  background: white;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
  background: rgba(255,255,255,0.96);
}
.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 16px var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.brand-mark {
  width: 54px;
  height: 54px;
  flex-shrink: 0;
}
.brand-name {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--black);
  line-height: 1;
}
.brand-tag {
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  margin-top: 4px;
}
.nav-links {
  display: flex;
  gap: 4px;
  align-items: center;
}
.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: white;
  border-radius: 6px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
}
.nav-links a {
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: 0.01em;
  border-radius: var(--radius);
  transition: all 0.15s ease;
  position: relative;
}
.nav-links a:hover { color: var(--red); }
.nav-links a.active { color: var(--red); }
.nav-links a.active::after {
  content: '';
  position: absolute;
  left: 16px; right: 16px;
  bottom: 4px;
  height: 2px;
  background: var(--red);
}
.nav-cta {
  background: var(--red);
  color: white !important;
  padding: 10px 20px !important;
  border-radius: var(--radius);
  font-weight: 600 !important;
}
.nav-cta:hover { background: var(--red-deep); color: white !important; }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}
.btn-primary {
  background: var(--red);
  color: white;
}
.btn-primary:hover { background: var(--red-deep); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-secondary {
  background: white;
  color: var(--black);
  border: 1.5px solid var(--black);
}
.btn-secondary:hover { background: var(--black); color: white; }
.btn-ghost {
  background: transparent;
  color: var(--black);
  border: 1px solid var(--line-2);
}
.btn-ghost:hover { border-color: var(--red); color: var(--red); }
.btn-lg { padding: 16px 36px; font-size: 15px; }

/* ============ EYEBROW ============ */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 16px;
}
.eyebrow::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--red);
}

/* ============ FOOTER ============ */
.footer {
  background: var(--black);
  color: #BBB;
  padding: 80px 0 0;
}
.footer h4 {
  color: white;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 22px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
  gap: 48px;
}
.footer-brand p {
  color: #999;
  font-size: 14px;
  line-height: 1.7;
  margin-top: 16px;
  max-width: 320px;
}
.footer-brand .brand-name { color: white; }
.footer ul { list-style: none; }
.footer li { margin-bottom: 10px; }
.footer li a {
  color: #BBB;
  font-size: 14px;
  transition: color 0.15s;
}
.footer li a:hover { color: var(--red); }
.footer-contact-item {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 14px;
  color: #BBB;
  line-height: 1.5;
}
.footer-contact-item svg {
  width: 16px; height: 16px;
  flex-shrink: 0; margin-top: 3px;
  color: var(--red);
}
.footer-bottom {
  margin-top: 64px;
  padding: 24px 0;
  border-top: 1px solid #1F1F1F;
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #777;
}

/* ============ FORM ============ */
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.02em;
}
.field input, .field select, .field textarea {
  font-family: var(--sans);
  font-size: 15px;
  padding: 12px 14px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: white;
  color: var(--ink);
  transition: border-color 0.15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(220,38,38,0.1);
}
.field textarea { resize: vertical; min-height: 96px; }

/* ============ DECORATIVE ============ */
.divider-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 18px 0 8px;
  color: var(--red);
}
.divider-ornament::before,
.divider-ornament::after {
  content: '';
  width: 40px;
  height: 1px;
  background: var(--red);
  opacity: 0.5;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .nav-inner { position: relative; }
  .nav-toggle { display: inline-flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: var(--pad);
    left: var(--pad);
    background: white;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    border-radius: 8px;
    padding: 8px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    z-index: 120;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; }
  .nav-links a.active::after { display: none; }
  .nav-cta { text-align: center; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  h1 { font-size: 36px; }
  .utilbar-inner { font-size: 11px; }
  .utilbar-left { gap: 12px; }
}

/* ============ PHOTO PLACEHOLDER ============ */
.photo {
  position: relative;
  background: linear-gradient(135deg, #2A2A2A 0%, #1A1A1A 100%);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  color: white;
  border-radius: var(--radius);
}
.photo::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 30%, rgba(220,38,38,0.18), transparent 50%),
    radial-gradient(circle at 70% 80%, rgba(220,38,38,0.10), transparent 50%);
}
.photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 24px 24px;
}
.photo-caption {
  position: relative;
  z-index: 2;
  padding: 18px 20px;
  background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
  width: 100%;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.photo-caption .label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-bottom: 4px;
}
.photo-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  color: rgba(255,255,255,0.25);
  z-index: 1;
}
