/**
 * Static Pure CSS for Junior-Created Service & Treatment Pages
 * Eliminates FOUC (Flash of Unstyled Content) & External CDN Script Lag
 */

/* ==========================================================================
   1. Typography & Base Theme Colors
   ========================================================================== */
.font-lora {
    font-family: 'Lora', serif !important;
}

.font-inter {
    font-family: 'Inter', sans-serif !important;
}

.text-primary { color: #E83E7A !important; }
.text-darkPink { color: #C92F68 !important; }
.text-darkText { color: #3F3B3D !important; }
.text-bodyText { color: #666166 !important; }

.bg-white { background-color: #FFFFFF !important; }
.bg-softPink { background-color: #FFF4F7 !important; }
.bg-primary { background-color: #E83E7A !important; }

.border-borderPink { border-color: #E9DDE2 !important; }
.border-primary { border-color: #E83E7A !important; }

/* Font Sizing & Line Heights */
.text-xs { font-size: 0.75rem !important; line-height: 1rem !important; }
.text-sm { font-size: 0.875rem !important; line-height: 1.35rem !important; }
.text-base { font-size: 1rem !important; line-height: 1.65rem !important; }
.text-lg { font-size: 1.125rem !important; line-height: 1.75rem !important; }
.text-xl { font-size: 1.25rem !important; line-height: 1.75rem !important; }
.text-2xl { font-size: 1.5rem !important; line-height: 2rem !important; }
.text-3xl { font-size: 1.875rem !important; line-height: 2.25rem !important; }
.text-4xl { font-size: 2.25rem !important; line-height: 2.6rem !important; }

.font-medium { font-weight: 500 !important; }
.font-semibold { font-weight: 600 !important; }

.text-center { text-align: center !important; }
.uppercase { text-transform: uppercase !important; }
.tracking-wider { letter-spacing: 0.05em !important; }
.tracking-tight { letter-spacing: -0.025em !important; }
.leading-tight { line-height: 1.25 !important; }
.leading-relaxed { line-height: 1.65 !important; }

/* ==========================================================================
   2. Hero Section & Backgrounds
   ========================================================================== */
header.border-b {
    border-bottom: 1px solid #E9DDE2 !important;
}

.relative { position: relative !important; }
.absolute { position: absolute !important; }
.inset-0 { top: 0 !important; right: 0 !important; bottom: 0 !important; left: 0 !important; }
.overflow-hidden { overflow: hidden !important; }
.pointer-events-none { pointer-events: none !important; }

.bg-gradient-to-br {
    background: linear-gradient(135deg, #FFF4F7 0%, #FFFFFF 50%, #FFF4F7 100%) !important;
}

header[class*="py-20"] {
    padding-top: 4.5rem !important;
    padding-bottom: 4.5rem !important;
}

.w-16 { width: 4rem !important; }
.h-1 { height: 0.25rem !important; }
.w-2 { width: 0.5rem !important; }
.h-2 { height: 0.5rem !important; }
.w-1\.5 { width: 0.375rem !important; }
.h-1\.5 { height: 0.375rem !important; }

.rounded-full { border-radius: 9999px !important; }
.rounded-xl { border-radius: 0.85rem !important; }
.rounded-2xl { border-radius: 1.25rem !important; }

.opacity-40 { opacity: 0.4 !important; }
.opacity-80 { opacity: 0.8 !important; }

/* ==========================================================================
   3. Spacing & Container Constraints
   ========================================================================== */
.max-w-\[1300px\] {
    max-width: 1300px !important;
}

.mx-auto {
    margin-left: auto !important;
    margin-right: auto !important;
}

.px-6 {
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
}

.py-16 {
    padding-top: 3.5rem !important;
    padding-bottom: 3.5rem !important;
}

.p-4 { padding: 1rem !important; }
.p-5 { padding: 1.25rem !important; }
.p-6 { padding: 1.5rem !important; }
.p-8 { padding: 2rem !important; }

.px-4 { padding-left: 1rem !important; padding-right: 1rem !important; }
.py-1\.5 { padding-top: 0.375rem !important; padding-bottom: 0.375rem !important; }
.pl-2 { padding-left: 0.5rem !important; }
.pl-6 { padding-left: 1.5rem !important; }
.pt-1 { padding-top: 0.25rem !important; }
.pt-2 { padding-top: 0.5rem !important; }
.pt-4 { padding-top: 1rem !important; }
.pb-12 { padding-bottom: 3rem !important; }

.mt-2 { margin-top: 0.5rem !important; }
.mt-6 { margin-top: 1.5rem !important; }
.mb-1 { margin-bottom: 0.25rem !important; }
.mb-4 { margin-bottom: 1rem !important; }
.my-4 { margin-top: 1rem !important; margin-bottom: 1rem !important; }

/* Stack Spacing (space-y and space-x) */
.space-y-12 > * + * { margin-top: 3rem !important; }
.space-y-8 > * + * { margin-top: 2rem !important; }
.space-y-6 > * + * { margin-top: 1.5rem !important; }
.space-y-4 > * + * { margin-top: 1rem !important; }
.space-y-3 > * + * { margin-top: 0.75rem !important; }
.space-y-2 > * + * { margin-top: 0.5rem !important; }

.space-x-3 > * + * { margin-left: 0.75rem !important; }
.space-x-2 > * + * { margin-left: 0.5rem !important; }

/* Borders & Shadows */
.border { border-width: 1px !important; border-style: solid !important; }
.border-b { border-bottom-width: 1px !important; border-bottom-style: solid !important; }
.border-t { border-top-width: 1px !important; border-top-style: solid !important; }
.border-l-4 { border-left-width: 4px !important; border-left-style: solid !important; }

.shadow-sm { box-shadow: 0 2px 8px rgba(63, 59, 61, 0.04) !important; }
.shadow-xs { box-shadow: 0 1px 3px rgba(63, 59, 61, 0.03) !important; }

/* ==========================================================================
   4. Flexbox & Grid Systems
   ========================================================================== */
.flex { display: flex !important; }
.inline-block { display: inline-block !important; }
.items-start { align-items: flex-start !important; }
.items-center { align-items: center !important; }
.justify-center { justify-content: center !important; }
.flex-shrink-0 { flex-shrink: 0 !important; }
.flex-wrap { flex-wrap: wrap !important; }

.grid {
    display: grid !important;
}

.grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
}

.grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

.gap-3 { gap: 0.75rem !important; }
.gap-4 { gap: 1rem !important; }
.gap-6 { gap: 1.5rem !important; }

/* Dropcap First Letter */
p.first-letter\:text-5xl::first-letter {
    font-size: 3.25rem !important;
    line-height: 1 !important;
    font-family: 'Lora', serif !important;
    font-weight: 500 !important;
    color: #E83E7A !important;
    margin-right: 0.85rem !important;
    float: left !important;
}

/* ==========================================================================
   5. Responsive Breakpoints (Tablet & Desktop)
   ========================================================================== */
@media (min-width: 640px) {
    .sm\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
    .sm\:grid-cols-5 {
        grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    }
    .sm\:col-span-2 {
        grid-column: span 2 / span 2 !important;
    }
    .sm\:col-span-1 {
        grid-column: span 1 / span 1 !important;
    }
}

@media (min-width: 768px) {
    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
    .md\:text-3xl {
        font-size: 1.875rem !important;
        line-height: 2.25rem !important;
    }
    .md\:text-5xl {
        font-size: 3rem !important;
        line-height: 1.2 !important;
    }
    .md\:text-base {
        font-size: 1rem !important;
        line-height: 1.5rem !important;
    }
    .md\:p-10 {
        padding: 2.5rem !important;
    }
    .md\:col-span-2 {
        grid-column: span 2 / span 2 !important;
    }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
    .lg\:text-6xl {
        font-size: 3.75rem !important;
        line-height: 1.15 !important;
    }
    .lg\:col-span-1 {
        grid-column: span 1 / span 1 !important;
    }
}

/* Micro Transitions on Cards */
.bg-white.rounded-xl,
.bg-softPink.rounded-2xl {
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease !important;
}

.bg-white.rounded-xl:hover {
    transform: translateY(-2px) !important;
    border-color: #E83E7A !important;
    box-shadow: 0 8px 24px rgba(232, 62, 122, 0.08) !important;
}


/* ==========================================================================
   Responsive Grid & Typography Utilities for Junior Pages
   ========================================================================== */
.py-20 { padding-top: 5rem !important; padding-bottom: 5rem !important; }
.py-1\.5 { padding-top: 0.375rem !important; padding-bottom: 0.375rem !important; }

.max-w-\[1300px\] { max-width: 1300px !important; margin-left: auto !important; margin-right: auto !important; }

.from-softPink { --tw-gradient-from: #FFF4F7; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(255, 244, 247, 0)); }
.via-white { --tw-gradient-stops: var(--tw-gradient-from), #FFFFFF, var(--tw-gradient-to, rgba(255, 255, 255, 0)); }
.to-softPink { --tw-gradient-to: #FFF4F7; }

.first-letter\:text-5xl::first-letter { font-size: 3rem !important; line-height: 1 !important; }
.first-letter\:font-lora::first-letter { font-family: 'Lora', serif !important; }
.first-letter\:font-medium::first-letter { font-weight: 500 !important; }
.first-letter\:text-primary::first-letter { color: #E83E7A !important; }
.first-letter\:mr-3::first-letter { margin-right: 0.75rem !important; }
.first-letter\:float-left::first-letter { float: left !important; }

.hover\:underline:hover { text-decoration: underline !important; }

@media (min-width: 640px) {
    .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
    .sm\:grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)) !important; }
    .sm\:col-span-1 { grid-column: span 1 / span 1 !important; }
    .sm\:col-span-2 { grid-column: span 2 / span 2 !important; }
}

@media (min-width: 768px) {
    .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
    .md\:col-span-2 { grid-column: span 2 / span 2 !important; }
    .md\:p-10 { padding: 2.5rem !important; }
    .md\:text-3xl { font-size: 1.875rem !important; line-height: 2.25rem !important; }
    .md\:text-5xl { font-size: 3rem !important; line-height: 1 !important; }
    .md\:text-base { font-size: 1rem !important; line-height: 1.5rem !important; }
}

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