/* --- Global Styles & Variables --- */
:root {
    /* Obiora Okafor & Associates Brand Colors */
    --primary-red: #D82C2C; /* Main brand red */
    --primary-grey: #8C8C8C; /* Main brand grey */
    --primary-black: #000000; /* Main brand black */

    --secondary-white: #FFFFFF; /* Clean white for backgrounds */
    --accent-red-light: #EF4444; /* Slightly brighter red for hovers/accents */
    --light-grey-bg: #F3F4F6; /* Very light grey for subtle backgrounds */

    --dark-grey-text: #212529; /* General body text color, adjusted for better contrast */
    --medium-text: #495057; /* Medium text color */
    --muted-text: #6c757d; /* Muted text color */
    --border-grey: #D1D5DB; /* Borders and dividers */

    /* Gradients (using new primary colors) */
    --primary-gradient: linear-gradient(135deg, var(--primary-red), var(--accent-red-light));
    --secondary-gradient: linear-gradient(135deg, var(--primary-red), var(--accent-red-light)); /* Using red for secondary gradient too for consistency */

    /* Existing variables adjusted or kept */
    --accent-color: var(--primary-red); /* Using primary red as the main accent */

    --light-bg: var(--secondary-white);
    --medium-light-bg: var(--light-grey-bg);
    --dark-text: var(--primary-black);
    --medium-text: var(--dark-grey-text); /* Adjusted to new dark grey for text */
    --light-text-on-dark: var(--secondary-white);
    --muted-text: var(--primary-grey); /* Adjusted to new primary grey for muted text */

    --border-color: var(--border-grey); /* Adjusted to new border grey */
    --card-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    --card-hover-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);

    --futuristic-font: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    /* Modern, clean sans-serif */
    --body-font: 'Poppins', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

    --container-width: 1200px;
    --border-radius: 12px;
    /* Softer, more modern rounding */
    --transition-speed: 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    /* Smoother transition */
}

/* Import Font (Example - Google Fonts - Poppins) */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    /* For smooth anchor link scrolling */
}

body {
    font-family: var(--body-font);
    background-color: var(--light-bg);
    color: var(--dark-text);
    line-height: 1.7;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    /* Prevent horizontal scroll from animations */
}

.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 15px;
}

h1,
h2,
h3,
h4 {
    font-family: var(--futuristic-font);
    font-weight: 600;
    color: var(--dark-text);
    margin-bottom: 1rem;
    line-height: 1.3;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 3.8rem);
    /* Responsive font size */
}

h2.section-title,
h2.section-title-alt {
    font-size: clamp(2rem, 4vw, 2.8rem);
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    color: var(--dark-text);
}

h2.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--primary-gradient);
    margin: 15px auto 0;
    border-radius: 2px;
}

h2.section-title-alt {
    color: var(--dark-text);
}

/* For sections with different bg */
h2.section-title-alt::after {
    display: none;
}


h3 {
    font-size: clamp(1.5rem, 3vw, 1.9rem);
}

h4 {
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
}

p {
    margin-bottom: 1.2rem;
    color: var(--medium-text);
    font-weight: 400;
}

p.subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--muted-text);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.loading-text {
    text-align: center;
    padding: 40px;
    color: var(--muted-text);
}

a {
    color: var(--primary-red); /* Changed to primary red */
    text-decoration: none;
    transition: color var(--transition-speed);
}

a:hover {
    color: var(--accent-red-light); /* Changed to accent red light */
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: var(--border-radius);
    /* Default rounded images */
}

ul {
    list-style: none;
}

.btn {
    display: inline-flex;
    /* For aligning icon and text */
    align-items: center;
    justify-content: center;
    gap: 8px;
    /* Space between icon and text */
    padding: 12px 28px;
    border-radius: var(--border-radius);
    font-family: var(--futuristic-font);
    font-weight: 600;
    text-transform: capitalize;
    /* Softer than uppercase */
    letter-spacing: 0.5px;
    transition: all var(--transition-speed);
    cursor: pointer;
    border: none;
    font-size: 0.95rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn i {
    font-size: 0.9em;
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 6px 20px rgba(216, 44, 44, 0.4); /* Shadow from primary red */
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-red); /* Changed to primary red */
    border: 2px solid var(--primary-red); /* Changed to primary red */
}

