/* Brand color tokens — override via Live Edit Style Editor */
:root {
  --primary-color: #d9d4cc;
  --accent-color: #8a857c;
  --bg-color: #ffffff;
  --text-color: #1f2937;
}


/* ============================================================
   CL3 Építő Kft. — OnePager stylesheet
   Vanilla CSS · design tokens · fluid type & spacing · 7-level
   mobile-first breakpoints (360/480/640/768/1024/1280/1536)
   ============================================================ */

:root {
  /* --- Microweber Style Editor alias tokenek (azonos ertekek, a kinezet valtozatlan) --- */
  --primary: var(--red);
  --dark: var(--ink);
  --gray: var(--muted);
  --display: var(--font-head);
  --body: var(--font-body);

  /* brand palette */
  --red: #C8102E;
  --red-dark: #A30D26;
  --ink: #1A1A1A;
  --ink-2: #2A2A2A;
  --footer-bg: #161616;
  --bg: #F7F5F2;
  --white: #FFFFFF;
  --line: #E4E0DA;
  --line-soft: #EFEBE4;
  --text: #1A1A1A;
  --text-2: #4A453E;
  --muted: #6B6660;
  --muted-2: #9C968C;

  /* type */
  --font-head: 'Archivo', system-ui, sans-serif;
  --font-body: 'Manrope', system-ui, sans-serif;

  /* fluid type scale */
  --fs-h1: clamp(32px, 6vw, 76px);
  --fs-h2: clamp(26px, 3.4vw, 46px);
  --fs-h3: clamp(17px, 1.6vw, 21px);
  --fs-body: clamp(14px, 1vw + 0.5rem, 17px);
  --fs-eyebrow: clamp(11px, 0.9vw, 13px);
  --fs-icon: clamp(36px, 4vw, 52px);

  /* fluid spacing */
  --pad-x: clamp(16px, 4vw, 40px);
  --sec-y: clamp(56px, 9vw, 128px);
  --card-pad: clamp(20px, 2.6vw, 36px);
  --maxw: 1280px;
  --header-h: 72px;

  --ease: cubic-bezier(.16, 1, .3, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

/* sections get scroll offset so the sticky header doesn't cover them */
section[id] { scroll-margin-top: var(--header-h); }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad-x); }

