body {
    font-family: 'Open Sans', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: #333;
    background-color: #FFFFFF;
    scroll-behavior: smooth;
}

h1, h2, h3 {
    font-family: 'Montserrat', sans-serif;
}

header {
    text-align: center;
    padding: 20px;
    background-color: #F5F5F5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

header img {
    max-width: 120px;
    height: auto;
    object-fit: contain;
    margin: 0 auto;
}

header h1 {
    margin: 10px 0 0;
    font-size: 2.5em;
    color: #2E7D32;
}

.banner {
    background-color: #2E7D32;
    color: white;
    text-align: center;
    padding: 18px;
    font-weight: bold;
    font-size: 1.2em;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    width: 100vw;
    margin: 0;
}

.banner span {
    display: inline-block;
    animation: marquee 8s linear infinite;
    padding-right: 100%;
}

.banner a {
    color: #F0EDE5;
    text-decoration: underline;
}

@keyframes marquee {
    0% { transform: translateX(100%); opacity: 1; }
    80% { transform: translateX(0); opacity: 1; }
    100% { transform: translateX(-100%); opacity: 0; }
}

nav {
    background-color: #FFFFFF;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 15px 0;
    text-align: center;
}

nav a {
    margin: 0 20px;
    text-decoration: none;
    color: #2E7D32;
    font-weight: 600;
    font-size: 1.1em;
}

nav a:hover {
    color: #1B5E20;
}

.video-header {
    position: relative;
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.video-overlay {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 20px;
    color: #FFFFFF;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
}

.video-overlay h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #FFFFFF;
}

.video-overlay p {
    font-size: 1.2em;
    margin-bottom: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.button-container {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.product-banner {
    width: 100%;
    text-align: center;
    background-color: #F5F5F5;
    margin-top: 40px;
    margin-bottom: 40px;
}

.product-banner img {
    width: 100%;
    max-width: 1500px;
    height: 300px;
    object-fit: contain;
}

.main-content {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
    text-align: center;
}

.content-wrapper {
    flex: 1;
    text-align: center;
    margin: 0 auto;
}

.content-wrapper h2,
.content-wrapper h3 {
    text-align: center;
}

.about-section h2 {
    text-align: center;
}

.main-content h2 {
    font-size: 2em;
    color: #2E7D32;
    text-align: center;
    margin-bottom: 20px;
}

.main-content h3 {
    font-size: 1.5em;
    color: #2E7D32;
    margin-bottom: 20px;
}

.subtitle {
    font-size: 1.2em;
    color: #555;
    text-align: center;
    margin-bottom: 40px;
}

.card-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.card {
    flex: 1;
    min-width: 250px;
    max-width: 280px;
    padding: 20px;
    border: 1px solid #E0E0E0;
    border-radius: 8px;
    background-color: #FFFFFF;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    position: relative;
    transition: transform 0.2s ease;
}

.card h3 {
    text-align: center;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #2E7D32;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.1s ease;
}

.card:hover .btn {
    background-color: #1B5E20;
    transform: scale(1.05);
}

.layout-controls {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.layout-btn {
    padding: 8px 15px;
    border: 1px solid #E0E0E0;
    border-radius: 5px;
    background-color: #FFFFFF;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.layout-btn:hover {
    background-color: #E8F5E9;
}

.layout-btn.active {
    background-color: #2E7D32;
    color: white;
    border-color: #2E7D32;
}

.card-container.layout-2 .card { flex: 0 0 calc(50% - 20px); }
.card-container.layout-3 .card { flex: 0 0 calc(33.33% - 20px); }
.card-container.layout-5 .card { flex: 0 0 calc(20% - 20px); }

@media (max-width: 768px) {
    .main-content {
        flex-direction: column;
    }

    .card {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .card-container.layout-2 .card,
    .card-container.layout-3 .card,
    .card-container.layout-5 .card {
        flex: 0 0 100%;
    }

    .header img {
        max-width: 80px;
    }

    .header h1 {
        font-size: 2em;
    }
}

footer {
    background-color: #F5F5F5;
    color: #333;
    padding: 20px;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 20px;
}

.footer-contact {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-contact p {
    margin: 5px 0;
}

.footer-contact a {
    color: #2E7D32;
    text-decoration: none;
}

.footer-contact a:hover {
    color: #1B5E20;
}

.footer-links {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-links a {
    color: #2E7D32;
    text-decoration: none;
    margin: 5px 0;
}

.footer-links a:hover {
    color: #1B5E20;
}

.footer-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-right p {
    margin: 5px 0;
}

.social-media {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 15px;
}

.social-icon {
    width: 30px;
    height: auto;
    transition: transform 0.3s ease;
}

.social-icon:hover {
    transform: scale(1.2);
}

.footer-bottom {
    text-align: center;
    padding-top: 10px;
    border-top: 1px solid #E0E0E0;
}

.footer-offers {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-offers h3 {
    font-size: 1.3em;
    color: #2E7D32;
    margin-bottom: 10px;
}

.footer-offers form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.footer-offers input {
    width: 100%;
    max-width: 200px;
    padding: 8px;
    border: 1px solid #E0E0E0;
    border-radius: 5px;
}

.footer-offers button {
    padding: 8px 16px;
    background-color: #2E7D32;
    color: white;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
}

.footer-offers button:hover {
    background-color: #1B5E20;
}

.installer-container {
    display: flex;
    gap: 20px;
    align-items: stretch;
}

.installer-form {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

#installerForm {
    width: 100%;
    max-width: 300px;
    padding: 20px;
    border: 1px solid #E0E0E0;
    border-radius: 8px;
    background-color: #FFFFFF;
    text-align: center;
    margin: 0 auto;
}

.zipcode-text {
    font-size: 1.2em;
    color: #2E7D32;
    margin-bottom: 15px;
}

#installerForm label {
    display: block;
    margin: 10px 0 5px;
    font-weight: bold;
}

#installerForm input {
    width: 100%;
    padding: 10px;
    border: 1px solid #E0E0E0;
    border-radius: 5px;
    font-family: 'Open Sans', sans-serif;
}

#installerForm button {
    margin-top: 10px;
    padding: 10px 20px;
    background-color: #2E7D32;
    color: white;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
}

#installerForm button:hover {
    background-color: #1B5E20;
}

.map-container {
    flex: 2;
    height: 400px;
    border: 1px solid #E0E0E0;
    border-radius: 8px;
}

.form-container {
    max-width: 600px;
    margin: 20px auto;
    padding: 20px;
    border: 1px solid #E0E0E0;
    border-radius: 8px;
    background-color: #FFFFFF;
    text-align: center;
    display: flex;
    justify-content: center;
}

.form-container label {
    display: block;
    margin: 10px 0 5px;
    font-weight: bold;
}

.form-container input,
.form-container select,
.form-container textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #E0E0E0;
    border-radius: 5px;
    font-family: 'Open Sans', sans-serif;
}

.form-container button {
    padding: 10px 20px;
    background-color: #2E7D32;
    color: white;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
}

.form-container button:hover {
    background-color: #1B5E20;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    top: 20px;
    right: 20px;
    width: 300px;
    background-color: rgba(0,0,0,0.4);
    border-radius: 8px;
}

.modal-content {
    background-color: #FFFFFF;
    padding: 20px;
    border: 1px solid #E0E0E0;
    border-radius: 8px;
    text-align: center;
}

.close {
    color: #aaa;
    float: right;
    font-size: 20px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

.modal-content h2 {
    font-size: 1.5em;
    color: #2E7D32;
    margin-bottom: 15px;
}

.modal-content label {
    display: block;
    margin: 10px 0 5px;
    font-weight: bold;
}

.modal-content input {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
    border: 1px solid #E0E0E0;
    border-radius: 5px;
}

.modal-content button {
    padding: 10px 20px;
    background-color: #2E7D32;
    color: white;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
}

.modal-content button:hover {
    background-color: #1B5E20;
}

.about-section {
    max-width: 1000px;
    margin: 30px auto;
    padding: 0 20px;
}

.about-container {
    display: flex;
    gap: 20px;
    align-items: center;
}

.about-photo {
    flex: 0 0 auto;
    max-width: 400px;
}

.about-photo img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
}

.photo-placeholder {
    width: 100%;
    height: 300px;
    background-color: #E0E0E0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-weight: bold;
    border-radius: 8px;
}

.image-placeholder {
    width: 100%;
    max-width: 800px;
    height: 300px;
    background-color: #E0E0E0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-weight: bold;
    border-radius: 8px;
    margin: 20px auto;
}

.image-placeholder img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.popup {
    display: flex;
    position: fixed;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.popup-content {
    background-color: #FFFFFF;
    background-image: linear-gradient(rgba(46, 125, 50, 0.1), rgba(46, 125, 50, 0.1)), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100' opacity='0.1'%3E%3Cpath d='M50 30c-5 0-9 4-9 9s4 9 9 9 9-4 9-9-4-9-9-9zm0 16c-3.9 0-7-3.1-7-7s3.1-7 7-7 7 3.1 7 7-3.1 7-7 7zm20-10c-2.8 0-5 2.2-5 5s2.2 5 5 5 5-2.2 5-5-2.2-5-5-5zm0 8c-1.7 0-3-1.3-3-3s1.3-3 3-3 3 1.3 3 3-1.3 3-3 3zm-40 0c-2.8 0-5 2.2-5 5s2.2 5 5 5 5-2.2 5-5-2.2-5-5-5zm0 8c-1.7 0-3-1.3-3-3s1.3-3 3-3 3 1.3 3 3-1.3 3-3 3z' fill='%232E7D32'/%3E%3C/svg%3E");
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    max-width: 600px;
    width: 90%;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    border: 2px solid #2E7D32;
}

.close-popup {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    color: #2E7D32;
    cursor: pointer;
    font-weight: bold;
}

.close-popup:hover {
    color: #1B5E20;
}

.full-width-image {
    width: 100%;
    text-align: center;
    margin-bottom: 40px;
}

.full-width-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}