.btn-secondary:hover {
    background-color: var(--primary-red); /* Changed to primary red */
    color: white;
    transform: translateY(-2px);
}

.btn-cta {
    background: var(--accent-color); /* This is now primary-red */
    color: white;
    padding: 15px 35px;
    font-size: 1.1rem;
    box-shadow: 0 5px 20px rgba(216, 44, 44, 0.3); /* Shadow from primary red */
}

.btn-cta:hover {
    background: var(--accent-red-light); /* Changed to accent red light */
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 7px 25px rgba(216, 44, 44, 0.5); /* Shadow from primary red */
}

.btn-lg {
    padding: 15px 35px;
    font-size: 1.05rem;
}

.text-center {
    text-align: center;
}

/* --- Header & Navbar --- */
#main-header {
    background-color: var(--primary-black); /* Changed to black */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2); /* Adjusted shadow for dark background */
    padding: 15px 0;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

#main-header.scrolled {
    background-color: var(--primary-black); /* Changed to black */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3); /* Adjusted shadow for dark background */
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--futuristic-font);
    font-size: 1.8rem;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.5px;
}

.logo img { /* Added this rule for the logo image */
    max-height: 70px; /* Increased height for desktop */
    width: auto; /* Maintain aspect ratio */
    vertical-align: middle; /* Keep original alignment */
    border-radius: 5px; /* Keep original border-radius */
    transition: max-height 0.3s ease; /* Smooth transition for size changes */
}

.nav-links {
    display: flex;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    font-family: var(--body-font);
    font-weight: 500;
    font-size: 1rem;
    color: var(--light-text-on-dark); /* Changed text color for dark header */
    padding: 8px 0;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2.5px;
    background: var(--primary-gradient);
    transition: width var(--transition-speed);
    border-radius: 2px;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-red); /* Changed to primary red */
}

.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.8rem;
    color: var(--primary-red); /* Changed to primary red */
}

/* --- Hero Section --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding-top: 100px;
    padding-bottom: 40px;
    overflow: hidden;
    background: none;
    /* Remove static background image */
}

.hero-bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    pointer-events: none;
}

.hero-gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Updated overlay to be more subtle and match general theme if needed */
    background: linear-gradient(to bottom, rgba(216, 44, 44, 0.1), rgba(239, 68, 68, 0.4)); /* Using primary red and accent red light with rgba */
    opacity: 0.65; /* Slightly adjusted opacity */
    z-index: 1;
}
    
.hero .container {
    position: relative;
    z-index: 2; /* Ensure content is above overlay */
}

.hero h1 {
    font-size: clamp(2.8rem, 6vw, 4.5rem);
    margin-bottom: 1rem;
    color: white;
    font-weight: 700;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
}

.hero p.subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 800px;
}

.search-bar-main {
    display: flex;
    flex-wrap: wrap;
    /* Allow wrapping on smaller screens */
    gap: 15px;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    max-width: 850px;
    margin: 0 auto;
}

.search-bar-main input[type="text"],
.search-bar-main select {
    flex-grow: 1;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background-color: var(--light-bg);
    color: var(--dark-text);
    font-size: 1rem;
    min-width: 200px;
    /* Ensure inputs are usable */
}

.search-bar-main input[type="text"]::placeholder {
    color: var(--muted-text);
}

.search-bar-main select {
    color: var(--dark-text);
}

/* Default select text color */
.search-bar-main option {
    color: var(--dark-text);
}

/* Options color */
.search-bar-main button {
    padding: 15px 30px;
    flex-shrink: 0;
    /* Prevent button from shrinking too much */
}

/* --- Page Header (for other pages) */
.page-header {
    background-color: var(--medium-light-bg);
    /* Light background */
    padding: 120px 0 60px;
    text-align: center;
    margin-top: 70px;
    /* Height of fixed header */
    position: relative;
    overflow: hidden;
}

.page-header-gradient-overlay {
    /* Subtle gradient accent */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 70%, rgba(216, 44, 44, 0.1) 100%); /* Using primary red with rgba */
    opacity: 0.1;
    z-index: 0;
}

.page-header .container {
    position: relative;
    z-index: 1;
}

.page-header h1 {
    color: var(--dark-text);
    font-weight: 700;
}

.page-header p.subtitle {
    color: var(--muted-text);
}

/* --- Sections --- */
section {
    padding: 80px 0;
    overflow: hidden;
    /* For animations */
}

