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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #f4f6f9;
  color: #333;
}

/* ── Hero ── */
.hero {
  background: linear-gradient(135deg, #1a73e8, #0d47a1);
  color: white;
  text-align: center;
  padding: 3rem 1rem;
}

.hero h1 {
  font-size: clamp(1.8rem, 5vw, 3rem); /* scales between mobile & desktop */
  margin-bottom: 0.5rem;
}

.hero p {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  opacity: 0.85;
}

/* ── Grid ── */
.services {
  display: grid;
  /* auto-fill columns: minimum 150px, maximum 1fr */
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1rem;
  padding: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* ── Card ── */
.card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: white;
  border-radius: 12px;
  padding: 1.5rem 1rem;
  text-decoration: none;
  color: #333;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: transform 0.2s, box-shadow 0.2s;
  text-align: center;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

.card span {
  font-size: 2.2rem;
}

.card h3 {
  font-size: 0.95rem;
  font-weight: 600;
}

/* ── Featured card spans 2 columns on wider screens ── */
.card.featured {
  border: 2px solid #1a73e8;
  color: #1a73e8;
}

@media (min-width: 480px) {
  .card.featured {
    grid-column: span 2;
  }
}

/* ── Tablet (2–3 columns already handled by auto-fill) ── */
@media (min-width: 600px) {
  .services {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1.25rem;
    padding: 2rem;
  }
}

/* ── Desktop ── */
@media (min-width: 1024px) {
  .services {
    grid-template-columns: repeat(4, 1fr); /* fixed 4-column layout */
    gap: 1.5rem;
    padding: 2.5rem;
  }
}
