/* =========================================================
   KlímaPro – GLOBAL / style.css (extra kicsi tipó)
   ========================================================= */

/* ---------- Design tokenek ---------- */
:root {
  /* Színek */
  --bg: #0D1117;
  --bg-1: #0B0F14;
  --bg-2: #0E141C;
  --text: #E7EDF6;
  --muted: rgba(231, 237, 246, .72);
  --accent: #4DD2FF;
  --accent-2: #4DD2FF;

  /* Üveg & határ */
  --card: rgba(255, 255, 255, .06);
  --glass: rgba(255, 255, 255, .06);
  --glass-border: rgba(255, 255, 255, .10);

  /* Terek */
  --radius: 16px;
  --max: 1200px;
  --gap: clamp(14px, 2vw, 22px);
  --section-space: clamp(48px, 6.5vw, 86px);
  --card-pad: clamp(10px, 1.6vw, 16px);

  --shadow: 0 10px 30px rgba(0, 0, 0, .30);
  --speed: 240ms;

  /* Tipográfia – EXTRA KICSI */
  --font-size: clamp(11px, 0.95vw, 12px);
  --h1: clamp(18px, 2.2vw, 22px);
  --h2: clamp(16px, 1.9vw, 18px);
  --h3: clamp(14px, 1.6vw, 16px);
  --lead: clamp(.78rem, 1.2vw, .85rem);
}

/* opcionális téma */
html[data-theme="ink-gold"] {
  --accent: #FFC700;
  --accent-2: #6FE8FF;
}

/* ---------- Reset ---------- */
* {
  box-sizing: border-box
}

html,
body {
  height: 100%
}

body {
  margin: 0;
  font-family: Inter, system-ui, Segoe UI, Roboto, Arial, sans-serif;
  font-size: var(--font-size);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  background: linear-gradient(180deg, var(--bg-1) 0%, var(--bg-2) 55%, var(--bg) 100%);
  background-attachment: fixed;
}

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

a {
  color: inherit
}

::selection {
  background: color-mix(in oklab, var(--accent) 55%, transparent);
  color: #111
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(13, 17, 23, .55);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--glass-border);
}

.header-inner {
  max-width: var(--max);
  margin: auto;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.logo {
  font-weight: 800;
  letter-spacing: .3px;
  text-decoration: none;
  color: #fff;
  font-size: 15px
}

.logo span {
  color: var(--accent)
}

.menu-btn {
  position: absolute;
  right: 10px;
  top: 6px;
  padding: 8px 20px;
  min-height: 40px;
  border-radius: 999px;
  border: 1px solid var(--accent);
  background: radial-gradient(circle at top left, var(--accent) 0%, rgba(13, 17, 23, 0.98) 40%, rgba(13, 17, 23, 1) 100%);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .55);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all var(--speed) ease;
}

/* Kis "ikon" pöttyök a MENÜ mellé */
.menu-btn::after {
  content: "●●●";
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--accent);
  opacity: .95;
  transform: translateY(-1px);
}

.menu-btn:hover {
  background: linear-gradient(90deg, var(--accent) 0%, #ffffff 14%, rgba(13, 17, 23, 1) 100%);
  color: #000;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .75);
  transform: translateY(-1px);
}

.menu-btn:active {
  transform: translateY(1px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .55);
}

/* Nyitott állapot visszajelzés (ha a JS már rakja a body-ra a .menu-open-t) */
body.menu-open .menu-btn {
  background: var(--accent);
  color: #000;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .65);
}

body.menu-open .menu-btn::after {
  content: "✕";
  font-size: 13px;
  letter-spacing: 0;
  color: #000;
  transform: translateY(-1px);
}


/* ---------- Layout / Cards ---------- */
.maincontainer {
  width: 100%;
  padding-inline: 12px;
  margin-inline: auto
}

.section {
  max-width: var(--max);
  margin: var(--section-space) auto
}

.card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: var(--card-pad);
  box-shadow: var(--shadow);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
}