section:nth-child(even):not(.hero):not(.page-header):not(.cta-section):not(.dual-box-showcase):not(.residential-showcase) {
    background-color: var(--medium-light-bg);
}

/* Featured Services (Home Page) */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--light-bg);
    padding: 35px 30px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--card-shadow);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--card-hover-shadow);
}

.service-icon-wrapper {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--primary-gradient);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px auto;
    font-size: 2rem;
    box-shadow: 0 5px 15px rgba(216, 44, 44, 0.3); /* Shadow from primary red */
}

.service-card h3 {
    margin-bottom: 10px;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--dark-text);
}

.service-card p {
    color: var(--muted-text);
    font-size: 0.95rem;
    flex-grow: 1;
    /* Make p take available space */
    margin-bottom: 20px;
}

.service-card .btn-secondary {
    margin-top: auto;
    /* Push button to bottom */
}

/* Property Listings & Cards */
.property-listings {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
    /* Slightly larger cards */
    gap: 30px;
}

.property-card {
    background-color: var(--light-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
}

.property-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: var(--card-hover-shadow);
}

.property-image {
    height: 240px;
    overflow: hidden;
    position: relative;
    /* For status badge */
}

.property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    /* Slightly longer for image zoom */
}

.property-card:hover .property-image img {
    transform: scale(1.08);
}

.property-status {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary-gradient);
    color: white;
    padding: 6px 12px;
    border-radius: calc(var(--border-radius) / 2);
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 1;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.property-status.auction {
    background: var(--accent-color); /* This is primary-red */
}

.property-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.property-content h4 {
    font-family: var(--futuristic-font);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--dark-text);
    margin-bottom: 8px;
}

.property-location {
    color: var(--muted-text);
    font-size: 0.95rem;
    margin-bottom: 12px;
}

.property-location i {
    margin-right: 6px;
    color: var(--primary-red); /* Changed to primary red */
}

.property-price {
    font-size: 1.6rem;
    font-weight: 700;
    background: var(--primary-gradient); /* Changed to primary gradient */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
}

.property-details {
    display: flex;
    flex-wrap: wrap;
    /* Allow wrapping for many details */
    gap: 10px 15px;
    /* Row and column gap */
    margin-bottom: 20px;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 12px 0;
}

.property-details span {
    font-size: 0.9rem;
    color: var(--medium-text);
    display: inline-flex;
    align-items: center;
}

.property-details i {
    margin-right: 6px;
    color: var(--primary-red); /* Changed to primary red */
}

.auction-info {
    background-color: rgba(216, 44, 44, 0.05); /* Light primary red tint */
    padding: 12px;
    border-radius: calc(var(--border-radius) / 1.5);
    margin-bottom: 15px;
    font-size: 0.9rem;
    border: 1px solid rgba(216, 44, 44, 0.2); /* Primary red border */
}

.auction-info p {
    margin-bottom: 5px;
    color: var(--primary-red); /* Changed to primary red */
}

.auction-info strong {
    color: var(--dark-text);
}

.property-actions {
    margin-top: auto;
    /* Pushes actions to the bottom */
    display: grid;
    /* Use grid for better alignment */
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
}

.property-actions .btn {
    padding: 10px;
    font-size: 0.85rem;
}

.property-actions .btn-save-property.saved {
    background-color: var(--primary-red); /* Changed to primary red */
    color: white;
    border-color: var(--primary-red); /* Changed to primary red */
}

.property-actions .btn-save-property.saved i {
    color: white;
}

/* --- Dual Box Showcase Section (Corporate) --- */
.dual-box-showcase {
    background-color: var(--medium-light-bg); /* Or var(--light-bg) if preferred */
    padding: 80px 0;
}

.dual-box-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two equal columns */
    gap: 0; /* No gap, backgrounds will touch */
    align-items: stretch; /* Make boxes same height */
    border-radius: var(--border-radius);
    overflow: hidden; /* To ensure child border-radius is clipped if needed */
    box-shadow: var(--card-shadow);
}

.image-scroller-box {
    background-color: var(--light-bg); /* White background for image box */
    padding: 30px;
    max-height: 500px; /* Adjust as needed */
    overflow-y: auto; /* Enable vertical scroll */
    display: flex;
    flex-direction: column;
    gap: 20px; /* Space between images */
}

