/* --- Color Palette & Variables --- */
:root {
    --primary-green: #0b3d2c; 
    --accent-copper: #c87a3f; 
    --accent-copper-hover: #e08b4a;
    --text-dark: #333333;
    --text-light: #f9f9f9;
    --bg-light: #f4f6f5;
}

/* --- Base Styles --- */
html {
    scroll-padding-top: 110px; 
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Lora', serif; 
    color: var(--text-dark);
    line-height: 1.7;
    background-color: var(--bg-light);
}

h1, h2, h3 {
    font-family: 'Cinzel', serif; 
    color: var(--primary-green);
    margin-bottom: 15px;
}

/* --- Preloader --- */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary-green);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

#preloader img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px solid var(--accent-copper);
    animation: pulse 1.5s infinite ease-in-out;
}

@keyframes pulse {
    0% { transform: scale(0.9); opacity: 0.7; box-shadow: 0 0 0 0 rgba(200, 122, 63, 0.7); }
    50% { transform: scale(1.05); opacity: 1; box-shadow: 0 0 0 15px rgba(200, 122, 63, 0); }
    100% { transform: scale(0.9); opacity: 0.7; box-shadow: 0 0 0 0 rgba(200, 122, 63, 0); }
}

/* --- Navigation --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    background-color: var(--primary-green);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.logo {
    height: 60px;
    border-radius: 50%; 
    border: 2px solid var(--accent-copper);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 25px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-light);
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent-copper);
}

/* --- Buttons --- */
.btn-primary {
    background-color: var(--accent-copper);
    color: white !important;
    padding: 10px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    display: inline-block;
}

.btn-primary:hover {
    background-color: var(--accent-copper-hover);
    transform: translateY(-2px);
}

/* --- Hero Section --- */
.hero {
    height: 90vh;
    background-image: url('../images/IMG_5859.JPG.jpeg');
    background-size: cover;
    background-position: top;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(11, 61, 44, 0.6); 
}

.hero-content {
    position: relative;
    z-index: 1;
    color: var(--text-light);
    max-width: 800px;
    padding: 20px;
}

.hero-content h1 {
    color: var(--accent-copper);
    font-size: 4rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 30px;
}

/* --- Option 1 - Modern Ovals --- */
.hero-pills {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.pill {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px); 
    border: 1px solid var(--accent-copper);
    color: var(--text-light);
    padding: 12px 35px;
    border-radius: 50px; 
    font-family: 'Cinzel', serif;
    font-size: 1.2rem;
    letter-spacing: 2px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, background 0.3s ease;
}

.pill:hover {
    transform: translateY(-5px);
    background: rgba(200, 122, 63, 0.3); 
}

/* --- Reusable Section Styles --- */
.section {
    padding: 80px 5%;
}

.bg-dark {
    background-color: var(--primary-green);
    color: var(--text-light);
}

.bg-dark h2 {
    color: var(--accent-copper);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.divider {
    height: 3px;
    width: 60px;
    background-color: var(--accent-copper);
    margin-bottom: 25px;
}

.center-div {
    margin: 0 auto 25px auto;
}

/* --- Grid Layouts --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-image img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    border: 3px solid var(--accent-copper);
}

.custom-list {
    list-style-type: none;
    margin-top: 15px;
}

.custom-list li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
}

.custom-list li::before {
    content: '✧';
    color: var(--accent-copper);
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

/* --- Services Cards --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    background-color: #0d4a36; 
    padding: 30px;
    border-radius: 10px;
    border-top: 4px solid var(--accent-copper);
    transition: transform 0.3s ease;
    text-align: left;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-card h3 {
    color: var(--accent-copper);
    font-size: 1.5rem;
}

.service-card p {
    font-size: 1rem;
    color: #e0e0e0;
}

/* --- Pricing Section --- */
.pricing-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
    flex-wrap: wrap;
    align-items: stretch; /* Ensures all cards stretch to equal height */
}

.pricing-card {
    background-color: #0d4a36;
    padding: 40px 30px;
    border-radius: 10px;
    border: 2px solid var(--primary-green);
    text-align: center;
    min-width: 250px;
    flex: 1; 
    transition: transform 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    transform: scale(1.05) translateY(-10px);
    border-color: var(--accent-copper);
}

