:root {
  /* Mezőgazdasági: zöld + aranysárga (sablon-szerű, letisztult) */
  --bg: #f4f6f0;
  --bg-alt: linear-gradient(160deg, #e5ede4 0%, #f2ead6 48%, #e8f0e6 100%);
  --bg-alt-solid: #e9ede6;
  --text: #152117;
  --muted: #4a5642;
  --primary: #1a4d28;
  --primary-hover: #143d20;
  --primary-soft: #2d6b3c;
  --accent: #c8941e;
  --accent-hover: #d9a728;
  --accent-muted: #9a7416;
  --gold-glow: rgba(200, 148, 30, 0.38);
  --card: #fffcf7;
  --card-edge: rgba(26, 77, 40, 0.07);
  --border: #c0c9b6;
  --border-warm: #d0c49a;
  --radius: 20px;
  --radius-sm: 12px;
  --font: "DM Sans", system-ui, "Segoe UI", Roboto, sans-serif;
  --font-display: "Outfit", var(--font);
  --shadow-soft: 0 4px 30px rgba(21, 33, 23, 0.08);
  --shadow-card: 0 12px 40px rgba(26, 77, 40, 0.1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  background-image: radial-gradient(rgba(45, 107, 60, 0.06) 1px, transparent 1px);
  background-size: 24px 24px;
}

h1,
h2,
h3,
.section-kicker,
.logo-text,
.stat-value,
.cta-title {
  font-family: var(--font-display);
}

.wrap {
  width: min(1180px, calc(100% - 2rem));
  margin-inline: auto;
}

.narrow {
  width: min(820px, calc(100% - 2rem));
  margin-inline: auto;
}

/* —— Fel a tetejére (úszó gomb) —— */
.scroll-top {
  position: fixed;
  z-index: 95;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1.1rem, env(safe-area-inset-bottom));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  padding: 0;
  margin: 0;
  border: 1px solid rgba(208, 196, 154, 0.75);
  border-radius: 50%;
  cursor: pointer;
  color: #f8f1d8;
  background: linear-gradient(145deg, var(--primary) 0%, var(--primary-soft) 48%, #143d22 100%);
  box-shadow:
    0 4px 18px rgba(26, 77, 40, 0.35),
    0 1px 0 rgba(255, 255, 255, 0.12) inset;
  opacity: 0;
  visibility: hidden;
  transform: translateY(0.6rem) scale(0.92);
  pointer-events: none;
  transition:
    opacity 0.28s ease,
    transform 0.28s ease,
    visibility 0.28s ease,
    box-shadow 0.2s ease;
}

.scroll-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.scroll-top:hover {
  border-color: var(--accent);
  color: #fffef5;
  box-shadow:
    0 6px 26px rgba(200, 148, 30, 0.32),
    0 1px 0 rgba(255, 255, 255, 0.18) inset;
}

.scroll-top:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .scroll-top {
    transition: opacity 0.15s ease, visibility 0.15s ease;
  }

  .scroll-top.is-visible {
    transform: none;
  }
}

/* —— Fejléc —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(244, 246, 240, 0.92);
  border-bottom: 1px solid rgba(192, 201, 182, 0.6);
  box-shadow: 0 4px 24px rgba(21, 33, 23, 0.04);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--primary);
}

.logo-img {
  display: block;
  flex-shrink: 0;
  height: clamp(40px, 8vw, 52px);
  width: auto;
  max-width: min(160px, 38vw);
  object-fit: contain;
  object-position: left center;
}

.logo-text {
  font-weight: 800;
  font-size: clamp(0.9rem, 2.6vw, 1.08rem);
  letter-spacing: -0.03em;
  line-height: 1.2;
  max-width: min(300px, 50vw);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--card);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 20px;
  margin: 0 auto;
  background: var(--primary);
  border-radius: 1px;
  transition: transform 0.2s, opacity 0.2s;
}

.nav-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem 0.35rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.nav-main a {
  color: var(--text);
  text-decoration: none;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  transition: background 0.2s, color 0.2s;
}

.nav-main a:hover {
  background: rgba(26, 77, 40, 0.08);
  color: var(--primary);
}

.nav-archiv {
  color: var(--muted) !important;
}

.nav-archiv:hover {
  color: var(--primary) !important;
}

.nav-cta {
  background: linear-gradient(180deg, #e8c03d 0%, var(--accent) 100%) !important;
  color: #142016 !important;
  font-weight: 700 !important;
  margin-left: 0.35rem;
  box-shadow: 0 2px 12px var(--gold-glow);
}

.nav-cta:hover {
  filter: brightness(1.05);
}

@media (max-width: 960px) {
  .nav-toggle {
    display: flex;
  }

  .nav-drawer {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(320px, 88vw);
    max-height: 100vh;
    padding: 5.5rem 1.25rem 2rem;
    background: var(--card);
    box-shadow: -12px 0 40px rgba(0, 0, 0, 0.12);
    transform: translateX(100%);
    transition: transform 0.28s ease;
    z-index: 99;
    overflow-y: auto;
  }

  .nav-drawer.is-open {
    transform: translateX(0);
  }

  .nav-main {
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
  }

  .nav-main a {
    border-radius: var(--radius-sm);
  }

  .nav-cta {
    margin-left: 0;
    text-align: center;
  }
}

.nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 97;
  background: rgba(21, 33, 23, 0.5);
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
}

body.nav-open .nav-backdrop {
  display: block;
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: min(78vh, 720px);
  display: flex;
  align-items: flex-end;
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(2.5rem, 6vw, 4rem);
  overflow: hidden;
}

/* Hero háttér: több kép, lásd site.js (váltás) */
.hero-slider {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--bg-alt-solid);
}

