/*
Theme Name: HarvestTable
Theme URI: https://dd-restaurant.ru
Author: Наталья Громова
Author URI: https://dd-restaurant.ru
Description: Рекомендации по выращиванию растений, ландшафтному дизайну и приготовлению домашних блюд.
Version: 1.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: harvesttable
Tags: blog, food, garden, responsive
*/

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'PT Serif', Georgia, 'Times New Roman', serif;
    background-color: #FAF8F5;
    color: #2C2C2C;
    line-height: 1.7;
    overflow-x: hidden;
}

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

a {
    color: #2D5F2B;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #E8A849;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6,
.site-title,
.main-navigation,
.widget-title {
    font-family: 'Montserrat', 'Futura PT', 'Geometria', Arial, sans-serif;
    color: #2D5F2B;
    line-height: 1.3;
    font-weight: 700;
}

h1 { font-size: 2.4rem; margin-bottom: 0.6em; }
h2 { font-size: 1.9rem; margin-bottom: 0.5em; }
h3 { font-size: 1.5rem; margin-bottom: 0.4em; }
h4 { font-size: 1.25rem; margin-bottom: 0.4em; }

p {
    margin-bottom: 1.2em;
    color: #2C2C2C;
}

blockquote {
    border-left: 4px solid #E8A849;
    padding: 1em 1.5em;
    margin: 1.5em 0;
    background: #F5F0E8;
    font-style: italic;
    color: #3D3D3D;
}

/* ============================================
   LAYOUT
   ============================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.site-content {
    padding: 2rem 0;
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
    background: #FFFFFF;
    border-bottom: 3px solid #2D5F2B;
    position: relative;
    z-index: 100;
    transition: all 0.3s ease;
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.site-branding .custom-logo {
    max-height: 60px;
    width: auto;
}

.site-title {
    font-size: 1.4rem;
    margin: 0;
    line-height: 1.2;
}

.site-title a {
    color: #2D5F2B;
}

.site-title a:hover {
    color: #E8A849;
}

.site-description {
    font-size: 0.8rem;
    color: #6B6B6B;
    margin: 0.2em 0 0;
    font-family: 'PT Serif', Georgia, serif;
}

/* ============================================
   NAVIGATION
   ============================================ */
.main-navigation {
    font-size: 0.95rem;
}

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

.main-navigation li {
    position: relative;
}

.main-navigation a {
    display: block;
    padding: 0.5rem 0.9rem;
    color: #2C2C2C;
    font-weight: 600;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-family: 'Montserrat', Arial, sans-serif;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a {
    background: #2D5F2B;
    color: #FFFFFF;
}

/* Submenu */
.main-navigation .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #FFFFFF;
    border: 1px solid #E0DDD7;
    border-radius: 4px;
    min-width: 220px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    z-index: 200;
    flex-direction: column;
    gap: 0;
    padding: 0.4rem 0;
}

.main-navigation li:hover > .sub-menu {
    display: flex;
}

.main-navigation .sub-menu a {
    padding: 0.5rem 1.2rem;
    border-radius: 0;
    font-size: 0.9rem;
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    background: #2D5F2B;
    color: #FFFFFF;
    border: none;
    padding: 0.6rem 1rem;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 4px;
    font-family: 'Montserrat', Arial, sans-serif;
    font-weight: 600;
}

.menu-toggle:hover {
    background: #3D7F3B;
}

/* ============================================
   READING PROGRESS BAR
   ============================================ */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(90deg, #2D5F2B, #4A8C3F);
    z-index: 9999;
    transition: width 0.1s linear;
}

/* ============================================
   HERO / SLIDER
   ============================================ */
.hero-slider {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #2D5F2B 0%, #1a3a19 100%);
    min-height: 400px;
}

.hero-slide {
    display: none;
    position: relative;
    min-height: 400px;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3rem 2rem;
}

.hero-slide.active {
    display: flex;
}

.hero-slide-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
}

