/* ---
Theme: VintagePress
Font: Playfair Display (Headings), Merriweather (Body)
Tone: Storytelling / Narrative
--- */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&family=Merriweather:wght@400;700&display=swap');

/* --- Base & Variables --- */
:root {
    --bg-color: #fdf6e3; /* Warm, creamy off-white */
    --surface-color: #faf3e0;
    --primary-color: #8b4513; /* Rich, saddle brown */
    --text-color: #584b3e; /* Dark, warm brown */
    --text-muted-color: #7d6b5a;
    --border-color: #d3c5a8;
    --font-family-heading: 'Playfair Display', serif;
    --font-family-body: 'Merriweather', serif;
}

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

html {
    scroll-behavior: smooth;
}

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

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #000000;
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
    filter: sepia(0.3);
}

h1, h2, h3, h4 {
    margin-bottom: 0.7em;
    font-family: var(--font-family-heading);
    font-weight: 700;
    line-height: 1.3;
    color: var(--primary-color);
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.6rem; }
h4 { font-size: 1.2rem; font-family: var(--font-family-body); font-weight: 700; letter-spacing: 0.5px; }

p {
    margin-bottom: 1.5em;
}

ul, ol {
    margin-bottom: 1.5em;
    padding-left: 25px;
}

li {
    margin-bottom: 0.6em;
}

/* --- Utility Classes --- */
.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: var(--bg-color);
    border: 2px solid var(--primary-color);
    border-radius: 4px;
    font-weight: 700;
    text-align: center;
    transition: background-color 0.3s ease, color 0.3s ease;
    font-family: var(--font-family-body);
}

.btn:hover {
    background-color: var(--surface-color);
    color: var(--primary-color);
    text-decoration: none;
}

/* --- Header & Navigation --- */
.site-header {
    background-color: var(--surface-color);
    padding: 1rem 0;
    border-bottom: 2px solid var(--border-color);
}

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

.site-title {
    font-size: 1.8rem;
    font-family: var(--font-family-heading);
}

.site-title a {
    color: var(--primary-color);
    text-decoration: none;
}
.site-title a:hover {
    text-decoration: none;
    color: #000;
}

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

.main-nav a {
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    color: var(--text-color);
}

/* --- Main Layout --- */
.main-content-area {
    padding: 2.5rem 0;
}

.layout-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}

/* --- Hero Section --- */
.hero {
    background-color: transparent;
    padding: 2rem 0;
    text-align: center;
    margin-bottom: 2.5rem;
    border-bottom: 1px solid var(--border-color);
}

.hero h1 {
    font-size: 3.2rem;
    margin-bottom: 0.5em;
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-muted-color);
    max-width: 700px;
    margin: 0 auto 1.5rem;
}

/* --- Blog Articles Section --- */
.articles-section h2 {
    text-align: center;
    margin-bottom: 2.5rem;
    font-size: 2.5rem;
}

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

.article-card {
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(88, 75, 62, 0.15);
}

.article-card img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    border-radius: 0;
    border-bottom: 1px solid var(--border-color);
}

.article-card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.article-card-content h3 {
    margin-bottom: 0.5rem;
}

.article-card-content p {
    color: var(--text-muted-color);
    flex-grow: 1;
    margin-bottom: 1.5rem;
}

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

.sidebar-widget h4 {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

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

.sidebar-widget li {
    margin-bottom: 0.75rem;
}

.sidebar-widget li a {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-widget .logo {
    width: 25px;
    height: 25px;
    object-fit: contain;
    filter: none;
    border: none;
}

.promo-text p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-color);
}

/* --- Article Page --- */
.article-full-content {
    background-color: var(--surface-color);
    padding: 2.5rem;
    border-radius: 4px;
    border: 1px solid var(--border-color);
}

.article-header {
    text-align: center;
    margin-bottom: 3rem;
    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(--text-muted-color);
    font-family: var(--font-family-body);
}

.article-meta span {
    margin: 0 10px;
}

.article-content img.article-image {
    margin: 2.5rem 0;
    border: 1px solid var(--border-color);
}

.cta-section {
    background-color: rgba(139, 69, 21, 0.05);
    border: 1px dashed var(--primary-color);
    padding: 2.5rem;
    text-align: center;
    border-radius: 4px;
    margin: 2.5rem 0;
}

/* --- Sub-pages (Offers, About, Contact) --- */
.page-header {
    text-align: center;
    padding: 3.5rem 0;
    margin-bottom: 2.5rem;
    border-bottom: 1px solid var(--border-color);
}

.page-content {
    padding: 1rem 0;
}

.country-section {
    margin-bottom: 2.5rem;
    padding: 2rem;
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

.country-section h2 {
    margin-bottom: 1.5rem;
}

.supermarket-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.supermarket-list li {
    background-color: var(--bg-color);
    padding: 0.8rem 1.2rem;
    border-radius: 4px;
    border: 1px solid var(--border-color);
}

/* --- Footer --- */
.site-footer {
    background-color: var(--surface-color);
    color: var(--text-muted-color);
    padding: 2.5rem 0;
    margin-top: 2.5rem;
    text-align: center;
    border-top: 2px solid var(--border-color);
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.footer-links ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    padding: 0;
}

.footer-links a {
    font-weight: 700;
    color: var(--text-color);
}

/* --- Media Queries --- */

/* Tablet */
@media (min-width: 768px) {
    .layout-grid {
        grid-template-columns: 2fr 1fr;
    }
    
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-container {
        flex-direction: row;
        justify-content: space-between;
    }
    
    .header-container {
        flex-wrap: nowrap;
    }
}

/* Desktop */
@media (min-width: 1024px) {
    body {
        font-size: 18px;
    }

    .articles-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    h1 { font-size: 3.2rem; }
}