.hero-slide {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0;
  transition: opacity 1.15s ease-in-out;
  pointer-events: none;
}

.hero-slide.is-active {
  z-index: 1;
  opacity: 1;
}

.hero-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide {
    transition: opacity 0.01s;
  }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    105deg,
    rgba(18, 35, 22, 0.92) 0%,
    rgba(26, 48, 30, 0.55) 45%,
    rgba(40, 62, 38, 0.35) 100%
  );
}

.hero-grid {
  position: relative;
  z-index: 3;
  width: 100%;
}

.hero-content {
  max-width: 38rem;
  color: #fff;
  margin-left: clamp(0.35rem, 2.2vw, 1.5rem);
}

.hero-kicker {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 600;
  margin: 0 0 0.85rem;
  color: #f3e4a8;
}

.hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(2.1rem, 5.5vw, 3.55rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  text-shadow:
    0 3px 28px rgba(0, 0, 0, 0.45),
    0 0 48px rgba(200, 148, 30, 0.12);
}

.hero-lead {
  margin: 0;
  max-width: 36ch;
  opacity: 0.94;
  font-size: 1.14rem;
  line-height: 1.55;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.72rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform 0.15s, box-shadow 0.2s, filter 0.2s;
}

.btn:active {
  transform: scale(0.98);
}

.btn-lg {
  padding: 0.9rem 1.85rem;
  font-size: 1rem;
}

.btn-primary {
  background: linear-gradient(180deg, #e8c03d 0%, var(--accent) 100%);
  color: #142016;
  box-shadow: 0 4px 20px var(--gold-glow);
}

.btn-primary:hover {
  background: linear-gradient(180deg, #f0cc4a 0%, var(--accent-hover) 100%);
  box-shadow: 0 6px 24px rgba(200, 148, 30, 0.45);
}

.btn-ghost {
  border-color: rgba(255, 248, 220, 0.55);
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.btn-ghost:hover {
  background: rgba(243, 228, 168, 0.14);
  border-color: rgba(243, 228, 168, 0.55);
}

/* —— Stat sáv —— */
.stats-strip {
  position: relative;
  z-index: 3;
  margin-top: -2.5rem;
  margin-bottom: 0;
}

.stats-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  background: var(--card);
  border-radius: var(--radius);
  padding: clamp(1.25rem, 3vw, 2rem);
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(208, 196, 154, 0.55);
}

.stat-item {
  text-align: center;
  padding: 0.35rem;
}

.stat-value {
  display: block;
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.02em;
}

.stat-label {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted);
  line-height: 1.35;
}

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

@media (max-width: 480px) {
  .stats-inner {
    grid-template-columns: 1fr;
  }
}

/* —— Szekciók —— */
.section {
  padding: clamp(3.5rem, 7vw, 5.5rem) 0;
}

.section-alt {
  background-color: var(--bg-alt-solid);
  background-image: var(--bg-alt);
  background-size: 100% 100%;
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
}

.section-kicker {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-muted);
  margin: 0 0 0.5rem;
}

