/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 20px;
    line-height: 1.6;
    color: #333;
    min-height: 100vh;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: column;
    flex-direction: column;
}

/* Accessibility */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Header */
header {
    background-color: #2c3e50;
    /* background-image: url('/header.jpg'); */
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
    color: white;
    text-align: center;
    padding: 2rem 0;
}

header p {
    margin: -10px 0 0;
}

.logo {
    width: 300px;
    height: auto;
    margin: 0 auto -50px auto;
    position: relative;
    transform: translateX(-5px);
}

/* Navigation */
nav {
    background-color: #4169E1;
    padding: 1rem;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: -webkit-flex;
    display: flex;
    -webkit-justify-content: center;
    justify-content: center;
    -webkit-flex-wrap: wrap;
    flex-wrap: wrap;
    gap: 2rem;
    -webkit-align-items: center;
    align-items: center;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

nav a:hover {
    text-decoration: underline;
}

.nav-button {
    background: none;
    border: none;
    color: white;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    padding: 0;
}

.nav-button:hover {
    text-decoration: underline;
}

/* Main content */
#mainContent {
    -webkit-flex: 1;
    flex: 1;
}

h1 {
    margin: 0;
    font-size: 2.5rem;
    text-align: center;
}

h1 img {
    width: 300px;
    height: auto;
}

h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    text-align: center;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    text-align: center;
}

h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    text-align: center;
}

.container {
    max-width: 800px;
    margin: auto;
    padding: 0;
    text-align: center;
    position: relative;
    width: 100%;
}

.intro {
    margin-bottom: 40px;
}

.product-container {
    display: -webkit-flex;
    display: flex;
    -webkit-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-justify-content: space-around;
    justify-content: space-around;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    gap: 60px;
}

.product-card {
    width: 450px;
    padding: 15px;
    border: 1px solid #ddd;
    -webkit-transition: filter 0.3s ease;
    transition: filter 0.3s ease;
}

.product-card.blur {
    -webkit-filter: blur(4px);
    filter: blur(4px);
}

.product-title {
    cursor: pointer;
    color: #2c3e50;
    margin-bottom: 10px;
    text-align: center;
}

.details {
    display: none;
    padding: 10px 0;
	margin-left:20px;
}

.details.show {
    display: block;
}

.buy-btn {
    display: inline-block;
    width: 100%;
    padding: 20px;
    background: #3498db;
    color: white;
    border: none;
    cursor: pointer;
    margin-top: 10px;
    font-size: 1rem;
	text-align: center;
	text-decoration: none;
	border-radius: 5px;
}

.buy-btn:hover {
    background: #2980b9;
}

/* Email signup */
.email-signup {
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: column;
    flex-direction: column;
    gap: 15px;
    max-width: 400px;
    margin: 0 auto;
}

/* Form styles */
.form-container {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    text-align: left;
    width: 100%;
    max-width: 100%;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

.form-container h2 {
    text-align: center;
}

.form-container .discount-notice {
    text-align: center;
    font-style: italic;
    color: #d32f2f;
    margin-bottom: 20px;
    font-weight: bold;
    display: block;
}

label {
    font-weight: bold;
    display: block;
    margin: 10px 0 5px;
}

input[type="tel"],
input[type="text"],
input[type="email"],
select,
input {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

#state {
    width: 60px;
}

 .form-container .checkbox-group {
    margin-bottom: 15px;
    display: -webkit-flex;
    display: flex;
    -webkit-align-items: center;
    align-items: center;
    -webkit-justify-content: flex-start;
    justify-content: flex-start;
    text-align: left;
    width: 100%;
    -webkit-flex-shrink: 0;
    flex-shrink: 0;
}

.form-container .checkbox-group input[type="radio"] {
    margin: 0 5px 0 0;
    vertical-align: middle;
    -webkit-flex: 0 0 auto;
    flex: 0 0 auto;
}

.form-container .checkbox-group label {
    display: inline;
    margin: 0;
    vertical-align: middle;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-flex: 1 1 auto;
    flex: 1 1 auto;
}
button[type="submit"] {
    background-color: #2980b9;
    color: white;
    padding: 12px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1rem;
    width: auto; /* Reverted to auto for submit button */
    display: block;
}

button[type="submit"]:hover {
    background-color: #3498db;
}

.error {
    color: red;
    font-size: 14px;
    display: none;
    margin-bottom: 10px;
}

.form-container .sms-disclosure {
    font-size: 12px;
    color: #666;
    margin-top: 20px;
    text-align: left;
}

/* Footer */
footer {
    text-align: center;
    padding: 10px;
    background-color: #ecf0f1;
    -webkit-background-clip: padding-box;
    margin-top: 40px;
    width: 100%;
    position: relative;
    z-index: 1;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 1000;
    -webkit-overflow-scrolling: touch;
}

.modal-content {
    background-color: white;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 20px;
    width: 70%;
    max-width: 600px;
    max-height: 70vh;
    overflow-y: auto;
    z-index: 1001;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

.modal-content:after {
    content: "";
    display: table;
    clear: both;
}

.close {
    float: right;
    cursor: pointer;
    font-size: 24px;
}

.confirmation {
    text-align: center;
    padding: 20px;
    color: #2c3e50;
    display: none;
}

/* Blur effect */
.blur-background {
    -webkit-filter: blur(60px);
    filter: blur(60px);
    -webkit-transition: -webkit-filter 0.3s ease;
    transition: filter 0.3s ease;
}

body.modal-open {
    overflow: hidden;
}

/* Media queries */
@media (max-width: 768px) {
    h1 {
        font-size: 1.8rem;
    }

    .container {
        padding: 15px;
    }

    .product-container {
        padding: 15px;
    }

    .product-card {
        width: 100%;
    }

    .modal-content {
        width: 90%;
        max-width: none;
    }

    .form-container {
        padding: 15px;
    }
}
/*Newly Added for new index*/

/* Hero Section */
.hero {
    background: url('/images/aerial-neighborhood.jpg') no-repeat center/cover;
    padding: 60px 20px;
    text-align: center;
    color: #fff;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* Overlay for readability */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 40px;
    margin: 0 0 10px;
    color: #333;
}

.hero p {
    font-size: 20px;
    margin: 0 0 20px;
    color: #666;
}

.hero .logo {
    width: 150px;
}

/* Trust Section */
.trust-section {
    padding: 40px 20px;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.trust-section h2 {
    font-size: 24px;
    color: #333;
    margin-bottom: 30px;
}

.trust-icons {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.trust-icons div {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 200px;
}

.trust-icons img {
    width: 50px;
    margin-bottom: 10px;
}

/* Testimonial Slider */
.testimonial-slider {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
    overflow: hidden;
}

.testimonial {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background: #f5f5f5;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    font-style: italic;
    color: #666;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.testimonial.active {
    position: relative;
    opacity: 1;
}

.testimonial p:last-child {
    text-align: right;
    font-size: 14px;
    margin-top: 10px;
}

/* Email Signup Section */
.email-signup {
    padding: 40px 20px;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.email-signup form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.email-signup label {
    text-align: left;
}

.email-signup input[type="email"] {
    width: 100%;
    max-width: 300px;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.email-signup button {
    padding: 10px 20px;
    background: #007BFF;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.email-signup button:hover {
    background: #0056b3;
}

/* Footer */
.footer {
    background: #f5f5f5;
    padding: 20px;
    text-align: center;
}

/* Media Queries */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 32px;
    }
    .hero p {
        font-size: 18px;
    }
    .trust-icons {
        gap: 20px;
    }
}