/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2f7d5b;
    --secondary-color: #f0a868;
    --dark-color: #333;
    --light-color: #f4f4f4;
    --success-color: #28a745;
    --error-color: #dc3545;
    --max-width: 1200px;
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: #fff;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 90%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1rem;
}

section {
    padding: 5rem 0;
}

.btn {
    display: inline-block;
    transition: var(--transition);
    font-weight: 600;
    text-align: center;

        padding: 12px 25px;
        text-align: center;
        border-radius: 5px;
        cursor: pointer;
        text-decoration: none;
        border: none;
        margin: 5px;
        font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: #236347;
    border-color: #236347;
}

.btn-secondary {
    background-color: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.btn-secondary:hover {
    background-color: #fff;
    color: var(--primary-color);
}

/* Navigation */
.navbar {
    background-color: rgba(255, 255, 255, 0.9);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    width: 300px;
}

.logo a {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.logo-img {
    width: 100%;
    height: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-menu li {
    margin-left: 1.5rem;
}

.nav-link {
    color: var(--dark-color);
    transition: var(--transition);
    font-weight: 500;
    padding: 0.5rem;
}

.nav-link:hover {
    color: var(--primary-color);
}

.menu-toggle {
    display: none;
    cursor: pointer;
}

.menu-toggle .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--dark-color);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../assets/imgs/hero.webp') no-repeat center center/cover;
    background-position-y: 0px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 80px;
}

.hero-content {
    color: white;
    padding: 2rem;
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
}

.hero h3 {
    margin-top: 100px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* Benefits Section */
.benefits {
    background-color: var(--light-color);
}

.benefits-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.benefit-card {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

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

.benefit-card .icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text p:last-child {
    margin-bottom: 0;
}

.about-image img {
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Why Us Section */
.why-us-list {
    list-style: none;
    padding-left: 0;
    max-width: 800px;
    margin: 30px auto 40px auto;
    /* Center the list */
}

.why-us-list li {
    margin-bottom: 1rem;
    padding-left: 30px;
    position: relative;
    font-size: 1.05rem;
}

.why-us-list li i {
    position: absolute;
    left: 0;
    top: 5px;
    /* Adjust vertical alignment */
    color: var(--primary-color);
    /* Use secondary color for checkmarks */
    font-size: 1.2rem;
}

.why-us-cta {
    text-align: center;
    margin-top: 40px;
}

.why-us-cta p {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.call-us {
    margin-top: 3rem;
    text-align: center;
}

.call-us p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}


.gallery h3 {
    margin-top: 2rem;
    margin-bottom: 1.5rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.gallery-grid img {
    border-radius: 5px;
    transition: var(--transition);
}

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

.scale-in {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.scale-in.appear {
    opacity: 1;
    transform: scale(1);
}

.rotate-in {
    opacity: 0;
    transform: rotate(-5deg) scale(0.95);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.rotate-in.appear {
    opacity: 1;
    transform: rotate(0) scale(1);
}

/* Contact Section */
.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 700px;
    margin: -1.5rem auto 3rem auto;
    /* Adjust spacing */
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.gallery-grid img {
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    /* Ensure images fill grid cells */
    height: 200px;
    /* Fixed height for uniformity */
    object-fit: cover;
    /* Ensure image covers the area */
}

.contact-info-form-container {
    display: flex;
    flex-wrap: wrap;
    /* Allow wrapping on smaller screens */
    gap: 40px;
    margin-top: 40px;
    align-items: flex-start;
    /* Align items top */
}

.contact-details {
    flex: 1 1 40%;
    /* Takes up slightly less space than the form */
    min-width: 280px;
    /* Minimum width before wrapping */
}

.contact-details address {
    font-style: normal;
    margin-bottom: 1rem;
    line-height: 1.7;
}

.contact-details p {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
}

.contact-details i {
    margin-right: 10px;
    color: var(--primary-color);
    width: 20px;
    /* Ensure consistent icon spacing */
    text-align: center;
}

.contact-subtitle {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

/* Contact Form */
.contact-form {
    flex: 1 1 55%;
    /* Takes up slightly more space */
    min-width: 300px;
    background-color: var(--white-color);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    /* Labels are sr-only, but styles kept for potential future use */
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-family: var(--body-font);
    font-size: 1rem;
    transition: border-color var(--transition-speed) ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(47, 125, 91, 0.2);
    /* Focus ring */
}

.form-group textarea {
    resize: vertical;
    /* Allow vertical resize */
    min-height: 100px;
}

.form-submit-btn {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
}

/* Form Validation Styles */
.form-group input.invalid,
.form-group textarea.invalid {
    border-color: #dc3545;
    /* Red border for errors */
}

.error-message {
    color: #dc3545;
    /* Red text for errors */
    font-size: 0.875rem;
    margin-top: 0.25rem;
    min-height: 1em;
    /* Reserve space to prevent layout shifts */
}

.form-status {
    margin-top: 1rem;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    display: none;
    /* Hidden by default */
}

.form-status.success {
    background-color: #d4edda;
    /* Light green background */
    color: #155724;
    /* Dark green text */
    border: 1px solid #c3e6cb;
    display: block;
}

.form-status.error {
    background-color: #f8d7da;
    /* Light red background */
    color: #721c24;
    /* Dark red text */
    border: 1px solid #f5c6cb;
    display: block;
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 3rem 0 1.5rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.footer-info h3 {
    color: var(--primary-color);
}

.footer-links {
    display: flex;
    flex-direction: column;
}

.footer-links a {
    margin-bottom: 0.5rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-color);
}

.copyright {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-in.appear {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.slide-in-left.appear {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.slide-in-right.appear {
    opacity: 1;
    transform: translateX(0);
}

/* Form Validation Styles */
.error {
    border-color: var(--error-color) !important;
}

.error-message {
    color: var(--error-color);
    font-size: 0.85rem;
    margin-top: 0.3rem;
}

.success-message {
    background-color: rgba(40, 167, 69, 0.1);
    color: var(--success-color);
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1rem;
    display: none;
}

/* Responsive Design */
@media (max-width: 992px) {

    .about-content,
    .contact-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-image {
        order: -1;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    .menu-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 1.5rem 0;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        margin-bottom: 1rem;
    }

    .benefits-container {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .footer-links {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    .footer-links a {
        margin-bottom: 0;
    }
}

@media (max-width: 480px) {
    section {
        padding: 3rem 0;
    }

    .hero h1 {
        font-size: 1.75rem;
    }

        .hero h3 {
            font-size: 1.1rem;
        }

    .hero p {
        font-size: 1rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }
}


.why-card,
.benefit-card {
    transition-delay: calc(var(--animation-order) * 0.1s);
}

/* Specific animations for individual elements */
.hero-content {
    animation: heroFadeIn 1.2s ease forwards;
}

@keyframes heroFadeIn {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero .btn {
    animation: buttonPulse 2s infinite;
}

@keyframes buttonPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(47, 125, 91, 0.4);
    }

    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(47, 125, 91, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(47, 125, 91, 0);
    }
}

.icon {
    transition: transform 0.4s ease;
}