.section-kicker.light {
  color: #f5e6b0;
}

.section-head h2 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.02em;
}

.section-lead {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.grid-2 {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 880px) {
  .grid-2 {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.about-grid .about-prose {
  padding-top: 0.25rem;
}

.prose-large {
  font-size: 1.09rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.65rem;
  box-shadow: var(--shadow-soft);
}

.card-facts h3 {
  margin-top: 0;
}

.facts h3 {
  color: var(--primary);
}

.fact-list {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}

.fact-list dt {
  font-weight: 700;
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.55rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.fact-list dt:first-child {
  margin-top: 0;
}

.fact-list dd {
  margin: 0;
  font-weight: 500;
}

.activity-bullets {
  margin-top: 1rem;
  padding-top: 0.15rem;
}

/* —— Tevékenység kártyák —— */
.cards-services {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .cards-services {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .cards-services {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card-service {
  position: relative;
  padding-top: 2.75rem;
  overflow: hidden;
  transition:
    transform 0.2s,
    box-shadow 0.25s;
}

a.card-service {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

a.card-service:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

/* Teljes szélességű felső sáv: a szülő overflow + a .card border-radius levágja a sarkokat */
.card-service::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--primary-soft) 100%);
  opacity: 0.88;
}

.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
  border-color: var(--border-warm);
}

.service-num {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
  color: rgba(26, 77, 40, 0.09);
  user-select: none;
}

.card-service h3 {
  margin: 0 0 0.65rem;
  font-size: 1.15rem;
  font-weight: 700;
  padding-right: 3rem;
  color: var(--text);
}

a.card-service:hover h3,
a.card-service:focus-visible h3 {
  color: var(--primary-soft);
}

.service-summary {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.98rem;
}

.more {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--accent-muted);
  text-decoration: none;
}

a.card-service:hover .more,
a.card-service:focus-visible .more {
  color: var(--primary);
}

/* —— CTA sáv —— */
.section-cta {
  padding: clamp(2.5rem, 5vw, 3.5rem) 0;
  background: linear-gradient(125deg, #1a3d24 0%, #234d2f 42%, #1e351f 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.section-cta::before {
  content: "";
  position: absolute;
  right: -20%;
  top: -40%;
  width: 50%;
  height: 180%;
  background: radial-gradient(circle, rgba(200, 148, 30, 0.15) 0%, transparent 62%);
  pointer-events: none;
}

.cta-inner {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.cta-copy {
  flex: 1;
  min-width: min(100%, 280px);
}

.cta-title {
  margin: 0;
  font-size: clamp(1.2rem, 2.5vw, 1.55rem);
  font-weight: 600;
  line-height: 1.35;
  max-width: 34ch;
}

/* —— Hírek —— */
.news-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 800px) {
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.news-item time {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-muted);
  margin-bottom: 0.35rem;
}

.news-item h3 {
  margin: 0 0 0.65rem;
  font-size: 1.12rem;
  font-family: var(--font-display);
}

/* —— Kapcsolat —— */
.section-contact {
  padding-bottom: clamp(4rem, 8vw, 6rem);
}

.contact-grid {
  align-items: stretch;
}

.contact-grid > .contact-card,
.contact-grid > .map-card {
  min-height: 0;
}

@media (min-width: 880px) {
  .contact-grid > .contact-card,
  .contact-grid > .map-card {
    height: 100%;
  }

  .contact-grid > .map-card {
    display: flex;
    flex-direction: column;
  }

  .contact-grid .map-embed-wrap {
    flex: 1 1 0;
    min-height: 200px;
    aspect-ratio: auto;
    max-height: none;
  }
}

.contact-company {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--primary);
  margin: 0 0 1rem;
}

.contact-lines {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}

.contact-lines li {
  margin-bottom: 0.45rem;
}

.contact-lines span {
  color: var(--muted);
  display: inline-block;
  min-width: 8.75rem;
  font-size: 0.92rem;
}

.contact-lines a {
  color: var(--primary);
  font-weight: 600;
}

.map-embed-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  max-height: 380px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border-warm);
  box-shadow: var(--shadow-soft);
  background: var(--bg-alt-solid);
}

.map-embed-wrap iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.map-osm-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.65rem;
  margin: 0.65rem 0 0;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.45;
}

