/* --- Global Styles for Impartial Estates Developments --- */
:root {
    /* Colors based on Logo */
    --logo-yellow: #DBA800;
    --logo-green: #2A6040;
    --logo-brown: #7A4F2C;
    --main-text-color: #4F321B;
    --light-background: #FDF2DE;
    --white: #FFFFFF;
    --button-hover-green: #44956C;
}

body {
    font-family: 'Open Sans', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: var(--main-text-color);
    background-color: var(--white);
}

h1, h2, h3 {
    font-family: 'Montserrat', sans-serif;
    color: var(--logo-green);
    line-height: 1.2;
    margin-bottom: 0.5em;
}

h1 { font-size: 2.8em; }
h2 { font-size: 2.2em; }
h3 { font-size: 1.6em; }

a {
    color: var(--logo-brown);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
header {
    background-color: var(--white);
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    max-height: 60px;
    width: auto;
}

.nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav-links a {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: var(--main-text-color);
    padding: 5px 0;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--logo-yellow);
    text-decoration: none;
}

.nav-links .btn {
    padding: 10px 20px;
    font-size: 0.9em;
    margin-left: 15px;
}

.nav-links .btn:hover {
    color: var(--white);
}

/* Hero Section */
.hero {
    background-color: var(--logo-green);
    color: var(--white);
    text-align: center;
    padding: 100px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(42, 96, 64, 0.6);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

.hero h1 {
    color: var(--white);
    font-size: 3.5em;
    margin-bottom: 0.3em;
}

.hero p {
    font-size: 1.3em;
    margin-bottom: 1.5em;
    color: rgba(255,255,255,0.9);
}

.btn {
    display: inline-block;
    background-color: var(--logo-yellow);
    color: var(--main-text-color);
    padding: 15px 30px;
    border-radius: 5px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.btn:hover {
    background-color: var(--logo-green);
    color: var(--white);
    transform: translateY(-2px);
    text-decoration: none;
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--white);
    color: var(--white);
    margin-left: 20px;
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--logo-green);
    text-decoration: none;
}

/* General Sections */
section {
    padding: 80px 0;
    text-align: center;
}

main section:nth-of-type(odd) {
    background-color: var(--white);
}

main section:nth-of-type(even) {
    background-color: var(--light-background);
}

.section-title {
    margin-bottom: 60px;
    font-size: 2.5em;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--logo-yellow);
    margin: 10px auto 0;
    border-radius: 2px;
}

/* Service & Project Grids */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    text-align: left;
}

.service-item {
    background-color: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.service-item h3 {
    color: var(--logo-brown);
    margin-top: 0;
}

/* Insights Cards */
.insight-card {
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    overflow: hidden;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.insight-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.insight-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.insight-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.insight-content h3 {
    margin-top: 0;
    font-size: 1.5em;
    color: var(--logo-green);
}

.insight-date {
    font-style: italic;
    font-size: 0.9em;
    color: #888;
    margin: -10px 0 15px;
}

.insight-content p {
    flex-grow: 1;
}

.read-more {
    font-weight: 600;
    color: var(--logo-brown);
    align-self: flex-start;
}

.read-more:hover {
    color: var(--logo-yellow);
    text-decoration: underline;
}

/* Project Cards */
.project-card {
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    overflow: hidden;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.project-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.project-card-content {
    padding: 25px;
}

.project-card-content h3 {
    margin-top: 0;
    font-size: 1.5em;
}

/* Call to Action Section */
.cta-section {
    background-color: var(--logo-yellow);
    color: var(--main-text-color);
    padding: 80px 20px;
    text-align: center;
}

.cta-section h2 {
    color: var(--logo-green);
    font-size: 2.8em;
    margin-bottom: 20px;
}

.cta-section p {
    font-size: 1.2em;
    max-width: 700px;
    margin: 0 auto 40px;
    color: rgba(0,0,0,0.8);
}

.cta-section .btn {
    background-color: var(--logo-green);
    color: var(--white);
}

.cta-section .btn:hover {
    background-color: var(--button-hover-green);
}

/* Footer */
footer {
    background-color: var(--logo-green);
    color: rgba(255,255,255,0.8);
    padding: 60px 20px 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    text-align: left;
}

.footer-about .logo img {
    height: 70px;
    margin-bottom: 15px;
}

.footer-about p {
    margin-bottom: 20px;
}

.social-icons a {
    color: var(--white);
    font-size: 1.5em;
    margin-right: 15px;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: var(--logo-yellow);
}

.footer-links h4,
.footer-contact h4 {
    color: var(--white);
    font-size: 1.4em;
    margin-bottom: 15px;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links a,
.footer-contact p,
.footer-contact a {
    color: rgba(255,255,255,0.7);
    transition: color 0.3s ease;
}

.footer-links a:hover,
.footer-contact a:hover {
    color: var(--logo-yellow);
    text-decoration: none;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 40px;
    padding-top: 20px;
}

/* --- Article Page Specific Styles --- */
.article-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 40px;
    background-color: var(--white);
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    border-radius: 8px;
    text-align: left;
}

.article-title {
    font-size: 2.8em;
    color: var(--logo-green);
    margin-bottom: 10px;
    text-align: center;
}

.post-meta {
    text-align: center;
    font-style: italic;
    color: #888;
    margin-bottom: 30px;
}

.article-image {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 40px;
}

.article-content h2 {
    color: var(--logo-brown);
    margin-top: 40px;
    margin-bottom: 15px;
}

.article-content p,
.article-content li {
    font-size: 1.1em;
    margin-bottom: 20px;
}

.article-content ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

.back-btn {
    display: inline-block;
    margin-top: 40px;
    background-color: transparent;
    color: var(--logo-brown);
    border: 1px solid var(--logo-brown);
    padding: 10px 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background-color: var(--logo-brown);
    color: var(--white);
    text-decoration: none;
}

/* Contact form styles */
.contact-form label {
    display: block;
    margin-top: 10px;
    font-weight: 600;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
    box-sizing: border-box; /* Ensures padding doesn't affect width */
}

.contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-form .btn {
    width: 100%;
    margin-top: 20px;
}

.contact-info p {
    text-align: left;
}

.contact-info i {
    color: var(--logo-yellow);
    margin-right: 10px;
}

/* Process section styles */
.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.process-step {
    background-color: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    text-align: center;
}

.step-number {
    font-size: 2.5em;
    font-weight: 700;
    color: var(--logo-yellow);
    margin-bottom: 10px;
}

/* Why Partner Cards */
.why-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    text-align: center;
    transition: transform 0.3s ease;
}

.why-card:hover {
    transform: translateY(-5px);
}

.why-card i {
    font-size: 3em;
    color: var(--logo-green);
    margin-bottom: 15px;
}

/* Hide netlify honeypot field */
.hidden {
    display: none;
}