/* --- Global Styles & Variables --- */
:root {
    --primary-color: #F97316; /* Orange - buttons, highlights */
    --secondary-color: #4A2E6A; /* Dark Purple - hero bg, highlighted card, CTA bg */
    --background-color: #F7F5FA; /* Light Lavender - overall page background */
    --header-bg-color: #F7F5FA; /* Header background */
    --card-bg-color: #FFFFFF; /* White - regular feature cards, why us section */
    --text-dark: #333333;
    --text-light: #FFFFFF;
    --text-medium: #4B5563; /* Footer text, subtle text */
    --text-caption: #F97316; /* Image caption text */
    --highlight-yellow: #FDBA74; /* Text highlight in hero */
    --hero-list-color: #E5DDF0; /* Hero list text color */
    --cta-p-color: #E5DDF0; /* CTA paragraph text */
    --footer-p-color: #6B7280; /* Footer paragraph text */

    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 20px; /* For image caption */

    --container-width: 1100px;
    --font-family: 'Poppins', sans-serif;
}

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

body {
    font-family: var(--font-family);
    background-color: var(--background-color);
    color: var(--text-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 3.5rem; font-weight: 800;} /* Hero H1 */
h2 { font-size: 2.25rem; } /* Why Property Egg, CTA H2 */
h3 { font-size: 1.5rem; } /* Feature card H3 */
h4 { font-size: 1.125rem; font-weight: 600; } /* Footer H4 */

p { margin-bottom: 1rem; }

/* --- Buttons --- */
.btn {
    display: inline-flex; /* Use flexbox for perfect alignment */
    align-items: center;
    justify-content: center;
    padding: 14px 30px; /* Slightly adjusted padding for exact match */
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap; /* Prevent text wrapping */
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-light);
    border: 2px solid var(--primary-color);
}
.btn-primary:hover {
    background-color: #FB923C; /* Slightly lighter orange */
    border-color: #FB923C;
}

.btn-light {
    background-color: var(--card-bg-color);
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}
.btn-light:hover {
    background-color: #f1f1f1;
}

.btn-dark-header { /* Specific style for header 'Join free webinar' button */
    background-color: var(--secondary-color);
    color: var(--text-light);
    border: none; /* No border for header button */
    padding: 10px 25px; /* Smaller padding */
    font-size: 0.95rem;
    border-radius: var(--border-radius-sm);
}
.btn-dark-header:hover {
    background-color: #614088; /* Slightly lighter purple */
}


/* --- Header & Navigation --- */
.main-header {
    background-color: var(--header-bg-color);
    padding: 20px 0;
    border-bottom: 1px solid #EAEAEA; /* Subtle border */
    box-shadow: 0 2px 4px rgba(0,0,0,0.02); /* Very subtle shadow */
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 1.4rem; /* Adjusted font size for logo text */
    color: var(--secondary-color);
    margin-right: 30px; /* Space between logo and nav links */
}

.logo img {
    height: 32px; /* Adjusted logo image height */
    margin-right: 8px;
}

.nav-links {
    display: flex;
    gap: 30px;
    margin-right: auto; /* Pushes the button to the right */
}

.nav-links a {
    color: var(--text-dark);
    font-weight: 500;
    padding-bottom: 5px;
    position: relative;
}

.nav-links a.active, .nav-links a:hover {
    color: var(--primary-color);
}
.nav-links a.active::after, .nav-links a:hover::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
}

/* --- Hero Section --- */
.hero-section {
    padding: 80px 0; /* Increased padding */
    background-color: var(--card-bg-color); /* White background for this section */
}

.hero-container {
    display: flex;
    align-items: center;
    gap: 60px; /* Increased gap */
}

.hero-content {
    flex: 1;
    background-color: var(--secondary-color);
    color: var(--text-light);
    padding: 50px 40px; /* Adjusted padding */
    border-radius: var(--border-radius-md);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1); /* Added subtle shadow */
}

.hero-content h1 {
    font-size: 2.75rem; /* Specific H1 size for hero */
    margin-bottom: 15px;
    line-height: 1.1;
}

.hero-content .highlight {
    color: var(--highlight-yellow);
}

