/* =====================================================================
   HelloPhoenixResidence – prémium SÖTÉT dizájnrendszer
   Mély tengerészkék alap · arany akcentus · elegáns serif címsorok
   ===================================================================== */

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

:root {
    /* Márka – mély éjkék az alap */
    --navy:        #0B121A;   /* legmélyebb tónus: lábléc, oldalsáv */
    --navy-2:      #182634;
    --navy-soft:   rgba(255, 255, 255, .06);

    /* Akcentus (gazdag arany) */
    --gold:        #D4AF37;
    --gold-2:      #E9CE6C;
    --gold-soft:   rgba(212, 175, 55, .14);
    --gold-line:   rgba(212, 175, 55, .40);

    /* Felületek (sötét éjkék) */
    --bg:          #111B24;
    --bg-2:        #0D151D;
    --panel:       #16222E;
    --panel-2:     #1B2A38;
    --border:      rgba(255, 255, 255, .10);

    /* Szöveg */
    --text:        #F1EFE9;
    --muted:       #9AA8B4;

    /* Státusz (sötét háttérre hangolva) */
    --danger:      #E5736B;
    --ok:          #6FCB9A;
    --warn:        #E3B550;

    --radius:      18px;      /* rounded-2xl érzet */
    --radius-sm:   12px;
    --shadow:      0 2px 10px rgba(0,0,0,.30), 0 14px 38px rgba(0,0,0,.32);
    --shadow-lg:   0 22px 56px rgba(0,0,0,.46);
    --shadow-gold: 0 0 0 1px rgba(212,175,55,.16), 0 10px 34px rgba(212,175,55,.16);
    --glow-gold:   0 0 24px rgba(212,175,55,.22), 0 14px 44px rgba(212,175,55,.14);
    --wrap:        1160px;

    --font-head:   'Playfair Display', Georgia, 'Times New Roman', serif;
    --font:        'Inter', 'Roboto', -apple-system, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font);
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
    font-family: var(--font-head);
    font-weight: 600;
    line-height: 1.25;
    color: var(--text);
    margin: 0 0 .5em;
    letter-spacing: -.01em;
}

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

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.center { text-align: center; }

