:root {
  --primary: #DA2231;
  --secondary: #5949A7;
  --grey-dark: #332828;
  --grey: #C5C5C5;
  --grey-light: #F2F2F2;
  --peach: #D1C9EB;
  --white: #ffffff;
}

* { box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  margin: 0;
  padding: 0;
  background: var(--grey-light);
  color: var(--grey-dark);
}

/* ── Header (floating pill, overlapping the hero like calgary-convention.com) ── */
.site-header {
  position: fixed;
  top: 16px;
  left: 16px;
  right: 16px;
  z-index: 50;
  background: rgba(3, 3, 3, 0.45);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  border: 1.5px solid rgb(255, 255, 255);
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.35s ease;
}
.site-header.is-scrolled {
  background: rgba(51, 40, 40, 0.82);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}
.site-header.is-hidden {
  transform: translateY(-130%);
}
.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  margin-left: 0;
  height: 68px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.logo-link { display: inline-flex; line-height: 0; }
.logo { height: 32px; width: auto; }
.header-title {
  color: var(--white);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding-left: 20px;
  border-left: 1px solid rgba(255, 255, 255, 0.25);
}

/* ── Hero ───────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  background:
    linear-gradient(180deg, rgba(51, 40, 40, 0.65) 0%, rgba(51, 40, 40, 0.85) 100%),
    url("images/hero-bg.jpg") center / cover no-repeat;
  padding: 90px 20px;
  text-align: center;
}
.hero-content {
  max-width: 700px;
  margin: 0 auto;
}
.hero h1 {
  color: var(--white);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 14px;
}
.hero-tagline {
  color: rgba(255, 255, 255, 0.9);
  font-size: 16px;
  line-height: 1.5;
  margin: 0;
}

/* ── Main content ───────────────────────────────────────────────────── */
.page-content {
  max-width: 820px;
  margin: 0 auto;
  padding: 56px 20px 80px;
}

.instructions { margin-bottom: 40px; }
.instructions h2 {
  color: var(--grey-dark);
  font-size: 22px;
  margin: 0 0 24px;
}
.instructions h3 {
  color: var(--grey-dark);
  font-size: 17px;
  margin: 32px 0 16px;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.steps li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.step-num {
  flex: none;
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
  background: var(--secondary);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.steps li strong {
  display: block;
  font-size: 15px;
  color: var(--grey-dark);
  margin-bottom: 2px;
}
.steps li p {
  margin: 0;
  font-size: 14px;
  color: #5a5252;
  line-height: 1.5;
}

.filetype-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}
.filetype-card {
  background: var(--white);
  border: 1px solid var(--grey);
  border-radius: 8px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.filetype-card strong {
  font-size: 13px;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.filetype-card span {
  font-size: 13px;
  color: #5a5252;
  line-height: 1.4;
}

.note {
  font-size: 13px;
  color: #6b6262;
  margin-top: 20px;
  line-height: 1.5;
}

/* ── Upload panel (styled after the site's numbered resource sections) ── */
.upload-panel {
  background: var(--peach);
  border-radius: 16px;
  padding: 48px 40px;
}
.section-number {
  display: block;
  color: var(--primary);
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 8px;
}
.upload-panel h2 {
  color: var(--grey-dark);
  margin: 0 0 8px;
  font-size: 30px;
  font-weight: 700;
}
.accent {
  color: var(--primary);
  text-decoration: underline;
  text-decoration-color: var(--primary);
  /* text-underline-offset: 6px; */
}
.subtitle { color: #5a5252; font-size: 14px; margin-bottom: 24px; }

.drop-zone {
  border: 2px dashed var(--grey-dark);
  border-radius: 8px;
  padding: 40px;
  text-align: center;
  background: var(--white);
  cursor: pointer;
  margin-bottom: 16px;
  transition: border-color 0.2s, background 0.2s;
}
.drop-zone.dragover { border-color: var(--secondary); background: #edeafc; }
.drop-zone.disabled { opacity: 0.5; cursor: not-allowed; }
input[type="file"] { display: none; }

button {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
  padding: 11px 26px;
  border-radius: 5px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s, color 0.2s;
}
/* button:hover:not(:disabled) { background: var(--primary); color: var(--white); } */
a.button:hover:not(:disabled) { color: var(--secondary); }

button:disabled { border-color: var(--grey); color: var(--grey); cursor: default; }
.btn-arrow { transition: transform 0.2s; }
button:hover:not(:disabled) .btn-arrow { transform: translateX(3px); }

#file-list   { margin: 12px 0; font-size: 14px; color: #444; }
#expiry-info { font-size: 13px; color: #888; margin-bottom: 12px; }
#status p    { margin: 6px 0; font-size: 14px; }
.success { color: #1a7a3c; }
.error   { color: var(--primary); }
.warning { color: #b36200; }
.progress{ color: var(--secondary); }

#init-error {
  background: #fff3cd;
  border: 1px solid #ffc107;
  border-radius: 6px;
  padding: 16px;
  font-size: 14px;
  color: #7d5300;
  margin-bottom: 20px;
}
.hidden { display: none; }

/* ── Footer ─────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--peach);
  padding: 24px;
}
.footer-frame {
  border: 1.5px solid var(--primary);
  border-radius: 5px;
  padding: 40px 32px 32px;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  margin-left: 0;
}
.footer-logo { height: 44px; width: auto; display: block; margin-bottom: 32px; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}
.footer-pill {
  display: flex;
  align-items: center;
  flex: none;
  padding: 2px 15px;
  font-size: 13px;
  color: var(--grey-dark);
  text-decoration: none;
  white-space: nowrap;
  background: transparent;
  border: 1.5px solid var(--grey-dark);
  border-radius: 5px;
  margin-left: -1px;
  transition: background 0.2s, color 0.2s;
}
.footer-bottom > *:first-child { margin-left: 0; }
/* a.footer-pill:hover { background: var(--grey-dark); color: var(--white); position: relative; z-index: 1; } */
a.footer-pill:hover { color: var(--secondary); }

.footer-socials { gap: 14px; }
.footer-socials a { display: inline-flex; color: var(--grey-dark); }
.footer-socials a:hover { color: var(--secondary); }
.footer-socials svg { width: 18px; height: 18px; }

@media (max-width: 560px) {
  .header-title { display: none; }
  .upload-panel { padding: 32px 24px; }
  .hero { padding: 116px 16px 56px; }
  .footer-frame { padding: 32px 20px 24px; }
  .footer-logo { height: 36px; }

  .footer-bottom {
    flex-direction: column;
    width: 100%;
  }
  .footer-pill {
    width: 100%;
    justify-content: center;
    margin-left: 0;
    margin-top: -1px;
  }
  .footer-bottom > *:first-child { margin-top: 0; }
}
