/* Custom styles complementing Tailwind CSS */

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

/* Base typography */
body {
    font-family: 'Lato', 'Helvetica Neue', Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Serif headings */
h1, h2, h3, h4, h5 {
    font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
}

/* Hero gradient background */
.hero-gradient {
    background: linear-gradient(135deg, #0c321d 0%, #155531 30%, #1f6f40 60%, #329158 100%);
}

/* Cream backgrounds */
.cream-bg {
    background-color: #fdf9ed;
}

/* Custom color utilities */
.text-emerald-900-custom { color: #0c321d; }
.text-emerald-800-custom { color: #114126; }
.text-emerald-700-custom { color: #155531; }
.bg-emerald-900-custom { background-color: #0c321d; }
.bg-emerald-800-custom { background-color: #114126; }
.bg-cream-100-custom { background-color: #fdf9ed; }
.bg-cream-50-custom { background-color: #fefdf8; }
.border-emerald-800-custom { border-color: #114126; }
.border-emerald-200-custom { border-color: #c3ebd1; }

/* Navbar scroll effect */
.nav-scrolled {
    background-color: rgba(254, 253, 248, 0.97) !important;
    box-shadow: 0 2px 20px rgba(12, 50, 29, 0.08) !important;
}

.nav-scrolled .nav-link {
    color: #114126 !important;
}

.nav-scrolled .nav-logo {
    color: #114126 !important;
}

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

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

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    
    .reveal.visible {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Card hover effects */
.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(12, 50, 29, 0.12);
}

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

/* Primary button styles */
.btn-primary {
    background-color: #114126;
    color: #fdf9ed;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-primary:hover {
    background-color: #155531;
    transform: translateY(-1px);
}

/* Secondary button styles */
.btn-secondary {
    background-color: transparent;
    color: #fdf9ed;
    border: 1.5px solid rgba(253, 249, 237, 0.7);
    transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
}

.btn-secondary:hover {
    background-color: rgba(253, 249, 237, 0.1);
    border-color: rgba(253, 249, 237, 1);
    transform: translateY(-1px);
}

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

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

/* Decorative line */
.decorative-line {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #114126, #329158);
}

/* Input focus styles */
input:focus,
textarea:focus {
    outline: none;
    border-color: #1f6f40 !important;
    box-shadow: 0 0 0 3px rgba(31, 111, 64, 0.1);
}

/* Image hover zoom */
img {
    transition: transform 0.5s ease;
}

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

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

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

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

/* Mobile responsiveness adjustments */
@media (max-width: 768px) {
    .hero-gradient {
        background: linear-gradient(180deg, #0c321d 0%, #155531 50%, #1f6f40 100%);
    }
    
    h1, h2, h3 {
        line-height: 1.2;
    }
}
