/* ===================================================
   Connect Cincy — Design System
   =================================================== */

:root {
  --charcoal: #252424;
  --charcoal-soft: #322f2e;
  --charcoal-line: rgba(255, 255, 255, 0.1);
  --red: #ff1000;
  --red-dark: #d40d00;
  --white: #ffffff;
  --off-white: #f7f6f4;
  --gray-100: #ece9e6;
  --gray-400: #9a9793;
  --gray-600: #6b6864;
  --ink: #1c1b1a;

  --font-display: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  --shadow-card: 0 12px 32px rgba(37, 36, 36, 0.08);
  --shadow-card-hover: 0 20px 44px rgba(37, 36, 36, 0.14);

  --max-width: 1180px;
}

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

html { scroll-behavior: smooth; }

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

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

a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  margin: 0 0 0.5em;
  line-height: 1.15;
  color: var(--charcoal);
}

p { margin: 0 0 1em; }

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

section { padding: 96px 0; }

@media (max-width: 640px) {
  section { padding: 64px 0; }
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(1.9rem, 3.6vw, 2.75rem);
  font-weight: 700;
}

.section-sub {
  color: var(--gray-600);
  font-size: 1.05rem;
  max-width: 620px;
  margin-bottom: 48px;
}

.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.3px;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

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

.btn-outline-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.4);
}
.btn-outline-light:hover { border-color: var(--white); background: rgba(255, 255, 255, 0.08); transform: translateY(-2px); }

.btn-outline-dark {
  background: transparent;
  color: var(--charcoal);
  border-color: rgba(37, 36, 36, 0.25);
}
.btn-outline-dark:hover { border-color: var(--charcoal); background: rgba(37, 36, 36, 0.06); transform: translateY(-2px); }

.btn-block { width: 100%; }

/* ---------- Header / Nav ---------- */
header.site-header {
  background: var(--charcoal);
  position: sticky;
  top: 0;
  z-index: 500;
  border-bottom: 1px solid var(--charcoal-line);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 14px 24px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}

.nav-logo { justify-self: start; }
.nav-logo img { height: 52px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  display: inline-block;
  padding: 10px 16px;
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.3px;
  border-radius: var(--radius-pill);
  transition: color 0.2s, background 0.2s;
}

.nav-links a:hover { color: var(--white); background: rgba(255, 255, 255, 0.06); }
.nav-links a.active { color: var(--white); background: var(--red); }

.nav-cta {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 14px;
}

.nav-cta .btn { padding: 9px 20px; font-size: 0.82rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
}

@media (max-width: 860px) {
  .nav-inner { grid-template-columns: auto 1fr auto; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--charcoal);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 16px 16px;
    border-bottom: 1px solid var(--charcoal-line);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 16px; }
  .nav-toggle { display: flex; }
  .nav-cta .btn-primary { display: none; }
}

/* ---------- Page banner (interior pages) ---------- */
.page-banner {
  position: relative;
  background: var(--charcoal);
  color: var(--white);
  padding: 72px 0 56px;
  text-align: center;
  overflow: hidden;
}
.page-banner .eyebrow { color: var(--red); }
.page-banner h1 { color: var(--white); margin-bottom: 12px; }
.page-banner p { color: rgba(255, 255, 255, 0.65); max-width: 560px; margin: 0 auto; }
.page-banner .container { position: relative; z-index: 1; }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative;
  background: var(--charcoal);
  color: var(--white);
  padding: 130px 0 110px;
  overflow: hidden;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

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

.hero h1 {
  color: var(--white);
  font-size: clamp(2.4rem, 6vw, 3.75rem);
  font-weight: 800;
  margin-bottom: 20px;
}

.hero h1 span { color: var(--red); }

.hero p.lead {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.78);
  max-width: 520px;
  margin-bottom: 40px;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- Cards ---------- */
.card {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); }

/* ---------- Next Event (home) ---------- */
#next-event { background: var(--off-white); }

.event-feature {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.event-date-block {
  background: var(--charcoal);
  color: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
  text-align: center;
  font-family: var(--font-display);
}
.event-date-block .month { font-size: 1rem; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; opacity: 0.85; }
.event-date-block .day { font-size: 4rem; font-weight: 800; line-height: 1; margin: 6px 0; color: var(--white); }
.event-date-block .year { font-size: 0.95rem; opacity: 0.7; }

.event-details { padding: 40px 44px; }
.event-details h3 { font-size: 1.6rem; margin-bottom: 12px; }
.event-meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--gray-600);
  font-size: 0.95rem;
  font-family: var(--font-display);
  font-weight: 500;
}
.event-meta span { display: inline-flex; align-items: center; gap: 8px; }
.event-meta svg,
.event-card-body .event-meta svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--red); }

@media (max-width: 720px) {
  .event-feature { grid-template-columns: 1fr; }
  .event-date-block { flex-direction: row; justify-content: center; gap: 10px; padding: 20px; }
  .event-date-block .day { font-size: 2.2rem; margin: 0; }
}

/* ---------- Sponsorship steps ---------- */
#sponsorship { background: var(--charcoal); color: var(--white); }
#sponsorship .section-title { color: var(--white); }
#sponsorship .section-sub { color: rgba(255,255,255,0.65); }
#sponsorship .eyebrow { color: var(--red); }

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.step-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 32px 28px;
}

.step-number {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.step-card h3 { color: var(--white); font-size: 1.15rem; }
.step-card p { color: rgba(255, 255, 255, 0.62); font-size: 0.94rem; margin: 0; }

@media (max-width: 860px) {
  .steps-grid { grid-template-columns: 1fr; }
}

/* ---------- Sponsor logos ---------- */
.sponsor-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.sponsor-tile {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 20px;
  min-height: 120px;
}

.sponsor-tile img { max-height: 56px; width: auto; }

@media (max-width: 860px) {
  .sponsor-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Events page ---------- */
#events-list { background: var(--off-white); }

.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}

.event-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
}

