/* Hair Shaft — Custom Styles */

/* Base reset & typography */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Raleway', system-ui, sans-serif;
    background: #0a0f0d;
    color: #fdfcf8;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Selection color */
::selection {
    background: rgba(212, 168, 75, 0.3);
    color: #fdfcf8;
}

/* Smooth focus for accessibility */
:focus-visible {
    outline: 2px solid #d4a84b;
    outline-offset: 2px;
}

/* Gold gradient text utility */
.gold-gradient {
    background: linear-gradient(135deg, #f5d68a 0%, #d4a84b 50%, #c4923a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Emerald shimmer text */
.emerald-shimmer {
    background: linear-gradient(135deg, #16a34a 0%, #22c55e 50%, #4ade80 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Gold line shimmer animation */
.gold-line {
    height: 2px;
    background: linear-gradient(90deg, transparent, #d4a84b, #f5d68a, #d4a84b, transparent);
    background-size: 200% 100%;
    animation: goldShimmer 3s ease-in-out infinite;
}

@keyframes goldShimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Hero gradient animation */
.hero-gradient {
    background: linear-gradient(135deg, #052e16 0%, #14532d 20%, #0d1410 40%, #1b2b23 60%, #0a0f0d 80%, #052e16 100%);
    background-size: 400% 400%;
    animation: heroShift 12s ease infinite;
}

@keyframes heroShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Dotted pattern overlay */
.pattern-dots {
    background-image: radial-gradient(circle, rgba(212, 168, 75, 0.06) 1px, transparent 1px);
    background-size: 24px 24px;
}

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

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(22, 101, 52, 0.25);
}

/* Image overlay gradient */
.img-overlay {
    position: relative;
    overflow: hidden;
}

.img-overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 15, 13, 0.7) 0%, transparent 60%);
    pointer-events: none;
}

/* Gold button shine effect */
.btn-gold {
    position: relative;
    overflow: hidden;
}

.btn-gold::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(transparent, rgba(255, 255, 255, 0.08), transparent);
    transform: rotate(45deg) translateX(-100%);
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-gold:hover::after {
    transform: rotate(45deg) translateX(100%);
}

/* Navigation link underline */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: #d4a84b;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Floating animation */
.float-gold {
    animation: floatGold 6s ease-in-out infinite;
}

@keyframes floatGold {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-12px) rotate(2deg); }
}

/* Scroll reveal (progressive enhancement) */
.reveal {
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.revealed {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Mobile menu */
.mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.open {
    max-height: 400px;
}

/* Custom select styling */
select option {
    background: #0d1410;
    color: #fdfcf8;
}

/* 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;
    }

    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }

    .hero-gradient {
        animation: none;
        background: linear-gradient(135deg, #052e16, #14532d, #0d1410, #1b2b23, #0a0f0d);
    }
}

/* Tablet and up */
@media (min-width: 768px) {
    .service-card {
        transition-delay: 0.1s;
    }
}

/* Large screens */
@media (min-width: 1024px) {
    .reveal {
        transition-delay: 0.15s;
    }
}

/* High contrast mode support */
@media (forced-colors: active) {
    .gold-gradient {
        -webkit-text-fill-color: gold;
        color: gold;
    }

    .btn-gold {
        border: 2px solid ButtonText;
    }
}

/* Print styles */
@media print {
    .hero-gradient,
    .float-gold,
    .gold-line,
    .pattern-dots {
        animation: none;
        background: none;
    }

    body {
        background: white;
        color: black;
    }

    .gold-gradient {
        -webkit-text-fill-color: #845928;
        color: #845928;
    }
}
