/* Custom styles to complement Tailwind CSS */
/* Based on Leanne Gilroy's website design */

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

body {
    font-family: 'Lora', serif;
    line-height: 1.6;
    color: #1a202c;
    background-color: #ffffff;
}

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

/* Custom animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.8s ease-out;
}

.animate-fadeIn {
    animation: fadeIn 0.6s ease-out;
}

/* Hero section styles */
.hero-gradient {
    background: linear-gradient(135deg, rgba(45, 55, 72, 0.1) 0%, rgba(255, 255, 255, 0.9) 100%);
}

/* Gallery hover effects */
.gallery-item {
    transition: all 0.3s ease;
    overflow: hidden;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
    transition: transform 0.3s ease;
}

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

/* Button styles */
.btn-primary {
    background-color: #2d3748;
    color: white;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    border: 2px solid #2d3748;
    font-family: 'Playfair Display', serif;
}

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

.btn-outline {
    background-color: transparent;
    color: #2d3748;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    border: 2px solid #2d3748;
    font-family: 'Playfair Display', serif;
}

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

/* Form styles */
.form-input, .form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    font-size: 14px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background-color: #f8f9fa;
}

.form-input:focus, .form-textarea:focus {
    outline: none;
    border-color: #2d3748;
    box-shadow: 0 0 0 3px rgba(45, 55, 72, 0.1);
    background-color: white;
}

/* Loading spinner */
.spinner {
    border: 2px solid #f3f3f3;
    border-top: 2px solid #2d3748;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
    display: inline-block;
    margin-right: 8px;
}

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

/* Alert messages */
.alert {
    padding: 12px 16px;
    border-radius: 5px;
    margin-bottom: 16px;
    font-size: 14px;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Mobile navigation toggle */
.mobile-menu {
    transition: all 0.3s ease;
}

.mobile-menu.show {
    display: block !important;
}

/* Lightbox styles for gallery */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.lightbox-close:hover {
    color: #4a5568;
}

/* Section spacing */
.section-padding {
    padding: 80px 0;
}

.section-padding-sm {
    padding: 60px 0;
}

/* Text shadows for hero text */
.text-shadow {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .section-padding {
        padding: 60px 0;
    }
    
    .section-padding-sm {
        padding: 40px 0;
    }
    
    .btn-primary, .btn-outline {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 20px;
    right: 20px;
    background-color: #25d366;
    color: #ffffff;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.whatsapp-float:hover {
    background-color: #128c7e;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px 0 rgba(0, 0, 0, 0.3);
    color: white;
}

.whatsapp-float svg {
    width: 32px;
    height: 32px;
}

@media screen and (max-width: 767px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 15px;
        right: 15px;
        font-size: 22px;
    }
    
    .whatsapp-float svg {
        width: 28px;
        height: 28px;
    }
}