/* Xavier Holmes — Property Advisor Website */
/* Shared stylesheet for all pages */

:root {
    --primary: #1a365d;
    --primary-light: #2b6cb0;
    --accent: #d69e2e;
    --accent-light: #ecc94b;
    --text: #1a202c;
    --text-light: #4a5568;
    --text-muted: #718096;
    --bg: #ffffff;
    --bg-light: #f7fafc;
    --bg-card: #ffffff;
    --border: #e2e8f0;
    --green: #38a169;
    --wa-green: #25d366;
    --max-width: 1100px;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.7;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

a { color: var(--primary-light); text-decoration: none; }
a:hover { color: var(--primary); text-decoration: underline; }

img { max-width: 100%; height: auto; }

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

/* ---- Header / Nav ---- */
.site-header {
    background: var(--primary);
    color: #fff;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    padding-bottom: 14px;
}
.site-logo {
    font-size: 1.3em;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    letter-spacing: -0.02em;
}
.site-logo:hover { color: var(--accent-light); text-decoration: none; }
.site-logo span { color: var(--accent); }

nav { display: flex; gap: 24px; align-items: center; }
nav a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    font-size: 0.95em;
    font-weight: 500;
    transition: color 0.2s;
}
nav a:hover, nav a.active { color: #fff; text-decoration: none; }

.nav-cta {
    background: var(--wa-green);
    color: #fff !important;
    padding: 8px 18px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9em;
    transition: background 0.2s;
}
.nav-cta:hover { background: #20bd5a; text-decoration: none; }

/* Mobile nav */
.nav-toggle { display: none; background: none; border: none; color: #fff; font-size: 1.6em; cursor: pointer; }

@media (max-width: 768px) {
    .nav-toggle { display: block; }
    nav {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--primary);
        padding: 16px 20px;
        gap: 16px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    }
    nav.open { display: flex; }
}

/* ---- Hero ---- */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, #2c5282 100%);
    color: #fff;
    padding: 60px 0;
    text-align: center;
}
.hero h1 {
    font-size: 2.4em;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}
.hero p {
    font-size: 1.15em;
    color: rgba(255,255,255,0.85);
    max-width: 600px;
    margin: 0 auto 24px;
}
.hero .btn { margin-top: 8px; }

@media (max-width: 600px) {
    .hero { padding: 40px 0; }
    .hero h1 { font-size: 1.7em; }
}

/* ---- Buttons ---- */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1em;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn-primary { background: var(--accent); color: var(--primary); }
.btn-primary:hover { background: var(--accent-light); color: var(--primary); }

.btn-whatsapp { background: var(--wa-green); color: #fff; }
.btn-whatsapp:hover { background: #20bd5a; color: #fff; }

.btn-outline { background: transparent; border: 2px solid #fff; color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,0.1); color: #fff; }

/* ---- Sections ---- */
section { padding: 50px 0; }
section.alt { background: var(--bg-light); }

.section-title {
    font-size: 1.8em;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}
.section-subtitle {
    color: var(--text-light);
    font-size: 1.05em;
    margin-bottom: 32px;
}

/* ---- Cards ---- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 28px;
    transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.08); transform: translateY(-2px); }

.card h3 {
    font-size: 1.2em;
    margin-bottom: 8px;
    color: var(--primary);
}
.card .price {
    font-size: 1.05em;
    color: var(--primary-light);
    font-weight: 600;
    margin-bottom: 8px;
}
.card .meta {
    font-size: 0.9em;
    color: var(--text-muted);
    margin-bottom: 12px;
}
.card ul { margin: 10px 0 16px 18px; font-size: 0.95em; }
.card li { margin: 4px 0; }
.card .best-for {
    background: #ebf8ff;
    border-left: 3px solid var(--primary-light);
    padding: 8px 12px;
    border-radius: 0 6px 6px 0;
    font-size: 0.9em;
    margin-top: 12px;
}

.tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.8em;
    font-weight: 600;
}
.tag-freehold { background: #f0fff4; color: var(--green); border: 1px solid #c6f6d5; }
.tag-99year { background: #ebf8ff; color: var(--primary-light); border: 1px solid #bee3f8; }
.tag-coming { background: #fffff0; color: #b7791f; border: 1px solid #fefcbf; }

/* ---- Stats Row ---- */
.stats-row {
    display: flex;
    gap: 32px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 24px 0;
}
.stat { text-align: center; }
.stat .number { font-size: 2em; font-weight: 700; color: var(--accent); }
.stat .label { font-size: 0.9em; color: var(--text-muted); }

/* ---- Table ---- */
table { width: 100%; border-collapse: collapse; margin: 16px 0; }
th, td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border); }
th { background: var(--bg-light); font-weight: 600; color: var(--primary); font-size: 0.9em; }
td { font-size: 0.95em; }

/* ---- Blog / Article ---- */
.article-header {
    padding: 40px 0 20px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 32px;
}
.article-header h1 {
    font-size: 2em;
    color: var(--primary);
    margin-bottom: 8px;
}
.article-meta {
    color: var(--text-muted);
    font-size: 0.9em;
}
.article-body h2 {
    font-size: 1.4em;
    color: var(--primary);
    margin: 32px 0 12px;
    padding-bottom: 6px;
    border-bottom: 2px solid var(--border);
}
.article-body h3 { font-size: 1.15em; margin: 20px 0 8px; color: var(--text); }
.article-body p { margin: 12px 0; color: var(--text-light); }
.article-body ul { margin: 10px 0 10px 24px; }
.article-body li { margin: 6px 0; color: var(--text-light); }
.article-body strong { color: var(--text); }
.article-body blockquote {
    background: #fffff0;
    border-left: 3px solid var(--accent);
    padding: 14px 18px;
    margin: 20px 0;
    border-radius: 0 6px 6px 0;
    font-style: italic;
}

/* ---- CTA Box ---- */
.cta-box {
    background: linear-gradient(135deg, var(--primary) 0%, #2c5282 100%);
    color: #fff;
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    margin: 40px 0;
}
.cta-box h2 { font-size: 1.5em; margin-bottom: 12px; color: #fff; border: none; }
.cta-box p { color: rgba(255,255,255,0.85); margin-bottom: 20px; }

/* ---- FAQ ---- */
.faq-item { margin: 20px 0; }
.faq-item h3 { color: var(--primary-light); font-size: 1.05em; margin-bottom: 6px; }
.faq-item p { color: var(--text-light); }

/* ---- Footer ---- */
.site-footer {
    background: var(--primary);
    color: rgba(255,255,255,0.7);
    padding: 40px 0;
    font-size: 0.9em;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
}
.site-footer h4 { color: #fff; margin-bottom: 12px; font-size: 1em; }
.site-footer a { color: rgba(255,255,255,0.7); }
.site-footer a:hover { color: #fff; }
.footer-links { list-style: none; }
.footer-links li { margin: 6px 0; }
.footer-bottom {
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.15);
    text-align: center;
    color: rgba(255,255,255,0.5);
    font-size: 0.85em;
}

@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr; gap: 24px; }
}

/* ---- Utility ---- */
.text-center { text-align: center; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