.image-scroller-box img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: calc(var(--border-radius) / 1.5); /* Slightly smaller radius for inner elements */
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.text-content-box {
    background-color: var(--primary-red); /* Changed to Primary Red */
    color: var(--light-text-on-dark); /* Light text on dark background */
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.text-content-box .eyebrow-heading {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.8); /* Slightly transparent white */
    margin-bottom: 0.5rem;
}

.text-content-box h2 {
    color: var(--light-bg); /* White heading */
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    margin-bottom: 1.5rem;
}

.text-content-box p {
    color: rgba(255, 255, 255, 0.9); /* Slightly transparent white for paragraphs */
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.text-content-box .btn-cta {
    background: var(--light-bg); /* White button */
    color: var(--primary-red); /* Changed to Primary Red */
    align-self: flex-start; /* Align button to the start */
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.text-content-box .btn-cta:hover {
    background: var(--medium-light-bg); /* Slightly off-white hover */
    color: var(--primary-red); /* Changed to Primary Red */
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 7px 20px rgba(0,0,0,0.15);
}

/* --- NEW: Residential Showcase Section --- */
.residential-showcase {
    background-color: var(--light-bg); /* Lighter background for residential */
    padding: 80px 0;
}

.residential-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two equal columns */
    gap: 0; /* No gap */
    align-items: stretch;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1); /* More pronounced shadow */
}

.residential-text-content-box {
    background: linear-gradient(160deg, var(--light-grey-bg), rgba(216, 44, 44, 0.05)); /* Soft red tint gradient */
    color: var(--dark-text); /* Dark text on light background */
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-right: 1px solid rgba(0, 0, 0, 0.05); /* Subtle separator */
}

