/* ============================================================
   Davis Community Arts Foundation — shared stylesheet (v2)
   Palette: black / white / red #CC4331
   Type: Archivo (display) + Inter (body)
   Corner language: square throughout
   ============================================================ */

:root {
  --black: #000000;
  --ink: #050505;
  --surface: #101010;
  --panel: #141414;
  --panel-hover: #191919;
  --line: #232323;
  --line-soft: #1a1a1a;
  --white: #ffffff;
  --body: #e4e4e4;
  --muted: #a3a3a3;
  --red: #cc4331;
  --red-dark: #a93425;
  --max-width: 1120px;
  --font-display: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--black);
  color: var(--body);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--red);
  color: var(--white);
}

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

a {
  color: var(--white);
  text-decoration: none;
}

a:hover {
  color: var(--red);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

/* ---------- Layout ---------- */

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

section {
  padding: 96px 0;
}

.section-alt {
  background: var(--surface);
}

.section-tight {
  padding: 72px 0;
}

/* ---------- Header / nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand img {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border: 1px solid #2a2a2a;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--white);
  line-height: 1.3;
  white-space: nowrap;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 32px;
}

.main-nav a {
  font-size: 0.94rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: #d6d6d6;
  padding: 8px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.main-nav a:hover {
  color: var(--white);
  border-bottom-color: var(--red);
}

.main-nav a[aria-current="page"] {
  color: var(--white);
  border-bottom-color: var(--red);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid #2c2c2c;
  color: var(--white);
  font-size: 1.25rem;
  line-height: 1;
  padding: 9px 13px;
  cursor: pointer;
}

/* ---------- Type system ---------- */

h1,
h2,
h3 {
  font-family: var(--font-display);
  color: var(--white);
}

/* Section titles read as red small-caps eyebrows;
   the section lede below carries the display weight. */
h2.section-title {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 26px;
}

h2.section-title::before {
  content: "";
  flex: 0 0 auto;
  width: 36px;
  height: 2px;
  background: var(--red);
}

.section-intro {
  font-family: var(--font-display);
  font-size: clamp(1.28rem, 2.4vw, 1.55rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.45;
  color: var(--white);
  max-width: 840px;
}

/* ---------- Subpage heroes ---------- */

.page-hero {
  padding: 88px 0 64px;
  background: var(--black);
}

.page-hero h1 {
  font-size: clamp(2.6rem, 6vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.05;
  text-transform: uppercase;
}

.page-hero h1::after {
  content: "";
  display: block;
  width: 72px;
  height: 4px;
  background: var(--red);
  margin-top: 24px;
}

/* ---------- Home hero (cinematic photo first screen) ---------- */

.hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: 88vh;
  background: var(--black);
  text-align: center;
  padding: 104px 0 96px;
  border-bottom: 1px solid var(--line-soft);
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
}

/* Bottom-weighted dark gradient: ~85% black at the base so the
   headline, subheadline, and buttons stay fully readable. */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.52) 0%,
    rgba(0, 0, 0, 0.6) 45%,
    rgba(0, 0, 0, 0.85) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
}

/* The emblem sits on its own black tile with a hairline border and
   a soft ring — a designed medallion, never a pasted rectangle. */
.hero-logo {
  width: 204px;
  max-width: 60vw;
  margin: 0 auto;
  border: 1px solid #3a3a3a;
  box-shadow: 0 0 0 5px rgba(0, 0, 0, 0.38), 0 24px 60px rgba(0, 0, 0, 0.7);
}

.hero h1 {
  font-size: clamp(2.75rem, 7vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.04;
  text-transform: uppercase;
  max-width: 900px;
  margin: 44px auto 0;
}

.hero h1::after {
  content: "";
  display: block;
  width: 72px;
  height: 4px;
  background: var(--red);
  margin: 30px auto 0;
}

.hero .subheadline {
  max-width: 720px;
  margin: 30px auto 0;
  font-size: 1.16rem;
  line-height: 1.65;
  color: #d9d9d9;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.55);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-top: 42px;
}

/* ---------- Buttons (square-corner language) ---------- */

.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 17px 34px;
  border: 1px solid transparent;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease,
    transform 0.18s ease;
}

.btn-primary {
  background: var(--red);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--red-dark);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border-color: #545454;
  color: var(--white);
}

.btn-outline:hover {
  border-color: var(--red);
  color: var(--red);
  transform: translateY(-2px);
}

.text-link {
  font-weight: 600;
  color: var(--white);
  border-bottom: 2px solid var(--red);
  padding-bottom: 2px;
}

.text-link:hover {
  color: var(--red);
}

/* ---------- Photography bands ---------- */

.photo-band {
  line-height: 0;
  border-top: 1px solid var(--line-soft);
}

.photo-band img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  object-position: center 62%;
}

/* ---------- Photo strip (Home) ---------- */

.photo-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  background: var(--black);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  line-height: 0;
}

.photo-strip img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* ---------- Program cards ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(248px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

section .card-grid:first-child {
  margin-top: 0;
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--line);
  transition: transform 0.18s ease, border-color 0.18s ease,
    background 0.18s ease, box-shadow 0.18s ease;
}

.card-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
}