/* ---------- shared type ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-weight: 700;
  font-size: var(--fs-eyebrow); letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--red);
}
.eyebrow--light { color: #fff; letter-spacing: 0.2em; }
.eyebrow__tick { width: 32px; height: 2px; background: var(--red); }
.h2 {
  font-family: var(--font-head); font-weight: 800; font-size: var(--fs-h2);
  letter-spacing: -0.01em; line-height: 1.06; color: var(--ink); margin-top: 14px;
}
.body { font-size: var(--fs-body); line-height: 1.75; color: var(--text-2); margin-bottom: 18px; }
.body--muted { color: var(--muted); margin-bottom: 0; }
.rule { display: block; width: 64px; height: 3px; background: var(--red); margin: 22px 0 28px; }
.placeholder-label {
  position: relative; font-family: var(--font-body); font-size: 11px;
  letter-spacing: 0.22em; color: rgba(255,255,255,0.32); text-transform: uppercase;
}

.logo-box {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; background: var(--red); color: #fff;
  font-family: var(--font-head); font-weight: 900; font-size: 17px; letter-spacing: -0.02em;
}
.logo-box--lg { width: 54px; height: 54px; font-size: 22px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 11px;
  min-height: 52px; padding: 16px clamp(24px, 3vw, 32px);
  font-family: var(--font-head); font-weight: 700; font-size: clamp(14px, 1.4vw, 16px);
  letter-spacing: 0.01em; text-decoration: none; border: none; border-radius: 2px;
  cursor: pointer; transition: background .25s ease, transform .15s ease, box-shadow .25s ease;
}
.btn span { font-size: 17px; }
.btn--primary { background: var(--red); color: #fff; }
.btn--primary:active { background: var(--red-dark); transform: scale(0.98); }
.btn--full { width: 100%; }
.btn--ghost {
  min-height: 44px; padding: 0; background: none; color: #fff;
  font-family: var(--font-body); font-weight: 600; font-size: clamp(14px, 1.3vw, 15px);
  text-decoration: underline; text-underline-offset: 6px; text-decoration-color: rgba(255,255,255,0.4);
}

/* ============ PRELOADER ============ */
.preloader {
  position: fixed; inset: 0; z-index: 9999; background: #000;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 30px;
  transition: opacity .6s ease, visibility .6s ease;
}
.preloader.is-hidden { opacity: 0; visibility: hidden; }
.preloader img { width: min(72vh, 86vw); height: auto; display: block; }
.preloader__brand { display: flex; align-items: center; gap: 14px; }
.preloader__name { display: flex; flex-direction: column; line-height: 1; font-style: normal; }
.preloader__name strong { font-family: var(--font-head); font-weight: 800; font-size: 20px; color: #fff; letter-spacing: 0.02em; }
.preloader__name em { font-family: var(--font-body); font-weight: 500; font-size: 11px; font-style: normal; color: #8A857C; letter-spacing: 0.34em; margin-top: 4px; }
.preloader__bar { position: relative; width: min(220px, 60vw); height: 3px; background: rgba(255,255,255,0.12); overflow: hidden; }
.preloader__bar span { position: absolute; top: 0; height: 100%; width: 38%; background: var(--red); animation: cl3loader 1.15s cubic-bezier(.65,.05,.36,1) infinite; }
@keyframes cl3loader { 0% { left: -38%; } 100% { left: 100%; } }

/* ============ HEADER ============ */
.header {
  position: sticky; top: 0; z-index: 900; height: var(--header-h);
  background: rgba(247,245,242,0.86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header__inner { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad-x); height: var(--header-h); display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1; font-style: normal; }
.brand__text strong { font-family: var(--font-head); font-weight: 800; font-size: 16px; color: var(--ink); letter-spacing: 0.02em; }
.brand__text em { font-family: var(--font-body); font-weight: 500; font-size: 9.5px; font-style: normal; color: var(--muted-2); letter-spacing: 0.26em; margin-top: 3px; }

.nav { display: none; align-items: center; gap: 32px; }
.nav__link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; font-size: 14.5px; text-decoration: none; color: var(--ink); }
.nav__divider { width: 1px; height: 20px; background: #D9D4CC; }

.langtoggle { display: flex; align-items: center; border: 1px solid #D9D4CC; border-radius: 2px; overflow: hidden; }
.langtoggle__btn { min-height: 40px; padding: 7px 11px; background: transparent; color: var(--muted); border: none; cursor: pointer; font-family: var(--font-head); font-weight: 700; font-size: 12px; letter-spacing: 0.05em; }
.langtoggle__btn.is-active { background: var(--red); color: #fff; }
.langtoggle__btn--block { flex: 1; min-height: 48px; padding: 12px; font-size: 14px; border: 1px solid #D9D4CC; border-radius: 2px; background: #fff; color: var(--ink); }
.langtoggle__btn--block.is-active { background: var(--red); color: #fff; border-color: var(--red); }

.hamburger { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; width: 44px; height: 44px; background: none; border: none; cursor: pointer; padding: 0; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--ink); transition: transform .25s ease, opacity .2s ease; }
.hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobilemenu {
  position: absolute; top: var(--header-h); left: 0; right: 0;
  background: var(--bg); border-bottom: 1px solid var(--line);
  padding: 14px var(--pad-x) 24px; display: flex; flex-direction: column; gap: 4px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.10);
}
.mobilemenu[hidden] { display: none; }
.mobilemenu__link { display: flex; align-items: center; min-height: 48px; padding: 14px 0; font-family: var(--font-head); font-weight: 700; font-size: clamp(18px, 2.4vw, 22px); color: var(--ink); text-decoration: none; border-bottom: 1px solid #E9E5DE; }
.mobilemenu__lang { display: flex; gap: 10px; margin-top: 16px; }

/* ============ HERO ============ */
.hero {
  position: relative; min-height: calc(100svh - var(--header-h));
  display: flex; align-items: center; overflow: hidden; background: var(--ink);
}
.hero__bg { position: absolute; inset: 0; background: linear-gradient(150deg, #222 0%, #1A1A1A 45%, #141414 100%); }
.hero__grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px); background-size: 64px 64px; opacity: 0.55; }
.hero__accent { position: absolute; top: -10%; right: -6%; width: 46%; height: 120%; background: linear-gradient(135deg, transparent 40%, rgba(200,16,46,0.16) 100%); transform: skewX(-9deg); }
.hero__vignette { position: absolute; inset: 0; background: radial-gradient(120% 90% at 18% 60%, transparent 30%, rgba(0,0,0,0.62) 100%); }
.hero__photo-note { position: absolute; left: 24px; bottom: 22px; z-index: 1; display: none; font-size: 11px; letter-spacing: 0.22em; color: rgba(255,255,255,0.24); text-transform: uppercase; }
.hero__wrap { position: relative; z-index: 2; }
.hero__content { max-width: min(760px, 94vw); display: flex; flex-direction: column; gap: clamp(16px, 2.4vw, 22px); }
.hero__title { font-family: var(--font-head); font-weight: 800; font-size: var(--fs-h1); line-height: 1.02; letter-spacing: -0.02em; color: #fff; max-width: clamp(15ch, 60vw, 22ch); }
.hero__sub { font-size: clamp(15px, 1.6vw, 19px); line-height: 1.6; color: rgba(255,255,255,0.72); max-width: 52ch; }
.hero__actions { display: flex; align-items: center; flex-wrap: wrap; gap: clamp(18px, 3vw, 28px); margin-top: 8px; }

.scrollhint { position: absolute; right: clamp(20px, 4vw, 40px); bottom: 34px; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.scrollhint__label { font-size: 10.5px; letter-spacing: 0.28em; color: rgba(255,255,255,0.5); text-transform: uppercase; writing-mode: vertical-rl; }
.scrollhint__mouse { position: relative; width: 20px; height: 32px; border: 1.5px solid rgba(255,255,255,0.35); border-radius: 11px; display: flex; justify-content: center; padding-top: 7px; }
.scrollhint__dot { width: 3px; height: 7px; border-radius: 2px; background: var(--red); animation: cl3dot 1.6s ease-in-out infinite; }
@keyframes cl3dot { 0% { transform: translateY(0); opacity: 0; } 40% { opacity: 1; } 80% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

/* ============ SECTIONS ============ */
.section { padding: var(--sec-y) 0; }
.section--light { background: var(--bg); }
.section--white { background: var(--white); border-top: 1px solid var(--line-soft); }
.section__head { max-width: 640px; margin-bottom: clamp(32px, 5vw, 48px); }
.section__head .body { margin-top: 18px; }

/* ---------- about ---------- */
.about__grid { display: grid; grid-template-columns: 1fr; gap: clamp(32px, 6vw, 44px); align-items: center; }
.about__image { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: 16 / 10; overflow: hidden; order: -1; background: linear-gradient(155deg, #2A2A2A, #161616); background-image: linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px); background-size: 40px 40px; }
.about__image-accent { position: absolute; left: 0; bottom: 0; width: 46%; height: 5px; background: var(--red); z-index: 2; }
.about__image img, .about__image .module-picture, .about__image .module-picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }

.stats { display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: clamp(40px, 6vw, 72px); }
.stat { background: #fff; padding: clamp(22px, 2.4vw, 32px) clamp(18px, 2vw, 28px); display: flex; flex-direction: column; }
.stat__value { display: flex; align-items: baseline; }
.stat__num { font-family: var(--font-head); font-weight: 800; font-size: clamp(34px, 5vw, 48px); line-height: 1; letter-spacing: -0.02em; color: var(--ink); }
.stat__suffix { font-family: var(--font-head); font-weight: 800; font-size: clamp(24px, 3.6vw, 34px); line-height: 1; color: var(--red); }
.stat__label { font-weight: 500; font-size: clamp(13px, 1vw, 14.5px); color: var(--muted); margin-top: 9px; line-height: 1.35; }

/* ---------- cards (generic grids) ---------- */
.cards { display: grid; grid-template-columns: 1fr; }
.cards--services { gap: clamp(14px, 1.6vw, 20px); }
.cards--refs { gap: clamp(16px, 2vw, 24px); }

.svc-card { background: #fff; border: 1px solid var(--line); border-top: 3px solid transparent; padding: var(--card-pad); transition: border-top-color .3s ease, transform .35s var(--ease), box-shadow .35s ease; }
.svc-card:active { border-top-color: var(--red); }
.svc-card__icon { display: block; color: var(--ink); margin-bottom: clamp(16px, 2vw, 22px); }
.svc-card__icon svg { width: var(--fs-icon); height: var(--fs-icon); }
.svc-card__title { font-family: var(--font-head); font-weight: 700; font-size: var(--fs-h3); color: var(--ink); margin-bottom: 12px; }
.svc-card__desc { font-size: var(--fs-body); line-height: 1.65; color: var(--muted); }

/* ---------- references ---------- */
.ref-card { background: #fff; border: 1px solid var(--line); overflow: hidden; }
.ref-card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: linear-gradient(150deg, #2F2F2F, #171717); background-image: linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px); background-size: 32px 32px; transition: transform .6s var(--ease); }
.ref-card[data-grad="1"] .ref-card__media { background: linear-gradient(150deg, #262626, #141414); background-image: linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px); background-size: 32px 32px; }
.ref-card[data-grad="2"] .ref-card__media { background: linear-gradient(150deg, #33211f, #181818); background-image: linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px); background-size: 32px 32px; }
.ref-card[data-grad="3"] .ref-card__media { background: linear-gradient(150deg, #2A2A2A, #1B1B1B); background-image: linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px); background-size: 32px 32px; }
.ref-card[data-grad="4"] .ref-card__media { background: linear-gradient(150deg, #202020, #121212); background-image: linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px); background-size: 32px 32px; }
.ref-card[data-grad="5"] .ref-card__media { background: linear-gradient(150deg, #2E2520, #161616); background-image: linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px); background-size: 32px 32px; }
.ref-card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.5), transparent 60%); opacity: 0.45; transition: opacity .4s ease; }
.ref-card__year { position: absolute; top: 14px; left: 14px; z-index: 2; font-family: var(--font-head); font-weight: 700; font-size: 12px; letter-spacing: 0.06em; color: #fff; background: var(--red); padding: 5px 11px; border-radius: 2px; }
.ref-card__note { position: absolute; left: 16px; bottom: 14px; z-index: 2; font-size: 10px; letter-spacing: 0.2em; color: rgba(255,255,255,0.4); text-transform: uppercase; }
.ref-card__body { padding: clamp(18px, 2.4vw, 24px) clamp(18px, 2.4vw, 24px) clamp(22px, 3vw, 28px); }
.ref-card__title { font-family: var(--font-head); font-weight: 700; font-size: var(--fs-h3); color: var(--ink); margin-bottom: 7px; }
.ref-card__loc { font-size: clamp(12px, 1vw, 14px); color: var(--muted-2); letter-spacing: 0.02em; }

/* ---------- contact ---------- */
.contact__grid { display: grid; grid-template-columns: 1fr; gap: clamp(36px, 6vw, 64px); align-items: start; }
.contact__lead { max-width: 38ch; margin: 18px 0 36px; line-height: 1.7; }
.contact__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 24px; }
.contact__item { display: flex; gap: 16px; align-items: flex-start; }
.contact__icon { flex: none; color: var(--red); margin-top: 2px; }
.contact__label { display: block; font-family: var(--font-head); font-weight: 700; font-size: var(--fs-eyebrow); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 4px; }
.contact__value { display: inline-flex; min-height: 24px; font-size: clamp(14px, 1vw + 0.5rem, 16px); color: var(--ink); text-decoration: none; }
.contact__follow { margin-top: 34px; }
.contact__follow .contact__label { margin-bottom: 12px; }

.social { display: flex; gap: 10px; }
.social__link { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border: 1px solid #D9D4CC; color: var(--ink); border-radius: 2px; transition: all .25s ease; }
.social__link:active { background: var(--red); border-color: var(--red); color: #fff; }
.social--footer .social__link { width: 44px; height: 44px; border-color: #333; color: #fff; }

.contact__form { background: #FAF8F5; border: 1px solid var(--line); padding: clamp(22px, 3vw, 34px); border-radius: 2px; display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr; gap: 16px; }
.contact__form input, .contact__form textarea { width: 100%; min-height: 48px; background: #fff; border: 1px solid #D9D4CC; border-radius: 2px; padding: 14px 16px; font-family: var(--font-body); font-size: 15px; color: var(--ink); transition: border-color .2s ease; }
.contact__form textarea { min-height: 120px; resize: vertical; }
.contact__form input::placeholder, .contact__form textarea::placeholder { color: var(--muted-2); }
.contact__form input:focus, .contact__form textarea:focus { outline: none; border-color: var(--red); }
.captcha-placeholder { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; border: 1.5px dashed #D9D4CC; border-radius: 2px; padding: 16px; background: #FAF8F5; font-size: clamp(12px, 1vw, 13px); color: var(--muted-2); }
.captcha-placeholder__box { flex: none; width: 24px; height: 24px; border: 1.5px solid #C2BCB2; border-radius: 3px; }
.form-success { display: flex; align-items: center; gap: 10px; color: #1F7A43; font-size: 14px; font-weight: 600; padding: 4px 2px; }
.form-success[hidden] { display: none; }

/* ============ FOOTER ============ */
.footer { background: var(--footer-bg); color: #fff; }
.footer__inner { padding: clamp(56px, 7vw, 80px) var(--pad-x) 0; }
.footer__grid { display: grid; grid-template-columns: 1fr; gap: clamp(32px, 4vw, 48px); padding-bottom: clamp(40px, 6vw, 60px); }
.footer__col { display: flex; flex-direction: column; }
.brand--footer { margin-bottom: 20px; }
.brand--footer .logo-box { width: 44px; height: 44px; }
.brand--footer .brand__text strong { color: #fff; }
.brand--footer .brand__text em { color: #7A756C; }
.footer__desc { font-size: clamp(13px, 1vw, 15px); line-height: 1.7; color: #9A958C; max-width: 34ch; }
.footer__title { font-family: var(--font-head); font-weight: 700; font-size: clamp(12px, 1vw, 13px); letter-spacing: 0.1em; text-transform: uppercase; color: #fff; margin-bottom: 18px; }
.footer__link { display: inline-flex; align-items: center; min-height: 40px; font-size: clamp(13px, 1vw, 15px); color: #9A958C; text-decoration: none; }
.footer__line { min-height: 26px; font-size: clamp(13px, 1vw, 15px); color: #9A958C; text-decoration: none; line-height: 1.5; }
.footer__col .social--footer { margin-top: 16px; }
.footer__bottom { border-top: 1px solid var(--ink-2); padding: 26px 0; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; justify-content: space-between; font-size: 13px; color: #6E695F; }
.footer__bottom a { color: #9A958C; text-decoration: none; }

/* ============ SCROLL-REVEAL ============ */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ============================================================
   BREAKPOINTS — mobile-first (360/480/640/768/1024/1280/1536)
   ============================================================ */

/* 360px — tiny phones get the smallest logo treatment below this */
@media (max-width: 359.98px) {
  .brand__text { display: none; }
}

/* 360px+ : stats become 2-up */
@media (min-width: 360px) {
  .stats { grid-template-columns: 1fr 1fr; }
}

/* 480px+ : footer-bottom inline, service & ref cards 2-up */
@media (min-width: 480px) {
  .footer__bottom { flex-direction: row; align-items: center; gap: 0; }
  .cards--services { grid-template-columns: 1fr 1fr; }
  .cards--refs { grid-template-columns: 1fr 1fr; }
}

/* 640px+ : footer 2 columns */
@media (min-width: 640px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

/* 768px+ : stats 4-up, contact form name+email side by side */
@media (min-width: 768px) {
  .stats { grid-template-columns: repeat(4, 1fr); }
  .form-row { grid-template-columns: 1fr 1fr; }
  .hero__photo-note { display: block; }
}

/* 1024px+ : desktop nav, about & contact 2-col, services 4 / refs 3, footer 3 */
@media (min-width: 1024px) {
  .nav { display: flex; }
  .hamburger, .mobilemenu { display: none !important; }
  .about__grid { grid-template-columns: 1.05fr 0.95fr; gap: 64px; }
  .about__image { aspect-ratio: 4 / 5; order: 0; }
  .cards--services { grid-template-columns: repeat(4, 1fr); }
  .cards--refs { grid-template-columns: repeat(3, 1fr); }
  .contact__grid { grid-template-columns: 0.92fr 1.08fr; }
  .footer__grid { grid-template-columns: 2fr 1fr 1.3fr; }
}

/* tablet-portrait breathing room (768–1023) */
@media (min-width: 768px) and (max-width: 1023.98px) {
  .about__grid { gap: 72px; }
}

/* 1280px+ : keep nav gap comfortable */
@media (min-width: 1280px) {
  .nav { gap: 36px; }
}

/* ============ LANDSCAPE PHONE ============ */
@media (orientation: landscape) and (max-height: 500px) {
  .hero { min-height: 80vh; padding: 32px 0; }
  .scrollhint { display: none; }
}

/* ============ HOVER — only on real pointers ============ */
@media (hover: hover) and (pointer: fine) {
  .nav__link:hover { color: var(--red); }
  .btn--primary:hover { background: var(--red-dark); transform: translateY(-2px); box-shadow: 0 14px 30px rgba(200,16,46,0.34); }
  .btn--ghost:hover { text-decoration-color: var(--red); }
  .langtoggle__btn:hover:not(.is-active) { color: var(--red); }
  .svc-card:hover { border-top-color: var(--red); transform: translateY(-6px); box-shadow: 0 22px 44px rgba(26,26,26,0.10); }
  .ref-card:hover .ref-card__media { transform: scale(1.06); }
  .ref-card:hover .ref-card__media::after { opacity: 1; }
  .social__link:hover { background: var(--red); border-color: var(--red); color: #fff; }
  .footer__link:hover, .footer__bottom a:hover { color: var(--red); }
}

/* ============ TOUCH — no sticky transforms ============ */
@media (hover: none) and (pointer: coarse) {
  .scrollhint { display: none; }
}

/* ============ REDUCED MOTION ============ */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

  

/* === MW Live Edit overrides (auto-generated) === */

.mw-admin-live-edit-page [data-layout-container] { min-height: 0 !important; }

.brand img, .nav-logo img, .logo img { max-width: 48px; max-height: 48px; width: auto; height: auto; object-fit: contain; }
.f-brand .logo img, footer .logo img { max-width: 40px; max-height: 40px; }

.image-slot-canonicalized { width: 100%; height: auto; display: block; }
.image-slot-shape-circle { border-radius: 50%; }

/* === Nav <ul><li> bullet suppression (auto-generated) === */
nav.nav ul, .nav ul, header nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; gap: 2px; align-items: center;
}
nav.nav ul li, .nav ul li, header nav ul li {
  list-style: none; margin: 0; padding: 0;
}
nav.nav ul li::marker, header nav ul li::marker { content: none; }

/* === Multilanguage MW module — link-list clean skin (auto-generated) === */
.lang-mw, .mw-lang-switch { display: inline-block; position: relative; font-size: 12.5px; letter-spacing: .08em; }
.mw-lang-current {
  display: inline-flex; align-items: center; gap: 4px;
  background: transparent; border: 1px solid rgba(255,255,255,0.25);
  color: var(--light, #fff); border-radius: 6px;
  padding: 6px 10px 6px 12px; font: inherit; cursor: pointer;
  text-transform: uppercase; line-height: 1;
}
.mw-lang-current:hover { border-color: rgba(255,255,255,0.55); background: rgba(255,255,255,0.06); }
.mw-lang-current .mdi { font-size: 16px; opacity: 0.75; }
.mw-lang-menu {
  position: absolute; top: calc(100% + 6px); right: 0; min-width: 80px;
  list-style: none; margin: 0; padding: 6px 0;
  background: rgba(8, 32, 62, 0.96);
  border: 1px solid var(--line-dark, rgba(255,255,255,0.15));
  border-radius: 8px; box-shadow: 0 6px 20px rgba(0,0,0,0.35);
  display: none; z-index: 50;
}
.mw-lang-menu.is-open { display: block; }
.mw-lang-menu li { list-style: none; padding: 0; margin: 0; }
.mw-lang-link {
  display: block; padding: 8px 14px;
  color: var(--light, #fff); text-decoration: none;
  text-transform: uppercase; white-space: nowrap;
}
.mw-lang-link:hover { background: rgba(255,255,255,0.08); }
.mw-lang-fullname { display: none; }

.mw-admin-live-edit-page .reveal {
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
}


/* add-generator-hardening: hero full-viewport rules (override of upstream defaults) */
.hero { min-height: 100vh; padding: 0; display: flex; }
.hero .mw-layout-container { flex: 1; padding: 40px 0; }


/* add-generator-hardening: Posts module wrapper transparency.
   The `<div class="module module-posts">` wrapper MW injects between the
   section container and the skin output breaks `parent > child` selectors
   from the source design. Two-part fix: (a) `display:contents` so the box
   model is transparent, and (b) class-level selectors so flex/grid layout
   matches regardless of wrapper depth. */
.module-posts { display: contents; }

/* Class-level flex/grid layouts — match regardless of `.module-posts` depth. */
.carousel-track { display: flex; }
.carousel-track > article.carousel-slide,
.carousel-track > .carousel-slide { flex: 0 0 100%; width: 100%; }


/* ===== MDI-SVG-INFLATE-FIX ===== */
/* MW Live Edit inflates `<i class="mdi …">` to inline <svg viewBox="0 0 24 24">
   without width/height — without these rules the SVG fills its parent. */
.mdi svg { width: 1em; height: 1em; fill: currentColor; display: inline-block; vertical-align: -0.125em; }
i.mdi svg, .mdi > svg { width: 1em; height: 1em; }


/* ===== STATIC-PAGE-CLEARANCE-BLOCK ===== */
/* Static pages (subtype=static) bypass inner.php and inject content
   directly into the body. Without padding the fixed header overlaps. */
body.page-impresszum > .main-content { padding-top: 80px; }
body.page-adatvedelmi > .main-content { padding-top: 80px; }


/* ===== FONT-COLOR-RUNTIME-OVERRIDE ===== */
/* Live Edit inserts inline <font color="…">; override to brand color
   non-destructively. !important is required (inline attribute beats rules). */
font[color] { color: var(--brand) !important; }

/* ===== MW LAYOUT WRAPPER TRANSPARENCY ===== */
section > .mw-layout-container { display: contents; }
.edit.allow-drop { display: none !important; }

/* ===== MW MENU MODULE STYLING + DROPDOWN ===== */
/* MW renders <ul class="menu-root"> + <li><a class="menu_element_link">.
   Nested <ul> = dropdown (have-submenu li). Claude-emit `.menu a:hover`
   NEM matchel az MW renderre. */
.site-header .module-menu { display: flex; }
.site-header .module-menu > ul {
  display: flex; gap: 32px; list-style: none; margin: 0; padding: 0; align-items: center;
}
.site-header .module-menu > ul > li { position: relative; list-style: none; }
.site-header .module-menu li::marker { content: none; }
.site-header .module-menu .menu_element_link {
  text-decoration: none;
  white-space: nowrap;
  /* color / padding / font az `nav.primary a` Claude-emit szabálytól örökölt */
}
.site-header .module-menu .have-submenu-link::after {
  content: " \25BE"; font-size: 11px; opacity: 0.7; margin-left: 4px;
}
/* Dropdown (nested ul) */
.site-header .module-menu ul ul {
  position: absolute; top: 100%; left: 0; min-width: 260px;
  display: none; flex-direction: column;
  background: #fff; color: #1a1a2e;
  box-shadow: 0 12px 32px rgba(0,0,0,0.14);
  border-radius: 12px; padding: 8px; margin: 6px 0 0 0;
  z-index: 100; gap: 2px; list-style: none;
}
.site-header .module-menu > ul > li:hover > ul,
.site-header .module-menu > ul > li:focus-within > ul { display: flex; }
.site-header .module-menu ul ul li { width: 100%; list-style: none; }
.site-header .module-menu ul ul .menu_element_link {
  display: block; border-radius: 8px; padding: 8px 14px;
  font-size: 14px; font-weight: 400; white-space: normal; color: inherit;
}

/* ===== MW .element CLASS HEADING-FONT FIX (2026-06-11) ===== */
h1.element, h2.element, h3.element, h4.element,
.edit h1, .edit h2, .edit h3, .edit h4,
.main-content h1, .main-content h2, .main-content h3, .main-content h4 {
  font-family: var(--display) !important;
}


/* DSP compliance footer-block — cl3-a */
:root { --dsp-logo-height: 141px; }
.cl3-a-dsp { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 24px 10px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.cl3-a-dsp .dsp-logos { display: flex; align-items: center; gap: 50px; }
.cl3-a-dsp .dsp-logo { height: var(--dsp-logo-height); width: auto; padding: 10px; display: block; }
.cl3-a-dsp .dsp-logo-link { display: inline-block; line-height: 0; }
.cl3-a-dsp .dsp-statement { max-width: 720px; text-align: center; font-size: 0.875rem; line-height: 1.5; margin: 0; color: #fff; }
@media (max-width: 1024px) {
  .cl3-a-dsp .dsp-logos { gap: 32px; }
}
@media (max-width: 768px) {
  .cl3-a-dsp .dsp-logos { gap: 20px; flex-wrap: wrap; justify-content: center; }
}


/* ===== LEGAL-PAGES-DEFAULT-STYLES ===== */
/* Impresszum + Adatvédelmi page styling (add-default-legal-pages-v2 — rk-teto pattern). */
.impresszum-wrap, .adatvedelmi-wrap { max-width: 980px; margin: 0 auto; padding: 32px 20px 80px; line-height: 1.65; color: #4a4a4a; }

/* Intro box — left brand-border, soft gray bg. */
.impresszum-intro-box, .adatvedelmi-intro-box {
  background: #f5f5f5;
  border-left: 4px solid var(--primary, currentColor);
  padding: 24px 28px;
  border-radius: 8px;
  margin: 0 0 48px;
  line-height: 1.75;
}
.impresszum-intro-box p, .adatvedelmi-intro-box p { margin: 0; }

/* Section heading — UPPERCASE + MDI-icon + thin divider. */
.impresszum-section, .adatvedelmi-section { margin: 48px 0; }
.impresszum-h2, .adatvedelmi-h2 {
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid #eaeaea;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #1a1a1a;
}
.impresszum-h2 > i, .adatvedelmi-h2 > i { color: var(--primary, currentColor); font-size: 1.4em; line-height: 1; }

/* Card grid for identity data (Üzemeltető / Adatkezelő). */
.impresszum-grid, .adatvedelmi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.impresszum-card, .adatvedelmi-card {
  background: #fff;
  border: 1px solid #eaeaea;
  border-radius: 8px;
  padding: 18px 20px;
}
.impresszum-label, .adatvedelmi-label {
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: #888;
  font-weight: 600;
  margin-bottom: 8px;
}
.impresszum-value, .adatvedelmi-value { color: #1a1a1a; font-weight: 500; }
.adatvedelmi-value a { color: inherit; text-decoration: none; }
.adatvedelmi-value a:hover { text-decoration: underline; }

/* TODO placeholders — italic + brand color. */
.impresszum-todo, .adatvedelmi-todo {
  color: var(--primary, currentColor) !important;
  font-style: italic;
  font-weight: 500;
}

/* Pill-style contact links. */
.impresszum-contact-row, .adatvedelmi-contact-row { display: flex; flex-wrap: wrap; gap: 12px; }
.impresszum-pill, .adatvedelmi-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid #eaeaea;
  border-radius: 8px;
  padding: 14px 22px;
  color: #1a1a1a;
  text-decoration: none;
  font-weight: 500;
}
.impresszum-pill > i, .adatvedelmi-pill > i { color: var(--primary, currentColor); font-size: 1.15em; }
.impresszum-pill:hover, .adatvedelmi-pill:hover { background: #fafafa; }

/* Lists (Adatvédelmi célok + Érintetti jogok). */
.adatvedelmi-list { padding-left: 22px; margin: 0; }
.adatvedelmi-list li { margin: 6px 0; }

/* Body paragraphs in legal sections. */
.impresszum-section > p, .adatvedelmi-section > p { margin: 0; }

/* Footer legal-link visibility (B4) — visible on dark footers. */
.footer .footer-bottom-links, .footer-bottom-links {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11.5px; letter-spacing: .06em;
  color: var(--light, #ffffff);
}
.footer .footer-bottom-links a, .footer-bottom-links a,
.footer .footer-bottom-links .footer-legal-link, .footer-bottom-links .footer-legal-link {
  color: inherit; text-decoration: none;
}
.footer .footer-bottom-links .footer-legal-link:hover,
.footer-bottom-links .footer-legal-link:hover { text-decoration: underline; }
.footer-legal-sep { opacity: 0.5; margin: 0 4px; user-select: none; }

@media (max-width: 640px) {
  .impresszum-wrap, .adatvedelmi-wrap { padding: 24px 16px 60px; }
  .impresszum-grid, .adatvedelmi-grid { grid-template-columns: 1fr; }
  .impresszum-section, .adatvedelmi-section { margin: 36px 0; }
}


/* ===== protected-contact (spam-védett elérhetőség) ===== */
.protected { display: inline-flex; flex-direction: column; gap: 12px; max-width: 320px; }
.protected__btn { display: inline-flex; align-items: center; gap: 10px; background: #fff; color: var(--text, #1A1A1A); border: 1px solid var(--border, #D9D4CC); border-radius: 2px; padding: 12px 16px; font-family: inherit; font-size: 14px; font-weight: 600; cursor: pointer; text-align: left; min-height: 44px; transition: border-color .2s ease, background .2s ease; }
.protected__btn:focus-visible { outline: 2px solid var(--red, #C8102E); outline-offset: 2px; }
.protected__btn-icon { flex: none; color: var(--faint, #9C968C); }
@media (hover: hover) and (pointer: fine) {
  .protected__btn:hover { border-color: var(--red, #C8102E); }
  .protected__btn:hover .protected__btn-icon { color: var(--red, #C8102E); }
}
.protected__puzzle { display: flex; flex-direction: column; gap: 10px; }
.protected__hint { font-size: 13px; color: var(--muted, #6B6660); line-height: 1.45; }
.protected__track { position: relative; width: 100%; max-width: 300px; height: 48px; background: #fff; border: 1px solid var(--border, #D9D4CC); border-radius: 26px; overflow: hidden; user-select: none; touch-action: none; }
.protected__track::before { content: attr(data-prompt); position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 13px; color: var(--faint, #9C968C); pointer-events: none; letter-spacing: 0.02em; }
.protected__fill { position: absolute; top: 0; left: 0; bottom: 0; width: 0; background: var(--red, #C8102E); opacity: 0.12; transition: width 0s linear; }
.protected__handle { position: absolute; top: 3px; left: 3px; width: 42px; height: 42px; border-radius: 50%; background: var(--red, #C8102E); color: #fff; border: none; cursor: grab; display: flex; align-items: center; justify-content: center; font-size: 18px; line-height: 1; transition: background .2s ease, transform .35s cubic-bezier(.16, 1, .3, 1); z-index: 2; }
.protected__handle:active { cursor: grabbing; }
.protected__handle:focus-visible { outline: 2px solid var(--red, #C8102E); outline-offset: 3px; }
.protected__handle.is-dragging { transition: none; }
.protected__handle.is-correct { background: var(--success, #1F7A43); }
.protected__handle .arrow { display: block; transform: translateY(-1px); }
.protected__value { display: inline-flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 600; color: var(--text, #1A1A1A); text-decoration: none; padding: 2px 0; }
@media (hover: hover) and (pointer: fine) {
  .protected__value:hover { color: var(--red, #C8102E); }
}
.protected__value-check { color: var(--success, #1F7A43); flex: none; }
.protected__value-text { letter-spacing: 0.01em; }
@media (max-width: 480px) { .protected__track { max-width: 100%; } }

/* kapcsolattartó telefon+email egymás alá (user kérés 2026-06-29) */
.contact__protected-pair{display:flex;flex-direction:column;gap:6px;align-items:flex-start;margin-top:4px}

/* footer kapcsolat: cím-sorok egymás alá + feltárt kontakt láthatóbb sötét footeren (2026-06-29) */
.footer__line{display:block;margin-bottom:3px}
.site-footer .protected__btn-text,.site-footer .protected a,.site-footer .protected__value{color:rgba(255,255,255,.85)!important}

/* footer protected gomb: átlátszó háttér + világos keret/szöveg sötét footeren (2026-06-29) */
.site-footer .protected__btn{background:transparent!important;border-color:rgba(255,255,255,.28)!important;color:rgba(255,255,255,.85)!important}

/* ===== mw-contact-form-editable-css: MW custom_fields, admin-editable (cl3-a, placeholder-only) ===== */
.contact__form .vc-fields > div { display:flex; flex-wrap:wrap; gap:16px; }
.contact__form .vc-fields [class*="mw-flex-col-md-"] { flex:0 0 100%; max-width:100%; box-sizing:border-box; }
.contact__form .vc-fields .mw-flex-col-md-6 { flex:0 0 calc(50% - 8px); max-width:calc(50% - 8px); }
.contact__form .vc-fields .mw-ui-field-holder { margin:0; }
.contact__form .vc-fields .mw-ui-label { display:none; } /* placeholder-only design (no labels) */
.contact__form .vc-fields .mw-ui-field,
.contact__form .vc-fields .form-select {
  width:100%; min-height:48px; background:#fff; border:1px solid #D9D4CC; border-radius:2px;
  padding:14px 16px; font-family:var(--font-body); font-size:15px; color:var(--ink);
  box-sizing:border-box; transition:border-color .2s ease;
}
.contact__form .vc-fields .mw-ui-field::placeholder { color:var(--muted-2); }
.contact__form .vc-fields .mw-ui-field:focus,
.contact__form .vc-fields .form-select:focus { outline:none; border-color:var(--red); }
.contact__form .vc-fields textarea.mw-ui-field { min-height:120px; resize:vertical; }
@media (max-width:560px) { .contact__form .vc-fields .mw-flex-col-md-6 { flex:0 0 100%; max-width:100%; } }


/* ===== ADATVEDELMI PDF-DOWNLOAD BLOCK (2026-08-04) =====
   The legal-page content emits .adatvedelmi-pdf-download / -pdf-btn /
   -fallback-note, but appendLegalCss() never shipped rules for them, so the
   download button rendered as a bare underlined link. */
.adatvedelmi-pdf-download { margin: 28px 0 36px; }
.adatvedelmi-pdf-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px; border-radius: 10px;
  background: var(--primary, #C8102E); color: #fff;
  font-weight: 600; font-size: 15px; line-height: 1; text-decoration: none;
  border: 1px solid transparent;
  transition: background .18s ease, transform .18s ease;
}
.adatvedelmi-pdf-btn:hover,
.adatvedelmi-pdf-btn:focus-visible { background: var(--red-dark, #A30D26); transform: translateY(-1px); color: #fff; }
.adatvedelmi-pdf-btn > i { color: #fff; font-size: 1.3em; line-height: 1; }
.adatvedelmi-pdf-fallback { margin: 0 0 8px; }
.adatvedelmi-fallback-note { font-size: 13px; line-height: 1.6; color: var(--muted, #6B6660); margin: 0; }
.adatvedelmi-fallback-note code {
  background: rgba(0,0,0,.05); padding: 2px 6px; border-radius: 4px; font-size: .95em;
}
@media (max-width: 640px) {
  .adatvedelmi-pdf-btn { width: 100%; justify-content: center; }
}
