/* Vállalkozz Rá! landoló – eljhelyben.hu arculat
   Mobil az alap, 1024px felett az asztali elrendezés. */

:root {
  --navy: #294155;
  --green: #609a61;
  --green-light: #a1c168;
  --green-dark: #4d7f4e;
  --grey: #f4f6f9;
  --white: #fff;
  --line: #e3e8ed;
  --line-soft: #eef1f4;
  --field: #cfd6dd;
  --logo-black: #1d1d1b;
  /* oldalsó padding: mobilon 20px (tableten legfeljebb 48px) */
  --gx: max(20px, min(5vw, 48px));
}

@media (min-width: 1024px) {
  :root {
    /* 1280px-en 120px, köztes szélességen arányosan kisebb, a tartalom max. 1040px */
    --gx: max(clamp(32px, 9.375vw, 120px), calc((100vw - 1040px) / 2));
  }
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--white);
  color: var(--navy);
  font-family: Montserrat, system-ui, sans-serif;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: var(--green); }
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }

/* ---------- Gombok ---------- */
.btn {
  display: inline-block;
  border: 0;
  border-radius: 6px;
  color: #fff;
  font: 700 14px Montserrat, sans-serif;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
}
.btn-navy { background: var(--navy); }
.btn-green { background: var(--green); }
.btn-light { background: var(--green-light); }
@media (hover: hover) {
  .btn-navy:hover { background: var(--green); color: #fff; }
  .btn-green:hover { background: var(--green-dark); color: #fff; }
  .btn-light:hover { background: var(--green); color: #fff; }
}

/* ---------- Fejléc ---------- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: #fff;
}
.site-logo { flex: none; }
.site-logo img { height: 38px; width: auto; }
.nav-desktop, .header-cta { display: none; }

.menu-toggle {
  width: 44px;
  height: 44px;
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
}
.menu-bars { display: flex; flex-direction: column; gap: 5px; }
.menu-bars span { width: 22px; height: 2px; background: var(--navy); }
.menu-close { display: none; font-size: 24px; line-height: 1; font-weight: 500; }
.menu-toggle[aria-expanded="true"] .menu-bars { display: none; }
.menu-toggle[aria-expanded="true"] .menu-close { display: block; }

.mobile-nav {
  display: none;
  flex-direction: column;
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 4px var(--gx) 20px;
  font-size: 15px;
  font-weight: 700;
}
.mobile-nav.is-open { display: flex; }
.mobile-nav a:not(.btn) {
  color: var(--navy);
  text-decoration: none;
  padding: 15px 0;
  border-bottom: 1px solid var(--line-soft);
}
.mobile-nav a.is-active { color: var(--green); border-bottom: 0; }
.mobile-nav .btn { margin-top: 8px; padding: 15px; }

@media (min-width: 1024px) {
  .site-header { padding: 14px 32px; gap: 20px; }
  .site-logo img { height: 44px; }
  .nav-desktop {
    display: flex;
    gap: clamp(14px, 2vw, 26px);
    align-items: center;
    font-size: 13px;
    font-weight: 700;
  }
  .nav-desktop a { color: var(--navy); text-decoration: none; white-space: nowrap; }
  .nav-desktop a.is-active { color: var(--green); padding: 6px 0; border-bottom: 3px solid var(--green-light); }
  .header-cta { display: inline-block; font-size: 13px; padding: 12px 28px; white-space: nowrap; }
  .menu-toggle, .mobile-nav, .mobile-nav.is-open { display: none; }
}
@media (min-width: 1024px) and (hover: hover) {
  .nav-desktop a:hover { color: var(--green); }
}

/* ---------- Vállalkozz Rá! logó (betűkből) ---------- */
.vr-logo {
  display: flex;
  align-items: center;
  gap: 0.375em;
  color: var(--logo-black);
  font-family: Montserrat, sans-serif;
  font-weight: 300;
  font-size: min(24px, 6vw); /* nagyon keskeny kijelzőn se lógjon ki */
  line-height: 1;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.vr-logo-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.5em;
  height: 1.5em;
  border: 1.5px solid var(--logo-black);
  letter-spacing: 0;
  flex: none;
}
.vr-logo-rule { width: 1.5px; height: 1.5em; background: var(--logo-black); flex: none; }

/* ---------- Hero ---------- */
.hero { background: var(--grey); }
.hero-inner { display: flex; flex-direction: column; }
.hero-media { order: -1; height: clamp(220px, 45vw, 380px); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-body {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 32px var(--gx) 40px;
}
.hero h1 { margin: 0; font-size: 30px; line-height: 1.15; font-weight: 800; }
.hero-lead { margin: 0; font-size: 15px; line-height: 1.6; font-weight: 500; }
.hero-actions { display: flex; flex-direction: column; gap: 10px; }
.hero-actions .btn { padding: 15px; }

@media (min-width: 1024px) {
  /* A hero a tervhez hűen egy középre zárt, max. 1280px széles blokk */
  .hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    max-width: 1280px;
    margin: 0 auto;
  }
  .hero-media { order: 0; position: relative; height: auto; min-height: 520px; min-width: 0; overflow: hidden; }
  .hero-media img { position: absolute; inset: 0; }
  .hero-body { justify-content: center; gap: 24px; padding: 64px 56px 64px clamp(32px, 9.375vw, 120px); }
  .hero .vr-logo { gap: 12px; font-size: 32px; }
  .hero .vr-logo-box { width: 46px; height: 46px; }
  .hero .vr-logo-rule { height: 46px; }
  .hero h1 { font-size: 44px; line-height: 1.12; text-wrap: balance; }
  .hero-lead { font-size: 17px; max-width: 440px; }
  .hero-actions { flex-direction: row; gap: 12px; }
  .hero-actions .btn { padding: 14px 22px; white-space: nowrap; }
}

/* ---------- Szakaszok ---------- */
.section { padding: 48px var(--gx); scroll-margin-top: 0; }
.section-white { background: #fff; }
.section-grey { background: var(--grey); }
.h2 {
  margin: 0 0 20px;
  font-family: Caveat, cursive;
  font-weight: 400;
  font-size: 40px;
  line-height: 1;
  text-align: center;
}
@media (min-width: 1024px) {
  .section { padding: 88px var(--gx); }
  .h2 { font-size: 52px; }
}

/* ---------- Bemutatkozunk ---------- */
.about-lead { margin: 0; font-size: 14px; line-height: 1.7; }
.about-grid { display: flex; flex-direction: column; gap: 28px; margin-top: 28px; }
.about-col { display: flex; flex-direction: column; gap: 12px; }
.about-col h3 { margin: 0 0 2px; font-size: 17px; font-weight: 800; line-height: 1.3; }
.info-card { background: var(--grey); border-radius: 8px; padding: 16px; }
.info-card-title { font-size: 15px; font-weight: 800; margin-bottom: 4px; }
.info-card-text { font-size: 13px; line-height: 1.6; }

@media (min-width: 1024px) {
  .about-lead {
    margin: 0 auto 56px;
    font-size: 16px;
    line-height: 1.75;
    text-align: center;
    max-width: 780px;
    text-wrap: pretty;
  }
  .about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; margin-top: 0; }
  .about-col { gap: 16px; }
  .about-col h3 { margin: 0 0 4px; font-size: 20px; }
  .info-card { padding: 22px; }
  .info-card-title { font-size: 17px; margin-bottom: 6px; }
  .info-card-text { font-size: 14px; }
}

/* ---------- Hírek ---------- */
.news-heading { margin-bottom: 24px; }
.news-sub { display: none; }
.news-grid { display: flex; flex-direction: column; gap: 14px; }
.news-card {
  display: block;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  color: var(--navy);
  text-decoration: none;
}
.news-card-media { height: clamp(170px, 42vw, 300px); background: var(--line-soft); }
.news-card-media img { width: 100%; height: 100%; object-fit: cover; }
.news-card-body { padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.news-cat { font-size: 12px; font-weight: 700; color: var(--green-dark); }
.news-title { font-size: 16px; font-weight: 800; line-height: 1.3; }
.news-excerpt { font-size: 13px; line-height: 1.55; }
.news-more-link { font-size: 14px; font-weight: 700; padding-top: 4px; }
.news-empty { margin: 0; font-size: 14px; line-height: 1.6; text-align: center; }
.news-more { margin-top: 20px; }
.news-more .btn { display: block; padding: 15px; }

@media (min-width: 1024px) {
  .news-heading { margin-bottom: 12px; }
  .news-sub { display: block; margin: 0 auto 48px; font-size: 16px; line-height: 1.6; text-align: center; }
  .news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  .news-card { display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
  .news-card-media { height: 200px; }
  .news-card-body { padding: 22px; gap: 10px; flex: 1; }
  .news-title { font-size: 18px; }
  .news-excerpt { font-size: 14px; line-height: 1.6; }
  .news-more-link { margin-top: auto; padding-top: 8px; }
  .news-empty { grid-column: 1 / -1; font-size: 16px; }
  .news-more { display: flex; justify-content: center; margin-top: 40px; }
  .news-more .btn { display: inline-block; padding: 14px 26px; }
}
@media (min-width: 1024px) and (hover: hover) {
  .news-card:hover { box-shadow: 0 8px 24px rgba(41, 65, 85, .12); transform: translateY(-2px); color: var(--navy); }
}

/* ---------- Partnereink ---------- */
.partners { background: #fff; padding: 48px 0; }
.partners-heading { margin-bottom: 24px; }
.marquee { overflow: hidden; }
.marquee-track {
  display: flex;
  width: max-content;
  animation: vr-marquee var(--marquee-duration, 30s) linear infinite;
}
.marquee:hover .marquee-track,
.marquee:focus-within .marquee-track { animation-play-state: paused; }
.partner-tile {
  flex: none;
  width: 170px;
  height: 76px;
  margin-right: 24px;
  border-radius: 6px;
  background: var(--grey);
  border: 1px solid var(--line);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--navy);
  text-decoration: none;
}
.partner-tile img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
@keyframes vr-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

@media (min-width: 1024px) {
  .partners { padding: 80px 0; }
  .partners-heading { margin-bottom: 40px; }
}

/* ---------- Kapcsolat ---------- */
.contact .h2 { margin: 0 0 12px; text-align: left; }
.contact-lead { margin: 0 0 20px; font-size: 14px; line-height: 1.6; }
.contact-list { display: flex; flex-direction: column; gap: 4px; margin-bottom: 24px; }
.contact-label { display: none; }
.contact-value {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
  padding: 10px 0;
}

.form-card { background: #fff; border-radius: 8px; padding: 20px; }
.contact-form { display: flex; flex-direction: column; gap: 14px; }
.form-title { font-size: 18px; font-weight: 800; }
.form-row { display: grid; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 700; }
.field input, .field textarea {
  font: 500 16px Montserrat, sans-serif;
  color: var(--navy);
  padding: 13px 14px;
  border: 1px solid var(--field);
  border-radius: 6px;
  outline: none;
  background: #fff;
  min-width: 0;
  width: 100%;
}
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--green); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.5; padding: 6px 0; }
.consent input { margin: 2px 0 0; width: 20px; height: 20px; flex: none; accent-color: var(--green); }
.consent a { font-weight: 700; }
.form-submit { padding: 15px; }
.form-submit[disabled] { opacity: .7; cursor: wait; }
.form-error { margin: 0; font-size: 13px; line-height: 1.5; color: #b3261e; font-weight: 500; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.form-success { display: flex; flex-direction: column; gap: 10px; padding: 24px 0; align-items: flex-start; }
.success-title { font-family: Caveat, cursive; font-size: 36px; line-height: 1; }
.success-text { font-size: 14px; line-height: 1.6; }
.success-reset { margin-top: 8px; padding: 13px 22px; }

@media (min-width: 1024px) {
  .contact { display: grid; grid-template-columns: 5fr 6fr; gap: 64px; align-items: start; }
  .contact-info { display: flex; flex-direction: column; gap: 20px; }
  .contact .h2 { margin: 0; }
  .contact-lead { margin: 0; font-size: 16px; }
  .contact-list { gap: 14px; margin: 8px 0 0; }
  .contact-label { display: block; font-size: 12px; font-weight: 700; color: var(--green-dark); margin-bottom: 2px; }
  .contact-value { font-size: 18px; padding: 0; }
  .contact-prefix { display: none; }

  .form-card { padding: 32px; }
  .contact-form { gap: 16px; }
  .form-title { font-size: 20px; }
  .form-row { grid-template-columns: 1fr 1fr; gap: 16px; }
  .field input, .field textarea { font-size: 15px; padding: 12px 14px; }
  .consent { padding: 0; }
  .consent input { margin: 3px 0 0; width: 13px; height: 13px; }
  .form-submit { align-self: flex-start; padding: 14px 28px; }

  .form-success { gap: 12px; padding: 48px 0; }
  .success-title { font-size: 44px; }
  .success-text { font-size: 15px; }
  .success-reset { padding: 12px 22px; }
}

/* ---------- Lábléc ---------- */
.site-footer {
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 40px var(--gx) 20px;
}
.footer-grid { display: flex; flex-direction: column; gap: 28px; }
.footer-logo { height: 56px; width: auto; align-self: flex-start; }
.footer-menu { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4px 16px; font-size: 14px; overflow-wrap: anywhere; }
.footer-menu-heading { display: none; }
.footer-menu a, .footer-contact a { color: var(--navy); text-decoration: none; padding: 10px 0; }
.footer-menu a.is-active { color: var(--green); font-weight: 700; }
.footer-contact { display: flex; flex-direction: column; font-size: 14px; }
.footer-heading { font-size: 16px; font-weight: 800; margin-bottom: 4px; }
.copyright {
  margin-top: 28px;
  background: var(--grey);
  border-radius: 999px;
  padding: 12px;
  text-align: center;
  font-size: 12px;
}

@media (min-width: 1024px) {
  .site-footer { padding: 64px var(--gx) 24px; }
  .footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; align-items: start; }
  .footer-logo { height: 72px; }
  .footer-menu { display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
  .footer-menu-heading { display: block; }
  .footer-heading { margin-bottom: 8px; }
  .footer-menu a, .footer-contact a { padding: 0; }
  .footer-contact { gap: 8px; }
  .copyright { margin-top: 48px; padding: 14px; }
}
@media (min-width: 1024px) and (hover: hover) {
  .footer-menu a:not(.is-active):hover { color: var(--green); }
}

/* ---------- Hírek aloldal: lista ---------- */
.article-back {
  display: inline-block;
  margin-bottom: 20px;
  font-size: 14px;
  font-weight: 700;
  color: var(--green);
  text-decoration: none;
}
.news-page .news-heading { margin-bottom: 12px; }
.news-sub-always { display: block; margin: 0 0 24px; font-size: 14px; line-height: 1.6; text-align: center; }
.pager { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.pager a {
  min-width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--navy);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}
.pager a.is-current { background: var(--green); border-color: var(--green); color: #fff; }

/* ---------- Hírek aloldal: egy hír ---------- */
.article-inner { max-width: 780px; margin: 0 auto; }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-bottom: 10px; font-size: 13px; }
.article-meta time { color: #5a6e7f; font-weight: 500; }
.article-title { margin: 0 0 16px; font-size: 30px; line-height: 1.15; font-weight: 800; text-wrap: balance; }
.article-lead { margin: 0 0 24px; font-size: 16px; line-height: 1.6; font-weight: 500; }
.article-image { margin: 0 0 28px; border-radius: 8px; overflow: hidden; aspect-ratio: 16 / 9; background: var(--grey); }
.article-image img { width: 100%; height: 100%; object-fit: cover; }
.article-body { font-size: 14px; line-height: 1.7; }
.article-body p { margin: 0 0 1.1em; }
.article-body h2 { margin: 1.6em 0 .6em; font-size: 17px; font-weight: 800; line-height: 1.3; }
.article-body ul { margin: 0 0 1.1em; padding-left: 1.2em; }
.article-body li { margin-bottom: .35em; }
.article-body a { color: var(--green); font-weight: 700; }
.article-source { margin: 28px 0 0; }
.article-source .btn { padding: 14px 22px; }
.article-missing { text-align: center; }
.article-missing-text { margin: 0 0 24px; font-size: 15px; line-height: 1.6; }
.article-missing .btn { padding: 14px 26px; }

@media (min-width: 1024px) {
  .news-sub-always { font-size: 16px; margin-bottom: 48px; }
  .news-page .article-back, .article-back { margin-bottom: 28px; }
  .article-title { font-size: 44px; line-height: 1.12; margin-bottom: 20px; }
  .article-lead { font-size: 17px; margin-bottom: 32px; }
  .article-image { margin-bottom: 40px; }
  .article-body { font-size: 16px; line-height: 1.75; }
  .article-body h2 { font-size: 20px; }
}
@media (hover: hover) {
  .article-back:hover { color: var(--green-dark); }
  .pager a:not(.is-current):hover { border-color: var(--green); color: var(--green); }
}
