/*
Theme Name: Small Hill Farm
Description: A clean, minimalist WordPress theme for Small Hill Farm - a family goat farm. Features authentic farm storytelling with a professional yet approachable design.
Version: 1.0.0
Author: Small Hill Farm
Tags: farm, agriculture, goats, family, clean, minimal, responsive
Text Domain: smallhillfarm
*/

:root {
    --color-primary: #2c5530;
    --color-secondary: #6b8e23;
    --color-accent: #d4a574;
    --color-text: #333333;
    --color-text-light: #666666;
    --color-background: #ffffff;
    --color-background-light: #f8f8f8;
    --font-primary: 'Georgia', serif;
    --font-secondary: 'Helvetica Neue', Arial, sans-serif;
    --max-width: 1200px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-secondary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background-color: #e8f4e8;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    margin-bottom: 1rem;
    line-height: 1.2;
}

h1 { font-size: 2.5rem; color: var(--color-primary); }
h2 { font-size: 2rem; color: var(--color-primary); }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
}

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

a:hover {
    color: var(--color-primary);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--color-secondary);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-size: 16px;
}

.btn:hover {
    background-color: var(--color-primary);
    color: white;
}

/* Header Styles */
.site-header {
    background-color: white;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e1e1e1;
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-branding {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.site-logo {
    flex-shrink: 0;
}

.site-logo img {
    width: 200px;
    height: auto;
    max-width: 100%;
    transition: opacity 0.3s ease;
}

.site-logo img:hover {
    opacity: 0.8;
}

.site-info {
    text-align: left;
}

.site-welcome {
    color: #000000;
    font-family: var(--font-primary);
    font-size: 1.75rem;
    margin: 0 0 0.5rem 0;
    line-height: 1.2;
}

.site-tagline {
    color: #000000;
    font-size: 1rem;
    margin: 0;
    line-height: 1.4;
}

.site-title a {
    color: var(--color-primary);
    font-family: var(--font-primary);
    font-size: 2rem;
}

.site-description {
    color: var(--color-text-light);
    font-style: italic;
    margin: 0;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.main-navigation a {
    color: #000000;
}

.main-navigation a:hover {
    color: var(--color-secondary);
}

.menu-toggle {
    display: none;
    color: #000000;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(44, 85, 48, 0.7), rgba(44, 85, 48, 0.7)),
                var(--color-background-light);
    color: white;
    text-align: center;
    padding: 3rem 0;
    min-height: 35vh;
    display: flex;
    align-items: center;
}

.hero-title {
    font-size: 2.25rem;
    margin-bottom: 1rem;
    color: white;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    background-color: var(--color-accent);
    color: var(--color-primary);
    font-weight: bold;
}

.hero-cta:hover {
    background-color: white;
    color: var(--color-primary);
}

/* Section Styles */
section {
    padding: 4rem 0;
}

.about-section {
    background-color: var(--color-background-light);
}

.about-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-top: 2rem;
}

.image-placeholder,
.goat-image-placeholder {
    background-color: #ddd;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    border-radius: 8px;
}

/* Goats Section */
.goats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.goat-card {
    background-color: var(--color-background);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-align: center;
}

.goat-card h3 {
    color: var(--color-secondary);
    margin: 1rem 0 0.5rem;
}

/* Smallhold Section */
.smallhold-section {
    background-color: var(--color-background);
    text-align: center;
}

.smallhold-content {
    max-width: 800px;
    margin: 0 auto;
}

.smallhold-section h2 {
    color: var(--color-primary);
    margin-bottom: 2rem;
}

.smallhold-text {
    text-align: left;
}

.smallhold-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--color-text);
    margin-bottom: 1.5rem;
}

.smallhold-text p:last-child {
    margin-bottom: 0;
}

/* Instagram Section */
.instagram-section {
    background-color: var(--color-primary);
    color: white;
    text-align: center;
}

.instagram-section h2 {
    color: white;
}

.instagram-section .section-intro {
    color: rgba(255, 255, 255, 0.9);
}

.instagram-feed {
    margin: 2rem 0;
}

.instagram-placeholder {
    background-color: var(--color-background-light);
    padding: 3rem 2rem;
    border-radius: 8px;
    color: var(--color-text-light);
}

.instagram-placeholder p {
    margin-bottom: 1rem;
}

.instagram-note {
    font-weight: bold;
    color: var(--color-text);
    margin-top: 1.5rem;
}

.instagram-instructions {
    list-style: none;
    padding: 0;
    max-width: 500px;
    margin: 1rem auto 0;
}

.instagram-instructions li {
    padding: 0.5rem 0;
}

.instagram-cta {
    margin-top: 2rem;
}

