/* ═══════════════════════════════════════════════
   TOLNATEXT — EGYSÉGES STÍLUSLAP
   Tartalmazza az összes oldal közös CSS-ét
   ═══════════════════════════════════════════════ */

/* ── Alapok ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Barlow', sans-serif;
  background: #fff;
  color: #1A1A18;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
table { border-collapse: collapse; }

/* ── Színek ── */
:root {
  --green: #2EB830;
  --green-hover: #26A228;
  --green-dark: #1E4A2C;
  --green-deep: #243824;
  --dark: #1A1A18;
  --dark-footer: #1A2B1E;
  --gray-50: #F6F6F4;
  --gray-100: #F5F5F3;
  --gray-200: #ECECEA;
  --gray-300: #E4E4E0;
  --gray-400: #DEDEDA;
  --gray-500: #B0B0AC;
  --gray-600: #9E9B98;
  --gray-700: #8A8A87;
  --gray-800: #6B6B69;
  --text: #1A1A18;
  --text-light: #3A3A38;
  --text-muted: #4A4A48;
  --white: #fff;
  --white-05: rgba(255,255,255,0.05);
  --white-07: rgba(255,255,255,0.07);
  --white-08: rgba(255,255,255,0.08);
  --white-10: rgba(255,255,255,0.10);
  --white-22: rgba(255,255,255,0.22);
  --white-25: rgba(255,255,255,0.25);
  --white-28: rgba(255,255,255,0.28);
  --white-30: rgba(255,255,255,0.30);
  --white-32: rgba(255,255,255,0.32);
  --white-34: rgba(255,255,255,0.34);
  --white-40: rgba(255,255,255,0.40);
  --white-45: rgba(255,255,255,0.45);
  --white-50: rgba(255,255,255,0.50);
  --white-55: rgba(255,255,255,0.55);
  --white-60: rgba(255,255,255,0.60);
  --white-65: rgba(255,255,255,0.65);
  --white-70: rgba(255,255,255,0.70);
  --white-85: rgba(255,255,255,0.85);
}

/* ── Tipográfia ── */
h1, h2, h3, h4 {
  font-family: 'Barlow Semi Condensed', sans-serif;
  font-weight: 800;
}

/* ── Konténer ── */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}
.container-narrow {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Navigáció ── */
#site-nav {
  transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}
#site-nav[data-scrolled] {
  background: rgba(255,255,255,0.97) !important;
  border-color: #E4E4E0 !important;
  box-shadow: 0 1px 0 rgba(0,0,0,0.06);
}
.nav-link { transition: color 0.2s; }
#site-nav[data-scrolled] .nav-link { color: #1A1A18 !important; }
.nav-link:hover { color: #2EB830 !important; }
.ham-bar { transition: background 0.2s; }
#site-nav[data-scrolled] .ham-bar { background: #1A1A18 !important; }

.nav-desktop { display: flex; align-items: center; gap: 30px; }
.nav-mobile-btn { display: none; }

/* ── Mobil menü ── */
#mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 199;
  background: #1A1A18;
  flex-direction: column;
  padding: 84px 28px 48px;
  overflow-y: auto;
}
#mobile-menu.open { display: flex; }
#mobile-menu a {
  display: block;
  font-family: 'Barlow Semi Condensed', sans-serif;
  font-size: 34px;
  font-weight: 700;
  color: #fff;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
#mobile-menu a.active { color: #2EB830; }
#mobile-menu .mobile-cta {
  display: inline-flex;
  align-items: center;
  height: 52px;
  padding: 0 32px;
  background: #2EB830;
  color: #fff;
  font-family: 'Barlow', sans-serif;
  font-size: 16px;
  font-weight: 600;
  border-radius: 2px;
  margin-top: 32px;
  align-self: flex-start;
}

/* ── Gombok ── */
.btn-primary {
  transition: background 0.2s ease;
  cursor: pointer;
}
.btn-primary:hover { background: #26A228 !important; }
.btn-ghost {
  transition: all 0.2s;
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.1) !important;
  border-color: rgba(255,255,255,0.55) !important;
}
.btn-outline {
  transition: all 0.2s;
}
.btn-outline:hover {
  border-color: #2EB830 !important;
  color: #2EB830 !important;
  background: rgba(46,184,48,0.05) !important;
}

