@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;600;700&family=Manrope:wght@400;500;600;700&display=swap');

/* Alapok */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    color: #333333;
    background-color: #ffffff;
    scroll-behavior: auto;
}

/* ============ STICKY CTA BAR (NEW - CONVERSION) ============ */
.sticky-cta-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #d32f2f 0%, #f57c00 100%);
    color: white;
    padding: 15px 20px;
    z-index: 999;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.25);
    animation: slideUp 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

@keyframes slideUp {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.cta-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    gap: 20px;
}

.cta-content h3 {
    margin: 0 0 5px 0;
    font-size: 18px;
    font-weight: bold;
}

.cta-content p {
    margin: 0;
    font-size: 14px;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-quick-form, .btn-phone-call {
    padding: 10px 18px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    font-size: 14px;
}

.btn-quick-form {
    background: white;
    color: #d32f2f;
}

.btn-quick-form:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.btn-phone-call {
    background: rgba(255,255,255,0.2);
    color: white;
    border: 2px solid white;
}

.btn-phone-call:hover {
    background: rgba(255,255,255,0.3);
}

.btn-close-sticky {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-close-sticky:hover {
    opacity: 0.7;
}

/* HIDDEN STATE */
.sticky-cta-bar.hidden {
    display: none;
}

/* ============ MODAL POPUP ============ */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.modal-overlay.active {
    display: flex;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: white;
    border-radius: 10px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    animation: slideIn 0.4s ease;
}

@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: #666;
}

.modal-close:hover {
    color: #d32f2f;
}

.modal-content h2 {
    color: #333;
    margin-bottom: 20px;
    font-size: 22px;
}

#quick-quote-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#quick-quote-form input,
#quick-quote-form select,
#quick-quote-form textarea {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    font-family: inherit;
}

#quick-quote-form input:focus,
#quick-quote-form select:focus,
#quick-quote-form textarea:focus {
    outline: none;
    border-color: #d32f2f;
    box-shadow: 0 0 5px rgba(211, 47, 47, 0.3);
}

.btn-submit-form {
    background: linear-gradient(135deg, #d32f2f 0%, #f57c00 100%);
    color: white;
    padding: 14px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    font-size: 16px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-submit-form:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(211, 47, 47, 0.4);
}

/* Responsív: Tablet és alatta */
@media (max-width: 768px) {
    .sticky-cta-bar {
        flex-direction: column;
        gap: 12px;
        padding: 12px;
    }

    .cta-container {
        flex-direction: column;
        gap: 12px;
    }

    .cta-content h3 {
        font-size: 16px;
    }

    .cta-content p {
        font-size: 13px;
    }

    .cta-buttons {
        width: 100%;
    }

    .btn-quick-form, .btn-phone-call {
        flex: 1;
        padding: 12px;
        font-size: 13px;
    }

    .modal-content {
        padding: 30px 20px;
    }
}

/* Menü */
header {
    position: fixed;
    width: 100%;
    background-color: #333;
    color: white;
    top: 0;
    z-index: 100000;
}

/* Menü módosítása */
header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* Módosítások: */
    width: 100%;       /* A teljes szélességet kitölti */
    max-width: 100%;    /* Kikapcsoljuk a 1200px-es korlátot */
    padding: 10px 40px; /* A 40px határozza meg, milyen messze legyen a szélétől */
    margin: 0;          /* Nem kell az auto, mert kiér a szélekig */
    box-sizing: border-box; /* Fontos, hogy a padding ne tolja túl a képernyőn */
    gap: 20px;
}

/* A logó távolsága a bal széltől */
.logo {
    margin-left: 0;
    padding-left: 0;
    flex: 0 0 auto;
}

/* Nyelvváltó - mindkét zászló */
#language-switcher {
    display: flex;
    gap: 8px;
    align-items: center;
}

.flag-btn {
    cursor: pointer;
    padding: 5px 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
    opacity: 0.5;
    filter: grayscale(50%);
    border: 2px solid transparent;
    background: transparent;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.flag-img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    display: block;
}

.flag-btn:hover {
    transform: scale(1.15);
    opacity: 0.8;
    filter: grayscale(0%);
}

.flag-btn.active {
    opacity: 1;
    filter: grayscale(0%);
    border-color: rgba(255, 102, 0, 0.6);
    background: rgba(255, 102, 0, 0.1);
    transform: scale(1.1);
}

/* A menüsor (gombok) távolsága a jobb széltől */
header nav ul {
    list-style: none;
    display: flex;
    gap: 10px;
    margin: 0 0 0 auto;
    padding: 0;
    align-items: center;
}

/* Menü gombok finomhangolása */
header nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    /* Kisebb padding (8px 15px helyett 6px 10px), hogy keskenyebbek legyenek a gombok */
    padding: 6px 10px; 
    font-size: 14px; /* Kicsit kisebb betű, hogy minden elférjen egy sorban */
    border-radius: 5px;
    background-color: #ff6600;
    transition: all 0.3s ease;
    white-space: nowrap; /* Megakadályozza, hogy a gomb szövege két sorba törjön */
}

header nav ul li a:hover,
header nav ul li a.active {
    background-color: #ff6600;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Logo */
.logo img {
    height: 50px;
    width: auto;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger div {
    width: 25px;
    height: 3px;
    background-color: white;
}


/* Hero szekció parallax háttérrel */
#hero {
  position: relative;
  height: 100vh;
  background-image: url('images/hero.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed; /* Parallax hatás */
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  overflow: hidden;
}

#hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.6));
  z-index: 1;
}

/* Industrial pages: shared background + hero melt transition */
body.industrial-theme {
    background-color: #cfd5db !important;
    background-image: url('images/hatter.png');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center top;
    background-attachment: fixed;
}

/* Force visible hatter.png background on selected industrial pages */
body.hatter-theme {
    background-color: #cfd5db !important;
    background-image: url('images/hatter.png') !important;
    background-repeat: no-repeat !important;
    background-size: cover !important;
    background-position: center top !important;
    background-attachment: fixed !important;
}

body.hatter-theme::before {
    content: none !important;
}

body.hatter-theme #sales-listing {
    background: transparent !important;
}

body.industrial-theme #hero {
    overflow: hidden;
    position: relative;
    isolation: isolate;
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 84%, rgba(0, 0, 0, 0.7) 93%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 0%, #000 84%, rgba(0, 0, 0, 0.7) 93%, transparent 100%);
}

