/* ===========================================================================
   CSALOMON – modern green/white agro theme
   =========================================================================== */
:root {
  --green-900: #14361f;
  --green-800: #1c4a2a;
  --green-700: #226135;
  --green-600: #2e7d43;
  --green-500: #3c9d57;
  --green-400: #5bbd76;
  --green-300: #8fd6a2;
  --green-100: #e3f3e8;
  --green-50:  #f1f9f3;
  --lime:      #c4e84a;
  --amber:     #f4b942;
  --ink:       #1b2620;
  --muted:     #5d6b62;
  --line:      #e2ebe4;
  --white:     #ffffff;
  --bg:        #f7faf6;
  --shadow-sm: 0 1px 2px rgba(20,54,31,.06), 0 1px 3px rgba(20,54,31,.08);
  --shadow:    0 6px 18px rgba(20,54,31,.08), 0 2px 6px rgba(20,54,31,.06);
  --shadow-lg: 0 24px 48px rgba(20,54,31,.16);
  --radius:    16px;
  --radius-sm: 10px;
  --wrap: 1180px;
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--green-700); text-decoration: none; }
a:hover { color: var(--green-500); }
h1, h2, h3, h4 { line-height: 1.2; color: var(--green-900); font-weight: 800; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1rem; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.section { padding: 72px 0; }
.section--tight { padding: 44px 0; }
.muted { color: var(--muted); }
.center { text-align: center; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .8rem 1.5rem; border-radius: 999px; font-weight: 700;
  border: 0; cursor: pointer; transition: .2s; font-size: .98rem;
}
.btn--primary { background: linear-gradient(135deg, var(--green-600), var(--green-500)); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { color:#fff; transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--ghost { background: var(--white); color: var(--green-700); border: 1.5px solid var(--line); }
.btn--ghost:hover { border-color: var(--green-400); color: var(--green-700); }
.btn--amber { background: linear-gradient(135deg, #f6c453, var(--amber)); color: #4a3500; }
.btn--lg { padding: 1rem 1.9rem; font-size: 1.05rem; }

/* ---------- top bar / header ---------- */
.topbar { background: var(--green-900); color: #cfe6d5; font-size: .85rem; }
.topbar .wrap { display: flex; gap: 1.5rem; justify-content: flex-end; padding-top: 8px; padding-bottom: 8px; flex-wrap: wrap; }
.topbar a { color: #d8eede; }
.topbar a:hover { color: #fff; }

.header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header__inner { display: flex; align-items: center; gap: 1.5rem; min-height: 74px; }
.brand { display: flex; align-items: center; gap: .7rem; font-weight: 900; color: var(--green-800); font-size: 1.35rem; letter-spacing: -.02em; }
.brand__mark {
  width: 40px; height: 40px; border-radius: 12px; flex: none;
  background: linear-gradient(135deg, var(--green-600), var(--green-400));
  display: grid; place-items: center; color: #fff; box-shadow: var(--shadow-sm);
}
.brand small { display: block; font-size: .62rem; letter-spacing: .22em; color: var(--green-500); font-weight: 700; }

/* hamburger button (always visible, opens the side drawer) */
.menu-toggle {
  margin-left: auto; display: inline-flex; align-items: center; gap: .6rem;
  background: var(--green-50); border: 1px solid var(--line); border-radius: 12px;
  padding: .6rem 1rem; font-size: .9rem; font-weight: 700; cursor: pointer;
  color: var(--green-700); font-family: inherit;
}
.menu-toggle:hover { background: var(--green-100); }
.menu-toggle svg { display: block; }
.menu-toggle .label { letter-spacing: .02em; }

/* off-canvas side drawer */
.drawer-backdrop {
  position: fixed; inset: 0; background: rgba(20,54,31,.45); backdrop-filter: blur(2px);
  opacity: 0; visibility: hidden; transition: opacity .25s; z-index: 90;
}
.drawer-backdrop.open { opacity: 1; visibility: visible; }
.drawer {
  position: fixed; top: 0; right: 0; height: 100%; width: 340px; max-width: 86vw;
  background: var(--white); box-shadow: var(--shadow-lg); z-index: 95;
  transform: translateX(100%); transition: transform .28s cubic-bezier(.4,0,.2,1);
  display: flex; flex-direction: column; overflow-y: auto;
}
.drawer.open { transform: translateX(0); }
.drawer__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 22px; border-bottom: 1px solid var(--line);
  background: var(--green-900); color: #fff; position: sticky; top: 0;
}
.drawer__head .brand { color: #fff; font-size: 1.2rem; }
.drawer__head .brand small { color: var(--green-300); }
.drawer__close {
  background: rgba(255,255,255,.12); border: 0; color: #fff; width: 40px; height: 40px;
  border-radius: 10px; font-size: 1.3rem; cursor: pointer; line-height: 1;
}
.drawer__close:hover { background: rgba(255,255,255,.22); }
.drawer__nav { display: flex; flex-direction: column; padding: 14px; gap: 2px; }
.drawer__nav a {
  display: flex; align-items: center; gap: .7rem; padding: .85rem 1rem; border-radius: 10px;
  font-size: 1rem; font-weight: 600; color: var(--ink);
}
.drawer__nav a:hover { background: var(--green-50); color: var(--green-700); }
.drawer__nav a.active { background: var(--green-100); color: var(--green-700); }
.drawer__nav a.highlight { background: var(--amber); color: #4a3500; }
.drawer__nav a.highlight:hover { filter: brightness(1.04); }
.drawer__foot { margin-top: auto; padding: 20px 22px; border-top: 1px solid var(--line); font-size: .88rem; color: var(--muted); }
.drawer__foot a { display: block; margin-top: .3rem; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; background: radial-gradient(1200px 500px at 80% -10%, var(--green-100), transparent 60%), var(--bg); }
.hero__inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding: 86px 0; }
.hero__eyebrow { display: inline-flex; align-items: center; gap: .5rem; background: var(--green-100); color: var(--green-700); font-weight: 700; font-size: .8rem; padding: .4rem .9rem; border-radius: 999px; letter-spacing: .03em; }
.hero h1 { margin-top: 1rem; }
.hero p.lead { font-size: 1.18rem; color: var(--muted); max-width: 38ch; }
.hero__cta { display: flex; gap: 1rem; margin-top: 1.8rem; flex-wrap: wrap; }
.hero__art { position: relative; }
.hero__card {
  background: var(--white); border-radius: 24px; padding: 28px; box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
}
.hero__leaf { position: absolute; inset: -40px -40px auto auto; width: 220px; height: 220px; background: radial-gradient(circle, var(--lime), transparent 70%); opacity: .5; filter: blur(8px); z-index: -1; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.stat { background: var(--green-50); border-radius: var(--radius-sm); padding: 18px; text-align: center; }
.stat b { display: block; font-size: 1.9rem; color: var(--green-700); font-weight: 900; }
.stat span { font-size: .82rem; color: var(--muted); }

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

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow-sm); transition: .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--green-300); }
.card__icon { width: 52px; height: 52px; border-radius: 14px; background: var(--green-100); color: var(--green-700); display: grid; place-items: center; margin-bottom: 14px; }
.card h3 { margin-bottom: .35rem; }
.card p { color: var(--muted); margin: 0; font-size: .95rem; }

.section-head { text-align: center; max-width: 60ch; margin: 0 auto 44px; }
.section-head .eyebrow { color: var(--green-500); font-weight: 800; letter-spacing: .12em; text-transform: uppercase; font-size: .78rem; }
.section-head p { color: var(--muted); }

/* ---------- pest catalogue ---------- */
.catalog-tabs {
  display: flex; gap: 4px; margin-bottom: 1.6rem;
  border-bottom: 2px solid var(--line);
  padding-bottom: 0;
}
.catalog-tab {
  padding: .55rem 1.2rem; font-weight: 700; font-size: .9rem;
  color: var(--muted); text-decoration: none;
  border-radius: 8px 8px 0 0;
  border: 1.5px solid transparent; border-bottom: none;
  margin-bottom: -2px;
  transition: color .15s, background .15s;
}
.catalog-tab:hover { color: var(--green-700); background: var(--green-50); }
.catalog-tab--active {
  color: var(--green-800); background: var(--white);
  border-color: var(--line); border-bottom-color: var(--white);
}

.catalog-layout { display: grid; grid-template-columns: 270px 1fr; gap: 32px; align-items: start; }
.filters { position: sticky; top: 92px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); }
.filters h4 { text-transform: uppercase; font-size: .72rem; letter-spacing: .1em; color: var(--muted); margin: 1.2rem 0 .5rem; }
.filters h4:first-child { margin-top: 0; }
.filter-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 2px; }
.filter-list a { display: flex; justify-content: space-between; padding: .4rem .6rem; border-radius: 8px; font-size: .9rem; color: var(--ink); }
.filter-list a:hover { background: var(--green-50); }
.filter-list a.active { background: var(--green-600); color: #fff; }
.filter-list a.active .pill { background: rgba(255,255,255,.25); color: #fff; }
.pill { background: var(--green-100); color: var(--green-700); border-radius: 999px; font-size: .72rem; padding: .05rem .5rem; font-weight: 700; }

.search-box { display: flex; gap: .5rem; margin-bottom: 22px; }
.search-box input { flex: 1; padding: .85rem 1.1rem; border: 1.5px solid var(--line); border-radius: 999px; font-size: 1rem; font-family: inherit; }
.search-box input:focus { outline: none; border-color: var(--green-400); box-shadow: 0 0 0 4px var(--green-100); }

.pest-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.pest-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: .2s; display: flex; flex-direction: column; }
.pest-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--green-300); }
.pest-card__img { aspect-ratio: 4/3; background: var(--green-50); display: grid; place-items: center; overflow: hidden; }
.pest-card__img img { width: 100%; height: 100%; object-fit: cover; }
.pest-card__body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.pest-card__body h3 { font-size: 1rem; font-style: italic; color: var(--green-800); }
.pest-card__codes { display: flex; flex-wrap: wrap; gap: 4px; margin-top: auto; }
.code-tag { font-size: .68rem; font-weight: 800; background: var(--green-100); color: var(--green-700); padding: .15rem .5rem; border-radius: 6px; letter-spacing: .03em; }
.order-tag { font-size: .72rem; color: var(--muted); }

.toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; flex-wrap: wrap; gap: 10px; }
.toolbar .count { color: var(--muted); font-size: .92rem; }

/* ---------- pest detail ---------- */
.detail { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: start; }
.detail__media { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow-sm); }
.detail__aside { position: sticky; top: 92px; }
.info-box { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); }
.breadcrumb { font-size: .85rem; color: var(--muted); margin-bottom: 1.2rem; }
.breadcrumb a { color: var(--green-600); }
.kv { display: flex; flex-direction: column; gap: .9rem; margin: 1.2rem 0; }
.kv > div { display: flex; justify-content: space-between; gap: 1rem; padding-bottom: .9rem; border-bottom: 1px dashed var(--line); }
.kv b { color: var(--green-800); }

