/* --- Global Reset & Typography --- */
/* Fonts loaded asynchronously in HTML */

:root {
    --color-primary: #FF6B35; /* Deep Orange - Primary Brand Color */
    --color-secondary: #FFB347; /* Warm Orange/Peach - Secondary */
    --color-accent: #D2691E; /* Dark Orange/Rust - Accent */
    --color-dark: #2C2C2C; /* Dark Gray */
    --color-light: #FFF8F5; /* Warm Off-White */
    --color-graya: #F5E6E0; /* Warm Light Gray for backgrounds */
    --font-serif: 'EB Garamond', serif;
    --font-sans: 'Montserrat', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    line-height: 1.7;
    color: var(--color-dark);
    background-color: var(--color-light);
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%; /* Prevent iOS text size adjustment */
    -webkit-font-smoothing: antialiased;
}

/* Fade-in animation for sections */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.8s ease-out;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
}

h1, h2, h3, h4 {
    font-family: var(--font-serif);
    margin-bottom: 0.5rem;
    line-height: 1.1;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }

.section-title {
    text-align: center;
    font-size: 2.75rem;
    color: var(--color-dark);
    margin-bottom: 3.5rem;
    padding-top: 1rem;
    position: relative;
    display: inline-block;
    font-weight: 700;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    border-radius: 2px;
}

.text-link, .text-link-centered {
    color: var(--color-primary);
    text-decoration: underline;
    font-weight: 500;
    transition: color 0.3s;
    cursor: pointer;
}

.text-link:hover, .text-link-centered:hover {
    color: var(--color-secondary);
}

.text-link-centered {
    display: inline-block;
    text-align: center;
    margin-top: 3rem;
    font-size: 1.15rem;
    padding: 0.75rem 2rem;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    color: white;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.text-link-centered:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
    color: white;
    text-decoration: none;
}


/* --- 1. Header & Navigation --- */
.main-header {
    background-color: white;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.15);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
    padding: 0 1.5rem;
}

.logo {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0;
}

.logo-image {
    height: 70px;
    width: auto;
    max-width: 320px;
    min-width: 180px;
    object-fit: contain;
    object-position: left center;
    transition: opacity 0.3s, transform 0.3s;
    display: block;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    image-rendering: high-quality;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.08));
}

.logo-image:hover {
    opacity: 0.95;
    transform: scale(1.02);
    filter: drop-shadow(0 4px 8px rgba(255, 107, 53, 0.25));
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
}

.nav-links li {
    margin: 0;
    padding: 0;
}

.nav-links a {
    text-decoration: none;
    color: var(--color-dark);
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: color 0.3s;
    display: block;
    white-space: nowrap;
}

.nav-links a:hover {
    color: var(--color-primary);
    text-decoration: underline;
}

.nav-links a[href="properties.html"] {
    color: var(--color-primary);
    font-weight: 600;
}

.nav-links a[href="properties.html"]:hover {
    color: var(--color-accent);
    text-decoration: underline;
}

.nav-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--color-primary);
}

.nav-toggle:hover {
    color: var(--color-accent);
}

/* --- 2. Hero Section --- */
.hero-section {
    background: url('images/liberty.jpg') no-repeat center center/cover;
    background-size: cover;
    background-position: center;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 90px; /* Offset for fixed header */
    position: relative;
    will-change: transform;
    content-visibility: auto;
}

/* Properties page hero - half height */
.properties-hero {
    height: 50vh !important;
    min-height: 50vh !important;
    padding-top: 90px !important;
    background-image: url('images/liberty.jpg') !important;
    background-size: cover !important;
    background-position: center 50% !important;
    background-repeat: no-repeat !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.properties-hero .hero-content {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    width: 100% !important;
    padding: 2rem !important;
}

.properties-hero .hero-title {
    font-size: 3.5rem !important;
    color: white !important;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5) !important;
    margin-bottom: 1rem !important;
}

.properties-hero .hero-subtitle {
    font-size: 1.3rem !important;
    color: white !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5) !important;
    opacity: 0.95 !important;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.35) 100%);
    pointer-events: none;
}

.hero-content {
    max-width: 900px;
    padding: 2rem;
    color: var(--color-light);
    animation: fadeInUp 1s ease-out;
    position: relative;
    z-index: 1;
}

/* Google Reviews Badge */
.google-reviews-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: inline-flex;
}

.google-icon {
    width: 20px;
    height: 20px;
}

.stars {
    color: #FFB800;
    font-size: 1.1rem;
    letter-spacing: 2px;
}

