/* utils.css – Tailwind-compatible utility layer for web1500
   Replaces cdn.tailwindcss.com (~300KB JS) with ~20KB static CSS.
   Covers every class used across service pages (358 unique).
   NO preflight reset – matches original tailwind.config corePlugins:{preflight:false}
*/

/* ── Display ─────────────────────────────────────────────────── */
.flex         { display: flex }
.inline-flex  { display: inline-flex }
.inline-block { display: inline-block }
.block        { display: block }
.grid         { display: grid }
.hidden       { display: none }

/* ── Position ────────────────────────────────────────────────── */
.relative { position: relative }
.absolute { position: absolute }

/* ── Overflow ────────────────────────────────────────────────── */
.overflow-hidden { overflow: hidden }
.overflow-x-auto { overflow-x: auto }

/* ── Flexbox ─────────────────────────────────────────────────── */
.flex-col      { flex-direction: column }
.flex-row      { flex-direction: row }
.flex-1        { flex: 1 1 0% }
.flex-shrink-0 { flex-shrink: 0 }
.flex-wrap     { flex-wrap: wrap }
.items-center  { align-items: center }
.items-start   { align-items: flex-start }
.items-end     { align-items: flex-end }
.justify-center  { justify-content: center }
.justify-between { justify-content: space-between }
.justify-start   { justify-content: flex-start }
.justify-end     { justify-content: flex-end }
.ml-auto { margin-left: auto }
.mx-auto { margin-left: auto; margin-right: auto }

/* ── Grid ────────────────────────────────────────────────────── */
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)) }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)) }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)) }

/* ── Gap ─────────────────────────────────────────────────────── */
.gap-1\.5 { gap: 0.375rem }
.gap-2    { gap: 0.5rem }
.gap-3    { gap: 0.75rem }
.gap-4    { gap: 1rem }
.gap-5    { gap: 1.25rem }
.gap-6    { gap: 1.5rem }
.gap-8    { gap: 2rem }
.gap-10   { gap: 2.5rem }
.gap-12   { gap: 3rem }
.gap-16   { gap: 4rem }

/* ── Space-y ─────────────────────────────────────────────────── */
.space-y-2 > * + * { margin-top: 0.5rem }
.space-y-3 > * + * { margin-top: 0.75rem }
.space-y-4 > * + * { margin-top: 1rem }
.space-y-6 > * + * { margin-top: 1.5rem }

/* ── Sizing ──────────────────────────────────────────────────── */
.w-full { width: 100% }
.w-2    { width: 0.5rem }
.w-3    { width: 0.75rem }
.w-8    { width: 2rem }
.w-12   { width: 3rem }
.w-14   { width: 3.5rem }
.h-2    { height: 0.5rem }
.h-3    { height: 0.75rem }
.h-8    { height: 2rem }
.h-12   { height: 3rem }
.h-14   { height: 3.5rem }
.min-h-screen { min-height: 100vh }

/* ── 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 }
.max-w-7xl { max-width: 80rem }

/* ── Padding ─────────────────────────────────────────────────── */
.p-4  { padding: 1rem }
.p-5  { padding: 1.25rem }
.p-6  { padding: 1.5rem }
.p-8  { padding: 2rem }
.px-2  { padding-left: 0.5rem;   padding-right: 0.5rem }
.px-3  { padding-left: 0.75rem;  padding-right: 0.75rem }
.px-4  { padding-left: 1rem;     padding-right: 1rem }
.px-5  { padding-left: 1.25rem;  padding-right: 1.25rem }
.px-6  { padding-left: 1.5rem;   padding-right: 1.5rem }
.px-8  { padding-left: 2rem;     padding-right: 2rem }
.px-10 { padding-left: 2.5rem;   padding-right: 2.5rem }
.py-0\.5 { padding-top: 0.125rem; padding-bottom: 0.125rem }
.py-1    { padding-top: 0.25rem;  padding-bottom: 0.25rem }
.py-1\.5 { padding-top: 0.375rem; padding-bottom: 0.375rem }
.py-2    { padding-top: 0.5rem;   padding-bottom: 0.5rem }
.py-3    { padding-top: 0.75rem;  padding-bottom: 0.75rem }
.py-8    { padding-top: 2rem;     padding-bottom: 2rem }
.py-10   { padding-top: 2.5rem;   padding-bottom: 2.5rem }
.py-12   { padding-top: 3rem;     padding-bottom: 3rem }
.py-20   { padding-top: 5rem;     padding-bottom: 5rem }
.py-24   { padding-top: 6rem;     padding-bottom: 6rem }
.pb-1    { padding-bottom: 0.25rem }

