/* --- ALAPVETŐ VÁLTOZÓK --- */
:root {
  --bg-color: #f7fff9;
  --menu-green: #e6fff1;
  --emerald: #1aa976;
  --emerald-dark: #0a6a4a;
  --text: #163a2c;
  --muted: #4b6b5d;
  --card: rgba(255, 255, 255, 0.9);
  --stroke: rgba(26, 169, 118, 0.2);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  --radius: 18px;
}

/* --- RESET ÉS ALAPOK --- */
* { box-sizing: border-box; }
html, body { 
  margin: 0; 
  padding: 0; 
  height: 100%; 
  -webkit-tap-highlight-color: transparent; 
}
body {
  font-family: system-ui, -apple-system, sans-serif;
  color: var(--text);
  background-color: var(--bg-color);
  line-height: 1.5;
}

/* FIX HÁTTÉR */
.fixed-bg {
  position: fixed;
  inset: 0;
  background-image: url("../img/background.jpg");
  background-size: cover;
  background-position: center;
  filter: blur(15px);
  transform: scale(1.1);
  z-index: -10;
}

.container {
  width: min(1000px, 100%);
  margin: 0 auto;
  padding: 0 15px;
}

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

/* --- HEADER --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--stroke);
  padding: 10px 0;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.brand img { width: 42px; height: 42px; object-fit: contain; }
.name { font-weight: 800; color: var(--emerald-dark); font-size: 1.1rem; }
.tag { font-size: 0.75rem; color: var(--muted); display: block; }

.hamburger {
  background: white;
  border: 1px solid var(--stroke);
  padding: 8px;
  border-radius: 10px;
  cursor: pointer;
  z-index: 101;
}

.bars span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--emerald);
  margin: 4px 0;
}

/* --- NAVIGÁCIÓ (DRAWER) --- */
.nav-drawer {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  visibility: hidden;
}

.nav-drawer.open {
  pointer-events: auto;
  visibility: visible;
}

.backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  transition: opacity 0.3s;
}

.nav-drawer.open .backdrop { opacity: 1; }

.panel {
  position: absolute;
  right: -280px;
  top: 0;
  bottom: 0;
  width: 280px;
  background-color: var(--menu-green);
  padding: 25px;
  transition: right 0.3s ease-out;
  box-shadow: -10px 0 30px rgba(0,0,0,0.15);
  display: flex;
  flex-direction: column;
}

.nav-drawer.open .panel { right: 0; }

.nav-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}

.nav-links a {
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  padding: 14px;
  background: white;
  border-radius: 14px;
  text-align: center;
  transition: 0.2s;
}

.nav-links a.active {
  background: var(--emerald);
  color: white;
}

/* --- KÁRTYÁK ÉS GOMBOK --- */
.card {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.pad { padding: 20px; }

.btn-main {
  display: inline-block;
  background: var(--emerald);
  color: white !important;
  text-decoration: none;
  padding: 12px 25px;
  border-radius: 12px;
  font-weight: 700;
  transition: 0.3s;
  border: none;
  cursor: pointer;
}

.btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--emerald);
  text-decoration: none;
  padding: 12px 25px;
  border-radius: 12px;
  border: 2px solid var(--emerald);
  font-weight: 700;
  transition: 0.3s;
}

