/* ─── Reset & Base ─────────────────────────────────────────────────────────── */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Poppins', sans-serif;
    background: #fff;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a { color: inherit; }

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

/* ─── Header ───────────────────────────────────────────────────────────────── */
header {
    position: fixed;
    top: 0; left: 0; right: 0;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,.1);
    z-index: 1000;
    transition: all .3s ease;
}

.header-top {
    background: #fff;
    color: #333;
    padding: 8px 0;
    font-size: 14px;
}

.header-top .container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 20px;
}

.header-top a { color: #333; text-decoration: none; transition: opacity .3s; }
.header-top a:hover { opacity: .6; }
.lang-switch a {
    border: 1px solid rgba(0,0,0,.35);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    color: #333;
}

.header-main { padding: 10px 0 15px; }
.header-main .container { display: flex; justify-content: space-between; align-items: center; }

.logo { margin-top: -36px; }
.logo img { height: 92px; width: auto; }

/* ─── Navigation ───────────────────────────────────────────────────────────── */
nav { display: flex; align-items: center; }
nav ul { display: flex; list-style: none; gap: 35px; }

nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 16px;
    position: relative;
    padding: 5px 0;
    transition: color .3s;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0; height: 2px;
    background: #4CAF50;
    transition: width .3s;
}

nav ul li a:hover,
nav ul li a.active { color: #4CAF50; }
nav ul li a:hover::after,
nav ul li a.active::after { width: 100%; }

/* ─── Hamburger ────────────────────────────────────────────────────────────── */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    padding: 10px;
}
.hamburger span {
    width: 25px; height: 3px;
    background: #333;
    border-radius: 3px;
    transition: all .3s;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px,6px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-6px); }

/* ─── Buttons ──────────────────────────────────────────────────────────────── */
.btn-primary {
    display: inline-block;
    background: #4CAF50;
    color: #fff;
    padding: 15px 35px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all .3s;
    border: none;
    cursor: pointer;
}
.btn-primary:hover {
    background: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(76,175,80,.4);
}

.btn-back {
    display: inline-block;
    color: #4CAF50;
    text-decoration: none;
    font-weight: 500;
    margin-top: 20px;
    transition: opacity .3s;
}
.btn-back:hover { opacity: .7; }

/* ─── Footer ───────────────────────────────────────────────────────────────── */
footer {
    background: #333;
    color: #fff;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-about h3 { font-size: 24px; margin-bottom: 20px; }
.footer-about p { color: rgba(255,255,255,.7); line-height: 1.8; }

.footer-links h4 { font-size: 18px; margin-bottom: 20px; }
.footer-links ul { list-style: none; }
.footer-links ul li { margin-bottom: 10px; }
.footer-links ul li a { color: rgba(255,255,255,.7); text-decoration: none; transition: color .3s; }
.footer-links ul li a:hover { color: #4CAF50; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.1);
    padding-top: 30px;
    text-align: center;
    color: rgba(255,255,255,.5);
    font-size: 14px;
}

/* ─── Page Hero ────────────────────────────────────────────────────────────── */
.page-hero {
    margin-top: 110px;
    height: 300px;
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.5);
}
.page-hero h1 {
    position: relative;
    color: #fff;
    font-size: 42px;
    font-weight: 700;
}

/* ─── Content Section ──────────────────────────────────────────────────────── */
.content-section { padding: 80px 0; }

.breadcrumb {
    font-size: 14px;
    color: #888;
    margin-bottom: 30px;
}
.breadcrumb a { color: #4CAF50; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* ─── Alert ────────────────────────────────────────────────────────────────── */
.alert {
    padding: 14px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 15px;
}
.alert-success { background: #e8f5e9; color: #2e7d32; border-left: 4px solid #4CAF50; }
.alert-error   { background: #ffebee; color: #c62828; border-left: 4px solid #f44336; }

/* ─── Empty State ──────────────────────────────────────────────────────────── */
.empty-state { text-align: center; padding: 60px 20px; color: #888; }
.empty-state a { color: #4CAF50; }

/* ─── Data Tables ──────────────────────────────────────────────────────────── */
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.data-table td { padding: 8px 12px; border-bottom: 1px solid #eee; }
.data-table td:first-child { color: #555; font-weight: 500; }

/* ─── Contact Form (public) ────────────────────────────────────────────────── */
.contact-form {
    background: #f9f9f9;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,.05);
}
.contact-form h3 { font-size: 24px; margin-bottom: 20px; color: #333; }

.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 500; color: #333; }
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    transition: border-color .3s;
    background: #fff;
}
.form-group input:focus,
.form-group textarea:focus { outline: none; border-color: #4CAF50; }
.form-group textarea { height: 150px; resize: vertical; }

.btn-submit {
    background: #4CAF50;
    color: #fff;
    padding: 12px 30px;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all .3s;
}
.btn-submit:hover {
    background: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(76,175,80,.3);
}

/* ─── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 992px) {
    .footer-content { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    /* Fejléc: header-main (logo+hamburger) felül, header-top (tel+lang) alul */
    header { display: flex; flex-direction: column; }
    .header-main { order: 1; padding: 12px 0; }
    .header-top  { order: 2; display: block; padding: 6px 0; border-top: 1px solid #f0f0f0; }

    /* Logo: nincs negatív margin mobile-on */
    .logo { margin-top: 0; }
    .logo img { height: 60px; }

    .page-hero { margin-top: 116px; height: 200px; }
    .page-hero h1 { font-size: 32px; }
    .hamburger { display: flex; }

    nav ul {
        position: fixed;
        top: 116px; left: 0; right: 0;
        background: #fff;
        flex-direction: column;
        padding: 20px;
        gap: 0;
        box-shadow: 0 5px 20px rgba(0,0,0,.1);
        transform: translateY(-150%);
        transition: transform .3s ease;
    }
    nav ul.active { transform: translateY(0); }
    nav ul li { border-bottom: 1px solid #eee; }
    nav ul li:last-child { border-bottom: none; }
    nav ul li a { display: block; padding: 15px 0; }

    .footer-content { grid-template-columns: 1fr; text-align: center; }
}

@media (max-width: 480px) {
    .page-hero h1 { font-size: 26px; }
    .content-section { padding: 50px 0; }
}