.residential-text-content-box .eyebrow-heading {
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--primary-red); /* Brand red */
    margin-bottom: 0.75rem;
    text-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.residential-text-content-box h2 {
    color: var(--primary-black); /* Stronger black for heading */
    font-size: clamp(2rem, 4vw, 2.8rem);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.residential-text-content-box p {
    color: var(--medium-text); /* Standard text color */
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.btn-residential-cta {
    background: var(--primary-gradient); /* Brand red gradient button */
    color: white;
    padding: 16px 35px;
    font-size: 1.1rem;
    border-radius: 50px; /* Pill shape */
    box-shadow: 0 8px 25px rgba(216, 44, 44, 0.3); /* Red shadow */
    transition: all var(--transition-speed);
    align-self: flex-start;
}

.btn-residential-cta:hover {
    background: var(--accent-red-light); /* Lighter red on hover */
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 12px 35px rgba(216, 44, 44, 0.4);
}

.residential-image-gallery-box {
    background-color: var(--light-grey-bg); /* Light grey for image background */
    padding: 30px;
    max-height: 550px; /* Slightly taller than corporate */
    overflow-y: auto; /* Enable vertical scroll */
    display: grid; /* Use grid for image layout */
    grid-template-columns: 1fr; /* Single column */
    gap: 25px; /* Space between images */
    position: relative; /* For potential overlay effects */
}

.residential-image-gallery-box img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: var(--border-radius); /* Rounded corners */
    box-shadow: 0 6px 15px rgba(0,0,0,0.1); /* Soft shadow */
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.residential-image-gallery-box img:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}


/* CTA Section */
.cta-section {
    background-color: var(--dark-text);
    /* Dark background for contrast */
    color: white;
    text-align: center;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.cta-gradient-overlay {
    /* Abstract gradient shapes or pattern */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 10% 20%, rgba(216, 44, 44, 0.3), transparent 50%), /* Using primary red with rgba */
        radial-gradient(circle at 80% 70%, rgba(239, 68, 68, 0.25), transparent 50%); /* Using accent red light with rgba */
    opacity: 0.7;
    pointer-events: none;
}

.cta-section .container {
    position: relative;
    z-index: 1;
}

.cta-section h2 {
    color: white;
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.cta-section .btn-cta { /* Re-styling CTA button for this section if needed, or ensure consistency */
    background: var(--primary-gradient); /* Original CTA style */
    color: white;
}

.cta-section .btn-cta:hover {
    background: var(--accent-color); /* This is primary-red */
    /* Change to accent on hover */
    box-shadow: 0 7px 25px rgba(216, 44, 44, 0.5); /* Shadow from primary red */
}

/* --- Footer --- */
footer {
    background-color: var(--medium-light-bg);
    color: var(--muted-text);
    padding: 60px 0 20px;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand h3 {
    font-family: var(--futuristic-font);
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.7rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.footer-brand p {
    font-size: 0.95rem;
    color: var(--medium-text);
}

.social-links a {
    color: var(--muted-text);
    font-size: 1.4rem;
    margin-right: 18px;
    transition: color var(--transition-speed), transform var(--transition-speed);
    display: inline-block;
    /* For transform */
}

.social-links a:hover {
    color: var(--primary-red); /* Changed to primary red */
    transform: scale(1.1);
}

.footer-links h4,
.footer-contact h4,
.footer-newsletter h4 {
    font-family: var(--futuristic-font);
    color: var(--dark-text);
    font-size: 1.25rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul li a {
    color: var(--muted-text);
    font-size: 0.95rem;
}

.footer-links ul li a:hover {
    color: var(--primary-red); /* Changed to primary red */
    padding-left: 5px;
}

.footer-contact p {
    font-size: 0.95rem;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    color: var(--medium-text);
}

.footer-contact i {
    color: var(--primary-red); /* Changed to primary red */
    margin-right: 12px;
    width: 20px;
    /* Align icons */
    font-size: 1.1rem;
}

.newsletter-form p {
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.newsletter-form {
    display: flex;
}

.newsletter-form input[type="email"] {
    flex-grow: 1;
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    font-size: 0.9rem;
    background-color: var(--light-bg);
}

.newsletter-form button {
    padding: 10px 15px;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    box-shadow: none;
    /* Remove default button shadow */
}

.copyright {
    text-align: center;
    font-size: 0.9rem;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
    color: var(--muted-text);
}

.copyright .fa-heart {
    color: var(--primary-red); /* Changed to primary red */
}

/* --- Properties Page Specific --- */
.property-search-filter {
    background-color: var(--light-bg);
    /* White background for filters */
    padding: 40px 0;
    border-bottom: 1px solid var(--border-color);
}

.filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    align-items: end;
    /* Align items to bottom for label alignment */
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-group label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--medium-text);
    margin-bottom: 8px;
    display: inline-flex;
    align-items: center;
}

.filter-group label i {
    margin-right: 6px;
    color: var(--primary-red); /* Changed to primary red */
}

.filters input[type="text"],
.filters select {
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background-color: var(--medium-light-bg);
    color: var(--dark-text);
    font-size: 1rem;
    width: 100%;
}

.filters input[type="text"]::placeholder {
    color: var(--muted-text);
}

.filters button {
    padding: 12px 25px;
    width: 100%;
    grid-column: span 1 / -1;
}

/* Button spans last column or full on small */
@media (min-width: 992px) {
    .filters {
        grid-template-columns: repeat(3, 1fr) auto;
    }

    /* 3 filters and a button */
    .filters button {
        width: auto;
    }
}

.tabs {
    margin-bottom: 30px;
    border-bottom: 2px solid var(--border-color);
    display: flex;
    gap: 10px;
    /* Space between tabs */
}

.tab-link {
    padding: 15px 25px;
    cursor: pointer;
    background-color: transparent;
    border: none;
    color: var(--muted-text);
    font-family: var(--futuristic-font);
    font-weight: 500;
    font-size: 1.1rem;
    position: relative;
    transition: color var(--transition-speed);
    border-bottom: 3px solid transparent;
    /* Placeholder for active border */
}

.tab-link:hover {
    color: var(--primary-red); /* Changed to primary red */
}

.tab-link.active {
    color: var(--primary-red); /* Changed to primary red */
    border-bottom-color: var(--primary-red); /* Changed to primary red */
}

.tab-link i {
    margin-right: 8px;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Saved Notification */
.notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--primary-gradient);
    color: white;
    padding: 18px 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 8px 25px rgba(216, 44, 44, 0.3); /* Shadow from primary red */
    z-index: 1001;
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    transition: opacity 0.4s ease, transform 0.4s ease;
    font-family: var(--futuristic-font);
    font-weight: 500;
}

.notification.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* --- Services Page Specific --- */
.service-detail-section {
    background-color: var(--light-bg);
}

.service-item {
    display: flex;
    gap: 40px;
    align-items: center;
    margin-bottom: 60px;
    padding: 40px;
    background-color: var(--medium-light-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    overflow: hidden;
    /* For image effect */
}

.service-item.reverse {
    flex-direction: row-reverse;
}

.service-item-image {
    flex: 0 0 45%;
    /* Image takes 45% width */
    max-width: 45%;
    overflow: hidden;
    border-radius: var(--border-radius);
}

.service-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-item:hover .service-item-image img {
    transform: scale(1.05);
}

.service-item-content {
    flex: 1;
}

.service-icon-accent {
    font-size: 2.5rem;
    background: var(--primary-gradient); /* Changed to primary gradient */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
    display: inline-block;
}

.service-item-content h2 {
    text-align: left;
    margin-bottom: 15px;
    font-size: 2rem;
}

.service-item-content h2::after {
    display: none;
}

/* Remove global underline */
.service-features {
    list-style: none;
    padding-left: 0;
    margin-bottom: 25px;
}

.service-features li {
    margin-bottom: 10px;
    color: var(--medium-text);
    font-size: 1rem;
    display: flex;
    align-items: center;
}

.service-features li i {
    color: var(--primary-red); /* Changed to primary red */
    margin-right: 10px;
    font-size: 1.2em;
}

/* --- About Page Specific --- */
.about-content {
    background-color: var(--light-bg);
}

.about-main {
    display: flex;
    gap: 50px;
    align-items: center;
    margin-bottom: 60px;
}

.about-text {
    flex: 1;
}

.about-text h2.section-title-alt {
    text-align: left;
    margin-bottom: 20px;
}

.about-image-container {
    flex: 0 0 40%;
    max-width: 480px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.mission-vision {
    margin-top: 30px;
}

.mission-vision h3 {
    font-size: 1.5rem;
    color: var(--dark-text);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.mission-vision h3 i {
    margin-right: 10px;
    font-size: 1.3em;
    background: var(--primary-gradient); /* Changed to primary gradient */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.core-values {
    background-color: var(--medium-light-bg);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.value-card {
    background-color: var(--light-bg);
    padding: 30px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
}

.value-card i {
    font-size: 2.5rem;
    margin-bottom: 15px;
    display: inline-block;
    background: var(--primary-gradient); /* Changed to primary gradient */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.value-card h4 {
    color: var(--dark-text);
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.value-card p {
    font-size: 0.95rem;
    color: var(--muted-text);
}

.team-section {
    background-color: var(--light-bg);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); /* Adjusted to 3 columns for 6 members */
    gap: 30px;
}

.team-member-card {
    background-color: var(--medium-light-bg);
    padding: 0;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--card-shadow);
    overflow: hidden;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    position: relative; /* Needed for pseudo-elements or overlays */
    display: flex; /* Use flexbox for internal layout */
    flex-direction: column; /* Stack content vertically */
    justify-content: space-between; /* Push button to bottom */
}

.team-member-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--card-hover-shadow);
}

/* Optional: Add a subtle overlay on hover for team cards */
.team-member-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(216, 44, 44, 0.05); /* Light red overlay */
    border-radius: var(--border-radius);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none; /* Allow clicks to pass through */
}

.team-member-card:hover::before {
    opacity: 1;
}


.team-member-img-wrapper {
    height: 300px;
    overflow: hidden;
}

.team-member-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    transition: transform 0.5s ease;
}

.team-member-card:hover .team-member-img-wrapper img {
    transform: scale(1.05);
}

.team-member-card h4 {
    color: var(--dark-text);
    font-family: var(--futuristic-font);
    font-size: 1.3rem;
    margin-top: 20px;
    margin-bottom: 5px;
    padding: 0 15px; /* Add padding to prevent text from touching edges */
}

.team-member-card p {
    color: var(--muted-text);
    font-size: 0.95rem;
    margin-bottom: 15px;
    padding: 0 15px; /* Add padding */
}

.team-social {
    padding-bottom: 20px;
    padding-top: 10px; /* Add some space above social links */
}

.team-social a {
    color: var(--muted-text);
    font-size: 1.2rem;
    margin: 0 8px;
}

.team-social a:hover {
    color: var(--primary-red); /* Changed to primary red */
}

.team-read-more-btn {
    margin-top: auto; /* Push button to the bottom of the card */
    width: calc(100% - 30px); /* Adjust width to fit padding */
    margin-left: 15px;
    margin-right: 15px;
    margin-bottom: 20px; /* Space below the button */
    padding: 10px 15px;
    font-size: 0.9rem;
    display: flex; /* Ensure icon and text are aligned */
    justify-content: center;
    align-items: center;
}

.team-read-more-btn i {
    margin-left: 8px; /* Space between text and icon */
    transition: transform 0.3s ease;
}

.team-read-more-btn.active i {
    transform: rotate(180deg); /* Rotate arrow when expanded */
}

.team-member-details-expand {
    max-height: 0; /* Hidden by default */
    overflow: hidden;
    transition: max-height 0.7s ease-out, padding 0.7s ease-out; /* Smooth transition for height and padding */
    padding: 0 15px; /* Initial padding, will expand */
    color: var(--medium-text);
    text-align: left; /* Align text within expanded section */
    font-size: 0.9rem;
    line-height: 1.6;
}

.team-member-details-expand.expanded {
    max-height: 1000px; /* Arbitrarily large value to allow content to expand fully */
    padding-top: 20px; /* Add padding when expanded */
    padding-bottom: 20px;
}

.team-member-details-expand p {
    margin-bottom: 1em; /* Standard paragraph spacing inside details */
    color: inherit; /* Inherit color from parent (.team-member-details-expand) */
}


/* --- Contact Page Specific --- */
.contact-section {
    background-color: var(--light-bg);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    /* Form takes more space */
    gap: 50px;
    background-color: var(--medium-light-bg);
    padding: 50px;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.07);
}

.contact-form-container h2.section-title-alt,
.contact-info-container h2.section-title-alt {
    text-align: left;
    margin-bottom: 30px;
    font-size: 1.8rem;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    color: var(--medium-text);
    font-weight: 500;
    font-size: 0.95rem;
}

.form-group label i {
    margin-right: 8px;
    color: var(--primary-red); /* Changed to primary red */
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background-color: var(--light-bg);
    color: var(--dark-text);
    font-size: 1rem;
    transition: border-color var(--transition-speed), box-shadow var(--transition-speed);
}

.form-group textarea {
    resize: vertical;
    min-height: 130px;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-red); /* Changed to primary red */
    box-shadow: 0 0 0 3px rgba(216, 44, 44, 0.15); /* Shadow from primary red */
}

#form-submission-status {
    margin-top: 20px;
    font-weight: 500;
    font-size: 1rem;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

.contact-icon-bg {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-gradient);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-right: 20px;
    box-shadow: 0 4px 10px rgba(216, 44, 44, 0.2); /* Shadow from primary red */
}

.contact-info-item h4 {
    color: var(--dark-text);
    margin-bottom: 5px;
    font-size: 1.2rem;
    font-weight: 600;
}

.contact-info-item p {
    color: var(--muted-text);
    font-size: 0.95rem;
    margin-bottom: 3px;
    line-height: 1.5;
}

.contact-info-item p a {
    color: var(--primary-red); /* Changed to primary red */
    font-weight: 500;
}

.contact-info-item p a:hover {
    text-decoration: underline;
}

#map-container {
    margin-top: 30px;
}

