/* ============================================
   UTILITY CLASSES
   Reusable single-purpose utility classes

   Contains:
   - Background colors (bg-*)
   - Text colors (text-*)
   - Layout utilities (relative, absolute, w-*, h-*, max-w-*)
   - Spacing utilities (m-*, p-*, gap-*)
   - Flexbox utilities (flex, items-*, justify-*)
   - Grid utilities (grid, grid-cols-*)
   - Typography utilities (text-*, font-*, leading-*)
   - Display utilities (hidden, block, inline-*)
   - Border utilities (rounded-*)
   - Shadow utilities (shadow-*)
   - Opacity utilities (opacity-*)

   ORGANIZATION:
   Classes are grouped by category for easy navigation
   ============================================ */

/* Background Colors */
.bg-black { background-color: #000000; }
.text-gray-200 { color: #e5e7eb; }
.text-white { color: #ffffff; }
.text-white\/70 { color: rgba(255, 255, 255, 0.7); }
.text-white\/50 { color: rgba(255, 255, 255, 0.5); }

/* Layout */
.relative { position: relative; }
.absolute { position: absolute; }
.w-full { width: 100%; }
.h-full { height: 100%; }
.min-h-screen { min-height: 100vh; }
.max-w-7xl { max-width: var(--luxury-homepage-max-width); }
.max-w-5xl { max-width: 64rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-md { max-width: 28rem; }
.max-w-2xl { max-width: 42rem; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* Flexbox */
.flex { display: flex; }
.flex-1 { flex: 1; }
.flex-shrink-0 { flex-shrink: 0; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}
.flex-gap-05 { gap: 0.5rem; }
.flex-gap-1 { gap: 1rem; }
.flex-gap-15 { gap: 1.5rem; }
.flex-gap-2 { gap: 2rem; }

/* Grid */
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-8 { gap: 2rem; }
.gap-12 { gap: 3rem; }

/* Spacing */
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.p-12 { padding: 3rem; }
.px-4 { padding-left: 0; padding-right: 0; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-24 { padding-top: 6rem; padding-bottom: 6rem; }
.padding-2 { padding: 2rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }
.m-4 { margin: 1rem; }
.margin-0 { margin: 0; }

/* Text */
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.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-sans { font-family: var(--font-family-primary); }
.italic { font-style: italic; }
.uppercase { text-transform: uppercase; }
.tracking-wide { letter-spacing: 0.025em; }
.tracking-wider { letter-spacing: 0.05em; }
.leading-tight { line-height: 1.25; }
.leading-relaxed { line-height: 1.625; }
.text-center { text-align: center; }

/* Borders */
.border { border-width: 1px; }
.border-2 { border-width: 2px; }
.border-white\/10 { border-color: rgba(255, 255, 255, 0.1); }
.border-white\/20 { border-color: rgba(255, 255, 255, 0.2); }
.border-white\/30 { border-color: rgba(255, 255, 255, 0.3); }
.rounded-full { border-radius: 9999px; }

/* Sizing */
.w-2 { width: 0.5rem; }
.w-5 { width: 1.25rem; }
.w-12 { width: 3rem; }
.w-20 { width: 5rem; }
.w-24 { width: 6rem; }
.h-px { height: 1px; }
.h-0\.5 { height: 0.125rem; }
.h-1 { height: 0.25rem; }
.h-2 { height: 0.5rem; }
.h-5 { height: 1.25rem; }
.h-12 { height: 3rem; }
.h-20 { height: 5rem; }
.h-80 { height: 20rem; }
.h-auto { height: auto; }

/* Display */
.hidden { display: none; }
.block { display: block; }
.overflow-hidden { overflow: hidden; }
.space-x-3 > * + * { margin-left: 0.75rem; }
.space-x-4 > * + * { margin-left: 1rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }

/* Z-Index */
.z-10 {
    position: relative;
    z-index: 10;
}

/* Background */
.bg-white { background-color: #ffffff; }
.bg-white\/10 { background-color: rgba(255, 255, 255, 0.1); }
.bg-white\/20 { background-color: rgba(255, 255, 255, 0.2); }
.bg-transparent { background-color: transparent; }
.bg-gradient-to-r { background-image: linear-gradient(to right, var(--tw-gradient-stops)); }
.bg-gradient-to-l { background-image: linear-gradient(to left, var(--tw-gradient-stops)); }
.from-transparent { --tw-gradient-from: transparent; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(0, 0, 0, 0)); }
.from-white { --tw-gradient-from: white; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(255, 255, 255, 0)); }
.to-white { --tw-gradient-to: white; }
.to-transparent { --tw-gradient-to: transparent; }

/* Hover */
.hover\:bg-white\/90:hover { background-color: rgba(255, 255, 255, 0.9); }
.hover\:bg-white\/20:hover { background-color: rgba(255, 255, 255, 0.2); }

/* Focus */
.focus\:outline-none:focus { outline: 2px solid transparent; outline-offset: 2px; }
.focus\:border-white\/50:focus { border-color: rgba(255, 255, 255, 0.5); }

/* Transitions */
.transition-all { transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.duration-300 { transition-duration: 300ms; }

/* Resize */
.resize-none { resize: none; }

/* Object Fit */
.object-cover { object-fit: cover; }

/* Apple-style Corners Effect */
.apple-corners {
    border-radius: 11px;
    position: relative;
}

.apple-corners::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 12px;
    padding: 1px;
    background: transparent;
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: 10;
}

/* Media Glow Effect */
.media-glow {
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.6),
                0 0 60px rgba(255, 255, 255, 0.4),
                0 0 90px rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.media-glow:hover {
    box-shadow: 0 0 40px rgba(255, 255, 255, 0.8),
                0 0 80px rgba(255, 255, 255, 0.6),
                0 0 120px rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Glass Card Effect */
.glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
}

/* Responsive padding overrides - remove horizontal padding for consistent max-width */
@media (min-width: 640px) {
    .sm\:px-6 { padding-left: 0; padding-right: 0; }
}

@media (min-width: 1024px) {
    .lg\:px-8 { padding-left: 0; padding-right: 0; }
}