/* ---------- prose (narrative pages) ---------- */
.prose { max-width: none; margin: 0; font-size: 1.04rem; }
.prose img { display: block; margin: 1.2rem auto; border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); }
.prose table { border-collapse: collapse; width: 100%; margin: 1.4rem 0; font-size: .95rem; }
.prose td, .prose th { border: 0; padding: .6rem .8rem; vertical-align: top; }
.prose h1, .prose h2, .prose h3, .prose h4 { margin-top: 1.6em; }
.prose h1 { font-size: 1.6rem; }
.prose h2 { font-size: 1.35rem; }
.prose h3 { font-size: 1.15rem; }
.prose h4 { font-size: 1.02rem; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose dl { margin: 1rem 0; }
.prose dt { font-weight: 700; color: var(--green-800); }
/* in-page jump targets clear the sticky header */
.prose [id] { scroll-margin-top: 96px; }

/* PDF letöltő chip gomb */
:root { --ic-download: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'/%3E%3Cpath d='M7 10l5 5 5-5'/%3E%3Cpath d='M12 15V3'/%3E%3C/svg%3E"); }

.pdf-btn {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .28rem .7rem .28rem .45rem;
  margin: .2rem .25rem .2rem 0;
  border-radius: 6px;
  background: var(--green-50, #f0faf3);
  color: var(--green-700) !important;
  font-weight: 600; font-size: .78rem; letter-spacing: .02em;
  text-decoration: none !important;
  border: 1.5px solid var(--green-300, #6fcf97);
  transition: background .15s, border-color .15s, color .15s;
  white-space: nowrap;
}
.pdf-btn:hover {
  background: var(--green-600);
  border-color: var(--green-600);
  color: #fff !important;
}
.pdf-btn::before {
  content: ""; width: 13px; height: 13px; flex: none;
  background: currentColor;
  -webkit-mask: var(--ic-download) center/contain no-repeat;
  mask: var(--ic-download) center/contain no-repeat;
}

/* modern YouTube video button (fallback when no video ID is extractable) */
.yt-btn {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .65rem 1.2rem; margin: .5rem .4rem .5rem 0; border-radius: 999px;
  background: #ff0033; color: #fff !important; font-weight: 700; font-size: .95rem;
  text-decoration: none !important; box-shadow: var(--shadow-sm); transition: .2s;
}
.yt-btn:hover { background: #e60029; transform: translateY(-2px); box-shadow: var(--shadow); color: #fff !important; }
.yt-btn::before {
  content: ""; width: 22px; height: 22px; flex: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M23.5 6.2a3 3 0 0 0-2.1-2.1C19.5 3.6 12 3.6 12 3.6s-7.5 0-9.4.5A3 3 0 0 0 .5 6.2 31 31 0 0 0 0 12a31 31 0 0 0 .5 5.8 3 3 0 0 0 2.1 2.1c1.9.5 9.4.5 9.4.5s7.5 0 9.4-.5a3 3 0 0 0 2.1-2.1A31 31 0 0 0 24 12a31 31 0 0 0-.5-5.8zM9.6 15.6V8.4l6.3 3.6-6.3 3.6z'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* YouTube thumbnail preview card */
.yt-card {
  width: 100%; max-width: 640px; margin: 1.4rem auto;
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); background: #000;
}
.yt-card a { display: block; text-decoration: none !important; color: inherit; }
.yt-card__thumb {
  position: relative; aspect-ratio: 16/9; overflow: hidden; background: #111;
}
.yt-card__thumb img {
  width: 100%; height: 100%; object-fit: cover;
  display: block; margin: 0 !important;
  transition: transform .3s, opacity .3s; border-radius: 0 !important;
}
.yt-card a:hover .yt-card__thumb img { transform: scale(1.04); opacity: .85; }
.yt-card__play {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: rgba(0,0,0,.25); transition: background .2s;
}
.yt-card a:hover .yt-card__play { background: rgba(0,0,0,.12); }
.yt-card__play::before {
  content: '';
  width: 68px; height: 48px; border-radius: 12px;
  background: #ff0000 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpolygon points='5,3 19,12 5,21'/%3E%3C/svg%3E") center/32px no-repeat;
  box-shadow: 0 4px 16px rgba(0,0,0,.4);
  transition: transform .2s;
}
.yt-card a:hover .yt-card__play::before { transform: scale(1.08); }
.yt-card__label {
  padding: 12px 18px; background: #0f0f0f; color: #fff;
  font-size: .9rem; font-weight: 600; display: flex; align-items: center; gap: 8px;
}
.yt-card__label::before {
  content: '';
  width: 20px; height: 14px; border-radius: 4px; flex: none;
  background: #ff0000 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpolygon points='5,3 19,12 5,21'/%3E%3C/svg%3E") center/12px no-repeat;
}

/* szakcikkeink-style TOC list */
.article-toc { list-style: none; padding: 0; margin: 1rem 0 1.4rem; display: flex; flex-direction: column; gap: 3px; }
.article-toc li a {
  display: flex; align-items: center; gap: .7rem;
  padding: .55rem 1rem; border-radius: 8px; font-weight: 600;
  color: var(--green-800); border-left: 3px solid var(--green-400);
  background: var(--green-50); text-decoration: none;
  transition: background .15s, border-color .15s;
}
.article-toc li a:hover { background: var(--green-100); border-color: var(--green-600); color: var(--green-900); }

.page-hero { background: linear-gradient(135deg, var(--green-700), var(--green-500)); color: #fff; padding: 60px 0; }
.page-hero h1 { color: #fff; }
.page-hero .breadcrumb { color: rgba(255,255,255,.8); }
.page-hero .breadcrumb a { color: #fff; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.contact-item { display: flex; gap: 14px; align-items: flex-start; padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact-item .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--green-100); color: var(--green-700); display: grid; place-items: center; flex: none; }

/* ---------- callout / webshop ---------- */
.callout { background: linear-gradient(135deg, var(--green-700), var(--green-600)); color: #fff; border-radius: 28px; padding: 56px; text-align: center; box-shadow: var(--shadow-lg); }
.callout h2 { color: #fff; }
.callout p { color: rgba(255,255,255,.9); max-width: 50ch; margin: 0 auto 1.6rem; }

/* ---------- novenykulturak-szerint képgrid ---------- */
.noveny-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 2.4rem; }
.noveny-card { display: block; border-radius: 10px; overflow: hidden; border: 2px solid transparent; transition: border-color .15s, transform .15s; }
.noveny-card:hover { border-color: var(--green-500); transform: translateY(-2px); }
.noveny-card img { width: 100%; height: auto; display: block; }
@media (max-width: 620px) { .noveny-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- quicknav (csapdatipusaink gyors gombok) ---------- */
.quicknav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 2rem; padding: 1.1rem 1.2rem; background: var(--green-50, #f2faf5); border-radius: 12px; border: 1px solid var(--green-200, #b6e2c4); }
.quicknav__btn { display: inline-flex; align-items: center; gap: .4rem; padding: .38rem .85rem; border-radius: 20px; background: #fff; border: 1.5px solid var(--green-300, #6fcf97); color: var(--green-800) !important; font-size: .82rem; font-weight: 600; white-space: nowrap; transition: background .15s, border-color .15s, color .15s; }
.quicknav__btn:hover { background: var(--green-600); border-color: var(--green-600); color: #fff !important; }
.quicknav__btn:hover .quicknav__code { color: rgba(255,255,255,.8); }
.quicknav__btn--accent { background: var(--green-700); border-color: var(--green-700); color: #fff !important; }
.quicknav__btn--accent:hover { background: var(--green-800); border-color: var(--green-800); }
.quicknav__code { font-size: .72rem; color: var(--green-500); font-weight: 700; letter-spacing: .02em; }

/* ---------- footer ---------- */
.footer { background: var(--green-900); color: #b9d3c1; padding: 56px 0 28px; margin-top: 60px; }
.footer a { color: #d8eede; }
.footer a:hover { color: #fff; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; margin-bottom: 36px; }
.footer h4 { color: #fff; font-size: .95rem; margin-bottom: 1rem; }
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .5rem; font-size: .9rem; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 20px; font-size: .82rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero__inner, .detail, .contact-grid { grid-template-columns: 1fr; }
  .catalog-layout { grid-template-columns: 1fr; }
  .filters { position: static; }
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .menu-toggle .label { display: none; }
}
@media (max-width: 620px) {
  .grid--3, .grid--4, .grid--2, .footer__grid, .stats { grid-template-columns: 1fr; }
  .section { padding: 48px 0; }
  .callout { padding: 36px 24px; }
}