.center {
  display: grid;
  place-items: center
}

.mt-32 {
  margin-top: 24px
}

.lead {
  color: var(--muted);
  font-size: var(--lead)
}

/* ---------- Sidebar ---------- */
.sidebar {
  position: fixed;
  inset: 0 0 0 42%;
  transform: translateX(100%);
  transition: transform var(--speed) ease;
  background: linear-gradient(180deg, rgba(13, 17, 23, .90), rgba(13, 17, 23, .94));
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  z-index: 80;
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--glass-border);
}

@media (max-width:1024px) {
  .sidebar {
    inset: 0
  }
}

body.menu-open .sidebar {
  transform: translateX(0)
}

.sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid var(--glass-border);
}

.logo.small {
  font-weight: 800;
  font-size: 14px
}

.close {
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 24px;
  width: 34px;
  height: 34px;
  cursor: pointer
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px
}

.sidebar-nav a {
  color: #fff;
  text-decoration: none;
  font-size: 12.5px;
  padding: 8px 8px;
  border-radius: 10px;
  transition: background var(--speed), transform .2s;
}

.sidebar-nav a:hover {
  background: rgba(255, 255, 255, .07);
  outline: 1px solid var(--glass-border);
  transform: translateX(2px);
}

.sidebar-cta {
  margin-top: auto;
  padding: 12px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap
}

/* Overlay */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .45);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--speed);
  z-index: 70
}

body.menu-open #overlay {
  opacity: 1;
  pointer-events: auto
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 12px;
  box-shadow: var(--shadow);
  transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
}

.btn:hover {
  transform: translateY(-1px)
}

.btn:active {
  transform: translateY(0)
}

.btn-yellow {
  background: var(--accent);
  color: #111
}

.btn-yellow:hover {
  filter: saturate(110%) brightness(1.05)
}

.btn-outline {
  border: 1.3px solid #fff;
  color: #fff;
  background: transparent
}

.btn-outline:hover {
  background: rgba(255, 255, 255, .08)
}

.btn-ghost {
  background: transparent;
  color: var(--accent-2);
  border: 1px solid color-mix(in oklab, var(--accent-2) 40%, transparent)
}

.btn-ghost:hover {
  background: color-mix(in oklab, var(--accent-2) 15%, transparent)
}

/* ---------- Hero / grid util ---------- */
.hero {
  display: grid;
  gap: var(--gap);
  align-items: center
}

@media (min-width:900px) {
  .hero {
    grid-template-columns: 1.2fr .8fr
  }
}

.hero .cta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap
}

/* ---------- Galéria & Modal ---------- */
.gallery {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, 1fr)
}

@media (min-width:900px) {
  .gallery {
    grid-template-columns: repeat(4, 1fr)
  }
}

.gallery img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  border-radius: 10px;
  cursor: pointer;
  transition: transform .25s, box-shadow .25s;
  box-shadow: 0 4px 18px rgba(0, 0, 0, .25);
}

.gallery img:hover {
  transform: scale(1.03);
  box-shadow: 0 10px 26px rgba(0, 0, 0, .35)
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--speed);
  z-index: 90
}

.modal.open {
  opacity: 1;
  pointer-events: auto
}

.modal img {
  max-width: 92vw;
  max-height: 86vh;
  border-radius: 10px;
  box-shadow: var(--shadow)
}

.modal .modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  font-size: 28px;
  color: #fff;
  background: transparent;
  border: 0;
  cursor: pointer
}

.form-modal .modal-card {
  max-width: 560px;
  width: 92vw
}

.form-grid {
  display: grid;
  gap: 10px
}

.consent {
  font-size: .78rem;
  color: var(--muted)
}

/* ---------- Scroll reveal ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .5s ease, transform .5s ease
}

[data-reveal].show,
.is-visible[data-reveal] {
  opacity: 1;
  transform: none
}

/* ---------- Footer (teljes, reszponzív) ---------- */
.site-footer {
  margin-top: calc(var(--section-space) - 12px);
  border-top: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, .03);
}

