/* Global Styles */
:root {
    --primary-color: #facc07;
    --secondary-color: #e1a81d;
    --dark-color: #333;
    --light-color: #f4f4f4;
    --white-color: #fff;
    --success-color: #28a745;
    --danger-color: #dc3545;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--white-color);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    overflow: hidden; /* For clearfixing */
}

h1, h2, h3 {
    margin-bottom: 15px;
}

h2 {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 40px;
}

p {
    margin-bottom: 15px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

ul {
    list-style: none;
}

.btn {
    display: inline-block;
    padding: 10px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s ease, color 0.3s ease;
    margin-top: 10px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    color: var(--white-color);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
}

/* Header */
header {
    background-color: var(--white-color);
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header .logo h1 {
    margin: 0;
    font-size: 1.8em;
    color: var(--primary-color);
}

header nav ul {
    display: flex;
}

header nav ul li {
    margin-left: 20px;
}

header nav ul li a {
    color: var(--dark-color);
    font-weight: bold;
    transition: color 0.3s ease;
}

header nav ul li a:hover {
    color: var(--primary-color);
}

header .header-cta {
    margin-left: 30px;
}

/* Hero Section */
#hero {
    background-color: var(--light-color);
    padding: 80px 0;
    display: flex;
    align-items: center;
    min-height: 70vh; /* Adjust as needed */
    text-align: center;
    background: linear-gradient(to right, rgba(0, 123, 255, 0.05), rgba(0, 123, 255, 0.05));
}

#hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
}

#hero .hero-content {
    flex: 1;
    padding-right: 40px;
}

#hero .hero-content h2 {
    font-size: 3em;
    margin-bottom: 20px;
    text-align: left;
}

#hero .hero-content p {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #555;
}

#hero .hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Section Padding */
section {
    padding: 80px 0;
}

/* About Preview Section */
#about .container {
    display: flex;
    align-items: center;
    gap: 50px;
}

#about .about-content {
    flex: 1;
}

#about .about-image {
    flex: 1;
    text-align: center;
}

#about .about-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Why Choose Us Section */
#why-choose-us {
    background-color: var(--light-color);
}

#why-choose-us h2 {
    margin-bottom: 50px;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    text-align: center;
}

.feature-item {
    background-color: var(--white-color);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
}

.feature-item i {
    font-size: 3em;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.feature-item h3 {
    font-size: 1.4em;
    margin-bottom: 10px;
}

/* Services Section */
#services h2 {
    margin-bottom: 50px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Two columns by default */
    gap: 30px;
}

.service-category {
    background-color: var(--light-color);
    padding: 30px;
    border-radius: 8px;
}

.service-category h3 {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.service-category ul li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}

.service-category ul li i {
    margin-right: 10px;
    color: var(--primary-color);
}

/* Testimonial Section */
#testimonials {
    background-color: var(--primary-color);
    color: var(--white-color);
    text-align: center;
}

#testimonials h2 {
    color: var(--white-color);
}

.testimonial-slider {
    display: flex;
    overflow-x: auto; /* For basic slider functionality if desired */
    scroll-snap-type: x mandatory;
    padding-bottom: 20px; /* For scrollbar */
}

.testimonial-item {
    flex: 0 0 100%; /* Each item takes full width */
    max-width: 700px; /* Max width for readability */
    margin: 0 auto; /* Center the item */
    scroll-snap-align: start;
    padding: 30px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.testimonial-item p {
    font-size: 1.2em;
    font-style: italic;
    margin-bottom: 30px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-bottom: 10px;
    border: 2px solid var(--white-color);
}

.testimonial-author h4 {
    margin: 0;
    font-size: 1.1em;
}

.testimonial-author span {
    font-size: 0.9em;
    opacity: 0.9;
}

/* FAQ Section */
#faq {
    background-color: var(--light-color);
}

.faq-items {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: var(--white-color);
    border: 1px solid #e0e0e0;
    margin-bottom: 15px;
    border-radius: 8px;
}

.faq-question {
    background-color: transparent;
    border: none;
    width: 100%;
    text-align: left;
    font-size: 1.1em;
    font-weight: bold;
    padding: 15px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s ease;
}

.faq-question:hover {
    color: var(--primary-color);
}

.faq-question i {
    transition: transform 0.3s ease;
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.faq-answer p {
    padding-bottom: 15px;
    margin: 0;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-item.active .faq-answer {
    max-height: 150px; /* Adjust as needed */
    padding: 0 20px 15px;
}

/* Get In Touch Form Section */
#contact {
    background: url('https://via.placeholder.com/1500x800?text=Background+Image') no-repeat center center/cover;
    color: var(--white-color);
    position: relative;
}

#contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* Dark overlay */
    z-index: 1;
}

#contact .container {
    position: relative;
    z-index: 2;
}

#contact h2 {
    color: var(--white-color);
    margin-bottom: 50px;
}

.contact-wrapper {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    gap: 50px;
    justify-content: center;
}

.contact-info {
    flex: 1;
    min-width: 280px; /* Minimum width before wrapping */
}

.contact-info h3 {
    color: var(--white-color);
    margin-bottom: 20px;
}

