/* Basic Reset and Variables */
:root {
    --primary-color: #ff6b6b; /* Coral Red */
    --secondary-color: #f08a5d; /* Orange */
    --accent-color: #f9ed69; /* Yellow */
    --dark-color: #2b2d42; /* Dark Blue-Gray */
    --light-color: #fff3e0; /* Cream */
    --max-width: 1200px;
    --header-height: 80px;
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    scroll-behavior: smooth;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

ul {
    list-style: none;
}

/* Headings */
h1, h2, h3 {
    margin-bottom: 1rem;
    line-height: 1.2;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 10px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
}

.section {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--light-color);
}

.bg-dark {
    background-color: var(--dark-color);
    color: white;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 25px;
    margin-top: 10px;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: #dd6161;
}

.btn-secondary {
    background-color: var(--accent-color);
    color: var(--dark-color);
}

.btn-secondary:hover {
    background-color: #e0a800;
}

.btn-full {
    width: 100%;
}

/* 1. Header & Navigation */
#main-header {
    background-color: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    height: var(--header-height);
    transition: all 0.3s ease;
}

#main-header.sticky {
    height: 60px; /* Smaller sticky header */
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-height);
    transition: height 0.3s ease;
}

#main-header.sticky .header-content {
    height: 60px;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

#main-nav ul {
    display: flex;
}

#main-nav ul li a {
    padding: 10px 15px;
    display: block;
    color: var(--dark-color);
    font-weight: 500;
    transition: color 0.3s ease;
}

#main-nav ul li a:hover, #main-nav ul li .cta-nav-link {
    color: var(--primary-color);
}

.cta-nav-link {
    background-color: var(--primary-color);
    color: white !important;
    padding: 8px 15px;
    border-radius: 5px;
    margin-left: 10px;
    transition: background-color 0.3s ease;
}

.cta-nav-link:hover {
    background-color: #dd6161;
}

.contact-info a {
    color: var(--dark-color);
    font-size: 1rem;
    margin-left: 20px;
    white-space: nowrap;
}

.menu-toggle {
    display: none; /* Hide on desktop */
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--dark-color);
}

/* 2. Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    background: url('../images/hero.webp') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: var(--header-height); /* Offset for fixed header */
}

.hero-overlay {
    background-color: rgba(0, 0, 0, 0.4);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-section h1 {
    font-size: 4rem;
    color: white;
    margin-bottom: 1rem;
}

.hero-section p {
    font-size: 1.5rem;
    color: var(--light-color);
    margin-bottom: 2rem;
}

.hero-ctas a {
    margin: 0 10px;
}

/* 3. About Us */
.about-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.about-text {
    flex: 2;
}

.about-image {
    flex: 1;
    text-align: center;
}

.responsive-img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* 4. Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.service-card i {
    color: var(--primary-color);
    font-size: 3rem;
    margin-bottom: 15px;
}

/* 5. Why Choose Us */
.points-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.choice-point i {
    color: var(--accent-color);
    font-size: 2.5rem;
    margin-bottom: 10px;
}

/* 7. Get Free Quote Form */
.quote-form {
    max-width: 700px;
    margin: 0 auto;
    background-color: var(--light-color);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.quote-form input[type="text"],
.quote-form input[type="email"],
.quote-form input[type="tel"],
.quote-form input[type="datetime-local"],
.quote-form select,
.quote-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    display: block;
}

.form-group-half {
    display: flex;
    gap: 15px;
}

.form-group-half input {
    flex: 1;
}

.confirmation-message {
    text-align: center;
    font-size: 1.2rem;
    color: green;
    padding: 15px;
    border: 1px solid green;
    background-color: #e6ffe6;
    margin-top: 20px;
    border-radius: 5px;
}

/* 8. Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.testimonial-card .rating i {
    color: var(--accent-color);
    margin-bottom: 10px;
}

.testimonial-card p {
    font-style: italic;
    margin-bottom: 15px;
}

.client-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.client-photo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

/* 9. Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.contact-details p {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.contact-details a {
    color: var(--dark-color);
}

.social-links {
    margin-top: 20px;
}

.social-links a {
    font-size: 1.5rem;
    margin-right: 15px;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-color);
}

.quick-contact-form input,
.quick-contact-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.map-placeholder {
    height: 300px;
    background-color: #e0e0e0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.map-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 10. Footer */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 40px 0 10px;
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #444;
}

