/* ==========================================================================
   Qiskit Fall Fest @ MUN — stylesheet
   ========================================================================== */

:root {
  --bg: #ffffff;
  --bg-alt: #f5f6fb;
  --card-bg: #f7f7fc;
  --card-border: rgba(20, 21, 40, 0.1);
  --text: #14152b;
  --text-muted: #5a5c76;
  --primary: #6929c4;
  --primary-light: #8a3ffc;
  --accent: #0f62fe;
  --accent-2: #007d79;
  --success: #24a148;
  --max-width: 1180px;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(20, 21, 60, 0.1);
  --font-sans: "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue",
    Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

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

section {
  padding: 96px 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 56px;
}

.section-header h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin: 0 0 14px;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin: 0;
}

.alt-bg {
  background: var(--bg-alt);
}

/* ---------- Reveal-on-scroll ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-reveal].revealed {
  opacity: 1;
  transform: none;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn-primary {
  background: linear-gradient(90deg, var(--primary), var(--accent));
  color: #fff;
  box-shadow: 0 8px 28px rgba(105, 41, 196, 0.3);
}
.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--card-border);
}
.btn-secondary:hover {
  border-color: var(--primary-light);
}
.btn.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none;
}
.btn-small {
  padding: 10px 20px;
  font-size: 0.88rem;
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 18px 0;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(8px);
  transition: background 0.25s ease, padding 0.25s ease, box-shadow 0.25s ease;
}
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  padding: 12px 0;
  box-shadow: 0 4px 24px rgba(20, 21, 60, 0.08);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
}
.brand-mark {
  width: 76px;
  height: 76px;
  flex-shrink: 0;
  border-radius: 8px;
  object-fit: cover;
}
.brand-text small {
  display: block;
  font-weight: 500;
  color: var(--text-muted);
  font-size: 0.72rem;
}
.nav-menu {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-menu a {
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  padding: 4px 0;
  transition: color 0.2s ease;
}
.nav-menu a:hover,
.nav-menu a.active {
  color: var(--text);
}
.nav-menu a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-light), var(--accent));
  border-radius: 2px;
}
.nav-cta {
  display: flex;
  align-items: center;
  gap: 14px;
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.6rem;
  cursor: pointer;
}
.mun-logo {
  height: 68px;
  width: auto;
  flex-shrink: 0;
  background: #fff;
  padding: 4px 8px;
  border-radius: 8px;
  border: 1px solid var(--card-border);
}

@media (max-width: 980px) {
  .nav-menu {
    position: fixed;
    top: 112px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    padding: 24px;
    gap: 20px;
    transform: translateY(-130%);
    opacity: 0;
    transition: transform 0.25s ease, opacity 0.25s ease;
    border-bottom: 1px solid var(--card-border);
  }
  .nav-menu.open {
    transform: translateY(0);
    opacity: 1;
  }
  .nav-toggle {
    display: block;
  }
  .nav-cta .btn-secondary {
    display: none;
  }
}

@media (max-width: 480px) {
  .mun-logo {
    display: none;
  }
}

/* ---------- Photo carousel (sits directly under the fixed header) ---------- */
.carousel {
  position: relative;
  padding-top: 140px; /* clears the fixed site-header (now taller with larger logos) */
  background: var(--bg);
}
.carousel-track-wrap {
  position: relative;
  width: 100%;
  height: min(56vw, 520px);
  min-height: 260px;
  overflow: hidden;
}
.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.9s ease;
}
.carousel-slide.active {
  opacity: 1;
  z-index: 1;
}
.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.carousel-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 48px 24px 22px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.65), transparent);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
}
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(10, 11, 24, 0.45);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.carousel-btn:hover {
  background: rgba(10, 11, 24, 0.75);
  border-color: var(--accent);
}
.carousel-btn svg {
  width: 22px;
  height: 22px;
}
.carousel-btn.prev {
  left: 20px;
}
.carousel-btn.next {
  right: 20px;
}
.carousel-dots {
  position: absolute;
  z-index: 2;
  bottom: 18px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 10px;
}
.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.7);
  background: transparent;
  padding: 0;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.carousel-dot.active {
  background: #fff;
  transform: scale(1.15);
}