.contact-info p {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.contact-info i {
    color: var(--primary-color);
    margin-right: 10px;
    font-size: 1.2em;
}

.social-links {
    margin-top: 20px;
}

.social-links a {
    display: inline-block;
    margin-right: 15px;
    font-size: 1.5em;
    color: var(--white-color);
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-color);
}

.contact-form-wrapper {
    flex: 1.5; /* Make form section larger */
    min-width: 300px;
    background-color: var(--white-color);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
}

.form-group textarea {
    resize: vertical;
}

/* Confirmation Message */
.confirmation-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 5px;
    text-align: center;
    font-weight: bold;
}

.confirmation-message p {
    margin: 0;
}

/* Newsletter Section */
#newsletter {
    color: var(--white-color);
}

#newsletter h3 {
    color: var(--white-color);
    margin-bottom: 10px;
}

.newsletter-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    align-items: center;
    justify-content: space-between;
}

.newsletter-content {
    flex: 1;
    min-width: 300px;
}

.newsletter-form-wrapper {
    flex: 1.5;
    min-width: 300px;
}

.newsletter-form-wrapper form {
    background-color: var(--light-color);
    padding: 30px;
    border-radius: 8px;
}

.newsletter-form-wrapper .form-group {
    margin-bottom: 15px;
}

.newsletter-form-wrapper label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: var(--dark-color);
}

.newsletter-form-wrapper input[type="text"],
.newsletter-form-wrapper input[type="email"],
.newsletter-form-wrapper input[type="date"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
}

.newsletter-form-wrapper .checkbox-group {
    display: flex;
    align-items: center;
}

.newsletter-form-wrapper .checkbox-group input[type="checkbox"] {
    margin-right: 10px;
    width: auto;
}

.newsletter-form-wrapper .checkbox-group label {
    margin-bottom: 0;
    font-weight: normal;
    color: var(--dark-color);
}


/* Modals */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1001; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0, 0, 0, 0.7); /* Black w/ opacity */
    padding-top: 60px;
}

.modal-content {
    background-color: var(--white-color);
    margin: 5% auto; /* 15% from the top and centered */
    padding: 30px;
    border: 1px solid #888;
    width: 80%; /* Could be more or less, depending on screen size */
    max-width: 700px;
    border-radius: 8px;
    position: relative;
    animation-name: animatetop;
    animation-duration: 0.4s;
}

@keyframes animatetop {
    from {top: -200px; opacity: 0}
    to {top: 0; opacity: 1}
}

.close-button {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: 20px;
    cursor: pointer;
}

.close-button:hover,
.close-button:focus {
    color: var(--dark-color);
    text-decoration: none;
    cursor: pointer;
}

.modal-content h2 {
    margin-bottom: 20px;
    text-align: center;
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: var(--white-color);
    padding: 50px 0 20px;
    font-size: 0.9em;
}

footer .container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    width: 100%;
    margin-bottom: 30px;
}

.footer-links,
.footer-contact,
.footer-social {
    flex: 1;
    min-width: 200px;
}

.footer-links h4,
.footer-contact h4,
.footer-social h4 {
    color: var(--white-color);
    margin-bottom: 15px;
    font-size: 1.2em;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: #ccc;
    transition: color 0.3s ease;
}

.footer-links ul li a:hover {
    color: var(--primary-color);
}

.footer-contact p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.footer-contact i {
    color: var(--primary-color);
    margin-right: 10px;
}

.footer-social a {
    display: inline-block;
    margin-right: 15px;
    font-size: 1.3em;
    color: var(--white-color);
    transition: color 0.3s ease;
}

.footer-social a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    width: 100%;
    padding-top: 20px;
    border-top: 1px solid #444;
    font-size: 0.8em;
}

/* Responsive Design */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        text-align: center;
    }

    header nav ul {
        margin-top: 15px;
        flex-direction: column;
        align-items: center;
    }

    header nav ul li {
        margin: 5px 0;
    }

    header .header-cta {
        margin-top: 15px;
    }

    #hero .container {
        flex-direction: column;
        text-align: center;
    }

    #hero .hero-content {
        padding-right: 0;
        margin-bottom: 30px;
    }

    #hero .hero-content h2 {
        font-size: 2.5em;
        text-align: center;
    }

    #about .container {
        flex-direction: column;
        text-align: center;
    }

    #about .about-image {
        margin-top: 30px;
    }

    .services-grid {
        grid-template-columns: 1fr; /* Single column on smaller screens */
    }

    .contact-wrapper,
    .newsletter-wrapper {
        flex-direction: column;
    }

    .contact-form-wrapper,
    .newsletter-form-wrapper {
        width: 100%;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-links,
    .footer-contact,
    .footer-social {
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    h2 {
        font-size: 2em;
    }

    #hero .hero-content h2 {
        font-size: 2em;
    }

    .btn {
        padding: 8px 18px;
        font-size: 0.9em;
    }

    header .logo h1 {
        font-size: 1.5em;
    }

    .testimonial-item {
        padding: 20px;
    }

    .modal-content {
        width: 95%;
        margin: 20% auto;
    }
}