/* ===========================
   Sana Waqar for Ward 2
   Campaign Website Styles
   Apple-style typography & buttons
   =========================== */

/* --- Base & Reset --- */
html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: #1E2023;
  background-color: #F5F4F1;
  line-height: 1.6;
  letter-spacing: -0.01em;
}

/* --- Typography Scale --- */
h1 {
  font-size: clamp(2rem, 4vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

h2 {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.25;
}

h3 {
  font-size: clamp(1.125rem, 2vw, 1.25rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

p {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  color: #6B6F76;
}

/* --- Section Spacing --- */
section {
  scroll-margin-top: 80px;
}

/* --- Typography Helpers --- */
.text-balance {
  text-wrap: balance;
}

/* --- Smooth Link Transitions --- */
a {
  transition: color 0.2s ease;
}

/* --- Focus Styles for Accessibility --- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid #3E6B68;
  outline-offset: 2px;
  border-radius: 4px;
}

/* --- Selection Color --- */
::selection {
  background: #3E6B68;
  color: #FFFFFF;
}

/* --- Button Classes (Apple-style) --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 2rem;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.9375rem;
  line-height: 1.5;
  letter-spacing: -0.01em;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: all 0.25s cubic-bezier(0.25, 0.1, 0.25, 1);
  text-decoration: none;
  -webkit-font-smoothing: antialiased;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background-color: #3E6B68;
  color: #FFFFFF;
  border-color: #3E6B68;
}

.btn-primary:hover {
  background-color: #345a57;
  border-color: #345a57;
}

.btn-secondary {
  background-color: transparent;
  color: #3E6B68;
  border-color: #3E6B68;
}

.btn-secondary:hover {
  background-color: rgba(62, 107, 104, 0.08);
}

/* --- Card Classes --- */
.card {
  background-color: #FFFFFF;
  border: 1px solid #F5F4F1;
  border-radius: 0.5rem;
  padding: 2rem;
}

.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
