/* Hair With Flair — Custom Styles */

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

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Ensure all links are readable */
a {
    text-decoration: none;
}

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

/* Selection color */
::selection {
    background: #166534;
    color: #fefce8;
}

/* Custom focus styles for accessibility */
:focus-visible {
    outline: 2px solid #166534;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    nav, .mobile-menu, #contactForm, .cta-btn {
        display: none !important;
    }
    body {
        background: white !important;
        color: black !important;
    }
}

/* Reduced motion */
@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;
    }
    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* Tablet adjustments */
@media (min-width: 768px) and (max-width: 1023px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }
}

/* Small phone adjustments */
@media (max-width: 360px) {
    .font-serif.text-5xl,
    .font-serif.text-6xl,
    .font-serif.text-7xl {
        font-size: 2.5rem !important;
    }
}

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

/* Image loading placeholder */
img {
    background-color: #dcfce7;
}

/* Ensure navbar text contrast on scroll */
.nav-glass.scrolled {
    background: rgba(254, 254, 247, 0.97) !important;
    box-shadow: 0 1px 20px rgba(22, 101, 52, 0.08);
}

/* Service card image overlay on hover */
.service-card .h-56 {
    position: relative;
}

.service-card .h-56::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(22, 101, 52, 0.1) 0%, transparent 40%);
    pointer-events: none;
}

/* Testimonial quote styling */
.testimonial-card p:first-child::before {
    content: '"';
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 4rem;
    line-height: 0.8;
    color: #166534;
    opacity: 0.2;
    position: relative;
    top: 0.3em;
    margin-right: -0.1em;
}