/* UPDATED: Standardizes title height to align the prices */
.pricing-card h3 {
    color: var(--accent-copper);
    font-size: 1.5rem;
    min-height: 80px; 
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.pricing-card .price {
    font-size: 3rem;
    color: var(--text-light);
    font-weight: bold;
    margin: 15px 0;
    font-family: 'Cinzel', serif;
}

/* UPDATED: Tells the description paragraph to fill empty space */
.pricing-card p {
    flex-grow: 1; 
    margin-bottom: 25px;
}

.pricing-card .btn-primary {
    margin-top: auto;
}

/* --- Interactive Gallery Styling --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.community-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    align-items: center;
}

.image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.gallery-img, .community-img {
    width: 100%;
    height: 300px;
    object-fit: cover; 
    display: block;
    transition: transform 0.4s ease;
}

.community-img {
    height: 250px;
    border: 2px solid var(--accent-copper);
}

.hover-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(11, 61, 44, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none; 
}

.hover-overlay span {
    color: white;
    font-size: 2.5rem;
    transform: scale(0.5);
    transition: transform 0.4s ease;
}

.image-wrapper:hover .gallery-img, 
.image-wrapper:hover .community-img {
    transform: scale(1.08);
}

.image-wrapper:hover .hover-overlay {
    opacity: 1;
}

.image-wrapper:hover .hover-overlay span {
    transform: scale(1);
}

/* --- YouTube Banner --- */
.youtube-banner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 40px;
    background-color: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.youtube-img {
    max-width: 400px;
    width: 100%;
    border-radius: 10px;
}

.youtube-text {
    max-width: 400px;
    text-align: left;
}

/* --- Floating Label Contact Form --- */
.contact-container {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
    text-align: left;
}

.input-group {
    position: relative;
    width: 100%;
}

.input-group input, 
.input-group textarea {
    width: 100%;
    padding: 22px 15px 12px;
    border: 1px solid #555;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-light);
    font-family: 'Lora', serif;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.input-group label {
    position: absolute;
    top: 18px;
    left: 15px;
    font-size: 1rem;
    color: #aaa;
    transition: all 0.3s ease;
    pointer-events: none; 
}

.input-group input:focus, 
.input-group textarea:focus {
    border-color: var(--accent-copper);
    box-shadow: 0 0 5px rgba(200, 122, 63, 0.3);
}

.input-group input:focus + label, 
.input-group input:not(:placeholder-shown) + label,
.input-group textarea:focus + label, 
.input-group textarea:not(:placeholder-shown) + label {
    top: 6px;
    left: 12px;
    font-size: 0.75rem;
    color: var(--accent-copper);
    font-weight: bold;
}

.form-btn {
    font-size: 1.1rem;
    padding: 15px;
    margin-top: 10px;
}

/* --- WhatsApp Button (Inline) --- */
.btn-whatsapp {
    background-color: #25D366; 
    color: white !important;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    display: inline-block;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
}

.btn-whatsapp:hover {
    background-color: #128C7E; 
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}

/* --- Floating Widgets --- */
.floating-widgets {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 9999;
}

.floating-whatsapp {
    background-color: #25D366;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, background-color 0.3s ease;
    text-decoration: none;
    margin-left: auto;
}

.floating-whatsapp:hover {
    background-color: #128C7E;
    transform: scale(1.1);
}

.floating-whatsapp svg {
    width: 35px;
    height: 35px;
    fill: white;
}

.back-to-top {
    background-color: var(--accent-copper);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, background-color 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
    opacity: 0;
    visibility: hidden; 
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: auto; 
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--accent-copper-hover);
    transform: scale(1.1);
}

/* --- Footer --- */
footer {
    text-align: center;
    padding: 20px;
    background-color: #052218;
    color: #888;
}

/* --- Image Modal / Lightbox Styles --- */
.modal {
    display: none; 
    position: fixed; 
    z-index: 2000; 
    padding-top: 50px; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0,0,0,0.9); 
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: block;
    opacity: 1;
}

.modal-content-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    padding: 20px;
}

.modal-image {
    max-width: 90%;
    max-height: 85vh; 
    object-fit: contain; 
    border-radius: 10px;
    border: 3px solid white;
    box-shadow: 0 0 20px rgba(255,255,255,0.2);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 35px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.close-modal:hover,
.close-modal:focus {
    color: var(--accent-copper);
    text-decoration: none;
    cursor: pointer;
}

.prev-modal, .next-modal {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 30px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    -webkit-user-select: none;
    background-color: rgba(0,0,0,0.3);
}

.next-modal {
    right: 20px;
    border-radius: 3px 0 0 3px;
}

.prev-modal {
    left: 20px;
}

.prev-modal:hover, .next-modal:hover {
    background-color: rgba(200, 122, 63, 0.8); 
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .nav-links {
        display: none; 
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-pills {
        gap: 10px;
        margin-top: 30px;
    }
    
    .pill {
        padding: 10px 20px;
        font-size: 1rem;
    }

    .youtube-text {
        text-align: center;
    }

    .close-modal {
        right: 15px;
        top: 10px;
    }

    .prev-modal, .next-modal {
        padding: 10px;
        font-size: 20px;
    }
    
    .floating-widgets {
        bottom: 20px;
        right: 20px;
    }
    
    .floating-whatsapp {
        width: 50px;
        height: 50px;
    }
    
    .floating-whatsapp svg {
        width: 28px;
        height: 28px;
    }
    
    .back-to-top {
        width: 45px;
        height: 45px;
        font-size: 1.5rem;
    }
}