/* ================================================
   Renfrew County Scanner — Social Hub
   Colours extracted from brand logo
   ================================================ */

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

:root {
  --bg:        #0a0a0a;
  --surface:   #111111;
  --border:    #1f1f1f;
  --text:      #e8e8e8;
  --muted:     #666666;
  --white:     #ffffff;
  --blue:      #1a5aff;
  --green:     #00c853;
  --yellow:    #ffcc00;
  --red:       #ff3b30;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  opacity: 0;
  animation: fadeIn 0.5s ease 0.1s forwards;
}

@keyframes fadeIn {
  to { opacity: 1; }
}

/* ── Top Stripe ──────────────────────────────────── */

.top-stripe {
  display: flex;
  height: 5px;
  width: 100%;
}

.top-stripe span {
  flex: 1;
}

.st-blue   { background: var(--blue); }
.st-green  { background: var(--green); }
.st-yellow { background: var(--yellow); }
.st-red    { background: var(--red); }

/* ── Main Layout ─────────────────────────────────── */

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px 64px;
  max-width: 720px;
  margin: 0 auto;
  width: 100%;
  text-align: center;
}

/* ── Logo ────────────────────────────────────────── */

.logo-wrap {
  margin-bottom: 8px;
}

.logo-wrap img {
  display: block;
  max-width: 480px;
  width: 100%;
  height: auto;
  margin: 0 auto;
}

/* ── Tagline ─────────────────────────────────────── */

.tagline {
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--muted);
  margin-bottom: 48px;
  letter-spacing: 0.02em;
}

/* ── Social Cards ────────────────────────────────── */

.social-grid {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.social-card {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 6px;
  padding: 22px 24px;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.social-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 8px 24px rgba(0,0,0,0.35), 0 0 0 1px var(--accent);
}

.social-card .icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  fill: var(--accent);
}

.social-card .label {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.35;
}

.social-card .label strong {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--white);
}

.social-card .label span {
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 500;
}

/* Primary card (Facebook Page) */
.social-card.primary {
  padding: 28px 26px;
  border-left-width: 5px;
}

.social-card.primary .icon {
  width: 34px;
  height: 34px;
}

.social-card.primary .label strong {
  font-size: 1.25rem;
}

.social-card.primary .label span {
  font-size: 0.9rem;
}

/* Secondary row */
.secondary-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.secondary-row .social-card {
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px 16px;
  gap: 10px;
}

.secondary-row .social-card .label {
  align-items: center;
}

.secondary-row .social-card .label strong {
  font-size: 0.92rem;
}

.secondary-row .social-card .label span {
  display: none;
}

.secondary-row .social-card .icon {
  width: 26px;
  height: 26px;
}

/* ── Email ───────────────────────────────────────── */

.email-wrap {
  margin-top: 40px;
  font-size: 0.88rem;
  color: var(--muted);
}

.email-wrap a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1px;
  transition: color 0.15s, border-color 0.15s;
}

.email-wrap a:hover {
  color: var(--white);
  border-color: var(--muted);
}

/* ── Footer ──────────────────────────────────────── */

footer {
  border-top: 1px solid var(--border);
  padding: 20px;
  text-align: center;
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ── Responsive ──────────────────────────────────── */

@media (max-width: 580px) {
  main {
    padding: 36px 18px 48px;
  }

  .logo-wrap img {
    max-width: 320px;
  }

  .tagline {
    font-size: 0.95rem;
    margin-bottom: 36px;
  }

  .secondary-row {
    grid-template-columns: 1fr;
  }

  .secondary-row .social-card {
    flex-direction: row;
    align-items: center;
    text-align: left;
    padding: 16px 18px;
    gap: 14px;
  }

  .secondary-row .social-card .label {
    align-items: flex-start;
  }

  .secondary-row .social-card .label span {
    display: inline;
    font-size: 0.8rem;
  }

  .social-card.primary {
    padding: 22px 20px;
  }

  .social-card.primary .label strong {
    font-size: 1.1rem;
  }
}