.footer-grid h4 {
    color: var(--accent-color);
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.footer-grid ul li a,
.footer-contact p,
.footer-contact a {
    color: #ccc;
    display: block;
    margin-bottom: 8px;
}

.footer-grid ul li a:hover {
    color: var(--primary-color);
}

.footer-social .social-icons a {
    color: white;
    font-size: 1.2rem;
    margin-right: 10px;
}

.footer-social .social-icons a:hover {
    color: var(--primary-color);
}

.copyright {
    text-align: center;
    padding-top: 20px;
}

/* 11. Modals/Popups */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.6); /* Black w/ opacity */
    padding-top: 60px;
}

.modal-content {
    background-color: #fff;
    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: 600px;
    border-radius: 8px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.close-btn {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-btn:hover,
.close-btn:focus {
    color: #000;
    text-decoration: none;
}

/* Newsletter Modal Specifics */
.checkbox-label {
    display: block;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.checkbox-label input {
    margin-right: 10px;
}

/* Media Queries for Responsiveness */
@media (max-width: 1200px) {
    .points-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    /* General adjustments */
    .section {
        padding: 60px 0;
    }
    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    .hero-section h1 {
        font-size: 3rem;
    }

    /* About */
    .about-content {
        flex-direction: column;
        text-align: center;
    }

    /* Contact */
    .contact-grid {
        grid-template-columns: 1fr;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-links ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
        padding-top: 10px;
    }
    .footer-links ul li a {
        margin-bottom: 0;
    }
}

@media (max-width: 768px) {
    /* Header */
    .contact-info {
        display: none; /* Hide top-right contact info on smaller screens */
    }
    #main-nav {
        display: none;
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background-color: white;
        box-shadow: 0 5px 5px rgba(0,0,0,0.1);
        padding: 10px 0;
    }
    #main-nav.active {
        display: block;
    }
    #main-nav ul {
        flex-direction: column;
        text-align: center;
    }
    #main-nav ul li a {
        padding: 10px 20px;
        border-bottom: 1px solid var(--light-color);
    }
    .menu-toggle {
        display: block;
    }

    /* Hero */
    .hero-section {
        height: 80vh;
    }
    .hero-section h1 {
        font-size: 2.5rem;
    }
    .hero-section p {
        font-size: 1.2rem;
    }
    .hero-ctas {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    /* Forms */
    .form-group-half {
        flex-direction: column;
        gap: 0;
    }
}

#newsletter-form {
    max-width: 400px;
    margin: 0 auto;
    padding: 30px;
    background-color: #f9f9f9;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    font-family: 'Arial', sans-serif;
}

#newsletter-form input[type="text"],
#newsletter-form input[type="email"] {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

#newsletter-form input[type="text"]:focus,
#newsletter-form input[type="email"]:focus {
    border-color: #ff6b6b;
    box-shadow: 0 0 5px rgba(221, 97, 97,0.3);
    outline: none;
}

/* Optional DOB Field Styling */
#newsletter-form input[name="dob"] {
    background-color: #fff;
}

/* Checkbox Styling */
.checkbox-label {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #555;
    margin-bottom: 20px;
}

.checkbox-label input[type="checkbox"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    accent-color: #ff6b6b;
}

/* Button Styling */
#newsletter-form .btn {
    display: inline-block;
    width: 100%;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    background-color: #ff6b6b;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

#newsletter-form .btn:hover {
    background-color: #dd6161;
    transform: translateY(-2px);
}

/* Responsive adjustments */
@media (max-width: 480px) {
    #newsletter-form {
        padding: 20px;
    }

    #newsletter-form input[type="text"],
    #newsletter-form input[type="email"] {
        padding: 10px;
        font-size: 14px;
    }

    #newsletter-form .btn {
        padding: 10px;
        font-size: 14px;
    }
}