.reviews-text {
    color: var(--color-dark);
    font-size: 0.9rem;
    font-weight: 600;
}

/* Hero Search Button */
.hero-search-section {
    margin-bottom: 1.5rem;
}

.hero-search-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.2rem 3rem;
    background: var(--color-secondary);
    color: white;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(255, 179, 71, 0.4);
}

.hero-search-button:hover {
    background: var(--color-primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.5);
    color: white;
}

.hero-search-button i {
    font-size: 1.2rem;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.6rem;
    font-weight: 300;
    margin-bottom: 2.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    opacity: 0.95;
}

.hero-button {
    background-color: white;
    color: var(--color-primary);
    padding: 0.875rem 2rem;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    text-transform: none;
    letter-spacing: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: inline-block;
    min-width: auto;
    width: auto;
    font-family: var(--font-sans);
}

.hero-button:hover {
    background-color: white;
    color: var(--color-accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    width: auto;
    min-width: auto;
}

.hero-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.typeform-button-wrapper {
    display: inline-block;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    text-align: center;
    width: auto;
    max-width: 100%;
}

.typeform-button-wrapper > div {
    display: inline-block;
    width: auto;
}

.typeform-button-wrapper button,
.typeform-button-wrapper [data-tf-button],
.typeform-button-wrapper iframe {
    background-color: white !important;
    color: var(--color-primary) !important;
    padding: 1.1rem 2rem !important;
    border: none !important;
    border-radius: 50px !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    cursor: pointer !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease, color 0.3s ease !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    font-family: var(--font-sans) !important;
    display: inline-block !important;
    box-sizing: border-box !important;
    width: auto !important;
    max-width: none !important;
    text-align: center !important;
    line-height: normal !important;
    height: auto !important;
}

.typeform-button-wrapper button:hover,
.typeform-button-wrapper [data-tf-button]:hover {
    background-color: white !important;
    color: var(--color-accent) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

/* --- 3. About Section --- */
.about-section {
    padding: 6rem 0;
    background: linear-gradient(180deg, var(--color-light) 0%, #ffffff 100%);
    position: relative;
}

.about-content {
    display: flex;
    gap: 3rem;
    align-items: center;
}

.about-text {
    flex: 2;
}

.about-image {
    flex: 1;
    min-width: 300px;
    height: 400px;
    background: url('images/support%20worker.jpg.avif') no-repeat center center/cover;
    background-size: cover;
    background-position: center;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(255, 107, 53, 0.25);
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    position: relative;
}

.about-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.about-image:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px rgba(255, 107, 53, 0.35);
}

.about-image:hover::before {
    opacity: 1;
}


/* --- 4. Core Services & Housing Sections (Project Grid) --- */
.projects-section {
    padding: 6rem 0;
    background: linear-gradient(180deg, #ffffff 0%, var(--color-graya) 100%);
    text-align: center;
    position: relative;
}

.housing-section {
    background: linear-gradient(180deg, var(--color-graya) 0%, var(--color-light) 100%);
    padding: 6rem 0;
    position: relative;
}

.housing-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary), var(--color-primary));
}

/* Contact Section */
.contact-section {
    padding: 6rem 0;
    background: linear-gradient(180deg, var(--color-light) 0%, #ffffff 100%);
    text-align: center;
    position: relative;
}

.call-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 2rem;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
    font-family: var(--font-sans);
    min-width: fit-content;
    width: auto;
    max-width: 100%;
    box-sizing: border-box;
}

.call-button:hover {
    background: linear-gradient(135deg, var(--color-accent), var(--color-primary));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
    color: white;
    width: auto;
    min-width: fit-content;
    max-width: 100%;
    box-sizing: border-box;
}

.call-button:active {
    transform: translateY(0);
}

.call-button i {
    font-size: 1.1rem;
}