.card-body {
  padding: 26px 26px 30px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card h3,
.card h2 {
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: -0.005em;
  line-height: 1.25;
  margin-bottom: 10px;
}

.card p {
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--muted);
}

/* Card footer action — pinned to the card bottom */
.card-cta {
  margin-top: auto;
  padding-top: 20px;
}

.card-cta .text-link {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Image-less cards: bigger type, red rule, deeper padding —
   deliberate editorial treatment, not a missing photo. */
.card--text .card-body {
  padding: 36px 30px 38px;
}

.card--text h3 {
  font-size: 1.45rem;
  margin-bottom: 16px;
}

.card--text h3::before {
  content: "";
  display: block;
  width: 44px;
  height: 3px;
  background: var(--red);
  margin-bottom: 22px;
}

.card--text p {
  font-size: 1.02rem;
}

a.card:hover {
  border-color: var(--red);
  background: var(--panel-hover);
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.45);
  color: var(--body);
}

a.card:hover h3,
a.card:hover h2 {
  color: var(--red);
}

/* Home program index cards (title only, link through) */
.card--link .card-body {
  padding: 24px 26px;
  justify-content: center;
}

.card--link h3 {
  margin-bottom: 0;
}

/* ---------- Spotlight ---------- */

.spotlight {
  background: var(--black);
}

/* ---------- Pathway cards (Get Involved) ---------- */

.pathway-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.card--pathway .card-body {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 30px 30px 32px;
}

.card--pathway h3,
.card--pathway h2 {
  font-size: 1.45rem;
  margin-bottom: 0;
}

/* Chevron drawn with borders — no characters, no extra copy. */
.pathway-arrow {
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  margin-right: 5px;
  border-top: 3px solid var(--red);
  border-right: 3px solid var(--red);
  transform: rotate(45deg);
  transition: transform 0.18s ease;
}

a.card--pathway:hover .pathway-arrow {
  transform: rotate(45deg) translate(3px, -3px);
}

/* ---------- Split (Get Involved) ---------- */

.split {
  display: flex;
  gap: 48px;
  align-items: stretch;
}

.split-text {
  flex: 1 1 55%;
  min-width: 0;
}

.split-img {
  flex: 0 1 40%;
  width: 40%;
  max-width: 440px;
  height: auto;
  min-height: 340px;
  object-fit: cover;
  border: 1px solid var(--line);
}

/* ---------- Partner strip ---------- */

.partner-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  margin-top: 40px;
}

.partner-logos img {
  height: 108px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  background: var(--black);
  border: 1px solid var(--line);
  padding: 16px 26px;
}

/* ---------- Leadership / people ---------- */

.people {
  list-style: none;
}

.people li {
  font-size: 1.12rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  color: var(--white);
}

.people li:first-child {
  padding-top: 6px;
}

.people li:last-child {
  border-bottom: none;
}

/* ---------- Contact blocks ---------- */

/* Program chip (Contact) — empty and hidden by default; a small
   script fills it with a program name only when a visitor arrives
   from that program card's Express Interest link. */
.program-chip {
  display: inline-block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--red);
  padding: 14px 22px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--white);
}

.program-chip[hidden] {
  display: none;
}

.contact-block {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--red);
  padding: 32px;
  margin-top: 30px;
  max-width: 640px;
}

.contact-block p + p {
  margin-top: 12px;
}

.contact-email {
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  word-break: break-all;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line-soft);
  background: var(--ink);
  padding: 60px 0 44px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 44px;
  align-items: start;
}

.footer-brand img {
  width: 54px;
  height: 54px;
  object-fit: cover;
  border: 1px solid #2a2a2a;
  margin-bottom: 20px;
}

.site-footer p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.footer-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.footer-nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: #d6d6d6;
}

.footer-nav a:hover {
  color: var(--red);
}

.footer-contact a {
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--white);
  word-break: break-all;
}

.footer-contact a:hover {
  color: var(--red);
}

/* ---------- Responsive ---------- */

@media (max-width: 720px) {
  body {
    font-size: 16px;
  }

  section {
    padding: 64px 0;
  }

  .section-tight {
    padding: 52px 0;
  }

  .hero {
    padding: 72px 0 64px;
    min-height: 82vh;
  }

  .hero-logo {
    width: 168px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    text-align: center;
  }

  .page-hero {
    padding: 60px 0 44px;
  }

  .photo-band img {
    height: 220px;
  }

  .photo-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .pathway-grid {
    grid-template-columns: 1fr;
  }

  .nav-toggle {
    display: block;
  }

  .main-nav {
    display: none;
    width: 100%;
  }

  .main-nav.open {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 4px;
    padding: 12px 0 8px;
  }

  .main-nav a {
    display: block;
    padding: 10px 2px;
  }

  .nav-inner {
    flex-wrap: wrap;
  }

  .partner-logos {
    flex-direction: column;
    align-items: flex-start;
  }

  .split {
    flex-direction: column;
    gap: 30px;
  }

  .split-img {
    width: 100%;
    max-width: 100%;
    height: 260px;
    min-height: 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 560px) {
  .brand-name {
    display: none;
  }
}

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

  * {
    transition: none !important;
  }
}
