/* =====================================================================
   HelloResidence – közös dizájnrendszer
   Arany (#D2AF26) a sötét (#171717) háttéren · paneles, kártyás, prémium.
   ===================================================================== */

:root {
    --gold:        #D2AF26;
    --gold-2:      #E9C948;
    --gold-soft:   rgba(210, 175, 38, .14);
    --gold-line:   rgba(210, 175, 38, .30);
    --bg:          #171717;
    --bg-2:        #1e1e1e;
    --panel:       #1c1c1c;
    --panel-2:     #232323;
    --border:      rgba(255, 255, 255, .08);
    --text:        #f2efe6;
    --muted:       #a29f95;
    --danger:      #e05b5b;
    --ok:          #5bbd7a;
    --warn:        #d8a13a;
    --radius:      16px;
    --radius-sm:   10px;
    --shadow:      0 18px 50px rgba(0, 0, 0, .45);
    --shadow-gold: 0 10px 40px rgba(210, 175, 38, .18);
    --wrap:        1160px;
    --font:        "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font);
    color: var(--text);
    background:
        radial-gradient(1200px 600px at 80% -10%, rgba(210, 175, 38, .10), transparent 60%),
        radial-gradient(900px 500px at -10% 10%, rgba(210, 175, 38, .06), transparent 55%),
        var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--gold); text-decoration: none; transition: color .15s; }
a:hover { color: var(--gold-2); }

h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; margin: 0 0 .5em; }

img { max-width: 100%; display: block; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }

.muted { color: var(--muted); }
.center { text-align: center; }

/* ---------------- Fejléc ---------------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(20, 20, 20, .82);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 20px; height: 72px; }
.brand img { height: 46px; width: auto; }
.main-nav { display: flex; gap: 6px; margin-left: 8px; }
.main-nav a {
    color: var(--text); padding: 8px 14px; border-radius: 999px;
    font-weight: 600; font-size: 15px; opacity: .85;
}
.main-nav a:hover { background: var(--gold-soft); opacity: 1; }
.main-nav a.active { color: var(--gold); background: var(--gold-soft); opacity: 1; }
.header-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.lang-switch { display: flex; gap: 2px; border: 1px solid var(--border); border-radius: 999px; padding: 3px; }
.lang-switch a {
    color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .5px;
    padding: 4px 9px; border-radius: 999px;
}
.lang-switch a.active { background: var(--gold); color: #1a1a1a; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; flex-direction: column; gap: 5px; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--gold); border-radius: 2px; }

/* ---------------- Gombok ---------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 22px; border-radius: 999px; font-weight: 700; font-size: 15px;
    cursor: pointer; border: 1px solid transparent; transition: transform .12s, box-shadow .2s, background .2s;
    text-decoration: none;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
    background: linear-gradient(135deg, var(--gold-2), var(--gold));
    color: #191500; box-shadow: var(--shadow-gold);
}
.btn-primary:hover { color: #191500; box-shadow: 0 14px 46px rgba(210,175,38,.30); }
.btn-ghost { background: transparent; border-color: var(--gold-line); color: var(--gold); }
.btn-ghost:hover { background: var(--gold-soft); }
.btn-danger { background: rgba(224,91,91,.14); border-color: rgba(224,91,91,.4); color: var(--danger); }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-block { width: 100%; }

/* ---------------- Hero ---------------- */
.hero {
    position: relative; overflow: hidden; text-align: center;
    padding: 96px 0 120px;
    border-bottom: 1px solid var(--border);
}
.hero h1 {
    font-size: clamp(34px, 6vw, 62px);
    background: linear-gradient(180deg, #fff, var(--gold) 130%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
    margin-bottom: 10px;
}
.hero .lead { color: var(--muted); font-size: clamp(15px, 2.4vw, 20px); max-width: 640px; margin: 0 auto; }
.hero-waves { position: absolute; left: 0; right: 0; bottom: -2px; width: 100%; height: 180px; z-index: 0; opacity: .55; }
.hero-waves path { animation: waveShift 14s ease-in-out infinite alternate; }
@keyframes waveShift { from { transform: translateX(0); } to { transform: translateX(-40px); } }
.hero > .wrap { position: relative; z-index: 1; }

/* ---------------- Számlálók ---------------- */
.counters { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 48px; }
.counter-card {
    background: linear-gradient(160deg, var(--panel-2), var(--panel));
    border: 1px solid var(--border); border-radius: var(--radius);
    padding: 30px 22px; text-align: center; box-shadow: var(--shadow);
    position: relative;
}
.counter-card::before {
    content: ""; position: absolute; inset: 0; border-radius: var(--radius);
    padding: 1px; background: linear-gradient(180deg, var(--gold-line), transparent);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
}
.counter-num { font-size: clamp(34px, 5vw, 52px); font-weight: 800; color: var(--gold); line-height: 1; }
.counter-label { color: var(--muted); margin-top: 10px; font-size: 15px; }

/* ---------------- Szekciók ---------------- */
.section { padding: 80px 0; }
.section-head { text-align: center; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(26px, 4vw, 40px); }
.section-head .kicker {
    color: var(--gold); font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
    font-size: 13px; display: block; margin-bottom: 8px;
}
.section-alt { background: var(--bg-2); border-block: 1px solid var(--border); }

/* ---------------- Panelek / kártyák ---------------- */
.panel {
    background: var(--panel); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow);
}
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
    background: linear-gradient(160deg, var(--panel-2), var(--panel));
    border: 1px solid var(--border); border-radius: var(--radius);
    padding: 26px; transition: transform .18s, border-color .18s, box-shadow .18s;
}
.card:hover { transform: translateY(-4px); border-color: var(--gold-line); box-shadow: var(--shadow-gold); }
.card .icon {
    width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
    background: var(--gold-soft); color: var(--gold); font-size: 24px; margin-bottom: 16px;
}
.card h3 { font-size: 19px; }
.card p { color: var(--muted); margin: 0; }

