/* ==========================================================================
   Northeastern Strategy — site styles
   Brand colours: black, white, red. Change them here and the whole site updates.
   ========================================================================== */

:root {
  --black: #0b0b0b;
  --ink: #1a1a1a;
  --white: #ffffff;
  --off-white: #f6f4f1;
  --red: #c8102e;          /* Northeastern red */
  --red-dark: #9e0c24;
  --grey: #6b6b6b;
  --line: #e4e1dc;

  --font-serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --max: 1180px;
  --radius: 4px;
  --header-h: 76px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--black);
}
h1 { font-size: clamp(2.4rem, 6vw, 4.5rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
h3 { font-size: 1.35rem; }
p  { margin: 0 0 1em; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 14px;
}

.lead { font-size: 1.15rem; color: var(--grey); max-width: 680px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 28px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid var(--red);
  background: var(--red);
  color: var(--white);
  border-radius: var(--radius);
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  cursor: pointer;
}
.btn:hover { background: var(--red-dark); border-color: var(--red-dark); }
.btn--outline { background: transparent; color: var(--white); border-color: var(--white); }
.btn--outline:hover { background: var(--white); color: var(--black); border-color: var(--white); }
.btn--dark { background: var(--black); border-color: var(--black); }
.btn--dark:hover { background: var(--red); border-color: var(--red); }

/* ---------- Header / navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--black);
  color: var(--white);
  border-bottom: 3px solid var(--red);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--white);
}
.brand img { width: 48px; height: 48px; }
.brand span {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.nav ul {
  display: flex;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav a {
  position: relative;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
  padding: 6px 0;
  transition: color 0.2s;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--red);
  transition: width 0.25s;
}
.nav a:hover,
.nav a.active { color: var(--white); }
.nav a:hover::after,
.nav a.active::after { width: 100%; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--white);
  margin: 6px 0;
  transition: transform 0.25s, opacity 0.25s;
}
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute;
    top: calc(var(--header-h) + 3px);
    left: 0;
    right: 0;
    background: var(--black);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .nav-open .nav { max-height: 400px; border-bottom: 3px solid var(--red); }
  .nav ul { flex-direction: column; gap: 0; padding: 8px 24px 20px; }
  .nav li { border-top: 1px solid rgba(255, 255, 255, 0.1); }
  .nav a { display: block; padding: 14px 0; }
  .nav a::after { display: none; }
  .nav a.active { color: var(--red); }
}

/* ---------- Hero (home page) ---------- */
.hero {
  position: relative;
  background: var(--black);
  color: var(--white);
  padding: 120px 0 130px;
  overflow: hidden;
}
/* To use a background photo: add  style="--hero-image: url('assets/images/hero.jpg')"  to the .hero section */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--hero-image, none);
  background-size: cover;
  background-position: center;
  opacity: 0.35;
}
.hero .container { position: relative; }
.hero h1 { color: var(--white); max-width: 820px; }
.hero h1 em { font-style: italic; color: var(--red); }
.hero p { font-size: 1.2rem; color: rgba(255, 255, 255, 0.75); max-width: 600px; margin-bottom: 36px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Page header (inner pages) ---------- */
.page-header {
  background: var(--black);
  color: var(--white);
  padding: 90px 0 80px;
}
.page-header h1 { color: var(--white); margin-bottom: 0.3em; }
.page-header p { color: rgba(255, 255, 255, 0.7); font-size: 1.15rem; max-width: 640px; margin: 0; }

/* ---------- Sections ---------- */
.section { padding: 100px 0; }
.section--alt { background: var(--off-white); }
.section--dark { background: var(--black); color: var(--white); }
.section--dark h2, .section--dark h3 { color: var(--white); }
.section--red { background: var(--red); color: var(--white); }
.section--red h2 { color: var(--white); }
.section-head { margin-bottom: 56px; }
.section-head.center { text-align: center; }
.section-head.center .lead { margin: 0 auto; }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: 40px; }
  .section { padding: 72px 0; }
}

/* ---------- Image placeholders ---------- */
/* Replace a placeholder with:  <img src="assets/images/your-photo.jpg" alt="Description">  */
.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  aspect-ratio: 4 / 3;
  background:
    repeating-linear-gradient(45deg, transparent 0 14px, rgba(0, 0, 0, 0.035) 14px 28px),
    #ebe8e3;
  border: 1px dashed #c7c2ba;
  border-radius: var(--radius);
  color: var(--grey);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  padding: 16px;
}
.placeholder svg { width: 32px; height: 32px; opacity: 0.5; }
.placeholder--square { aspect-ratio: 1 / 1; }
.placeholder--wide { aspect-ratio: 16 / 9; }
.section--dark .placeholder {
  background:
    repeating-linear-gradient(45deg, transparent 0 14px, rgba(255, 255, 255, 0.04) 14px 28px),
    #1d1d1d;
  border-color: #3a3a3a;
  color: #8a8a8a;
}
.media img { width: 100%; border-radius: var(--radius); object-fit: cover; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 28px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 860px) { .grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 30px;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(0, 0, 0, 0.08); border-color: var(--red); }
.card .num {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  color: var(--red);
  line-height: 1;
  display: block;
  margin-bottom: 18px;
}
.card p { color: var(--grey); margin: 0; }

