/* ========================================
   REVE STITCHING - COMPLETE MAIN CSS
   WordPress Theme Styles - Final Version
   ======================================== */

/* ========================================
   FONT FIXES - Inter Font
   ======================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

* {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif !important;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body,
html,
h1, h2, h3, h4, h5, h6,
p, span, div, a, button, input, select, textarea,
.btn, .nav-menu, .footer-menu {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Remove all link underlines globally */
a {
    text-decoration: none !important;
}

a:hover,
a:focus,
a:active,
a:visited {
    text-decoration: none !important;
}

/* Font weights */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700 !important;
    line-height: 1.2;
}

.font-bold {
    font-weight: 700 !important;
}

.font-semibold {
    font-weight: 600 !important;
}

.font-medium {
    font-weight: 500 !important;
}

.font-normal {
    font-weight: 400 !important;
}

.font-light {
    font-weight: 300 !important;
}

/* ========================================
   INSTANT PAGE TRANSITIONS - PRIORITY FIX
   ======================================== */
html {
    opacity: 1 !important;
    visibility: visible !important;
    background-color: #ffffff !important;
    scroll-behavior: smooth !important;
    -webkit-overflow-scrolling: touch !important;
}

body {
    opacity: 1 !important;
    visibility: visible !important;
    background-color: #ffffff !important;
    color: #1a1a1a;
    line-height: 1.6;
    overflow-x: hidden !important;
    position: relative !important;
}

/* Override any fade-in animations on page load */
main,
.site-main,
.main-content,
#main,
#content,
#page,
.entry-content {
    opacity: 1 !important;
    visibility: visible !important;
    animation: none !important;
    transform: none !important;
}

/* Instant header and footer */
#site-header,
#main-header,
footer {
    opacity: 1 !important;
    visibility: visible !important;
}

/* ========================================
   404 ERROR PREVENTION & PAGE TRANSITIONS
   ======================================== */
/* Page Transition States - Prevents 404 flash */
body.page-transitioning {
    pointer-events: none;
    cursor: wait;
}

body.page-transitioning > * {
    opacity: 1 !important;
    visibility: visible !important;
}

/* Prevent 404 flash - Hide 404 content unless on actual 404 page */
body:not(.error404) .error-404-content,
body:not(.error404) #error-404,
body:not(.error404) .page-404 {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

/* Only show 404 content on actual 404 pages */
body.error404 .site-content > *:not(.error-404-content) {
    display: none;
}

/* Smooth page transitions */
body.page-transitioning main {
    opacity: 0.95 !important;
    transition: opacity 0.2s ease !important;
}

/* Ensure content stays visible during navigation */
body:not(.error404) main,
body:not(.error404) .site-main,
body:not(.error404) #primary {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

/* ========================================
   CUSTOM SCROLLBAR
   ======================================== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* ========================================
   BASE STYLES & SPACING FIXES
   ======================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

@media (min-width: 640px) {
    .container {
        padding: 0 24px;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 32px;
    }
}

/* ========================================
   ENHANCED HEADER STYLES
   ======================================== */
#site-header,
#main-header {
    z-index: 9999;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, 
        rgba(255, 255, 255, 0.95) 0%, 
        rgba(255, 255, 255, 0.9) 100%) !important;
    backdrop-filter: saturate(180%) blur(20px) !important;
    -webkit-backdrop-filter: saturate(180%) blur(20px) !important;
    border-bottom: 1px solid rgba(229, 231, 235, 0.5) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#site-header.scrolled,
#main-header.scrolled {
    background: linear-gradient(180deg, 
        rgba(255, 255, 255, 0.98) 0%, 
        rgba(249, 250, 251, 0.95) 100%) !important;
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.08),
                0 2px 10px -2px rgba(0, 0, 0, 0.04) !important;
}

/* Navigation menu styles */
.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-menu li {
    margin: 0 15px;
}

.nav-menu a {
    text-decoration: none !important;
    color: #666;
    font-weight: 500;
    transition: color 0.3s;
    padding: 8px 12px;
    border-radius: 8px;
    font-family: 'Inter', sans-serif !important;
}

.nav-menu a:hover,
.nav-menu .current-menu-item a {
    color: #1a1a1a;
    background-color: #f5f5f5;
    text-decoration: none !important;
}

/* ========================================
   NAVIGATION ACTIVE STATE FIX
   ======================================== */
.nav-item {
    position: relative;
}

.nav-item a {
    color: #4b5563 !important;
}

.nav-item:hover a {
    color: #111827 !important;
}

.active-tab {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%) !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.06);
    animation: scaleIn 0.3s ease-out;
}