.site-footer .footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px 12px;
  color: var(--muted);
  font-size: var(--font-size);
  display: grid;
  gap: clamp(12px, 2vw, 22px);
  grid-template-columns: 1fr;
  /* mobil: 1 oszlop */
  align-items: start;
}

/* Oszlopok (HTML-ben .footer-col) */
.site-footer .footer-col {
  display: grid;
  gap: 8px;
  min-width: 0;
}

/* Két oszlop ≥720px-től */
@media (min-width: 720px) {
  .site-footer .footer-inner {
    grid-template-columns: 1fr 0.75fr;
    /* bal: infó, jobb: nyitvatartás */
  }
}

/* Tipográfia + linkek */
.site-footer p {
  margin: 0;
  line-height: 1.6;
}

.site-footer p+p {
  margin-top: .35rem;
}

.site-footer a {
  color: #fff;
  text-decoration: none;
  border-bottom: 1px dashed transparent;
  transition: border-color var(--speed), color var(--speed);
}

.site-footer a:hover,
.site-footer a:focus-visible {
  border-color: currentColor;
  outline: none;
}

/* Blokkcím a jobb oszlopban */
.footer-title {
  margin: 0 0 4px;
  font-size: clamp(12px, 1.05vw, 13px);
  /* kicsi tipóhoz igazítva */
  color: #fff;
  letter-spacing: .2px;
  opacity: .92;
}

/* Nyitvatartás lista */
.opening-hours {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.opening-hours li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
  border-bottom: 1px dashed var(--glass-border);
  padding-bottom: 6px;
}

.opening-hours li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.opening-hours li span:first-child {
  color: var(--muted);
  white-space: nowrap;
}

.opening-hours li span:last-child {
  color: #fff;
  font-weight: 700;
  white-space: nowrap;
}

/* Extra kis képernyők sűrítés */
@media (max-width: 360px) {
  .site-footer .footer-inner {
    padding: 16px 10px;
  }

  .opening-hours li {
    gap: 12px;
  }
}


/* ---------- Fixed CTA ---------- */
.fixed-cta.call-btn {
  position: fixed;
  right: 12px;
  bottom: 14px;
  z-index: 85;
  background: var(--accent);
  color: #000;
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 12px;
  box-shadow: var(--shadow);
}

.fixed-cta.quote-btn {
  position: fixed;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  text-orientation: mixed;
  background: #fff;
  color: #000;
  text-decoration: none;
  padding: 8px 7px;
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
  font-weight: 800;
  letter-spacing: .4px;
  font-size: 11px;
  box-shadow: var(--shadow);
}

/* ---------- Promó / listák ---------- */
.muted {
  color: var(--muted)
}

.benefits {
  padding-left: 16px;
  margin: 4px 0;
  font-size: .8rem
}

.promo .promo-strip {
  background: var(--accent);
  color: #111;
  padding: 8px 10px;
  border-radius: 9px;
  box-shadow: var(--shadow);
  margin-top: 10px
}

.steps {
  padding-left: 16px
}

/* ---------- Címsorok ---------- */
h1,
h2,
h3 {
  margin: 0 0 6px
}

h1 {
  font-size: var(--h1);
  line-height: 1.14;
  letter-spacing: -.01em
}

h2 {
  font-size: var(--h2);
  line-height: 1.18
}

h3 {
  font-size: var(--h3);
  line-height: 1.2
}

/* ---------- Accessibility ---------- */
@media (prefers-reduced-motion:reduce) {
  * {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important
  }
}

/* ---------- Breakpoint finomítások ---------- */
@media (min-width:1200px) {
  .maincontainer {
    width: min(100%, var(--max));
  }
}

@media (max-width:360px) {
  .btn {
    padding: 6px 8px;
    font-size: 11.5px
  }

  .gallery img {
    height: 120px
  }
}

@media (min-width:1600px) {
  .maincontainer {
    width: 1180px
  }
}