/* MobilitySF — Shared Stylesheet */

/* ── Fonts ─────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500&family=Lato:wght@300;400;700&display=swap');

/* ── Variables ─────────────────────────────────────────── */
:root {
  --red:        #8C3030;
  --red-hover:  #7a2828;
  --orange:     #FF6600;
  --overlay:    rgba(112, 38, 38, 0.84);
  --white:      #ffffff;
  --off-white:  rgba(255,255,255,0.82);
  --text-dark:  #1a1a1a;
  --text-mid:   #444;
  --text-primary: #555;
  --text-secondary: #666;
  --text-muted: #888;
  --border-light: #ccc;
  --font-primary: 'Lato', 'Helvetica Neue', Arial, sans-serif;
  --font-accent: 'Playfair Display', Georgia, serif;
  --spacing-xs: 0.5rem;
  --spacing-sm: 0.8rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.2rem;
  --spacing-xl: 1.5rem;
  --spacing-2xl: 2rem;
  --spacing-2.5xl: 2.5rem;
  --spacing-3xl: 3rem;
  --spacing-3.5xl: 3.5rem;
  --spacing-4xl: 4rem;
  --nav-height: 48px;
}

/* ── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body { font-family: var(--font-primary); color: var(--text-dark); }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ── Utility Classes ────────────────────────────────────── */
.text-center { text-align: center; }
.text-large { font-size: 1.05rem; }
.text-dark { color: var(--text-dark); }
.text-primary { color: var(--text-primary); }
.text-muted { color: var(--text-muted); }
.spacing-lg { margin-bottom: var(--spacing-2xl); }
.font-primary { font-family: var(--font-primary); }
.line-height-relaxed { line-height: 1.6; }

/* ── Navigation ─────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  background: var(--white);
  display: flex;
  align-items: center;
  padding: 0 2rem;
  z-index: 1000;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.nav-brand {
  display: flex;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
  margin-right: auto;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
}

.nav-links a {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-right: 1.8rem;
  transition: color 0.2s;
}

.nav-links a:last-child { margin-right: 0; }

.nav-links a:hover,
.nav-links a.active { color: var(--red); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  flex-direction: column;
  gap: 5px;
  margin-left: 1rem;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-dark);
  transition: all 0.25s;
}

/* ── Page wrapper (pushes content below fixed nav) ─────── */
.page { padding-top: var(--nav-height); min-height: 100vh; position: relative; }

/* ── Blurred full-page background ──────────────────────── */
.bg-wrap {
  position: fixed;
  inset: -20px;
  background-size: cover;
  background-position: center;
  z-index: -1;
}

/* ── Hero (Home page) ───────────────────────────────────── */
.hero {
  height: calc(100vh - var(--nav-height));
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-card {
  background: var(--overlay);
  color: var(--white);
  text-align: center;
  padding: 3rem 4rem;
  max-width: 420px;
  width: 90%;
  aspect-ratio: 1.6 / 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-card .next-event-link {
  font-size: 0.9rem;
  font-weight: 400;
  text-decoration: underline;
  color: var(--white);
  letter-spacing: 0.03em;
  display: block;
  margin-bottom: 1.6rem;
}

.hero-card h1 {
  font-size: 3.2rem;
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 1.4rem;
}

.hero-card .divider {
  width: 50px;
  border: none;
  border-top: 1px solid rgba(255,255,255,0.6);
  margin: 0 auto 1.4rem;
}

.hero-card .tagline {
  font-size: 0.78rem;
  font-weight: 300;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* ── Content card (used on inner pages) ─────────────────── */
.content-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 2rem 4rem;
}

/* ── Two-column layout ──────────────────────────────────── */
.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(250px, 1fr));
  gap: 3rem;
  align-items: stretch;
  grid-auto-rows: 1fr;
  max-width: 950px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Section backgrounds (translucent panels) ───────────── */
.panel {
  background: rgba(255,255,255,0.88);
  padding: 2.5rem 2.8rem;
}

.panel-dark {
  background: rgba(30,30,30,0.75);
  color: var(--white);
  padding: 2.5rem 2.8rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 240px;
  width: 100%;
  overflow: hidden;
}

/* ── Button ─────────────────────────────────────────────── */
.btn {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.85rem 2.4rem;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  text-align: center;
}
.btn:hover { background: var(--red-hover); }
.btn-block { display: block; width: 100%; }

/* ── Next Event page ─────────────────────────────────────── */
.next-event-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 0;
  min-height: calc(100vh - var(--nav-height));
  align-items: stretch;
  position: relative;
}

.next-event-grid::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.80);
  z-index: 1;
  pointer-events: none;
}

.next-event-photo {
  overflow: hidden;
  max-height: 620px;
  position: relative;
  z-index: 2;
}

.next-event-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.next-event-details {
  padding: 2rem 2.5rem 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  position: relative;
  z-index: 2;
}

.next-event-details .tagline {
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--text-mid);
  line-height: 1.45;
  text-align: center;
}

.next-event-details .event-date {
  font-size: 2.4rem;
  font-weight: 700;
  text-align: center;
  color: var(--text-dark);
}