/* ── Margin ──────────────────────────────────────────────────── */
.mt-0\.5 { margin-top: 0.125rem }
.mt-3  { margin-top: 0.75rem }
.mt-4  { margin-top: 1rem }
.mt-8  { margin-top: 2rem }
.mb-1  { margin-bottom: 0.25rem }
.mb-2  { margin-bottom: 0.5rem }
.mb-3  { margin-bottom: 0.75rem }
.mb-4  { margin-bottom: 1rem }
.mb-5  { margin-bottom: 1.25rem }
.mb-6  { margin-bottom: 1.5rem }
.mb-8  { margin-bottom: 2rem }
.mb-10 { margin-bottom: 2.5rem }
.mb-12 { margin-bottom: 3rem }
.mb-14 { margin-bottom: 3.5rem }
.mb-16 { margin-bottom: 4rem }

/* ── Typography: size ────────────────────────────────────────── */
.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 }
.text-5xl  { font-size: 3rem;      line-height: 1 }
.text-6xl  { font-size: 3.75rem;   line-height: 1 }
.text-7xl  { font-size: 4.5rem;    line-height: 1 }

/* ── Typography: weight ──────────────────────────────────────── */
.font-medium    { font-weight: 500 }
.font-semibold  { font-weight: 600 }
.font-bold      { font-weight: 700 }
.font-extrabold { font-weight: 800 }
.font-black     { font-weight: 900 }

/* ── Typography: other ───────────────────────────────────────── */
.leading-tight   { line-height: 1.25 }
.leading-snug    { line-height: 1.375 }
.leading-normal  { line-height: 1.5 }
.leading-relaxed { line-height: 1.625 }
.tracking-widest { letter-spacing: 0.1em }
.text-center  { text-align: center }
.text-left    { text-align: left }
.text-right   { text-align: right }
.uppercase    { text-transform: uppercase }
.capitalize   { text-transform: capitalize }

