@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700&family=Roboto:wght@400;500;700&family=Poppins:wght@400;500;700&display=swap');

:root {
  /* Színek */
  --background: #f5f7fb;
  --text: #0e0908;
  --primary: #ef5454; /* később brand piros pl. */
  --secondary: #30455d;

  /* Tipográfia */
  --font-inter: 'Inter', sans-serif;
  --font-roboto: 'Roboto', sans-serif;
  --font-poppins: 'Poppins', sans-serif;

  /* Egyéb */
  --logo-width: 150px;
}

/* Reset */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-inter);
  background-color: var(--background);
  color: var(--text);
}

#main-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: var(--background);
  transition: background 0.3s ease; /* szép áttűnés */
  z-index: 1000;
}

/* Ha görgetés alatt van → átlátszó */
#main-nav.transparent {
  background: transparent;
}

.logo img {
  width: var(--logo-width);
  height: auto;
  display: block;
  cursor: pointer;
}

#nav-links {
  display: none;
  flex-direction: column;
  background: var(--secondary);
  position: absolute;
  top: 110px;
  right: 10px;
  width: 250px;
}

#nav-links li {
  list-style: none;
}

#nav-links a {
  color: var(--background);
  text-decoration: none;
  padding: 1rem;
  margin-right: 0.5rem;
  display: block;
  font-size: 2rem;
}

/* Desktop nézet */
@media (min-width: 768px) {
  #menu-toggle { display: none; }
  #nav-links {
    display: flex !important;
    flex-direction: row;
    position: static;
    background: none;
    width: auto;
  }
  #nav-links a { padding: 0 15px; color: var(--secondary); font-size: 1.1rem; }
  #nav-links a:hover { text-decoration: underline; }
}

.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 999; /* hogy a menü fölött legyen */
}

.hamburger span {
  display: block;
  height: 3px;
  width: 100%;
  background: var(--secondary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Ha aktív a menü (X-re alakul) */
.hamburger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.container {
  width: 96%;
  max-width: 1400px; /* opcionális, ha asztalin nem akarod full szélességet */
  margin: 0 auto;    /* középre igazítás */
  overflow-x: hidden; /* ne legyen túlcsordulás */
  padding-top: 45px; /* hely a navnak, fixen */
}

.hero-slider {
  position: relative;
  width: 100%;
  max-height: 500px;
  overflow: hidden;
}

.hero-slider .slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}

.hero-slider .slide.active {
  opacity: 1;
  position: relative;
  z-index: 1;
}

.hero-slider img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

/* Nyilak */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: transparent; /* var(--secondary) átlátszó */
  color: white;
  border: none;
  font-size: 2rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  z-index: 10;
}

.slider-btn:hover {
  background: transparent;
}

.slider-btn.prev {
  left: 10px;
}

.slider-btn.next {
  right: 10px;
}

/* Pöttyök */
.slider-dots {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.slider-dots button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  background: rgba(48, 69, 93, 0.4);
  cursor: pointer;
}

.slider-dots button.active {
  background: var(--primary);
}

.advantages {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin: 2rem auto;
  padding: 1rem;
  text-align: center;
}

.advantage {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--secondary);
}

.advantage span {
  font-size: 3rem;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.advantage p {
  font-size: 1.2rem;
  font-family: var(--font-poppins);
}

/* Asztali elrendezés */
@media (min-width: 768px) {
  .advantages {
    grid-template-columns: repeat(4, 1fr);
    max-width: 1200px;
  }
}

#cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--secondary);
  color: var(--background);
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10000;
}

#cookie-consent.hidden {
  display: none;
}

#cookie-consent button {
  background: var(--primary);
  color: var(--background);
  border: none;
  padding: 0.5rem 1rem;
  margin-left: 0.5rem;
  cursor: pointer;
}