body.industrial-theme #hero::after {
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.42) 0%,
        rgba(0, 0, 0, 0.36) 68%,
        rgba(0, 0, 0, 0.16) 88%,
        rgba(0, 0, 0, 0) 100%
    );
    pointer-events: none;
}


.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 3rem;
    text-shadow: 1px 1px 8px rgba(0,0,0,0.6);
    margin: 0;
}

.hero-content p {
    font-size: 1.5rem;
    margin-top: 10px;
    text-shadow: 1px 1px 6px rgba(0,0,0,0.5);
}

.animated-headline {
    display: inline-block;
    animation: fadeInUp 1.5s ease forwards;
    opacity: 0;
}

@keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(20px);}
    100% { opacity: 1; transform: translateY(0);}
}

/* Hero CTA gomb */
#hero .btn {
    display: inline-block;
    margin-top: 20px;
    padding: 15px 30px;
    background-color: #ff6600;
    color: white;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    border: none;
    transition: all 0.3s ease;
    z-index: 2;
    box-shadow: 0 0 10px rgba(255,102,0,0.5);
    animation: pulse 2s infinite;
}

#hero .btn:hover {
    background-color: #cc5200;
    box-shadow: 0 0 20px rgba(255,102,0,0.8), 0 0 30px rgba(255,102,0,0.5);
    transform: scale(1.05);
}

@keyframes pulse {
    0% { box-shadow: 0 0 10px rgba(255,102,0,0.5); }
    50% { box-shadow: 0 0 20px rgba(255,102,0,0.8), 0 0 30px rgba(255,102,0,0.5); }
    100% { box-shadow: 0 0 10px rgba(255,102,0,0.5); }
}

/* Scroll down gomb */
.scroll-down {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    animation: bounce 2s infinite;
}

.scroll-down a {
    color: white;
    text-decoration: none;
}

@keyframes bounce {
    0%,20%,50%,80%,100% { transform: translateX(-50%) translateY(0);}
    40% { transform: translateX(-50%) translateY(-10px);}
    60% { transform: translateX(-50%) translateY(-5px);}
}

/* Hero alatti szolgáltatások */
#hero-services {
    background-color: #f9f9f9;
    padding: 60px 20px;
    text-align: center;
}

/* -------------------- SZOLGÁLTATÁS KÁRTYÁK TÁROLÓJA -------------------- */
.service-cards {
 display: flex; /* Ezt feltehetően a style.css-ben flex-re vagy grid-re állítottad */
 flex-wrap: wrap; /* Alapvető reszponzivitáshoz szükséges */
 justify-content: center;
 /*gap: 80px; /* Távolság a kártyák között */
 row-gap: 120px;
 max-width: 1200px; /* Max szélesség az oldal közepén */
 margin: 0 auto 50px auto;
}

/* -------------------- SZOLGÁLTATÁS KÁRTYA ALAP STÍLUS -------------------- */
.service-card {
 /* RÉGI: width: 200px; */
 /* RÉGI: height: 260px; */
 width: 100%; /* Engedjük, hogy flexiblen kitöltse a rendelkezésre álló helyet */
 max-width: 250px; /* Maximális szélesség asztali nézetben */
 height: 300px; /* Kicsit nagyobb magasság a szövegnek (pl. 300px) */
 perspective: 1000px;
}

@media (max-width: 768px) {
  .service-cards {
        row-gap: 40px;
        column-gap: 20px;
    }
  .service-card {
    max-width: 45%;
    height: auto;
  }
}

@media (max-width: 480px) {
  .service-cards {
    row-gap: 40px;
    column-gap: 15px;
  }
  .service-card {
    max-width: 100%;
  }
}


.service-card img {
    width: 80%;
    height: auto;
    margin-bottom: 15px;
}