/* Contact Form */
.contact-form-container {
    max-width: 800px;
    margin: 0 auto 3rem;
    background: white;
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.contact-form label {
    color: var(--color-dark);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    font-family: var(--font-sans);
}

.contact-form input,
.contact-form textarea {
    padding: 0.875rem 1rem;
    border: 2px solid var(--color-graya);
    border-radius: 8px;
    font-size: 16px; /* Prevents zoom on iOS */
    font-family: var(--font-sans);
    color: var(--color-dark);
    transition: all 0.3s ease;
    background: white;
    min-height: 44px; /* Touch target */
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-button {
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
    font-family: var(--font-sans);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 0.5rem;
    align-self: center;
    min-width: 200px;
}

.submit-button:hover {
    background: linear-gradient(135deg, var(--color-accent), var(--color-primary));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

.submit-button:active {
    transform: translateY(0);
}

.submit-button i {
    font-size: 1rem;
}

@media (max-width: 768px) {
    .contact-form-container {
        padding: 2rem 1rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .contact-form input,
    .contact-form textarea,
    .contact-form select {
        font-size: 16px; /* Prevents zoom on iOS */
        min-height: 44px; /* Touch target */
    }
    
    .submit-button {
        width: 100%;
        min-height: 44px;
    }
}

/* Properties Page Styles */
.properties-search-section {
    padding: 2rem 0 1.5rem 0;
    background: white;
    border-bottom: 1px solid #eee;
}

.properties-search-bar {
    margin-bottom: 1.5rem;
}

.search-bar-actions {
    text-align: center;
    margin-top: 0.75rem;
}

.search-bar-wrapper {
    display: flex;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
    background: white;
    border: 2px solid var(--color-graya);
    border-radius: 50px;
    padding: 0.5rem 0.5rem 0.5rem 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    gap: 0.5rem;
}

.search-bar-wrapper:focus-within {
    border-color: var(--color-primary);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.15);
}

.search-icon-large {
    color: var(--color-graya);
    font-size: 1.2rem;
    margin-right: 1rem;
}

.properties-search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1rem;
    font-family: var(--font-sans);
    color: var(--color-dark);
    padding: 0.75rem 0;
}

.properties-search-input::placeholder {
    color: #999;
}

.search-options {
    display: flex;
    align-items: center;
}

.radius-select {
    padding: 0.75rem 1.25rem;
    border: 1.5px solid #e0e0e0;
    border-radius: 12px;
    font-size: 0.9rem;
    font-family: var(--font-sans);
    color: var(--color-dark);
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
    min-width: 140px;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.radius-select:hover {
    border-color: var(--color-primary);
    background-color: #fffaf8;
}

.radius-select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
    background-color: white;
}

.search-location-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 107, 53, 0.1);
    border-radius: 25px;
    color: var(--color-primary);
    font-weight: 600;
    font-size: 0.95rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.search-location-info i {
    color: var(--color-primary);
}

.clear-location-btn {
    background: transparent;
    border: none;
    color: var(--color-primary);
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
}

.clear-location-btn:hover {
    background: rgba(255, 107, 53, 0.2);
    transform: scale(1.1);
}

.properties-search-button {
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    color: white;
    border: none;
    padding: 0.875rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-sans);
}

.properties-search-button:hover {
    background: linear-gradient(135deg, var(--color-accent), var(--color-primary));
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.filters-container {
    max-width: 1200px;
    margin: 0 auto;
    background: var(--color-light);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    overflow: hidden;
}


.filters-header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.filters-header-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    flex-wrap: wrap;
    gap: 1rem;
}

.filters-header-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.show-filters-link {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-sans);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
}

.show-filters-link:hover {
    color: var(--color-accent);
    text-decoration: underline;
}

.show-filters-link i {
    font-size: 0.9rem;
}

.filters-header h3 {
    color: var(--color-dark);
    font-family: var(--font-sans);
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filters-header h3 i {
    color: var(--color-primary);
}

.clear-filters-btn {
    background: transparent;
    border: 2px solid var(--color-graya);
    color: var(--color-dark);
    padding: 0.5rem 1.25rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-sans);
}

.clear-filters-btn:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: rgba(255, 107, 53, 0.05);
}

.toggle-filters-btn {
    background: transparent;
    border: 2px solid var(--color-graya);
    color: var(--color-dark);
    padding: 0.5rem 1.25rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-sans);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.toggle-filters-btn:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: rgba(255, 107, 53, 0.05);
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    transition: all 0.3s ease;
    overflow: hidden;
}

