/*
Theme Name: CFS Group template
Author: Compose-IT Ltd.
Version: 1.0
Description: CFS Group template
*/

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

body {
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: #1a2b4a;
  line-height: 1.65;
  background: #fff;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ── NAVIGÁCIÓ ─────────────────────────────────────────── */
.navbar {
  background: #ffffff;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px; height: 68px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.25);
}

.navbar-logo {
  color: #fff;
  font-size: 1.35rem; font-weight: 800; letter-spacing: 0.5px;
}
.navbar-logo span { color: #60a5fa; }

.navbar-links {
  display: flex; gap: 24px; list-style: none;
}
.navbar-links a {
  color: #0f2744;
  font-size: 0.9rem; font-weight: 500;
  transition: color .2s;
}
.navbar-links a:hover, .navbar-links a.active { color: #1d4ed8; }

.navbar-cta {
  background: #2563eb; color: #fff;
  padding: 10px 26px; border-radius: 50px;
  font-weight: 600; font-size: 0.88rem;
  transition: background .2s;
}
.navbar-cta:hover { background: #1d4ed8; }

/* ── GOMBOK ────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 14px 36px; border-radius: 50px;
  font-weight: 600; font-size: 0.95rem; margin: 6px;
  transition: all .2s; cursor: pointer; border: none;
}
.btn-primary { background: #2563eb; color: #fff; }
.btn-primary:hover { background: #1d4ed8; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(37,99,235,.35); }
.btn-outline { border: 2px solid rgba(255,255,255,.75); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,.12); }
.btn-dark { background: #0f2744; color: #fff; }
.btn-dark:hover { background: #1a3a6b; }

/* ── HERO ──────────────────────────────────────────────── */
.hero {
  /* max-height: 80dvh; */
  padding: 60px 12px 0;
  text-align: center; color: #fff;
  background-size: cover; background-position: center;
}
.hero h1 {
  font-size: clamp(1.6rem, 4vw, 3rem);
  font-weight: 800; line-height: 1.18;
  max-width: 820px; margin: 0 auto 22px;
}
.hero p {
  font-size: 1.1rem; opacity: .9;
  max-width: 620px; margin: 0 auto 36px;
}

/* ── BELSŐ OLDALAK BANNER ──────────────────────────────── */
.page-banner {
  padding: 90px 48px;
  text-align: center; color: #fff;
}
.page-banner h1 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800; margin-bottom: 14px;
}
.page-banner p { font-size: 1.05rem; opacity: .88; max-width: 560px; margin: 0 auto; }

/* ── SZEKCIÓ ÁLTALÁNOS ─────────────────────────────────── */
section { padding: 24px 12px; }
.bg-white  { background: #ffffff; }
.bg-light  { background: #f4f7fb; }
.bg-dark   { background: linear-gradient(135deg, #0d2137, #1a3a6b); }
.bg-navy   { background: #0f2744; }

.container { max-width: 1100px; margin: 0 auto; }

.section-head {
  text-align: center; margin-bottom: 56px;
}
.section-head h2 {
  font-size: clamp(1.6rem, 2.5vw, 2.1rem);
  font-weight: 700; color: #0f2744; margin-bottom: 14px;
}
.section-head p {
  color: #5a6a8a; font-size: 1.02rem;
  max-width: 700px; margin: 0 auto;
}

/* ── COUNTERS ──────────────────────────────────────────── */
.counters {
  display: grid;
  /* MOBILON: 2 egyenlő oszlop */
  grid-template-columns: repeat(2, 1fr);
  gap: 32px; /* Mobilon picit kisebb, de kényelmes rés */
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.counter {
  text-align: center;
}

.counter-num {
  /* A clamp() segítségével mobilon 2.5rem (kb. 40px), nagy gépen 3.5rem (kb. 56px) lesz a szám */
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  font-weight: 800;
  color: #1e4fa3;
  line-height: 1;
}

.counter-label {
  color: #5a6a8a;
  font-size: 0.95rem;
  margin-top: 8px;
}

/* ASZTALI monitorok és nagyobb kijelzők (768px szélesség felett) */
@media (min-width: 768px) {
  .counters {
    /* Átvált a szép, egyenes 4 oszlopos elrendezésre */
    grid-template-columns: repeat(4, 1fr);
    gap: 64px; /* Visszakapja a tágas, eredeti térközt */
    padding: 0;
  }
}

/* ── KÁRTYÁK ───────────────────────────────────────────── */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}
.card {
  background: #fff; border-radius: 14px;
  padding: 28px 26px;
  box-shadow: 0 4px 22px rgba(15,39,68,.08);
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-5px); box-shadow: 0 10px 36px rgba(15,39,68,.14); }
.card-icon {
  width: 50px; height: 50px;
  background: #e8f0fe; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; margin-bottom: 18px;
}
.card h3 { font-size: 1.05rem; font-weight: 700; color: #0f2744; margin-bottom: 8px; }
.card p  { color: #5a6a8a; font-size: 0.92rem; line-height: 1.6; }
.card .card-link {
  display: inline-block; margin-top: 14px;
  color: #2563eb; font-weight: 600; font-size: 0.88rem;
  transition: gap .2s;
}
.card .card-link:hover { text-decoration: underline; }

/* Ágazat kártya – képpel */
.service-card-img {
  border-radius: 10px; overflow: hidden;
  margin-bottom: 18px; height: 180px;
}
.service-card-img img { width: 100%; height: 100%; object-fit: cover; }

/* ── SERVICE SZEKCIÓK ──────────────────────────────────── */
/* ==========================================================================
   ALAPÉRTELMEZETT / MOBIL ELRENDEZÉS (Mobile First)
   ========================================================================== */

.service-grid {
  display: grid;
  grid-template-columns: 1fr; /* Mobilon 1 oszlop fentről lefelé */
  gap: 32px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.service-grid.flip {
  direction: ltr;
}
.service-grid.flip > div {
  direction: ltr;
}

.service-img {
  order: 1; /* Kép van felül */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(15,39,68,.12);
  width: 100%;
  height: 260px;
  position: relative;
}

.service-text {
  order: 2; /* Szöveg van alul */
}

.service-text h2 {
  font-size: clamp(1.4rem, 5vw, 1.75rem);
  font-weight: 700;
  color: #0f2744;
  margin-bottom: 14px;
}
.service-text p { color: #4a5a7a; margin-bottom: 14px; line-height: 1.65; font-size: 0.95rem; }

.checklist { list-style: none; margin: 16px 0; padding-left: 0; }
.checklist li {
  padding: 8px 0 8px 24px; position: relative;
  color: #2a3a5a; font-size: 0.92rem;
  border-bottom: 1px solid #eef1f7;
}
.checklist li::before { content: "✓"; position: absolute; left: 0; color: #2563eb; font-weight: 700; }

/* ==========================================================================
   ASZTALI KIJELZŐK (992px felett) - EREDETI EGYMÁS MELLETTI REND
   ========================================================================== */

@media (min-width: 992px) {
  .service-grid {
    grid-template-columns: 1fr 1fr; /* 2 egyenlő oszlop egymás mellett */
    gap: 64px;
    padding: 0;
  }

  /* Asztali gépen újra működik a váltott irányú sakktábla */
  .service-grid.flip {
    direction: rtl;
  }
  .service-grid.flip > div {
    direction: ltr;
  }

  /* Visszaállítjuk az eredeti, natív sorrendet asztali gépen */
  .service-img {
    order: unset;
    height: 400px;
    border-radius: 18px;
  }

  .service-text {
    order: unset;
  }
}

/* ==========================================================================
   KÉPSTRIPEK ÉS ANIMÁCIÓK
   ========================================================================== */

.img-strip-3 { display: flex; width: 300%; height: 100%; animation: slideStrip3 9s infinite; }
.img-strip-4 { display: flex; width: 400%; height: 100%; animation: slideStrip4 12s infinite; }
.img-strip-5 { display: flex; width: 500%; height: 100%; animation: slideStrip5 15s infinite; }
.img-strip-6 { display: flex; width: 600%; height: 100%; animation: slideStrip6 18s infinite; }

.img-strip-3 img { width: 33.33%; height: 100%; object-fit: cover; }
.img-strip-4 img { width: 25%; height: 100%; object-fit: cover; }
.img-strip-5 img { width: 20%; height: 100%; object-fit: cover; }
.img-strip-6 img { width: 16.6667%; height: 100%; object-fit: cover; }

@keyframes slideStrip3 {
  0%, 28%   { transform: translateX(0%); }
  33%, 61%  { transform: translateX(-33.33%); }
  66%, 94%  { transform: translateX(-66.66%); }
  100%      { transform: translateX(0%); }
}
@keyframes slideStrip4 {
  0%, 20%   { transform: translateX(0%); }
  25%, 45%  { transform: translateX(-25%); }
  50%, 70%  { transform: translateX(-50%); }
  75%, 95%  { transform: translateX(-75%); }
  100%      { transform: translateX(0%); }
}
@keyframes slideStrip5 {
  0%, 15%   { transform: translateX(0%); }
  20%, 35%  { transform: translateX(-20%); }
  40%, 55%  { transform: translateX(-40%); }
  60%, 75%  { transform: translateX(-60%); }
  80%, 95%  { transform: translateX(-80%); }
  100%      { transform: translateX(0%); }
}
@keyframes slideStrip6 {
  0%, 11%    { transform: translateX(0%); }
  16%, 27%   { transform: translateX(-16.6667%); }
  32%, 43%   { transform: translateX(-33.3333%); }
  48%, 59%   { transform: translateX(-50%); }
  64%, 75%   { transform: translateX(-66.6667%); }
  80%, 91%   { transform: translateX(-83.3333%); }
  100%       { transform: translateX(0%); }
}

/* ── PARTNER LOGÓK ─────────────────────────────────────── */
.partner-grid {
  display: grid;
  /* Kicseréltük a fix repeat(5...)-öt az okos minmax tördelésre */
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px; /* Biztonsági margó, hogy mobilon se tapadjanak a szélre a dobozok */
  box-sizing: border-box;
}

.partner-item {
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 76px;
  opacity: 0.85;
  transition: opacity .25s;
  flex-direction: column;
  box-sizing: border-box; /* Hogy a padding ne növelje meg a 76px-es magasságot */
}

.partner-item:hover {
  opacity: 1;
}

.partner-item img {
  max-width: 100%;
  max-height: 40px;
  object-fit: contain;
}

/* ── CTA SZEKCIÓ ───────────────────────────────────────── */
.cta-inner {
  text-align: center; color: #fff;
}
.cta-inner h2 {
  font-size: clamp(1.6rem, 2.5vw, 2.1rem);
  font-weight: 700; margin-bottom: 16px;
}
.cta-inner p {
  font-size: 1.02rem; opacity: .9;
  max-width: 560px; margin: 0 auto 34px;
}

/* ==========================================================================
   RÓLUNK OLDAL RESZPONZÍV STÍLUSOK (Mobile First)
   ========================================================================== */

/* --- Bemutatkozás blokk --- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr; /* Mobilon alapból 1 teljes szélességű oszlop */
  gap: 32px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.about-grid .service-img {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(15,39,68,.12);
  width: 100%;
  height: 260px; /* Mobilon kicsit alacsonyabb kép, mint asztali gépen */
  position: relative;
}

.motto {
  font-style: italic;
  font-weight: 600;
  color: #1e4fa3;
  border-left: 3px solid #1e4fa3;
  padding-left: 15px;
  margin-top: 20px;
}

/* --- Számlálók blokk --- */
.counters {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* Mobilon 2x2-es elrendezés üres cellák nélkül */
  gap: 32px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.counter {
  text-align: center;
}

.counter-num {
  font-size: clamp(2.5rem, 6vw, 3.5rem); /* Intelligens méret: mobilon kisebb, PC-n nagy (56px) */
  font-weight: 800;
  color: #1e4fa3;
  line-height: 1;
}

.counter-label {
  color: #5a6a8a;
  font-size: 0.95rem;
  margin-top: 8px;
}

/* ==========================================================================
   ASZTALI MONITOROK (992px felett)
   ========================================================================== */

@media (min-width: 992px) {
  .about-grid {
    grid-template-columns: 1fr 1fr; /* PC-n egymás mellett a kép és a szöveg */
    gap: 64px;
    padding: 0;
  }

  .about-grid .service-img {
    height: 400px; /* Visszakapja az eredeti asztali magasságot */
    border-radius: 18px;
  }

  .counters {
    grid-template-columns: repeat(4, 1fr); /* PC-n szép, egyenes 4 oszlopos sor */
    gap: 64px;
    padding: 0;
  }
}

/* ── RÓLUNK ÉRTÉKEK ────────────────────────────────────── */
.values { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 24px; }
.value-item { padding: 28px; background: #fff; border-radius: 14px; box-shadow: 0 4px 22px rgba(15,39,68,.07); }
.value-num { font-size: 2.4rem; font-weight: 800; color: #2563eb; margin-bottom: 8px; }
.value-item h3 { font-size: 1.05rem; font-weight: 700; color: #0f2744; margin-bottom: 6px; }
.value-item p { color: #5a6a8a; font-size: 0.92rem; }

/* ==========================================================================
   ALAPÉRTELMEZETT / MOBIL ELRENDEZÉS (Mobile First)
   ========================================================================== */

/* ── KAPCSOLAT FŐ ELRENDEZÉS ── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr; /* Mobilon 1 oszlop: az elérhetőségek alá jön az űrlap */
  gap: 40px; /* Mobilon picit kisebb távolság is elég */
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px; /* Oldalsó biztonsági margó, hogy ne tapadjon a kijelző széléhez */
  box-sizing: border-box;
}

.contact-info h2 { font-size: 1.6rem; font-weight: 700; color: #0f2744; margin-bottom: 20px; }
.contact-info p  { color: #5a6a8a; margin-bottom: 28px; line-height: 1.5; }
.contact-item { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 20px; }
.contact-item-icon {
  width: 44px; height: 44px; background: #e8f0fe;
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; flex-shrink: 0;
}
.contact-item-text strong { display: block; color: #0f2744; font-weight: 600; font-size: 0.9rem; }
.contact-item-text span   { color: #5a6a8a; font-size: 0.9rem; word-break: break-all; } /* Hosszú e-mail címek ne toljanak ki semmit */

/* ── ŰRLAP (FORM) ── */
.contact-form {
  background: #fff;
  padding: 24px; /* Mobilon picit kisebb belső párnázás */
  border-radius: 16px;
  box-shadow: 0 6px 32px rgba(15,39,68,.10);
}

.contact-form h3 { font-size: 1.3rem; font-weight: 700; color: #0f2744; margin-bottom: 24px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr; /* Mobilon minden beviteli mező egymás alá kerül */
  gap: 12px;
}

.form-group { margin-bottom: 6px; }
.form-group.full { grid-column: 1/-1; }
.form-group label { display: block; font-weight: 600; font-size: 0.85rem; color: #0f2744; margin-bottom: 7px; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 12px 15px;
  border: 2px solid #e0e8f4; border-radius: 9px;
  font-size: 0.95rem; color: #1a2b4a;
  background: #fafcff; font-family: inherit;
  transition: border-color .2s;
  box-sizing: border-box; /* Hogy a padding ne nyomja szét a szélességet */
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { outline: none; border-color: #2563eb; }
.form-group textarea { height: 130px; resize: vertical; }

/* ── TÉRKÉP ── */
.map-frame iframe {
  display: block;
  border: 0;
  height: 300px; /* Mobilon kicsit alacsonyabb térkép bőven elég */
}

/* ==========================================================================
   ASZTALI KIJELZŐK (768px vagy 992px felett)
   ========================================================================== */

/* Tabletek és kis laptopok felett az űrlap mezői már lehetnek 2 oszloposak */
@media (min-width: 768px) {
  .form-row {
    grid-template-columns: 1fr 1fr; /* Visszakapja a kétoszlopos struktúrát */
    gap: 18px;
  }
  .form-group { margin-bottom: 18px; }
}

/* Normál monitorok felett a teljes oldal elrendezése visszaáll egymás mellé */
@media (min-width: 992px) {
  .contact-layout {
    grid-template-columns: 1fr 1.6fr; /* Elérhetőség balra, űrlap jobbra */
    gap: 60px;
    padding: 0;
  }

  .contact-form {
    padding: 36px; /* Tágasabb asztali térközök */
  }

  .map-frame iframe {
    height: 420px; /* Visszakapja az eredeti asztali magasságot */
  }
}

/* ── LÁBLÉC ────────────────────────────────────────────── */
footer {
  color: #0a1e38;
  padding: 64px 48px 28px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.25);
}
.footer-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr; /* Mobilon 1 darab teljes szélességű oszlop */
  gap: 32px; /* Mobilon picit kisebb rés is elég a dobozok között */
  padding: 0 20px 44px 20px; /* Adunk egy kis oldalsó belső margót, hogy mobilon ne tapadjon a képernyő széléhez */
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-logo { font-size: 1.4rem; font-weight: 800; color: #0a1e38; margin-bottom: 12px; }
.footer-logo span { color: #60a5fa; }
.footer-desc { font-size: 0.88rem; line-height: 1.8; }
.footer-col h4 { color: #0a1e38; font-weight: 600; margin-bottom: 16px; font-size: 0.92rem; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; color: #0a1e38; font-size: 0.88rem; transition: color .2s;}
.footer-col a { color: #0a1e38; font-size: 0.88rem; transition: color .2s; }
.footer-col a:hover { color: #1d4ed8; }
.footer-bottom {
  max-width: 1100px; margin: 24px auto 0;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.83rem;
}
.footer-social { display: flex; gap: 14px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 8px;
  background: rgba(0,0,0,.2);
  display: flex; align-items: center; justify-content: center;
  color: #0a1e38; font-size: 0.85rem;
  transition: background .2s;
}
.footer-social a:hover { background: rgba(0, 0, 0,.15); color: #0a1e38; }

/* ── MOTTÓ ─────────────────────────────────────────────── */
.motto {
  font-style: italic;
  color: #1e4fa3; font-weight: 600; font-size: 1.05rem;
  border-left: 4px solid #2563eb; padding-left: 16px;
}

/* ── TÉRKÉP ────────────────────────────────────────────── */
.map-frame { border-radius: 16px; overflow: hidden; box-shadow: 0 6px 32px rgba(15,39,68,.12); }
.map-frame iframe { display: block; border: 0; }

@property --overlay-color {
  syntax: '<color>';
  initial-value: rgba(10, 28, 55, 0.8);
  inherits: false;
}

.hero {
    --overlay-color: rgba(10, 28, 55, 0.8);
    position: relative;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    animation: heroSlideshow 35s infinite ease-in-out;
    transition: --overlay-color 0.8s ease-in-out;
}

.hero:hover {
    --overlay-color: rgba(10, 28, 55, 0.2);
}

body::after {
  position: absolute; width: 1px; height: 1px; overflow: hidden; z-index: -1;
  content:
    url('images/alpin.webp')
    url('images/torony_1.webp')
    url('images/hero.webp')
    url('images/napelem.webp')
    url('images/torony_2.webp')
    url('images/torony_3.webp')
    url('images/zoldterulet.webp');
}

@keyframes heroSlideshow {
  0%, 100% {
    background-image: linear-gradient(var(--overlay-color), var(--overlay-color)), url('images/alpin.webp');
    background-position: center 50%;
  }
  14% {
    background-image: linear-gradient(var(--overlay-color), var(--overlay-color)), url('images/torony_1.webp');
    background-position: center 55%;
  }
  28% {
    background-image: linear-gradient(var(--overlay-color), var(--overlay-color)), url('images/hero.webp');
    background-position: center 45%;
  }
  42% {
    background-image: linear-gradient(var(--overlay-color), var(--overlay-color)), url('images/napelem.webp');
    background-position: center 52%;
  }
  56% {
    background-image: linear-gradient(var(--overlay-color), var(--overlay-color)), url('images/torony_2.webp');
    background-position: center 48%;
  }
  70% {
    background-image: linear-gradient(var(--overlay-color), var(--overlay-color)), url('images/torony_3.webp');
    background-position: center 53%;
  }
  84% {
    background-image: linear-gradient(var(--overlay-color), var(--overlay-color)), url('images/zoldterulet.webp');
    background-position: center 47%;
  }
}

#menu_icon {
  display: block;
}
#header_navbar {
  display: none;
}
#navbar_dropdown_container {
  display: block;
  background-color: white;
  box-shadow: 0 16px 16px rgba(0,0,0,0.25);
}

@media only screen and (min-width: 768px) {
  #menu_icon {
    display: none;
  }
  #header_navbar {
    display: block;
  }
  #navbar_dropdown_container {
    display: none;
  }
}
@media (min-width: 992px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1.2fr; /* Itt vált át a te eredeti 4 oszlopos rácsodra */
    gap: 48px;
    padding: 0 0 44px 0; /* Kivesszük az oldalsó margót, mert beáll a 1100px-es középre igazítás */
  }
}