/* -------------------------
   Variables
------------------------- */
:root {
  --accent: #e11d48;   /* school red */
  --accent-hover: #b91c1c;
  --ink: #f1f5f9;      /* light text */
  --radius: 14px;
  --bg-dark: #0d1117;  /* dark navy background */
  --bg-panel: #1e293b; /* dark panel */
  --border: #334155;
  --shadow: 0 8px 20px rgba(0,0,0,.4);
}

/* -------------------------
   Base Styles
------------------------- */
body {
  margin: 0;
  font-family: system-ui, sans-serif;
  line-height: 1.6;
  background: var(--bg-dark);
  color: var(--ink);
}

h2, h3 {
  margin-top: 0;
  color: var(--ink);
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Utility spacing */
.mt-4 { margin-top: 1rem; }
.mt-5 { margin-top: 1.5rem; }

/* -------------------------
   Buttons
------------------------- */
.btn {
  display: inline-block;
  padding: 10px 18px;
  border-radius: var(--radius);
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  border: none;
  transition: background .2s, transform .2s;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

/* -------------------------
   Sections
------------------------- */
.section {
  padding: 60px 20px;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
}

/* Eyebrow */
.eyebrow {
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .05em;
  color: #f87171; /* softer red */
  margin-bottom: 8px;
}

.h2 {
  font-size: 1.9rem;
  font-weight: 700;
  margin-bottom: .5rem;
}

.lead {
  font-size: 1.1rem;
  color: #e2e8f0;
  max-width: 650px;
}

/* -------------------------
   Get Involved (with Background Image)
------------------------- */
.involved {
  position: relative;
  background: var(--bg-dark);
  color: var(--ink);
  padding: 80px 20px; /* more breathing space */
  overflow: hidden;
}

/* Background image */
.involved::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('/images/tables\ and\ chairs.jpg') center/cover no-repeat;
  opacity: 0.25; /* dim the photo */
  z-index: 0;
}

/* Dark overlay */
.involved::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6); /* overlay for readability */
  z-index: 1;
}

/* Content sits above */
.involved .container {
  position: relative;
  z-index: 2;
}

.involved-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
  margin-top: 26px;
}

.involved-card {
  background: var(--bg-panel);
  border-top: 6px solid var(--accent);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}


/* -------------------------
   Enroll
------------------------- */
.enroll {
  background: #111827;
  color: var(--ink);
}

.enroll .enroll-card {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  max-width: 860px;
  margin-inline: auto;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 760px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

input, textarea, select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #475569;
  font: inherit;
  color: #f8fafc;
  background: #0f172a;
  box-sizing: border-box;
}

input::placeholder,
textarea::placeholder {
  color: #94a3b8;
}

textarea {
  resize: vertical;
  min-height: 120px;
}

/* -------------------------
   Contact
------------------------- */
.contact {
  background: var(--bg-dark);
  color: var(--ink);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 26px;
  margin-top: 26px;
}

@media (max-width: 980px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.contact .panel {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}

.map-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-weight: 500;
  color: var(--accent);
}

/* -------------------------
   Modal
------------------------- */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.7);
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: var(--bg-panel);
  padding: 20px 24px;
  border-radius: var(--radius);
  text-align: center;
  max-width: 400px;
  box-shadow: var(--shadow);
  position: relative;
}

.modal-content h2 {
  font-size: 18px;
  margin: 0 0 8px 0;
  color: var(--accent);
}

.modal-content p {
  font-size: 14px;
  margin: 0;
}

.close {
  position: absolute;
  top: 6px;
  right: 10px;
  color: #f1f5f9;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
}

/* -------------------------
   Typography Scale
------------------------- */
body {
  font-size: 16px;
  line-height: 1.6;
}

h1 {
  font-size: clamp(2rem, 4vw, 2.6rem);
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 .5em;
}

.h2, h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 .5em;
}

h3 {
  font-size: clamp(1.2rem, 2.2vw, 1.5rem);
  font-weight: 600;
  line-height: 1.4;
  margin: 0 0 .5em;
}

.eyebrow {
  font-size: clamp(0.7rem, 1.8vw, 0.8rem);
}

.lead {
  font-size: clamp(1rem, 2.4vw, 1.2rem);
  color: #e2e8f0;
  max-width: 650px;
}