/* --- REFERENCIA (ELŐTTE-UTÁNA) --- */
.comparison-wrapper {
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.comparison-header {
  text-align: center;
  font-weight: 800;
  color: var(--emerald-dark);
  margin-bottom: 12px;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.comparison-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  background: white;
  padding: 10px;
  border-radius: var(--radius);
  border: 1px solid var(--stroke);
}

.photo-box {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  line-height: 0;
}

.photo-box img {
  width: 100%;
  height: 250px !important;
  object-fit: cover;
}

.photo-box .label {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(0,0,0,0.6);
  color: white;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 700;
}

.photo-box.after .label { left: auto; right: 10px; background: var(--emerald); }

/* --- ÁRLISTA (STICKY + ZOOM) --- */
.price-controls {
  display: flex;
  justify-content: center;
  gap: 6px;
  width: 100%;
  max-width: 500px;
  margin: 0 auto 15px;
  top: 75px;
  z-index: 50;
  background: rgba(255,255,255,0.95);
  padding: 8px;
  border-radius: 30px;
  backdrop-filter: blur(5px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.price-tab {
  background: white;
  border: 1px solid var(--stroke);
  color: var(--muted);
  padding: 6px 0;
  font-size: 0.85rem;
  border-radius: 20px;
  cursor: pointer;
  font-weight: 800;
  flex: 1;
  transition: 0.2s;
}

.price-tab.active {
  background: var(--emerald);
  color: white;
  border-color: var(--emerald);
}

.price-viewer-simple {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  cursor: zoom-in;
}

/* --- NAGYÍTÓ ABLAK (MODAL) --- */
.zoom-modal {
  display: none;
  position: fixed;
  z-index: 99999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: flex-start;
  padding: 20px;
  overflow: auto;
}

.zoom-modal-content {
  margin: auto;
  display: block;
  max-width: 100%;
  height: auto;
}

.close-zoom {
  position: fixed;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 40px;
  cursor: pointer;
  z-index: 100001;
}

/* --- KAPCSOLAT --- */
.contact-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: white;
  padding: 12px 18px;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  margin-bottom: 10px;
}

.contact-label { font-weight: 900; font-size: 0.8rem; color: var(--emerald-dark); }
.contact-value { color: var(--muted); font-weight: 700; }

.icon-btn {
  width: 40px;
  height: 40px;
  background: var(--emerald);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.icon-btn svg { width: 20px; height: 20px; fill: white; }

.map-container {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--stroke);
  height: 300px;
  margin-top: 15px;
}

/* MOBIL OPTIMALIZÁLÁS */
@media (max-width: 600px) {
  .price-controls { top: 65px; }
  .photo-box img { height: 180px !important; }
}

/* --- LEBEGŐ SZOLGÁLTATÁS DOBOZOK (KÖZÉPRE IGAZÍTVA) --- */
.service-box {
  display: flex;
  align-items: center;      /* Függőlegesen középre */
  justify-content: center; /* Vízszintesen középre */
  gap: 30px;               /* Távolság a kép és szöveg között */
  margin-bottom: 60px;
  padding: 0 15px;
  width: 100%;
}

/* Cikcakk elrendezés */
.service-box.reverse {
  flex-direction: row-reverse;
}

.service-img-wrap {
  flex: 1;
  max-width: 250px;        /* Fixált maximális szélesség a képeknek */
  display: flex;
  justify-content: center; /* Kép középre a saját tartójában */
}

.service-img-wrap img {
  width: 100%;
  max-width: 220px;        /* Hogy ne legyen túl bumfordi */
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.service-text {
  flex: 1;
  max-width: 350px;        /* Korlátozzuk a szöveg szélességét a jobb olvashatóságért */
  text-align: left;        /* A szöveg maga maradjon balra zárt az olvashatóság miatt */
}

/* Amikor a kép van jobb oldalon (reverse), a szöveg legyen jobbra igazítva az esztétika miatt */
.service-box.reverse .service-text {
  text-align: right;
}

.service-text h3 {
  color: var(--emerald-dark);
  margin: 0 0 10px 0;
  font-size: 1.3rem;
}

.service-text p {
  color: var(--muted);
  line-height: 1.5;
  font-size: 0.9rem;
}

/* --- MOBIL NÉZET (MARAD EGYMÁS MELLETT, DE KISEBB) --- */
@media (max-width: 600px) {
  .service-box {
    gap: 15px;
    margin-bottom: 40px;
  }
  
  .service-img-wrap {
    max-width: 140px;      /* Mobilon kisebb tartó */
  }

  .service-img-wrap img {
    height: 140px;         /* Négyzetes marad mobilon is */
  }

  .service-text h3 {
    font-size: 1rem;
  }

  .service-text p {
    font-size: 0.8rem;
  }
}

/* Főoldali két kártya elrendezése */
.home-grid-wrapper {
  display: flex;
  gap: 20px;
  margin-top: 30px;
  align-items: stretch;
}

.home-grid-wrapper .card {
  flex: 1; /* Egyforma szélesség */
  margin-top: 0 !important;
}

/* Mobilon ugorjanak egymás alá */
@media (max-width: 800px) {
  .home-grid-wrapper {
    flex-direction: column;
  }
}