/* ==========================================================
   REDIN Kft. – egyszerű, könnyű stíluslap (nincs külső függőség)
   ========================================================== */

:root {
  --bg: #ffffff;
  --tint: #f2faf6;
  --tint-2: #e4f4ec;
  --ink: #10261b;
  --muted: #4b625a;
  --line: #d8e8df;
  --green: #0f7f40;        /* elsődleges (fehér szöveggel is jól olvasható) */
  --green-dark: #0b6a35;
  --green-mid: #1fae5e;
  --green-glow: #3ddc84;
  --silver: #aab8b2;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(16, 38, 27, .05), 0 8px 24px -12px rgba(16, 90, 55, .18);
  --header-h: 72px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  color-scheme: light;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img, video, svg { display: block; max-width: 100%; }
h1, h2, h3, h4, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }

.container { width: min(1160px, 100% - 40px); margin-inline: auto; }

.ico {
  width: 1.25em; height: 1.25em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

:focus-visible { outline: 3px solid var(--green-glow); outline-offset: 3px; border-radius: 8px; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--green); color: #fff; padding: 10px 16px; border-radius: 10px;
  transition: top .2s;
}
.skip:focus { top: 12px; }

/* ---------- Fejléc ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: rgba(255, 255, 255, .88);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s;
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 6px 20px -14px rgba(16, 90, 55, .35); }

.header-inner { height: 100%; display: flex; align-items: center; gap: 24px; }

.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.brand-globe { height: 38px; width: auto; }
.brand-word  { height: 23px; width: auto; }

.nav { margin-left: auto; display: flex; gap: 6px; }
.nav a {
  padding: 8px 14px; border-radius: 999px; font-weight: 600; font-size: .98rem; color: var(--muted);
  transition: background .2s, color .2s;
}
.nav a:hover, .nav a.active { background: var(--tint-2); color: var(--green-dark); }

.header-actions { display: flex; align-items: center; gap: 8px; }

/* Nyelvválasztó */
.lang {
  display: inline-flex; align-items: center; gap: 6px;
  height: 40px; padding: 0 14px;
  background: #fff; border: 1.5px solid var(--line); border-radius: 999px;
  font-weight: 700; font-size: .85rem; letter-spacing: .04em; color: var(--muted);
  transition: border-color .2s, box-shadow .2s;
}
.lang:hover { border-color: var(--green-mid); box-shadow: 0 0 0 4px rgba(31, 174, 94, .12); }
.lang .ico { color: var(--green); margin-right: 2px; }
.lang-sep { opacity: .4; }
.lang-opt { transition: color .2s; }
html[lang="hu"] .lang-opt[data-l="hu"],
html[lang="en"] .lang-opt[data-l="en"] { color: var(--green); }

