/* Jersey City Dance Project — static rebuild of the Kadence WordPress design */
:root {
  /* Kadence global palette */
  --p1: #3296ff;
  --p2: #003174;
  --p3: #ffffff;
  --p4: #f7fafc;
  --p5: #edf2f7;
  --p6: #cbd2d9;
  --p7: #2d3748;
  --p8: #252c39;
  --p9: #1a202c;
  --magenta: #f506ee;
  --magenta-header: #ff00ff;

  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-head: "Lora", Georgia, serif;
  --font-intro: "Nunito Sans", var(--font-body);
  --font-label: "Roboto", var(--font-body);

  --container: 1290px;
  --gutter: 24px;
  --section-pad: 80px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--p9);
  color: var(--p4);
  font: 400 17px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-head); font-weight: 700; margin: 0 0 .5em; color: var(--p3); }
p { margin: 0 0 1.2em; }
hr { border: 0; }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--p3); color: var(--p9); padding: 8px 16px; z-index: 100; }
.skip-link:focus { left: 8px; top: 8px; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.center { text-align: center; }
.bg-dark { background: var(--p9); }
.bg-slate { background: var(--p7); }

/* Buttons */
.btn {
  display: inline-block;
  background: var(--magenta);
  color: var(--p9);
  font: 600 17px/1.6 var(--font-body);
  text-transform: capitalize;
  text-decoration: none;
  padding: 18px 32px;
  border: 0;
  transition: filter .2s, transform .2s;
}
.btn:hover, .btn:focus-visible { filter: brightness(1.1); transform: translateY(-1px); }
.btn-rounded { border-radius: 6px; }
.btn-header {
  background: var(--magenta-header);
  color: var(--p3);
  border-radius: 6px;
  padding: 12px 32px;
}

/* Header (transparent, overlays the hero) */
.site-header { position: absolute; inset: 0 0 auto 0; z-index: 10; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 100px; }
.brand img { width: 100px; height: 100px; }

/* Hero */
.hero {
  background: #cbced2; /* palette4 @ 80% over palette9, as rendered on the live site */
  min-height: 541px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px var(--gutter) 40px;
}
.hero h1 { font-size: 48px; line-height: 64px; color: var(--p9); text-transform: capitalize; margin-bottom: 26px; }
.hero .tagline { font: 32px/1.6 var(--font-body); color: var(--p8); margin: 0; }

/* Intro */
.intro { padding: var(--section-pad) 0; }
.narrow-pad { padding: 0 calc(var(--gutter) + 20px); }
.h3 { font-size: 30px; line-height: 1.5; text-transform: capitalize; }
.intro h2 { margin-bottom: 20px; }
.intro-copy {
  font: 400 22px/1.5 var(--font-intro);
  letter-spacing: 1px;
  text-transform: capitalize;
  color: var(--p3);
  margin: 0;
}

/* Founding donor */
.donor {
  background: var(--p9) url("/assets/img/donor-bg.webp") center / cover no-repeat;
  padding: var(--section-pad) 0;
}
.donor-card {
  background: var(--p9);
  max-width: 745px;
  padding: 64px 80px;
}
.donor h2, .vision h2 { font-size: 32px; line-height: 1.2; text-transform: capitalize; margin-bottom: 17px; }
.lead { color: var(--p3); }
.donor ul { margin: 0 0 1.2em; padding-left: 34px; }
.gap-above { margin-top: 2.4em; }
.donor-card .btn { margin-top: 12px; }

/* Vision */
.vision { padding: var(--section-pad) 0; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.vision-media img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.vision-copy .btn { margin-top: 8px; }

/* Roadmap timeline */
.timeline { padding: var(--section-pad) 0; }
.tl-row { display: grid; grid-template-columns: 559fr 683fr; }
.tl-date {
  font-size: 32px;
  line-height: 48px;
  text-transform: uppercase;
  text-align: right;
  padding-right: 27px;
  margin: 0;
}
.tl-body {
  position: relative;
  border-left: 3px solid var(--p3);
  padding: 0 0 160px 48px;
}
.tl-row:last-child .tl-body { padding-bottom: 0; }
.tl-body::before { /* timeline dot */
  content: "";
  position: absolute;
  left: -10px;
  top: 17px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--p3);
  box-shadow: 0 0 0 4px var(--p7);
}
.tl-body h3 { font-size: 30px; line-height: 45px; text-transform: capitalize; margin-bottom: 15px; }
.tl-frame { border: 1px solid var(--p3); background: var(--p9); padding: 48px; margin: 40px 0 60px; }
.tl-frame img { width: 100%; aspect-ratio: 1; object-fit: cover; border: 1px solid var(--p3); }
.tl-body p { color: var(--p3); }

/* Founders */
.founders-hero {
  position: relative;
  padding: var(--section-pad) var(--gutter);
  text-align: center;
  isolation: isolate;
}
.founders-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("/assets/img/founders-bg.webp") 50% 58% / cover no-repeat;
  opacity: .5;
  z-index: -1;
}
.founders-hero-inner { max-width: 700px; margin: 0 auto; }
.display { font-size: 52px; line-height: 78px; text-transform: capitalize; margin: 0 0 12px; }
.founders-hero hr { width: 250px; border-top: 2px solid var(--p6); margin: 0 auto 13px; }
.founders-hero p { color: var(--p3); margin: 0; }

