/*
Theme Name: The Organic Agro Farm
Theme URI: https://theorganicagrofarm.store
Author: The Organic Agro Farm
Author URI: https://theorganicagrofarm.store
Description: Official custom WordPress theme for The Organic Agro Farm - Organic Farming and Agro Supplies in Sylhet, Bangladesh.
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: organic-agro-farm
Tags: agriculture, organic, business, responsive, custom-logo, custom-menu
*/

/* ---------- Design tokens ---------- */
:root {
  --eco-green: #166534;
  --eco-green-dark: #0f4523;
  --leaf: #22c55e;
  --sand: #fef3c7;
  --off-white: #f8fafc;
  --ink: #14231a;
  --muted: #5b6b60;
  --border: #e2e8f0;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(22, 101, 52, 0.08);
  --container: 1180px;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--off-white);
  color: var(--ink);
  font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 {
  font-family: "Fraunces", Georgia, serif;
  line-height: 1.15;
  color: var(--eco-green-dark);
  margin: 0 0 .6em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1.1em; }
a { color: var(--eco-green); text-decoration: none; }
a:hover { color: var(--leaf); }
img { max-width: 100%; height: auto; display: block; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 22px; }
.section { padding: 76px 0; }
.section--sand { background: var(--sand); }
.section--white { background: #fff; }
.eyebrow {
  display: inline-block; text-transform: uppercase; letter-spacing: .16em;
  font-size: .74rem; font-weight: 700; color: var(--leaf); margin-bottom: 12px;
}
.lead { font-size: 1.1rem; color: var(--muted); max-width: 62ch; }
.screen-reader-text { position: absolute; left: -9999px; }

.btn {
  display: inline-block; padding: 13px 26px; border-radius: 999px;
  background: var(--eco-green); color: #fff !important; font-weight: 600;
  border: 2px solid var(--eco-green); transition: .2s ease;
}
.btn:hover { background: var(--leaf); border-color: var(--leaf); }
.btn--ghost { background: transparent; color: var(--eco-green) !important; }
.btn--ghost:hover { background: var(--eco-green); color: #fff !important; }

/* ---------- Header ---------- */
.topbar { background: var(--eco-green-dark); color: #e7f6ec; font-size: .86rem; }
.topbar .container { display: flex; flex-wrap: wrap; gap: 8px 26px; justify-content: space-between; padding-top: 9px; padding-bottom: 9px; }
.topbar a { color: #d7f5e1; }
.topbar a:hover { color: #fff; }
.topbar__meta { display: flex; flex-wrap: wrap; gap: 8px 22px; }

.site-header { background: #fff; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 50; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 16px; padding-bottom: 16px; }
.site-brand { display: flex; align-items: center; gap: 12px; }
.site-brand__mark {
  width: 44px; height: 44px; border-radius: 12px; flex: none;
  background: linear-gradient(140deg, var(--eco-green), var(--leaf));
  display: grid; place-items: center; color: #fff; font-weight: 700; font-family: "Fraunces", serif;
}
.site-title { font-family: "Fraunces", serif; font-size: 1.15rem; font-weight: 700; color: var(--eco-green-dark); line-height: 1.15; }
.site-tagline { font-size: .78rem; color: var(--muted); }

.nav-toggle { display: none; background: none; border: 1px solid var(--border); border-radius: 10px; padding: 9px 12px; font-size: 1rem; cursor: pointer; }
.main-nav ul { list-style: none; display: flex; gap: 26px; margin: 0; padding: 0; }
.main-nav a { font-weight: 600; font-size: .95rem; color: var(--ink); }
.main-nav a:hover, .main-nav .current-menu-item > a { color: var(--eco-green); }
.header-cta { display: flex; align-items: center; gap: 14px; }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .main-nav { display: none; width: 100%; }
  .main-nav.is-open { display: block; }
  .site-header .container { flex-wrap: wrap; }
  .main-nav ul { flex-direction: column; gap: 0; padding: 10px 0 4px; }
  .main-nav li { border-top: 1px solid var(--border); }
  .main-nav a { display: block; padding: 12px 2px; }
  .header-cta .btn { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(155deg, #0f4523 0%, #166534 48%, #1f7a41 100%);
  color: #eefaf1; padding: 92px 0 96px; position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: auto -120px -160px auto;
  width: 420px; height: 420px; border-radius: 50%; background: rgba(34, 197, 94, .25);
}
.hero h1 { color: #fff; max-width: 18ch; }
.hero p { color: #d6efdd; max-width: 60ch; font-size: 1.12rem; }
.hero .eyebrow { color: var(--sand); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; position: relative; z-index: 1; }
.hero__actions .btn { background: var(--sand); border-color: var(--sand); color: var(--eco-green-dark) !important; }
.hero__actions .btn:hover { background: #fff; border-color: #fff; }
.hero__actions .btn--ghost { background: transparent; color: #fff !important; border-color: rgba(255,255,255,.65); }
.hero__actions .btn--ghost:hover { background: rgba(255,255,255,.14); }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px 26px; box-shadow: var(--shadow); transition: transform .2s ease;
}
.card:hover { transform: translateY(-4px); }
.card__icon {
  width: 48px; height: 48px; border-radius: 14px; background: var(--sand);
  display: grid; place-items: center; font-size: 1.35rem; margin-bottom: 16px;
}
.card p { color: var(--muted); margin: 0; }

.info-list { list-style: none; margin: 0; padding: 0; }
.info-list li { padding: 11px 0; border-bottom: 1px dashed var(--border); color: var(--muted); }
.info-list li:last-child { border-bottom: 0; }
.info-list strong { color: var(--ink); }

.badge {
  display: inline-block; background: var(--sand); color: var(--eco-green-dark);
  border-radius: 999px; padding: 7px 16px; font-size: .82rem; font-weight: 700;
}

/* ---------- Content / posts ---------- */
.page-hero { background: var(--eco-green-dark); color: #fff; padding: 62px 0; }
.page-hero h1 { color: #fff; margin: 0; }
.page-hero p { color: #cfeedb; margin: 10px 0 0; }
.entry { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 38px; box-shadow: var(--shadow); }
.entry + .entry { margin-top: 26px; }
.entry__meta { font-size: .85rem; color: var(--muted); margin-bottom: 14px; }
.entry__thumb img { border-radius: var(--radius); margin-bottom: 22px; }
.entry blockquote { border-left: 4px solid var(--leaf); margin: 0 0 1.2em; padding-left: 18px; color: var(--muted); }
.entry table { width: 100%; border-collapse: collapse; }
.entry td, .entry th { border: 1px solid var(--border); padding: 10px; }
.pagination { margin-top: 30px; display: flex; gap: 10px; flex-wrap: wrap; }
.pagination .page-numbers { padding: 8px 14px; border-radius: 10px; background: #fff; border: 1px solid var(--border); }
.pagination .current { background: var(--eco-green); color: #fff; border-color: var(--eco-green); }

/* ---------- Forms ---------- */
.form-grid { display: grid; gap: 16px; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border);
  border-radius: 10px; font: inherit; background: #fff;
}
.field input:focus, .field textarea:focus { outline: 2px solid var(--leaf); border-color: var(--leaf); }
.notice { padding: 14px 16px; border-radius: 10px; background: #e8f8ee; border: 1px solid var(--leaf); margin-bottom: 18px; }
.notice--error { background: #fdecec; border-color: #dc2626; }

/* ---------- Footer ---------- */
.site-footer { background: var(--eco-green-dark); color: #cfe6d7; padding: 62px 0 0; margin-top: 0; }
.site-footer h3 { color: #fff; font-size: 1.05rem; margin-bottom: 16px; }
.site-footer a { color: #cfe6d7; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; gap: 34px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.business-info { list-style: none; margin: 0; padding: 0; font-size: .95rem; }
.business-info li { margin-bottom: 10px; }
.business-info strong { color: #fff; display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; }
.license-badge {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18);
  border-radius: 12px; padding: 16px 18px; margin-top: 6px;
}
.license-badge span { color: #fff; font-weight: 700; }
.footer-menu { list-style: none; margin: 0; padding: 0; }
.footer-menu li { margin-bottom: 9px; }
.site-footer__bottom {
  margin-top: 46px; border-top: 1px solid rgba(255,255,255,.14);
  padding: 20px 0; font-size: .86rem; display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between;
}

/* ---------- 404 ---------- */
.error-404 { text-align: center; padding: 100px 0; }
.error-404 .code { font-family: "Fraunces", serif; font-size: 6rem; color: var(--leaf); line-height: 1; }

/* ---------- WP core classes ---------- */
.alignleft { float: left; margin: 0 20px 16px 0; }
.alignright { float: right; margin: 0 0 16px 20px; }
.aligncenter { margin: 0 auto 16px; }
.wp-caption-text { font-size: .85rem; color: var(--muted); }
.sticky, .gallery-caption, .bypostauthor { display: block; }
