/* --- 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: #ffffff;
    --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;
}

/* --- 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);
}

.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;
}

/* --- CTA Buttons --- */
.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;
}

.cta-button.primary {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.cta-button.primary:hover {
    background-color: #00332c;
    transform: translateY(-2px);
}

.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 Structure --- */
.section {
    padding: 60px 5%;
    text-align: center;
}

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

/* --- 1. Hero Section Styling --- */
.hero-section {
    /* Placeholder background image - replace 'placeholder-uk-skyline.jpg' */
    background: linear-gradient(rgba(0, 77, 64, 0.7), rgba(0, 77, 64, 0.7)), url('placeholder-uk-skyline.jpg') 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 --- */
.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;
    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;
}

.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;
    }
}

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

/* --- 5. UK Market Section Styling --- */
.uk-market-section {
    /* Placeholder background image - replace 'placeholder-london-skyline.jpg' */
    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 --- */
.join-network-cta {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 80px 5%;
}

.join-network-cta h2, .join-network-cta p {
    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;
}

/* 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; /* Light Green */
    color: #155724; /* Dark Green Text */
    border: 1px solid #c3e6cb;
}

.status-error {
    background-color: #f8d7da; /* Light Red */
    color: #721c24; /* Dark Red Text */
    border: 1px solid #f5c6cb;
}

.status-warning {
    background-color: #fff3cd; /* Light Yellow */
    color: #856404; /* Dark Yellow Text */
    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 600px) --- */

@media (max-width: 600px) {
    
    /* 1. Header Layout Adjustments */
    .main-header {
        flex-wrap: wrap; 
        padding: 10px 5%; 
    }

    /* 2. Navigation Links Management (FIXED RESPONSIVENESS) */
    .nav-links {
        width: 100%;
        margin-top: 10px;
        display: flex; 
        flex-direction: column; /* Stack the links vertically */
        text-align: center; 
    }

    /* Target all links inside nav-links */
    .nav-links a {
        margin: 5px 0; 
        padding: 8px 0; 
        border-bottom: 1px solid rgba(0, 77, 64, 0.1); 
        margin-left: 0; 
    }

    /* 3. Handle the CTA Button in the Navigation */
    .nav-cta {
        width: 100%; 
        margin-top: 5px !important;
        border-bottom: none !important; 
    }
    
    /* 4. Adjustments for CTA Group (Hero, Footer) */
    .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%; 
    }

    /* 5. General Content Adjustments */
    .about-grid, .security-content {
        grid-template-columns: 1fr; /* Stack two-column grids */
    }
    
    /* Stack stats cards */
    .quick-stats-grid {
        flex-direction: column;
    }
    .stat-card {
        max-width: 100%; 
    }
}