.service-card span {
    color: #000000;
    margin-bottom: 10px;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* Szekciók animáció */
section {
    padding: 100px 20px;
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Rólunk és szolgáltatások */
#about { background-color: #f2f2f2;}
#services { background-color: #ffffff;}
#gallery { background-color: #f2f2f2;}
#contact { background-color: #ffffff;}

/* Szolgáltatás kártyák */
.cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.card {
    background-color: #333333;
    color: white;
    padding: 20px;
    border-radius: 10px;
    width: 250px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.card span { color: #ff6600; }
.card:hover { transform: translateY(-10px); box-shadow: 0 10px 20px rgba(0,0,0,0.3);}

/* Galéria */
.images {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.images img {
    width: 250px;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.images img:hover { transform: scale(1.05); box-shadow: 0 10px 20px rgba(0,0,0,0.3);}

/* Kapcsolat űrlap */
form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 500px;
    margin: 20px auto;
}

form input, form textarea {
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 16px;
}

form textarea { resize: vertical; min-height: 100px; }

form button {
    background-color: #ff6600;
    color: white;
    border: none;
    padding: 15px;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

form button:hover { background-color: #cc5200; }

/* Térkép */
.map {
    margin-top: 40px;
    text-align: center;
}

.map h3 {
    margin-bottom: 15px;
    color: #ff6600;
    font-size: 1.5rem;
}

.map iframe {
    display: block;
    width: 100%;
    height: 400px;
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/*
 * JAVÍTOTT RESZPONZÍV MENÜ STÍLUSOK (style.css végére)
 * Cél: Biztosítani a menü rejtését alapállapotban és kinyitását az .open osztályra.
 */
@media (max-width: 768px) {

    /* Hamburger ikon: Mobilon mindig látható */
    .hamburger {
        display: flex;
        flex-direction: column;
        gap: 5px;
        cursor: pointer;
        z-index: 100002;
        position: relative;
    }

    /* Navigációs menü lista (ALAPÉRTELMEZETTEN REJTVE) */
    /* Azonosítóra hivatkozás, plusz !important, hogy felülírjon minden asztali stílust */
    #nav-links {
        display: none !important; /* !! ELREJTÉS GARANTÁLÁSA !! */
        
        /* Menü pozícionálása/kinézete */
        flex-direction: column;
        background-color: #333; /* A header háttérszíne */
        position: absolute;
        top: 60px; /* A header magasságához igazítva */
        right: 0;
        width: 250px; /* Szélesebb menü a jobb olvashatóságért */
        padding: 10px 0;
        z-index: 100001;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
    }

    /* Megnyitott menü állapota (JS adja hozzá az .active-t) */
    #nav-links.active,
    #nav-links.open {
        display: flex !important; /* !! MEGJELENÍTÉS GARANTÁLÁSA !! */
    }
    
    /* Menüpontok mobil nézetben */
    #nav-links li {
        text-align: right;
        padding: 10px 20px;
    }
    
    #nav-links li a {
        padding: 10px 0;
        display: block;
        color: white; /* Vagy a kívánt link szín */
    }
}


.highlighted-title {
    text-align: center;
    font-size: 2.2em; /* nagyobb méret */
    color: #ff6600; /* narancssárga */
    text-shadow: 2px 2px 5px rgba(0,0,0,0.2); /* árnyék */
    margin: 50px 0; /* fent és lent több hely */
}


.service-card {
  /* Responsive card sizing: allow flexible width and auto height */
  width: 100%;
  max-width: 260px; /* desktop max width */
  height: auto;     /* let the content decide height */
  perspective: 1000px;
  box-sizing: border-box;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
    cursor: pointer;
}

.service-card:hover .card-inner {
    transform: rotateY(180deg);
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
    padding: 10px;
}

.card-front {
    background: #ff6600;
    color: white;
}

.card-front img {
 width: 80%; /* Fix ikon méretet adunk, ami jól néz ki */
 height: auto;
 object-fit: contain;
 margin-bottom: 10px;
}

.card-back {
 background: #f5f5f5;
 color: #333;
 transform: rotateY(180deg);
 text-align: center;
 font-size: 1em; /* Olvashatóbb betűméret */
 padding: 20px; /* Megnövelt belső tér a szöveg körül */
 line-height: 1.4;
}
#stats {
    background: #f2f2f2;
    padding: 60px 20px;
    text-align: center;
}

.stats-container {
    display: flex;             /* sorba rendezi a stat kártyákat */
    flex-wrap: wrap;           /* ha túl széles, legyen új sor */
    justify-content: center;   /* középre igazítás */
    gap: 50px;                 /* távolság a kártyák között */
}

.stat {
    flex: 1 1 150px;           /* legalább 150px szélesség, rugalmasan nő */
    max-width: 200px;
    text-align: center;
}

.stat-number-container {
    display: inline-flex;
    align-items: baseline; /* a szám és a + jel ugyanazon a soron legyen */
    justify-content: center;
    height: 70px; /* a kártya magasságához igazítható */
}

.stat-number {
    font-family: 'Courier New', monospace;
    font-size: 3rem;
    font-weight: bold;
    color: #ff6600;
    line-height: 1;
}

.plus {
    font-size: 2rem; /* kicsit kisebb, hogy a szám domináljon */
    color: #ff6600;
    line-height: 1;
    margin-left: 1px; /* kis távolság a szám és a + jel között */
}

.stat-number {
    font-family: 'Courier New', monospace;
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    color: #ff6600;            /* narancssárga */
    line-height: 1;
    transition: transform 0.3s;
}

.stat-number.animate {
    animation: countUp 2s ease-out forwards;
}

.plus {
    font-size: 4rem;           /* nagyobb + jel */
    color: #ff6600;
    line-height: 1;
    margin-left: 5px;
    vertical-align: top;
}

.stat p {
    margin-top: 10px;
    font-size: 1.2rem;
    font-weight: 500;
    color: #333;
}

/* animáció */
@keyframes countUp {
    0% { transform: scale(0.5); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}
.gallery-wrapper {
    position: relative;
    overflow: hidden;
    max-width: 1000px;
    margin: 0 auto;
}

.gallery-track {
    display: flex;
    gap: 15px;
    transition: transform 0.5s ease;
}

.gallery-track img {
    width: 420px;
    height: 350px;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
}

/* Navigáció gombok */
.gallery-prev, .gallery-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255,102,0,0.8);
    border: none;
    color: white;
    font-size: 2rem;
    padding: 10px;
    cursor: pointer;
    border-radius: 50%;
    z-index: 10;
}

.gallery-prev { left: 10px; }
.gallery-next { right: 10px; }

.gallery-prev:hover, .gallery-next:hover { background-color: #cc5200; }

/* Lightbox */
#lightbox {
  display: none; /* alapból rejtve */
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
  z-index: 9990;
}

#lightbox.hidden { display: none; }

#lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
}

#lightbox .close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 2.5rem;
    color: white;
    cursor: pointer;
}
.gallery-wrapper {
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
}

.gallery-track {
    display: flex;
    gap: 15px;
    animation: scroll 20s linear infinite;
}

.gallery-track img {
    width: 250px;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
}

/* Animáció jobbról balra */
@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Gombok */
.gallery-prev, .gallery-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255,102,0,0.8);
    border: none;
    color: white;
    font-size: 2rem;
    padding: 10px;
    cursor: pointer;
    border-radius: 50%;
    z-index: 10;
}

.gallery-prev { left: 10px; }
.gallery-next { right: 10px; }

.gallery-prev:hover, .gallery-next:hover { background-color: #cc5200; }
/* -------------------- Hidraulika hero -------------------- */
#hidraulika-hero {
    height: 30vh;
    background: url('images/hidraulika1.jpg') center/cover no-repeat; /* ide a hero kép neve */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

#hidraulika-hero::after {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.6));
    z-index: 1;
}

#hidraulika-hero .hero-content {
    position: relative;
    z-index: 2;
}

#hidraulika-hero h1 {
    font-size: 3rem;
    margin: 0;
    text-shadow: 1px 1px 8px rgba(0,0,0,0.6);
}

#hidraulika-hero p {
    font-size: 1.5rem;
    margin-top: 10px;
    text-shadow: 1px 1px 6px rgba(0,0,0,0.5);
}

#hidraulika-hero .btn {
    display: inline-block;
    margin-top: 20px;
    padding: 15px 30px;
    background-color: #ff6600;
    color: white;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(255,102,0,0.5);
}

#hidraulika-hero .btn:hover {
    background-color: #cc5200;
    box-shadow: 0 0 20px rgba(255,102,0,0.8), 0 0 30px rgba(255,102,0,0.5);
    transform: scale(1.05);
}

/* -------------------- Hidraulika termék galéria -------------------- */
#hidraulika-products {
    padding: 60px 20px;
    background: #f9f9f9;
    text-align: center;
}

#hidraulika-products h2 {
    text-align: center;
    color: #ff6600;
    margin-bottom: 40px;
}

.product-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