#map-container p {
    text-align: center;
    font-style: italic;
    color: var(--muted-text);
}


/* --- Scroll Animations --- */
.animate-on-scroll {
    opacity: 0;
    transition-property: opacity, transform;
    transition-duration: 0.8s;
    /* Default duration */
    transition-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Playful ease */
}

.animate-on-scroll.fade-in {
    transform: translateY(30px);
    /* Start slightly down */
}

.animate-on-scroll.fade-in-up {
    transform: translateY(50px);
}

.animate-on-scroll.fade-in-left {
    transform: translateX(-50px);
}

.animate-on-scroll.fade-in-right {
    transform: translateX(50px);
}

.animate-on-scroll.scale-up {
    transform: scale(0.9);
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0) translateX(0) scale(1);
}


/* --- Responsive Design --- */
@media (max-width: 992px) {
    .hero h1 {
        font-size: clamp(2.2rem, 5vw, 3rem);
    }

    .hero p.subtitle {
        font-size: clamp(1rem, 2vw, 1.2rem);
    }

    .search-bar-main {
        flex-direction: column;
        padding: 15px;
    }

    .search-bar-main input,
    .search-bar-main select,
    .search-bar-main button {
        width: 100%;
    }

    .service-item,
    .service-item.reverse {
        flex-direction: column;
        text-align: center;
    }

    .service-item-image,
    .service-item.reverse .service-item-image {
        max-width: 80%;
        margin: 0 auto 20px auto;
        flex-basis: auto;
    }

    .service-item-content h2,
    .service-icon-accent {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }

    .service-features {
        text-align: left;
        display: inline-block;
    }

    .about-main {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .about-image-container {
        max-width: 80%;
        margin-top: 30px;
    }

    .about-text h2.section-title-alt {
        text-align: center;
    }

    .mission-vision h3 {
        justify-content: center;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-form-container h2.section-title-alt,
    .contact-info-container h2.section-title-alt {
        text-align: center;
    }

    .dual-box-grid {
        grid-template-columns: 1fr; /* Stack columns on smaller screens */
    }
    .image-scroller-box {
        max-height: 350px; /* Adjust height for stacked view */
        order: 1; /* Image box first */
    }
    .text-content-box {
        order: 2; /* Text box second */
        text-align: center;
    }
    .text-content-box .btn-cta {
        align-self: center; /* Center button in stacked view */
    }

    /* NEW: Residential Showcase Responsive */
    .residential-grid {
        grid-template-columns: 1fr; /* Stack columns on smaller screens */
    }
    .residential-text-content-box {
        padding: 30px;
        text-align: center;
        border-right: none; /* Remove border when stacked */
        border-bottom: 1px solid rgba(0, 0, 0, 0.05); /* Add bottom border */
    }
    .residential-text-content-box .btn-residential-cta {
        align-self: center; /* Center button */
    }
    .residential-image-gallery-box {
        padding: 20px;
        max-height: 400px;
    }

    .team-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Adjust for smaller screens */
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        /* Position below header */
        left: 0;
        width: 100%;
        background-color: var(--primary-black); /* Changed to black for mobile menu */
        padding: 15px 0;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2); /* Adjusted shadow */
        border-top: 1px solid var(--border-color);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 12px 0;
        text-align: center;
    }

    .nav-links a {
        font-size: 1.1rem;
        color: var(--light-text-on-dark); /* Ensure text is visible on dark mobile menu */
    }

    .hamburger {
        display: block;
    }

    h1 {
        font-size: clamp(2rem, 5vw, 2.5rem);
    }

    h2.section-title,
    h2.section-title-alt {
        font-size: clamp(1.8rem, 4vw, 2.2rem);
    }

    .hero h1 {
        font-size: clamp(2.2rem, 6vw, 3rem);
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-contact p,
    .footer-brand .social-links {
        justify-content: center;
    }

    .social-links {
        margin-bottom: 20px;
    }

    .newsletter-form {
        max-width: 350px;
        margin: 0 auto;
    }

    .filters {
        grid-template-columns: 1fr;
    }

    /* Stack filters */
    .filters button {
        grid-column: auto;
    }

    /* Reset button span */
    .tabs {
        flex-wrap: wrap;
        justify-content: center;
    }

    .tab-link {
        flex-basis: 50%;
        text-align: center;
    }

    /* Two tabs per row if needed */
    .logo img { /* Adjusted for mobile */
        max-height: 50px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: clamp(1.8rem, 7vw, 2.2rem);
    }

    .hero p.subtitle {
        font-size: clamp(0.9rem, 3vw, 1rem);
    }

    .property-card {
        margin-left: auto;
        margin-right: auto;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .btn-cta {
        padding: 12px 25px;
        font-size: 1rem;
    }

    .property-actions {
        grid-template-columns: 1fr;
    }

    /* Stack buttons in property card */
    .service-item-image,
    .service-item.reverse .service-item-image {
        max-width: 100%;
    }

    .contact-grid {
        padding: 30px;
    }

    .footer-content {
        gap: 30px;
    }

    .image-scroller-box {
        padding: 20px;
        max-height: 300px;
    }
    .text-content-box {
        padding: 30px;
    }
    .text-content-box h2 {
        font-size: clamp(1.6rem, 4vw, 2rem);
    }

    /* NEW: Residential Showcase Mobile Adjustments */
    .residential-text-content-box {
        padding: 30px;
    }
    .residential-text-content-box h2 {
        font-size: clamp(1.8rem, 5vw, 2.2rem);
    }
    .residential-image-gallery-box {
        padding: 20px;
        max-height: 350px;
    }
}