/* Premium logo hover effect */
.hover-scale {
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

.hover-scale:hover {
    transform: scale(1.05) translateX(5px) !important;
}

/* ========================================
   PREMIUM MOBILE NAVIGATION - DESKTOP HIDDEN
   ======================================== */
/* Mobile Toggle - ONLY visible on mobile/tablet */
#mobile-menu-toggle {
    display: none !important; /* Hidden by default */
}

@media (max-width: 1024px) {
    /* Desktop menu hidden on mobile */
    .desktop-menu,
    .nav-menu,
    .nav-quote-btn {
        display: none !important;
    }
    
    /* Show mobile toggle on tablet/mobile */
    #mobile-menu-toggle {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 56px !important;
        height: 56px !important;
        padding: 0 !important;
        border-radius: 16px !important;
        background: rgba(255, 255, 255, 0.98) !important;
        backdrop-filter: blur(10px) !important;
        -webkit-backdrop-filter: blur(10px) !important;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08),
                    0 2px 8px rgba(0, 0, 0, 0.04) !important;
        border: 1px solid rgba(0, 0, 0, 0.04) !important;
        position: relative !important;
        z-index: 10002 !important;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        cursor: pointer !important;
        -webkit-tap-highlight-color: transparent !important;
    }
    
    #mobile-menu-toggle:hover {
        background: rgba(249, 250, 251, 1) !important;
        transform: scale(1.05) !important;
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12),
                    0 4px 12px rgba(0, 0, 0, 0.06) !important;
    }
    
    #mobile-menu-toggle:active {
        transform: scale(0.95) !important;
    }
    
    #mobile-menu-toggle.open {
        background: #111827 !important;
        color: #ffffff !important;
        border-color: #111827 !important;
    }
    
    #mobile-menu-toggle svg {
        width: 24px !important;
        height: 24px !important;
        stroke-width: 2.5 !important;
        transition: all 0.3s ease !important;
    }
}

/* Premium Mobile Menu Drawer */
#mobile-menu {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    max-width: 400px !important;
    background: #ffffff !important;
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.15) !important;
    transform: translateX(100%) !important;
    transition: transform 0.4s cubic-bezier(0.22, 0.61, 0.36, 1) !important;
    z-index: 10001 !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    display: block !important; /* Always in DOM */
}

#mobile-menu.open {
    transform: translateX(0) !important;
}

/* Premium Close Button */
#mobile-menu-close {
    position: absolute !important;
    top: 20px !important;
    right: 20px !important;
    width: 48px !important;
    height: 48px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #f3f4f6 !important;
    border-radius: 12px !important;
    border: none !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    z-index: 10 !important;
}

#mobile-menu-close:hover {
    background: #e5e7eb !important;
    transform: rotate(90deg) scale(1.1) !important;
}

#mobile-menu-close svg {
    width: 20px !important;
    height: 20px !important;
    stroke: #111827 !important;
    stroke-width: 2.5 !important;
}

/* Mobile Menu Content */
.mobile-nav-menu {
    padding: 80px 24px 40px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
}

.mobile-menu-item {
    opacity: 0;
    transform: translateX(20px);
    animation: slideInFromRight 0.4s ease-out forwards;
}

.mobile-menu-item:nth-child(1) { animation-delay: 0.1s; }
.mobile-menu-item:nth-child(2) { animation-delay: 0.15s; }
.mobile-menu-item:nth-child(3) { animation-delay: 0.2s; }
.mobile-menu-item:nth-child(4) { animation-delay: 0.25s; }
.mobile-menu-item:nth-child(5) { animation-delay: 0.3s; }
.mobile-menu-item:nth-child(6) { animation-delay: 0.35s; }

.mobile-menu-item a {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 20px 24px !important;
    margin: 0 !important;
    background: #f9fafb !important;
    border-radius: 16px !important;
    color: #111827 !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    letter-spacing: -0.02em !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative !important;
    overflow: hidden !important;
}

.mobile-menu-item a::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: -100% !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(90deg, transparent, rgba(17, 24, 39, 0.05), transparent) !important;
    transition: left 0.5s ease !important;
}

.mobile-menu-item a:hover {
    background: #f3f4f6 !important;
    transform: translateX(-4px) !important;
    padding-left: 28px !important;
}

.mobile-menu-item a:hover::before {
    left: 100% !important;
}

/* Mobile CTA Button */
.mobile-menu-item:last-child {
    margin-top: 24px !important;
}

.mobile-menu-item:last-child a {
    background: linear-gradient(135deg, #111827 0%, #1f2937 100%) !important;
    color: #ffffff !important;
    text-align: center !important;
    justify-content: center !important;
    font-weight: 700 !important;
    box-shadow: 0 8px 24px rgba(17, 24, 39, 0.15) !important;
}

.mobile-menu-item:last-child a:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 12px 32px rgba(17, 24, 39, 0.25) !important;
    padding-left: 24px !important;
}

