/* Custom styles for WildStyles By Rhonda */

:root {
    --emerald-50: #ecfdf5;
    --emerald-100: #d1fae5;
    --emerald-500: #10b981;
    --emerald-600: #059669;
    --emerald-700: #047857;
    --emerald-900: #064e3b;
    --cream-50: #fefdf8;
    --cream-100: #fdf9f0;
    --cream-200: #faf3e0;
}

html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

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

@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(24px);
    }

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

/* Navbar scroll effect */
#navbar.scrolled {
    box-shadow: 0 1px 20px rgba(5, 150, 105, 0.08);
}

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

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

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

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

/* Selection color */
::selection {
    background: var(--emerald-200);
    color: var(--emerald-900);
}

/* Focus styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid var(--emerald-500);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Image loading placeholder */
img {
    background-color: var(--cream-200);
}

/* Mobile menu animation */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

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

/* Button hover lift effect */
button, a {
    transition: all 0.2s ease;
}

/* Card hover effects */
.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}

/* Gradient text utility */
.gradient-text {
    background: linear-gradient(135deg, var(--emerald-600), var(--emerald-400));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Subtle pattern overlay for sections */
.pattern-overlay {
    background-image: radial-gradient(circle, currentColor 1px, transparent 1px);
    background-size: 32px 32px;
    opacity: 0.03;
}

/* Decorative corner accents */
.corner-accent::before,
.corner-accent::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 60px;
    border-color: var(--emerald-200);
    border-style: solid;
    border-width: 0;
}

.corner-accent::before {
    top: -1px;
    left: -1px;
    border-top-width: 2px;
    border-left-width: 2px;
    border-top-left-radius: 16px;
}

.corner-accent::after {
    bottom: -1px;
    right: -1px;
    border-bottom-width: 2px;
    border-right-width: 2px;
    border-bottom-right-radius: 16px;
}
