/* ============================================
   Canada28 Data Platform — Shared Styles
   ============================================ */

/* --- Custom Properties --- */
:root {
  --brand-blue: #2563eb;
  --brand-blue-dark: #1d4ed8;
  --brand-blue-light: #3b82f6;
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --bg-light: #f8fafc;
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 12px 40px rgba(37, 99, 235, 0.12);
  --radius: 12px;
}

/* --- Smooth Scroll --- */
html {
  scroll-behavior: smooth;
}

/* --- Body Base --- */
body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--text-primary);
  background-color: #ffffff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- Navbar Glass Effect --- */
.navbar-glass {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
}

.navbar-scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}

/* --- Hero Gradient --- */
.hero-gradient {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 40%, #bfdbfe 100%);
}

.hero-gradient-about {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 40%, #bae6fd 100%);
}

.hero-gradient-contact {
  background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 40%, #e9d5ff 100%);
}

/* --- Gradient Text --- */
.gradient-text {
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Card Styles --- */
.card-hover {
  transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.card-hover:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

/* --- Feature Icon Circle --- */
.icon-circle {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.icon-circle-blue {
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
  color: #2563eb;
}

.icon-circle-indigo {
  background: linear-gradient(135deg, #e0e7ff, #c7d2fe);
  color: #4f46e5;
}

.icon-circle-cyan {
  background: linear-gradient(135deg, #cffafe, #a5f3fc);
  color: #0891b2;
}

.icon-circle-emerald {
  background: linear-gradient(135deg, #d1fae5, #a7f3d0);
  color: #059669;
}

/* --- Stats Counter --- */
.counter-value {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

/* --- Step Number Badge --- */
.step-badge {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #4f46e5);
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

/* --- Timeline --- */
.timeline-line {
  position: absolute;
  left: 23px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, #2563eb, #93c5fd, #e0e7ff);
}

.timeline-dot {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #2563eb;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 0 6px rgba(37, 99, 235, 0.15);
}

/* --- Team Card --- */
.team-card {
  transition: all 0.35s ease;
}

.team-card:hover {
  transform: translateY(-8px);
}

.team-card:hover .team-social {
  opacity: 1;
  transform: translateY(0);
}

.team-social {
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.3s ease;
}

/* --- Contact Form --- */
.form-input {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  font-size: 0.95rem;
  transition: all 0.25s ease;
  background: #fff;
  outline: none;
}

.form-input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.08);
}

.form-label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: #334155;
  margin-bottom: 0.4rem;
}

/* --- Buttons --- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 2rem;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  font-weight: 600;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  font-size: 0.95rem;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 2rem;
  background: transparent;
  color: #2563eb;
  font-weight: 600;
  border-radius: 10px;
  border: 2px solid #2563eb;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  font-size: 0.95rem;
}

.btn-outline:hover {
  background: #2563eb;
  color: #fff;
}

/* --- Section Headings --- */
.section-badge {
  display: inline-block;
  padding: 0.35rem 1rem;
  background: #dbeafe;
  color: #2563eb;
  font-weight: 600;
  font-size: 0.8rem;
  border-radius: 9999px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.section-title {
  font-size: 2.4rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
  margin-top: 0.75rem;
}

.section-subtitle {
  font-size: 1.05rem;
  color: #64748b;
  max-width: 600px;
  margin: 0.75rem auto 0;
  line-height: 1.7;
}

/* --- Pulse Animation --- */
@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.4); }
  70% { box-shadow: 0 0 0 16px rgba(37, 99, 235, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0); }
}

.pulse-ring {
  animation: pulse-ring 2.2s infinite;
}

/* --- Fade In Up Animation --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-in {
  animation: fadeInUp 0.6s ease forwards;
}

/* --- Map Placeholder --- */
.map-placeholder {
  background: linear-gradient(135deg, #eff6ff, #dbeafe, #bfdbfe);
  min-height: 320px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.map-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%232563eb' fill-opacity='0.06'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* --- Contact Info Card --- */
.contact-info-card {
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
}

.contact-info-card:hover {
  border-left-color: #2563eb;
  background: #f8fafc;
}

/* --- Footer --- */
.footer-gradient {
  background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
}

/* --- Mobile Nav --- */
.mobile-menu {
  transition: max-height 0.35s ease, opacity 0.35s ease;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
}

.mobile-menu.open {
  max-height: 400px;
  opacity: 1;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .section-title {
    font-size: 1.8rem;
  }
  .section-subtitle {
    font-size: 0.95rem;
  }
}
