/* ==========================================================================
   Napfény Idősgondozó – nyilvános oldal („Meleg, megújítva” dizájn)
   ========================================================================== */

:root {
    --cream: #FBF6EE;
    --white: #FFFFFF;
    --peach: #F7E7D4;
    --ink: #1F2A44;
    --ink-soft: #4A5368;
    --muted: #5A6275;
    --line: #EFE4D4;
    --orange: #C2571A;
    --orange-dark: #9C4413;
    --sun: #F2A93B;
    --navy-line: #36425F;
    --radius: 22px;
    --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
    --sans: 'Nunito Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 100px; }

body {
    margin: 0;
    font-family: var(--sans);
    font-size: 18px;
    line-height: 1.65;
    color: var(--ink);
    background: var(--cream);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }
a { color: var(--orange); }
a:hover { color: var(--orange-dark); }
h1, h2, h3 { line-height: 1.15; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 880px; }

.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 2000; }
.skip-link:focus { left: 8px; }

a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible {
    outline: 3px solid var(--sun);
    outline-offset: 2px;
}

/* --- Gombok --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 22px;
    border-radius: 999px;
    font-family: var(--sans);
    font-weight: 800;
    font-size: 17px;
    line-height: 1.2;
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    transition: background-color .2s, color .2s, transform .15s, box-shadow .2s;
}
.btn:active { transform: translateY(1px); }
.btn-lg { padding: 16px 28px; font-size: 18px; }
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-dark); color: #fff; box-shadow: 0 8px 20px rgba(194, 87, 26, .25); }
.btn-outline { background: #fff; border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-white { background: #fff; color: var(--orange-dark); }
.btn-white:hover { background: var(--peach); color: var(--orange-dark); }
.btn-ghost-white { border-color: #fff; color: #fff; }
.btn-ghost-white:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; text-decoration: none; }
.link-arrow i { transition: transform .2s; }
.link-arrow:hover i { transform: translateX(4px); }
.link-arrow.light { color: var(--sun); }
.link-arrow.light:hover { color: #fff; }

/* --- Felső sáv --- */
.top-bar { background: var(--ink); color: #F3EDE3; font-size: 15px; }
.top-bar-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 24px; padding-top: 8px; padding-bottom: 8px; }
.top-bar-info { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.top-bar i { color: var(--sun); margin-right: 4px; }
.top-bar a { color: #fff; font-weight: 700; text-decoration: none; }
.top-bar a:hover { text-decoration: underline; }

/* --- Fejléc --- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, .97);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; }

.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.logo:hover { color: var(--ink); }
.logo-mark { width: 44px; height: 44px; color: var(--orange); flex-shrink: 0; }
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-name { font-family: var(--serif); font-weight: 700; font-size: 24px; }
.logo-tag { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 700; }

.main-nav { display: flex; align-items: center; gap: 8px; }
.main-nav ul { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; margin: 0; padding: 0; }
.main-nav ul a {
    display: block;
    padding: 10px 16px;
    border-radius: 999px;
    color: var(--ink);
    font-weight: 600;
    text-decoration: none;
    transition: background-color .2s, color .2s;
}
.main-nav ul a:hover { background: var(--cream); color: var(--orange-dark); }
.main-nav ul a.active { background: var(--peach); color: var(--orange-dark); font-weight: 800; }
.btn-header { margin-left: 8px; }

.menu-toggle {
    display: none;
    align-items: center;
    gap: 8px;
    background: var(--peach);
    color: var(--orange-dark);
    border: 0;
    border-radius: 999px;
    padding: 10px 18px;
    font: inherit;
    font-weight: 800;
    font-size: 16px;
    cursor: pointer;
}

/* Ünnepi fenyőág girland */
body.has-garland .site-header {
    background: #1b4325 url('../uploads/fenyoag.png') repeat-x top center;
    background-size: auto 100%;
    border-bottom: 3px solid var(--sun);
}
body.has-garland .header-inner { padding-top: 26px; }
body.has-garland .logo, body.has-garland .logo:hover { color: #fff; text-shadow: 0 2px 4px rgba(0, 0, 0, .45); }
body.has-garland .logo-tag { color: #F3EDE3; }
body.has-garland .main-nav ul a { color: #fff; }
body.has-garland .main-nav ul a:hover, body.has-garland .main-nav ul a.active { background: rgba(255, 255, 255, .92); color: var(--orange-dark); }

/* --- Közös szekciók --- */
.section { padding: 96px 0; }
.section-tight { padding: 56px 0 72px; }
.section-white { background: var(--white); }
.section-peach { background: var(--peach); }
.section-dark { background: var(--ink); color: #F3EDE3; }

.section-head { margin-bottom: 44px; }
.section-head.center { text-align: center; max-width: 760px; margin-left: auto; margin-right: auto; }
.section-head h2 { margin: 0; font-family: var(--serif); font-weight: 600; font-size: clamp(32px, 4vw, 44px); letter-spacing: -.01em; }
.kicker { margin: 0 0 10px; color: var(--orange); font-weight: 800; letter-spacing: .1em; text-transform: uppercase; font-size: 14px; }
.section-peach .kicker { color: var(--orange-dark); }
.section-dark .kicker { color: var(--sun); }
.section-dark h2 { color: #fff; }
.section-head-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 44px; }
.section-head-row .section-head { margin-bottom: 0; max-width: 680px; }

.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }

.split { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.split.split-top { align-items: flex-start; }
.split > * { flex: 1 1 440px; min-width: 0; }

/* Szövegszerkesztőből érkező tartalom */
.rich-text > :first-child { margin-top: 0; }
.rich-text p { color: var(--ink-soft); }
.rich-text h2, .rich-text h3 { font-family: var(--serif); font-weight: 600; color: var(--ink); margin: 1.6em 0 .5em; }
.rich-text h2 { font-size: 32px; }
.rich-text h3 { font-size: 24px; }
.rich-text img { border-radius: 18px; }
.rich-text img.img-right { float: right; margin: 0 0 16px 28px; max-width: 45%; }
.rich-text img.img-left { float: left; margin: 0 28px 16px 0; max-width: 45%; }
.rich-text::after { content: ''; display: block; clear: both; }
.rich-text figure.image { margin: 20px 0; }
.rich-text figure.image figcaption { font-size: 15px; color: var(--muted); text-align: center; margin-top: 6px; }
.rich-text ul { padding-left: 1.2em; }
.rich-text li { margin-bottom: 8px; }

ul.check-list { list-style: none; padding: 0; margin: 24px 0 32px; display: flex; flex-direction: column; gap: 14px; }
ul.check-list li { position: relative; padding-left: 46px; margin: 0; color: var(--ink); }
ul.check-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--peach) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C2571A' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 4.5 4.5L19 7'/%3E%3C/svg%3E") center / 16px no-repeat;
}

/* Régebbi tartalomban: napirend / elérhetőség lista */
ul.napirend { list-style: none; padding: 0; margin: 24px 0; border-left: 3px solid var(--sun); }
ul.napirend li { padding: 12px 18px; margin: 0 0 10px; background: var(--white); border-radius: 0 14px 14px 0; }
ul.napirend li strong { display: inline-block; min-width: 140px; color: var(--orange); }
ul.contact-list { list-style: none; padding: 0; }
ul.contact-list li { padding: 8px 0; border-bottom: 1px dashed var(--line); }

/* --- HERO --- */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; padding-top: 72px; padding-bottom: 56px; }
.hero-text { flex: 1 1 480px; min-width: 0; }
.hero-media { flex: 1 1 400px; min-width: 0; position: relative; }
.pill { display: inline-block; margin: 0 0 18px; background: var(--peach); color: var(--orange-dark); font-weight: 800; font-size: 15px; padding: 6px 14px; border-radius: 999px; }
.hero h1 { margin: 0 0 22px; font-family: var(--serif); font-weight: 600; font-size: clamp(40px, 5.4vw, 62px); line-height: 1.08; letter-spacing: -.015em; }
.hero-lead { margin: 0 0 32px; font-size: 21px; color: var(--ink-soft); max-width: 34em; }
.hero-img { display: block; width: 100%; height: 540px; object-fit: cover; border-radius: 220px 220px 28px 28px; }
.hero-card {
    position: absolute;
    left: -28px;
    bottom: 36px;
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fff;
    border-radius: 18px;
    padding: 16px 22px 16px 16px;
    box-shadow: 0 18px 40px rgba(31, 42, 68, .14);
}
.hero-card > span:last-child { display: flex; flex-direction: column; line-height: 1.3; }
.hero-card strong { font-size: 17px; }
.hero-card > span:last-child span { color: var(--muted); font-size: 15px; }
.hero-card-icon { width: 48px; height: 48px; border-radius: 50%; background: var(--peach); color: var(--orange); display: flex; align-items: center; justify-content: center; font-size: 22px; }

/* --- Számok --- */
.facts-wrap { padding-bottom: 72px; }
.facts { background: #fff; border: 1px solid var(--line); border-radius: 24px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); overflow: hidden; }
.fact { padding: 28px 30px; border-right: 1px solid #F1E8DB; }
.fact:last-child { border-right: 0; }
.fact-value { font-family: var(--serif); font-size: 38px; font-weight: 600; color: var(--orange); line-height: 1.1; }
.fact-label { color: var(--ink-soft); font-size: 16px; }

/* --- Értékeink --- */
.value-card { background: var(--cream); border-radius: var(--radius); padding: 32px 28px; transition: transform .25s, box-shadow .25s; }
.value-card:hover { transform: translateY(-6px); box-shadow: 0 16px 32px rgba(31, 42, 68, .08); }
.value-icon { width: 56px; height: 56px; border-radius: 16px; background: var(--orange); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 24px; margin-bottom: 20px; }
.value-card h3 { margin: 0 0 8px; font-family: var(--serif); font-weight: 600; font-size: 23px; }
.value-card p { margin: 0; color: var(--ink-soft); font-size: 17px; }

/* --- Képkollázs --- */
.collage { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.collage img { display: block; width: 100%; object-fit: cover; border-radius: 24px; height: 200px; }
.collage img:first-child { grid-column: span 2; height: 300px; }
.collage-1 img:first-child { height: 440px; }
.collage-2 img { grid-column: span 2; height: 240px; }

/* --- Napirend sáv (főoldal) --- */
.day-strip { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 14px; }
.day-strip li { border-top: 3px solid #5A6788; padding-top: 16px; font-size: 16px; line-height: 1.45; display: flex; flex-direction: column; gap: 2px; }
.day-strip li.edge { border-top-color: var(--sun); }
.day-time { font-weight: 800; color: var(--sun); }

/* --- Napirend idővonal (aloldal) --- */
.timeline { list-style: none; margin: 36px 0 0; padding: 0 0 0 30px; border-left: 3px solid #F1D9BC; display: flex; flex-direction: column; gap: 14px; }
.timeline li { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px 22px; display: flex; flex-wrap: wrap; gap: 4px 20px; }
.timeline li::before { content: ''; position: absolute; left: -41px; top: 22px; width: 16px; height: 16px; border-radius: 50%; background: var(--orange); border: 3px solid var(--cream); box-shadow: 0 0 0 2px var(--orange); }
.tl-time { font-weight: 800; color: var(--orange); min-width: 140px; }
.tl-text { flex: 1 1 260px; }

/* --- Munkatársak --- */
.team-card { background: #fff; border: 1px solid var(--line); border-radius: 24px; overflow: hidden; transition: transform .25s, box-shadow .25s; }
.team-card:hover { transform: translateY(-6px); box-shadow: 0 16px 32px rgba(31, 42, 68, .08); }
.team-photo { display: block; width: 100%; height: 280px; object-fit: cover; object-position: center 20%; }
.team-photo--empty { display: flex; align-items: center; justify-content: center; background: var(--peach); color: var(--orange); font-size: 64px; }
.team-body { padding: 22px 24px 26px; }
.team-body h3 { margin: 0; font-family: var(--serif); font-weight: 600; font-size: 22px; }
.team-position { margin: 2px 0 10px; color: var(--orange); font-weight: 800; font-size: 15px; }
.team-bio { margin: 0; color: var(--ink-soft); font-size: 16px; line-height: 1.55; }

/* --- Lépések, vélemények --- */
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 22px; }
.steps li { display: flex; gap: 20px; }
.step-num { flex: 0 0 52px; height: 52px; border-radius: 50%; background: var(--ink); color: #fff; font-family: var(--serif); font-size: 24px; font-weight: 600; display: flex; align-items: center; justify-content: center; }
.steps h3 { margin: 4px 0 4px; font-size: 20px; font-weight: 800; }
.steps p { margin: 0; color: var(--ink-soft); }
.testimonials { display: flex; flex-direction: column; gap: 20px; align-self: center; }
.testimonial { margin: 0; background: #fff; border-radius: 28px; padding: 40px 38px; }
.testimonial blockquote { margin: 18px 0 22px; font-family: var(--serif); font-size: 25px; line-height: 1.4; font-weight: 500; }
.testimonial figcaption { color: var(--muted); font-weight: 700; font-size: 16px; }

/* --- GYIK --- */
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 0 26px; transition: box-shadow .2s; }
.faq details[open] { box-shadow: 0 10px 24px rgba(31, 42, 68, .06); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 0; font-weight: 800; font-size: 19px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq-icon { flex: 0 0 28px; height: 28px; border-radius: 50%; background: var(--peach); position: relative; }
.faq-icon::before, .faq-icon::after { content: ''; position: absolute; left: 50%; top: 50%; width: 12px; height: 2.5px; background: var(--orange); border-radius: 2px; transform: translate(-50%, -50%); transition: transform .2s; }
.faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq details[open] .faq-icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq-answer { padding: 0 0 22px; color: var(--ink-soft); }

/* --- CTA --- */
.cta-wrap { padding-top: 0; padding-bottom: 96px; }
.is-subpage .cta-wrap { padding-top: 24px; }
.cta { background: var(--orange); color: #fff; border-radius: 32px; padding: 56px; display: flex; flex-wrap: wrap; gap: 32px 40px; align-items: center; justify-content: space-between; }
.cta-text { flex: 1 1 460px; min-width: 0; }
.cta h2 { margin: 0 0 12px; font-family: var(--serif); font-weight: 600; font-size: clamp(30px, 3.6vw, 42px); color: #fff; }
.cta p { margin: 0; font-size: 20px; color: #FFF3E6; }
.cta-actions { display: flex; flex-direction: column; gap: 12px; flex: 0 1 320px; }

/* --- Aloldal fejléc --- */
.page-head { padding: 56px 0 36px; }
.page-head h1 { margin: 0; font-family: var(--serif); font-weight: 600; font-size: clamp(38px, 5vw, 56px); letter-spacing: -.01em; }
.breadcrumb { font-size: 15px; color: var(--muted); margin-bottom: 10px; display: flex; gap: 8px; }
.breadcrumb a { color: var(--muted); text-decoration: none; font-weight: 700; }
.breadcrumb a:hover { color: var(--orange); }
.page-banner { display: block; width: 100%; max-height: 420px; object-fit: cover; border-radius: 28px; }

/* --- Galéria --- */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.gallery-grid a { display: block; overflow: hidden; border-radius: 18px; aspect-ratio: 4 / 3; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.gallery-grid a:hover img { transform: scale(1.05); }

/* --- Kapcsolat --- */
.contact-cards { list-style: none; margin: 28px 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.contact-cards li { display: flex; gap: 16px; align-items: flex-start; }
.contact-cards strong { display: block; }
.cc-icon { flex: 0 0 48px; height: 48px; border-radius: 14px; background: var(--peach); color: var(--orange); display: flex; align-items: center; justify-content: center; font-size: 20px; }
.contact-form-box { background: #fff; border: 1px solid var(--line); border-radius: 28px; padding: 40px; }
.contact-form-box h2 { margin: 0 0 22px; font-family: var(--serif); font-weight: 600; font-size: 32px; }
.contact-form-box label { display: block; font-weight: 700; font-size: 16px; margin: 0 0 6px; }
.contact-form-box input,
.contact-form-box textarea {
    display: block;
    width: 100%;
    margin-bottom: 18px;
    padding: 14px 16px;
    border: 1px solid #DCCFBD;
    border-radius: 14px;
    background: var(--cream);
    font: inherit;
    font-size: 17px;
    color: var(--ink);
    transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.contact-form-box input:focus,
.contact-form-box textarea:focus { outline: none; border-color: var(--orange); background: #fff; box-shadow: 0 0 0 4px rgba(194, 87, 26, .15); }
.form-row { display: flex; flex-wrap: wrap; gap: 0 18px; }
.form-row > div { flex: 1 1 200px; }
.form-note { font-size: 14px; color: var(--muted); margin: -4px 0 22px; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { padding: 14px 18px; border-radius: 14px; margin-bottom: 20px; font-weight: 700; }
.notice-success { background: #E6F4EA; color: #1E6B39; }
.notice-error { background: #FBE4E1; color: #9B2C1F; }

/* --- Lábléc --- */
.site-footer { background: var(--ink); color: #D5D9E3; font-size: 16px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 36px; padding-top: 64px; padding-bottom: 32px; }
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font-family: var(--serif); font-size: 22px; font-weight: 700; color: #fff; }
.footer-logo .logo-mark { width: 36px; height: 36px; color: var(--sun); }
.site-footer h3 { margin: 0 0 12px; color: #fff; font-size: 17px; font-weight: 800; font-family: var(--sans); }
.site-footer p { margin: 0; line-height: 1.9; }
.site-footer a { color: #D5D9E3; }
.site-footer a:hover { color: #fff; }
.footer-links { list-style: none; margin: 0; padding: 0; line-height: 1.9; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding-top: 20px; padding-bottom: 28px; border-top: 1px solid var(--navy-line); font-size: 14px; color: #AEB5C6; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-legal a { color: #AEB5C6; }

/* --- Megjelenési animáció --- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ==========================================
   Tablet / mobil
   ========================================== */
@media (max-width: 1000px) {
    .menu-toggle { display: inline-flex; }
    .main-nav {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        background: #fff;
        border-bottom: 1px solid var(--line);
        box-shadow: 0 16px 30px rgba(31, 42, 68, .1);
        flex-direction: column;
        align-items: stretch;
        padding: 12px 24px 20px;
    }
    .main-nav.open { display: flex; }
    .main-nav ul { flex-direction: column; }
    .main-nav ul a { padding: 14px 16px; font-size: 18px; }
    .btn-header { margin: 10px 0 0; }
    body.has-garland .main-nav ul a { color: var(--ink); }
    .hero-card { left: 16px; }
}

@media (max-width: 700px) {
    body { font-size: 17px; }
    .hide-sm { display: none; }
    .section { padding: 64px 0; }
    .hero { padding-top: 40px; gap: 36px; }
    .hero-lead { font-size: 19px; }
    .hero-img { height: 380px; border-radius: 160px 160px 24px 24px; }
    .btn-row .btn { flex: 1 1 100%; }
    .fact { border-right: 0; border-bottom: 1px solid #F1E8DB; }
    .fact:last-child { border-bottom: 0; }
    .collage img, .collage img:first-child { height: 220px; }
    .cta { padding: 36px 26px; }
    .cta-actions { flex: 1 1 100%; }
    .contact-form-box { padding: 26px 20px; }
    .rich-text img.img-right, .rich-text img.img-left { float: none; max-width: 100%; margin: 16px 0; }
    .timeline { padding-left: 22px; }
    .timeline li::before { left: -33px; }
    .logo-name { font-size: 21px; }
    .logo-mark { width: 38px; height: 38px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; }
    .reveal { opacity: 1; transform: none; }
}
