/*
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;
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 48px; 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: 36px; 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 {
  padding: 130px 48px;
  text-align: center; color: #fff;
  background-size: cover; background-position: center;
}
.hero h1 {
  font-size: clamp(2rem, 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: 88px 48px; }
.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: 680px; margin: 0 auto;
}

/* ── COUNTERS ──────────────────────────────────────────── */
.counters {
  display: flex; justify-content: center;
  gap: 64px; flex-wrap: wrap;
}
.counter { text-align: center; }
.counter-num {
  font-size: 3.4rem; font-weight: 800;
  color: #1e4fa3; line-height: 1;
}
.counter-label {
  color: #5a6a8a; font-size: 0.95rem; margin-top: 8px;
}

/* ── 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 ──────────────────────────────────── */
.service-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 64px; align-items: center;
  max-width: 1100px; margin: 0 auto;
}
.service-grid.flip { direction: rtl; }
.service-grid.flip > div { direction: ltr; }

.service-img {
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 48px rgba(15,39,68,.18);
  width: 100%;
  height: 400px;
  position: relative;
}

.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-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;
}

@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%); }
}

.service-text h2 {
  font-size: 1.75rem; font-weight: 700;
  color: #0f2744; margin-bottom: 16px;
}
.service-text p { color: #4a5a7a; margin-bottom: 14px; line-height: 1.75; }

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

/* ── PARTNER LOGÓK ─────────────────────────────────────── */
.partner-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px; align-items: center;
  max-width: 1100px; margin: 0 auto;
}
.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;
}
.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 É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; }

/* ── KAPCSOLAT ─────────────────────────────────────────── */
.contact-layout {
  display: grid; grid-template-columns: 1fr 1.6fr; gap: 60px;
  max-width: 1100px; margin: 0 auto;
}
.contact-info h2 { font-size: 1.6rem; font-weight: 700; color: #0f2744; margin-bottom: 20px; }
.contact-info p  { color: #5a6a8a; margin-bottom: 28px; }
.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; }

/* ── FORM ──────────────────────────────────────────────── */
.contact-form { background: #fff; padding: 36px; 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 1fr; gap: 18px; }
.form-group { margin-bottom: 18px; }
.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;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { outline: none; border-color: #2563eb; }
.form-group textarea { height: 130px; resize: vertical; }

/* ── LÁBLÉC ────────────────────────────────────────────── */
footer {
  background: #0a1e38; color: rgba(255,255,255,.75);
  padding: 64px 48px 28px;
}
.footer-grid {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 48px; padding-bottom: 44px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-logo { font-size: 1.4rem; font-weight: 800; color: #fff; margin-bottom: 12px; }
.footer-logo span { color: #60a5fa; }
.footer-desc { font-size: 0.88rem; line-height: 1.8; }
.footer-col h4 { color: #fff; font-weight: 600; margin-bottom: 16px; font-size: 0.92rem; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; color: rgba(255,255,255,.65); font-size: 0.88rem; transition: color .2s;}
.footer-col a { color: rgba(255,255,255,.65); font-size: 0.88rem; transition: color .2s; }
.footer-col a:hover { color: #fff; }
.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(255,255,255,.08);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.7); font-size: 0.85rem;
  transition: background .2s;
}
.footer-social a:hover { background: rgba(255,255,255,.18); color: #fff; }

/* ── 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);
}

@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%;
  }
}