.burger {
  display: none; width: 40px; height: 40px; align-items: center; justify-content: center;
  background: #fff; border: 1.5px solid var(--line); border-radius: 12px;
}
.burger .ico-close { display: none; }
.burger[aria-expanded="true"] .ico-open { display: none; }
.burger[aria-expanded="true"] .ico-close { display: block; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(40px, 7vw, 88px) 0 clamp(48px, 7vw, 96px);
  background:
    radial-gradient(60% 70% at 85% 10%, rgba(61, 220, 132, .20), transparent 70%),
    radial-gradient(45% 50% at 0% 60%, rgba(31, 174, 94, .10), transparent 70%),
    linear-gradient(180deg, #f6fcf9 0%, #ffffff 100%);
}
/* finom "áramköri" pontrács */
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(15, 127, 64, .22) 1.2px, transparent 1.4px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(70% 80% at 80% 30%, #000, transparent 75%);
  mask-image: radial-gradient(70% 80% at 80% 30%, #000, transparent 75%);
}

.hero-grid { position: relative; display: grid; gap: 44px; align-items: center; }

.eyebrow {
  display: inline-block; margin-bottom: 14px;
  font-size: .8rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--green);
}

h1 {
  font-size: clamp(2.05rem, 4.8vw, 3.4rem);
  line-height: 1.08; letter-spacing: -.025em; font-weight: 800;
  text-wrap: balance;
}
.grad {
  background: linear-gradient(100deg, var(--green) 0%, var(--green-mid) 60%, #5fd39a 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.lead { margin-top: 20px; max-width: 34em; font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--muted); }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 50px; padding: 0 24px; border-radius: 999px;
  font-weight: 700; font-size: 1rem; border: 1.5px solid transparent;
  transition: transform .2s, box-shadow .2s, background .2s, border-color .2s;
}
.btn-primary { background: var(--green); color: #fff; box-shadow: 0 10px 22px -10px rgba(15, 127, 64, .7); }
.btn-primary:hover { background: var(--green-dark); transform: translateY(-2px); }
.btn-primary .ico { transition: transform .2s; }
.btn-primary:hover .ico { transform: translateX(3px); }
.btn-ghost { background: #fff; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--green-mid); color: var(--green-dark); transform: translateY(-2px); }

.chips { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 32px; font-size: .95rem; font-weight: 600; color: var(--muted); }
.chips li { display: inline-flex; align-items: center; gap: 8px; }
.chips .ico { color: var(--green-mid); }

/* Videó keret */
.video-frame {
  position: relative; aspect-ratio: 16 / 9; border-radius: 24px; overflow: hidden;
  background: #04110a;
  box-shadow:
    0 0 0 1px rgba(15, 127, 64, .25),
    0 30px 60px -24px rgba(15, 127, 64, .55),
    0 0 70px -10px rgba(61, 220, 132, .35);
}
.video-frame video { width: 100%; height: 100%; object-fit: cover; }

.video-toggle, .video-sound {
  position: absolute; bottom: 14px; width: 42px; height: 42px;
  display: grid; place-items: center; border-radius: 50%;
  background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .35); color: #fff;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  opacity: .85; transition: opacity .2s, background .2s;
}
.video-toggle { right: 14px; }
.video-sound { right: 64px; }
.video-toggle:hover, .video-sound:hover { opacity: 1; background: rgba(61, 220, 132, .35); }
.video-toggle .ico { width: 18px; height: 18px; fill: currentColor; stroke: none; }
.video-toggle .ico-play { display: none; }
.video-sound .ico { width: 20px; height: 20px; }
.video-sound .ico-off { display: none; }
.video-frame.muted .video-sound .ico-on { display: none; }
.video-frame.muted .video-sound .ico-off { display: block; }
.video-frame.paused .ico-pause { display: none; }
.video-frame.paused .ico-play { display: block; }

/* ---------- Szekciók ---------- */
.section { padding: clamp(56px, 8vw, 104px) 0; scroll-margin-top: calc(var(--header-h) - 8px); }
.section-tint { background: linear-gradient(180deg, var(--tint) 0%, #ffffff 100%); }
.section[id] { scroll-margin-top: calc(var(--header-h) - 8px); }

h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); line-height: 1.15; letter-spacing: -.02em; font-weight: 800; text-wrap: balance; }
.body-text { margin-top: 18px; color: var(--muted); max-width: 40em; }
.section-head { max-width: 760px; margin-bottom: 40px; }

/* Rólunk */
.about-grid { display: grid; gap: 44px; align-items: center; }

.checklist { margin-top: 26px; display: grid; gap: 14px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; }
.checklist .ico {
  width: 26px; height: 26px; padding: 5px; margin-top: 1px; border-radius: 50%;
  background: var(--tint-2); color: var(--green); stroke-width: 3;
}

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

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-4px); border-color: #b9dfc9; }

.pillar { position: relative; overflow: hidden; padding: 24px 22px 22px; }
.red-grid .pillar:last-child { grid-column: 1 / -1; }
.pillar-letter {
  position: absolute; right: 14px; top: -6px;
  font-size: 5.2rem; font-weight: 900; line-height: 1; letter-spacing: -.04em;
  background: linear-gradient(160deg, #d4ddd9 0%, #eef3f1 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  user-select: none;
}
.pillar-ico {
  width: 46px; height: 46px; padding: 11px; border-radius: 14px;
  background: linear-gradient(145deg, var(--green) 0%, var(--green-mid) 100%); color: #fff;
}
.pillar h3 { margin-top: 18px; font-size: 1.15rem; }
.pillar p { margin-top: 6px; font-size: .97rem; color: var(--muted); line-height: 1.55; }

/* Megoldások – kiemelt kártya */
.feature {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: 26px;
  padding: clamp(24px, 4vw, 44px);
  box-shadow: 0 2px 4px rgba(16, 38, 27, .04), 0 30px 60px -36px rgba(15, 127, 64, .45);
  overflow: hidden;
}
.feature::before {
  content: ""; position: absolute; left: 0; top: 0; right: 0; height: 5px;
  background: linear-gradient(90deg, var(--green), var(--green-glow) 60%, var(--silver));
}
.feature-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-bottom: 30px; }
.tag {
  padding: 5px 14px; border-radius: 999px; background: var(--tint-2); color: var(--green-dark);
  font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
}
.feature h3 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); line-height: 1.2; letter-spacing: -.015em; }