/* ---------------- Fali újság / blog ---------------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news-card {
    background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
    overflow: hidden; display: flex; flex-direction: column; transition: transform .18s, box-shadow .18s;
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-gold); }
.news-frame { aspect-ratio: 16 / 10; overflow: hidden; border-bottom: 2px solid var(--gold-line); background: #111; }
.news-frame img { width: 100%; height: 100%; object-fit: cover; }
.news-body { padding: 20px; }
.news-body .date { color: var(--gold); font-size: 12px; font-weight: 700; letter-spacing: 1px; }
.news-body h3 { font-size: 18px; margin: 6px 0 8px; }
.news-body p { color: var(--muted); margin: 0; }

/* ---------------- Partnerek ---------------- */
.partner-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.partner-card {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
    min-height: 120px; padding: 20px;
    background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
    text-align: center; text-decoration: none; transition: transform .18s, border-color .18s;
}
.partner-card:hover { transform: translateY(-3px); border-color: var(--gold-line); }
/* Feltöltött logónál nincs háttér – a háttér nélküli (átlátszó) logó tisztán érvényesül. */
.partner-card.has-logo { background: transparent; border-color: transparent; }
.partner-card.has-logo:hover { border-color: var(--gold-line); }
.partner-card img { max-height: 70px; max-width: 100%; width: auto; object-fit: contain; }
.partner-card span { color: var(--text); font-weight: 700; font-size: 16px; }
.partner-card.has-logo span { color: var(--muted); font-weight: 600; font-size: 14px; }

/* ---------------- Cégtörténet idővonal ---------------- */
.timeline { position: relative; max-width: 760px; margin: 0 auto; padding-left: 30px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--gold-line); }
.tl-item { position: relative; padding: 0 0 30px 20px; }
.tl-item::before {
    content: ""; position: absolute; left: -30px; top: 4px; width: 16px; height: 16px;
    border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px var(--gold-soft);
}
.tl-item h4 { color: var(--gold); margin-bottom: 4px; }
.tl-item p { color: var(--muted); margin: 0; }

/* ---------------- GYIK ---------------- */
.faq-item { border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 12px; background: var(--panel); overflow: hidden; }
.faq-item summary {
    cursor: pointer; padding: 18px 22px; font-weight: 600; list-style: none;
    display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--gold); font-size: 22px; font-weight: 400; }