/* Stats strip */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat strong { display: block; font-family: var(--font-serif); font-size: 3rem; line-height: 1; color: var(--white); }
.stat span { font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255, 255, 255, 0.85); }
@media (max-width: 700px) { .stats { grid-template-columns: repeat(2, 1fr); row-gap: 40px; } }

/* ---------- Team ---------- */
.team-group + .team-group { margin-top: 80px; }
.team-group h2 { padding-bottom: 14px; border-bottom: 2px solid var(--black); margin-bottom: 40px; }

.member { text-align: left; }
.member .photo { margin-bottom: 18px; overflow: hidden; border-radius: var(--radius); }
.member .photo img { aspect-ratio: 1 / 1; width: 100%; object-fit: cover; transition: transform 0.4s; filter: grayscale(100%); }
.member:hover .photo img { transform: scale(1.04); filter: grayscale(0%); }
.member h3 { margin-bottom: 2px; font-size: 1.2rem; }
.member .role {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 10px;
}
.member p { font-size: 0.92rem; color: var(--grey); margin-bottom: 10px; }
.member .links a {
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--red);
  padding-bottom: 1px;
}
.member .links a:hover { color: var(--red); }

/* ---------- Mission ---------- */
.statement {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3.4vw, 2.5rem);
  line-height: 1.35;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  color: var(--black);
}
.statement::before {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: var(--red);
  margin: 0 auto 36px;
}

.values-list { list-style: none; margin: 0; padding: 0; counter-reset: v; }
.values-list li {
  counter-increment: v;
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 24px;
  padding: 36px 0;
  border-top: 1px solid var(--line);
}
.values-list li:last-child { border-bottom: 1px solid var(--line); }
.values-list li::before {
  content: "0" counter(v);
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--red);
  line-height: 1;
}
.values-list h3 { margin-bottom: 6px; }
.values-list p { color: var(--grey); margin: 0; }

/* ---------- Events ---------- */
.event-list { display: grid; gap: 28px; }
.event {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  gap: 32px;
  align-items: center;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  transition: border-color 0.2s;
}
.event:hover { border-color: var(--red); }
.event .date {
  text-align: center;
  background: var(--black);
  color: var(--white);
  padding: 14px 8px;
  border-radius: var(--radius);
}
.event .date strong { display: block; font-family: var(--font-serif); font-size: 2.1rem; line-height: 1; }
.event .date span { font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--red); font-weight: 600; }
.event h3 { margin-bottom: 4px; }
.event .meta { font-size: 0.85rem; color: var(--grey); margin-bottom: 8px; }
.event p { margin: 0; color: var(--grey); font-size: 0.95rem; }
@media (max-width: 760px) {
  .event { grid-template-columns: 80px 1fr; gap: 20px; }
  .event .btn { grid-column: 1 / -1; text-align: center; }
}

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery .placeholder, .gallery img { aspect-ratio: 1 / 1; object-fit: cover; width: 100%; border-radius: var(--radius); }
@media (max-width: 760px) { .gallery { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Join / contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; gap: 48px; } }

.contact-item { padding: 22px 0; border-top: 1px solid var(--line); }
.contact-item:last-child { border-bottom: 1px solid var(--line); }
.contact-item .label { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--red); display: block; margin-bottom: 4px; }
.contact-item a { text-decoration: none; font-size: 1.1rem; font-weight: 500; }
.contact-item a:hover { color: var(--red); }

.form { display: grid; gap: 18px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .form .row { grid-template-columns: 1fr; } }
.form label { display: block; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.06em; margin-bottom: 6px; }
.form input,
.form select,
.form textarea {
  width: 100%;
  padding: 14px 16px;
  font: inherit;
  font-size: 0.95rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form input:focus,
.form select:focus,
.form textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.12); }
.form textarea { min-height: 140px; resize: vertical; }
.form-note { font-size: 0.85rem; color: var(--grey); margin: 0; }
.form-success {
  display: none;
  padding: 16px 18px;
  border-left: 3px solid var(--red);
  background: var(--off-white);
  font-size: 0.95rem;
}
.form-success.show { display: block; }

/* ---------- CTA band ---------- */
.cta { text-align: center; }
.cta h2 { margin-bottom: 14px; }
.cta p { max-width: 560px; margin: 0 auto 32px; color: rgba(255, 255, 255, 0.85); }
.section--red .btn { background: var(--white); color: var(--red); border-color: var(--white); }
.section--red .btn:hover { background: var(--black); color: var(--white); border-color: var(--black); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--black);
  color: rgba(255, 255, 255, 0.7);
  padding: 64px 0 28px;
  font-size: 0.92rem;
}
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }
.site-footer h4 { font-family: var(--font-sans); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--white); margin-bottom: 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { text-decoration: none; transition: color 0.2s; }
.site-footer a:hover { color: var(--red); }
.site-footer .brand { margin-bottom: 16px; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
}

.socials { display: flex; gap: 12px; margin-top: 18px; }
.socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  transition: background 0.2s, border-color 0.2s;
}
.socials a:hover { background: var(--red); border-color: var(--red); }
.socials svg { width: 18px; height: 18px; fill: var(--white); }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* Event highlight tiles (home page) */
.highlight h3 { margin-top: 18px; margin-bottom: 4px; }
.highlight p { font-size: 0.95rem; color: var(--grey); }
