/* Hair BY TINA - Custom Styles */

/* Base styles and resets */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-padding-top: 80px;
}

body {
    overflow-x: hidden;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #faf5ea;
}

::-webkit-scrollbar-thumb {
    background: #e04e28;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #c93a1e;
}

/* Geometric triangle clip */
.clip-triangle {
    clip-path: polygon(0 100%, 100% 100%, 0 0);
}

/* Selection color */
::selection {
    background: #e04e28;
    color: #fdfbf7;
}

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

/* Smooth image loading */
img {
    opacity: 1;
    transition: opacity 0.3s ease;
}

img[data-src] {
    opacity: 0;
}

/* Loading state for images */
img[loading="lazy"] {
    contain: layout paint;
}

/* Print styles */
@media print {
    nav, .mobile-menu, #menuOverlay, button {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    .hero-split {
        min-height: auto;
    }
    
    section {
        page-break-inside: avoid;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .float-slow, .float-medium, .float-fast {
        animation: none !important;
    }
}

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

/* Tablet adjustments */
@media (max-width: 768px) {
    .hero-split {
        min-height: auto;
    }
    
    .hero-split > div:first-child {
        min-height: 80vh;
        padding: 120px 24px 60px;
    }
    
    .hero-split > div:last-child {
        min-height: 50vh;
    }
}

/* Large screen optimizations */
@media (min-width: 1920px) {
    .max-w-7xl {
        max-width: 80rem;
    }
}

/* Touch device optimizations */
@media (hover: none) {
    .service-card:hover {
        transform: none;
    }
    
    .gallery-item:hover img {
        transform: none;
    }
}

/* Landscape phone adjustments */
@media (max-height: 500px) and (orientation: landscape) {
    nav {
        height: 56px;
    }
    
    .hero-split > div:first-child {
        min-height: auto;
        padding: 80px 24px 40px;
    }
}