.hero-content p {
    margin: 20px 0 30px 0; /* Adjusted margins */
    color: var(--hero-list-color);
    font-size: 1.05rem;
}

.hero-content ul {
    padding-left: 0; /* Remove default padding */
    margin-bottom: 30px;
}
.hero-content ul li {
    position: relative;
    padding-left: 30px; /* Space for custom bullet */
    margin-bottom: 12px;
    color: var(--hero-list-color);
    font-size: 1.05rem;
}
.hero-content ul li .bullet-icon {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background-color: var(--highlight-yellow); /* Yellow square for bullet */
    border-radius: 4px; /* Slightly rounded corners */
}

.hero-buttons {
    margin-top: 30px;
    display: flex;
    gap: 15px;
}

.hero-image-wrapper {
    flex: 1;
    text-align: center;
    position: relative;
    display: flex; /* To center the image within its wrapper */
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-bottom: 50px; /* Space for the caption below */
}

.hero-image {
    width: 380px; /* Fixed width for the image container */
    height: 400px; /* Fixed height for the image container */
    background-color: #E2D3F5; /* Light purple background for the image frame */
    border-radius: var(--border-radius-md);
    overflow: hidden; /* Ensure image doesn't spill out */
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1); /* Added shadow */
    position: relative;
    z-index: 1; /* Ensure image is above caption visually if overlaps */
}
.hero-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    /* The provided image had some white space around the egg,
       if you have a version without it, using cover might be better.
       For now, contain to match the original display.
    */
}


.image-caption {
    position: absolute; /* Position relative to .hero-image-wrapper */
    bottom: 0; /* Align to the bottom of the wrapper */
    display: inline-block;
    padding: 12px 25px; /* Adjusted padding */
    border: 1px solid var(--primary-color);
    border-radius: var(--border-radius-lg); /* More rounded */
    background-color: #FEF3C7; /* Light yellow background */
    color: var(--text-caption);
    font-weight: 500;
    font-size: 0.95rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05); /* Subtle shadow */
    z-index: 2; /* Ensure caption is above the hero image wrapper's background */
}

/* --- Features Section --- */
.features-section {
    padding: 60px 0;
    background-color: var(--background-color); /* Same as body background */
}

.features-section .container {
    display: flex;
    justify-content: center;
    gap: 25px; /* Slightly adjusted gap */
    flex-wrap: wrap;
}

.feature-card {
    background: var(--card-bg-color);
    padding: 35px 30px; /* Adjusted padding */
    border-radius: var(--border-radius-md);
    box-shadow: 0 6px 15px rgba(0,0,0,0.05); /* Refined shadow */
    flex: 1; /* Allow cards to grow and shrink */
    min-width: 280px; /* Minimum width for cards */
    max-width: 350px; /* Maximum width to prevent over-stretching */
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.feature-card.highlighted {
    background-color: var(--secondary-color);
    color: var(--text-light);
    transform: translateY(-20px); /* Lifted higher */
}
.feature-card.highlighted p {
    color: var(--hero-list-color); /* Lighter text for highlighted card */
}
.feature-card.highlighted:hover {
    transform: translateY(-25px); /* Lifted even higher on hover */
}

.feature-card h3 {
    font-size: 1.6rem;
    margin-bottom: 12px;
}
.feature-card p {
    font-size: 1.05rem;
    margin-bottom: 0; /* Remove bottom margin for last paragraph in card */
}

/* --- Why Us Section --- */
.why-us-section {
    padding: 80px 0; /* Increased padding */
    background-color: var(--card-bg-color);
}

.why-us-section .container {
    display: flex;
    align-items: center;
    gap: 70px; /* Increased gap */
}

.why-us-content {
    flex: 1;
}
.why-us-content h2 {
    color: var(--secondary-color);
    font-weight: 800; /* Bolder H2 */
    margin-bottom: 25px;
}
.why-us-content p {
    margin-bottom: 25px;
    font-size: 1.05rem;
}
.why-us-content ul {
    padding-left: 0;
}
.why-us-content ul li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
    font-size: 1.05rem;
}
.why-us-content ul li .diamond-bullet { /* Custom diamond bullet */
    position: absolute;
    left: 0;
    top: 5px; /* Adjust top for vertical alignment */
    width: 14px;
    height: 14px;
    background-color: var(--primary-color);
    transform: rotate(45deg); /* Rotate to form a diamond */
}