/* Recipes Section */
.recipes-section {
    background-color: var(--color-background-light);
}

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

.recipe-card {
    background-color: var(--color-background);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.recipe-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.recipe-image img {
    width: 100%;
    height: auto;
    display: block;
}

.recipe-card-content {
    padding: 1.5rem;
}

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

.recipe-card h3 a {
    color: var(--color-primary);
}

.recipe-excerpt {
    margin-bottom: 1rem;
    color: var(--color-text-light);
}

.view-all-recipes {
    text-align: center;
    margin-top: 2rem;
}

/* Visit Section */
.visit-section {
    background-color: var(--color-background);
}

.visit-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

/* Blog Posts Layout */
.single-post .site-content {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 2rem 20px;
}

.single-post .site-main {
    min-width: 0;
}

.posts-container {
    margin: 0;
}

.post-item {
    background-color: var(--color-background);
    margin-bottom: 3rem;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.post-item .post-thumbnail {
    margin-bottom: 1.5rem;
}

.post-item .post-thumbnail img {
    width: 100%;
    border-radius: 4px;
}

.post-item .entry-title {
    margin-bottom: 1rem;
}

.post-item .entry-title a {
    color: var(--color-primary);
    text-decoration: none;
}

.post-item .entry-title a:hover {
    color: var(--color-secondary);
}

.post-item .entry-meta {
    color: var(--color-text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.post-item .entry-summary {
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.post-item .entry-footer .read-more {
    color: var(--color-secondary);
    font-weight: bold;
    text-decoration: none;
    border: 2px solid var(--color-secondary);
    padding: 8px 16px;
    border-radius: 4px;
    display: inline-block;
    transition: all 0.3s ease;
}

.post-item .entry-footer .read-more:hover {
    background-color: var(--color-secondary);
    color: white;
}

/* Posts Grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.post-card {
    background-color: var(--color-background);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.post-card-content {
    padding: 1.5rem;
}

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

.post-card h3 a {
    color: var(--color-primary);
}

.post-date {
    color: var(--color-text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.view-all-posts {
    text-align: center;
    margin-top: 2rem;
}

/* Footer */
.site-footer {
    background-color: white;
    color: var(--color-text);
    padding: 2rem 0;
    border-top: 1px solid #e1e1e1;
}

.footer-content {
    text-align: center;
}

.footer-info {
    margin-bottom: 1rem;
}

.footer-menu {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.footer-menu a {
    color: var(--color-text);
}

.footer-menu a:hover {
    color: var(--color-secondary);
}

.site-info {
    text-align: center;
}

.farm-tagline {
    font-style: italic;
    opacity: 0.8;
    margin: 0;
}

/* Sidebar */
.widget-area {
    background-color: var(--color-background-light);
    padding: 2rem;
    border-radius: 8px;
}

.widget {
    background-color: var(--color-background);
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.widget:last-child {
    margin-bottom: 0;
}

.widget-title {
    color: var(--color-primary);
    font-family: var(--font-primary);
    font-size: 1.25rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--color-accent);
}

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

.widget ul li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.widget ul li:last-child {
    border-bottom: none;
}

.widget ul li a {
    color: var(--color-text);
    text-decoration: none;
    transition: color 0.3s ease;
}

.widget ul li a:hover {
    color: var(--color-secondary);
}

.widget p {
    line-height: 1.6;
    margin-bottom: 1rem;
}

.widget p:last-child {
    margin-bottom: 0;
}

.widget .textwidget {
    color: var(--color-text-light);
}

.widget input[type="text"],
.widget input[type="email"],
.widget textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: var(--font-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.widget input[type="submit"],
.widget button {
    background-color: var(--color-secondary);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-family: var(--font-secondary);
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}

.widget input[type="submit"]:hover,
.widget button:hover {
    background-color: var(--color-primary);
}

/* Mobile Styles */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }

    .site-branding {
        flex-direction: column;
        gap: 1rem;
    }

    .site-info {
        text-align: center;
    }

    .site-welcome {
        font-size: 1.5rem;
    }

    .site-tagline {
        font-size: 0.9rem;
    }

    .menu-toggle {
        display: block;
        background: none;
        border: none;
        color: #000000;
        font-size: 1rem;
        cursor: pointer;
    }

    .main-navigation ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--color-background);
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        padding: 1rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .about-grid,
    .visit-info {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .goats-grid {
        grid-template-columns: 1fr;
    }

    .posts-grid {
        grid-template-columns: 1fr;
    }

    /* Stack sidebar below content on mobile */
    .single-post .site-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Recipes grid on mobile */
    .recipes-grid {
        grid-template-columns: 1fr;
    }
}