/* Banzik V9 - Utility Classes */

/* Mobile Layout Utilities */
.overflow-hidden-x {
    overflow-x: hidden;
}

/* Touch-friendly utilities */
.touch-target {
    min-height: 44px;
    min-width: 44px;
}

.no-select {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Mobile viewport fixes */
.mobile-optimized {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
}

/* Smooth scrolling for iOS */
.smooth-scroll {
    -webkit-overflow-scrolling: touch;
}

/* Mobile-first container constraints */
.mobile-container {
    max-width: 100vw;
    overflow-x: hidden;
}

/* Prevent horizontal scroll on mobile */
.mobile-safe {
    max-width: calc(100vw - 2rem);
    margin-left: auto;
    margin-right: auto;
}

/* Mobile typography optimization */
.mobile-text-base {
    font-size: 16px;
    line-height: 1.5;
}

@media (max-width: 480px) {
    .mobile-text-base {
        font-size: 14px;
        line-height: 1.4;
    }

    /* Extra safe margins on very small screens */
    .mobile-safe {
        max-width: calc(100vw - 1rem);
    }
}

/* Spacing Utilities */
.section-padding {
    padding: 4rem 0;
}

/* Mobile-optimized section padding */
@media (max-width: 768px) {
    .section-padding {
        padding: 2.5rem 0;
    }
}

@media (max-width: 480px) {
    .section-padding {
        padding: 2rem 0;
    }
}

.container-padding {
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 640px) {
    .container-padding {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container-padding {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

/* Typography Utilities */
.text-balance {
    text-wrap: balance;
}

.text-pretty {
    text-wrap: pretty;
}

.nowrap {
    white-space: nowrap;
}

.font-light {
    font-weight: 300;
}

.font-regular {
    font-weight: 400;
}

.font-medium {
    font-weight: 500;
}

.font-semibold {
    font-weight: 600;
}

.font-bold {
    font-weight: 700;
}

.font-extrabold {
    font-weight: 800;
}

/* Responsive Display Utilities */
.hidden-mobile {
    display: none !important;
}

.hidden-desktop {
    display: block !important;
}

@media (min-width: 1024px) {
    .hidden-mobile {
        display: block !important;
    }

    .hidden-desktop {
        display: none !important;
    }
}

/* Color Utilities */
.text-primary {
    color: var(--primary);
}

.text-secondary {
    color: var(--secondary);
}

.text-accent {
    color: var(--accent);
}

.text-accent-light {
    color: var(--accent-light);
}

.text-charcoal {
    color: var(--charcoal);
}

.bg-primary {
    background-color: var(--primary);
}

.bg-secondary {
    background-color: var(--secondary);
}

.bg-accent {
    background-color: var(--accent);
}

.bg-cream {
    background-color: var(--cream);
}

/* Border Utilities */
.border-accent {
    border-color: var(--accent);
}

.border-accent-light {
    border-color: var(--accent-light);
}

/* Rounded Utilities */
.rounded-xl {
    border-radius: 0.75rem;
}

.rounded-2xl {
    border-radius: 1rem;
}

.rounded-3xl {
    border-radius: 1.5rem;
}

/* Shadow Utilities */
.shadow-luxury {
    box-shadow: 0 20px 60px rgba(15, 26, 46, 0.15), 0 8px 24px rgba(201, 169, 97, 0.08);
}

.shadow-elegant {
    box-shadow: 0 10px 40px rgba(15, 26, 46, 0.1);
}

.shadow-soft {
    box-shadow: 0 4px 20px rgba(15, 26, 46, 0.08);
}

/* Backdrop Utilities */
.backdrop-blur-sm {
    backdrop-filter: blur(4px);
}

.backdrop-blur {
    backdrop-filter: blur(8px);
}

.backdrop-blur-md {
    backdrop-filter: blur(12px);
}

.backdrop-blur-lg {
    backdrop-filter: blur(16px);
}

.backdrop-blur-xl {
    backdrop-filter: blur(20px);
}

/* Transform Utilities */
.transform-gpu {
    transform: translateZ(0);
}

.hover-lift {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hover-lift:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(15, 26, 46, 0.15);
}

/* Transition Utilities */
.transition-luxury {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.transition-smooth {
    transition: all 0.3s ease;
}

.transition-fast {
    transition: all 0.2s ease;
}

/* Position Utilities */
.sticky-nav {
    position: sticky;
    top: 0;
    z-index: 50;
}

.fixed-full {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Flex Utilities */
.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.flex-start {
    display: flex;
    align-items: flex-start;
}

.flex-end {
    display: flex;
    align-items: flex-end;
}

/* Grid Utilities */
.grid-auto-fit {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-auto-fill {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

/* Aspect Ratio Utilities */
.aspect-square {
    aspect-ratio: 1 / 1;
}

.aspect-video {
    aspect-ratio: 16 / 9;
}

.aspect-portrait {
    aspect-ratio: 3 / 4;
}

/* Overflow Utilities */
.overflow-hidden-x {
    overflow-x: hidden;
}

.overflow-hidden-y {
    overflow-y: hidden;
}

.overflow-scroll-smooth {
    scroll-behavior: smooth;
}

/* Display Utilities - Duplicate removed to prevent conflicts */

/* Text Size Utilities */
.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;
}

/* Line Height Utilities */
.leading-none {
    line-height: 1;
}

.leading-tight {
    line-height: 1.25;
}

.leading-snug {
    line-height: 1.375;
}

.leading-normal {
    line-height: 1.5;
}

.leading-relaxed {
    line-height: 1.625;
}

.leading-loose {
    line-height: 2;
}

/* Letter Spacing Utilities */
.tracking-tighter {
    letter-spacing: -0.05em;
}

.tracking-tight {
    letter-spacing: -0.025em;
}

.tracking-normal {
    letter-spacing: 0em;
}

.tracking-wide {
    letter-spacing: 0.025em;
}

.tracking-wider {
    letter-spacing: 0.05em;
}

.tracking-widest {
    letter-spacing: 0.1em;
}

/* Cursor Utilities */
.cursor-pointer {
    cursor: pointer;
}

.cursor-not-allowed {
    cursor: not-allowed;
}

.cursor-wait {
    cursor: wait;
}

/* User Select Utilities */
.select-none {
    user-select: none;
}

.select-text {
    user-select: text;
}

.select-all {
    user-select: all;
}

/* Pointer Events Utilities */
.pointer-events-none {
    pointer-events: none;
}

.pointer-events-auto {
    pointer-events: auto;
}

/* Accessibility Utilities */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.focus-visible:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Animation Delay Utilities */
.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

.delay-500 {
    animation-delay: 0.5s;
}

.delay-700 {
    animation-delay: 0.7s;
}

.delay-1000 {
    animation-delay: 1s;
}

/* Print Utilities */
@media print {
    .print-hidden {
        display: none !important;
    }

    .print-visible {
        display: block !important;
    }
}