.hero-slide h2 {
    color: #FAF8F5;
    font-size: 2.4rem;
    margin-bottom: 0.5em;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.hero-slide p {
    color: #E8E4DC;
    font-size: 1.15rem;
    margin-bottom: 1.5em;
}

.hero-btn {
    display: inline-block;
    background: #E8A849;
    color: #1a3a19;
    padding: 0.75rem 2rem;
    border-radius: 5px;
    font-family: 'Montserrat', Arial, sans-serif;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.hero-btn:hover {
    background: #F0BE6A;
    color: #1a3a19;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(232,168,73,0.4);
}

.slider-controls {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    border: 2px solid rgba(255,255,255,0.6);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active {
    background: #E8A849;
    border-color: #E8A849;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.15);
    color: #FFFFFF;
    border: 2px solid rgba(255,255,255,0.3);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.slider-arrow:hover {
    background: rgba(255,255,255,0.3);
}

.slider-arrow.prev { left: 1rem; }
.slider-arrow.next { right: 1rem; }

/* ============================================
   SEASON CALENDAR
   ============================================ */
.season-calendar {
    background: #FFFFFF;
    border-radius: 8px;
    padding: 2rem;
    margin: 2.5rem 0;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border: 1px solid #E0DDD7;
}

.season-calendar h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1.7rem;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.6rem;
}

.calendar-month {
    padding: 0.8rem 0.5rem;
    text-align: center;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Montserrat', Arial, sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    background: #F5F0E8;
    color: #3D3D3D;
    border: 2px solid transparent;
}

.calendar-month:hover {
    border-color: #2D5F2B;
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(45,95,43,0.15);
}

.calendar-month.current {
    background: #2D5F2B;
    color: #FFFFFF;
    box-shadow: 0 3px 10px rgba(45,95,43,0.3);
}

.calendar-month .month-icon {
    display: block;
    font-size: 1.5rem;
    margin-bottom: 0.3rem;
}

.calendar-info {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: #F9F6F0;
    border-radius: 6px;
    border-left: 4px solid #E8A849;
    display: none;
}

.calendar-info.active {
    display: block;
}

.calendar-info h3 {
    margin-bottom: 0.7rem;
    font-size: 1.2rem;
}

.calendar-info-section {
    margin-bottom: 1rem;
}

.calendar-info-section strong {
    color: #2D5F2B;
    font-family: 'Montserrat', Arial, sans-serif;
}

/* ============================================
   CONTENT CARDS
   ============================================ */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.8rem;
    margin: 2rem 0;
}

.content-card {
    background: #FFFFFF;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    border: 1px solid #E0DDD7;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.content-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

/* Category-based card backgrounds */
.content-card[data-category="garden"] {
    border-top: 4px solid #4A8C3F;
}
.content-card[data-category="landscape"] {
    border-top: 4px solid #8B7355;
}
.content-card[data-category="cooking"] {
    border-top: 4px solid #C0392B;
}

.card-thumbnail {
    position: relative;
    overflow: hidden;
    height: 220px;
    background: #E8E4DC;
}

.card-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.content-card:hover .card-thumbnail img {
    transform: scale(1.05);
}

/* Category-based image shapes */
.content-card[data-category="cooking"] .card-thumbnail {
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.content-card[data-category="cooking"] .card-thumbnail img {
    border-radius: 50%;
    width: 200px;
    height: 200px;
}

.content-card[data-category="landscape"] .card-thumbnail {
    height: 180px;
}

.card-category {
    position: absolute;
    top: 0.8rem;
    left: 0.8rem;
    background: #2D5F2B;
    color: #FFFFFF;
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.3rem 0.7rem;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

.card-body {
    padding: 1.3rem 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 1.15rem;
    margin-bottom: 0.6rem;
    line-height: 1.4;
}

.card-title a {
    color: #2D5F2B;
}

.card-title a:hover {
    color: #E8A849;
}

.card-excerpt {
    font-size: 0.92rem;
    color: #555555;
    line-height: 1.6;
    flex: 1;
    margin-bottom: 1rem;
}

.card-excerpt a {
    color: #2D5F2B;
    text-decoration: underline;
}

.card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #888888;
    font-family: 'Montserrat', Arial, sans-serif;
    padding-top: 0.8rem;
    border-top: 1px solid #F0EDE6;
}

.card-date {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.card-read-more {
    color: #E8A849;
    font-weight: 700;
    transition: color 0.3s ease;
}

.card-read-more:hover {
    color: #2D5F2B;
}

/* ============================================
   NO THUMBNAIL PLACEHOLDER
   ============================================ */
.card-thumbnail .no-thumb {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #E8E4DC 0%, #D4CFC5 100%);
}

.card-thumbnail .no-thumb svg {
    width: 64px;
    height: 64px;
    opacity: 0.3;
}

/* ============================================
   SECTION HEADINGS
   ============================================ */
.section-heading {
    text-align: center;
    margin-bottom: 2rem;
}

.section-heading h2 {
    font-size: 1.8rem;
    position: relative;
    display: inline-block;
    padding-bottom: 0.5rem;
}

.section-heading h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #E8A849;
    border-radius: 2px;
}

.section-heading p {
    color: #6B6B6B;
    margin-top: 0.5rem;
    font-size: 1.05rem;
}

/* ============================================
   SINGLE POST
   ============================================ */
.single-post-content {
    max-width: 800px;
    margin: 0 auto;
}

.post-header {
    margin-bottom: 2rem;
    text-align: center;
}

.post-header .entry-title {
    font-size: 2.2rem;
    margin-bottom: 0.8rem;
}

.post-meta {
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 0.85rem;
    color: #888888;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.post-featured-image {
    margin-bottom: 2rem;
    border-radius: 8px;
    overflow: hidden;
}

.post-featured-image img {
    width: 100%;
    border-radius: 8px;
}

.entry-content {
    font-size: 1.05rem;
    line-height: 1.8;
}

.entry-content p {
    margin-bottom: 1.3em;
}

.entry-content h2 {
    margin-top: 2em;
}

.entry-content h3 {
    margin-top: 1.5em;
}

.entry-content img {
    border-radius: 6px;
    margin: 1.5em 0;
}

.entry-content ul,
.entry-content ol {
    margin: 1em 0 1.5em 1.5em;
    color: #2C2C2C;
}

.entry-content li {
    margin-bottom: 0.4em;
}

/* Recipe Card */
.recipe-card {
    background: #F5EFE0;
    border: 2px solid #D4C9A8;
    border-radius: 8px;
    padding: 2rem;
    margin: 2rem 0;
    position: relative;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' /%3E%3C/filter%3E%3Crect width='100' height='100' filter='url(%23n)' opacity='0.03' /%3E%3C/svg%3E");
}

.recipe-card h3 {
    color: #2D5F2B;
    margin-bottom: 1rem;
    padding-bottom: 0.7rem;
    border-bottom: 2px dashed #D4C9A8;
}

.recipe-meta-info {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.recipe-meta-item {
    text-align: center;
}

.recipe-meta-item .number {
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: #E8A849;
    display: block;
    line-height: 1;
}

.recipe-meta-item .label {
    font-size: 0.8rem;
    color: #6B6B6B;
    font-family: 'Montserrat', Arial, sans-serif;
    text-transform: uppercase;
}

.recipe-ingredients {
    list-style: none;
    padding: 0;
    margin: 0;
}

.recipe-ingredients li {
    padding: 0.5rem 0;
    padding-left: 2rem;
    position: relative;
    border-bottom: 1px dashed #D4C9A8;
    color: #3D3D3D;
}

.recipe-ingredients li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    border: 2px solid #2D5F2B;
    border-radius: 50%;
}

/* Post tags */
.post-tags {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #E0DDD7;
}

.post-tags a {
    display: inline-block;
    background: #F5F0E8;
    color: #2D5F2B;
    padding: 0.3rem 0.8rem;
    border-radius: 3px;
    font-size: 0.8rem;
    font-family: 'Montserrat', Arial, sans-serif;
    margin: 0.2rem;
    transition: all 0.3s ease;
}

.post-tags a:hover {
    background: #2D5F2B;
    color: #FFFFFF;
}

/* Post navigation */
.post-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid #E0DDD7;
    gap: 1rem;
}

.post-navigation a {
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.6rem 1.2rem;
    background: #F5F0E8;
    border-radius: 5px;
    transition: all 0.3s ease;
    color: #2D5F2B;
}

.post-navigation a:hover {
    background: #2D5F2B;
    color: #FFFFFF;
}

/* ============================================
   PAGE TEMPLATE
   ============================================ */
.page-content {
    max-width: 800px;
    margin: 0 auto;
}

/* ============================================
   COMMENTS
   ============================================ */
.comments-area {
    max-width: 800px;
    margin: 3rem auto 0;
    padding-top: 2rem;
    border-top: 2px solid #E0DDD7;
}

.comments-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.comment-list {
    list-style: none;
    padding: 0;
}

.comment {
    padding: 1.2rem 0;
    border-bottom: 1px solid #F0EDE6;
}

.comment .children {
    list-style: none;
    margin-left: 2rem;
    padding: 0;
}

.comment-author {
    font-family: 'Montserrat', Arial, sans-serif;
    font-weight: 700;
    color: #2D5F2B;
    margin-bottom: 0.3rem;
}

.comment-author img {
    border-radius: 50%;
    margin-right: 0.5rem;
    vertical-align: middle;
}

.comment-metadata {
    font-size: 0.8rem;
    color: #888888;
    margin-bottom: 0.5rem;
}

.comment-content p {
    font-size: 0.95rem;
}

.comment-respond {
    margin-top: 2rem;
}

.comment-form label {
    display: block;
    font-family: 'Montserrat', Arial, sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    color: #2D5F2B;
    margin-bottom: 0.3rem;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 0.7rem 1rem;
    border: 2px solid #E0DDD7;
    border-radius: 5px;
    font-family: 'PT Serif', Georgia, serif;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    transition: border-color 0.3s ease;
    background: #FFFFFF;
    color: #2C2C2C;
}

.comment-form input:focus,
.comment-form textarea:focus {
    border-color: #2D5F2B;
    outline: none;
}

.comment-form .submit {
    background: #E8A849;
    color: #1a3a19;
    border: none;
    padding: 0.7rem 2rem;
    font-family: 'Montserrat', Arial, sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.comment-form .submit:hover {
    background: #F0BE6A;
}

/* ============================================
   SEARCH FORM
   ============================================ */
.search-form {
    display: flex;
    gap: 0;
}

.search-form .search-field {
    flex: 1;
    padding: 0.7rem 1rem;
    border: 2px solid #E0DDD7;
    border-right: none;
    border-radius: 5px 0 0 5px;
    font-family: 'PT Serif', Georgia, serif;
    font-size: 0.95rem;
    background: #FFFFFF;
    color: #2C2C2C;
}

.search-form .search-field:focus {
    border-color: #2D5F2B;
    outline: none;
}

.search-form .search-submit {
    background: #2D5F2B;
    color: #FFFFFF;
    border: none;
    padding: 0.7rem 1.2rem;
    font-family: 'Montserrat', Arial, sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    transition: background 0.3s ease;
}

.search-form .search-submit:hover {
    background: #3D7F3B;
}

/* ============================================
   SIDEBAR / WIDGETS
   ============================================ */
.widget {
    background: #FFFFFF;
    border: 1px solid #E0DDD7;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.widget-title {
    font-size: 1.1rem;
    padding-bottom: 0.6rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid #E8A849;
}

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

.widget li {
    padding: 0.4rem 0;
    border-bottom: 1px solid #F0EDE6;
}

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

.widget a {
    color: #3D3D3D;
    font-size: 0.9rem;
}

.widget a:hover {
    color: #2D5F2B;
}

/* ============================================
   PAGINATION
   ============================================ */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.4rem;
    margin: 2.5rem 0;
    flex-wrap: wrap;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 0.6rem;
    border-radius: 5px;
    font-family: 'Montserrat', Arial, sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    color: #2D5F2B;
    background: #FFFFFF;
    border: 2px solid #E0DDD7;
    transition: all 0.3s ease;
    text-decoration: none;
}

.pagination .page-numbers:hover {
    background: #2D5F2B;
    color: #FFFFFF;
    border-color: #2D5F2B;
}

.pagination .page-numbers.current {
    background: #2D5F2B;
    color: #FFFFFF;
    border-color: #2D5F2B;
}

.pagination .page-numbers.dots {
    border: none;
    background: transparent;
    pointer-events: none;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: #1a3a19;
    color: #C8C4BC;
    padding-top: 3rem;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-widget-area .widget {
    background: transparent;
    border: none;
    padding: 0;
    color: #C8C4BC;
}

.footer-widget-area .widget-title {
    color: #E8A849;
    border-bottom-color: rgba(255,255,255,0.15);
}

.footer-widget-area .widget a {
    color: #C8C4BC;
}

.footer-widget-area .widget a:hover {
    color: #E8A849;
}

.footer-widget-area .widget li {
    border-bottom-color: rgba(255,255,255,0.07);
}

.footer-bottom {
    text-align: center;
    padding: 1.5rem 0;
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 0.85rem;
    color: #9A9690;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-block;
    padding: 0.7rem 1.8rem;
    border-radius: 5px;
    font-family: 'Montserrat', Arial, sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    text-align: center;
}

.btn-primary {
    background: #E8A849;
    color: #1a3a19;
}

.btn-primary:hover {
    background: #F0BE6A;
    color: #1a3a19;
    transform: translateY(-2px);
}

.btn-secondary {
    background: #2D5F2B;
    color: #FFFFFF;
}

.btn-secondary:hover {
    background: #3D7F3B;
    color: #FFFFFF;
    transform: translateY(-2px);
}

/* ============================================
   BACK TO TOP
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 44px;
    height: 44px;
    background: #2D5F2B;
    color: #FFFFFF;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: none;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

.back-to-top.visible {
    display: flex;
}

.back-to-top:hover {
    background: #E8A849;
    color: #1a3a19;
    transform: translateY(-3px);
}

/* ============================================
   LAZY LOAD
   ============================================ */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.5s ease;
}

img[loading="lazy"].loaded,
img[loading="lazy"][src] {
    opacity: 1;
}

/* ============================================
   404 PAGE
   ============================================ */
.error-404 {
    text-align: center;
    padding: 4rem 0;
}

.error-404 h1 {
    font-size: 5rem;
    color: #E8A849;
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
    word-wrap: normal !important;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 992px) {
    .footer-widgets {
        grid-template-columns: 1fr 1fr;
    }
    
    .calendar-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    h1 { font-size: 2rem; }
    .hero-slide h2 { font-size: 2rem; }
}

@media (max-width: 768px) {
    .site-header .container {
        flex-wrap: wrap;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .main-navigation ul {
        display: none;
        flex-direction: column;
        width: 100%;
        padding: 1rem 0;
    }
    
    .main-navigation.toggled ul {
        display: flex;
    }
    
    .main-navigation .sub-menu {
        position: static;
        box-shadow: none;
        border: none;
        padding-left: 1rem;
        background: #F5F0E8;
    }
    
    .main-navigation li:hover > .sub-menu {
        display: none;
    }
    
    .main-navigation li.sub-open > .sub-menu {
        display: flex;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-widgets {
        grid-template-columns: 1fr;
    }
    
    .hero-slide {
        min-height: 300px;
    }
    
    .hero-slide h2 {
        font-size: 1.6rem;
    }
    
    .calendar-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .post-navigation {
        flex-direction: column;
    }
    
    h1 { font-size: 1.7rem; }
    h2 { font-size: 1.4rem; }
}

@media (max-width: 480px) {
    .calendar-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .site-title {
        font-size: 1.1rem;
    }
    
    .recipe-meta-info {
        gap: 1rem;
    }
}