.next-event-details .event-time,
.next-event-details .event-location {
  text-align: center;
  font-size: 0.95rem;
  color: var(--text-mid);
  line-height: 1.5;
}

.next-event-details .event-location em {
  display: block;
  font-style: italic;
}

.next-event-details .sponsors-label {
  font-style: italic;
  font-size: 0.85rem;
  color: var(--red);
  text-align: center;
  text-decoration: underline;
}

.sponsors-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  align-items: center;
}

.sponsors-grid img {
  max-height: 38px;
  width: auto;
  margin: 0 auto;
  object-fit: contain;
}

.privacy-note {
  font-size: 0.72rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.privacy-note a {
  color: var(--red);
}

/* ── Past events preview strip (bottom of next-event page) ─ */
.preview-strip-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.past-previews {
  background: rgba(255,255,255,0.80);
  padding: 2.5rem 2rem;
}

.past-previews h2 {
  color: var(--red);
  font-family: var(--font-primary);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-align: center;
}

.past-previews img {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
}

/* ── Past Events page ────────────────────────────────────── */
.past-events-layout {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 0;
  min-height: calc(100vh - var(--nav-height));
  position: relative;
}

.past-events-layout::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.80);
  z-index: 1;
  pointer-events: none;
}

.past-left {
  padding: 3.5rem 2.5rem;
  position: relative;
  z-index: 2;
}

.past-left h1 {
  font-size: 3rem;
  font-weight: 400;
  margin-bottom: 2rem;
}

.past-left p {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--text-mid);
  margin-bottom: 1rem;
}

.past-right {
  padding: 2rem 2.5rem 3rem;
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
  position: relative;
  z-index: 2;
}

.event-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.event-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--red);
  margin: 0;
}

.event-speakers-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.speaker-card {
  text-align: center;
}

.speaker-card img {
  width: 300px;
  height: 300px;
  max-width: 100%;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 0.8rem;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.speaker-card p:first-of-type {
  font-weight: 700;
  font-size: 1.1rem;
  font-size: 0.95rem;
  margin-bottom: 0.3rem;
  color: var(--text-dark);
}

.speaker-card p:last-of-type {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.event-photos-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.8rem;
}

.event-photo img {
  width: 100%;
  max-height: 340px;
  object-fit: cover;
}

/* ── Sponsors page ───────────────────────────────────────── */
.sponsors-hero {
  height: calc(100vh - var(--nav-height));
  display: flex;
  align-items: center;
  justify-content: center;
}

.sponsors-card {
  background: rgba(240,240,240,0.88);
  padding: 3rem 4rem;
  text-align: center;
  max-width: 500px;
  width: 90%;
}

.sponsors-card h2 {
  font-size: 2rem;
  font-weight: 400;
  margin-bottom: 2rem;
  line-height: 1.3;
}

/* ── Sponsor cards grid (sponsors page) ─────────────────── */
.sponsor-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Contact page ────────────────────────────────────────── */
/* ── Contact page ────────────────────────────────────────── */
.contact-form { display: flex; flex-direction: column; gap: 1rem; }

.form-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1rem; }

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--border-light);
  padding: 0.65rem 0.9rem;
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--text-dark);
  background: var(--white);
  outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus { border-color: var(--red); }

.contact-form textarea { min-height: 120px; resize: vertical; }

.contact-form label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.2rem;
  display: block;
}

.form-field { display: flex; flex-direction: column; }

/* ── Privacy page ────────────────────────────────────────── */
.privacy-body {
  background: rgba(255,255,255,0.90);
  max-width: 780px;
  margin: 3rem auto;
  padding: 3rem 3.5rem;
}

.privacy-body h1 {
  font-size: 2.2rem;
  font-weight: 400;
  margin-bottom: 2rem;
}

.privacy-body h2 {
  font-size: 1rem;
  font-weight: 700;
  margin: 1.8rem 0 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.privacy-body p {
  font-size: 0.92rem;
  line-height: 1.75;
  color: var(--text-mid);
}

/* ── Footer ──────────────────────────────────────────────── */
footer {
  background: rgba(255,255,255,0.80);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 0.5rem;
}

footer a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

footer a:hover { color: var(--text-dark); }

.footer-links { display: flex; gap: 1.5rem; margin-left: auto; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 768px) {
  nav { padding: 0 1rem; }
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 0.5rem 1.5rem 1.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-top: 1px solid var(--border-light);
  }
  .nav-links.open { display: flex; }
  .nav-links a { margin-right: 0; padding: 0.75rem 0; border-bottom: 1px solid #f0f0f0; width: 100%; }
  .nav-links a:last-child { border-bottom: none; }
  .hero-card { padding: 2rem 1.5rem; }
  .hero-card h1 { font-size: 2.2rem; }
  .next-event-grid,
  .past-events-layout,
  .two-col { grid-template-columns: 1fr; }
  .contact-body { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .past-right { padding: 1.5rem; }
  .sponsors-card { padding: 2rem 1.5rem; }
  .preview-strip-grid { grid-template-columns: 1fr; }
  .sponsor-cards-grid { grid-template-columns: 1fr; }
}