/* ── Nyelvváltó ── */
.lang-btn { transition: color 0.2s; cursor: pointer; }
.lang-btn:hover { color: #1A1A18 !important; }
.lang-btn[data-active] { color: #2EB830 !important; }
.lang-row-m .lang-btn { color: rgba(255,255,255,0.5) !important; }
.lang-row-m .lang-btn:hover { color: #fff !important; }
.lang-row-m .lang-btn[data-active] { color: #2EB830 !important; }

/* ── Lábléc ── */
footer {
  background: #1A2B1E;
  padding: 72px 0 0;
  color: rgba(255,255,255,0.7);
}
.footer-cols {
  display: grid;
  grid-template-columns: 2fr 1fr 1.2fr 1.4fr;
  gap: 48px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}
.foot-link { transition: color 0.2s; }
.foot-link:hover { color: #2EB830 !important; }
.footer-bottom {
  max-width: 1240px;
  margin: 64px auto 0;
  padding: 20px 24px;
  border-top: 1px solid rgba(255,255,255,0.07);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  text-align: center;
}

/* ── Oldal fejléc (hero banner) ── */
.page-header {
  padding: 168px 24px 64px;
  background: #1A1A18;
  position: relative;
  overflow: hidden;
}
.page-header .breadcrumb {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  margin-bottom: 24px;
}
.page-header .breadcrumb a { color: rgba(255,255,255,0.4); }
.page-header .breadcrumb span { margin: 0 8px; color: rgba(255,255,255,0.25); }
.page-header .label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.page-header .label .bar {
  width: 28px;
  height: 2px;
  background: #2EB830;
}
.page-header .label span {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #2EB830;
}
.page-header h1 {
  font-family: 'Barlow Semi Condensed', sans-serif;
  font-size: clamp(32px,5vw,60px);
  font-weight: 900;
  line-height: 1.04;
  color: #fff;
  margin: 0 0 20px;
  letter-spacing: -0.015em;
  max-width: 780px;
}
.page-header p.subtitle {
  font-size: clamp(15px,1.4vw,18px);
  line-height: 1.7;
  color: rgba(255,255,255,0.55);
  max-width: 640px;
  margin: 0;
}

/* ── Grid rendszerek ── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 1px;
  background: #E4E4E0;
}
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 0;
}
.news-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 24px;
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 1px;
  background: rgba(255,255,255,0.08);
}
.about-flex { display: flex; }
.cert-row { display: flex; gap: 2px; flex-wrap: wrap; }

/* ── Kártya hover effektek ── */
.product-card, .make-card, .fam-card {
  transition: box-shadow 0.25s ease, transform 0.25s ease, border-top-color 0.25s ease;
}
.product-card:hover, .make-card:hover, .fam-card:hover {
  box-shadow: 0 10px 48px rgba(0,0,0,0.1);
  transform: translateY(-4px);
  border-top-color: #2EB830 !important;
}
.news-card {
  transition: box-shadow 0.25s ease, transform 0.25s ease;
  display: block;
}
.news-card:hover {
  box-shadow: 0 8px 36px rgba(0,0,0,0.09);
  transform: translateY(-3px);
}
.news-card:hover .news-more { color: #2EB830 !important; }
.featured-card:hover { box-shadow: 0 12px 44px rgba(0,0,0,0.1); }
.featured-card:hover .news-more { color: #2EB830 !important; }

/* ── Jump nav pill ── */
.jump-nav { display: flex; flex-wrap: wrap; gap: 10px; }
.jump-pill {
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.jump-pill:hover {
  background: #2EB830 !important;
  color: #fff !important;
  border-color: #2EB830 !important;
}

/* ── Cert grid ── */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 1px;
  background: rgba(255,255,255,0.08);
}
.cert-card { transition: background 0.25s ease; }
.cert-card:hover { background: rgba(255,255,255,0.07) !important; }

/* ── Policy grid ── */
.policy-grid {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 1px;
  background: #E4E4E0;
}

/* ── Alkalmazás oldal ── */
.app-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.app-row.reverse .app-visual { order: 2; }
.app-row.reverse .app-content { order: 1; }
.app-link:hover { color: #2EB830 !important; }
.app-visual { aspect-ratio: 4/3; overflow: hidden; border-radius: 4px; }
.app-visual img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 960px) { .app-visual { aspect-ratio: 16/9; } }

/* ── Termék oldal ── */
.cat-head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 24px;
}
.fam-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 20px;
}
.chip { transition: background 0.2s, color 0.2s; }

/* ── Hír oldal ── */
.article-body p {
  font-size: 17px;
  line-height: 1.85;
  color: #3A3A38;
  margin: 0 0 22px;
}
.fact-box dt {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #8A8A87;
  margin-top: 14px;
}
.fact-box dt:first-child { margin-top: 0; }
.fact-box dd {
  font-size: 15px;
  font-weight: 600;
  color: #1A1A18;
  margin: 2px 0 0;
}
.back-link:hover { color: #2EB830 !important; }

/* ── Kapcsolat oldal ── */
.contact-split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: start;
}
.dept-grid {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 1px;
  background: #E4E4E0;
}
.form-input {
  width: 100%;
  font-family: 'Barlow', sans-serif;
  font-size: 15px;
  padding: 14px 16px;
  border: 1.5px solid #E0E0DC;
  border-radius: 2px;
  color: #1A1A18;
  background: #fff;
  transition: border-color 0.2s;
}
.form-input:focus {
  outline: none;
  border-color: #2EB830;
}
#tolna-map { width: 100%; height: 420px; background: #F0F0EC; }
#tolna-map .leaflet-tile {
  filter: grayscale(0.35) saturate(0.9) brightness(1.03);
}
#tolna-map .leaflet-control-attribution { font-size: 10px; }

/* ── Hero slideshow ── */
.hero-slide {
  transition: opacity 0.7s ease;
}
.hero-dot {
  transition: width 0.3s ease, background 0.3s ease;
}

/* ── Spec táblázat ── */
.spec-table tr.spec-row:hover { background: #FAFAF8; }

/* ── Stat row ── */
.stat-row {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 0;
}

/* ═══════════════════════════════════════════════
   RESPONSIVE BREAKPOINTS
   ═══════════════════════════════════════════════ */

/* 1100px */
@media (max-width: 1100px) {
  .footer-cols {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

/* 960px */
@media (max-width: 960px) {
  .nav-desktop { display: none !important; }
  .nav-mobile-btn { display: flex !important; }
  .about-visual { display: none !important; }
  .about-text-side { padding: 64px 24px !important; }
  .products-grid, .news-grid { grid-template-columns: repeat(2,1fr); }
  .benefits-grid, .hero-stats, .stat-row { grid-template-columns: repeat(2,1fr); }
  .cert-grid { grid-template-columns: repeat(2,1fr); }
  .policy-grid { grid-template-columns: 1fr; }
  .app-row, .app-row.reverse { grid-template-columns: 1fr; gap: 32px; }
  .app-row.reverse .app-visual { order: 1; }
  .app-row.reverse .app-content { order: 2; }
  .fam-grid { grid-template-columns: repeat(2,1fr); }
  .featured-card { grid-template-columns: 1fr; }
  .contact-split { grid-template-columns: 1fr; gap: 48px; }
}

/* 768px */
@media (max-width: 768px) {
  .hero-right-panel { display: none !important; }
}

/* 700px */
@media (max-width: 700px) {
  .cat-head { grid-template-columns: 1fr; }
  .spec-table { font-size: 13px; }
}

/* 600px */
@media (max-width: 600px) {
  .products-grid, .news-grid, .fam-grid { grid-template-columns: 1fr; }
  .products-wrap { padding: 0 !important; }
  .footer-cols {
    grid-template-columns: 1fr 1fr !important;
    gap: 0 !important;
  }
  .footer-cols > div:first-child {
    grid-column: 1 / -1;
    padding-bottom: 28px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    margin-bottom: 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .footer-cols > div:first-child p { max-width: none !important; }
  .footer-cols > div:last-child {
    grid-column: 1 / -1 !important;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.08);
    margin-top: 8px;
  }
  .footer-cols > div { padding: 0 0 24px 0; }
  .benefits-grid > div {
    border-right: none !important;
    border-bottom: 1px solid #ECECEA;
    padding: 32px 24px !important;
  }
  .hero-stat { padding: 22px 20px; }
  .benefits-grid { grid-template-columns: 1fr !important; }
  .cert-grid, .dept-grid, .stat-row { grid-template-columns: 1fr; }
}

/* ── Segédosztályok ── */
.fw4 { font-weight: 400; }
.fw5 { font-weight: 500; }
.fw6 { font-weight: 600; }
.fw7 { font-weight: 700; }
.fw8 { font-weight: 800; }
.fw9 { font-weight: 900; }
.text-green { color: #2EB830; }
.text-white { color: #fff; }
.text-muted { color: #6B6B69; }
.section-padding { padding: 96px 0; }
.section-padding-sm { padding: 64px 0 96px; }
.relative { position: relative; }
.overflow-hidden { overflow: hidden; }
.scroll-margin { scroll-margin-top: 88px; }

@media (max-width: 960px) {
  .hero-deco { display: none !important; }
}

/* ── Többnyelvűség ── */
.foot-brand { color: #2EB830; font-weight: 600; }
a.lang-btn { text-decoration: none; }
.lang-switch a.lang-btn { display: inline-block; }
@media (max-width: 1180px) {
  /* Német/angol feliratok hosszabbak lehetnek – kicsit kisebb betű a menüben */
  html[lang="de"] .nav-desktop a.nav-link, html[lang="en"] .nav-desktop a.nav-link { font-size: 13px !important; }
}