.product-item {
    background: #fff;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.product-item img {
    max-width: 100%;
    border-radius: 5px;
    margin-bottom: 10px;
}

.product-item p {
    font-size: 1em;
    color: #333;
}
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

.category-card {
    background: #fff;
    border-radius: 10px;
    text-align: center;
    padding: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.category-card img {
    width: 100%;
    height: 150px; /* állítsd, amilyen magas szeretnéd */
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 10px;
}

.subcategories {
    display: none; /* alapból rejtve */
    gap: 15px;
    margin-top: 10px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.subcategory-card img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 5px;
}

/* Csak a személyemelők kártyáihoz */
.subcategory-card.personnel-lift .flip-card-front img { 
    height: auto;       /* Automatikus magasság */
    object-fit: contain; /* A kép teljes egészében látszik */
    padding: 5px;       /* Kis margó, hogy ne érjen a széléhez */
}


.subcategory-card p {
    margin-top: 5px;
    font-size: 0.9rem;
}
.subcategories {
  display: none;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.subcategories.open {
  display: grid;
}
.category-card {
  display: inline-block; /* vagy flex */
  vertical-align: top;
  width: 200px;
  margin: 10px;
  border: 1px solid #ccc;
  padding: 10px;
}

.subcategories {
  display: none;
  margin-top: 10px;
}

.subcategories.open {
  display: block; /* grid is lehet, ha több oszlop kell */
}
.categories-container {
  display: grid;
  grid-template-columns: repeat(5, 1fr); /* 5 kártya egy sorban */
  gap: 15px;
  margin: 20px;
}

.category-card {
  background: #f7f7f7;
  border: 1px solid #ccc;
  padding: 10px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.subcategories {
  display: none;
  margin-top: 10px;
  background: #e0e0e0;
  padding: 5px;
  border-radius: 4px;
}

.subcategories.open {
  display: block;
}
/* ---------- Kategóriák grid ---------- */
.category-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* 5 oszlop */
  gap: 20px;
  margin: 20px;
}

.category-card {
  cursor: pointer;
  border: 1px solid #ccc;
  border-radius: 8px;
  overflow: hidden;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.category-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.category-card span {
  display: block;
  padding: 10px 5px;
  font-weight: bold;
}

/* ---------- Modal / Lightbox ---------- */
#subcategoryModal {
  display: none; /* alapban rejtett */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  overflow-y: auto;
}

.modal-content {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  max-width: 1000px;
  width: 90%;
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
}

.subcategories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); /* rugalmas grid */
  gap: 15px;
  margin-top: 20px;
}

.subcategory-card {
  border: 1px solid #ccc;
  border-radius: 8px;
  overflow: hidden;
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.subcategory-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.subcategory-card img {
  width: 100%;
  height: 120px;
  object-fit: cover;
}

.subcategory-card span {
  display: block;
  padding: 8px 5px;
  font-weight: bold;
}

/* ---------- Responsive ---------- */
@media screen and (max-width: 1200px) {
  .category-container {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media screen and (max-width: 992px) {
  .category-container {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media screen and (max-width: 768px) {
  .category-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 480px) {
  .category-container {
    grid-template-columns: 1fr;
  }
}

/* Cookie Modal Stílus */
#cookieConsent {
    /* A modal háttér */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7); /* Sötét, áttetsző réteg */
    z-index: 99999; /* Nagyon magas z-index, hogy felül legyen mindenen */
    display: none; /* Alapból elrejtve, a JavaScript jeleníti meg */
    opacity: 0; /* Kezdeti átlátszóság az animációhoz */
    justify-content: center;
    align-items: center;
    transition: opacity 0.3s ease; /* Átmenet hozzáadása az elrejtéshez */
}

.cookie-content {
    /* A modal tartalom doboza */
    background-color: #ffffff; /* Fehér háttér */
    color: #333333;
    padding: 30px;
    max-width: 450px;
    width: 90%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    text-align: center;
    animation: fadeInDown 0.5s ease-out; /* Animáció a szebb megjelenésért */
}

.cookie-content p {
    margin-bottom: 20px;
    font-size: 1.1em;
}

#cookieConsent button {
    background-color: #ff6600; /* A fő narancs szín használata */
    color: white;
    border: none;
    padding: 12px 25px;
    cursor: pointer;
    font-weight: bold;
    border-radius: 5px;
    transition: background-color 0.3s, transform 0.3s;
    font-size: 1em;
}

#cookieConsent button:hover {
    background-color: #cc5200;
    transform: scale(1.05);
}

/* Animáció a megjelenéshez */
@keyframes fadeInDown {
    0% { opacity: 0; transform: translateY(-50px); }
    100% { opacity: 1; transform: translateY(0); }
}

@media(max-width: 600px) {
    .cookie-content {
        padding: 20px;
    }
    #cookieConsent button {
        padding: 10px 20px;
    }
}

header {
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  background-color: rgba(51, 51, 51, 0.4);
  color: white;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

header nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: none;      /* vagy 100% */
  margin: 0;            /* ne legyen auto */
  padding: 10px 80px;   /* ez szabja meg, milyen közel legyen a bal szélhez */
  box-sizing: border-box;
}


header .logo img {
  height: 50px;
}

header nav ul {
    list-style: none;
    display: flex;
    gap: 10px;
    margin: 0 0 0 auto;
    padding: 0;
    align-items: center;
}

header nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  padding: 10px 18px;
  border-radius: 8px;
  background-color: rgba(255, 102, 0);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

header nav ul li a:hover {
  background-color: #ff6600;
  transform: scale(1.05);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3), 0 0 15px rgba(255, 255, 255, 0.8);
}

/* --- HERO SECTION --- */
.hero {
  position: relative;
  height: 80vh;
  background: url("images/hero.jpg") center/cover no-repeat fixed; /* PARALLAX hatás */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  overflow: hidden;
}

/* Sötét, enyhén átlátszó réteg a kép fölött */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(180, 179, 179, 0);
  backdrop-filter: blur(3px);
  z-index: 1;
}

/* Szöveg középen */
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 20px;
  animation: fadeInUp 1.5s ease;
}

/* Főcím – lassan „beúszik” és világít */
.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 15px;
  animation: glowText 2.5s ease-in-out infinite alternate;
  white-space: nowrap;
}

/* Alcím */
.hero-subtitle {
  font-size: 1.4rem;
  opacity: 0.9;
  margin-bottom: 30px;
}

