/* Root variables */
:root {
    --primary: #32a852; /* vibrant green */
    --secondary: #eaf2e3; /* soft green background */
    --dark: #222;
    --light: #fff;
    --gray: #f5f5f5;
}

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

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--dark);
    line-height: 1.6;
    background-color: var(--light);

    /* Smooth scrolling for anchor links */
    scroll-behavior: smooth;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Announcement bar */
.announcement-bar {
    width: 100%;
    background-color: var(--primary);
    color: var(--light);
    overflow: hidden;
    white-space: nowrap;
}

.announcement-text {
    display: inline-block;
    padding: 0.5rem 1rem;
    animation: marquee 20s linear infinite;
}

@keyframes marquee {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(-100%);
    }
}

/* Navbar */
.navbar {
    position: sticky;
    top: 0;
    width: 100%;
    background-color: var(--light);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    z-index: 1000;
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.logo img {
    height: 100px;
    width: auto;
    display: block;
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    transition: color 0.3s;
}

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

.phone-button {
    display: inline-block;
    padding: 0.5rem 1rem;
    border: 2px solid var(--primary);
    border-radius: 4px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s, color 0.3s;
}

.phone-button:hover {
    background-color: var(--primary);
    color: var(--light);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.3s, color 0.3s;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--light);
}

.btn-primary:hover {
    background-color: #279c44;
}

/* Hero Section */
.hero {
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--light);
    /* Use a high quality photo as the hero background with a dark overlay for text legibility */
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
        url('images/project20.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 4rem 0;
}

.hero-content {
    max-width: 800px;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

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

/* Hero enhancements */
.hero-subtext {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.hero-highlight {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding: 0.4rem 0.8rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    display: inline-block;
}

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

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

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

/* About and Why Choose Sections */
.about, .why {
    padding: 4rem 0;
    background-color: var(--gray);
}

.about h2, .why h2, .services h2, .projects h2, .contact h2 {
    text-align: center;
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

/* Why Choose custom styles */
.why-description {
    max-width: 900px;
    margin: 0 auto 1.5rem auto;
    font-size: 1rem;
    line-height: 1.8;
}

.why-list {
    list-style: disc;
    padding-left: 2rem;
    max-width: 700px;
    margin: 0 auto;
}

.why-list li {
    margin-bottom: 0.6rem;
    font-size: 1rem;
}

/* Services Section */
.services {
    padding: 4rem 0;
    background-color: var(--light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.service-card {
    background-color: var(--gray);
    border-radius: 8px;
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.service-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.service-card p {
    font-size: 0.9rem;
    color: #555;
}

/* Products Section */
.products {
    padding: 4rem 0;
    background-color: var(--secondary);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.product-card {
    background-color: var(--light);
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    text-align: center;
    padding-bottom: 1.5rem;
}

.product-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    margin-bottom: 1rem;
}

.product-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.product-card p {
    font-size: 0.9rem;
    color: #555;
    padding: 0 1rem;
}

/* Reviews Section */
.reviews {
    padding: 4rem 0;
    background-color: var(--light);
}

.reviews-widget {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
}

/* Live Quote Section */
.quote {
    padding: 4rem 0;
    background-color: var(--secondary);
}

.quote-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 400px;
    margin: 0 auto 1.5rem auto;
}

.quote-form label {
    font-weight: 500;
}

.quote-form input,
.quote-form select {
    padding: 0.7rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: inherit;
    font-size: 0.95rem;
}

.quote-result {
    font-size: 1.2rem;
    margin-top: 1rem;
    text-align: center;
    color: var(--primary);
}

.quote-note {
    font-size: 0.85rem;
    color: #555;
    margin-top: 1rem;
    text-align: center;
}

/* Projects Section */
.projects {
    padding: 4rem 0;
    background-color: var(--secondary);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.project-item {
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

.project-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s;
}

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

/* Contact Section */
.contact {
    padding: 4rem 0;
    background-color: var(--gray);
}

.contact-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: space-between;
    margin-top: 2rem;
}

.contact-info {
    flex: 1 1 300px;
    font-size: 0.95rem;
}

.contact-info h3 {
    margin-bottom: 1rem;
    color: var(--primary);
}

.contact-info p {
    margin-bottom: 0.5rem;
}

.contact-info a {
    color: var(--primary);
    text-decoration: none;
}

.contact-form {
    flex: 1 1 350px;
}

.contact-form h3 {
    margin-bottom: 1rem;
    color: var(--primary);
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.contact-form label {
    font-weight: 500;
}

.contact-form input,
.contact-form textarea {
    padding: 0.7rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: inherit;
    font-size: 0.95rem;
}

.contact-form textarea {
    resize: vertical;
}

.contact-form button {
    align-self: flex-start;
    border: none;
    cursor: pointer;
}

/* Footer */
.footer {
    background-color: var(--dark);
    color: var(--light);
    text-align: center;
    padding: 1rem 0;
    font-size: 0.9rem;
}

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

.lightbox img {
    max-width: 90%;
    max-height: 80%;
    border-radius: 8px;
}

.lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    color: var(--light);
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
}