/* Custom CSS for Batteries Plus Phone Repair */

:root {
    --forest-green: #1B4332;
    --forest-dark: #143125;
    --cream: #FDF8F0;
    --warm-brown: #D4A574;
    --stone-50: #FAFAF9;
    --stone-100: #F5F5F4;
    --stone-200: #E7E5E4;
    --stone-500: #78716C;
    --stone-600: #57534E;
    --stone-700: #44403C;
    --stone-800: #292524;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Quicksand', sans-serif;
    color: var(--stone-800);
    background-color: var(--stone-50);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
}

/* Custom color utilities */
.bg-forest-green { background-color: var(--forest-green); }
.bg-forest-dark { background-color: var(--forest-dark); }
.bg-cream { background-color: var(--cream); }
.text-forest-green { color: var(--forest-green); }
.text-cream { color: var(--cream); }
.text-warm-brown { color: var(--warm-brown); }

/* Navbar scroll effect */
.navbar-scrolled {
    box-shadow: 0 4px 20px rgba(27, 67, 50, 0.08);
}

/* Mobile menu transitions */
.mobile-menu {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Floating animation for hero card */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

/* Scroll reveal animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* Stagger children */
.reveal-parent > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-parent > *:nth-child(2) { transition-delay: 0.1s; }
.reveal-parent > *:nth-child(3) { transition-delay: 0.15s; }
.reveal-parent > *:nth-child(4) { transition-delay: 0.2s; }
.reveal-parent > *:nth-child(5) { transition-delay: 0.25s; }
.reveal-parent > *:nth-child(6) { transition-delay: 0.3s; }

/* Form focus styles */
input:focus,
select:focus,
textarea:focus {
    outline: none;
}

/* Smooth hover transitions for cards */
.group:hover .group-hover\:text-cream {
    transition: color 0.3s ease;
}

/* Map styling */
iframe {
    filter: saturate(0.8) contrast(1.05);
    transition: filter 0.3s ease;
}

iframe:hover {
    filter: saturate(1) contrast(1);
}

/* Selection color */
::selection {
    background-color: var(--forest-green);
    color: var(--cream);
}

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

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

::-webkit-scrollbar-thumb {
    background: var(--forest-green);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--forest-dark);
}