.filters-grid.filters-hidden {
    max-height: 0;
    opacity: 0;
    margin: 0;
    padding: 0;
    gap: 0;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-group label {
    color: var(--color-dark);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    font-family: var(--font-sans);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-group label i {
    color: var(--color-primary);
    font-size: 0.85rem;
}

.filter-select {
    padding: 0.75rem 1rem;
    border: 2px solid var(--color-graya);
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: var(--font-sans);
    color: var(--color-dark);
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.results-count {
    text-align: center;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    color: var(--color-dark);
    font-family: var(--font-sans);
    font-size: 0.95rem;
}

.results-count strong {
    color: var(--color-primary);
    font-weight: 700;
}

.properties-map-section {
    padding: 4rem 0;
    background: linear-gradient(180deg, var(--color-light) 0%, #ffffff 100%);
}

.properties-list-container {
    min-height: 400px;
}

.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.no-results {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--color-graya);
}

.no-results h3 {
    color: var(--color-dark);
    font-family: var(--font-sans);
    margin-bottom: 0.5rem;
}

/* Map Toggle Button */
.map-toggle-button {
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(255, 107, 53, 0.4);
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-sans);
}

.map-toggle-button:hover {
    background: linear-gradient(135deg, var(--color-accent), var(--color-primary));
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(255, 107, 53, 0.5);
}

.map-toggle-button:active {
    transform: translateY(-1px);
}

/* Map Modal */
.map-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.map-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.map-modal-content {
    background: white;
    border-radius: 16px;
    width: 90%;
    max-width: 1200px;
    height: 85vh;
    max-height: 800px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.map-modal.active .map-modal-content {
    transform: scale(1);
}

.map-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 2px solid var(--color-graya);
}

.map-modal-header h3 {
    margin: 0;
    color: var(--color-dark);
    font-family: var(--font-sans);
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.map-modal-header h3 i {
    color: var(--color-primary);
}

.map-modal-close {
    background: transparent;
    border: none;
    color: var(--color-dark);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.map-modal-close:hover {
    background: var(--color-graya);
    color: var(--color-primary);
    transform: rotate(90deg);
}

.map-modal-body {
    flex: 1;
    padding: 0;
    overflow: hidden;
    border-radius: 0 0 16px 16px;
}

.properties-map {
    width: 100%;
    height: 100%;
    border-radius: 0 0 16px 16px;
}

.property-card-item {
    cursor: pointer;
}

@media (max-width: 1024px) {
    .properties-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .properties-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
}

.project-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .search-bar-wrapper {
        flex-direction: column;
        border-radius: 16px;
        padding: 1rem;
    }

    .search-icon-large {
        display: none;
    }

    .properties-search-input {
        width: 100%;
        margin-bottom: 0.75rem;
        padding: 0.875rem;
        border: 1px solid var(--color-graya);
        border-radius: 8px;
        font-size: 16px; /* Prevents zoom on iOS */
        min-height: 44px; /* Touch target */
    }

    .search-options {
        width: 100%;
        margin-bottom: 0.75rem;
    }

    .radius-select {
        width: 100%;
        border-radius: 8px;
        min-height: 44px; /* Touch target */
        font-size: 16px; /* Prevents zoom on iOS */
    }

    .properties-search-button {
        width: 100%;
        justify-content: center;
        min-height: 44px; /* Touch target */
    }

    .search-location-info {
        flex-wrap: wrap;
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
    }

    .filters-container {
        padding: 1.5rem 1rem;
    }

    .filters-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .filters-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .clear-filters-btn {
        width: 100%;
        min-height: 44px; /* Touch target */
    }
    
    .filter-select {
        min-height: 44px; /* Touch target */
        font-size: 16px; /* Prevents zoom on iOS */
    }

    .map-modal-content {
        width: 95%;
        height: 90vh;
    }

    .map-modal-header {
        padding: 1rem 1.5rem;
    }

    .map-modal-header h3 {
        font-size: 1.2rem;
    }
}

/* Services Page Styles */
.services-hero-section {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.95) 0%, rgba(255, 140, 0, 0.95) 100%);
    padding: 8rem 0 5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.services-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('images/support%20worker.jpg.avif') no-repeat center center/cover;
    opacity: 0.15;
    z-index: 0;
}

.services-hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
}

.services-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.services-hero-badge i {
    font-size: 1rem;
}

.services-hero-title {
    font-size: 4rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    font-family: var(--font-sans);
}

.services-hero-subtitle {
    font-size: 1.4rem;
    color: white;
    opacity: 0.95;
    line-height: 1.6;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    font-weight: 300;
}

.services-main-section {
    padding: 5rem 0;
    background: linear-gradient(180deg, #ffffff 0%, var(--color-light) 100%);
}

.services-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.services-section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 1.5rem;
    font-family: var(--font-sans);
}

.services-section-description {
    font-size: 1.15rem;
    color: #666;
    line-height: 1.8;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-bottom: 4rem;
}

.service-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    flex-direction: column;
    border: 1px solid #f0f0f0;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(255, 107, 53, 0.2);
    border-color: rgba(255, 107, 53, 0.3);
}

.service-icon-wrapper {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
    transition: all 0.3s ease;
}

