:root {
    --bg-color: #ffffff;
    --text-color: #333333;
    --primary-color: #000000;
    --secondary-color: #666666;
    --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

[data-theme="home"] {
    --bg-color: #F8F5F0; /* Warm Beige */
    --text-color: #1a1a1a;
    --primary-color: #0d4a22; /* Deep Green */
    --secondary-color: #1b5e20;
}

[data-theme="features"] {
    --bg-color: #f7f7f7; /* Very light gray */
    --text-color: #36454F; /* Charcoal */
    --primary-color: #36454F;
    --secondary-color: #808080;
}

[data-theme="pricing"] {
    --bg-color: #f4efdf; /* Sand */
    --text-color: #2b2b2b;
    --primary-color: #556b2f; /* Olive */
    --secondary-color: #6b8e23;
}

[data-theme="faq"] {
    --bg-color: #FFFDD0; /* Cream */
    --text-color: #333333;
    --primary-color: #d16b47; /* Soft Orange */
    --secondary-color: #e28e6e;
}

[data-theme="contact"] {
    --bg-color: #ffffff; /* White */
    --text-color: #111111;
    --primary-color: #004000; /* Dark Green */
    --secondary-color: #006000;
}

[data-theme="bruxelles"] {
    --bg-color: #3b2a22; /* Dark Brown */
    --text-color: #f4ebd6;
    --primary-color: #FFD700; /* Gold */
    --secondary-color: #DAA520;
}

/* Base resets */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-family);
    line-height: 1.6;
}

/* Header & Footer */
header {
    background-color: var(--primary-color);
    color: #fff;
    padding: 1rem 2rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}
header a.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #fff;
    text-decoration: none;
}
nav a {
    color: #fff;
    text-decoration: none;
    margin-left: 1.5rem;
    font-weight: 500;
}
nav a:hover {
    text-decoration: underline;
}
footer {
    background-color: var(--primary-color);
    color: #fff;
    text-align: center;
    padding: 3rem 2rem;
    margin-top: 4rem;
}
footer a { color: #fff; }

main { max-width: 1200px; margin: 0 auto; padding: 2rem; }
h1, h2, h3, h4 { margin-bottom: 1rem; line-height: 1.2; }
h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; margin-top: 2rem; }
p { margin-bottom: 1rem; }
ul, ol { margin-bottom: 1rem; margin-left: 1.5rem; }

/* Links and buttons */
a { color: var(--primary-color); }
.btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--primary-color);
    color: #fff !important;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    text-align: center;
    transition: background-color 0.3s;
}
.btn:hover { background-color: var(--secondary-color); }

[data-theme="bruxelles"] .btn {
    color: #000 !important;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 4rem 1rem;
    background-color: rgba(0,0,0,0.05);
    border-radius: 8px;
    margin-bottom: 3rem;
}
[data-theme="bruxelles"] .hero {
    background-color: rgba(255,255,255,0.05);
}

/* Grids */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}
.card {
    background-color: #fff;
    color: #333;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
[data-theme="bruxelles"] .card {
    background-color: #4a372d;
    color: #f4ebd6;
}

/* Pricing Table */
.pricing-table {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}
.pricing-plan {
    flex: 1;
    min-width: 250px;
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.pricing-plan.featured {
    transform: scale(1.05);
    border: 2px solid var(--primary-color);
}

/* FAQ Accordion */
details {
    background: rgba(255,255,255,0.8);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}
summary {
    font-weight: bold;
    cursor: pointer;
    font-size: 1.1rem;
}
details p { margin-top: 1rem; margin-bottom: 0; }

/* Contact Form */
form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
}
input, textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: inherit;
}
button[type="submit"] {
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    padding: 12px 24px;
    cursor: pointer;
    font-size: 1rem;
    border-radius: 4px;
}
[data-theme="bruxelles"] button[type="submit"] {
    color: #000;
}

/* Author block */
.author-bio {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-top: 4rem;
    padding: 2rem;
    background-color: rgba(0,0,0,0.05);
    border-radius: 8px;
}
[data-theme="bruxelles"] .author-bio {
    background-color: rgba(255,255,255,0.05);
}
.author-avatar {
    width: 80px;
    height: 80px;
    background-color: #ccc;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #666;
}

/* Blog Posts */
.blog-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.blog-card {
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.blog-card h3 { margin-bottom: 0.5rem; }
.blog-card a { font-weight: bold; text-decoration: none; }

@media (max-width: 768px) {
    header { flex-direction: column; gap: 1rem; }
    nav a { margin: 0 0.5rem; }
}
