/* Custom CSS Variables and Styles */
:root {
    --green: #002E1F;
    --cream: #FAF5EF;
    --rose: #D3A588;
    --charcoal: #2F2F2F;
}

/* Font families */
.font-playfair {
    font-family: 'Playfair Display', serif;
}

.font-lato {
    font-family: 'Lato', sans-serif;
}

/* Color utilities */
.text-green { color: var(--green); }
.text-cream { color: var(--cream); }
.text-rose { color: var(--rose); }
.text-charcoal { color: var(--charcoal); }
.bg-green { background-color: var(--green); }
.bg-cream { background-color: var(--cream); }
.bg-rose { background-color: var(--rose); }
.bg-charcoal { background-color: var(--charcoal); }
.border-green { border-color: var(--green); }
.border-rose { border-color: var(--rose); }

/* Focus utilities */
.focus\:ring-green:focus {
    --tw-ring-color: var(--green);
}

/* Custom button styles */
.btn-primary {
    background-color: var(--rose);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-block;
    text-decoration: none;
}

.btn-primary:hover {
    background-color: #c19070;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(211, 165, 136, 0.3);
}

.btn-secondary {
    background-color: var(--cream);
    color: var(--green);
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-block;
    text-decoration: none;
}

.btn-secondary:hover {
    background-color: #f5ede3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(250, 245, 239, 0.5);
}

.btn-outline {
    background-color: transparent;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    border: 2px solid white;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-block;
    text-decoration: none;
}

.btn-outline:hover {
    background-color: white;
    color: var(--green);
    transform: translateY(-2px);
}

.btn-cream {
    background-color: var(--cream);
    color: var(--green);
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-block;
    text-decoration: none;
}

.btn-cream:hover {
    background-color: var(--rose);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(211, 165, 136, 0.3);
}

/* Page navigation */
.page {
    display: none;
}

.page.active {
    display: block;
}

/* Navigation link active state */
.nav-link.active {
    color: var(--rose);
    font-weight: 600;
}

/* FAQ styles */
.faq-item .faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 200px;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-question i {
    transition: transform 0.3s ease;
}

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

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

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

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

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

/* Form focus styles */
input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--green);
    ring: 2px var(--green);
}

/* Image hover effects */
img {
    transition: transform 0.3s ease;
}

img:hover {
    transform: scale(1.02);
}

/* Animation utilities */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive text sizing */
@media (max-width: 768px) {
    .text-4xl { font-size: 2.5rem; }
    .text-6xl { font-size: 3rem; }
}

/* Mobile menu styles */
#mobile-menu {
    transition: all 0.3s ease;
}

/* Loading animation */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Success message styles */
.success-message {
    background-color: #d4edda;
    color: #155724;
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid #c3e6cb;
    margin-top: 16px;
}

/* Error message styles */
.error-message {
    background-color: #f8d7da;
    color: #721c24;
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid #f5c6cb;
    margin-top: 16px;
}

/* Sticky header enhancement */
header.scrolled {
    background-color: rgba(0, 46, 31, 0.95);
    backdrop-filter: blur(10px);
}

/* Gallery hover effects */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.gallery-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 46, 31, 0.7);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.gallery-item:hover::before {
    opacity: 1;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Testimonial card enhancements */
.testimonial-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* CTA button glow effect */
.btn-primary.glow {
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        box-shadow: 0 0 10px rgba(211, 165, 136, 0.5);
    }
    to {
        box-shadow: 0 0 20px rgba(211, 165, 136, 0.8);
    }
}
