/* ═══════════════════════════════════════
   ELLIE CARE — Utility Classes
   ═══════════════════════════════════════ */

/* ── LAYOUT ── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--section-pad-x);
}
.container--sm { max-width: var(--max-width-sm); }
.container--xs { max-width: var(--max-width-xs); }

.section {
  padding: var(--section-pad-y) var(--section-pad-x);
  position: relative;
  overflow: hidden;
}
.section--blue {
  background: var(--gradient-blue);
  color: var(--white);
}
.section--gray {
  background: var(--gray-bg);
}
.section--gradient-light {
  background: linear-gradient(180deg, var(--white) 0%, #f8f9fc 100%);
}
.section--gradient-gray {
  background: linear-gradient(180deg, #fafbfd 0%, var(--white) 100%);
}

/* ── FLEX ── */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-center { align-items: center; justify-content: center; }
.flex-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.gap-sm { gap: 0.75rem; }
.gap-md { gap: 1.5rem; }
.gap-lg { gap: 2rem; }
.gap-xl { gap: 3rem; }

/* ── GRID ── */
.grid { display: grid; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 500px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
}

/* ── TYPOGRAPHY ── */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-blue { color: var(--blue-deep); }
.text-mint { color: var(--mint); }
.text-pink { color: var(--pink); }
.text-muted { color: var(--text-muted); }
.text-white { color: var(--white); }

.font-display {
  font-size: clamp(2.8rem, 5.5vw, 4.5rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
}
.font-heading {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
}
.font-subheading {
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-weight: 400;
  letter-spacing: -0.01em;
}
.font-body {
  font-size: 1rem;
  line-height: 1.6;
}
.font-small {
  font-size: 0.85rem;
  line-height: 1.5;
}

/* ── SPACING ── */
.mb-0 { margin-bottom: 0; }
.mb-sm { margin-bottom: 0.75rem; }
.mb-md { margin-bottom: 1.5rem; }
.mb-lg { margin-bottom: 2.5rem; }
.mb-xl { margin-bottom: 4rem; }
.mt-auto { margin-top: auto; }

/* ── VISIBILITY ── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hide-mobile {
  display: block;
}
.show-mobile {
  display: none;
}
@media (max-width: 900px) {
  .hide-mobile { display: none !important; }
  .show-mobile { display: block !important; }
}

/* ── DECORATIVE ── */
.gradient-line {
  height: 1px;
  background: var(--gradient-separator);
}
.gradient-line--pink {
  background: linear-gradient(90deg, transparent, rgba(243,164,255,0.3), rgba(166,241,202,0.3), transparent);
}