.map-osm-meta > a {
  color: var(--primary-soft);
  font-weight: 600;
}

.map-osm-meta .map-osm-copy a {
  color: var(--muted);
  font-weight: 400;
}

.map-osm-meta a:hover {
  color: var(--accent-muted);
}

.map-card h3 {
  margin-top: 0;
  font-family: var(--font-display);
}

/* —— Lábléc —— */
.site-footer {
  background: linear-gradient(180deg, #152818 0%, #0f1d12 100%);
  color: #dce5d8;
  padding: 3rem 0 0;
  border-top: 4px solid var(--accent);
}

.footer-grid {
  display: grid;
  gap: 2rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

@media (min-width: 720px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

.footer-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  margin: 0 0 0.35rem;
  color: #fff;
}

.footer-tag {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(220, 229, 216, 0.75);
  line-height: 1.4;
}

.footer-heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #f0d878;
  margin: 0 0 0.85rem;
}

.footer-nav ul,
.footer-contact p {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.92rem;
  line-height: 1.6;
}

.footer-nav li {
  margin-bottom: 0.35rem;
}

.footer-nav a,
.footer-contact a {
  color: #c8dcc6;
  text-decoration: none;
}

.footer-nav a:hover,
.footer-contact a:hover {
  color: #f5e6a8;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 1.25rem 0 1.75rem;
  font-size: 0.82rem;
  color: rgba(220, 229, 216, 0.55);
}

.footer-bottom a {
  color: #d9c878;
}

.prose {
  margin-bottom: 1rem;
}

.prose:last-child {
  margin-bottom: 0;
}

.prose strong {
  color: var(--text);
}

.prose a {
  color: var(--primary-soft);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

.prose a:hover {
  color: var(--accent-muted);
}

.prose .prose-left {
  margin: 0 0 0.45rem;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 0.9rem;
}

.map-img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.prose-block {
  padding: 2rem;
}

.subpage .site-header {
  position: relative;
}

/* —— Admin —— */
.admin-body {
  background: #e8ede5;
  margin: 0;
  font-family: var(--font);
}

.admin-wrap {
  width: min(900px, calc(100% - 2rem));
  margin: 2rem auto;
}

.admin-card {
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  border: 1px solid var(--border);
  margin-bottom: 1rem;
}

.admin-card h1,
.admin-card h2 {
  margin-top: 0;
  color: var(--primary);
}

.admin-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.admin-nav a {
  color: var(--primary);
  font-weight: 600;
}

label.admin-label {
  display: block;
  font-weight: 600;
  margin: 0.75rem 0 0.25rem;
}

input[type="text"],
input[type="password"],
input[type="date"],
textarea {
  width: 100%;
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

.admin-btn {
  margin-top: 1rem;
  padding: 0.55rem 1.2rem;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
}

.admin-btn:hover {
  background: var(--primary-hover);
}

.admin-btn-danger {
  background: #8b2942;
}

.msg-ok {
  background: #dce8d4;
  border: 1px solid #a8c49a;
  color: #143018;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
}

table.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

table.admin-table th,
table.admin-table td {
  border: 1px solid var(--border);
  padding: 0.45rem 0.6rem;
  text-align: left;
  vertical-align: top;
}