.feature-grid { display: grid; gap: 26px 32px; grid-template-columns: 1fr; }
.f-ico {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px;
  background: var(--tint-2); color: var(--green);
}
.f-item h4 { margin-top: 14px; font-size: 1.05rem; }
.f-item p { margin-top: 4px; font-size: .97rem; color: var(--muted); line-height: 1.55; }

/* Hogyan működik */
.how { margin-top: 56px; }
.how > h3 { font-size: 1.35rem; margin-bottom: 26px; }
.steps { display: grid; gap: 22px; counter-reset: s; position: relative; }
.steps li { position: relative; padding-left: 62px; }
.step-n {
  position: absolute; left: 0; top: 0; z-index: 1;
  width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%;
  background: #fff; border: 2px solid var(--green-mid); color: var(--green-dark); font-weight: 800;
}
.steps li:not(:last-child)::after {   /* összekötő vonal (mobil: függőleges) */
  content: ""; position: absolute; left: 21px; top: 48px; bottom: -22px; width: 2px;
  background: repeating-linear-gradient(to bottom, var(--green-mid) 0 6px, transparent 6px 12px);
  opacity: .6;
}
.steps h4 { font-size: 1.05rem; padding-top: 8px; }
.steps p { margin-top: 2px; font-size: .97rem; color: var(--muted); line-height: 1.55; }

/* Másodlagos kártyák */
.secondary { display: grid; gap: 16px; margin-top: 56px; }
.mini { display: flex; gap: 18px; align-items: flex-start; padding: 24px; }
.mini-ico {
  width: 48px; height: 48px; padding: 12px; border-radius: 14px;
  background: linear-gradient(145deg, var(--green) 0%, var(--green-mid) 100%); color: #fff;
}
.mini h4 { font-size: 1.08rem; }
.mini p { margin-top: 4px; font-size: .97rem; color: var(--muted); line-height: 1.55; }

/* ---------- Lábléc ---------- */
.site-footer { background: var(--tint); border-top: 1px solid var(--line); padding: 40px 0 24px; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 24px 40px; align-items: center; justify-content: space-between; }
.footer-brand { display: flex; align-items: center; gap: 16px; }
.footer-brand img { width: 72px; height: 72px; }
.footer-brand strong { display: block; font-size: 1.1rem; }
.footer-brand span { font-size: .9rem; color: var(--muted); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 24px; font-weight: 600; color: var(--muted); }
.footer-nav a:hover { color: var(--green-dark); }
.copyright {
  display: flex; flex-wrap: wrap; gap: 4px 16px; justify-content: space-between;
  margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line);
  font-size: .88rem; color: var(--muted);
}

/* ---------- Megjelenési animáció (csak JS esetén) ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
.js .red-grid .reveal:nth-child(2) { transition-delay: .08s; }
.js .red-grid .reveal:nth-child(3) { transition-delay: .16s; }
.js .red-grid .reveal:nth-child(4) { transition-delay: .24s; }

/* ---------- Reszponzív ---------- */
@media (min-width: 640px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .secondary { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.12fr 1fr; gap: 48px; }
  .about-grid { grid-template-columns: 1fr 1fr; gap: 64px; }
  .feature-grid { grid-template-columns: repeat(3, 1fr); }

  .steps { grid-template-columns: repeat(4, 1fr); gap: 28px; }
  .steps li { padding: 62px 0 0; }
  .steps li:not(:last-child)::after {  /* vízszintes összekötő vonal */
    left: 52px; right: -28px; top: 21px; bottom: auto; width: auto; height: 2px;
    background: repeating-linear-gradient(to right, var(--green-mid) 0 6px, transparent 6px 12px);
  }
  .steps h4 { padding-top: 0; }
}

@media (max-width: 859px) {
  .burger { display: inline-flex; }
  .nav {
    position: absolute; left: 0; right: 0; top: var(--header-h);
    flex-direction: column; gap: 2px; margin: 0; padding: 10px 20px 18px;
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 30px -24px rgba(16, 90, 55, .4);
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 12px; border-radius: 12px; font-size: 1.05rem; }
  .header-actions { margin-left: auto; }
}

@media (max-width: 420px) {
  .container { width: calc(100% - 32px); }
  .red-grid { grid-template-columns: 1fr; }
  .brand-globe { height: 34px; }
  .brand-word { height: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
