/*
  Theme: Nature Inspired
  Font: Merriweather
  Tone of Voice: Friendly & Casual
  Language: English (US)
*/

/* --- Root Variables --- */
:root {
  --bg-primary: #fdfaf6;      /* Very light, warm off-white */
  --bg-secondary: #f8f1e9;    /* Slightly darker beige for cards */
  --text-primary: #3a3a3a;      /* Dark, earthy brown/charcoal */
  --text-secondary: #6b6b6b;   /* Muted gray-brown for secondary text */
  --accent-primary: #5a7d6a;   /* Calming, muted green */
  --accent-hover: #4a6b5a;     /* Darker green for hover */
  --border-color: #e0d8cd;    /* Soft, light brown border */
  --shadow-color: rgba(0, 0, 0, 0.05);
  --font-body: 'Merriweather', serif;
}

/* --- Base & Reset --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  font-size: 17px;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

h1 { font-size: 2.8rem; text-align: center; }
h2 {
  font-size: 2.2rem;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 0.75rem;
  margin-top: 2.5rem;
}
h3 { font-size: 1.5rem; font-weight: 700; color: var(--accent-primary); }
p { margin-bottom: 1.2rem; color: var(--text-secondary); }
a {
  color: var(--accent-primary);
  text-decoration: none;
  transition: color 0.3s ease;
}
a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}
ul {
  list-style-position: inside;
  padding-left: 1rem;
}

/* --- Layout & Structure --- */
.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}

.main-header {
  background-color: var(--bg-primary);
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border-color);
  width: 100%;
}

.main-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.site-title {
  font-size: 1.6rem;
  font-weight: 700;
  text-align: center;
  padding: 0.5rem 0;
  width: 100%;
}
.site-title a {
  color: var(--text-primary);
  text-decoration: none;
}
.site-title a:hover {
  color: var(--accent-primary);
}

.main-nav {
  width: 100%;
  margin-top: 1rem;
}
.main-nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  padding-left: 0;
}

.main-nav a {
  font-weight: 400;
  font-size: 1rem;
  padding: 0.5rem;
  color: var(--text-secondary);
  text-decoration: none;
}
.main-nav a:hover {
  color: var(--accent-primary);
}

main {
  padding: 3rem 0;
}

.main-layout {
  display: grid;
  gap: 3rem;
}

.main-content {
  grid-column: 1 / -1;
}

.sidebar {
  grid-column: 1 / -1;
}

.footer {
  text-align: center;
  padding: 2.5rem 0;
  margin-top: 3rem;
  border-top: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* --- Components --- */
.hero {
  padding: 3rem 1rem;
  text-align: center;
  margin-bottom: 3rem;
}

.hero h1 {
  font-size: 3.5rem;
  color: var(--text-primary);
}
.hero p {
  font-size: 1.2rem;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-secondary);
}

.articles-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}

.article-card {
  background-color: #fff;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 6px var(--shadow-color);
}

.article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.08);
}

.article-card h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
}

.read-more-btn {
  display: inline-block;
  margin-top: 1rem;
  font-weight: 700;
}

.sidebar-widget {
  margin-bottom: 2rem;
  background-color: var(--bg-secondary);
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid var(--border-color);
}
.sidebar-widget:last-child {
  margin-bottom: 0;
}

.sidebar-widget h3 {
  margin-top: 0;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.sidebar-widget ul {
  list-style: none;
  padding-left: 0;
}

.sidebar-widget ul li {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border-color);
}
.sidebar-widget ul li:last-child {
  border-bottom: none;
}

/* Article Page Specifics */
.article-header {
  margin-bottom: 2.5rem;
  text-align: center;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 2rem;
}

.article-header h1 {
    margin-bottom: 1.5rem;
    font-size: 2.8rem;
}

.article-meta {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.article-content ul {
  margin-bottom: 1.5rem;
}

.article-content li {
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}

.cta-box {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2.5rem;
    margin: 3rem 0;
    text-align: center;
}
.cta-box h3 {
  margin-top: 0;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    background: #fff;
    padding: 2rem;
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

.contact-form label {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-primary);
}

.contact-form input, .contact-form textarea {
    padding: 1rem;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    width: 100%;
    border-radius: 8px;
}
.contact-form input:focus, .contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(90, 125, 106, 0.2);
}

.contact-form button {
    padding: 1rem;
    background-color: var(--accent-primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.contact-form button:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
}

/* --- Media Queries --- */
@media (min-width: 768px) {
  .site-title {
    width: auto;
    text-align: left;
  }
  .main-nav {
    width: auto;
    margin-top: 0;
  }
  .main-layout {
    grid-template-columns: 2.5fr 1fr;
  }
  .main-content {
    grid-column: 1 / 2;
  }
  .sidebar {
    grid-column: 2 / 3;
  }
  .articles-grid {
    grid-template-columns: 1fr;
  }
  h1 { font-size: 3.2rem; }
  .article-header h1 { font-size: 3rem; }
}

@media (min-width: 1024px) {
  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  h1 { font-size: 3.8rem; }
}