/* ---=== Google Font Import ===--- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&family=Source+Sans+Pro:wght@400;600&display=swap');

/* ---=== Rustic & Organic Theme Variables (2025) ===--- */
:root {
    --primary-color: #228B22; /* Forest Green */
    --background-color: #fdfaf3; /* Ivory/Linen */
    --surface-color: #ffffff; /* Clean white for contrast */
    --text-color: #5C4033; /* Dark, warm brown */
    --muted-text-color: #7a5c4f; /* Lighter brown */
    --border-color: #e5dcd2; /* Soft tan/beige */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Source Sans Pro', sans-serif;
    --border-radius: 6px;
    --box-shadow: 0 3px 10px rgba(92, 64, 51, 0.08);
    --transition-speed: 0.3s;
}

/* ---=== General Styles ===--- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    line-height: 1.8;
    color: var(--text-color);
    background-color: var(--background-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color var(--transition-speed) ease;
}

a:hover {
    color: #1a681a;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    margin-bottom: 1.25rem;
    line-height: 1.3;
    font-weight: 700;
}

h1 { font-size: 3.2rem; }
h2 { font-size: 2.5rem; border-bottom: 1px solid var(--border-color); padding-bottom: 0.75rem; }
h3 { font-size: 1.6rem; }
p { margin-bottom: 1.5rem; max-width: 65ch; }

/* ---=== Header & Navigation ===--- */
.site-header {
    background-color: var(--background-color);
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--text-color);
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.main-nav a {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
    position: relative;
    padding-bottom: 5px;
}
.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width var(--transition-speed) ease;
}
.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

/* ---=== Main Content Layout ===--- */
.main-content-area {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    padding: 60px 20px;
}

@media (min-width: 992px) {
    .main-content-area {
        grid-template-columns: minmax(0, 2.5fr) minmax(0, 1fr);
    }
}

/* ---=== Homepage Specifics ===--- */
.hero {
    text-align: center;
    padding: 2rem 0;
    margin-bottom: 3rem;
}
.hero h1 {
    margin-bottom: 1rem;
}
.hero p {
    max-width: 600px;
    margin: 0 auto;
    color: var(--muted-text-color);
    font-size: 1.2rem;
}

.articles-grid h2 {
    text-align: center;
    margin-bottom: 3rem;
}

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

.card {
    background: var(--surface-color);
    border-radius: var(--border-radius);
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    box-shadow: var(--box-shadow);
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
    border: 1px solid var(--border-color);
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 6px 15px rgba(92, 64, 51, 0.12);
}

.card h3 {
    margin-bottom: 0.75rem;
    color: var(--primary-color);
}
.card p {
    flex-grow: 1;
    color: var(--muted-text-color);
    font-size: 1rem;
    line-height: 1.7;
}

.read-more {
    align-self: flex-start;
    margin-top: 1.25rem;
    font-weight: 600;
}

/* ---=== Sidebar ===--- */
.sidebar .widget {
    background: transparent;
    padding: 1.75rem;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
}

.sidebar h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

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

.sidebar ul li {
    margin-bottom: 0.75rem;
    font-size: 1.05rem;
}
.sidebar ul li a {
    font-weight: 400;
    color: var(--text-color);
    transition: color 0.3s ease;
}
.sidebar ul li a:hover {
    color: var(--primary-color);
}

.cta-widget p {
    font-size: 1rem;
    color: var(--muted-text-color);
}

.cta-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 12px 28px;
    border-radius: var(--border-radius);
    font-family: var(--font-body);
    font-weight: 600;
    text-align: center;
    transition: background-color var(--transition-speed) ease, transform var(--transition-speed) ease;
    margin-top: 1rem;
}
.cta-button:hover {
    background-color: #1a681a;
    color: white;
    transform: translateY(-2px);
}

/* ---=== Full Article & Page Styles ===--- */
.full-article, .page-content {
    background: var(--surface-color);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.article-header {
    text-align: center;
    margin-bottom: 2.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.5rem;
}
.article-header h1 {
    font-size: 3rem;
}
.article-meta {
    font-size: 0.9rem;
    color: var(--muted-text-color);
    margin-top: 1rem;
    font-family: var(--font-body);
}
.intro {
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--muted-text-color);
    margin-bottom: 2rem;
}

.full-article h2, .page-content h2 {
    margin-top: 2.5rem;
}

.full-article ul, .page-content ul {
    list-style-position: inside;
    padding-left: 1rem;
    margin-bottom: 1.25rem;
}
.full-article ul li, .page-content ul li {
    margin-bottom: 0.5rem;
}

.tip-box {
    background-color: #f0f8f0;
    border-left: 4px solid var(--primary-color);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}
.tip-box p {
    margin: 0;
}
.tip-box strong {
    color: var(--primary-color);
    font-weight: 600;
}

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

/* Specific for offers page */
.offer-list {
    list-style-type: none;
    padding-left: 0;
}
.offer-list li {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}
.offer-list li:last-child {
    border-bottom: none;
}
.offer-list li strong {
    font-family: var(--font-body);
    font-weight: 600;
    color: var(--text-color);
}

/* Specific for contact page */
.contact-email {
    font-size: 1.1rem;
    font-weight: 600;
}

/* ---=== Footer ===--- */
.site-footer {
    background-color: #3e2c22;
    color: var(--background-color);
    padding: 3rem 0;
    margin-top: 60px;
    text-align: center;
}
.site-footer a {
    color: white;
    margin: 0 10px;
    font-weight: 400;
}
.site-footer a:hover {
    color: var(--border-color);
}
.footer-links {
    margin-bottom: 1.5rem;
}
.site-footer p {
    font-size: 0.9rem;
    color: #bcaaa4;
    margin-bottom: 0;
}

/* ---=== Media Queries (Responsive Design) ===--- */
@media (max-width: 991px) {
    .site-header .container {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2.8rem; }
    h2 { font-size: 2rem; }
    .article-header h1 { font-size: 2.5rem; }

    .main-content-area {
        padding: 40px 20px;
    }

    .full-article, .page-content {
        padding: 1.5rem;
    }
}

@media (max-width: 576px) {
    body {
        font-size: 16px;
    }
    .main-nav ul {
        gap: 1rem;
    }
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    .article-header h1 { font-size: 2.1rem; }
    
    .grid-container {
        grid-template-columns: 1fr;
    }
}