/* ==========================================================================
   KAMELEON – KONSZOLIDÁLT, TISZTA CSS
   ========================================================================== */

/* ========== Változók ========== */
:root{
  --kam: #87b453;      /* zöld sáv háttér */
  --tile: 140px;       /* desktop cél csempe-méret */
  --tile-min: 72px;    /* desktop minimum csempe */
  --icon-scale: 0.72;  /* ikon aránya a csempén belül */
}

/* Alap apróságok */
html, body{ margin:0; }
.img-fluid{ display:block; max-width:100%; height:auto; }

/* ==========================================================================
   HERO / VIDEÓ / LOGÓ
   ========================================================================== */
.video-wrapper{ position:relative; height:100vh; overflow:hidden; }
.video-bg{ position:fixed; inset:0; width:100%; height:100%; object-fit:cover; object-position:top; z-index:-1; }
.content-left,.content-right{ position:relative; z-index:1; }
.content-left{ display:flex; align-items:center; justify-content:center; min-height:100vh; }
.logo{ max-width:35vw; height:auto; }
@media (min-width: 992px){
  .logo{ max-height:84vh; }   /* 8–8% levegő felül/alul */
}

/* ==========================================================================
   3×3 RÁCS – belső oldalakhoz (NEM a felső menü)
   ========================================================================== */
.racs{margin-bottom: 100px;}
.small-squares-grid{
  display:grid; grid-template-columns:repeat(3,1fr); grid-template-rows:repeat(3,1fr);
  gap:0; height:100%;
}
.small-squares-grid .small-square,
.small-squares-grid .small-square.card{
  position:relative; padding-top:100%; margin:0; border:0; border-radius:0; background:transparent;
  transform:translateZ(0); -webkit-backface-visibility:hidden; backface-visibility:hidden;
}
.small-squares-grid .card-body{ position:absolute; inset:0; display:grid; place-items:center; padding:0; }
.small-squares-grid .image-link{ position:absolute; inset:0; display:grid; place-items:center; text-decoration:none; }
.small-squares-grid .square-img{ display:block; max-width:80%; max-height:80%; transition:transform .18s ease; }
.small-squares-grid .image-link:hover .square-img{ transform:scale(1.2); }