.why-us-logos {
    flex: 1;
    display: flex;
    justify-content: center; /* Center the grid within its flex item */
}

.logo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px; /* Increased gap */
    align-items: center;
    background-color: var(--background-color);
    padding: 40px; /* Increased padding */
    border-radius: var(--border-radius-md);
    box-shadow: 0 6px 15px rgba(0,0,0,0.05); /* Added shadow */
    max-width: 500px; /* Constrain width of the grid itself */
    width: 100%;
}

.logo-grid img {
    max-width: 100%;
    height: auto;
    filter: grayscale(100%);
    opacity: 0.6; /* Slightly less opaque */
    transition: all 0.3s ease;
}
.logo-grid img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

.logo-grid span {
    grid-column: 1 / -1; /* Span across all columns */
    text-align: center;
    font-weight: 600;
    color: var(--footer-p-color); /* Match a more gray text */
    font-style: italic;
    margin-top: 15px;
    font-size: 1rem;
}

/* --- CTA Section --- */
.cta-section {
    padding: 70px 0; /* Adjusted padding */
    background-color: var(--secondary-color);
    color: var(--text-light);
    text-align: center;
}
.cta-section .container {
    max-width: 750px; /* Slightly wider container */
}
.cta-section h2 {
    font-size: 2.75rem; /* Larger H2 */
    font-weight: 800;
    margin-bottom: 20px;
}
.cta-section p {
    color: var(--cta-p-color);
    margin-bottom: 40px; /* Increased margin */
    font-size: 1.05rem;
}

.webinar-form {
    display: flex;
    justify-content: center;
    gap: 15px; /* Increased gap */
    max-width: 550px; /* Wider form container */
    margin: 0 auto;
}

.webinar-form input {
    flex-grow: 1;
    padding: 15px 20px; /* Adjusted padding */
    border-radius: var(--border-radius-sm);
    border: 1px solid #E0E0E0; /* Lighter border */
    font-size: 1rem;
    font-family: var(--font-family);
    background-color: var(--text-light);
    color: var(--text-dark);
}
.webinar-form input::placeholder {
    color: #9CA3AF; /* Placeholder color */
}

.form-footer {
    font-size: 0.95rem;
    margin-top: 20px; /* Adjusted margin */
    color: #D1C4E9; /* Lighter purple text */
}

/* --- Footer --- */
.main-footer {
    background-color: #F3F4F6; /* Lighter gray background */
    padding: 50px 0;
    color: var(--text-medium);
    font-size: 0.95rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 2fr; /* Match original proportions */
    gap: 50px; /* Adjusted gap */
    align-items: start; /* Align items to the top */
}

.footer-col { /* General styling for footer columns */
    padding: 10px 0; /* Add some padding to columns */
}

.footer-about .logo {
    margin-bottom: 18px; /* Adjusted margin */
    color: var(--secondary-color);
    font-size: 1.25rem; /* Smaller logo text in footer */
}
.footer-about .logo img {
    height: 28px; /* Smaller logo image */
}
.footer-about p {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--footer-p-color);
}

.footer-grid h4 {
    font-size: 1.05rem; /* Smaller H4 in footer */
    color: var(--secondary-color);
    margin-bottom: 18px;
}

.footer-nav ul li {
    margin-bottom: 10px;
}
.footer-nav ul a {
    color: var(--text-medium);
    font-weight: 400;
}
.footer-nav ul a:hover {
    color: var(--primary-color);
}

.footer-compliance p {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--footer-p-color);
}

