/* Custom styles for Goldfield Art & Business Services */

:root {
    --emerald-50: #f0fdf4;
    --emerald-100: #dcfce7;
    --emerald-200: #bbf7d0;
    --emerald-600: #16a34a;
    --emerald-700: #15803d;
    --emerald-800: #166534;
    --emerald-900: #14532d;
    --emerald-950: #052e16;
    --cream-50: #fefdf8;
    --cream-100: #fdf9ee;
    --cream-200: #faf3d6;
}

html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

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

::-webkit-scrollbar-track {
    background: var(--cream-100);
}

::-webkit-scrollbar-thumb {
    background: var(--emerald-600);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--emerald-700);
}

/* Hero image grid animation */
.lg\\:col-span-5 {
    opacity: 1;
}

/* Service card hover effect */
.group:hover .group-hover\\:scale-110 {
    transform: scale(1.1);
}

/* Mobile menu animation */
#mobileMenu {
    max-height: 0;
    overflow: hidden;
}

#mobileMenu.open {
    max-height: 400px;
}

/* Menu icon animation */
.menu-line-1 {
    transform-origin: center;
    transition: transform 0.3s ease;
}

.menu-line-2 {
    opacity: 1;
    transition: opacity 0.3s ease;
}

.menu-line-3 {
    transform-origin: center;
    transition: transform 0.3s ease;
}

#menuToggle.active .menu-line-1 {
    transform: translateY(6px) rotate(45deg);
}

#menuToggle.active .menu-line-2 {
    opacity: 0;
}

#menuToggle.active .menu-line-3 {
    transform: translateY(-6px) rotate(-45deg);
}

/* Navbar scroll effect */
#navbar.scrolled {
    box-shadow: 0 4px 20px rgba(20, 83, 45, 0.1);
}

/* Image hover zoom */
img {
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Button focus styles */
button:focus-visible,
a:focus-visible {
    outline: 2px solid var(--emerald-400);
    outline-offset: 2px;
}

/* Input focus styles */
input:focus,
textarea:focus {
    border-color: var(--emerald-400) !important;
    box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.2) !important;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    img,
    .group-hover\:scale-110,
    .hover\\:scale-105 {
        transition: none;
        transform: none;
    }
    
    .animate-pulse {
        animation: none;
    }
}

/* Tablet adjustments */
@media (max-width: 768px) {
    .font-display {
        font-size: 2.5rem;
        line-height: 1.15;
    }
}

/* Mobile optimizations */
@media (max-width: 640px) {
    section {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    
    .lg\\:col-span-7 {
        order: 1;
    }
    
    .lg\\:col-span-5 {
        order: 2;
        margin-top: 2rem;
    }
}

/* Print styles */
@media print {
    header,
    #contactForm,
    iframe {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