/* Üveges, világító gomb */
.btn-hero {
  display: inline-block;
  padding: 14px 40px;
  font-size: 1.1rem;
  color: white;
  text-decoration: none;
  border-radius: 40px;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.btn-hero:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.07);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}



/* Reszponzív nézet */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.4rem;
  }
  .hero-subtitle {
    font-size: 1.1rem;
  }
  .btn-hero {
    padding: 10px 25px;
    font-size: 1rem;
  }
}

.cookie-modal {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background: #fff;
  border: 1px solid #ccc;
  padding: 15px;
  text-align: center;
  display: none; /* alapból rejtve */
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  border-radius: 8px;
}
.cookie-modal.show {
  display: block;
}

/* Erősebb szabályok a mobilnézethez (1024px alatt) */
@media (max-width: 1024px) {
    .service-cards {
        row-gap: 50px;
        column-gap: 20px;
    }
    
    /* Header flexbox javítás mobilon */
    header nav {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 8px 10px;
        position: relative;
    }
    
    .logo {
        flex: 0 0 auto;
        margin-right: auto;
        z-index: 1200;
    }
    
    .logo img {
        height: 38px;
        width: auto;
    }
    
    /* 1. Navigációs menü konténere: ÜVEGES HÁTTÉR és POZÍCIÓ */
    #nav-links {
    display: none !important; 
    flex-direction: column;
    width: 200px; /* kisebb szélesség */
    position: absolute;
    top: 100%; /* A header alá pozícionálva */
    right: 0;
    left: auto;
    background-color: rgba(51, 51, 51, 0.6); /* Üveges háttér */
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.4);
    z-index: 999;

    /* ⭐ Minden sarkot lekerekítünk */
    border-radius: 10px;

    transform: translateX(100%);
    opacity: 0;
    transition: transform 0.4s ease-out, opacity 0.4s ease-out;
}


    /* 2. Megnyitott állapot */
    #nav-links.open,
    #nav-links.active {
        display: flex !important; 
        transform: translateX(0); 
        opacity: 1; 
    }

    /* Hamburger ikon */
    .hamburger {
        display: flex; 
        z-index: 1001;
    }

    /* 3. Menüelemek középre és kisebb padding */
    #nav-links li {
        width: 90%;
        margin-left: auto;
        margin-right: auto;
        padding: 8px 0;
        border-radius: 5px;
        transition: all 0.3s ease;
    }

    #nav-links li a {
        text-align: center;
        display: block;
        color: white;
        padding: 10px 0;
        text-decoration: none;
        font-weight: bold;
        transition: all 0.3s ease;
        position: relative; /* fontos a pseudo elemhez */
        z-index: 1;
    }

  /* Hover effekt: fehér overlay + kiemelkedés */
    #nav-links li:hover::before {
        content: "";
        position: absolute;
        top: 0; left: 0;
        width: 100%; height: 100%;
        background: rgba(255, 255, 255, 0.15); /* halvány fehér */
        border-radius: 5px;
        z-index: 0;
    }

    #nav-links li:hover {
        transform: translateY(-3px);
        box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
    }

    #nav-links li a:hover {
        color: white; /* maradjon fehér a szöveg */
    }
}

/* Ezt a kódot adja hozzá a style.css fájlhoz */

/* Szolgáltatás kártyákon lévő képek méretének növelése */
.card-front img {
  width: 80%;
  max-width: 160px; /* ne legyen túl nagy asztalon sem */
  height: auto;
  margin-bottom: 10px;
  object-fit: contain;
}

@media (max-width: 600px) {
  .hero-title {
    font-size: 1.8em; /* kisebb betűméret mobilon */
  }
}

/* Mobile-specific fixes */
@media (max-width: 768px) {
  /* Hero: disable fixed background on mobile for performance and layout */
  .hero, #hero {
    background-attachment: scroll !important;
  }

  /* Allow long titles to wrap instead of overflowing */
  .hero-title {
    white-space: normal !important;
    font-size: 2.4rem;
    line-height: 1.2;
    padding: 0 10px;
  }

  /* Ensure service cards stack nicely */
  .service-cards {
    gap: 20px;
    justify-content: center;
    padding: 0 10px;
  }

  .service-card {
    max-width: 420px;
    width: 100%;
  }

  /* Make sure the nav is hidden by default and hamburger visible */
  #nav-links {
    display: none !important;
  }

  .hamburger { display: flex; }
}

/* Desktop: ensure the nav links show as inline flex when not overridden */
#nav-links { display: flex; }

/* Small polish for hamburger active state */
.hamburger.active div:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.active div:nth-child(2) { opacity: 0; }
.hamburger.active div:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }


#lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

#lightbox.hidden {
  display: none;
}

.lightbox-img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
  box-shadow: 0 0 20px #000;
}

#lightbox .close {
  position: absolute;
  top: 20px;
  right: 40px;
  font-size: 40px;
  color: white;
  cursor: pointer;
  font-weight: bold;
}

/* Gombok elrendezése */
.service-button-container {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Két oszlop */
    gap: 20px;
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
}

.service-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    border: 2px solid #ff6600;
    border-radius: 15px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    overflow: hidden;
}

.service-btn:hover {
    transform: translateY(-5px);
    background-color: #ff6600;
    color: white;
}

/* Négyzet alakú gombok */
.service-btn.square {
    aspect-ratio: 1 / 1; /* Garantálja a négyzet alakot */
}

/* Téglalap alakú gomb (alul, teljes szélességben) */
.service-btn.wide {
    grid-column: span 2; /* Mindkét oszlopot kitölti */
    height: 150px;
    flex-direction: row; /* Ikon és szöveg egymás mellett */
    gap: 20px;
}

.service-btn img {
    width: 300px;
    height: auto;
    margin-bottom: 15px;
}

.service-btn.wide img {
    margin-bottom: -20px;
    width: 250px;
}

.service-btn span {
    font-size: 1.2em;
    font-weight: bold;
    text-transform: uppercase;
}

/* Mobil nézet: ha nagyon kicsi a kijelző, egymás alá kerülnek */
@media (max-width: 480px) {
    .service-button-container {
        grid-template-columns: 1fr;
    }
    .service-btn.wide, .service-btn.square {
        grid-column: span 1;
        aspect-ratio: auto;
        height: 120px;
        flex-direction: row;
        padding: 0 20px;
        justify-content: flex-start;
    }
    .service-btn img {
        margin-bottom: 0;
        margin-right: 20px;
        width: 50px;
    }
}

