/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
}

/* Force form elements to inherit font (browsers override by default) */
input, button, textarea, select {
    font-family: inherit;
}

/* Full-height flex container */
html {
    min-height: 100%;
    background-color: #f8f9fa;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #f8f9fa;
}

/* Navbar */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #4CAF50 0%, #2E7D32 100%);
    padding: 12px 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    z-index: 1000;
    position: fixed;
    top: 0;
    width: 100%;
}

.nav-left {
    font-weight: bold;
    font-size: 22px;
    white-space: nowrap;
    color: white;
}

.nav-left a {
    color: white;
    text-decoration: none;
}

.nav-center {
    flex-grow: 1;
    display: flex;
    justify-content: center;
}

.nav-center input[type="text"] {
    width: 320px;
    padding: 10px 15px;
    border: none;
    border-radius: 24px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.nav-right {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    padding-right: 10px;
}

.nav-right a {
    margin-left: 20px;
    text-decoration: none;
    color: white;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.nav-right a:hover {
    text-decoration: underline;
    transform: translateY(-2px);
}

/* Hamburger Menu */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.hamburger-line {
    width: 100%;
    height: 3px;
    background-color: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Content */
.content {
    flex: 1;
    padding: 100px 20px 40px;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.content h1 {
    font-size: 36px;
    margin-bottom: 10px;
    color: #333;
    font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.content p {
    font-size: 18px;
    margin-bottom: 30px;
    color: #666;
}

/* Section Title */
.section-title {
    font-size: 32px;
    margin: 40px 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #4CAF50;
    color: #333;
    font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Article Cards */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.article-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

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

.article-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-bottom: 1px solid #eee;
    background: linear-gradient(45deg, #e0f7fa, #b2ebf2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00796b;
    font-size: 24px;
    font-weight: bold;
}

.article-content {
    padding: 15px;
}

.article-store {
    color: #4CAF50;
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
}

.article-title {
    font-weight: 600;
    font-size: 17px;
    margin-bottom: 8px;
    color: #333;
    height: 40px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    box-orient: vertical;
    font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    line-height: 1.4;
}

.article-price {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.price {
    font-weight: 600;
    color: #e53935;
    font-size: 16px;
}

.old-price {
    text-decoration: line-through;
    color: #999;
    font-size: 14px;
}

.discount-badge {
    background: #ff5722;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

/* Flyer Cards */
.flyers-grid-desktop {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-bottom: 40px;
}

.flyers-grid-mobile {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin-bottom: 30px;
}

.flyer-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.flyer-card-desktop:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.market-name {
    padding: 15px 15px 10px;
    font-weight: 700;
    font-size: 20px;
    color: #2E7D32;
    text-align: center;
    background-color: #b1f8b9;
    border-bottom: 1px solid #e0e0e0;
    font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    letter-spacing: 0.5px;
}

.flyer-card-mobile .market-name {
    padding: 12px 15px;
    font-size: 18px;
}

.flyer-image-container {
    width: 100%;
    padding-bottom: 141.4%;
    position: relative;
    overflow: hidden;
    background-color: #f5f5f5;
}

.flyer-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-bottom: 1px solid #eee;
    background: linear-gradient(45deg, #e8f5e9, #c8e6c9);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #388e3c;
    font-weight: bold;
}

.date-range {
    padding: 12px 15px;
    text-align: center;
    font-size: 14px;
    color: #757575;
    background-color: #c9f9c9;
    border-top: 1px solid #e0e0e0;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #4CAF50 0%, #2E7D32 100%);
    text-align: center;
    padding: 20px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    font-weight: 500;
    color: white;
    margin-top: auto;
}

body.mobile-menu-open {
    overflow: hidden !important;
}

/* Static content pages */
.page-intro {
    max-width: 760px;
    color: #53645a;
    font-size: 16px;
    line-height: 1.6;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 24px 0 40px;
}

.info-card,
.pricing-card {
    background: #ffffff;
    border: 1px solid #dfe9e2;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.06);
    padding: 22px;
}

.info-card h2,
.pricing-card h2 {
    color: #2E7D32;
    font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    font-size: 26px;
    margin-bottom: 10px;
}

.info-card p,
.info-card li {
    color: #53645a;
    font-size: 15px;
    line-height: 1.6;
}

.info-card ul,
.pricing-card ul {
    list-style: none;
    display: grid;
    gap: 10px;
}

.info-card li::before,
.pricing-card li::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 9px;
    border-radius: 50%;
    background: #4CAF50;
}

.pricing-title {
    text-align: center;
}

.pricing-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    align-items: stretch;
    margin-top: 24px;
}

.pricing-card {
    display: flex;
    flex-direction: column;
    min-height: 360px;
}

.pricing-card.featured {
    border-color: #4CAF50;
    box-shadow: 0 12px 32px rgba(46,125,50,0.14);
}

.pricing-card .price {
    color: #2E7D32;
    font-size: 28px;
    margin: 4px 0 20px;
}

.pricing-card li {
    color: #35453b;
    font-size: 15px;
}

.pricing-card li.muted {
    color: #8a968e;
}

.pricing-card li.muted::before {
    background: #cfd8d2;
}

.pricing-card button,
.pricing-card .pricing-button {
    margin-top: auto;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #4CAF50 0%, #2E7D32 100%);
    color: #ffffff;
    cursor: pointer;
    font-size: 15px;
    font-weight: 700;
    padding: 13px 16px;
    display: block;
    box-sizing: border-box;
    text-align: center;
    text-decoration: none;
}

.contact-panel {
    max-width: 680px;
}

/* Responsive */
@media (max-width: 1200px) {
    .articles-grid,
    .flyers-grid-desktop {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .articles-grid,
    .flyers-grid-desktop {
        grid-template-columns: repeat(2, 1fr);
    }

    .nav-center input[type="text"] {
        width: 200px;
    }

    .info-grid,
    .pricing-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-right {
        display: none;
    }

    .hamburger-menu {
        display: flex;
    }

    .nav-center {
        margin: 0 15px;
    }

    .nav-center input[type="text"] {
        width: 100%;
    }

    .articles-grid,
    .flyers-grid-desktop {
        grid-template-columns: 1fr;
    }

    .content {
        padding: 100px 15px 30px;
    }

    .section-title {
        font-size: 28px;
    }

    .content h1 {
        font-size: 32px;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 10px 15px;
    }

    .nav-left {
        font-size: 18px;
    }

    .content {
        padding: 90px 10px 20px;
    }

    .section-title {
        font-size: 26px;
    }

    .content h1 {
        font-size: 28px;
    }

    .market-name {
        font-size: 18px;
    }
}
