/* Custom styles for The Heights Barber Shop & Lounge */

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

/* Custom font loading */
@font-face {
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 400 900;
    font-display: swap;
    src: url('https://fonts.gstatic.com/s/playfairdisplay/v28/nuFiD_vYWM6okqP8qRiMKVM8xvg.woff2') format('woff2');
}

/* Base styles */
body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: #FAF7F4;
    color: #1A1A1A;
    line-height: 1.6;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', Georgia, serif;
}

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

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

::-webkit-scrollbar-thumb {
    background: #9a2525;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #7f1f1f;
}

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

/* Animation for reveal elements */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: translateY(0);
        transition: none;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Print styles */
@media print {
    .reveal {
        opacity: 1;
        transform: translateY(0);
    }
    
    nav, footer {
        display: none;
    }
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid #9a2525;
    outline-offset: 2px;
}

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

/* Mobile menu animation */
.mobile-menu {
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.mobile-menu.open {
    transform: translateX(0);
}

/* Hero section responsive */
.hero-asymmetric {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
}

@media (max-width: 1023px) {
    .hero-asymmetric {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    
    .hero-image {
        min-height: 60vh;
    }
}

/* Service card hover effect */
.service-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(154, 37, 37, 0.1);
}

/* CTA button shine effect */
.cta-button {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.cta-button:hover::before {
    left: 100%;
}

/* Stats number styling */
.stats-number {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    font-weight: 900;
    color: #9a2525;
    line-height: 1;
}

@media (max-width: 767px) {
    .stats-number {
        font-size: 3rem;
    }
}

/* Testimonial card styling */
.testimonial-card {
    background: linear-gradient(135deg, #fdf2f2 0%, #faf7f4 100%);
    border-left: 4px solid #9a2525;
}

/* Form styling */
input, textarea {
    transition: all 0.3s ease;
}

input:focus, textarea:focus {
    box-shadow: 0 0 0 3px rgba(154, 37, 37, 0.1);
}

/* Image hover effects */
img {
    transition: opacity 0.3s ease;
}

img:hover {
    opacity: 0.9;
}

/* Loading state for buttons */
button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Error states */
input:invalid:not(:placeholder-shown) {
    border-color: #dc2626;
}

input:valid:not(:placeholder-shown) {
    border-color: #16a34a;
}