.service-btn.wide{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 18px 25px;
    gap: 6px;
}

/* Cím */
.service-btn.wide span{
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 1px;
}

/* Telefonszám – finom, de jól látható */
.service-phone{
    font-size: 0.95rem;
    color: #000000;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-top: -4px;
}

.service-phone a{
    color: #ff6600;
    text-decoration: none;
    font-weight: 600;
}

.service-phone a:hover{
    text-decoration: underline;
}
.service-phone{
    line-height: 1;
    margin: 0;
}

.service-phone a{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ff6600;
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
}
.service-btn.wide{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap: 8px;
}

.service-main{
  width:100%;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  color:inherit;
}

.service-phone{
  color:#ff6600;
  font-weight:600;
  text-decoration:none;
  white-space:nowrap;
}
.service-phone:hover{ text-decoration: underline; }
/* --- WIDE hidraulika kártya: stabil, középre, telefon bent --- */
.service-btn.wide{
  grid-column: span 2;
  height: 180px;
  padding: 18px 25px;
  gap: 6px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  background-color: #fff;
  border: 2px solid #ff6600;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  overflow: hidden;
}

/* a "fő" link (ikon + cím) */
.service-btn.wide .service-main{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: inherit;
}

/* kép finomhangolás wide-on */
.service-btn.wide img{
  width: 250px;
  height: auto;
  margin: 0;
}

/* cím */
.service-btn.wide span{
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* telefonszám */
.service-btn.wide .service-phone{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;

  font-size: 0.95rem;
  font-weight: 700;
  color: #ff6600;
  text-decoration: none;
}

.service-btn.wide .service-phone:hover{
  text-decoration: underline;
}

/* hover a kártyára */
.service-btn.wide:hover{
  transform: translateY(-5px);
  background-color: #ff6600;
  color: white;
}

/* hover esetén a tel link is fehér legyen */
.service-btn.wide:hover .service-phone{
  color: white;
}

.hero-content {
    position: relative; /* Ez biztosítja, hogy a tartalomhoz képest igazodjunk */
}

.hero-location {
    position: absolute;
    top: -20px; /* Kicsit feljebb tolja a címsortól */
    right: 0;   /* Jobb szélre igazítja */
    background: rgba(255, 102, 0, 0.9); /* A cég narancssárga színe, enyhén átlátszóan */
    color: white;
    padding: 10px 15px;
    border-radius: 50px; /* Lekerekített "kapszula" forma */
    font-size: 0.9em;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
    z-index: 10;
}

.hero-location:hover {
    transform: scale(1.05); /* Ráközelít, ha fölé viszik az egeret */
    background: #ff6600;
}

/* Mobilon, hogy ne lógjon le vagy ne zavarjon be, középre tesszük */
@media (max-width: 768px) {
    .hero-location {
        position: static; /* Kikerül a lebegő módból */
        margin: 0 auto 20px auto;
        width: fit-content;
    }
}

/* ==================== VISSZA A TETEJÉRE GOMB ==================== */
.back-to-top {
    position: fixed;
    bottom: 100px; /* Feljebb pozicionálva, hogy ne ütközzön a chatbot-tal */
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #ff6600, #ff8533);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(255, 102, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(100px);
    transition: all 0.3s ease;
    z-index: 9998;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: linear-gradient(135deg, #cc5200, #ff6600);
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(255, 102, 0, 0.6);
}

.back-to-top:active {
    transform: translateY(-2px);
}

.back-to-top svg {
    width: 24px;
    height: 24px;
}

@media (max-width: 768px) {
    .back-to-top {
        width: 45px;
        height: 45px;
        bottom: 90px; /* Mobilon is feljebb */
        right: 20px;
    }
    
    .back-to-top svg {
        width: 20px;
        height: 20px;
    }
}

/* ==================== SCROLL REVEAL ANIMÁCIÓK ==================== */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Különböző késleltetések a szekvenciális megjelenéshez */
.reveal:nth-child(1) {
    transition-delay: 0.1s;
}

.reveal:nth-child(2) {
    transition-delay: 0.2s;
}

.reveal:nth-child(3) {
    transition-delay: 0.3s;
}

/* Alternatív animáció: oldalról beúszás */
.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal-left.revealed {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal-right.revealed {
    opacity: 1;
    transform: translateX(0);
}

/* ==================== BREADCRUMB NAVIGÁCIÓ ==================== */
#breadcrumb {
    background: #f8f9fa;
    padding: 12px 20px;
    margin-top: 80px; /* Header magassága miatt */
    border-bottom: 2px solid #e9ecef;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
    max-width: 1200px;
    margin: 0 auto;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    color: #6c757d;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "/";
    padding: 0 8px;
    color: #6c757d;
}

.breadcrumb-item a {
    color: #ff6600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
    color: #cc5200;
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: #333;
    font-weight: 500;
}

@media (max-width: 768px) {
    #breadcrumb {
        padding: 10px 15px;
        margin-top: 70px;
    }
    
    .breadcrumb-item {
        font-size: 0.85rem;
    }
    
    .breadcrumb-item + .breadcrumb-item::before {
        padding: 0 5px;
    }
}

/* ==================== ELA DO GEPEK ==================== */
#sales-listing {
    padding: 70px 20px;
    background: #f6f6f6;
    opacity: 1 !important;
    transform: none !important;
}

#sales-listing h2 {
    text-align: center;
    font-size: 2.2rem;
    color: #ff6600;
    margin-bottom: 12px;
}

.sales-lead {
    text-align: center;
    color: #555;
    margin: 0 auto 40px;
    max-width: 800px;
    line-height: 1.6;
}

.sales-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    padding: 0 20px;
}

@media (max-width: 768px) {
    #sales-listing {
        padding: 50px 16px;
    }
    
    #sales-listing h2 {
        font-size: 1.8rem;
    }
    
    .sales-grid {
        gap: 20px;
        padding: 0 16px;
    }
}

@media (max-width: 480px) {
    #sales-listing {
        padding: 40px 12px;
    }
    
    #sales-listing h2 {
        font-size: 1.5rem;
    }
    
    .sales-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 0 12px;
    }
}

.sale-card {
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sale-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.15);
}

.sale-card-media {
    position: relative;
    height: 190px;
    overflow: hidden;
}

.sale-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.sale-card:hover .sale-card-media img {
    transform: scale(1.05);
}

