@import url('https://fonts.googleapis.com/css2?family=Inter:wght@200;300;400;500;700&display=swap');

/* =========================
   Alap body és topbar
========================= */
body {
  margin: 0;
  font-family: 'Inter', Arial, sans-serif;
  font-weight: 300;
  color: #2A2A2A;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-weight: 300;
}

.custom-title {
  font-weight: 300;
  color: #555;
}
h4 {
  font-size: 22px;
}

/* =========================
   BOLD kiemelés
========================= */
strong,
.bold-text {
  font-weight: 700;
  color: #555;
}

/* =========================
   Topbar
========================= */
.topbar {
  position: sticky;
  top: 0;
  height: 65px;
  background: #636362;
  z-index: 1000;
}

/* =========================
   Menü konténer
========================= */
.menu-container {
  max-width: 1200px;
  margin: auto;
  height: 65px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
/* =========================
   Főmenü (desktop)
========================= */
.menu > ul {
  display: flex;
  gap: 28px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.menu > ul > li {
  position: relative;
}

.menu > ul > li > a {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  height: 36px;
  line-height: 36px;
  padding: 0 12px;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  box-sizing: border-box;
  position: relative;
}

.menu > ul > li > a::after {
  content: "";
  position: absolute;
  bottom: 6px;
  left: 12px;
  width: 0;
  height: 1px;
  background: white;
  transition: width 0.25s ease;
}

.menu > ul > li > a:hover::after,
.menu > ul > li.active > a::after {
  width: calc(100% - 24px);
}

.menu > ul > li.dropdown > a {
  cursor: pointer;
}
/* HOME ICON */
.home-icon {
  display: flex;
  align-items: center;
}

.home-icon a {
  display: flex;
  align-items: center;
  padding: 0 12px;
  height: 100%;
}

.home-icon img {
  width: 20px;
  height: 20px;
  display: block;
}

.home-icon a:hover img {
  opacity: 0.7;
}

/* =========================
   Dropdown
========================= */
.menu .dropdown {
  position: relative;
}

.menu .dropdown .submenu {
  display: none;
  position: absolute;
  top: 90%;
  left: 0;
  background: #636362;
  list-style: none;
  padding: 16px 0 6px 0;
  margin: 0;
  min-width: 200px;
  z-index: 1000;
  box-sizing: border-box;
}

.menu .dropdown:hover .submenu {
  display: block;
}

.menu .submenu a {
  display: block;
  width: 100%;
  height: 36px;
  line-height: 36px;
  padding-left: 12px;
  text-align: left;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 0.3px;
  box-sizing: border-box;
  position: relative;
}

.menu .submenu a::after {
  content: "";
  position: absolute;
  bottom: 6px;
  left: 12px;
  width: 0;
  height: 1px;
  background: white;
  transition: width 0.25s ease;
}

.menu .submenu a:hover::after {
  width: calc(100% - 24px);
}

/* =========================
   Hamburger
========================= */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  position: absolute;
  left: 10px;
}

.hamburger span {
  width: 22px;
  height: 3px;
  background: white;
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1){
  transform: rotate(45deg) translate(5px,5px);
}

.hamburger.active span:nth-child(2){
  opacity:0;
}

.hamburger.active span:nth-child(3){
  transform: rotate(-45deg) translate(5px,-5px);
}

/* =========================
   Slideshow / Hero
========================= */
.hero {
  max-width: 1200px;
  height: 350px;
  margin: auto;
  position: relative;
}

.slideshow {
  width: 100%;
  height: 350px;
  overflow: hidden;
  position: relative;
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.5s ease;
}

.slide.active {
  opacity: 1;
}

.hero-floating {
  position: absolute;
  top: 30px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
}

.logo-box {
  width: 180px;
  height: 120px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: auto;
}
.logo-box img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;

  /* ===== LOGO SHADOW ===== */
  --shadow-x: 1px;          /* vízszintes eltolás */
  --shadow-y: 1px;          /* függőleges eltolás */
  --shadow-blur: 3px;       /* elmosás */
  --shadow-color: 0,0,0;    /* RGB */
  --shadow-opacity: 0.7;    /* átlátszóság */

  filter: drop-shadow(
    var(--shadow-x)
    var(--shadow-y)
    var(--shadow-blur)
    rgba(var(--shadow-color), var(--shadow-opacity))
  );
}
.hero-text {
  margin-top: 10px;
  background: transparent;
  padding: 6px 16px;
  font-size: 40px;
  color: #ffffff;

  /* ===== TEXT SHADOW CONTROLS ===== */
  --shadow-x: 2px;          /* vízszintes eltolás */
  --shadow-y: 2px;          /* függőleges eltolás */
  --shadow-blur: 6px;       /* elmosás */
  --shadow-color: 0,0,0;    /* RGB (ne rgba!) */
  --shadow-opacity: 0.7;    /* átlátszóság */

  text-shadow: 
    var(--shadow-x)
    var(--shadow-y)
    var(--shadow-blur)
    rgba(var(--shadow-color), var(--shadow-opacity));
}
.mobile-hero {
  display: none;
  width: 100%;
  height: 180px;
  background: #ddd;
  align-items: center;
  justify-content: center;
}