.service-card:hover .service-icon-wrapper {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

.service-icon {
    color: white;
    font-size: 1.5rem;
}

.service-image {
    height: 220px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    transition: transform 0.4s ease;
}

.service-card:hover .service-image {
    transform: scale(1.05);
}

.service-content {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.service-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 1rem;
    font-family: var(--font-sans);
}

.service-description {
    color: #666;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    flex: 1;
}

.service-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
}

.service-features li {
    color: #555;
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    line-height: 1.5;
}

.service-features li i {
    color: var(--color-primary);
    font-size: 0.85rem;
    flex-shrink: 0;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #f0f0f0;
}

.service-link:hover {
    color: var(--color-accent);
    gap: 1rem;
}

.service-link i {
    transition: transform 0.3s ease;
}

.service-link:hover i {
    transform: translateX(4px);
}

.services-cta {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.05) 0%, rgba(255, 140, 0, 0.05) 100%);
    border-radius: 24px;
    padding: 4rem 3rem;
    text-align: center;
    margin-top: 4rem;
    border: 2px solid rgba(255, 107, 53, 0.1);
}

.services-cta-content h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 1rem;
    font-family: var(--font-sans);
}

.services-cta-content p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.services-cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
}

.services-cta-buttons .typeform-button-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
}

.services-call-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: white;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    font-family: var(--font-sans);
}

.services-call-btn:hover {
    background: var(--color-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

@media (max-width: 768px) {
    .services-hero-section {
        padding: 6rem 0 4rem;
    }
    
    .services-hero-content {
        padding: 0 1rem;
    }
    
    .services-hero-title {
        font-size: 2.5rem;
    }

    .services-hero-subtitle {
        font-size: 1.1rem;
    }

    .services-section-title {
        font-size: 2rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    gap: 2rem;
    }

    .services-cta {
        padding: 3rem 1.5rem;
    }

    .services-cta-content h3 {
        font-size: 1.5rem;
    }

    .services-cta-buttons {
        flex-direction: column;
        width: 100%;
    }

    .services-call-btn {
        width: 100%;
        justify-content: center;
        min-height: 44px; /* Touch target */
    }
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
    justify-items: center;
}

.project-grid:has(.housing-card:only-child) {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* Housing Search Bar */
.housing-search-bar {
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.search-bar-container {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 50px;
    padding: 0.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 2px solid var(--color-graya);
    transition: all 0.3s ease;
}

.search-bar-container:focus-within {
    border-color: var(--color-primary);
    box-shadow: 0 6px 25px rgba(255, 107, 53, 0.2);
}

.search-icon {
    color: var(--color-primary);
    font-size: 1.2rem;
    margin-left: 1rem;
    margin-right: 0.75rem;
}

.search-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 1rem;
    font-size: 1rem;
    font-family: var(--font-sans);
    color: var(--color-dark);
    background: transparent;
}

.search-input::placeholder {
    color: #999;
}

.search-button {
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    color: white;
    border: none;
    padding: 0.9rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-sans);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
    flex-shrink: 0;
}

.search-button i {
    margin: 0;
}

.search-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

.project-card {
    background-color: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: left;
    position: relative;
    border: 1px solid rgba(255, 107, 53, 0.1);
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
    z-index: 1;
}

.project-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 16px 40px rgba(255, 107, 53, 0.25);
    border-color: rgba(255, 107, 53, 0.3);
}

.project-card:hover::before {
    transform: scaleX(1);
}

.project-image-placeholder {
    height: 250px;
    background-color: var(--color-primary);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: opacity 0.3s, transform 0.3s;
    overflow: hidden;
    position: relative;
}

/* Card Overlay for "Take a look" button */
.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.4) 100%);
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .card-overlay {
    opacity: 1;
}