.sale-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: #ff6600;
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: 0 6px 18px rgba(255,102,0,0.3);
}

.sale-card-body {
    padding: 20px 22px 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.sale-card-body h3 {
    margin: 0;
    font-size: 1.2rem;
    color: #222;
}

.sale-card-price {
    font-weight: 700;
    color: #ff6600;
    margin: 0;
}

.sale-card-meta {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 6px;
    color: #555;
    font-size: 0.95rem;
}

.sale-card-button {
    margin-top: auto;
    border: none;
    border-radius: 999px;
    padding: 12px 18px;
    background: linear-gradient(135deg, #ff6a00 0%, #ff8a2a 100%);
    color: #ffffff;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sale-card-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(255,106,0,0.35);
}

.sale-cta {
    margin: 50px auto 0;
    max-width: 900px;
    padding: 30px;
    border-radius: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    justify-content: center;
}

.sale-cta-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #ffffff;
    padding: 14px 28px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #ff6a00 0%, #ff8a2a 100%);
}

.sale-cta-link:hover {
    background: linear-gradient(135deg, #ff8a2a 0%, #ffaa5a 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 106, 0, 0.3);
}

.sale-cta-link.sale-cta-phone {
    background: linear-gradient(135deg, #28a745 0%, #34ce57 100%);
}

.sale-cta-link.sale-cta-phone:hover {
    background: linear-gradient(135deg, #34ce57 0%, #4ae372 100%);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.3);
}

.sale-cta-link span {
    font-size: 1.3rem;
}

.sale-cta p {
    margin: 0;
    color: #444;
    font-size: 1.05rem;
}

.sale-cta a {
    text-decoration: none;
    color: #ffffff;
    background: #1a1a1a;
    padding: 12px 20px;
    border-radius: 999px;
    font-weight: 600;
}

.sale-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
    overflow-y: auto;
}

.sale-modal-overlay.active {
    display: flex;
}

.sale-modal {
    background: #ffffff;
    border-radius: 20px;
    width: min(1100px, 92vw);
    max-height: 90vh;
    padding: 30px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.35);
    position: relative;
    overflow-y: auto;
}

.sale-modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    font-size: 28px;
    cursor: pointer;
    color: #333;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.2s ease;
}

.sale-modal-close:hover {
    background: #ff6600;
    color: #ffffff;
    transform: scale(1.1);
}

.sale-modal-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 24px;
}

.sale-modal-image-wrap {
    position: relative;
    background: #f1f1f1;
    border-radius: 16px;
    overflow: hidden;
    height: clamp(240px, 45vh, 480px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.sale-modal-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.sale-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.7);
    color: #ffffff;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.sale-nav:hover {
    background: rgba(255, 102, 0, 0.9);
    transform: translateY(-50%) scale(1.1);
}

.sale-prev { left: 12px; }
.sale-next { right: 12px; }

.sale-modal-thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.sale-thumb {
    border: 2px solid transparent;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    padding: 0;
    background: transparent;
}

.sale-thumb.active {
    border-color: #ff6600;
}

.sale-thumb img {
    width: 100%;
    height: 70px;
    object-fit: cover;
    display: block;
}

.sale-modal-info h2 {
    margin-top: 0;
    color: #222;
}

.sale-modal-price {
    font-size: 1.2rem;
    color: #ff6600;
    font-weight: 700;
    margin: 0 0 12px;
}

.sale-modal-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
    display: grid;
    gap: 8px;
    color: #555;
}

.sale-modal-note {
    margin: 0 0 22px;
    color: #444;
    line-height: 1.6;
}

.sale-modal-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.sale-modal-cta,
.sale-modal-phone {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #ffffff;
    padding: 12px 20px;
    border-radius: 999px;
    font-weight: 600;
    transition: all 0.3s ease;
    flex: 1;
    justify-content: center;
    min-width: 150px;
}

