/* =========================================
   1. DESIGN TOKENS
   ========================================= */

:root {
  /* Colors */
  --bg: #f9fafb;
  --surface: #ffffff;
  --text: #111827;
  --text-muted: #4b5563;

  --primary: #2563eb;
  --primary-hover: #1d4ed8;

  --secondary: #eef2ff;
  --border: #e2e8f0;

  --soft-bg: #f1f5f9;

  /* Status / UI */
  --link: var(--primary);
  --link-hover: var(--primary-hover);

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 10px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 20px rgba(0, 0, 0, 0.12);

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;

  /* Layout */
  --container: 1160px;

  /* Spacing system (consistent rhythm) */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 5rem;

  /* Motion */
  --transition: 0.25s ease;
}

/* =========================================
   2. RESET
   ========================================= */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.7;
  text-align: center;
  -webkit-font-smoothing: antialiased;
}

/* =========================================
   3. BASE ELEMENTS
   ========================================= */

img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto var(--space-4);
}

a {
  color: var(--link);
  text-decoration: none;
  transition:
    color var(--transition),
    opacity var(--transition);
}

a:hover {
  color: var(--link-hover);
}

a:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.4);
  outline-offset: 3px;
  border-radius: 6px;
}

/* =========================================
   4. TYPOGRAPHY
   ========================================= */

h1,
h2,
h3,
h4 {
  color: var(--text);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-3);
}

h1 {
  font-size: clamp(2.3rem, 5vw, 3.5rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  font-weight: 800;
}

h3 {
  font-size: 1.25rem;
  font-weight: 700;
}

p {
  color: var(--text-muted);
  margin-bottom: var(--space-4);
}

/* Labels */

.eyebrow,
.section-label {
  display: inline-block;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.eyebrow {
  font-size: 0.8rem;
  margin-bottom: var(--space-3);
}

.section-label {
  font-size: 0.75rem;
  margin-bottom: var(--space-4);
}

/* =========================================
   5. LAYOUT
   ========================================= */

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
}

section {
  padding: var(--space-6) 0;
}

.grid-2-col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
  text-align: left;
}

.grid-3-col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  text-align: left;
}

/* =========================================
   6. UTILITIES
   ========================================= */

.text-center {
  text-align: center;
}

.heading-space {
  margin-bottom: var(--space-5);
}

.bg-white {
  background: var(--surface);
}

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

.bg-dark {
  background: var(--text);
  color: var(--surface);
}

/* =========================================
   7. BUTTONS
   ========================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 1rem 2rem;
  border-radius: var(--radius-sm);

  background: var(--primary);
  color: #fff !important;

  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);

  box-shadow: var(--shadow-sm);
}

.btn:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* =========================================
   8. COMPONENTS
   ========================================= */

/* Header */
.site-header {
  padding: var(--space-5) 0;
}

/* Hero */
.hero-subtitle {
  max-width: 1000px;
  margin: 0 auto var(--space-4);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-muted);
}

/* Cards */
.featured-card {
  background: var(--surface);
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  text-align: left;
}

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

/* Fix last paragraph spacing inside cards */
.featured-card p {
  margin-bottom: 0;
}

/* Center image sections */
.center-image-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Images */
.center-image {
  margin: var(--space-4) auto 0;
}

/* Footer */
.site-footer {
  padding: var(--space-5) 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
}

/* =========================================
   9. SERVICE LINKS (IMPORTANT FIX)
   ========================================= */

.service-link,
.heading-link {
  color: inherit;
  text-decoration: none;
}

.service-link:hover,
.heading-link:hover {
  color: var(--primary);
}

/* =========================================
   10. RESPONSIVE
   ========================================= */

@media (max-width: 900px) {
  section {
    padding: var(--space-5) 0;
  }

  .grid-2-col,
  .grid-3-col {
    grid-template-columns: 1fr;
  }

  .btn {
    width: 100%;
  }

  .featured-card {
    padding: 1.5rem;
  }
}