/* Mobile Menu Backdrop */
.mobile-menu-backdrop {
    position: fixed !important;
    inset: 0 !important;
    background: rgba(0, 0, 0, 0.5) !important;
    backdrop-filter: blur(4px) !important;
    -webkit-backdrop-filter: blur(4px) !important;
    z-index: 10000 !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transition: opacity 0.3s ease !important;
}

.mobile-menu-backdrop.visible {
    opacity: 1 !important;
    pointer-events: auto !important;
}

/* Prevent body scroll when menu is open */
body.mobile-menu-open {
    overflow: hidden !important;
    position: fixed !important;
    width: 100% !important;
}

@keyframes slideInFromRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Animation Classes */
.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.animate-slide-in-left {
    animation: slideInLeft 0.6s ease-out;
}

.animate-slide-in-right {
    animation: slideInRight 0.6s ease-out;
}

.animate-scale-in {
    animation: scaleIn 0.8s ease-out;
}

.float-animation {
    animation: float 3s ease-in-out infinite;
}

.pulse-animation {
    animation: pulse 2s ease-in-out infinite;
}

/* ========================================
   HOVER EFFECTS
   ======================================== */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.card-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 20px 30px -10px rgba(0, 0, 0, 0.1);
}

/* Nav Item Hover */
.nav-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(156, 163, 175, 0.1);
    border-radius: 6px;
    transform: scale(0);
    opacity: 0;
    transition: all 0.3s ease;
}

.nav-item:hover::before {
    transform: scale(1);
    opacity: 1;
}

/* ========================================
   PREMIUM BUTTON STYLES
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
    font-weight: 500;
    font-family: 'Inter', sans-serif !important;
}

.btn-primary {
    background-color: #111827;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none !important;
}

.btn-primary:hover {
    background-color: #1f2937;
    transform: scale(1.03) translateY(-2px);
    text-decoration: none !important;
}

.btn-animate {
    background: linear-gradient(135deg, #111827 0%, #1f2937 100%) !important;
    box-shadow: 0 4px 14px 0 rgba(17, 24, 39, 0.25) !important;
    position: relative !important;
    overflow: hidden !important;
    font-weight: 600 !important;
    letter-spacing: 0.025em !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.btn-animate:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 20px 0 rgba(17, 24, 39, 0.35) !important;
}

.btn-animate::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: -100% !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.2), 
        transparent) !important;
    transition: left 0.5s ease !important;
}

.btn-animate:hover::before {
    left: 100% !important;
}

/* ========================================
   FORMS
   ======================================== */
input[type="text"],
input[type="email"],
textarea,
select {
    font-family: 'Inter', sans-serif !important;
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s ease;
    background-color: white;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #1f2937;
    box-shadow: 0 0 0 3px rgba(31, 41, 55, 0.1);
}

/* ========================================
   TOAST NOTIFICATIONS
   ======================================== */
#toast-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 9999;
}

.toast {
    background: white;
    border-radius: 8px;
    padding: 16px 20px;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideInRight 0.3s ease-out;
    margin-bottom: 10px;
}

.toast.success {
    border-left: 4px solid #10b981;
}

.toast.error {
    border-left: 4px solid #ef4444;
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* ========================================
   LOADING SPINNER
   ======================================== */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f4f6;
    border-top-color: #111827;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading {
    pointer-events: none !important;
    opacity: 0.6 !important;
}

/* ========================================
   BACK TO TOP BUTTON
   ======================================== */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #111827;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    z-index: 9998;
    border: none;
    text-decoration: none !important;
    opacity: 0;
    transform: translateY(20px);
}

#back-to-top.show {
    opacity: 1;
    transform: translateY(0);
}

#back-to-top:hover {
    background: #1f2937;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* ========================================
   WORDPRESS SPECIFIC FIXES
   ======================================== */
/* Hide admin bar on front-end if needed */
.admin-bar #site-header,
.admin-bar #main-header {
    top: 32px;
}

@media (max-width: 782px) {
    .admin-bar #site-header,
    .admin-bar #main-header {
        top: 46px;
    }
    
    .admin-bar #mobile-menu {
        top: 46px !important;
        height: calc(100vh - 46px) !important;
    }
}

@media (min-width: 783px) and (max-width: 1024px) {
    .admin-bar #mobile-menu {
        top: 32px !important;
        height: calc(100vh - 32px) !important;
    }
}

/* Fix WordPress block editor styles */
.wp-block-button__link {
    font-family: 'Inter', sans-serif !important;
    text-decoration: none !important;
}

/* Fix pagination */
.pagination .page-numbers {
    font-family: 'Inter', sans-serif !important;
}

