/* --- Global Styles & Reset --- */
:root {
    --color-primary: #004d40;
    /* Deep Green */
    --color-accent: #e57373;
    /* Red Brick Accent */
    --color-text: #333;
    --color-light-bg: #f4f4f9;
    --color-dark-bg: #2d3436;
    /* Dark slate for contrast */
    --color-white: #F2F1EE;
    --font-heading: 'Georgia', serif;
    /* Classic, professional font */
    --font-body: 'Arial', sans-serif;
}

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

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-white);
}

h1,
h2,
h3 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    margin-bottom: 0.5em;
    text-align: center;
}

/* --- Navigation & Header --- */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    background-color: var(--color-white);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-size: 1.5em;
    font-weight: bold;
    color: var(--color-primary);
}

/* --- Desktop Menu Styles (.nav-links) --- */
.nav-links {
    display: flex;
    /* Horizontal desktop layout */
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--color-text);
    margin-left: 20px;
    font-weight: 500;
    transition: color 0.3s;
}

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

.nav-cta {
    background-color: var(--color-accent) !important;
    color: var(--color-white) !important;
    padding: 8px 15px !important;
    border-radius: 5px;
    margin-left: 20px;
    /* desktop-only CTA link is hidden on mobile via CSS later */
}

/* Hide mobile-specific elements on desktop */
.hamburger,
.nav-links .mobile-cta {
    display: none;
}


/* --- CTA Buttons (Global Default) --- */
.cta-button {
    text-decoration: none;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s, transform 0.2s;
    display: inline-block;
    text-align: center;
    border: 2px solid transparent;
}

/* Primary CTA: Green fill, white text, white border (as requested) */
.cta-button.primary {
    background-color: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-white);
    /* Changed to white */
    margin-left: 20px;
}

.cta-button.primary:hover {
    background-color: #00382e;
    border-color: var(--color-white);
    /* White border on hover for contrast */
    transform: translateY(-2px);
}

/* Secondary Button: Transparent background (for white sections) */
.cta-button.secondary {
    background-color: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
    margin-left: 15px;
}

.cta-button.secondary:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
    transform: translateY(-2px);
}

.cta-group {
    margin-top: 20px;
}

/* ======================================= */
/* --- 🧱 Section & Content Structure --- */
/* ======================================= */

/* 1. SECTION: Allows for full-width background colors */
.section {
    padding: 60px 0;
    /* Only vertical padding here */
    text-align: center;
}

/* 2. CONTENT WRAPPER: Constrains content for readability */
.content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
    /* Apply horizontal padding to the content wrapper */
    text-align: center;
}

.section h2 {
    font-size: 2.5em;
    margin-bottom: 40px;
}

/* --- 1. Hero Section Styling --- */
.hero-section {
    background: linear-gradient(rgba(0, 77, 64, 0.7), rgba(0, 77, 64, 0.7)), url('img/banner_01.png') center/cover no-repeat;
    height: 70vh;
    min-height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
}

.hero-content {
    max-width: 800px;
    padding: 20px;
}

.hero-section h1 {
    font-size: clamp(2em, 5vw, 3.5em);
    color: var(--color-white);
    line-height: 1.1;
    margin-bottom: 10px;
}

.hero-section .subheadline {
    font-size: clamp(1em, 2vw, 1.3em);
    margin-bottom: 30px;
    font-weight: 300;
}

/* --- 2. Who We Are Section Styling --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
    text-align: left;
    max-width: 1200px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.renovation-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
}

.highlight-box {
    background-color: var(--color-accent);
    color: var(--color-white);
    padding: 20px;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: bold;
    margin-top: 20px;
}

/* --- 3. Why Invest With Us Section Styling (Full Width Background) --- */
.feature-section {
    background-color: var(--color-dark-bg);
    color: var(--color-white);
}

.feature-section h2 {
    color: var(--color-white);
}

.feature-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
    /* max-width: 1200px; <-- REMOVED, now handled by .content-wrapper */
    margin-left: auto;
    margin-right: auto;
}

.card {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 8px;
    transition: transform 0.3s, background-color 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.2);
}

.card i {
    font-size: 2.5em;
    color: var(--color-accent);
    margin-bottom: 15px;
}

.card h3 {
    color: var(--color-white);
}

/* --- 4. How It Works Section Styling --- */
.timeline-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 900px;
    margin: 40px auto;
    position: relative;
    text-align: center;
}

.timeline-step {
    flex: 1;
    padding: 0 20px;
    text-align: center;
}

