/* Custom styles for Laurel Branch Backyard Nursery */

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

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

/* Custom font classes */
.font-display {
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
}

.font-body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

/* Geometric decorative elements */
.geo-circle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.geo-square {
    position: absolute;
    pointer-events: none;
    transform: rotate(15deg);
}

.geo-triangle {
    position: absolute;
    width: 0;
    height: 0;
    pointer-events: none;
}

/* Floating animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-12px);
    }
}

@keyframes float-delayed {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-8px);
    }
}

@keyframes float-slow {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-16px) rotate(3deg);
    }
}

.float-1 {
    animation: float 4s ease-in-out infinite;
}

.float-2 {
    animation: float-delayed 5s ease-in-out infinite 0.5s;
}

.float-3 {
    animation: float-slow 6s ease-in-out infinite 1s;
}

.float-4 {
    animation: float 4.5s ease-in-out infinite 1.5s;
}

.float-5 {
    animation: float-delayed 5.5s ease-in-out infinite 0.8s;
}

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

.reveal-hidden {
    opacity: 0;
    transform: translateY(30px);
}

@media (prefers-reduced-motion: no-preference) {
    .reveal-on-scroll {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
    
    .reveal-on-scroll.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero card styles */
.hero-card {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* Button hover effects */
.btn-primary {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::after {
    left: 100%;
}

/* Service card hover */
.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(44, 79, 33, 0.15);
}

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

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

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

::-webkit-scrollbar-track {
    background: #f5f5ed;
}

::-webkit-scrollbar-thumb {
    background: #4d8038;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #396429;
}

/* Pattern overlay */
.pattern-dots {
    background-image: radial-gradient(circle, rgba(77, 128, 56, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid #4d8038;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .reveal-on-scroll {
        opacity: 1;
        transform: none;
    }
}

/* Print styles */
@media print {
    nav,
    .geo-circle,
    .geo-square,
    .float-1,
    .float-2,
    .float-3,
    .float-4,
    .float-5 {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .service-card {
        border: 2px solid #000;
    }
    
    .btn-primary {
        border: 2px solid currentColor;
    }
}

/* Landscape orientation on mobile */
@media (max-width: 640px) and (orientation: landscape) {
    #hero {
        min-height: auto;
        padding: 80px 0;
    }
    
    .hero-card {
        max-width: 100%;
    }
}

/* Tablet adjustments */
@media (min-width: 641px) and (max-width: 1024px) {
    .geo-circle {
        opacity: 0.5;
    }
}

/* Large screen optimizations */
@media (min-width: 1280px) {
    .hero-card {
        box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    }
}