/* ---------------- Fejléc ---------------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(13, 21, 29, .72);          /* üveghatás */
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 1px 16px rgba(0, 0, 0, .30);
}
.header-inner { display: flex; align-items: center; gap: 22px; height: 82px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 46px; width: auto; }
.brand .brand-name { font-family: var(--font-head); font-size: 19px; color: var(--text); white-space: nowrap; }
.brand .brand-name b { color: var(--gold); font-weight: 600; }
.main-nav { display: flex; gap: 4px; margin-left: 12px; }
.main-nav a {
    color: var(--text); padding: 9px 14px; border-radius: 8px;
    font-weight: 500; font-size: 14px; position: relative;
}
.main-nav a:hover { color: #fff; background: var(--navy-soft); }
.main-nav a.active { color: var(--gold); }
.main-nav a.active::after {
    content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px;
    height: 2px; background: var(--gold); border-radius: 2px;
}
.header-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
/* Nyelvválasztó: sötét pirula konténer, az aktív arany körben, sötét szöveggel */
.lang-switch { display: flex; gap: 2px; background: var(--bg-2); border: 1px solid var(--border); border-radius: 999px; padding: 4px; }
.lang-switch a { color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .5px; padding: 5px 10px; border-radius: 999px; }
.lang-switch a.active { background: var(--gold); color: #111B24; box-shadow: 0 0 12px rgba(212,175,55,.35); }
.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: 13px 26px; border-radius: 999px; font-weight: 600; font-size: 15px;
    font-family: var(--font); cursor: pointer; border: 1px solid transparent;
    transition: transform .15s, box-shadow .2s, background .2s, color .2s; text-decoration: none;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--gold); color: #111B24; box-shadow: var(--shadow-gold); }
.btn-primary:hover { background: var(--gold-2); color: #111B24; box-shadow: 0 16px 40px rgba(212,175,55,.34); }
.btn-ghost { background: var(--panel); border-color: var(--gold-line); color: var(--gold); }
.btn-ghost:hover { background: var(--gold-soft); color: var(--gold-2); box-shadow: 0 0 18px rgba(212,175,55,.18); }
.btn-navy { background: var(--panel-2); color: var(--text); border-color: var(--border); }
.btn-navy:hover { background: var(--panel); color: #fff; }
/* Sötét (képes) hátterekhez */
.btn-light { background: transparent; border-color: rgba(255,255,255,.65); color: #fff; }
.btn-light:hover { background: #fff; color: var(--navy); }
.btn-danger { background: rgba(229,115,107,.10); border-color: rgba(229,115,107,.40); color: var(--danger); }
.btn-danger:hover { background: rgba(229,115,107,.18); }
.btn-sm { padding: 9px 18px; font-size: 13.5px; }
.btn-block { width: 100%; }

/* ---------------- Hero ---------------- */
.hero {
    position: relative; overflow: hidden; text-align: center;
    padding: 156px 0 110px; background: var(--bg-2);
    border-bottom: 1px solid var(--border);
}
.hero h1 { font-size: clamp(38px, 6vw, 68px); margin-bottom: 14px; }
.hero .lead { color: var(--muted); font-size: clamp(16px, 2.2vw, 20px); max-width: 640px; margin: 0 auto; }
.hero .hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }
.hero > .wrap { position: relative; z-index: 2; }

/* Hatalmas, nagyon halvány arany főnix vízjel a hero közepén */
.hero-watermark {
    position: absolute; inset: 0; z-index: 0; pointer-events: none;
    background: url('phoenix.png') no-repeat center 34%;
    background-size: min(760px, 90vw);
    opacity: .05;
}

/* Vékony arany gradiens elválasztó a szekciók között */
.gold-divider {
    height: 1px; width: 100%;
    background: linear-gradient(90deg, transparent, rgba(212,175,55,.55), transparent);
}

/* Háttérképes változat – az admin feltölthet hero fotót */
.hero.has-image { background-size: cover; background-position: center; }
.hero.has-image::before {
    content: ""; position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(180deg, rgba(15,32,39,.74), rgba(15,32,39,.62));
}
.hero.has-image h1 { color: #fff; }
.hero.has-image .lead { color: rgba(255,255,255,.88); }
.hero.has-image .counter-card { background: rgba(255,255,255,.10); border-color: rgba(255,255,255,.22); backdrop-filter: blur(6px); box-shadow: none; }
.hero.has-image .counter-num { color: #fff; }
.hero.has-image .counter-label { color: rgba(255,255,255,.82); }

/* ---------------- Számlálók ---------------- */
.counters { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 56px; max-width: 560px; margin-left: auto; margin-right: auto; }
.counter-card {
    background: rgba(22, 34, 46, .72); border: 1px solid var(--border); border-radius: 22px;
    padding: 32px 22px; text-align: center;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.05), var(--shadow-gold);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    transition: transform .18s, box-shadow .18s;
}
.counter-card:hover { transform: translateY(-3px); box-shadow: inset 0 1px 0 rgba(255,255,255,.05), var(--glow-gold); }
.counter-icon { color: var(--gold); margin-bottom: 14px; display: flex; justify-content: center; }
.counter-icon svg { width: 34px; height: 34px; }
.counter-num { font-family: var(--font-head); font-size: clamp(34px, 5vw, 50px); font-weight: 700; color: var(--gold); line-height: 1; }
.counter-label { color: var(--muted); margin-top: 10px; font-size: 15px; }

/* ---------------- Szekciók ---------------- */
.section { padding: 100px 0; }
.section-head { text-align: center; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(28px, 4vw, 42px); }
.section-head .kicker {
    color: var(--gold-2); font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase;
    font-size: 12.5px; display: block; margin-bottom: 12px; font-family: var(--font);
}
.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: 28px; box-shadow: var(--shadow);
}
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }

/* ---------------- Hero-fény (cím mögötti lágy izzás) ---------------- */
.title-glow { position: relative; }
.title-glow::before {
    content: ""; position: absolute; left: 50%; top: 50%; width: 380px; height: 140px;
    transform: translate(-50%, -50%); background: radial-gradient(circle, rgba(212,175,55,.20) 0%, transparent 70%);
    filter: blur(30px); z-index: -1; pointer-events: none;
}

.card {
    background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 32px 28px; box-shadow: var(--shadow);
    transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--gold-line); }
.card .icon {
    width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
    background: var(--gold-soft); color: var(--gold-2); font-size: 24px; margin-bottom: 18px;
}
.card h3 { font-size: 20px; }
.card p { color: var(--muted); margin: 0; }

/* ---------------- Fali újság / blog ---------------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.news-card {
    position: relative; overflow: hidden;
    background: rgba(22, 34, 46, .78); border: 1px solid var(--gold-line); border-radius: 22px;
    display: flex; flex-direction: column;
    box-shadow: 0 14px 40px rgba(212,175,55,.14), 0 4px 18px rgba(0,0,0,.35);
    transition: transform .2s, box-shadow .2s;
}
.news-card:hover { transform: translateY(-5px); box-shadow: 0 0 30px rgba(212,175,55,.28), 0 22px 56px rgba(0,0,0,.42); }
.news-crest { display: flex; justify-content: center; padding: 26px 0 0; }
.news-crest img { height: 58px; width: auto; }
.news-frame { aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-2); }
.news-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.news-card:hover .news-frame img { transform: scale(1.04); }
.news-body { padding: 22px 24px 26px; position: relative; z-index: 1; display: flex; flex-direction: column; flex: 1; }
.news-body .date { color: var(--gold); font-size: 12px; font-weight: 700; letter-spacing: 1.2px; }
.news-body h3 { font-size: 19px; margin: 8px 0 10px; }
.news-body p { color: var(--muted); margin: 0 0 18px; }
.news-body .btn { margin-top: auto; align-self: flex-start; }
/* Halvány dekoratív ikonok a jobb alsó sarokban */
.news-deco {
    position: absolute; right: 12px; bottom: 10px; color: var(--gold);
    opacity: .10; pointer-events: none;
}
.news-deco svg { width: 64px; height: 64px; }

/* ---------------- Partnerek (úszó marquee) ---------------- */
.partner-marquee { overflow: hidden; position: relative; padding: 10px 0; }
.partner-marquee::before, .partner-marquee::after {
    content: ""; position: absolute; top: 0; bottom: 0; width: 90px; z-index: 2; pointer-events: none;
}
.partner-marquee::before { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
.partner-marquee::after { right: 0; background: linear-gradient(270deg, var(--bg), transparent); }
.section-alt .partner-marquee::before { background: linear-gradient(90deg, var(--bg-2), transparent); }
.section-alt .partner-marquee::after { background: linear-gradient(270deg, var(--bg-2), transparent); }
.partner-track { display: flex; gap: 54px; align-items: center; width: max-content; animation: partnerScroll 38s linear infinite; }
.partner-marquee:hover .partner-track { animation-play-state: paused; }
@keyframes partnerScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.partner-item {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
    min-width: 190px; padding: 16px 22px; text-decoration: none;
}
.partner-item img { max-height: 60px; width: auto; object-fit: contain; filter: grayscale(1) brightness(1.7); opacity: .6; transition: filter .3s, opacity .3s; }
.partner-item:hover img { filter: none; opacity: 1; }
.partner-item span { color: var(--muted); font-weight: 600; font-size: 14px; white-space: nowrap; }
.partner-item:hover span { color: var(--gold); }
@media (prefers-reduced-motion: reduce) { .partner-track { animation: none; } }

/* Rácsos tartalék */
.partner-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.partner-card {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
    min-height: 120px; padding: 22px; background: var(--panel); border: 1px solid var(--border);
    border-radius: var(--radius); text-align: center; text-decoration: none; box-shadow: var(--shadow);
    transition: transform .18s, box-shadow .18s;
}
.partner-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.partner-card.has-logo { background: transparent; border-color: transparent; box-shadow: none; }
.partner-card img { max-height: 68px; width: auto; object-fit: contain; }
.partner-card span { color: var(--text); font-weight: 600; font-size: 15px; }
.partner-card.has-logo span { color: var(--muted); font-size: 13.5px; }

/* ---------------- Cégtörténet idővonal ---------------- */
.timeline { position: relative; max-width: 760px; margin: 0 auto; padding-left: 34px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(180deg, var(--gold), var(--border)); }
.tl-item { position: relative; padding: 0 0 38px 22px; }
.tl-item::before {
    content: ""; position: absolute; left: -34px; top: 6px; width: 16px; height: 16px;
    border-radius: 50%; background: var(--bg); border: 3px solid var(--gold); box-shadow: 0 0 0 5px var(--gold-soft);
}
.tl-item h4 { color: var(--gold); font-size: 20px; margin-bottom: 6px; }
.tl-item p { color: var(--muted); margin: 0; }

/* ---------------- GYIK ---------------- */
.faq-item { border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 14px; background: var(--panel); overflow: hidden; box-shadow: var(--shadow); }
.faq-item summary {
    cursor: pointer; padding: 20px 24px; font-weight: 600; list-style: none; color: var(--text);
    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-2); font-size: 24px; font-weight: 400; }
.faq-item[open] summary::after { content: "−"; }
.faq-item .faq-a { padding: 0 24px 20px; color: var(--muted); }

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

/* ---------------- Űrlapok ---------------- */
.form-row { margin-bottom: 18px; }
label { display: block; font-weight: 600; margin-bottom: 7px; font-size: 14px; color: var(--text); }
input, select, textarea {
    width: 100%; padding: 13px 15px; 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); box-shadow: 0 0 0 3px var(--gold-soft);
}
textarea { min-height: 130px; resize: vertical; }
.hint { color: var(--muted); font-size: 13px; margin-top: 6px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

/* ---------------- Flash / státusz ---------------- */
.flash { padding: 15px 18px; border-radius: var(--radius-sm); margin: 18px 0; border: 1px solid var(--border); background: var(--bg-2); }
.flash-ok { background: rgba(111,203,154,.12); border-color: rgba(111,203,154,.35); color: #9BE0BC; }
.flash-error { background: rgba(229,115,107,.12); border-color: rgba(229,115,107,.35); color: #F0A9A3; }
.flash-info { background: var(--gold-soft); border-color: var(--gold-line); color: #E6C86A; }

.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.badge-ok { background: rgba(111,203,154,.16); color: var(--ok); }
.badge-wait { background: rgba(227,181,80,.16); color: var(--warn); }
.badge-no { background: rgba(229,115,107,.16); color: var(--danger); }

/* ---------------- Táblázatok ---------------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel); box-shadow: var(--shadow); }
table.data { width: 100%; border-collapse: collapse; min-width: 560px; }
table.data th, table.data td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--border); }
table.data th { background: var(--panel-2); color: var(--muted); font-size: 12.5px; text-transform: uppercase; letter-spacing: .6px; font-weight: 700; }
table.data tr:last-child td { border-bottom: 0; }
table.data tr:hover td { background: rgba(255,255,255,.03); }

/* ---------------- Lábléc (sötét tengerészkék) ---------------- */
.site-footer { background: var(--navy); color: rgba(255,255,255,.72); margin-top: 60px; border-top: 1px solid var(--border); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 44px; padding: 68px 24px 44px; }
.footer-logo { height: 56px; margin-bottom: 18px; }
.footer-legal { color: rgba(255,255,255,.58); font-size: 13px; }
.footer-col h4 { color: var(--gold); font-size: 13px; text-transform: uppercase; letter-spacing: 1.4px; font-family: var(--font); font-weight: 700; }
.footer-col p { margin: 5px 0; color: rgba(255,255,255,.72); font-size: 14px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin: 8px 0; }
.footer-links a { color: rgba(255,255,255,.72); }
.footer-links a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 20px 0; text-align: center; color: rgba(255,255,255,.55); font-size: 13px; }

/* ---------------- Belépő / auth kártya ---------------- */
.auth-wrap { min-height: calc(100vh - 82px); display: grid; place-items: center; padding: 48px 24px; background: var(--bg-2); }
.auth-card { width: 100%; max-width: 430px; }
.auth-card .brand-center { text-align: center; margin-bottom: 26px; }
.auth-card .brand-center img { height: 66px; margin: 0 auto 10px; }

/* ---------------- Reszponzív ---------------- */
@media (max-width: 1100px) {
    .grid-5 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
    .counters, .news-grid, .grid-3, .grid-4, .partner-grid { grid-template-columns: 1fr 1fr; }
    .grid-5 { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
    .nav-toggle { display: flex; margin-left: auto; }
    .main-nav, .header-right {
        position: fixed; top: 82px; right: 0; width: min(300px, 84vw);
        background: var(--panel); border-left: 1px solid var(--border); box-shadow: var(--shadow-lg);
        flex-direction: column; align-items: stretch; padding: 20px; gap: 8px;
        transform: translateX(105%); transition: transform .25s; height: calc(100vh - 82px);
    }
    .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; }
    .section { padding: 72px 0; }
}
@media (max-width: 560px) {
    .counters, .news-grid, .grid-2, .grid-3, .grid-4, .grid-5, .form-grid, .partner-grid { grid-template-columns: 1fr; }
    .header-inner { height: 68px; }
    .brand img { height: 42px; }
    .main-nav, .header-right { top: 68px; height: calc(100vh - 68px); }
}