.step-number {
    font-size: 2.5em;
    font-weight: bold;
    color: var(--color-accent);
    margin-bottom: 10px;
}

.timeline-line {
    flex-grow: 1;
    height: 2px;
    background-color: var(--color-primary);
    margin-top: 40px;
}

/* Mobile adjustments for timeline */
@media (max-width: 768px) {
    .timeline-container {
        flex-direction: column;
    }

    .timeline-line {
        display: none;
    }

    .timeline-step {
        margin-bottom: 30px;
        text-align: center;
        /* FIX: Ensure content is centered when steps are stacked */
    }
}

.visual-placeholder {
    margin: 40px auto;
    padding: 50px;
    background-color: var(--color-light-bg);
    border-radius: 8px;
    max-width: 800px;
    color: #666;
}

/* --- 4.5. NEW SELL PROPERTY SECTION STYLING (THEME GREEN/WHITE) --- */
.sell-property-section {
    background-color: var(--color-primary);
    /* Theme Green */
    color: var(--color-white);
    /* White text for section background */
}

/* Ensure the titles and sub-text are white on the green background */
.sell-property-section h2,
.sell-property-section strong,
.sell-property-section .subheadline-container p,
.sell-property-section .cta-group p {
    color: var(--color-white) !important;
}

.sell-property-section .subheadline-container {
    max-width: 900px;
    margin: 0 auto 40px;
}

.sell-feature-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

/* Feature Boxes: White Background, Black/Green Text */
.sell-feature-box {
    background-color: var(--color-white);
    /* White background */
    color: var(--color-text);
    /* Standard Black Text */
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s, box-shadow 0.3s;
}

.sell-feature-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* Icons: Theme Primary Green */
.sell-feature-box i {
    font-size: 2.5em;
    color: var(--color-primary);
    /* Theme Green Icons */
    margin-bottom: 15px;
}

/* Headings: Black/Dark Text */
.sell-feature-box h3 {
    color: var(--color-text);
}


/* --- 5. UK Market Section Styling --- */
.uk-market-section {
    background: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.9)), url('placeholder-london-skyline.jpg') center/cover no-repeat fixed;
}

.quick-stats-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin-top: 30px;
}

.stat-card {
    padding: 20px;
    flex: 1;
    min-width: 150px;
    max-width: 250px;
    margin: 10px;
    background-color: var(--color-white);
    border: 1px solid #ddd;
    border-radius: 5px;
}

.stat-value {
    display: block;
    font-size: 2.5em;
    font-weight: bold;
    color: var(--color-primary);
}

.stat-label {
    display: block;
    font-size: 0.9em;
    color: #666;
}

/* --- 6. Transparency & Security --- */
.security-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
    text-align: left;
}

@media (min-width: 768px) {
    .security-content {
        grid-template-columns: 1fr 1fr;
    }
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    font-size: 1.1em;
    margin-bottom: 15px;
}

.feature-list i {
    color: var(--color-accent);
    margin-right: 10px;
    font-size: 1.2em;
}

/* --- 7. Join Network CTA (Full Width Background) --- */
.join-network-cta {
    background-color: var(--color-primary);
    color: var(--color-white);
    /* padding: 80px 5%; <-- REMOVED HORIZONTAL PADDING */
    padding: 80px 0;
}

.join-network-cta h2,
.join-network-cta p {
    color: var(--color-white);
}

/* Specific button styles for the dark section */

/* "Invest Today" - Full button white */
.join-network-cta .cta-button.primary {
    background-color: var(--color-white);
    color: var(--color-primary);
    border-color: var(--color-white);
}

.join-network-cta .cta-button.primary:hover {
    background-color: var(--color-dark-bg);
    color: var(--color-white);
    border-color: var(--color-dark-bg);
}


/* "Speak to an Advisor" - Border only white */
.join-network-cta .cta-button.secondary {
    background-color: transparent;
    color: var(--color-white);
    border-color: var(--color-white);
}

.join-network-cta .cta-button.secondary:hover {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-white);
}

/* --- 8. Contact Form Styling --- */
.contact-form {
    max-width: 450px;
    margin: 30px auto;
    padding: 30px;
    background-color: var(--color-light-bg);
    border-radius: 8px;
    text-align: left;
}

.contact-form input,
.contact-form select,
.contact-form button {
    width: 100%;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
}

.contact-form button {
    margin-top: 10px;
}

