/* General Body & Typography */
:root {
    --primary-color: #FF7F00; /* Orange */
    --secondary-color: #333; /* Dark Grey for text */
    --light-grey: #f4f4f4;
    --dark-blue: #0A2342; /* A dark blue for headers/backgrounds */
    --text-light: #fefefe;
    --text-dark: #333;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: #fff;
}

.container {
    /*max-width: 1200px;*/
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--dark-blue);
    margin-bottom: 15px;
}

h1 { font-size: 2.8em; line-height: 1.2; }
h2 { font-size: 2.2em; margin-top: 30px; }
h3 { font-size: 1.8em; }
p { margin-bottom: 1em; }

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--dark-blue);
}

.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
    border: none;
    font-size: 1em;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.btn-primary:hover {
    background-color: #e67300; /* Slightly darker orange */
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 10px 23px;
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.btn-call {
    background-color: var(--dark-blue);
    color: var(--text-light);
    padding: 10px 20px;
    margin-left: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-call:hover {
    background-color: var(--primary-color);
}

/* Header */
.main-header {
    background-color: #fff;
    padding: 10px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8em;
    font-weight: 700;
    color: var(--dark-blue);
}

.logo span {
    color: var(--primary-color);
}

.main-nav ul {
    list-style: none;
    display: flex;
}

.main-nav ul li {
    margin-left: 30px;
}

.main-nav ul li a {
    color: var(--secondary-color);
    font-weight: 600;
}

.main-nav ul li a:hover {
    color: var(--primary-color);
}

.nav-toggle {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    position: relative;
    z-index: 1001;
}

.hamburger {
    display: block;
    position: relative;
    width: 25px;
    height: 3px;
    background: var(--dark-blue);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 3px;
    background: var(--dark-blue);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger::before { top: -8px; }
.hamburger::after { top: 8px; }

/* Hero Section */
.hero-section {
    position: relative;
    height: 70vh; /* Adjust as needed */
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--text-light);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Dark overlay */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

.hero-content h1 {
    font-size: 1em;
    margin-bottom: 10px;
    color: transparent;
}

.hero-content .sub-headline {
    font-size: 3.0em;
    font-weight: 500;
    margin-bottom: 30px;
    color: var(--text-light);
}

.hero-ctas .btn {
    margin: 0 10px;
}

.map-marker-illust {
    position: absolute;
    bottom: 100px;
    right: 100px;
    background: rgba(255, 255, 255, 0.9);
    padding: 8px 15px;
    border-radius: 20px;
    color: var(--dark-blue);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
.map-marker-illust i {
    color: var(--primary-color);
}

/* Section Styling */
section {
    padding: 20px 0;
}

section:nth-of-type(even) {
    background-color: var(--light-grey);
}

section h2 {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

section h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    margin: 10px auto 0;
}

/* About Section */
.section-about p {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.1em;
}

/* Benefits Section */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.benefit-item {
    background-color: #fff;
    padding: 25px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.benefit-item:hover {
    transform: translateY(-5px);
}

.benefit-item img {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
    /*filter: invert(49%) sepia(87%) saturate(1067%) hue-rotate(345deg) brightness(101%) contrast(101%); */
    /* Converts to orange 
}

.benefit-item p {
    font-size: 1.05em;
    font-weight: 600;
    color: var(--dark-blue);
    margin-bottom: 0;
}

/* Project Details Section */
.section-project-details .project-name {
    text-align: center;
    font-size: 1.3em;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 30px;
}

.project-layout-info {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    flex-wrap: wrap; /* Allows wrapping on smaller screens */
}

.layout-image {
    flex: 1;
    min-width: 300px;
    position: relative;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.layout-image img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 5px;
}

.layout-legend {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--light-grey);
}

.layout-legend h4 {
    font-size: 1.2em;
    color: var(--dark-blue);
    margin-bottom: 10px;
}

.layout-legend ul {
    list-style: none;
}

.layout-legend li {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    font-size: 0.95em;
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    margin-right: 10px;
    display: inline-block;
}

.legend-color.sold { background-color: #ccc; } /* Grey */
.legend-color.available { background-color: var(--primary-color); } /* Orange */
.legend-color.reserved { background-color: var(--dark-blue); } /* Dark Blue */


.project-features {
    flex: 1;
    min-width: 300px;
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.project-features ul {
    list-style: none;
    margin-bottom: 30px;
}

.project-features li {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-size: 1.05em;
    color: var(--secondary-color);
}

.project-features li i {
    color: var(--primary-color);
    margin-right: 15px;
    font-size: 1.2em;
    width: 25px; /* Fixed width for icon alignment */
    text-align: center;
}
/* Project Details Section - continued */
.project-ctas {
    display: flex;
    gap: 15px;
    flex-wrap: wrap; /* Allows wrapping buttons on smaller screens */
    justify-content: center;
}
.project-ctas .btn {
    flex: 1; /* Makes buttons take equal width */
    min-width: 180px; /* Minimum width before wrapping */
}

/* Testimonials Section */
.section-testimonials {
    background-color: var(--dark-blue);
    color: var(--text-light);
    text-align: center;
}

.section-testimonials h2 {
    color: var(--text-light);
}

.section-testimonials h2::after {
    background: var(--primary-color);
}

.testimonial-carousel {
    max-width: 800px;
    margin: 30px auto 0;
    /* Add carousel specific styles/JS for actual carousel functionality */
    /* For now, it's just a single item layout */
}

.testimonial-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 8px;
}

.testimonial-item p {
    font-size: 1.1em;
    font-style: italic;
    margin-bottom: 20px;
    color: var(--text-light);
}

.testimonial-item h4 {
    font-size: 1.2em;
    color: var(--primary-color);
    margin-bottom: 0;
}

/* Enquiry Form Section */
.section-enquiry-form {
    padding: 60px 0;
    background-color: var(--light-grey);
}

.section-enquiry-form h2, .section-enquiry-form .form-intro {
    text-align: center;
}

.section-enquiry-form .form-intro {
    font-size: 1.1em;
    color: var(--secondary-color);
    margin-bottom: 40px;
}

#contact-form {
    max-width: 700px;
    margin: 0 auto;
    background-color: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.form-group {
    grid-column: span 1; /* Default to single column */
}

/* Make specific fields span full width or adjust */
.form-group:nth-child(1), /* Name */
.form-group:nth-child(2), /* Email */
.form-group:nth-child(3), /* Phone */
.form-group:nth-child(4) /* Source */ {
    /* These will automatically go to full width on smaller screens due to auto-fit */
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
    color: var(--secondary-color); /* Ensure text is visible */
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input::placeholder,
.form-group select option[hidden] {
    color: black !important; /* Placeholder color black as requested */
    opacity: 1; /* For Firefox */
}
/* Ensure selected option in select is also black */
.form-group select:focus,
.form-group input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 127, 0, 0.2);
}

/* Checkbox button styles */
.checkbox-group {
    grid-column: 1 / -1; /* Spans full width */
    display: flex; /* For horizontal checkboxes */
    align-items: center;
    flex-wrap: wrap; /* Allows wrapping of checkboxes */
    gap: 15px;
}

.checkbox-button {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.95em;
    color: var(--secondary-color);
}

.checkbox-button__input {
    display: none; /* Hide default checkbox */
}

.checkbox-button__control {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    border: 2px solid var(--primary-color);
    margin-right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.checkbox-button__input:checked + .checkbox-button__control {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.checkbox-button__input:checked + .checkbox-button__control::after {
    content: '\2713'; /* Checkmark unicode */
    color: #fff;
    font-size: 14px;
}

.checkbox-button__label a {
    color: var(--primary-color);
    text-decoration: underline;
}

.horizontal-checkboxes {
    justify-content: flex-start; /* Align choices to the left */
}

.tc-pp {
    align-items: flex-start; /* Align text from the top if it wraps */
}
.tc-pp .checkbox-button__label {
    line-height: 1.4;
}

.form-submit {
    grid-column: 1 / -1; /* Full width for the submit button */
    text-align: center;
    margin-top: 20px;
}

.form-submit .btn {
    width: auto; /* Revert width for this button */
    padding: 15px 40px;
}

.form-call-info {
    grid-column: 1 / -1;
    text-align: center;
    font-size: 1.1em;
    margin-top: 20px;
    color: var(--secondary-color);
}
.form-call-info a {
    font-weight: 600;
}

.form-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 10px;
    margin-top: 15px;
    border-radius: 5px;
    font-weight: 600;
}
.form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}
.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}


/* Map Section */
.section-map {
    padding-bottom: 0; /* Remove padding from bottom as map fills space */
}
.section-map iframe {
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

/* Footer */
.main-footer {
    background-color: var(--dark-blue);
    color: var(--text-light);
    padding: 50px 0 20px;
    font-size: 0.95em;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 30px;
}

.footer-col h3 {
    color: var(--primary-color);
    font-size: 1.4em;
    margin-bottom: 20px;
}

.footer-col p, .footer-col ul li {
    margin-bottom: 10px;
    color: rgba(255,255,255,0.8);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li a {
    color: rgba(255,255,255,0.8);
}

.footer-col ul li a:hover {
    color: var(--primary-color);
}

.footer-col.contact-info p i {
    margin-right: 10px;
    color: var(--primary-color);
}

.social-links a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: var(--text-light);
    margin-right: 10px;
    transition: background-color 0.3s ease;
}

.social-links a:hover {
    background-color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    font-size: 0.9em;
    color: rgba(255,255,255,0.6);
}

/* Responsive Design */
@media (max-width: 992px) {
    .main-nav {
        display: none; /* Hide desktop nav */
        flex-direction: column;
        position: absolute;
        top: 70px; /* Below header */
        left: 0;
        width: 100%;
        background-color: #fff;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        z-index: 999;
        padding: 20px 0;
    }

    .main-nav.active {
        display: flex;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: center;
    }

    .main-nav ul li {
        margin: 10px 0;
        width: 100%;
        text-align: center;
    }
    .main-nav ul li a {
        padding: 10px 0;
        display: block;
        color: var(--dark-blue);
    }
    .main-nav ul li a:hover {
        background-color: var(--light-grey);
    }

    .nav-toggle {
        display: block; /* Show hamburger */
    }

    .btn-call {
        margin-left: auto; /* Push call button to right */
    }

    /* Hamburger animation */
    .nav-toggle.active .hamburger {
        transform: rotate(45deg);
    }
    .nav-toggle.active .hamburger::before {
        opacity: 0;
    }
    .nav-toggle.active .hamburger::after {
        transform: translateY(-8px) rotate(-90deg);
    }

    .hero-content h1 {
        font-size: 1em;
    }
    .hero-content .sub-headline {
        font-size: 2.8em;
    }

    .project-layout-info {
        flex-direction: column;
        align-items: center;
    }
    .layout-image, .project-features {
        flex: none; /* Remove flex sizing */
        width: 100%;
        max-width: 500px; /* Constrain width */
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2.2em; }
    h2 { font-size: 1.8em; }

    .hero-section {
        height: 60vh;
    }

    .hero-content h1 {
        font-size: 1em;
    }
    .hero-content .sub-headline {
        font-size: 2.8em;
    }
    .hero-ctas {
        flex-direction: column;
        gap: 10px;
    }
    .hero-ctas .btn {
        width: 100%;
        max-width: 250px;
        margin: 0 auto;
    }

    #contact-form {
        padding: 25px;
        gap: 15px;
    }
    .form-group {
        grid-column: 1 / -1; /* Always full width on smaller forms */
    }
    .horizontal-checkboxes {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    .logo {
        font-size: 1.5em;
    }
    .btn-call {
        padding: 8px 15px;
        font-size: 0.9em;
    }
    .hero-section {
        height: 50vh;
    }
    .hero-content h1 {
        font-size: 1.8em;
    }
    .hero-content .sub-headline {
        font-size: 0.9em;
    }
    .map-marker-illust {
        bottom: 10px;
        right: 10px;
        padding: 5px 10px;
        font-size: 0.8em;
    }
}