/* Custom styles for Thiel Lyle Masonry website */

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

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

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

::-webkit-scrollbar-thumb {
    background: #3a603a;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #2d4a2d;
}

/* Selection color */
::selection {
    background: #3a603a;
    color: #fdfcf8;
}

/* Base styles */
body {
    font-family: 'Lora', Georgia, serif;
    background-color: #fdfcf8;
    color: #2c2c2c;
    line-height: 1.6;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 600;
    line-height: 1.2;
}

/* Navigation */
.nav-link {
    position: relative;
    transition: color 0.3s ease;
}

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

.nav-link:hover {
    color: #3a603a;
}

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

/* Button styles */
.btn-primary {
    background: linear-gradient(135deg, #3a603a 0%, #1e3020 100%);
    color: #fdfcf8;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #4a7a4a 0%, #3a603a 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(58, 96, 58, 0.3);
}

.btn-secondary {
    border: 2px solid #3a603a;
    color: #3a603a;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #3a603a;
    color: #fdfcf8;
}

/* Card styles */
.masonry-card {
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                box-shadow 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.masonry-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(30, 48, 32, 0.15);
}

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

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

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

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

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

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

/* Service image hover */
.service-image {
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.service-card:hover .service-image {
    transform: scale(1.05);
}

/* Form styles */
input, textarea, select {
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input:focus, textarea:focus, select:focus {
    border-color: #3a603a;
    box-shadow: 0 0 0 3px rgba(58, 96, 58, 0.1);
    outline: none;
}

/* Success message */
.success-message {
    display: none;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile menu */
.mobile-menu {
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

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

/* Footer pattern */
.footer-pattern {
    background-image: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(30, 48, 32, 0.03) 10px,
        rgba(30, 48, 32, 0.03) 20px
    );
}

/* Hero texture overlay */
.texture-overlay {
    background-image: 
        linear-gradient(135deg, rgba(30, 48, 32, 0.95) 0%, rgba(62, 96, 58, 0.9) 50%, rgba(30, 48, 32, 0.95) 100%),
        url('https://images.pexels.com/photos/19070167/pexels-photo-19070167.jpeg?auto=compress&cs=tinysrgb&fit=crop&w=1920&h=1080');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .float-slow,
    .float-medium,
    .float-fast {
        animation: none;
    }
}

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