/* =========================
   Navigációs blokkok
========================= */
.navigation-block {
  max-width: 1200px;
  margin: 40px auto;
}

.navigation-block .nav-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* explicit 4 hasáb desktop */
  gap: 40px;
  text-align: justify;
  hyphens: auto;
  padding-left: 10px;   /* oldalsó space minden nézethez */
  padding-right: 10px;  /* oldalsó space minden nézethez */
  box-sizing: border-box;
}

.icon {
  width: 70px;
  height: 70px;
  background: none;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon img {
  width: 100%;
  height: 100%;
}

.nav-card h3 {
  font-size: 20px;
  letter-spacing: 0.6px;
  text-align: center;
  margin-top: 25px;
  margin-bottom: 10px; /* ↓ kisebb térköz alul */
}

.nav-card {
  text-align: center; /* "bővebben" link */
}

.nav-card p {
  text-align: justify; 
}

.nav-card .email-link {
  display: inline-block;
  width: fit-content;   
  margin: 10px auto 0;  
}
/* =========================
   Navigációs blokk media queries
========================= */

/* Tablet / small mobil (900px alatt) */
@media (max-width:900px) {
  .navigation-block .nav-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 hasáb */
    gap: 30px;
  }

  .navigation-block .nav-card {
    padding-left: 10px;
    padding-right: 10px;
    box-sizing: border-box;
  }

  .navigation-block .nav-card hr {
    width: 80%;
  }
}

/* Medium small mobil (600px alatt) */
@media (max-width:600px) {
  .navigation-block .nav-grid {
    grid-template-columns: 1fr; /* 1 hasáb */
    gap: 20px;
  }

  .navigation-block .nav-card hr {
    width: 70%;
  }
}

/* Extra small mobil (400px alatt) */
@media (max-width:400px) {
  .navigation-block .nav-grid {
    grid-template-columns: 1fr; /* 1 hasáb */
    gap: 15px;
  }

  .navigation-block .nav-card hr {
    width: 60%;
  }
}

/* =========================
   Animált email link
========================= */
.email-link {
  text-decoration: none;
  color: #494949;
  position: relative;
  transition: color 0.2s ease;
}

.email-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background-color: #494949;
  transition: width 0.3s ease;
}

.email-link:hover::after {
  width: 100%;
}

/* =========================
   Footer
========================= */
footer {
  background: #636362;
  height: 65px;
  position: relative;
  margin-top: 80px;
}

.footer-inner {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  height: 65px;
  padding: 0 10px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
}

.footer-text {
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 0.3px;
  color: white;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 50%;
}

.footer-logos {
  position: absolute;
  right: 0;
  bottom: 0;
  display: flex;
  gap: 20px;
  align-items: center;
}

.logo-small {
  flex: 0 0 auto;
  height: auto;
}

.logo-small img {
  height: 40px;
  width: auto;
  display: block;
}

.logo-tall {
  width: 220px;
  height: 65px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  flex-shrink: 0;
}