.take-look-button {
    background: var(--color-secondary);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.take-look-button:hover {
    background: var(--color-primary);
    transform: translateX(5px);
    color: white;
}

.coming-soon-overlay {
    background: rgba(255, 107, 53, 0.95);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.project-card:hover .project-image-placeholder {
    transform: scale(1.05);
}

/* Specific Service Image Placeholders */
.service-1 { 
    background-image: url('images/support%20worker.jpg.avif?v=2'); 
    background-size: cover;
    background-position: center;
}
.service-2 { 
    background-image: url('images/community.png?v=2'); 
    background-size: cover;
    background-position: center;
}
.service-3 { 
    background-image: url('images/specialist.jpeg?v=2'); 
    background-size: cover;
    background-position: center;
}
.service-4 { 
    background-image: url('images/theraputic.jpg?v=2'); 
    background-size: cover;
    background-position: center;
}

/* Specific Housing Image Placeholders */
.housing-1 { background-image: url('images/liberty.jpg'); }
.housing-2 { background-image: url('https://placehold.co/400x200/FFB347/2C2C2C?text=House+2'); }
.housing-3 { background-image: url('https://placehold.co/400x200/D2691E/FFFFFF?text=House+3'); }
.housing-4 { background-image: url('https://placehold.co/400x200/FF8C42/FFFFFF?text=House+4'); }


.project-info {
    padding: 2rem 1.5rem;
    position: relative;
}

.project-info h4 {
    color: var(--color-dark);
    font-family: var(--font-sans);
    font-weight: 700;
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
    line-height: 1.3;
}

/* Property Badges */
.property-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.available-badge {
    background: linear-gradient(135deg, #10B981, #059669);
    color: white;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.coming-soon-badge {
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    color: white;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
}

/* Property Address and Location */
.property-address {
    color: var(--color-dark);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.25rem;
    font-family: var(--font-sans);
}

.property-location {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    font-family: var(--font-sans);
}

/* Property Features */
.property-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.feature-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.85rem;
    background: var(--color-graya);
    color: var(--color-dark);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    font-family: var(--font-sans);
}

.feature-tag i {
    color: var(--color-primary);
    font-size: 0.9rem;
}

.feature-tag.vacancy-tag {
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    color: white;
    font-weight: 600;
}

.feature-tag.vacancy-tag i {
    color: white;
}

.project-info .view-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
    margin-top: 0.75rem;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
}

.project-info .view-link::after {
    content: '→';
    transition: transform 0.3s ease;
    display: inline-block;
}

.project-info .view-link:hover {
    color: var(--color-accent);
    gap: 0.75rem;
}

.project-info .view-link:hover::after {
    transform: translateX(4px);
}

/* --- 5. Footer --- */
.main-footer {
    background: linear-gradient(135deg, #2C2C2C 0%, #1a1a1a 100%);
    color: var(--color-light);
    padding: 3rem 0;
    font-size: 0.9rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-column {
    flex: 1;
    min-width: 200px;
}

.footer-column h5 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--color-secondary);
    font-family: var(--font-sans);
}

.social-icons a:hover {
    color: var(--color-secondary);
    transform: translateY(-2px);
}

.footer-column p, .footer-column a {
    color: var(--color-graya);
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    transition: color 0.3s;
}

.footer-column a:hover {
    color: white;
}

.social-icons a {
    display: inline-block;
    font-size: 1.5rem;
    margin-right: 1rem;
    color: var(--color-graya);
    transition: color 0.3s, transform 0.2s;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    margin-top: 2rem;
    text-align: center;
    color: var(--color-graya);
}

/* --- 6. Modal / Contact Form --- */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.7);
    padding-top: 60px;
}

.modal-content {
    background-color: white;
    margin: 2% auto;
    padding: 2rem;
    border-radius: 12px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    position: relative;
    animation: fadeIn 0.3s ease-out;
}

.close-btn {
    color: var(--color-dark);
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.close-btn:hover,
.close-btn:focus {
    color: var(--color-accent);
    text-decoration: none;
}

.modal-content h3 {
    text-align: center;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
}

.typeform-container {
    min-height: 500px;
    width: 100%;
    margin-top: 1rem;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.typeform-container > div {
    width: 100% !important;
    min-height: 500px !important;
    display: flex;
    justify-content: center;
    align-items: center;
}

.typeform-container iframe {
    width: 100% !important;
    min-height: 500px !important;
    border: none;
    border-radius: 8px;
}

.typeform-container button,
.typeform-container [data-tf-button] {
    margin: 0 auto !important;
    display: block !important;
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--color-dark);
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 1rem;
    border: 1px solid var(--color-graya);
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: var(--color-primary);
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 107, 53, 0.2);
}

.modal-submit-btn {
    width: 100%;
    padding: 0.8rem;
    margin-top: 1rem;
    background-color: var(--color-primary);
    color: white;
    font-weight: 700;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s, box-shadow 0.3s;
}

.modal-submit-btn:hover {
    background-color: var(--color-accent);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(255, 107, 53, 0.3);
}

.modal-message {
    text-align: center;
    margin-top: 1rem;
    font-weight: 500;
    color: var(--color-accent);
}

/* --- Project Detail Page Styles (`house-brisbane-north.html`) --- */
.house-page-body {
    padding-top: 90px; /* Offset for fixed header */
}