.contact-section .contact-form .cta-button.primary {
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Form Status Styling (For JavaScript Feedback) */
#form-status-message {
    max-width: 450px;
    margin: 0 auto 20px;
    padding: 15px;
    border-radius: 5px;
    text-align: left;
    font-weight: bold;
    font-size: 1em;
}

.status-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.status-warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}


/* --- Footer Styling --- */
.main-footer {
    background-color: var(--color-dark-bg);
    color: rgba(255, 255, 255, 0.8);
    padding: 40px 5%;
    font-size: 0.9em;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto 30px;
    text-align: left;
}

.footer-logo {
    font-size: 1.2em;
    font-weight: bold;
    color: var(--color-white);
}

.footer-logo .logo-accent {
    color: var(--color-accent);
}

.footer-logo p {
    margin-top: 10px;
    font-weight: 300;
}

.footer-links h3,
.footer-contact h3,
.footer-social h3 {
    color: var(--color-white);
    margin-bottom: 15px;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    display: block;
    margin-bottom: 8px;
}

.footer-links a:hover {
    color: var(--color-accent);
}

.footer-contact i {
    color: var(--color-accent);
    margin-right: 8px;
}

.footer-social a {
    color: var(--color-white);
    font-size: 1.5em;
    margin-right: 15px;
    transition: color 0.3s;
}

.footer-social a:hover {
    color: var(--color-accent);
}

.copyright {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    margin-top: 20px;
}

/* ========================================= */
/* --- 📱 Mobile Responsiveness (Max Width 992px) --- */
/* ========================================= */
@media (max-width: 992px) {

    /* 1. Show the Hamburger and Hide Desktop CTA */
    .hamburger {
        display: block;
        background: none;
        border: none;
        font-size: 24px;
        cursor: pointer;
        color: var(--color-primary);
        padding: 5px;
    }

    /* Hide the desktop CTA that is within the main nav links for space */
    .nav-links .nav-cta:not(.mobile-cta) {
        display: none;
    }

    /* 2. Mobile Menu Container (.nav-links) */
    .nav-links {
        display: none;
        /* Crucial: Hidden by default, shown by .is-open class */
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 60px;
        left: 0;
        background-color: var(--color-white);
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        z-index: 990;
        padding-bottom: 10px;
        text-align: left;
    }

    /* State when JS adds the class: SHOW the vertical menu */
    .nav-links.is-open {
        display: flex;
    }

    /* 3. Mobile Link Styles */
    .nav-links a {
        padding: 15px 20px;
        width: 100%;
        border-bottom: 1px solid var(--color-light-bg);
        margin-left: 0;
        display: block;
        text-align: left;
    }

    /* 4. Mobile CTA Button Styling (Inside the menu) */
    .nav-links .mobile-cta {
        display: block;
        width: calc(100% - 40px);
        margin: 10px 20px 15px 20px !important;
        text-align: center;
        border-bottom: none;
        /* Apply primary button styles for a strong look */
        background-color: var(--color-primary) !important;
        color: var(--color-white) !important;
    }
}


/* ========================================= */
/* --- 📱 Mobile Layout (Max Width 600px) --- */
/* ========================================= */
@media (max-width: 600px) {

    /* 1. Header Layout Adjustments */
    .main-header {
        flex-wrap: wrap;
        padding: 10px 5%;
    }

    /* REMOVED ALL .nav-links LOGIC - Consolidated in 992px query */

    /* 2. Adjustments for CTA Group (Hero, Footer) - KEEP THESE */
    .cta-group {
        display: flex;
        flex-direction: column;
        /* Stack the primary and secondary CTA buttons */
        width: 100%;
    }

    .cta-button {
        margin-left: 0 !important;
        margin-bottom: 10px;
        width: 100%;
    }

    /* 3. General Content Adjustments */
    .about-grid,
    .security-content {
        grid-template-columns: 1fr;
    }

    .quick-stats-grid {
        flex-direction: column;
    }

    .stat-card {
        max-width: 100%;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    /* Ensure the new sell feature grid stacks nicely on mobile */
    .sell-feature-cards-grid {
        grid-template-columns: 1fr;
    }


}

/* --- FIX: Custom style for the Contact Form Submit Button to ensure centering --- */
.cta-button.contact-submit {
    /* Copy essential primary button styles */
    background-color: var(--color-primary) !important;
    color: var(--color-white) !important;
    border-color: var(--color-white) !important;
    /* Centering Rules */
    display: block;
    margin: 25px auto 0 auto;
    /* Top margin, center horizontally, no bottom/left margin */
    width: 250px;
    padding: 15px 30px;
    font-size: 1.1em;
}