/* ============================================================
   KLÍMAGURU - Önálló statikus HTML5 oldal
   Fő stíluslap: alapok, header, footer
   Kiemelés: #0094F5 | Háttér: #000 / #030303 | Font: Poppins
   ============================================================ */

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

:root {
  --kg-accent: #0094F5;
  --kg-accent-dark: #007fd1;
  --kg-bg: #000000;
  --kg-bg-alt: #030303;
  --kg-white: #ffffff;
  --kg-max: 1320px;
  --kg-header-h: 88px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  background: var(--kg-bg);
  color: var(--kg-white);
  font-family: 'Poppins', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  color: var(--kg-accent);
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

/* ============================================================
   HEADER (sticky, fekete, jobb oldali offcanvas menü)
   ============================================================ */
.kg-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  background: var(--kg-bg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.kg-header.is-scrolled {
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.55);
  background: rgba(0, 0, 0, 0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Topbar (elérhetőségek + social) */
.kg-topbar {
  background: var(--kg-bg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.kg-topbar__inner {
  max-width: var(--kg-max);
  margin: 0 auto;
  padding: 8px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.kg-topbar__social {
  display: flex;
  align-items: center;
  gap: 10px;
}

.kg-topbar__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(0, 148, 245, 0.4);
  color: var(--kg-accent);
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.kg-topbar__social a:hover {
  background: var(--kg-accent);
  color: #fff;
  transform: translateY(-2px);
}

.kg-topbar__social svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.kg-topbar__contact {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--kg-accent);
}

.kg-topbar__contact a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--kg-accent);
  transition: color 0.25s ease;
}

.kg-topbar__contact a:hover {
  color: var(--kg-white);
}

.kg-topbar__contact svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Fő navigációs sáv */
.kg-nav {
  max-width: var(--kg-max);
  margin: 0 auto;
  padding: 0 24px;
  height: var(--kg-header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.kg-nav__logo {
  display: inline-flex;
  align-items: center;
}

.kg-nav__logo img {
  height: 58px;
  width: auto;
  display: block;
}

/* Asztali menü */
.kg-nav__menu {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.kg-nav__menu a {
  color: var(--kg-accent);
  font-weight: 500;
  font-size: 15.5px;
  padding: 6px 2px;
  position: relative;
  transition: color 0.25s ease;
}

.kg-nav__menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--kg-accent);
  transition: width 0.25s ease;
}

.kg-nav__menu a:hover,
.kg-nav__menu a.is-active {
  color: var(--kg-white);
}

.kg-nav__menu a.is-active::after,
.kg-nav__menu a:hover::after {
  width: 100%;
}

/* Hamburger (offcanvas trigger) */
.kg-nav__toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid rgba(0, 148, 245, 0.4);
  border-radius: 10px;
  cursor: pointer;
  padding: 0;
}

.kg-nav__toggle svg {
  width: 24px;
  height: 24px;
  stroke: var(--kg-accent);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Offcanvas panel (jobb oldali) */
.kg-offcanvas {
  position: fixed;
  inset: 0;
  z-index: 1100;
  visibility: hidden;
  pointer-events: none;
}

.kg-offcanvas.is-open {
  visibility: visible;
  pointer-events: auto;
}

.kg-offcanvas__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.kg-offcanvas.is-open .kg-offcanvas__overlay {
  opacity: 1;
}

.kg-offcanvas__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: 300px;
  max-width: 82vw;
  height: 100%;
  background: var(--kg-bg);
  border-left: 1px solid rgba(0, 148, 245, 0.25);
  padding: 26px 24px;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.kg-offcanvas.is-open .kg-offcanvas__panel {
  transform: translateX(0);
}

.kg-offcanvas__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.kg-offcanvas__close {
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid rgba(0, 148, 245, 0.4);
  border-radius: 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.kg-offcanvas__close svg {
  width: 22px;
  height: 22px;
  stroke: var(--kg-accent);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.kg-offcanvas__menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.kg-offcanvas__menu a {
  display: block;
  color: var(--kg-accent);
  font-weight: 500;
  font-size: 17px;
  padding: 14px 12px;
  border-radius: 10px;
  transition: background 0.25s ease, color 0.25s ease;
}

.kg-offcanvas__menu a:hover,
.kg-offcanvas__menu a.is-active {
  background: rgba(0, 148, 245, 0.1);
  color: var(--kg-white);
}

.kg-offcanvas__contact {
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 14px;
}

.kg-offcanvas__contact a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--kg-accent);
}

.kg-offcanvas__contact svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ============================================================
   FOOTER
   ============================================================ */
.kg-footer {
  background: var(--kg-bg-alt);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 64px 24px 0;
}

.kg-footer__inner {
  max-width: var(--kg-max);
  margin: 0 auto;
}

.kg-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}

.kg-footer__logo {
  display: inline-flex;
  align-items: center;
  margin-bottom: 18px;
}

.kg-footer__logo img {
  height: 54px;
  width: auto;
  display: block;
}

.kg-footer__about {
  color: rgba(255, 255, 255, 0.6);
  font-weight: 300;
  font-size: 14.5px;
  line-height: 1.7;
  max-width: 360px;
  margin: 0 0 18px;
}

.kg-footer__social {
  display: flex;
  gap: 10px;
}

.kg-footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(0, 148, 245, 0.35);
  color: var(--kg-accent);
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.kg-footer__social a:hover {
  background: var(--kg-accent);
  color: #fff;
  transform: translateY(-2px);
}

.kg-footer__social svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.kg-footer__col-title {
  color: var(--kg-white);
  font-weight: 600;
  font-size: 16px;
  margin: 0 0 18px;
}

.kg-footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.kg-footer__links a {
  color: var(--kg-accent);
  font-weight: 300;
  font-size: 14.5px;
  transition: color 0.25s ease, padding-left 0.25s ease;
}

.kg-footer__links a:hover {
  color: var(--kg-white);
  padding-left: 4px;
}

.kg-footer__contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.kg-footer__contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 300;
  font-size: 14.5px;
  line-height: 1.5;
}

.kg-footer__contact-list svg {
  width: 17px;
  height: 17px;
  min-width: 17px;
  margin-top: 2px;
  stroke: var(--kg-accent);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.kg-footer__contact-list a {
  color: rgba(255, 255, 255, 0.72);
  transition: color 0.25s ease;
}

.kg-footer__contact-list a:hover {
  color: var(--kg-accent);
}

.kg-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 22px 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 300;
  font-size: 13.5px;
}

/* Vissza a tetejére gomb */
.kg-gototop {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--kg-accent);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 22px rgba(0, 148, 245, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.25s ease;
  z-index: 900;
}

.kg-gototop.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.kg-gototop:hover {
  background: var(--kg-accent-dark);
}

.kg-gototop svg {
  width: 22px;
  height: 22px;
  stroke: #fff;
  fill: none;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ============================================================
   Reszponzív header/footer
   ============================================================ */
@media (max-width: 900px) {
  .kg-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .kg-footer__col--about {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .kg-nav__menu {
    display: none;
  }

  .kg-nav__toggle {
    display: inline-flex;
  }

  .kg-topbar__inner {
    justify-content: center;
    padding: 7px 18px;
    gap: 14px 22px;
  }

  .kg-topbar__contact {
    gap: 16px;
    font-size: 12.5px;
  }
}

@media (max-width: 600px) {
  .kg-footer__grid {
    grid-template-columns: 1fr;
  }

  .kg-footer__col--about {
    grid-column: span 1;
  }

  .kg-topbar__contact span.kg-topbar__label {
    display: none;
  }
}

/* Csökkentett mozgás */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* ============================================================
   MOBIL HÍVÓSÁV (fix, alul – csak mobilon)
   ============================================================ */
.kg-callbar {
  display: none;
}

@media (max-width: 768px) {
  .kg-callbar {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 950;
    gap: 10px;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(0, 148, 245, 0.25);
  }

  .kg-callbar__btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    height: 52px;
    border-radius: 12px;
    font-family: 'Poppins', Arial, sans-serif;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    transition: transform 0.15s ease, background 0.2s ease;
  }

  .kg-callbar__btn:active {
    transform: scale(0.97);
  }

  .kg-callbar__btn svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  /* Elsődleges: Hívás most */
  .kg-callbar__btn--call {
    flex: 1.6;
    background: #0094F5;
    color: #ffffff;
    box-shadow: 0 6px 18px rgba(0, 148, 245, 0.4);
  }

  .kg-callbar__btn--call svg {
    stroke: #ffffff;
  }

  /* Másodlagos: Ajánlatkérés */
  .kg-callbar__btn--quote {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(0, 148, 245, 0.5);
    color: #0094F5;
  }

  .kg-callbar__btn--quote svg {
    stroke: #0094F5;
  }

  /* A hívósáv ne takarja az utolsó tartalmat / a footert */
  body {
    padding-bottom: 74px;
  }

  /* A 'vissza a tetejére' gomb feljebb, hogy ne ütközzön a sávval */
  .kg-gototop {
    bottom: 86px;
  }
}

@media (max-width: 360px) {
  .kg-callbar__btn {
    font-size: 15px;
  }
  .kg-callbar__btn--quote span {
    display: none;
  }
  .kg-callbar__btn--quote {
    flex: 0 0 52px;
  }
}