/* --- Generic Page Content (About & Webinar) --- */
.page-content {
    padding: 80px 0;
    background-color: var(--card-bg-color);
    min-height: 60vh;
}
.page-content .container {
    max-width: 800px;
}
.page-content h1 {
    text-align: center;
    color: var(--secondary-color);
    margin-bottom: 40px;
    font-size: 3rem;
}
.page-content h2 {
    color: var(--primary-color);
    margin-top: 50px;
    border-bottom: 1px solid #E0E0E0;
    padding-bottom: 12px;
    font-size: 1.8rem;
    font-weight: 600;
}
.page-content h3 {
    color: var(--secondary-color);
    margin-top: 30px;
    font-size: 1.5rem;
    font-weight: 600;
}
.page-content p {
    font-size: 1.05rem;
    margin-bottom: 1.2rem;
}
.page-content ul {
    list-style: none;
    padding-left: 0;
    margin-top: 20px;
}
.page-content ul li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    font-size: 1.05rem;
}
.page-content ul li::before {
    content: '✓'; /* Checkmark for generic lists */
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.text-center { text-align: center; }

.webinar-signup-box {
    margin-top: 60px;
    padding: 40px;
    background-color: var(--background-color);
    border-radius: var(--border-radius-md);
    border: 1px solid #D1D5DB;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
.webinar-signup-box h3 {
    color: var(--secondary-color);
    margin-bottom: 15px;
}
.webinar-signup-box p {
    color: var(--text-dark);
    margin-bottom: 30px;
}
.webinar-signup-box .webinar-form {
    margin-top: 25px;
    max-width: 100%; /* Allow form to take full width of its box */
}


/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .hero-container {
        flex-direction: column;
        gap: 40px;
    }
    .hero-content, .hero-image-wrapper {
        width: 100%;
        max-width: 600px; /* Constrain width on smaller screens */
    }
    .hero-content {
        text-align: center;
    }
    .hero-buttons {
        justify-content: center;
    }
    .hero-image {
        width: 100%; /* Allow image container to be responsive */
        height: auto;
        min-height: 350px; /* Maintain a min height */
    }
    .image-caption {
        position: static; /* Remove absolute positioning for better flow */
        margin-top: 20px; /* Add margin instead */
    }

    .why-us-section .container {
        flex-direction: column;
        gap: 40px;
    }
    .why-us-logos {
        width: 100%;
    }
    .logo-grid {
        max-width: 600px; /* Constrain grid width */
    }
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }
    .footer-about .logo {
        justify-content: center;
    }
    .footer-nav ul, .footer-compliance p {
        padding-left: 0;
    }
}

@media (max-width: 768px) {
    .main-nav .nav-links {
        display: none; /* Hide nav links on smaller screens. Consider a hamburger menu for real projects. */
    }
    .main-nav .btn-dark-header {
        margin-left: auto; /* Push button to the right if nav links are hidden */
    }

    h1 { font-size: 2.5rem; }
    h2 { font-size: 1.8rem; }
    h3 { font-size: 1.3rem; }

    .features-section .container {
        flex-direction: column;
        align-items: center;
    }
    .feature-card.highlighted {
        transform: translateY(0); /* Remove lift for highlighted card on small screens */
    }
    .feature-card:hover, .feature-card.highlighted:hover {
        transform: translateY(-5px); /* Gentle lift on hover */
    }

    .logo-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns for logos */
        gap: 20px;
    }
    .logo-grid span {
        grid-column: 1 / -1; /* Span two columns */
    }

    .cta-section h2 {
        font-size: 2.2rem;
    }
    .webinar-form {
        flex-direction: column;
        gap: 10px;
    }
    .webinar-form button {
        width: 100%; /* Full width button */
    }
}

@media (max-width: 480px) {
    .logo span {
        display: none; /* Hide "Property Egg" text next to logo image */
    }
    .main-nav .logo img {
        margin-right: 0;
    }
    .hero-content {
        padding: 30px 20px;
    }
    .hero-content h1 {
        font-size: 2rem;
    }
    .hero-content p, .hero-content ul li {
        font-size: 0.95rem;
    }
    .hero-buttons {
        flex-direction: column;
        gap: 10px;
    }
    .btn {
        width: 100%;
        padding: 12px 20px;
    }
    .feature-card {
        min-width: unset;
        width: 90%; /* Almost full width */
    }
    .logo-grid {
        grid-template-columns: 1fr; /* Single column for logos */
    }
    .logo-grid span {
        grid-column: 1;
    }
    .cta-section h2 {
        font-size: 1.8rem;
    }
}