.logo-tall img {
  width: 85%;
  height: auto;
  display: block;
  }

/* =========================
   Footer media queries
========================= */
@media(max-width:1200px) and (min-width:901px){
  .footer-text {
    position: relative;
    left: auto;
    transform: none;
    margin-left: 10px;
    max-width: 50%;
  }
}

@media(max-width:720px){
  .footer-text {
    display: none;
  }
}

/* =========================
   Tablet / Mobil menü és navigáció
========================= */
@media(max-width:900px){

  .hamburger {
    display: flex;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    position: absolute;
    left: 23px;
    top: 24px;
    z-index: 1100;
  }

  .menu {
    max-height: 0;
    overflow: visible;
    transition: max-height 0.35s ease;
    width: 250px;
    position: absolute;
    top: 65px;
    left: 0;
    background: #636362;
    display: flex;
    flex-direction: column;
    z-index: 1050;
  }

  .menu.active {
    max-height: 800px;
    padding-bottom: 0px;
  }

  .menu > ul {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 20px;
    margin: 0;
    list-style: none;
    width: 100%;
  }

  .menu > ul > li {
    width: 100%;
  }

  .menu > ul > li > a {
    display: none;
    height: 48px;
    line-height: 48px;
    padding: 0 12px;
    font-size: 16px;
    color: white;
    text-decoration: none;
    width: 100%;
    position: relative;
  }

  .menu.active > ul > li > a {
    display: block;
  }

  .menu > ul > li.dropdown > a {
    cursor: pointer;
  }

  .menu .dropdown:hover .submenu {
    display: none;
  }

  .menu > ul > li.dropdown.active > .submenu {
    display: flex;
  }

  .menu > ul > li.dropdown > .submenu > li > a {
    display: none;
    height: 55px;
    line-height: 55px;
    padding-left: 30px;
    font-size: 16px;
    position: relative;
  }

  .menu > ul > li.dropdown.active > .submenu > li > a {
    display: block;
  }

  .menu > ul > li.dropdown > .submenu > li > a::after {
    content: "";
    position: absolute;
    bottom: 6px;
    left: 30px;
    width: 0;
    height: 1px;
    background: white;
    transition: width 0.25s ease;
  }

  .menu > ul > li.dropdown > .submenu > li > a:hover::after {
    width: calc(100% - 30px);
  }

  .menu > ul > li.dropdown > .submenu {
    display: none;
    flex-direction: column;
    width: 60%;
    position: relative;
    top: 0;
    left: 0;
    background: #636362;
  }

  .hero,
  .slideshow {
    display: none;
  }

  .mobile-hero {
    display: flex;
  }
}

/* =========================
   Mobile / Tablet logo box
========================= */
.mobile-logo-box {
  width: 100%;
  max-width: 310px;
  height: 160px;              /* <<< EZ A KULCS (állítható) */
  margin: 35px auto;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;           /* levágja a kilógást */
}

.mobile-logo-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;        /* teljes logó látszik */
  display: block;
}

@media (min-width:900px) {
  .mobile-logo-box {
    display: none;
  }
}

/* =========================
   Footer logo extra mobil finomhangolás (480px alatt)
========================= */
@media (max-width:480px) {
  .footer-logos {
    gap: 20px;
    display: flex;
    align-items: flex-end;
    flex-wrap: nowrap; /* EZ A LÉNYEG */
  }

  .logo-small {
    flex: 0 0 auto;
  }

  .logo-small img {
    height: 34px;
    width: auto;
    display: block;
  }

  .logo-tall {
    width: auto;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    flex-shrink: 0;
  }

  .logo-tall img {
    height: 110px;
    width: auto;
    display: block;
  }
	.logo-tall a {
  display: flex;
  justify-content: flex-end;
  }
}

/* ===== Galériák kinézete: itt, működése: content-css ===== */

.product-gallery,
.custom-gallery {
  overflow: visible;
}

.product-gallery img,
.custom-gallery img {
  display: block;
  width: 100%;
  height: auto;

  border: 3px solid #fff;
  box-sizing: border-box;

  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}
.custom-content-alt.first-block .product-layout {
  align-items: center;
}