.faq-item[open] summary::after { content: "−"; }
.faq-item .faq-a { padding: 0 22px 18px; color: var(--muted); }

/* ---------------- Értékelések ---------------- */
.review-card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.review-card .who { font-weight: 700; }
.stars { color: var(--gold); letter-spacing: 2px; }
.stars .off { color: rgba(255,255,255,.2); }

/* ---------------- Űrlapok ---------------- */
.form-row { margin-bottom: 16px; }
label { display: block; font-weight: 600; margin-bottom: 7px; font-size: 14px; }
input, select, textarea {
    width: 100%; padding: 12px 14px; border-radius: var(--radius-sm);
    background: var(--bg-2); border: 1px solid var(--border); color: var(--text);
    font-family: inherit; font-size: 15px; transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus {
    outline: none; border-color: var(--gold-line); box-shadow: 0 0 0 3px var(--gold-soft);
}
textarea { min-height: 130px; resize: vertical; }
.hint { color: var(--muted); font-size: 13px; margin-top: 5px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ---------------- Flash / státusz ---------------- */
.flash { padding: 14px 18px; border-radius: var(--radius-sm); margin: 18px 0; border: 1px solid var(--border); }
.flash-ok { background: rgba(91,189,122,.12); border-color: rgba(91,189,122,.4); color: #a9e6bd; }
.flash-error { background: rgba(224,91,91,.12); border-color: rgba(224,91,91,.4); color: #f2b0b0; }
.flash-info { background: var(--gold-soft); border-color: var(--gold-line); color: var(--gold-2); }

.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.badge-ok { background: rgba(91,189,122,.16); color: var(--ok); }
.badge-wait { background: rgba(216,161,58,.16); color: var(--warn); }
.badge-no { background: rgba(224,91,91,.16); color: var(--danger); }

/* ---------------- Táblázatok (admin) ---------------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
table.data { width: 100%; border-collapse: collapse; min-width: 560px; }
table.data th, table.data td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--border); }
table.data th { background: var(--panel-2); color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .5px; }
table.data tr:hover td { background: rgba(255,255,255,.02); }

/* ---------------- Lábléc ---------------- */
.site-footer { background: #101010; border-top: 1px solid var(--border); margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding: 56px 22px 40px; }
.footer-logo { height: 54px; margin-bottom: 16px; }
.footer-legal { color: var(--muted); font-size: 13px; }
.footer-col h4 { color: var(--gold); font-size: 14px; text-transform: uppercase; letter-spacing: 1px; }
.footer-col p { margin: 4px 0; color: var(--muted); font-size: 14px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin: 7px 0; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid var(--border); padding: 18px 0; text-align: center; color: var(--muted); font-size: 13px; }

/* ---------------- Belépő / auth kártya ---------------- */
.auth-wrap { min-height: calc(100vh - 72px); display: grid; place-items: center; padding: 40px 22px; }
.auth-card { width: 100%; max-width: 420px; }
.auth-card .brand-center { text-align: center; margin-bottom: 24px; }
.auth-card .brand-center img { height: 64px; margin: 0 auto 8px; }

/* ---------------- Reszponzív ---------------- */
@media (max-width: 900px) {
    .counters, .news-grid, .grid-3, .grid-4, .partner-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .nav-toggle { display: flex; margin-left: auto; }
    .main-nav, .header-right {
        position: fixed; top: 72px; right: 0; width: min(280px, 82vw);
        background: var(--bg-2); border-left: 1px solid var(--border);
        flex-direction: column; align-items: stretch; padding: 18px; gap: 8px;
        transform: translateX(105%); transition: transform .25s; height: calc(100vh - 72px);
    }
    .header-right { top: auto; bottom: 0; height: auto; border-top: 1px solid var(--border); }
    body.nav-open .main-nav, body.nav-open .header-right { transform: translateX(0); }
    .header-right { margin-left: 0; }
}
@media (max-width: 560px) {
    .counters, .news-grid, .grid-2, .grid-3, .grid-4, .form-grid { grid-template-columns: 1fr; }
    .header-inner { height: 64px; }
    .brand img { height: 38px; }
}