/* ── Text colors ─────────────────────────────────────────────── */
.text-white       { color: #fff }
.text-white\/60   { color: rgba(255,255,255,.60) }
.text-white\/70   { color: rgba(255,255,255,.70) }
.text-white\/80   { color: rgba(255,255,255,.80) }
.text-slate-300   { color: #cbd5e1 }
.text-slate-400   { color: #94a3b8 }
.text-slate-500   { color: #64748b }
.text-slate-600   { color: #475569 }
.text-slate-700   { color: #334155 }
.text-slate-900   { color: #0f172a }
.text-teal-300    { color: #5eead4 }
.text-teal-400    { color: #2dd4bf }
.text-teal-500    { color: #14b8a6 }
.text-teal-600    { color: #0d9488 }
.text-blue-300    { color: #93c5fd }
.text-blue-400    { color: #60a5fa }
.text-blue-600    { color: #2563eb }
.text-emerald-300 { color: #6ee7b7 }
.text-emerald-400 { color: #34d399 }
.text-emerald-600 { color: #059669 }
.text-green-300   { color: #86efac }
.text-green-400   { color: #4ade80 }
.text-green-600   { color: #16a34a }
.text-yellow-300  { color: #fde047 }
.text-yellow-400  { color: #facc15 }
.text-yellow-500  { color: #eab308 }
.text-yellow-600  { color: #ca8a04 }
.text-purple-600  { color: #9333ea }
.text-orange-500  { color: #f97316 }
.text-red-400     { color: #f87171 }

/* ── Background colors ───────────────────────────────────────── */
.bg-white           { background-color: #fff }
.bg-white\/10       { background-color: rgba(255,255,255,.10) }
.bg-slate-50        { background-color: #f8fafc }
.bg-slate-100       { background-color: #f1f5f9 }
.bg-teal-50         { background-color: #f0fdfa }
.bg-teal-400        { background-color: #2dd4bf }
.bg-teal-500\/10    { background-color: rgba(20,184,166,.10) }
.bg-teal-500\/20    { background-color: rgba(20,184,166,.20) }
.bg-blue-50         { background-color: #eff6ff }
.bg-blue-500\/10    { background-color: rgba(59,130,246,.10) }
.bg-emerald-50      { background-color: #ecfdf5 }
.bg-emerald-400     { background-color: #34d399 }
.bg-emerald-500\/10 { background-color: rgba(16,185,129,.10) }
.bg-emerald-500\/20 { background-color: rgba(16,185,129,.20) }
.bg-green-50        { background-color: #f0fdf4 }
.bg-green-400       { background-color: #4ade80 }
.bg-green-500\/10   { background-color: rgba(34,197,94,.10) }
.bg-green-500\/20   { background-color: rgba(34,197,94,.20) }
.bg-yellow-50       { background-color: #fefce8 }
.bg-yellow-400      { background-color: #facc15 }
.bg-yellow-400\/10  { background-color: rgba(250,204,21,.10) }
.bg-yellow-500\/10  { background-color: rgba(234,179,8,.10) }
.bg-purple-50       { background-color: #faf5ff }
.bg-red-400         { background-color: #f87171 }

/* ── Border ──────────────────────────────────────────────────── */
.border   { border-width: 1px; border-style: solid }
.border-b { border-bottom-width: 1px; border-bottom-style: solid }
.border-slate-100      { border-color: #f1f5f9 }
.border-slate-200      { border-color: #e2e8f0 }
.border-teal-500\/30   { border-color: rgba(20,184,166,.30) }
.border-blue-100       { border-color: #dbeafe }
.border-blue-500\/20   { border-color: rgba(59,130,246,.20) }
.border-emerald-500\/30{ border-color: rgba(16,185,129,.30) }
.border-green-100      { border-color: #dcfce7 }
.border-green-500\/30  { border-color: rgba(34,197,94,.30) }
.border-yellow-100     { border-color: #fef9c3 }
.border-yellow-400\/30 { border-color: rgba(250,204,21,.30) }
.border-yellow-500\/20 { border-color: rgba(234,179,8,.20) }
.border-purple-100     { border-color: #f3e8ff }
.border-white\/15      { border-color: rgba(255,255,255,.15) }

/* ── Border radius ───────────────────────────────────────────── */
.rounded-md  { border-radius: 0.375rem }
.rounded-lg  { border-radius: 0.5rem }
.rounded-xl  { border-radius: 0.75rem }
.rounded-2xl { border-radius: 1rem }
.rounded-3xl { border-radius: 1.5rem }
.rounded-full{ border-radius: 9999px }

/* ── Shadows & transforms ────────────────────────────────────── */
.shadow-xl              { box-shadow: 0 20px 25px -5px rgba(0,0,0,.10),0 8px 10px -6px rgba(0,0,0,.10) }
.hover\:shadow-xl:hover { box-shadow: 0 20px 25px -5px rgba(0,0,0,.10),0 8px 10px -6px rgba(0,0,0,.10) }
.hover\:-translate-y-2:hover { transform: translateY(-0.5rem) }

/* ── Transitions ─────────────────────────────────────────────── */
.transition-all    { transition: all 150ms cubic-bezier(.4,0,.2,1) }
.transition-colors { transition: color,background-color,border-color 150ms cubic-bezier(.4,0,.2,1) }
.duration-400      { transition-duration: 400ms }

/* ── Misc ────────────────────────────────────────────────────── */
.z-10          { z-index: 10 }
.backdrop-blur { -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px) }

/* ── Animate ─────────────────────────────────────────────────── */
@keyframes tw-pulse { 0%,100%{opacity:1} 50%{opacity:.5} }
.animate-pulse { animation: tw-pulse 2s cubic-bezier(.4,0,.6,1) infinite }

/* ── Group hover ─────────────────────────────────────────────── */
.group:hover .group-hover\:bg-blue-100    { background-color: #dbeafe }
.group:hover .group-hover\:bg-emerald-100 { background-color: #d1fae5 }
.group:hover .group-hover\:bg-yellow-100  { background-color: #fef9c3 }

/* ── Responsive: sm 640px ────────────────────────────────────── */
@media (min-width:640px) {
  .sm\:flex-row  { flex-direction: row }
  .sm\:text-6xl  { font-size: 3.75rem; line-height: 1 }
  .sm\:w-auto    { width: auto }
}

/* ── Responsive: md 768px ────────────────────────────────────── */
@media (min-width:768px) {
  .md\:block         { display: block }
  .md\:hidden        { display: none }
  .md\:flex-row      { flex-direction: row }
  .md\:grid-cols-2   { grid-template-columns: repeat(2,minmax(0,1fr)) }
  .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 }
  .md\:text-4xl      { font-size: 2.25rem;  line-height: 2.5rem }
  .md\:text-5xl      { font-size: 3rem;     line-height: 1 }
  .md\:text-7xl      { font-size: 4.5rem;   line-height: 1 }
  .md\:w-56          { width: 14rem }
}

/* ── Responsive: lg 1024px ───────────────────────────────────── */
@media (min-width:1024px) {
  .lg\:flex-row      { flex-direction: row }
  .lg\:grid-cols-3   { grid-template-columns: repeat(3,minmax(0,1fr)) }
  .lg\:grid-cols-4   { grid-template-columns: repeat(4,minmax(0,1fr)) }
  .lg\:w-1\/2        { width: 50% }
}