.sale-modal-cta {
    background: linear-gradient(135deg, #ff6a00 0%, #ff8a2a 100%);
}

.sale-modal-cta:hover {
    background: linear-gradient(135deg, #ff8a2a 0%, #ffaa5a 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 106, 0, 0.3);
}

.sale-modal-phone {
    background: linear-gradient(135deg, #28a745 0%, #34ce57 100%);
}

.sale-modal-phone:hover {
    background: linear-gradient(135deg, #34ce57 0%, #4ae372 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.sale-modal-cta span,
.sale-modal-phone span {
    font-size: 18px;
}

.sale-modal-open {
    overflow: hidden;
}

@media (max-width: 900px) {
    .sale-modal-grid {
        grid-template-columns: 1fr;
    }
    
    .sale-modal {
        width: 95vw;
    }
}

@media (max-width: 768px) {
    .sale-modal {
        padding: 24px;
        width: 96vw;
    }
    
    .sale-modal-image-wrap {
        min-height: 250px;
        max-height: 400px;
    }
    
    .sale-modal-thumbs {
        grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    }
    
    .sale-nav {
        width: 48px;
        height: 48px;
        font-size: 28px;
    }
    
    .sale-modal-close {
        width: 44px;
        height: 44px;
        font-size: 32px;
        top: 8px;
        right: 8px;
    }
}

@media (max-width: 600px) {
    .sale-modal {
        padding: 18px;
        width: 98vw;
        border-radius: 16px;
    }

    .sale-card-media {
        height: 170px;
    }

    .sale-cta {
        flex-direction: column;
        gap: 12px;
    }

    .sale-cta-link {
        width: 100%;
        justify-content: center;
    }

    .sale-modal-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .sale-modal-image-wrap {
        min-height: 200px;
        max-height: 300px;
    }
    
    .sale-modal-thumbs {
        grid-template-columns: repeat(auto-fit, minmax(65px, 1fr));
        gap: 8px;
    }
    
    .sale-thumb img {
        height: 60px;
    }
    
    .sale-nav {
        width: 50px;
        height: 50px;
        font-size: 30px;
    }
    
    .sale-prev { left: 8px; }
    .sale-next { right: 8px; }
    
    .sale-modal-close {
        width: 48px;
        height: 48px;
        font-size: 34px;
    }
    
    .sale-modal-info h2 {
        font-size: 1.3rem;
    }
    
    .sale-modal-list {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .sale-modal {
        padding: 16px;
        max-height: 92vh;
    }
    
    .sale-modal-image-wrap {
        min-height: 180px;
        max-height: 250px;
    }
    
    .sale-modal-thumbs {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .sale-modal-info h2 {
        font-size: 1.2rem;
    }
    
    .sale-modal-price {
        font-size: 1.1rem;
    }
    
    .sale-modal-list {
        font-size: 0.85rem;
        gap: 6px;
    }
    
    .sale-modal-note {
        font-size: 0.9rem;
    }
    
    .sale-modal-cta,
    .sale-modal-phone {
        width: 100%;
        min-width: auto;
    }
    
    .sale-card-body h3 {
        font-size: 1.1rem;
    }
    
    .sale-card-meta {
        font-size: 0.9rem;
    }
}

/* ==================== GLOBAL BRAND SYSTEM (HU/EN) ==================== */
:root {
    --brand-primary: #ea6a1a;
    --brand-primary-strong: #c4550f;
    --brand-surface: #fff9f3;
    --brand-outline: rgba(234, 106, 26, 0.28);
    --brand-text: #2f241d;
    --font-body: 'Manrope', 'Segoe UI', sans-serif;
    --font-heading: 'Barlow Condensed', 'Arial Narrow', sans-serif;
}

body {
    font-family: var(--font-body);
    color: var(--brand-text);
    position: relative;
}

h1, h2, h3, h4, h5, h6,
.hero-title,
.section-title,
header nav ul li a {
    font-family: var(--font-heading);
    letter-spacing: 0.02em;
}

button,
input,
select,
textarea {
    font-family: var(--font-body);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    background:
        radial-gradient(circle at 8% 18%, rgba(234, 106, 26, 0.08) 0%, rgba(234, 106, 26, 0) 28%),
        radial-gradient(circle at 92% 78%, rgba(249, 168, 37, 0.1) 0%, rgba(249, 168, 37, 0) 36%),
        linear-gradient(180deg, #fffdfb 0%, #f8efe6 100%);
}

/* Premium scroll experience for shared pages */
.scroll-reveal {
    opacity: 0;
    transform: translateY(26px) scale(0.992);
    transition: opacity 0.65s ease, transform 0.65s cubic-bezier(0.2, 0.85, 0.25, 1);
}

.scroll-reveal.reveal-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    will-change: auto;
}

.scroll-reveal:not(.reveal-visible) {
    will-change: auto;
}

.scroll-reveal[data-reveal-delay="1"] { transition-delay: 0.08s; }
.scroll-reveal[data-reveal-delay="2"] { transition-delay: 0.16s; }
.scroll-reveal[data-reveal-delay="3"] { transition-delay: 0.24s; }

body.scrolling-down header {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 10px 24px rgba(20, 16, 12, 0.24);
}

@media (prefers-reduced-motion: reduce) {
    .scroll-reveal,
    .scroll-reveal.reveal-visible {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

@media (max-width: 1366px), (prefers-reduced-motion: reduce) {
    #hero,
    .hero,
    body.industrial-theme,
    body.hatter-theme {
        background-attachment: scroll !important;
    }
}

/* Scroll stability override: fixed backgrounds often cause jank during long page scroll */
#hero,
.hero,
body.industrial-theme,
body.hatter-theme {
    background-attachment: scroll !important;
}

/* ==================== GLOBAL MENU READABILITY FIX ==================== */
header nav ul li a,
header #nav-links li a,
#nav-links li a {
    color: #ffffff !important;
    font-weight: 700 !important;
    letter-spacing: 0.03em !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7) !important;
    background: linear-gradient(180deg, rgba(46, 46, 46, 0.94) 0%, rgba(23, 23, 23, 0.96) 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.32) !important;
    box-shadow: 0 5px 14px rgba(0, 0, 0, 0.28) !important;
}

header nav ul li a:hover,
header nav ul li a.active,
header #nav-links li a:hover,
header #nav-links li a.active,
#nav-links li a:hover,
#nav-links li a.active {
    color: #ffffff !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55) !important;
    background: linear-gradient(180deg, #ff8b2a 0%, #d95d0f 100%) !important;
    border-color: rgba(255, 228, 203, 0.9) !important;
    box-shadow: 0 7px 16px rgba(145, 63, 9, 0.35) !important;
}

@media (max-width: 1024px) {
    #nav-links {
        background-color: rgba(18, 18, 18, 0.9) !important;
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }
}

/* ==================== HOME LINK NEXT TO LOGO ==================== */
@media (min-width: 1025px) {
    header nav ul#nav-links {
        width: 100%;
        flex: 1;
        margin-left: 18px !important;
        margin-right: 0 !important;
    }

    #nav-links li:has(> a[href="index.html"]),
    #nav-links li:has(> a[href="index-en.html"]) {
        order: -1;
        margin-right: auto;
        padding-right: 26px;
    }
}

#nav-links li a[href="index.html"],
#nav-links li a[href="index-en.html"] {
    background: linear-gradient(180deg, #5f6f80 0%, #465666 100%) !important;
    border-color: rgba(229, 238, 247, 0.72) !important;
}

#nav-links li a[href="index.html"]:hover,
#nav-links li a[href="index.html"].active,
#nav-links li a[href="index-en.html"]:hover,
#nav-links li a[href="index-en.html"].active {
    background: linear-gradient(180deg, #77889a 0%, #58697c 100%) !important;
    border-color: rgba(241, 246, 251, 0.9) !important;
}

/* ==================== INTERACTION SPEED TUNING ==================== */
:root {
    --ui-fast-response: 0.14s;
    --ui-mid-response: 0.2s;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 84px;
}

a,
button,
.btn,
.service-btn,
.service-card,
.geppark-card,
.machine-card,
.category-card,
.subcategory-card,
.sale-card,
header nav ul li a,
#nav-links li a,
.hamburger,
.flag-btn {
    transition-duration: var(--ui-fast-response) !important;
    transition-delay: 0s !important;
}

a,
button,
.btn,
.service-btn,
.service-card,
.geppark-card,
.machine-card,
.category-card,
.subcategory-card,
.sale-card {
    backface-visibility: hidden;
    will-change: auto;
}

@media (hover: hover) and (pointer: fine) {
    .service-btn:hover,
    .service-card:hover,
    .geppark-card:hover,
    .machine-card:hover,
    .category-card:hover,
    .subcategory-card:hover,
    .sale-card:hover {
        will-change: transform;
    }
}

a,
button,
.btn,
.service-btn,
.hamburger,
.flag-btn {
    touch-action: manipulation;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}