/* Custom styles for Cut Hut Salon */

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

body {
    font-family: 'Lato', sans-serif;
    color: #2c2c2c;
    background-color: #fefdf8;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Smooth transitions for interactive elements */
a, button {
    transition: all 0.3s ease;
}

/* Selection color */
::selection {
    background-color: #065f46;
    color: #fefdf8;
}

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

/* Remove outline for mouse users */
:focus:not(:focus-visible) {
    outline: none;
}

/* Navbar scroll state */
.navbar-scrolled {
    background-color: rgba(254, 253, 248, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 20px rgba(6, 78, 59, 0.08);
}

/* Mobile menu link hover */
.mobile-link:hover {
    transform: scale(1.05);
}

/* Service card image placeholder pattern */
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #065f46, #047857, #065f46);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 8px 8px 0 0;
}

.service-card:hover::before {
    opacity: 1;
}

/* Gallery item overlay */
.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(6, 78, 59, 0.3), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 16px;
}

.gallery-item:hover::after {
    opacity: 1;
}

/* Button ripple effect */
button::after,
a::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
}

/* Leaf pattern for sections */
.leaf-pattern {
    background-color: #fefdf8;
    background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M40 8 C48 20, 60 28, 60 40 C60 52, 48 60, 40 72 C32 60, 20 52, 20 40 C20 28, 32 20, 40 8Z' fill='%23065f46' fill-opacity='0.025'/%3E%3C/svg%3E");
}

/* Form input transitions */
input, textarea, select {
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

input:focus, textarea:focus, select:focus {
    border-color: #065f46 !important;
    box-shadow: 0 0 0 3px rgba(6, 78, 59, 0.15) !important;
    background-color: #ffffff !important;
}

/* Divider ornament */
.divider-ornament {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.divider-ornament::before,
.divider-ornament::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, #065f46, transparent);
}

.divider-ornament span {
    color: #065f46;
    font-size: 1.25rem;
    line-height: 1;
}

/* Testimonial quote styling */
blockquote {
    position: relative;
    padding-left: 1.5rem;
    border-left: 2px solid #bbf7d0;
}

/* Scrollbar styling for webkit */
::-webkit-scrollbar {
    width: 8px;
}

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

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

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

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    a {
        color: #000;
    }
}

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

/* Reduced motion support */
@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;
    }
    
    .marquee-track {
        animation: none;
    }
}

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

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

/* Landscape mobile adjustments */
@media (max-width: 640px) and (orientation: landscape) {
    .min-h-screen {
        min-height: auto;
        padding: 4rem 0;
    }
    
    .mobile-menu {
        display: none;
    }
}

/* Narrow viewport adjustments */
@media (max-width: 360px) {
    .font-serif.text-4xl {
        font-size: 2rem;
        line-height: 1.1;
    }
    
    .grid-cols-1.sm\:grid-cols-2 {
        grid-template-columns: 1fr;
    }
}

/* Dark mode preference (using system preference) */
@media (prefers-color-scheme: dark) {
    /* We keep the custom palette regardless of system preference */
    /* This is intentional for brand consistency */
}
