/* ==========================================================================
   Tailwind Utility Replacement CSS
   Replaces Tailwind CDN (~371KB JS) with only the utility classes actually 
   used in footer.php and layout.php templates.
   ========================================================================== */

/* --- Box Model & Spacing --- */
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.p-8 { padding: 2rem; }
.pb-10 { padding-bottom: 2.5rem; }
.pt-0 { padding-top: 0; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-2 { margin-bottom: 0.5rem; }
.my-4 { margin-top: 1rem; margin-bottom: 1rem; }
.mt-2 { margin-top: 0.5rem; }

/* --- Layout & Flexbox --- */
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.block { display: block; }
.grid { display: grid; }
.relative { position: relative; }
.absolute { position: absolute; }
.items-center { align-items: center; }
.items-start { align-items: start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-start { justify-content: flex-start; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-1\.5, .gap-1-5 { gap: 0.375rem; }
.gap-x-2\.5, .gap-x-2-5 { column-gap: 0.625rem; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.w-full { width: 100%; }
.overflow-hidden { overflow: hidden; }
.min-h-\[220px\] { min-height: 220px; }

/* --- Container --- */
.mx-auto { margin-left: auto; margin-right: auto; }
.max-w-\[85rem\] { max-width: 85rem; }
.max-w-xl { max-width: 36rem; }
.container { width: 100%; margin-left: auto; margin-right: auto; padding-left: 1rem; padding-right: 1rem; }

/* --- Typography --- */
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-start { text-align: start; }
.text-center { text-align: center; }
.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; }
.uppercase { text-transform: uppercase; }
.tracking-wider { letter-spacing: 0.05em; }
.leading-relaxed { line-height: 1.625; }
.leading-snug { line-height: 1.375; }

/* --- Colors --- */
.text-white { color: #ffffff; }
.text-slate-200 { color: #e2e8f0; }
.text-slate-300 { color: #cbd5e1; }
.text-slate-400 { color: #94a3b8; }
.text-slate-500 { color: #64748b; }
.text-blue-400 { color: #60a5fa; }
.text-blue-500 { color: #3b82f6; }
.text-emerald-400 { color: #34d399; }
.text-emerald-500 { color: #10b981; }
.text-amber-400 { color: #fbbf24; }
.bg-slate-950 { background-color: #020617; }
.bg-transparent { background-color: transparent; }

/* --- Borders --- */
.border-t { border-top-width: 1px; border-top-style: solid; }
.border { border-width: 1px; border-style: solid; }
.border-slate-800 { border-color: #1e293b; }
.border-slate-900 { border-color: #0f172a; }
.rounded-full { border-radius: 9999px; }
.rounded-3xl { border-radius: 1.5rem; }

/* --- Effects & Transitions --- */
.transition-colors { transition-property: color, background-color, border-color; transition-timing-function: ease; transition-duration: 150ms; }
.transition-all { transition-property: all; transition-timing-function: ease; transition-duration: 150ms; }
.duration-300 { transition-duration: 300ms; }
.shadow-xl { box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1); }
.pointer-events-none { pointer-events: none; }
.blur-3xl { filter: blur(64px); }

/* --- Size utility (Tailwind v4) --- */
.size-4 { width: 1rem; height: 1rem; }
.size-10 { width: 2.5rem; height: 2.5rem; }
.size-72 { width: 18rem; height: 18rem; }

/* --- Color utilities with opacity --- */
.bg-blue-500\/10 { background-color: rgb(59 130 246 / 0.1); }
.bg-emerald-500\/10 { background-color: rgb(16 185 129 / 0.1); }
.bg-amber-500\/10 { background-color: rgb(245 158 11 / 0.1); }
.bg-slate-900\/60 { background-color: rgb(15 23 42 / 0.6); }
.bg-white\/10 { background-color: rgb(255 255 255 / 0.1); }
.bg-white\/15 { background-color: rgb(255 255 255 / 0.15); }
.border-blue-500\/20 { border-color: rgb(59 130 246 / 0.2); }
.border-emerald-500\/20 { border-color: rgb(16 185 129 / 0.2); }
.border-amber-500\/20 { border-color: rgb(245 158 11 / 0.2); }
.border-white\/30 { border-color: rgb(255 255 255 / 0.3); }
.text-white\/80 { color: rgb(255 255 255 / 0.8); }

/* --- Gradient --- */
.bg-gradient-to-r { background-image: linear-gradient(to right, var(--tw-gradient-stops)); }
.from-blue-600 { --tw-gradient-from: #2563eb; --tw-gradient-stops: #2563eb, var(--tw-gradient-to, rgb(37 99 235 / 0)); }
.to-indigo-700 { --tw-gradient-to: #4338ca; }

/* --- Transforms --- */
.-translate-y-12 { transform: translateY(-3rem); }
.translate-x-12 { transform: translateX(3rem); }
.translate-y-12 { transform: translateY(3rem); }
.-translate-x-12 { transform: translateX(-3rem); }

/* --- Hover states --- */
.hover\:text-white:hover { color: #ffffff; }
.hover\:text-emerald-400:hover { color: #34d399; }
.hover\:bg-white\/10:hover { background-color: rgb(255 255 255 / 0.1); }
.hover\:border-white\/30:hover { border-color: rgb(255 255 255 / 0.3); }

/* Specific brand color hover states used in footer */
.hover\:text-\[\#1877F2\]:hover { color: #1877F2; }
.hover\:bg-\[\#1877F2\]\/10:hover { background-color: rgb(24 119 242 / 0.1); }
.hover\:border-\[\#1877F2\]\/40:hover { border-color: rgb(24 119 242 / 0.4); }
.hover\:text-\[\#E4405F\]:hover { color: #E4405F; }
.hover\:bg-\[\#E4405F\]\/10:hover { background-color: rgb(228 64 95 / 0.1); }
.hover\:border-\[\#E4405F\]\/40:hover { border-color: rgb(228 64 95 / 0.4); }
.hover\:text-\[\#FF0000\]:hover { color: #FF0000; }
.hover\:bg-\[\#FF0000\]\/10:hover { background-color: rgb(255 0 0 / 0.1); }
.hover\:border-\[\#FF0000\]\/40:hover { border-color: rgb(255 0 0 / 0.4); }

/* Static brand colors */
.text-\[\#1877F2\] { color: #1877F2; }
.text-\[\#E4405F\] { color: #E4405F; }
.text-\[\#FF0000\] { color: #FF0000; }

/* --- Responsive Breakpoints --- */
@media (min-width: 640px) {
    .sm\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
    .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sm\:text-sm { font-size: 0.875rem; line-height: 1.25rem; }
    .sm\:p-12 { padding: 3rem; }
    .sm\:text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
    .sm\:flex-row { flex-direction: row; }
}

@media (min-width: 768px) {
    .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .md\:gap-8 { gap: 2rem; }
    .md\:flex-row { flex-direction: row; }
    .md\:p-16 { padding: 4rem; }
}

@media (min-width: 1024px) {
    .lg\:px-8 { padding-left: 2rem; padding-right: 2rem; }
    .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lg\:text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
}

/* --- Space-y utility --- */
.space-y-2 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.5rem; }
.space-y-2\.5 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.625rem; }