/* Csempe-színek (a .card-body kapja) */
.tile-csomagolas { background:#87b453; }
.tile-arculat    { background:#fb61ae; }
.tile-strategia  { background:#4264a7; }
.tile-online     { background:#f38650; }
.tile-kiadvany   { background:#bdc54d; }
.tile-foto       { background:#b3a6a6; }
.tile-partnereink{ background:#65bffa; }
.tile-atlbtl     { background:#da393f; }
.tile-strategy   { background:#65065c; }
.tile-kapcsolat  { background:#fec956; }

/* ==========================================================================
   FELSŐ MENÜSÁV – BAL: brand, JOBB: menü (9×1 / 3×3)
   ========================================================================== */
.bg-kam{ background:var(--kam); }
.content-fluid.bg-kam{ padding:0; overflow-x:clip; }
.content-fluid.bg-kam > .container-xxl{ width:100%; max-width:100%; padding-inline:0; margin:0; }
.content-fluid.bg-kam .row{ --bs-gutter-x:0; --bs-gutter-y:0; margin:0; }

.menu-row{ min-height:0; align-items:flex-start; }

/* bal hasáb: brand */
.brand-wrap{
  display:flex; align-items:center; gap:14px; padding:0; justify-content:flex-start;
  margin-left:20px; /* ha teljesen bal szél kell: 0 */
}
.home-ico{
  display:inline-flex; align-items:center; justify-content:center;
  width:40px; height:40px; background:#fff; color:#222; border-radius:8px; text-decoration:none;
}
.brand-logo img{ display:block; width:auto; }

/* logó skálázása */
@media (min-width: 992px){
  .brand-logo img{ height: clamp(56px, calc((50vw / 9) * 0.72), 100px); }
}
@media (min-width: 576px) and (max-width: 991.98px){
  .brand-logo img{ height: clamp(56px, calc((100vw / 9) * 0.72), 100px); }
}
@media (max-width: 575.98px){
  .brand-logo img{ height: clamp(56px, calc((100vw / 3) * 0.72), 100px); }
}

/* amikor a menü leugrik: brand középre */
@media (max-width: 991.98px){
  .menu-row > [class*="col-"]:first-child{
    display:flex; justify-content:center !important; padding:0 !important;
  }
  .brand-wrap{ margin:0 auto !important; justify-content:center !important; }
}

/* jobb hasáb: MENÜ rács */
.menu-row > [class*="col-"]:last-child{ display:flex; justify-content:flex-end; padding:0; }
.squares-bar{ display:grid; gap:0; margin:0; padding:0; }

/* Desktop & Tablet: 1 sorban, tetszőleges elemszám (—count) */
@media (min-width: 576px){
  .squares-bar{
    /* hány kocka? alap 9, de felülírható: style="--count:10" */
    grid-template-columns: repeat(var(--count, 9), minmax(var(--tile-min), 1fr));
    width:100%;
    max-width: calc(var(--tile) * var(--count, 9));
    margin-left:auto; /* jobbra zárás */
  }
  .squares-bar .small-square{ aspect-ratio:1 / 1; width:auto; height:auto; }
}
/* Mobil: 3×3, a brand alatt középen */
@media (max-width: 575.98px){
  .menu-row > [class*="col-"]:last-child{ justify-content:center; }
  .squares-bar{
    grid-template-columns: repeat(3, 1fr);
    width:100%;
    max-width:520px; margin:12px auto 0;
  }
  .squares-bar .small-square{ aspect-ratio:1/1; }
}

/* csempe belső struktúra + hover */
.small-square{
  border:0; border-radius:0; background:transparent; margin:0;
  display:flex; align-items:center; justify-content:center;
}
.small-square .card-body{
  width:100%; height:100%; padding:0; border-radius:0; overflow:hidden;
  display:flex; align-items:center; justify-content:center;
}
.image-link{ width:100%; height:100%; display:flex; align-items:center; text-decoration:none; }
.squares-bar .image-link{ justify-content:center; }        /* csak menüben középre */
.small-squares-grid .image-link{ display:grid; place-items:center; } /* 3×3-on középre */

.square-img{
  display:block;
  max-width:calc(var(--icon-scale) * 100%);
  max-height:calc(var(--icon-scale) * 100%);
  transition:transform .18s ease; transform-origin:center;
}
.image-link:hover .square-img,
.image-link:focus-visible .square-img{ transform:scale(1.2); }
.image-link:focus-visible{ outline:2px solid rgba(255,255,255,.9); outline-offset:-2px; }

/* ==========================================================================
   Képek 100% szélesség  
   ========================================================================== */

.full-bleed{
  padding-left:0 !important;
  padding-right:0 !important;
  overflow-x: clip; /* vagy hidden, ha clip nem támogatott */
}
.full-bleed img{
  display:block;
  width:100%;
  height:auto;
  line-height:0;
}

/* ==========================================================================
   SLIDEREK – csúszás (nem áttűnés)
   ========================================================================== */
.container-fluid:has(.slider-block){ padding-top:0; padding-bottom:0; }
.container-fluid:has(> .slider-block){ padding-left:0; padding-right:0; }

.slider-block{ width:100%; margin:0 !important; padding:0 !important; line-height:0; overflow-x:clip; }
.slider-block + .slider-block{ margin-top:0 !important; }

.kam-slider{ --ratio:16/9; position:relative; aspect-ratio:var(--ratio); overflow:hidden; background:#111; }
.slides{
  position:relative; width:100%; height:100%;
  display:flex; gap:0; transform:translateX(0%); transition:transform .45s ease; will-change:transform;
}
.slide{
  position:relative; flex:0 0 100%; opacity:1; transition:none;
}
.slide img{ width:100%; height:100%; object-fit:cover; display:block; }

.kam-slider .nav{
  position:absolute; top:50%; transform:translateY(-50%); z-index:2;
  width:72px; height:72px; display:grid; place-items:center;
  background:rgba(255,255,255,.85); border:0; border-radius:50%;
  box-shadow:0 4px 24px rgba(0,0,0,.25);
  transition:transform .15s ease, background .15s ease; cursor:pointer;
}
.kam-slider .nav.prev{ left:12px; } .kam-slider .nav.next{ right:12px; }
.kam-slider .nav:hover{ transform:translateY(-50%) scale(1.05); background:#fff; }
.kam-slider .nav:active{ transform:translateY(-50%) scale(0.98); }
.kam-slider .nav:focus-visible{ outline:3px solid #fff; outline-offset:2px; }
.kam-slider .nav svg{ width:34px; height:34px; fill:#111; }
@media (max-width: 575.98px){
  .kam-slider .nav{ width:56px; height:56px; }
  .kam-slider .nav svg{ width:28px; height:28px; }
}

/* === SLIDER: UA defaultok lenullázása (figure margin, baseline, stb.) === */
.kam-slider{ line-height: 0; }                /* baseline-csík ellen */
.kam-slider .slides{ margin:0; padding:0; }
.kam-slider .slide{ margin:0; padding:0; border:0; }
.kam-slider figure.slide{ margin:0; }         /* ha <figure class="slide"> a markup */
.kam-slider img{ display:block; }             /* baseline-csík ellen biztos ami biztos */

/* opcionális, ha néha subpixel-hajszál maradna: */
/* .kam-slider{ overflow: clip; }  legacy: overflow:hidden; */
/* .kam-slider .slide img{ height: calc(100% + 1px); object-fit: cover; } */

/* Alsó vonal indikátorok */
.line-indicators{
  position:absolute; left:50%; bottom:12px;
  transform:translateX(-50%);
  display:flex; gap:8px; z-index:3;
  pointer-events:auto;
}
.line-indicators .line{
  width:28px; height:3px; border:0; padding:0;
  background: rgba(255,255,255,.5);
  cursor:pointer;
  box-shadow:0 1px 15px rgba(0,0,0,.50);
}
.line-indicators .line.active{ background:#fff; }
/* kisebb mobilon */
@media (max-width:575.98px){
  .line-indicators{ bottom:8px; gap:6px; }
  .line-indicators .line{ width:22px; height:3px; }
}



/* ==========================================================================
   SZÖVEGBLOKK
   ========================================================================== */
.szoveg{ color:#fff; line-height:30px; padding-right:40px; }
@media (max-width: 991.98px){ .szoveg{ padding-left:20px; } }
@media (max-width: 767.98px){
  .video-wrapper{ position:relative; height:auto; overflow:visible; background:var(--kam); line-height:0; }
  .video-bg{ position:relative; inset:auto; width:100%; height:auto; object-fit:contain; object-position:top center; z-index:0; display:block; }
  .content-left{ position:static; display:flex; justify-content:center; align-items:center; padding:16px 0; background:var(--kam); }
  .logo{ max-width:60vw; margin:0 auto; padding-top:80px; padding-bottom:60px; }
  .szoveg{ padding-left:20px; }
}

/* ==========================================================================
   KISEGÍTŐ / MOZGÁS
   ========================================================================== */
@media (prefers-reduced-motion: reduce){
  .small-squares-grid .square-img, .square-img, .slides{ transition:none; }
}
@supports (padding:max(0px)){ body{ padding-bottom:max(0px, env(safe-area-inset-bottom)); } }

/* ==========================================================================
   SPECIÁLIS SZEKCIÓ: „térkép + (piros/szürke) + bal kép” – CSAK ITT törj 1700-nál
   ========================================================================== */
/* wrapper: <div class="content-fluid split-1700">… */
.split-1700 .row.g-0{ align-items:stretch !important; }

/* piros/szürke dobozok */
.piros, .szurke{ display:flex; flex-direction:column; color:#fff; }
.piros{ background:#e30613; }
.szurke{ background:#5b5b5b; }
.szurke a{ color:#ffae00; text-decoration:none; }
.szurke a:hover{ color:#f5e07b; }

/* térképes col */
.split-1700 .map-col{ padding:0 !important; display:flex; }
.split-1700 .map-fill{
  display:flex; flex-direction:column; flex:1 1 auto; min-height:0; overflow:hidden;
}
.split-1700 .map-fill iframe{ width:100%; height:100%; border:0; display:block; }

/* 1700px alatt: bal 100%, alatta a két jobb 50–50% (CSAK ebben a wrapperben) */
@media (max-width: 1700px){
  .split-1700 .row.g-0{ flex-wrap:wrap; }
  .split-1700 .row.g-0 > :nth-child(1){ flex:0 0 100%; max-width:100%; }
  .split-1700 .row.g-0 > :nth-child(2),
  .split-1700 .row.g-0 > :nth-child(3){ flex:0 0 50%; max-width:50%; }
}

/* ≤991.98px: mind 100% (egymás alatt) – CSAK a wrapperben */
@media (max-width: 991.98px){
  .split-1700 .row.g-0{ flex-wrap:wrap !important; }
  .split-1700 .row.g-0 > *{ flex:0 0 100% !important; max-width:100% !important; }
  .split-1700 .map-fill{ min-height:320px; } /* kényelmi magasság külön sorban */
}

.back-to-top {

            background-color: rgb(124, 124, 124);
            opacity: 0.5;

            color: red;
            font-size: 20px;
            border-radius: 3px;
            position: fixed;
            bottom: 30px;
            right: 30px;
            width: 40px;
            text-align: center;
            z-index: 110;
            transition: opacity 300ms ease-in-out;
            padding: 10px;
        }

        .back-to-top a {
            color: rgb(255, 255, 255);



        }

.back-to-top{
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease;
}
.back-to-top.is-visible{
  opacity: .95;
  pointer-events: auto;
  transform: none;
}
html { scroll-behavior: smooth; } /* modern böngészőkben sima felgördülés */



/* lightbox */

/* ===== LIGHTBOX – overlay + UI ===== */
.lb-overlay{
  position: fixed; inset: 0;
  background: rgba(0,0,0,.9);
  z-index: 3000;
  padding: 4vmin;
  display: none;                        /* <-- CSAK ez marad itt */
  align-items: center; justify-content: center; /* flex beállításokat meghagyhatod,
                                                   de csak .open alatt lesz hatásuk */
}
.lb-overlay.open{ display: flex; }

/* kép + felirat */
.lb-figure{
  margin: 0;
  max-width: 92vw; max-height: 90vh;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.lb-image{
  max-width: 92vw; max-height: 80vh;
  width: auto; height: auto; display: block;
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0,0,0,.5);
}
.lb-caption{
  color: #fff; text-align: center;
  font-size: clamp(14px, 1.6vw, 18px);
  opacity: .9;
}

/* vezérlők */


/* csak a bezáró maradjon */
.lb-prev,
.lb-next,
.line-indicators{
  display: none !important;
}

/* biztos ami biztos: legyen nagyítós kurzor a rács képein */
.js-gallery img{ cursor: zoom-in; }

/* --- Bezáró gomb: fehér kör, fekete X, jobb felső sarok --- */
.lb-btn.lb-close{
  position: fixed;                          /* fix a viewporthoz */
  top: calc(env(safe-area-inset-top) + 12px);
  right: calc(env(safe-area-inset-right) + 12px);
  width: 44px;
  height: 44px;
  border-radius: 9999px;
  background: #fff;
  color: #111;                               /* svg currentColor-ral örökli */
  border: none;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(0,0,0,.2);
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
  z-index: 3100;                             /* az overlay fölött tuti */
  -webkit-tap-highlight-color: transparent;  /* mobil tap highlight off */
}

.lb-btn.lb-close:hover{ 
  transform: scale(1.06);
  box-shadow: 0 8px 28px rgba(0,0,0,.25);
}

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

.lb-btn.lb-close:focus-visible{
  outline: 3px solid rgba(255,255,255,.9);
  outline-offset: 2px;
}

/* kisebb a gomb mobilon */
@media (max-width: 575.98px){
  .lb-btn.lb-close{ width: 40px; height: 40px; }
}

/* ha még bárhol megvan: prev/next/indikátorok végleg rejtve */
.lb-prev, .lb-next, .line-indicators{ display: none !important; }

/* Overlay és close gombod már megvan — ez a media rész */
.lb-figure{ margin:0; max-width:min(92vw, 1600px); max-height:86vh; position:relative; }
.lb-media{ width:100%; height:100%; display:grid; place-items:center; }
.lb-image, .lb-video{
  width:100%; height:100%;
  object-fit: contain;     /* ha inkább kitöltse: tedd 'cover'-re */
  background:#000;
  border-radius:8px;
}







  

