/*
 * BENEVOFY - Brand & Homepage Utilities
 * Supplements tailwind.css with:
 *   1. Missing spacing/sizing utilities for public pages
 *   2. Custom brand/navy color utilities
 *   3. Gradient, backdrop-blur, opacity modifiers
 *
 * Loaded BEFORE the CDN Tailwind script (offline fallback).
 * When CDN is online its JIT overrides/extends this correctly.
 */

/* ── Font family ────────────────────────────────────────────────── */
html { font-family: 'Inter', system-ui, -apple-system, sans-serif; }
body { font-family: 'Inter', system-ui, -apple-system, sans-serif; }

/* ── Tailwind CSS variable resets ───────────────────────────────── */
*, ::before, ::after {
  --tw-shadow: 0 0 #0000;
  --tw-gradient-from: transparent;
  --tw-gradient-to: transparent;
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}

/* ── Scroll smooth ──────────────────────────────────────────────── */
.scroll-smooth { scroll-behavior: smooth; }

/* ── Antialiased ────────────────────────────────────────────────── */
.antialiased {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Backdrop blur ──────────────────────────────────────────────── */
.backdrop-blur-lg {
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

/* ── Position ───────────────────────────────────────────────────── */
.fixed    { position: fixed; }
.sticky   { position: sticky; }
.relative { position: relative; }
.top-0    { top: 0; }
.z-50     { z-index: 50; }
.overflow-hidden { overflow: hidden; }

/* ── Missing width/height ───────────────────────────────────────── */
.w-9  { width: 2.25rem; }
.w-7  { width: 1.75rem; }
.h-9  { height: 2.25rem; }
.h-7  { height: 1.75rem; }
.min-h-screen { min-height: 100vh; }

/* ── Missing padding ────────────────────────────────────────────── */
.px-6  { padding-left: 1.5rem;  padding-right: 1.5rem; }
.px-8  { padding-left: 2rem;    padding-right: 2rem; }
.py-1\.5  { padding-top: 0.375rem; padding-bottom: 0.375rem; }
.py-2\.5  { padding-top: 0.625rem; padding-bottom: 0.625rem; }
.py-3\.5  { padding-top: 0.875rem; padding-bottom: 0.875rem; }
.py-8  { padding-top: 2rem;    padding-bottom: 2rem; }
.py-12 { padding-top: 3rem;    padding-bottom: 3rem; }
.py-20 { padding-top: 5rem;    padding-bottom: 5rem; }
.pt-2  { padding-top: 0.5rem; }
.pt-6  { padding-top: 1.5rem; }
.pt-8  { padding-top: 2rem; }
.pt-32 { padding-top: 8rem; }
.pb-6  { padding-bottom: 1.5rem; }
.pb-8  { padding-bottom: 2rem; }
.pb-20 { padding-bottom: 5rem; }
.\-mr-2 { margin-right: -0.5rem; }

/* ── Missing margin ─────────────────────────────────────────────── */
.mt-5  { margin-top: 1.25rem; }
.mt-8  { margin-top: 2rem; }
.mt-10 { margin-top: 2.5rem; }
.mt-12 { margin-top: 3rem; }
.mb-1  { margin-bottom: 0.25rem; }
.mb-8  { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-14 { margin-bottom: 3.5rem; }
.ml-1  { margin-left: 0.25rem; }
.mr-1  { margin-right: 0.25rem; }

/* ── Missing gap ────────────────────────────────────────────────── */
.gap-2\.5  { gap: 0.625rem; }
.gap-8    { gap: 2rem; }

/* ── Space-y ────────────────────────────────────────────────────── */
.space-y-1 > * + * { margin-top: 0.25rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }

/* ── Max-width ──────────────────────────────────────────────────── */
.max-w-xl  { max-width: 36rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-5xl { max-width: 64rem; }
.max-w-6xl { max-width: 72rem; }

/* ── Typography sizes ───────────────────────────────────────────── */
.text-xs  { font-size: 0.75rem;  line-height: 1rem; }
.text-sm  { font-size: 0.875rem; line-height: 1.25rem; }
.text-base{ font-size: 1rem;     line-height: 1.5rem; }
.text-lg  { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl  { font-size: 1.25rem;  line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem;   line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem;  line-height: 2.5rem; }

/* ── Font weights ───────────────────────────────────────────────── */
.font-normal    { font-weight: 400; }
.font-medium    { font-weight: 500; }
.font-semibold  { font-weight: 600; }
.font-bold      { font-weight: 700; }
.font-extrabold { font-weight: 800; }

/* ── Line height ────────────────────────────────────────────────── */
.leading-tight   { line-height: 1.25; }
.leading-relaxed { line-height: 1.625; }

/* ── Letter spacing ─────────────────────────────────────────────── */
.tracking-wide   { letter-spacing: 0.025em; }
.tracking-wider  { letter-spacing: 0.05em; }

/* ── Text transform ─────────────────────────────────────────────── */
.uppercase { text-transform: uppercase; }

/* ── Text alignment ─────────────────────────────────────────────── */
.text-center { text-align: center; }

/* ── Text colors (standard) ─────────────────────────────────────── */
.text-white { color: #fff; }

/* ── Background (standard) ──────────────────────────────────────── */
.bg-gray-50  { background-color: #f9fafb; }
.bg-white    { background-color: #fff; }

/* ── Background opacity utilities ───────────────────────────────── */
.bg-white\/80  { background-color: rgba(255,255,255,0.80); }
.bg-white\/95  { background-color: rgba(255,255,255,0.95); }
.bg-white\/10  { background-color: rgba(255,255,255,0.10); }

/* ── Border opacity utilities ───────────────────────────────────── */
.border-white\/30 { border-color: rgba(255,255,255,0.30); }
.border-gray-700  { border-color: #374151; }

/* ── Border width ───────────────────────────────────────────────── */
.border-2 { border-width: 2px; }

/* ── Shadows ────────────────────────────────────────────────────── */
.shadow-sm { box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1); }
.shadow-xl { box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1); }
.hover\:shadow-lg:hover { box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1); }
.hover\:shadow-xl:hover { box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1); }

/* ── Transitions ────────────────────────────────────────────────── */
.transition-all    { transition: all 150ms cubic-bezier(0.4,0,0.2,1); }
.transition-colors { transition: color 150ms, background-color 150ms, border-color 150ms; }

/* ── Gradient directions ────────────────────────────────────────── */
.bg-gradient-to-b  { background-image: linear-gradient(to bottom,  var(--tw-gradient-stops)); }
.bg-gradient-to-br { background-image: linear-gradient(to bottom right, var(--tw-gradient-stops)); }

/* ── Flex utilities missing ─────────────────────────────────────── */
.inline-flex { display: inline-flex; }
.items-start { align-items: flex-start; }
.justify-center  { justify-content: center; }
.justify-between { justify-content: space-between; }

/* ── Hover bg-gray-50 ───────────────────────────────────────────── */
.hover\:bg-gray-50:hover  { background-color: #f9fafb; }
.hover\:bg-gray-200:hover { background-color: #e5e7eb; }
.hover\:bg-white\/10:hover { background-color: rgba(255,255,255,0.10); }
.hover\:text-white:hover  { color: #fff; }

/* ── Responsive: sm ─────────────────────────────────────────────── */
@media (min-width: 640px) {
  .sm\:inline-block { display: inline-block; }
  .sm\:text-5xl { font-size: 3rem;    line-height: 1; }
  .sm\:flex { display: flex; }
}

/* ── Responsive: md ─────────────────────────────────────────────── */
@media (min-width: 768px) {
  .md\:flex   { display: flex; }
  .md\:hidden { display: none; }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .md\:text-xl { font-size: 1.25rem; line-height: 1.75rem; }
}

/* ── Responsive: lg ─────────────────────────────────────────────── */
@media (min-width: 1024px) {
  .lg\:text-6xl     { font-size: 3.75rem; line-height: 1; }
  .lg\:grid-cols-3  { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg\:grid-cols-4  { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ══════════════════════════════════════════════════════════════════
   BRAND COLORS  (#27AE60 family)
   ══════════════════════════════════════════════════════════════════ */
.text-brand-100 { color: #A9DFBF; }
.text-brand-400 { color: #2ECC71; }
.text-brand-500 { color: #27AE60; }
.text-brand-600 { color: #229954; }
.text-brand-700 { color: #1E8449; }

.bg-brand-50  { background-color: #EAFAF1; }
.bg-brand-100 { background-color: #A9DFBF; }
.bg-brand-500 { background-color: #27AE60; }
.bg-brand-600 { background-color: #229954; }

.border-brand-200 { border-color: #7DCEA0; }
.border-brand-400 { border-color: #2ECC71; }

.hover\:bg-brand-50:hover   { background-color: #EAFAF1; }
.hover\:bg-brand-100:hover  { background-color: #A9DFBF; }
.hover\:bg-brand-600:hover  { background-color: #229954; }
.hover\:text-brand-600:hover { color: #229954; }
.hover\:text-brand-700:hover { color: #1E8449; }
.hover\:border-brand-200:hover { border-color: #7DCEA0; }

.shadow-brand-500\/25 { box-shadow: 0 4px 14px rgba(39,174,96,0.25); }
.shadow-brand-500\/20 { box-shadow: 0 4px 14px rgba(39,174,96,0.20); }
.shadow-brand-500\/10 { box-shadow: 0 10px 30px rgba(39,174,96,0.10); }
.hover\:shadow-brand-500\/5:hover { box-shadow: 0 2px 8px rgba(39,174,96,0.05); }
.hover\:shadow-lg:hover { box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1); }

/* Gradient stops */
.from-brand-50\/50 {
  --tw-gradient-from: rgba(234,250,241,0.5);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}
.from-brand-600 {
  --tw-gradient-from: #229954;
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}
.to-brand-800 { --tw-gradient-to: #196F3D; }
.to-white     { --tw-gradient-to: #ffffff; }

/* ══════════════════════════════════════════════════════════════════
   NAVY COLORS  (#1C2833 family)
   ══════════════════════════════════════════════════════════════════ */
.text-navy-700 { color: #243342; }
.text-navy-800 { color: #1C2833; }
.bg-navy-800   { background-color: #1C2833; }
