/* ============================================================
   Egzóta Díszfaiskola – Responsive overrides
   Breakpoints: 991px (tablet), 767px (mobile-l), 479px (mobile-p)
   ============================================================ */

/* ── Navbar: rejtve gorgetesnel lefele, elotunik felfele gorgetesnel ── */
.nav {
  position: sticky;
  top: 0;
  transition: transform 0.35s ease;
}
.nav.nav--hidden {
  transform: translateY(-100%);
}

/* ── Footer grid ─────────────────────────────────────────── */
.footer-inner-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr 1.6fr;
  gap: 3rem 2rem;
  padding-bottom: 2.5rem;
  align-items: start;
}

/* MODOSITAS: a telefonszamok egy kozos ponttol induljanak.
   Korabban a `justify-content: space-between` a sor vegere tolta a szamot,
   ezert a nevek eltero hossza miatt a szamok kezdopontja soronkent elcsuszott.
   Most a lista racs: a nevek oszlopa a leghosszabb nevhez igazodik,
   a szamok pedig mind ugyanattol a fuggoleges vonaltol indulnak. */
.footer-contact-list {
  list-style: none;
  padding: 0;
  margin: 0.6rem 0 0;
  display: grid;
  grid-template-columns: minmax(0, max-content) auto;
  column-gap: 0.75rem;
  row-gap: 0.45rem;
  align-items: baseline;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.8);
}
/* A sorok a szulo racsba olvadnak, igy a nev es a szam kulon oszlopba kerul */
.footer-contact-list li {
  display: contents;
}
.footer-contact-list li span {
  opacity: 0.7;
}
.footer-contact-list li a {
  justify-self: start;
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.footer-contact-list li a:hover {
  text-decoration: underline;
}

@media screen and (max-width: 479px) {
  .footer-contact-list {
    font-size: 0.85rem;
    column-gap: 0.6rem;
  }
}

/* ── Nev + telefonszam lista a kapcsolat.html „Telefon” kartyajan ──
   Ugyanaz a racs-elv, mint a footerben (korabban inline style + space-between). */
.contact-phone-list {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
  display: grid;
  grid-template-columns: minmax(0, max-content) auto;
  column-gap: 0.75rem;
  row-gap: 0.45rem;
  align-items: baseline;
}
.contact-phone-list li {
  display: contents;
}
.contact-phone-list li a {
  justify-self: start;
}
.contact-phone-list .text-block-7 {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

@media screen and (max-width: 991px) {
  .footer-inner-grid {
    grid-template-columns: 1.2fr 1fr;
    gap: 2rem 1.5rem;
  }
  /* Tagline column spans both cols on tablet */
  .footer-inner-grid > div:first-child {
    grid-column: 1 / -1;
  }
}

@media screen and (max-width: 767px) {
  .footer-inner-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
}

/* ── Footer bottom bar ───────────────────────────────────── */
.div-block {
  flex-wrap: wrap;
  gap: 0.5rem;
}

@media screen and (max-width: 767px) {
  .div-block {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

/* ── Google Maps wrapper ─────────────────────────────────── */
.maps-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 16px 20px 48px 20px;
}

.maps-iframe {
  width: 70vw;
  max-width: 900px;
  height: 45vw;
  max-height: 500px;
  min-height: 260px;
  border: 0;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.13);
}

@media screen and (max-width: 991px) {
  .maps-iframe {
    width: 88vw;
    height: 50vw;
    min-height: 240px;
  }
}

@media screen and (max-width: 767px) {
  .maps-wrap {
    padding: 8px 12px 32px 12px;
  }
  .maps-iframe {
    width: 96vw;
    height: 60vw;
    min-height: 220px;
    border-radius: 8px;
  }
}

@media screen and (max-width: 479px) {
  .maps-iframe {
    width: 100%;
    height: 56vw;
    min-height: 200px;
    border-radius: 6px;
  }
}

/* ── Hero sections ───────────────────────────────────────── */
@media screen and (max-width: 767px) {
  /* termsofservice hero */
  header.section .container {
    padding: 3rem 1rem !important;
  }
  .heading_h1 {
    font-size: clamp(1.6rem, 5vw, 2.5rem);
  }
}

/* ── Products filter panel ───────────────────────────────── */
@media screen and (max-width: 767px) {
  .filter-panel {
    padding: 14px 14px;
    border-radius: 10px;
    margin-bottom: 20px;
  }
  .filter-primary-row,
  .filter-extra-row {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .filter-field {
    min-width: 0;
    flex: unset;
    width: 100%;
  }
  .filter-search-btn {
    padding: 10px 16px;
  }
}

@media screen and (max-width: 479px) {
  .filter-panel {
    padding: 12px;
  }
}

/* ── Product cards grid ──────────────────────────────────── */
@media screen and (max-width: 479px) {
  .grid_3-col {
    grid-template-columns: 1fr !important;
  }
}

/* ── Image hover – disable on touch devices ──────────────── */
@media (hover: none) {
  img:hover {
    transform: none;
  }
  .w-button:hover {
    transform: none;
    box-shadow: none;
  }
  .tipp-card:hover {
    transform: none;
    box-shadow: 0 2px 12px rgba(0,0,0,.08);
  }
}

/* ── Section padding on mobile ───────────────────────────── */
@media screen and (max-width: 767px) {
  .section {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* ── Milestone timeline ──────────────────────────────────── */
@media screen and (max-width: 479px) {
  .timeline {
    padding-left: 1.2rem;
  }
  .timeline-item::before {
    left: -1.6rem;
  }
}

/* ── Stats grid ──────────────────────────────────────────── */
@media screen and (max-width: 479px) {
  .stat-grid {
    grid-template-columns: 1fr 1fr;
  }
  .stat-number {
    font-size: 2rem;
  }
}

/* ── Kertészeti tipp cards ───────────────────────────────── */
@media screen and (max-width: 479px) {
  .tipp-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Rólunk / kapcsolat contact grid (termsofservice JS) ─── */
@media screen and (max-width: 767px) {
  /* termsofservice inline contact grid */
  [style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
}

/* ── nav mobile improvements ─────────────────────────────── */
@media screen and (max-width: 479px) {
  .nav_logo .image-2 {
    max-height: 36px;
  }
}

/* ── Termsofservice operator info block ──────────────────── */
@media screen and (max-width: 767px) {
  .w-layout-blockcontainer.w-container {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
}

/* ── Subtitle paragraphs under product page headings ─────── */
@media screen and (max-width: 767px) {
  .products-subtitle {
    font-size: 1rem;
    padding: 0 1rem;
  }
}

/* ── Kezdőlap fejléc képsor ───────────────────────────────── */
/* Az eredeti Webflow-export egy oszlopvonalakra pozicionált
   (grid-area: 1 / 6 / 2 / 8 stb.) rácsot hagyott itt hátra, miközben
   a rács csak 2 explicit oszlopot deklarált – a hiányzó oszlopokat a
   böngésző implicit módon, ablakméret-függően, kiszámíthatatlanul
   generálta. Emiatt átméretezéskor a 3 kép hol teljesen összeért,
   hol aránytalanul szétcsúszott. A megoldás: a rácsot egyszerű,
   mindig egyenlő szélességű flex-oszlopokra cseréljük – a
   telefonl/tablet osztályokkal történő elrejtés (1 kép mobilon,
   2 tableten, 3 asztalin) változatlanul a webflow.css-ből működik,
   csak a LÁTHATÓ képek méretezését váltjuk ki. */
header .flex_horizontal.overflow_hidden .w-layout-grid.grid_2-col.gap-medium.width_150vw.flex-child_no-shrink {
  display: flex;
  align-items: stretch;
  gap: var(--ai-gen-82921b10-4b39-48f0-b346-808cf4903d29-1752496403308---gap--md-gap);
}

header .flex_horizontal.overflow_hidden img.image_cover.ratio_3x2 {
  flex: 1 1 0;
  min-width: 0;
}

/* A webflow.css a rejtett képeket width/height:0-ra állítja, de flex
   elemként ez üresen is foglal egy gap-nyi helyet a látható képek
   mellett. display:none-nal ez a "fantom rés" is eltűnik. */
@media screen and (max-width: 991px) {
  header .flex_horizontal.overflow_hidden img.image_cover.ratio_3x2.tablet {
    display: none;
  }
}

@media screen and (max-width: 767px) {
  header .flex_horizontal.overflow_hidden img.image_cover.ratio_3x2.telefonl {
    display: none;
  }
}

/* ── Kapcsolat panel (index.html "Vedd fel velünk a kapcsolatot") ──
   6 db nagy, üres helyet pazarló kártya helyett egy kompakt,
   ikonos sorokból álló panel. ── */
.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 1px minmax(0, 1.3fr);
  gap: 2.5rem;
  align-items: start;
  background-color: #fff;
  border-radius: 20px;
  padding: 2.25rem 2.5rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.contact-panel-col {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  min-width: 0;
}

.contact-panel-divider {
  width: 1px;
  align-self: stretch;
  background-color: rgba(0, 0, 0, 0.08);
}

.contact-panel-phones-label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(0, 0, 0, 0.45);
}

.contact-panel-phones-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.5rem;
}

.contact-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.contact-row-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #e9f7f2;
  color: #34d399;
}

.contact-row-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.contact-row-label {
  font-size: 0.78rem;
  color: rgba(0, 0, 0, 0.5);
}

.contact-row-value {
  font-size: 0.95rem;
  font-weight: 600;
  overflow-wrap: anywhere;
  transition: color 0.15s ease;
}

a.contact-row:hover .contact-row-value {
  color: #34d399;
}

@media screen and (max-width: 991px) {
  .contact-panel {
    padding: 1.75rem;
    gap: 1.75rem;
  }
}

@media screen and (max-width: 767px) {
  .contact-panel {
    grid-template-columns: 1fr;
    padding: 1.5rem;
    gap: 1.5rem;
  }
  .contact-panel-divider {
    width: 100%;
    height: 1px;
  }
  .contact-panel-phones-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* ── Csapat panel (rolunk.html "Ismerd meg a csapatunkat") ──
   A törött kép-avatarokkal teret pazarló 4-kártyás rács helyett
   kompakt, kezdőbetűs panel, ua. felépítéssel mint a .contact-panel. ── */
.team-panel {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
  background-color: #fff;
  border-radius: 20px;
  padding: 2rem 2.25rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.team-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.team-row-avatar {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #e9f7f2;
  color: #34d399;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}

.team-row-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.team-row-name {
  font-size: 0.95rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.team-row-phone {
  font-size: 0.85rem;
  color: rgba(0, 0, 0, 0.5);
  transition: color 0.15s ease;
}

a.team-row:hover .team-row-phone {
  color: #34d399;
}

@media screen and (max-width: 991px) {
  .team-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 1.75rem;
    gap: 1.25rem;
  }
}

@media screen and (max-width: 479px) {
  .team-panel {
    grid-template-columns: 1fr;
    padding: 1.5rem;
    gap: 1.1rem;
  }
}

/* ── General container safety ────────────────────────────── */
* {
  box-sizing: border-box;
}
img {
  max-width: 100%;
  height: auto;
}