.event-card-top {
  background: var(--charcoal);
  color: var(--white);
  padding: 24px 28px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.event-card-date {
  background: var(--red);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  text-align: center;
  font-family: var(--font-display);
  line-height: 1.1;
  flex-shrink: 0;
}
.event-card-date .m { font-size: 0.65rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; }
.event-card-date .d { font-size: 1.5rem; font-weight: 800; }

.event-card-top h3 { color: var(--white); margin: 0; font-size: 1.15rem; }

.event-card-body { padding: 28px; flex: 1; display: flex; flex-direction: column; }
.event-card-body .event-meta { margin-bottom: 16px; }
.event-card-body p.desc { color: var(--gray-600); flex: 1; }

.event-card-placeholder {
  background: var(--white);
  border: 2px dashed var(--gray-100);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 28px;
  color: var(--gray-600);
}
.event-card-placeholder h3 { color: var(--charcoal); font-size: 1.1rem; }

/* ---------- Sponsor page steps (expanded) ---------- */
.steps-grid-light {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.steps-grid-light .step-card {
  background: var(--off-white);
  border: 1px solid var(--gray-100);
}
.steps-grid-light .step-card h3 { color: var(--charcoal); }
.steps-grid-light .step-card p { color: var(--gray-600); }

@media (max-width: 860px) {
  .steps-grid-light { grid-template-columns: 1fr; }
}

/* ---------- Forms ---------- */
.form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 44px;
  max-width: 720px;
  margin: 0 auto;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-field { margin-bottom: 20px; display: flex; flex-direction: column; gap: 8px; }
.form-field.full { grid-column: 1 / -1; }

.form-field label {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--charcoal);
}

.form-field input,
.form-field select,
.form-field textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 13px 16px;
  border: 1.5px solid var(--gray-100);
  border-radius: var(--radius-sm);
  background: var(--off-white);
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--red);
  background: var(--white);
}

.form-field textarea { resize: vertical; min-height: 110px; }

.form-status {
  margin-top: 16px;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 500;
  display: none;
}
.form-status.success { color: #1a8a4a; display: block; }
.form-status.error { color: var(--red); display: block; }

@media (max-width: 640px) {
  .form-grid { grid-template-columns: 1fr; }
  .form-card { padding: 28px 22px; }
}

/* ---------- Gallery ---------- */
#gallery-grid { background: var(--white); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 160px;
  gap: 16px;
  grid-template-areas:
    "a a b b c c"
    "a a b b d d"
    "e e f f f f";
}

.gallery-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  position: relative;
}

.gallery-item.item-a { grid-area: a; }
.gallery-item.item-b { grid-area: b; }
.gallery-item.item-c { grid-area: c; }
.gallery-item.item-d { grid-area: d; }
.gallery-item.item-e { grid-area: e; }
.gallery-item.item-f { grid-area: f; }

.gallery-item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery-item:hover img { transform: scale(1.05); }

@media (max-width: 720px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
    grid-template-areas: none;
  }
  .gallery-item.item-a,
  .gallery-item.item-b,
  .gallery-item.item-c,
  .gallery-item.item-d,
  .gallery-item.item-e,
  .gallery-item.item-f {
    grid-area: auto;
  }
  .gallery-item img { height: 280px; }
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(20, 19, 19, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 40px 20px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 88vh; border-radius: var(--radius-sm); }
.lightbox-close {
  position: absolute;
  top: 24px;
  right: 28px;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
}

@media (max-width: 720px) {
  .gallery-grid { columns: 2 200px; }
}

/* ---------- RSVP modal ---------- */
.rsvp-modal {
  position: fixed;
  inset: 0;
  background: rgba(20, 19, 19, 0.72);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}
.rsvp-modal.open { display: flex; }
.rsvp-modal-card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 40px;
  max-width: 480px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
}
.rsvp-modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--gray-400, #999);
  cursor: pointer;
}
.rsvp-modal-card h3 { margin-bottom: 6px; }
.rsvp-modal-card .rsvp-event-name { font-family: var(--font-display); font-weight: 600; color: var(--red); margin-bottom: 20px; }

@media (max-width: 640px) {
  .rsvp-modal-card { padding: 30px 24px; }
}

/* ---------- Contact ---------- */
#contact { background: var(--off-white); }

.contact-split {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
  align-items: center;
}

.contact-split .form-card { margin: 0; padding: 36px; max-width: none; }

@media (max-width: 860px) {
  .contact-split { grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */
footer.site-footer {
  background: var(--charcoal);
  color: rgba(255, 255, 255, 0.7);
  padding: 72px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1.2fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand img { height: 42px; margin-bottom: 16px; }
.footer-brand p {
  color: var(--white);
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  max-width: 300px;
}

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

.footer-col h4 {
  color: var(--white);
  font-size: 0.82rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: rgba(255, 255, 255, 0.6); text-decoration: none; font-size: 0.92rem; transition: color 0.2s; }
.footer-col a:hover { color: var(--white); }

.footer-form { display: flex; flex-direction: column; gap: 10px; }
.footer-form-row { display: flex; gap: 8px; }
.footer-form input {
  flex: 1;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.06);
  color: var(--white);
  font-size: 0.9rem;
  outline: none;
}
.footer-form input::placeholder { color: rgba(255,255,255,0.4); }
.footer-form input:focus { border-color: var(--red); }
.footer-form .btn { padding: 12px 22px; font-size: 0.85rem; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.4);
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
}