/* Fix comment form */
.comment-form input,
.comment-form textarea {
    font-family: 'Inter', sans-serif !important;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 768px) {
    .gradient-text {
        font-size: 2rem;
    }
    
    .container {
        padding: 0 16px !important;
    }
    
    .text-4xl {
        font-size: 2rem !important;
    }
    
    .text-5xl {
        font-size: 2.5rem !important;
    }
    
    .text-6xl {
        font-size: 3rem !important;
    }
    
    #mobile-menu {
        width: 100% !important;
        max-width: none !important;
    }
}

@media (max-width: 640px) {
    .mobile-menu-item a {
        padding: 18px 20px !important;
        font-size: 15px !important;
    }
}

/* ========================================
   PERFORMANCE OPTIMIZATIONS
   ======================================== */
.nav-item,
.mobile-menu-item,
.btn-animate,
.hover-scale,
#mobile-menu {
    will-change: transform;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* ========================================
   ACCESSIBILITY IMPROVEMENTS
   ======================================== */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #111827 !important;
    outline-offset: 2px !important;
    border-radius: 4px !important;
}

#mobile-menu a:focus-visible {
    outline: 2px solid #111827 !important;
    outline-offset: -2px !important;
}

@media (prefers-contrast: high) {
    .nav-item a {
        color: #374151 !important;
    }
    
    .active-tab {
        background: #e5e7eb !important;
        border: 2px solid #111827 !important;
    }
}

/* ========================================
   IMAGES
   ======================================== */
img {
    max-width: 100%;
    height: auto;
}

.object-cover {
    object-fit: cover !important;
}

/* ========================================
   SAFE AREA SUPPORT
   ======================================== */
@supports (padding: env(safe-area-inset-top)) {
    #site-header {
        padding-top: env(safe-area-inset-top) !important;
    }
    
    #mobile-menu {
        padding-top: calc(80px + env(safe-area-inset-top)) !important;
        padding-bottom: env(safe-area-inset-bottom) !important;
    }
}

/* ========================================
   GRADIENT TEXT UTILITY
   ======================================== */
.gradient-text {
    background: linear-gradient(135deg, #1a1a1a 0%, #4a4a4a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========================================
   GLASS EFFECT
   ======================================== */
.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ========================================
   GRID PATTERN BACKGROUND
   ======================================== */
.bg-grid-pattern {
    background-image: linear-gradient(rgba(0, 0, 0, 0.1) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(0, 0, 0, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
}

/* ========================================
   TAILWIND CSS CLASSES - WordPress Compatible
   ======================================== */
/* Layout */
.container {
    width: 100%;
    margin-right: auto;
    margin-left: auto;
    padding-right: 1rem;
    padding-left: 1rem;
}

@media (min-width: 640px) {
    .container { max-width: 640px; padding-right: 1.5rem; padding-left: 1.5rem; }
}

@media (min-width: 768px) {
    .container { max-width: 768px; }
}

@media (min-width: 1024px) {
    .container { max-width: 1024px; padding-right: 2rem; padding-left: 2rem; }
}

@media (min-width: 1280px) {
    .container { max-width: 1280px; }
}

/* Grid System */
.grid { display: 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-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-12 { gap: 3rem; }
.gap-16 { gap: 4rem; }

/* Flexbox */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-start { justify-content: flex-start; }
.space-x-1 > * + * { margin-left: 0.25rem; }
.space-x-2 > * + * { margin-left: 0.5rem; }
.space-x-3 > * + * { margin-left: 0.75rem; }
.space-x-4 > * + * { margin-left: 1rem; }
.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; }
.space-y-8 > * + * { margin-top: 2rem; }
.space-y-12 > * + * { margin-top: 3rem; }

/* Spacing */
.p-2 { padding: 0.5rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }

/* Typography */
.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; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

/* Colors */
.text-white { color: #ffffff; }
.text-gray-300 { color: #d1d5db; }
.text-gray-400 { color: #9ca3af; }
.text-gray-500 { color: #6b7280; }
.text-gray-600 { color: #4b5563; }
.text-gray-700 { color: #374151; }
.text-gray-900 { color: #111827; }

.bg-white { background-color: #ffffff; }
.bg-gray-50 { background-color: #f9fafb; }
.bg-gray-100 { background-color: #f3f4f6; }
.bg-gray-200 { background-color: #e5e7eb; }
.bg-gray-900 { background-color: #111827; }

/* Display */
.block { display: block; }
.inline-block { display: inline-block; }
.hidden { display: none; }

/* Position */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }

/* Responsive Utilities */
@media (min-width: 1024px) {
    .lg\:hidden { display: none; }
    .lg\:flex { display: flex; }
    .lg\:block { display: block; }
}

/* END OF MAIN CSS */