/* ── Reset & Base | Wild Legacy | J Dodson LLC ── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ── Theme Variables (Populated by PHP) ── */
:root {
    /* Core Colors */
    --primary: #2D5F2D;
    --secondary: #4A5568;
    --accent: #D4A843;
    --bg: #FAFAF8;
    --text: #1A1A2E;
    --text-muted: #6B7280;
    /* Header & Footer */
    --header-bg: #FFFFFF;
    --header-text: #000000;
    --footer-bg: #FFFFFF;
    --footer-text: #000000;
    /* Cards */
    --card-bg: #FFFFFF;
    --card-border: #CCCCCC;
    --card-text: #000000;
    /* Property Cards */
    --prop-card-bg: #FFFFFF;
    --prop-card-border: #CCCCCC;
    --prop-card-text: #000000;
    /* Links & Inputs */
    --link-color: #0066CC;
    --input-text: #000000;
    --input-bg: #FFFFFF;
    /* Fonts */
    --heading-font: 'Playfair Display';
    --body-font: 'Inter';
    /* Misc */
    --border: #E5E7EB;
    --white: #FFFFFF;
    --shadow: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --radius: 8px;
    --radius-lg: 12px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font), -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    font-size: 16px;
}

/* ── Typography ── */
h1, h2, h3, h4 {
    font-family: var(--heading-font), Georgia, serif;
    line-height: 1.2;
    color: var(--text);
}

a {
    color: var(--link-color);
    text-decoration: none;
    transition: color 0.2s;
}

    a:hover {
        color: var(--accent);
    }

/* -- Property Status Colors -- */
.status-available {
    background: rgba(34, 170, 34, 0.52);
    color: #FFFFFF;
}

.status-pending {
    background: rgba(240, 190, 20, 0.54);
    color: #1A1A2E;
    text-shadow: 0 1px 4px rgba(255,255,255,0.3);
}

.status-sold {
    background: rgba(220, 30, 30, 0.52);
    color: #FFFFFF;
}

/* ── Desktop Header / Navigation ── */
.site-header {
    background: var(--header-bg);
    border-bottom: 1px solid var(--header-text);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar {
    width: 100%;
    background: var(--header-bg);
}

.nav-container {
    display: flex;
    color: var(--header-text);
    background: var(--header-bg);
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    width: 100%;
    max-width: none;
    margin: 0 auto;
}

.nav-cta {
    font-size: 1.3em;
    font-weight: 700;
    color: var(--header-bg);
    background: var(--header-text);
    padding: 8px 14px;
    border-radius: 6px;
}

.logo {
    font-family: var(--heading-font, 'Playfair Display'), serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--header-text);
}

    .logo:hover {
        color: var(--primary);
    }

.nav-links a {
    color: var(--header-text);
    font-weight: 600;
    font-size: 1.4rem;
    position: relative;
}

    .nav-links a:hover,
    .nav-links a.active {
        color: var(--primary);
    }

        .nav-links a.active::after {
            content: '';
            position: absolute;
            bottom: -4px;
            left: 0;
            right: 0;
            height: 2px;
            background: var(--primary);
        }

/* Ensure desktop nav shows correctly */
.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
}

/* Ensure hamburger is hidden on desktop */
.nav-toggle {
    display: none;
}

/* ── Alerts ── */
.alert {
    padding: 16px 20px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* ── Buttons ── */
.btn {
    display: inline-block;
    line-height: 1;
    padding: 0.8em 1em;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s;
    text-align: center;
    justify-content: center;
    margin: 0.5em;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

    .btn-primary:hover {
        background: color-mix(in srgb, var(--primary) 80%, black);
    }

.btn-secondary {
    background: var(--secondary);
    color: var(--white);
}

    .btn-secondary:hover {
        background: color-mix(in srgb, var(--secondary) 80%, black);
    }

.btn-outline {
    border-color: var(--white);
    color: var(--white);
    background: transparent;
}

    .btn-outline:hover {
        background: var(--white);
        color: var(--primary);
    }

.btn-lg {
    padding: 1em 1.2em;
    font-size: 1.4rem;
}

.btn-full {
    width: 100%;
}

/* ── Hero Button ── */
.btn-hero {
    background: #EBEBEB;
    color: var(--primary);
    padding: 1.2em 1.5em;
    font-size: 2rem;
    font-weight: 800;
    border-radius: var(--radius-lg);
    border: 8px solid var(--accent);
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}

    .btn-hero:hover {
        background: #C4C4C4;
        color: #FFFFFF;
        font-weight: 900;
        transform: translateY(-2px);
        border-color: #ffffff;
        box-shadow: 0 10px 24px rgba(0,0,0,0.2);
    }

/* ── Hero Outline ── */
.btn-hero-outline {
    background: rgba(255, 255, 255, 0.15); /* ~30% inner shade */
    color: var(--white);
    padding: 1.2em 1.5em;
    font-size: 2rem;
    border: 8px solid var(--accent);
    font-weight: 700;
    border-radius: var(--radius-lg);
    backdrop-filter: blur(4px); /* optional: gives a premium frosted look */
    transition: all 0.3s ease;
}

    .btn-hero-outline:hover {
        background: rgba(255, 255, 255, 0.35); /* deeper shade on hover */
        border-color: #ffffff;
        color: #ffffff;
        transform: translateY(-2px);
        font-weight: 900;
    }

/* ── Ghost Button ── */
.btn-ghost {
    background: transparent;
    color: var(--text);
    border: none;
    padding: 0.8em 1em;
    font-size: 1rem;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

    .btn-ghost:hover {
        opacity: 1;
    }

/* ── Accent Button ── */
.btn-accent {
    background: var(--accent);
    color: var(--white);
    padding: 0.9em 1.2em;
    font-size: 1.2rem;
    border-radius: var(--radius);
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

    .btn-accent:hover {
        background: color-mix(in srgb, var(--accent) 80%, black);
    }

/* ── Subscribe Form ── */
.subscribe-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    width: 100%;
}

    .subscribe-form label {
        font-weight: 600;
        margin-bottom: 4px;
    }

    .subscribe-form input[type="email"] {
        width: 100%;
        max-width: 320px;
        padding: 10px 12px;
        border: 1px solid var(--border);
        border-radius: 6px;
        font-size: 1rem;
        background: var(--input-bg);
        color: var(--input-text);
    }

    .subscribe-form .btn {
        padding: 10px 22px;
        border-radius: 6px;
    }

/* Center the message box */
#subscribeMessage {
    width: 100%;
    max-width: 360px;
    margin-top: 10px;
}

/* Honeypot field hidden */
.hp-field {
    position: absolute;
    left: -9999px;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 10px;
}
