:root {
  --font-main: 'Inter', system-ui, -apple-system, sans-serif;
}

/* Themes */
body.theme-home {
  --bg-color: #fdfbf7; /* Light beige */
  --text-color: #1a1a1a;
  --primary-color: #0b3d2c; /* Deep Green */
  --secondary-color: #d4c4b7; /* Beige */
  --header-bg: #0b3d2c;
  --header-text: #fdfbf7;
}

body.theme-features {
  --bg-color: #f8f9fa; /* Light Gray */
  --text-color: #2c3e50;
  --primary-color: #34495e; /* Charcoal */
  --secondary-color: #bdc3c7;
  --header-bg: #34495e;
  --header-text: #ecf0f1;
}

body.theme-pricing {
  --bg-color: #faf8f5; /* Light Sand */
  --text-color: #333333;
  --primary-color: #a37c44; /* Bronze */
  --secondary-color: #e6dcca; /* Sand */
  --header-bg: #a37c44;
  --header-text: #ffffff;
}

body.theme-faq {
  --bg-color: #fffbf0; /* Cream */
  --text-color: #4a4a4a;
  --primary-color: #e69138; /* Soft Orange */
  --secondary-color: #ffe5b4;
  --header-bg: #e69138;
  --header-text: #ffffff;
}

body.theme-contact {
  --bg-color: #ffffff; /* White */
  --text-color: #222222;
  --primary-color: #0f4d36; /* Dark Green */
  --secondary-color: #e8f0ec;
  --header-bg: #ffffff;
  --header-text: #0f4d36;
}

/* Base Styles */
* {
  box-sizing: border-box;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-color);
  color: var(--text-color);
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

header {
  background-color: var(--header-bg);
  color: var(--header-text);
  padding: 1rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header a {
  color: var(--header-text);
  text-decoration: none;
  font-weight: 600;
  margin-left: 1.5rem;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 0;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1.5rem;
}

a {
  color: var(--primary-color);
  font-weight: bold;
}

.btn {
  display: inline-block;
  background-color: var(--primary-color);
  color: var(--bg-color);
  padding: 0.8rem 2rem;
  text-decoration: none;
  border-radius: 4px;
  font-weight: bold;
  border: none;
  cursor: pointer;
  text-align: center;
}

.btn:hover {
  opacity: 0.9;
}

/* Specific Component Styles */
.hero {
  text-align: center;
  padding: 6rem 1rem;
  background-color: var(--secondary-color);
  color: var(--primary-color);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.card {
  background-color: #fff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
  color: var(--text-color);
  border: 1px solid var(--secondary-color);
}

.pricing-table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
}

.pricing-table th, .pricing-table td {
  border: 1px solid var(--secondary-color);
  padding: 1rem;
  text-align: center;
}

.pricing-table th {
  background-color: var(--primary-color);
  color: var(--bg-color);
}

.accordion {
  border-bottom: 1px solid var(--secondary-color);
  margin-bottom: 1rem;
}

.accordion-title {
  padding: 1rem;
  background-color: var(--secondary-color);
  cursor: pointer;
  font-weight: bold;
}

.accordion-content {
  padding: 1rem;
  display: none;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: bold;
}

.form-group input, .form-group textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid var(--secondary-color);
  border-radius: 4px;
  font-family: inherit;
}

/* Author Bio */
.author-bio {
  background-color: #f9f9f9;
  padding: 2rem;
  margin-top: 4rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  border-top: 2px solid var(--primary-color);
}

.author-bio img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
}

footer {
  background-color: #222;
  color: #fff;
  text-align: center;
  padding: 2rem;
  margin-top: 4rem;
}

footer a {
  color: #ccc;
  margin: 0 0.5rem;
}