.project-hero {
    height: 60vh;
    position: relative;
}

.hero-image-placeholder {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

.hero-text-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, rgba(0, 0, 0, 0.2) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
}

.graya-title {
    font-size: 3.5rem;
    color: var(--color-light);
    margin-bottom: 0.5rem;
    font-family: var(--font-sans);
}

.graya-subtitle {
    font-size: 1.4rem;
    color: var(--color-graya);
    font-weight: 300;
}

.project-intro-section {
    padding: 4rem 0 2rem 0;
}

.project-container {
    max-width: 1000px;
}

.house-cta-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}

.house-cta-buttons .text-link-centered {
    margin: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.house-cta-buttons .typeform-button-wrapper {
    margin: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.large-intro-text {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    line-height: 1.5;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--color-dark);
}

.metadata-grid {
    display: flex;
    justify-content: space-between;
    gap: 3rem;
    margin-bottom: 2rem;
}

.metadata-column {
    flex: 1;
}

.detail-item {
    margin-bottom: 1.5rem;
    padding: 1rem 0;
    border-bottom: 1px dashed var(--color-graya);
}

.detail-label {
    font-weight: 700;
    color: var(--color-primary);
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.detail-value {
    font-size: 1.1rem;
    color: var(--color-dark);
}

.floorplan-section {
    padding: 4rem 0;
    background-color: var(--color-light);
}

.floorplan-container {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.floorplan-image {
    width: 100%;
    max-width: 1000px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: block;
    margin: 0 auto;
}

.floorplan-placeholder {
    padding: 3rem;
    background-color: var(--color-graya);
    border-radius: 8px;
    color: var(--color-dark);
    font-size: 1.1rem;
}

.project-gallery-section {
    padding: 2rem 0 4rem 0;
    background-color: var(--color-graya);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    aspect-ratio: 16 / 10;
    background-color: #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    position: relative;
}

.gallery-item:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.gallery-item::after {
    content: '\f00e';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    color: white;
    font-size: 2rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    pointer-events: none;
}

.gallery-item:hover::after {
    opacity: 1;
}

.gallery-1 { background-image: url('images/liberty%20kitchen.jpg?v=2'); }
.gallery-2 { background-image: url('images/liberty%20bedroom.jpg?v=2'); }
.gallery-3 { background-image: url('images/liberty%20bathroom.jpg?v=2'); }
.gallery-4 { background-image: url('images/liberty%20garden.jpg?v=2'); }

/* Image Lightbox */
.lightbox {
    display: none !important;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    animation: fadeIn 0.3s ease;
}

.lightbox.active {
    display: flex !important;
    align-items: center;
    justify-content: center;
}

#lightbox-image {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: white;
    font-size: 3rem;
    font-weight: 300;
    cursor: pointer;
    transition: transform 0.3s ease, color 0.3s ease;
    z-index: 10001;
    line-height: 1;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.lightbox-close:hover {
    transform: rotate(90deg);
    color: var(--color-primary);
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-nav {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    pointer-events: none;
}

.lightbox-prev,
.lightbox-next {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    font-size: 2.5rem;
    padding: 1rem 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 8px;
    pointer-events: all;
    margin: 0 2rem;
    backdrop-filter: blur(10px);
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 107, 53, 0.8);
    transform: scale(1.1);
}

.lightbox-prev {
    left: 0;
}

.lightbox-next {
    right: 0;
}

/* Lightbox Responsive Styles */
@media (max-width: 768px) {
    .lightbox-close {
        top: 20px;
        right: 20px;
        font-size: 2rem;
        width: 40px;
        height: 40px;
    }

    #lightbox-image {
        max-width: 95%;
        max-height: 85%;
    }

    .lightbox-prev,
    .lightbox-next {
        font-size: 2rem;
        padding: 0.75rem 1rem;
        margin: 0 1rem;
    }
}

/* --- Media Queries (Responsiveness) --- */
@media (max-width: 900px) {
    .about-content {
        flex-direction: column;
        text-align: center;
    }
    .about-image {
        order: -1;
        min-width: 100%;
    }
    .hero-title {
        font-size: 3rem;
    }
    .metadata-grid {
        flex-direction: column;
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .about-section {
        padding: 4rem 0;
    }
    
    .about-image {
        height: 300px;
    }
    
    .projects-section,
    .housing-section {
        padding: 4rem 0;
    }
    
    .contact-section {
        padding: 4rem 0;
    }
}

@media (max-width: 768px) {
    .hero-section {
        height: 80vh;
        padding-top: 80px; /* Match mobile header height */
    }
    
    .properties-hero {
        padding-top: 80px !important; /* Match mobile header height */
    }
    
    .properties-hero .hero-title {
        font-size: 2.5rem !important;
    }
    
    .properties-hero .hero-subtitle {
        font-size: 1.1rem !important;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-button {
        padding: 0.875rem 1.75rem;
        font-size: 0.95rem;
        min-height: 44px; /* Touch target size */
    }
    
    .typeform-button-wrapper button,
    .typeform-button-wrapper [data-tf-button],
    .typeform-button-wrapper iframe {
        padding: 0.875rem 1.75rem !important;
        font-size: 0.95rem !important;
        min-height: 44px !important; /* Touch target size */
    }
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 80px; /* Match mobile header height */
        left: 0;
        width: 100%;
        background-color: white;
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        padding: 1rem 0;
        border-top: 1px solid var(--color-graya);
        gap: 0;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        padding: 0.875rem 1.5rem;
        text-align: center;
        min-height: 44px; /* Touch target size */
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .nav-toggle {
        display: block;
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .logo-image {
        height: 60px;
        max-width: 200px;
        min-width: 120px;
    }
    
    .nav-content {
        height: 80px;
        padding: 0 1rem;
    }
    
    .logo {
        padding: 0;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-column {
        min-width: unset;
        width: 100%;
    }

    .social-icons {
        margin-top: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .graya-title {
        font-size: 2rem;
    }
    .graya-subtitle {
        font-size: 1rem;
    }

    .large-intro-text {
        font-size: 1.3rem;
    }
}

/* Extra small screens (phones in portrait) */
@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .properties-hero .hero-title {
        font-size: 2rem !important;
    }
    
    .properties-hero .hero-subtitle {
        font-size: 1rem !important;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .services-hero-title {
        font-size: 2rem;
    }
    
    .services-hero-subtitle {
        font-size: 1rem;
    }
    
    .graya-title {
        font-size: 1.75rem;
    }
    
    .graya-subtitle {
        font-size: 0.9rem;
    }
    
    .large-intro-text {
        font-size: 1.1rem;
    }
    
    .hero-button,
    .typeform-button-wrapper button,
    .typeform-button-wrapper [data-tf-button] {
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
        min-height: 44px;
    }
    
    .call-button {
        padding: 0.875rem 1.5rem;
        min-height: 44px;
    }
    
    .properties-search-button {
        padding: 0.875rem 1.5rem;
        min-height: 44px;
        width: 100%;
    }
    
    .map-toggle-button {
        padding: 0.875rem 1.5rem;
        min-height: 44px;
    }
    
    .submit-button {
        padding: 0.875rem 1.5rem;
        min-height: 44px;
        width: 100%;
    }
    
    .cookies-accept-btn,
    .cookies-decline-btn {
        padding: 0.875rem 1.25rem;
        min-height: 44px;
    }
    
    .logo-image {
        max-width: 180px;
        min-width: 100px;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .hero-content {
        padding: 1.5rem 1rem;
    }
    
    .properties-hero .hero-content {
        padding: 1.5rem 1rem !important;
    }
}

/* Cookies Policy Popup */
.cookies-popup {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    padding: 1.5rem 2rem;
    z-index: 10000;
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
    border-top: 3px solid var(--color-primary);
}

.cookies-popup.show {
    transform: translateY(0);
}

.cookies-popup-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.cookies-popup-text {
    flex: 1;
    min-width: 300px;
}

.cookies-popup-text p {
    margin: 0;
    color: var(--color-dark);
    font-size: 0.95rem;
    line-height: 1.6;
}

.cookies-popup-text a {
    color: var(--color-primary);
    text-decoration: underline;
}

.cookies-popup-buttons {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

.cookies-accept-btn,
.cookies-decline-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.cookies-accept-btn {
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    color: white;
}

.cookies-accept-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 0, 0.3);
}

.cookies-decline-btn {
    background: #f5f5f5;
    color: var(--color-dark);
}

.cookies-decline-btn:hover {
    background: #e0e0e0;
}

@media (max-width: 768px) {
    .cookies-popup {
        padding: 1.25rem 1rem;
    }
    
    .cookies-popup-content {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .cookies-popup-buttons {
        width: 100%;
        flex-direction: column;
    }
    
    .cookies-accept-btn,
    .cookies-decline-btn {
        width: 100%;
        min-height: 44px; /* Touch target */
    }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}