@media (max-width: 600px) {
  .carousel-btn {
    width: 36px;
    height: 36px;
  }
  .carousel-caption {
    font-size: 0.85rem;
    padding: 36px 16px 16px;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 110px 0 120px;
  overflow: hidden;
  background: radial-gradient(ellipse at 20% -10%, rgba(105, 41, 196, 0.14), transparent 55%),
    radial-gradient(ellipse at 85% 10%, rgba(15, 98, 254, 0.12), transparent 50%),
    var(--bg);
}
#circuit-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.9;
}
.hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 28px;
}
.hero-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(66, 190, 101, 0.2);
}
.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  line-height: 1.08;
  margin: 0 0 20px;
  letter-spacing: -0.02em;
}
.hero h1 .gradient-text {
  background: linear-gradient(90deg, var(--primary-light), var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero .lede {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto 36px;
}
.hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}
.hero-meta {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  color: var(--text-muted);
  font-size: 0.95rem;
}
.hero-meta div {
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-meta svg {
  width: 18px;
  height: 18px;
  color: var(--accent);
}

/* ---------- Discord community ---------- */
[data-social][hidden],
[data-social-group][hidden] {
  display: none;
}
.btn-discord {
  background: #eee3ff;
  color: #35204f;
  box-shadow: 0 8px 24px rgba(105, 41, 196, 0.14);
}
.btn-discord:hover {
  background: #e2d1fa;
}
.btn-discord svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}
.btn-discord:focus-visible,
.btn-discord-invite:focus-visible {
  outline: 3px solid #6929c4;
  outline-offset: 4px;
}
.btn-discord:focus-visible {
  outline-color: #6929c4;
}
.discord-banner {
  padding: 48px 0;
  color: #35204f;
  background: linear-gradient(120deg, #cfbbf9, #ffd8f3);
}
.discord-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.discord-banner-copy {
  max-width: 720px;
}
.discord-banner-copy .discord-eyebrow {
  margin: 0 0 8px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.discord-banner h2 {
  margin: 0 0 12px;
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.2;
}
.discord-banner-copy p {
  margin: 0;
}
.btn-discord-invite {
  flex-shrink: 0;
  background: #fff;
  color: #53288c;
}
@media (max-width: 700px) {
  .discord-banner-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }
  .btn-discord-invite {
    width: 100%;
  }
}
/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.about-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 32px;
}
.about-card h3 {
  margin-top: 0;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.about-card h3 svg {
  width: 22px;
  height: 22px;
  color: var(--primary-light);
}
.about-card p {
  color: var(--text-muted);
  margin-bottom: 0;
}
.about-card a.inline-link {
  color: var(--accent);
  font-weight: 600;
  border-bottom: 1px solid rgba(15, 98, 254, 0.4);
}

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

/* ---------- Highlights (cards grid) ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.highlight-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.highlight-card:hover {
  transform: translateY(-4px);
  border-color: rgba(165, 110, 255, 0.4);
}
.highlight-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(138, 63, 252, 0.25), rgba(51, 177, 255, 0.2));
  margin-bottom: 18px;
}
.highlight-icon svg {
  width: 24px;
  height: 24px;
  color: var(--accent);
}
.highlight-card h3 {
  margin: 0 0 10px;
  font-size: 1.08rem;
}
.highlight-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

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

/* ---------- Schedule ---------- */
.schedule-days {
  display: grid;
  gap: 32px;
}
.schedule-day {
  overflow: hidden;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
}
.schedule-day-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 24px;
  background: linear-gradient(135deg, rgba(138, 63, 252, 0.18), rgba(51, 177, 255, 0.12));
  border-bottom: 1px solid var(--card-border);
}
.schedule-day-heading span {
  flex: 0 0 auto;
  padding: 5px 10px;
  color: #fff;
  background: var(--primary);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.schedule-day-heading h3 {
  margin: 0;
  font-size: 1.2rem;
}
.schedule-table-wrap {
  overflow-x: auto;
}
.schedule-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
.schedule-table th,
.schedule-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--card-border);
  vertical-align: top;
}
.schedule-table th {
  color: var(--accent);
  background: rgba(15, 98, 254, 0.05);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.schedule-table th:first-child,
.schedule-table td:first-child {
  width: 170px;
  white-space: nowrap;
  color: var(--accent);
  font-weight: 600;
}
.schedule-table th:nth-child(2),
.schedule-table td:nth-child(2) {
  width: 42%;
}
.schedule-table tbody tr:last-child td {
  border-bottom: 0;
}
.schedule-table tbody tr:hover {
  background: rgba(138, 63, 252, 0.05);
}
.schedule-note {
  text-align: center;
  color: var(--text-muted);
  margin-top: 40px;
  font-size: 0.95rem;
}

@media (max-width: 640px) {
  .schedule-day-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .schedule-table {
    min-width: 680px;
  }
}

/* ---------- People (speakers / team) ---------- */
.people-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.people-card {
  text-align: center;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 28px 18px;
}
.avatar {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.3rem;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
}
.organizer-grid {
  max-width: 900px;
  margin: 0 auto;
  grid-template-columns: repeat(3, 1fr);
}
.organizer-photo {
  width: 91.2px;
  height: 91.2px;
  object-fit: cover;
  object-position: center;
}
.people-card h4 {
  margin: 0 0 4px;
  font-size: 1rem;
}
.people-card span {
  color: var(--text-muted);
  font-size: 0.85rem;
}
.people-note {
  text-align: center;
  color: var(--text-muted);
  margin-top: 36px;
}

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

/* ---------- Speaker profiles ---------- */
.speaker-card.speaker-card--pending {
  grid-template-columns: minmax(0, 1fr);
}
.speaker-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}
.speaker-card {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  padding: 28px;
  background: var(--bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
}
.speaker-photo {
  width: 180px;
  height: 180px;
  object-fit: cover;
  object-position: center 30%;
  border-radius: 12px;
}
.speaker-details {
  min-width: 0;
}
.speaker-details h3 {
  margin: 0 0 8px;
  font-size: 1.35rem;
  line-height: 1.3;
}
.speaker-affiliation {
  margin: 0 0 16px;
  color: var(--primary);
  font-size: 0.95rem;
  font-weight: 600;
}
.speaker-bio {
  margin: 0;
  color: var(--text-muted);
}
@media (max-width: 640px) {
  .speaker-card {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    padding: 20px;
  }
  .speaker-photo {
    width: 150px;
    height: 150px;
  }
}
/* ---------- Sponsors ---------- */
.sponsor-tiers {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.sponsor-tier h3 {
  text-align: center;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin-bottom: 20px;
}
.sponsor-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.sponsor-card {
  padding: 28px;
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  background: var(--card-bg);
  text-align: center;
}
.sponsor-logo {
  height: 120px;
  padding: 20px;
  margin-bottom: 24px;
  border-radius: 12px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sponsor-logo img {
  width: 100%;
  height: 100%;
  max-width: 320px;
  object-fit: contain;
}
.sponsor-card h3 {
  font-size: 1.1rem;
  line-height: 1.4;
  margin: 0 0 12px;
}
.sponsor-card p {
  margin: 0;
  color: var(--text-muted);
}
@media (max-width: 900px) {
  .sponsor-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .sponsor-row {
    grid-template-columns: 1fr;
  }
  .sponsor-card {
    padding: 20px;
  }
}
.sponsor-cta {
  text-align: center;
  margin-top: 44px;
  color: var(--text-muted);
}

/* ---------- FAQ ---------- */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.faq-item {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  overflow: hidden;
}
.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1rem;
  font-weight: 600;
  padding: 20px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  gap: 16px;
}
.faq-icon {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(20, 21, 40, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: transform 0.25s ease;
}
.faq-item.open .faq-icon {
  transform: rotate(45deg);
  color: var(--accent);
}
.faq-answer {
  padding: 0 22px 20px;
  color: var(--text-muted);
}
.faq-answer p {
  margin: 0;
}

/* ---------- Location ---------- */
.location-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.venue-indent {
  visibility: hidden;
}
.location-info h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
}
.location-info p {
  color: var(--text-muted);
}
.location-facts {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 24px 0;
}
.location-facts div {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.location-facts svg {
  width: 20px;
  height: 20px;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}
.map-frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow);
}
.map-frame iframe {
  width: 100%;
  height: 320px;
  border: 0;
  display: block;
}

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

/* ---------- CTA band ---------- */
.cta-band {
  text-align: center;
  background: linear-gradient(120deg, rgba(105, 41, 196, 0.12), rgba(15, 98, 254, 0.1));
  border-top: 1px solid var(--card-border);
  border-bottom: 1px solid var(--card-border);
}
.cta-band h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0 0 16px;
}
.cta-band p {
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 32px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-alt);
  padding: 60px 0 30px;
  border-top: 1px solid var(--card-border);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand .brand {
  margin-bottom: 12px;
}
.footer-brand p {
  color: var(--text-muted);
  max-width: 320px;
  font-size: 0.92rem;
}
.footer-col h5 {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col a {
  color: var(--text-muted);
  font-size: 0.92rem;
  transition: color 0.2s ease;
}
.footer-col a:hover {
  color: var(--text);
}
.social-row {
  display: flex;
  gap: 12px;
}
.social-row a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--card-border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.social-row a:hover {
  border-color: var(--primary-light);
  transform: translateY(-2px);
}
.social-row svg {
  width: 18px;
  height: 18px;
}
.footer-bottom {
  border-top: 1px solid var(--card-border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

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

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 90;
  box-shadow: 0 8px 24px rgba(105, 41, 196, 0.35);
}
.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}
.back-to-top svg {
  width: 20px;
  height: 20px;
}

/* ---------- Utility ---------- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