.founders { padding: 0 0 56px; }
.founders-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.person { text-align: center; }
.person img { width: 100%; aspect-ratio: 1; object-fit: cover; margin-bottom: 22px; }
.person h3 { font-size: 22px; line-height: 1.5; margin-bottom: 8px; }
.person .role {
  font: 500 17px/1.6 var(--font-label);
  text-transform: uppercase;
  color: var(--p6);
  margin-bottom: 20px;
}

/* Footer */
.site-footer { background: var(--p3); color: var(--p9); }
.footer-top { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; padding-top: 30px; padding-bottom: 46px; }
.footer-title { font-size: 48px; line-height: 72px; text-transform: uppercase; color: var(--p9); margin-bottom: 30px; }
.footer-tag { margin-bottom: 30px; }
.footer-legal { color: var(--p7); margin: 0; }
.footer-seal img { width: 108px; height: 108px; }
.footer-bottom { border-top: 1px solid var(--p4); }
.footer-bottom-inner { display: flex; align-items: center; justify-content: space-between; min-height: 80px; }
.footer-bottom p { margin: 0; }
.socials { display: flex; align-items: center; gap: 6px; }
.socials-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.socials a { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 3px; color: var(--p9); transition: opacity .2s; }
.socials a:hover { opacity: .7; }
.socials svg { width: 16px; height: 16px; fill: currentColor; }

/* Tablet */
@media (max-width: 1024px) {
  .two-col { gap: 40px; }
  .tl-row { grid-template-columns: 1fr 1.6fr; }
  .tl-date { font-size: 26px; line-height: 40px; }
  .footer-top { grid-template-columns: 1fr 1fr; text-align: center; }
  .footer-top > div:nth-child(2) { display: none; }
  .footer-bottom-inner { flex-direction: column; justify-content: center; gap: 8px; padding: 16px var(--gutter); }
}

/* Mobile */
@media (max-width: 767px) {
  :root { --section-pad: 56px; --gutter: 16px; }
  .header-inner { height: 80px; }
  .brand img { width: 72px; height: 72px; }
  .btn-header { padding: 10px 18px; font-size: 15px; }
  .hero { min-height: 420px; }
  .hero h1 { font-size: 34px; line-height: 1.3; }
  .hero .tagline { font-size: 22px; }
  .narrow-pad { padding: 0 var(--gutter); }
  .h3 { font-size: 24px; }
  .intro-copy { font-size: 18px; }
  .donor-card { padding: 40px 24px; }
  .two-col { grid-template-columns: 1fr; }
  .tl-row { grid-template-columns: 1fr; position: relative; border-left: 3px solid var(--p3); }
  .tl-row::before { content: ""; position: absolute; left: -10px; top: 6px; width: 17px; height: 17px; border-radius: 50%; background: var(--p3); box-shadow: 0 0 0 4px var(--p7); }
  .tl-date { text-align: left; padding: 0 0 12px 30px; font-size: 22px; line-height: 1.4; }
  .tl-body { border-left: 0; padding: 0 0 80px 30px; }
  .tl-body::before { display: none; }
  .tl-body h3 { font-size: 24px; line-height: 1.4; }
  .tl-frame { padding: 16px; margin-bottom: 32px; }
  .display { font-size: 34px; line-height: 1.35; }
  .founders-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-title { font-size: 36px; line-height: 1.3; }
  .footer-seal img { margin: 0 auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
