/* Neurofeedback in Schools Network: site styles.
   Plain CSS, no build step. Colours and spacing live in the custom properties below. */

@font-face {
  font-family: "DM Sans";
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url("fonts/dm-sans-400.woff2") format("woff2");
}
@font-face {
  font-family: "DM Sans";
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  src: url("fonts/dm-sans-500.woff2") format("woff2");
}
@font-face {
  font-family: "DM Sans";
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url("fonts/dm-sans-700.woff2") format("woff2");
}

:root {
  --navy: #27336b;        /* headings, buttons, footer */
  --navy-dark: #1f2a5c;
  --teal: #2f8f7f;        /* accent: eyebrow, icons, logo line */
  --text: #2b3350;
  --muted: #566080;
  --hero-bg: #e6eef3;
  --surface: #ffffff;
  --border: #d9e1e8;
  --wrap: 1200px;
  --radius: 12px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  color: var(--text);
  background: var(--surface);
}

a { color: inherit; }

.wrap {
  width: min(var(--wrap), 100% - 2rem);
  margin-inline: auto;
}

/* Header */

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 84px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--navy);
}

.brand__mark {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--navy);
  color: #6fd1b9;
}

.brand__text { display: flex; flex-direction: column; line-height: 1.15; }

.brand__name { font-weight: 700; font-size: 1.35rem; letter-spacing: 0.01em; }
.brand__i { color: var(--teal); }
.brand__sub { font-size: 0.78rem; color: var(--muted); }

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-weight: 500;
}

.nav a:not(.button) {
  text-decoration: none;
  color: var(--text);
}
.nav a:not(.button):hover { color: var(--navy); text-decoration: underline; }

/* Buttons */

.button {
  display: inline-block;
  padding: 0.7rem 1.4rem;
  border-radius: 6px;
  border: 1.5px solid var(--navy);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  line-height: 1.2;
}

.button--primary { background: var(--navy); color: #fff; }
.button--primary:hover { background: var(--navy-dark); border-color: var(--navy-dark); }

.button--outline { background: transparent; color: var(--navy); font-weight: 500; }
.button--outline:hover { background: rgba(39, 51, 107, 0.06); }

/* Hero */

.hero { background: var(--hero-bg); padding: 4.5rem 0 4.5rem; }

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 3rem;
  align-items: center;
}

.eyebrow {
  margin: 0 0 1rem;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
}

h1 {
  margin: 0 0 1.5rem;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.08;
  font-weight: 700;
  color: var(--navy);
}

.placeholder {
  margin: 0;
  padding: 1.1rem 1.5rem;
  border: 1.5px dashed #a9b7c3;
  border-radius: var(--radius);
  color: var(--muted);
}

.hero__copy .placeholder { max-width: 34rem; font-size: 1.1rem; }

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.75rem 0 0;
}

.hero__art svg { width: 100%; height: auto; display: block; }

/* Who it's for */

.who { padding: 4.5rem 0 5rem; }

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.card {
  padding: 1.75rem 1.75rem 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.card__icon {
  display: inline-block;
  width: 28px;
  height: 28px;
  color: var(--teal);
}
.card__icon svg { width: 100%; height: 100%; }

.card h2 {
  margin: 1rem 0 0.75rem;
  font-size: 1.35rem;
  color: var(--navy);
}

.card .placeholder {
  padding: 0;
  border: 0;
  border-radius: 0;
}

/* Footer */

.site-footer {
  background: var(--navy);
  color: #fff;
  padding: 2.25rem 0;
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.brand--footer { color: #fff; }
.brand--footer .brand__mark { background: #fff; color: var(--navy); width: 36px; height: 36px; }
.brand--footer .brand__i { color: #6fd1b9; }

.footer__meta { margin: 0; font-size: 0.95rem; }
.footer__meta a { color: inherit; text-decoration: none; }
.footer__meta a:hover { text-decoration: underline; }

/* Phones and small tablets */

@media (max-width: 900px) {
  .hero { padding: 3rem 0; }
  .hero__grid { grid-template-columns: 1fr; gap: 2rem; }
  .cards { grid-template-columns: 1fr; }
  .nav a:not(.button) { display: none; }   /* page sections to come; keep the header simple on a phone */
  .brand__sub { display: none; }
}
