/* KKay Beauty Studio - Custom Styles */

/* Base resets */
*, *::before, *::after {
    box-sizing: border-box;
}

/* Smooth scrolling for anchor links */
html {
    scroll-behavior: smooth;
}

/* Selection color */
::selection {
    background: #a21caf;
    color: white;
}

/* Focus visible styles */
:focus-visible {
    outline: 2px solid #a21caf;
    outline-offset: 2px;
}

/* Body base */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Image optimization */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Prevent layout shift on images */
img[width][height] {
    object-fit: cover;
}

/* Custom focus ring for buttons */
button:focus-visible,
a:focus-visible {
    outline: 2px solid #a21caf;
    outline-offset: 2px;
}

/* Input styling */
input,
select,
textarea {
    font-family: inherit;
    font-size: inherit;
}

/* Remove default button styles */
button {
    background: none;
    border: none;
    cursor: pointer;
}

/* Remove default link styles in nav */
.nav-link {
    text-decoration: none;
}

/* Mobile menu transitions */
.mobile-menu {
    will-change: max-height;
}

/* Ensure all interactive elements are keyboard accessible */
a, button {
    transition: all 0.2s ease;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .float-1, .float-2, .float-3 {
        animation: none !important;
    }
}

/* Print styles */
@media print {
    nav, .mobile-menu, #backToTop, .geo-circle, .geo-square {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    a {
        text-decoration: underline;
    }
}

/* High contrast mode support */
@media (forced-colors: active) {
    .service-card {
        border: 1px solid ButtonText;
    }
}

/* Landscape phone adjustments */
@media (max-width: 480px) and (orientation: landscape) {
    #hero {
        min-height: auto;
        padding-top: 6rem;
        padding-bottom: 4rem;
    }
    
    .font-display.text-4xl {
        font-size: 2rem;
    }
}

/* Tablet adjustments */
@media (min-width: 768px) and (max-width: 1023px) {
    .service-card {
        padding: 1.5rem;
    }
}

/* Large desktop */
@media (min-width: 1280px) {
    .service-card:hover {
        transform: translateY(-8px);
    }
}

/* Ensure proper rendering on all devices */
@media screen and (min-width: 0) and (max-width: 9999px) {
    body {
        min-height: 100vh;
    }
}
