/*
Theme Name: MA Food and Milk Store
Theme URI: https://mafoodandmilkstore.store
Author: MA FOOD AND MILK STORE
Author URI: https://mafoodandmilkstore.store
Description: Official e-commerce and business WordPress theme for MA FOOD AND MILK STORE.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mafoodandmilkstore
*/

:root {
  --brand: #0e7a3d;
  --brand-dark: #0a5a2d;
  --accent: #f4a300;
  --ink: #1c2321;
  --muted: #5b6663;
  --bg: #fffdf8;
  --surface: #ffffff;
  --border: #e6e2d6;
  --radius: 12px;
  --wrap: 1140px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
}

a { color: var(--brand-dark); }
img { max-width: 100%; height: auto; }

h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .6em; }

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

.skip-link {
  position: absolute;
  left: -9999px;
}
.skip-link:focus {
  left: 12px;
  top: 12px;
  background: #fff;
  padding: 10px 16px;
  z-index: 100;
}

/* Header */
.site-topbar {
  background: var(--brand-dark);
  color: #fff;
  font-size: 14px;
}
.site-topbar a { color: #fff; text-decoration: none; }
.site-topbar .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  justify-content: space-between;
  padding-top: 8px;
  padding-bottom: 8px;
}

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 40;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 16px;
  padding-bottom: 16px;
  flex-wrap: wrap;
}
.site-branding .site-title {
  font-size: 22px;
  margin: 0;
  letter-spacing: .5px;
}
.site-branding .site-title a { color: var(--brand-dark); text-decoration: none; }
.site-branding .site-tagline { margin: 0; font-size: 13px; color: var(--muted); }

.main-navigation ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  margin: 0;
  padding: 0;
}
.main-navigation a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 15px;
  padding: 6px 2px;
  display: inline-block;
}
.main-navigation a:hover { color: var(--brand); }

.btn {
  display: inline-block;
  background: var(--brand);
  color: #fff;
  text-decoration: none;
  padding: 12px 22px;
  border-radius: var(--radius);
  font-weight: 700;
}
.btn:hover { background: var(--brand-dark); color: #fff; }
.btn-outline { background: transparent; color: var(--brand-dark); border: 2px solid var(--brand); }
.btn-outline:hover { background: var(--brand); color: #fff; }

/* Sections */
.section { padding: 64px 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-title { font-size: 30px; }
.section-lead { color: var(--muted); max-width: 720px; }

.hero {
  background: linear-gradient(135deg, #0e7a3d 0%, #0a5a2d 100%);
  color: #fff;
  padding: 84px 0;
}
.hero h1 { font-size: 42px; max-width: 780px; }
.hero p { font-size: 19px; max-width: 640px; opacity: .95; }
.hero .btn-outline { color: #fff; border-color: #fff; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }

.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.card h3 { color: var(--brand-dark); font-size: 20px; }
.card p { margin: 0; color: var(--muted); }

.info-list { list-style: none; margin: 0; padding: 0; }
.info-list li { padding: 8px 0; border-bottom: 1px dashed var(--border); }
.info-list li:last-child { border-bottom: 0; }
.info-list strong { display: inline-block; min-width: 130px; }

/* Content */
.content-area { padding: 48px 0; }
.entry { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; margin-bottom: 28px; }
.entry-title { font-size: 28px; }
.entry-title a { text-decoration: none; color: var(--ink); }
.entry-meta { color: var(--muted); font-size: 14px; margin-bottom: 16px; }
.entry-thumb { margin-bottom: 20px; border-radius: var(--radius); overflow: hidden; }

.pagination { display: flex; gap: 10px; flex-wrap: wrap; }
.pagination .page-numbers {
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  text-decoration: none;
  background: var(--surface);
}
.pagination .current { background: var(--brand); color: #fff; border-color: var(--brand); }

/* Footer */
.site-footer {
  background: #10201a;
  color: #d7e2dc;
  padding: 56px 0 24px;
  margin-top: 40px;
}
.site-footer a { color: #ffd782; }
.site-footer h4 { color: #fff; font-size: 16px; text-transform: uppercase; letter-spacing: .6px; }
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { padding: 4px 0; }
.footer-legal {
  border-top: 1px solid rgba(255, 255, 255, .15);
  margin-top: 32px;
  padding-top: 18px;
  font-size: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  justify-content: space-between;
}

.error-404 { text-align: center; padding: 90px 0; }
.error-404 h1 { font-size: 84px; color: var(--brand); margin-bottom: 0; }

@media (max-width: 860px) {
  .grid-3, .grid-2, .footer-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 32px; }
  .site-header .wrap { justify-content: center; text-align: center; }
  .main-navigation ul { justify-content: center; }
}
