/* gyenes-makeup gallery — masonry + filter + lightbox + reveal
   Brand-tokens (Style Editor): --mw-primary-color, --mw-section-background-color, --mw-body-color, --mw-heading-color
   Fallbacks: gold #c9a96e, cream #f7f2eb, dark #2c2926
*/

:root {
    --gy-primary: var(--mw-primary-color, #c9a96e);
    --gy-primary-hover: var(--mw-link-hover-color, #d4b87a);
    --gy-primary-deep: #b79c69;
    --gy-bg: var(--mw-section-background-color, #f7f2eb);
    --gy-bg-card: #ffffff;
    --gy-text: var(--mw-paragraph-color, #3d3a36);
    --gy-text-strong: var(--mw-heading-color, #2c2926);
    --gy-text-muted: #8a847d;
    --gy-border: #ede5d8;
}

/* ───── Hero wave divider — bottom of Hero overlaps next section ── */
/* The wave's fill color must match the BACKGROUND of the section directly under the Hero (Szolgáltatásaim = #fff5e5). */
.mw-layout-container[field*="layout-header-skin-22"],
.mw-layout-container[field*="layout-header"][field*="1776081751692"] {
    position: relative;
    padding-bottom: 110px !important;
}
.mw-layout-container[field*="layout-header-skin-22"]::after,
.mw-layout-container[field*="layout-header"][field*="1776081751692"]::after {
    content: "";
    position: absolute;
    bottom: -2px;
    /* Break out of the parent .container to full viewport width */
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 90px;
    /* Color follows the brand token (Style Editor — --mw-section-background-color) */
    background-color: var(--mw-section-background-color, #f7f2eb);
    /* SVG path is used as MASK (defines shape only, NOT color) */
    -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 100' preserveAspectRatio='none'><path d='M0,55 C240,100 480,0 720,40 C960,80 1200,10 1440,50 L1440,100 L0,100 Z' fill='black'/></svg>");
            mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 100' preserveAspectRatio='none'><path d='M0,55 C240,100 480,0 720,40 C960,80 1200,10 1440,50 L1440,100 L0,100 Z' fill='black'/></svg>");
    -webkit-mask-size: 100% 100%;
            mask-size: 100% 100%;
    -webkit-mask-repeat: no-repeat;
            mask-repeat: no-repeat;
    pointer-events: none;
    z-index: 2;
}

/* ───── Section ───────────────────────────────────────────── */
.g-section { padding: 70px 0 90px; background: var(--gy-bg); }
.g-section .container { max-width: 1280px; margin: 0 auto; padding: 0 16px; }

/* ───── Banner ────────────────────────────────────────────── */
.g-banner { text-align: center; margin-bottom: 32px; }
.g-banner h1 {
    font-size: clamp(2.2rem, 4.5vw, 3.4rem);
    margin: 0 0 10px;
    font-weight: 400;
    letter-spacing: 0.01em;
    color: var(--gy-text-strong);
    font-family: Satisfy, var(--mw-font-family-sans-serif, Lora), serif;
}
.g-banner .g-subtitle { font-size: 1rem; color: var(--gy-text-muted); max-width: 560px; margin: 0 auto; }

/* ───── Filters ───────────────────────────────────────────── */
.g-filters { display:flex; flex-wrap:wrap; justify-content:center; gap:8px; margin: 28px 0 36px; }
.g-filter {
    background: #fff;
    border: 1px solid #e6e6e6;
    color: #555;
    padding: 8px 18px;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    cursor: pointer;
    border-radius: 999px;
    transition: all 0.22s ease;
    line-height: 1.4;
}
.g-filter:hover { color:var(--gy-primary); border-color:#e8d9b5; }
.g-filter.active {
    background: var(--gy-primary);
    color: #fff;
    border-color: var(--gy-primary);
    box-shadow: 0 6px 14px rgba(201,169,110,0.28);
}

/* ───── Grid (Isotope masonry) ────────────────────────────── */
.g-grid { position: relative; min-height: 240px; }

/* Module-wrapper transparency (memory: reference_mw_posts_wrapper_transparency.md) */
.g-grid > .module,
.g-grid > .module-posts,
.g-grid > .module.module-posts { display: contents; }

/* Card sizing — masonry uses width, height is image-driven */
/* NB: transform on .g-card is RESERVED for Isotope positioning — don't add hover/transition transforms here */
.g-card {
    width: calc(25% - 12px);
    margin-bottom: 16px;
    cursor: pointer;
}
.g-card-inner {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    will-change: transform;
}
.g-card:hover .g-card-inner {
    box-shadow: 0 8px 22px rgba(0,0,0,0.12);
    transform: translateY(-3px);
}
.g-img { width: 100%; height: auto; display: block; transition: transform 0.5s ease; }
.g-card:hover .g-img { transform: scale(1.04); }

/* Overlay */
.g-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.0) 50%);
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: 14px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}
.g-card:hover .g-overlay { opacity: 1; }
.g-meta { color: #fff; pointer-events: none; }
.g-cat { display: block; font-size: 0.7rem; letter-spacing: 0.12em; opacity: 0.85; margin-bottom: 4px; text-transform: uppercase; }
.g-title { display: block; font-size: 1rem; font-weight: 500; line-height: 1.3; }
.g-view {
    position: absolute; top: 12px; right: 12px;
    width: 38px; height: 38px;
    border: none; background: rgba(255,255,255,0.92); color: var(--gy-primary);
    border-radius: 50%;
    cursor: pointer; pointer-events: auto;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
}
.g-view:hover { background: var(--gy-primary); color: #fff; }

/* Responsive */
@media (max-width: 1199.98px) { .g-card { width: calc(33.333% - 11px); } }
@media (max-width: 767.98px)  { .g-card { width: calc(50% - 8px); } }
@media (max-width: 479.98px)  { .g-card { width: 100%; } }

/* ───── Featured grid (legacy — kept for back-compat) ─────── */
.g-featured-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    max-width: 1200px;
    margin: 0 auto;
}
.g-featured-grid .g-card { width: 100%; margin: 0; }
@media (max-width: 991.98px) { .g-featured-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575.98px) { .g-featured-grid { grid-template-columns: 1fr; } }

/* ───── Stack slider (Home Munkáim, noirsociety-pattern) ──── */
.g-stack-wrap {
    position: relative;
    /* Break out of the parent .container (Bootstrap max-width: 1200px) to full viewport width */
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    height: 1200px;
    overflow: hidden;
    background: #ffffff;
}
/* Left-side dim gradient ensures white text on g-stack-info stays readable over any image */
.g-stack-wrap::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 55%;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.12) 60%, rgba(0,0,0,0) 100%);
    z-index: 2;
    pointer-events: none;
}
.g-stack {
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative;
    width: 100%;
    height: 100%;
}
/* Flatten MW Posts wrapper — handled in JS; CSS fallback */
.g-stack > .module,
.g-stack > .module-posts,
.g-stack > .module.module-posts { display: contents; }

.g-stack-item {
    width: 360px;
    height: 540px;
    list-style-type: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    background-position: center;
    background-size: cover;
    border-radius: 14px;
    box-shadow: 0 20px 36px rgba(0,0,0,0.20), 0 20px 30px rgba(255,255,255,0.18) inset;
    transition: transform 0.1s, left 0.75s, top 0.75s, width 0.75s, height 0.75s, opacity 0.5s ease;
    cursor: pointer;
}
/* The 1st + 2nd <li> become the full-cover background. Use :nth-of-type so a stray <script> doesn't shift positions. */
.g-stack-item:nth-of-type(1),
.g-stack-item:nth-of-type(2) {
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    transform: none;
    border-radius: 0;
    box-shadow: none;
    opacity: 1;
}
.g-stack-item:nth-of-type(3) { left: calc(50% + 60px); }
.g-stack-item:nth-of-type(4) { left: calc(50% + 440px); }
.g-stack-item:nth-of-type(5) { left: calc(50% + 820px); }
.g-stack-item:nth-of-type(6) { left: calc(50% + 1200px); opacity: 0; }
/* Beyond the 6th, hide so DOM-rotation past N=6 doesn't show artifacts */
.g-stack-item:nth-of-type(n+7) { opacity: 0; left: 110%; pointer-events: none; }

/* Fixed info-block on the left side (Munkáim title + CTA) — does NOT change on slider rotation */
.g-stack-info {
    position: absolute;
    top: 50%;
    left: clamp(2rem, 6vw, 5rem);
    transform: translateY(-50%);
    z-index: 10;
    color: #fff;
    text-shadow: 0 3px 12px rgba(0,0,0,0.6), 0 1px 3px rgba(0,0,0,0.5);
    max-width: 480px;
    pointer-events: none;
}
.g-stack-info .g-stack-h3 {
    font-family: 'Satisfy', cursive;
    font-size: clamp(2.4rem, 5vw, 4.2rem);
    line-height: 1;
    margin: 0 0 1.8rem;
    color: #fff;
    font-weight: 400;
    text-transform: none;
}
.g-stack-info .g-stack-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: rgba(255,255,255,0.1);
    color: #fff !important;
    border: 2px solid #fff;
    border-radius: 4px;
    text-decoration: none !important;
    cursor: pointer;
    font-size: 0.92rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    pointer-events: auto;
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.g-stack-info .g-stack-cta-btn:hover {
    background: var(--gy-primary);
    border-color: var(--gy-primary);
    color: #fff !important;
    transform: translateY(-2px);
}
.g-stack-info .g-stack-cta-btn .mdi { transition: transform 0.25s ease; }
.g-stack-info .g-stack-cta-btn:hover .mdi { transform: translateX(5px); }

.g-stack-nav {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    user-select: none;
    display: flex;
    gap: 12px;
}
.g-stack-nav .g-stack-btn {
    background: rgba(255,255,255,0.85);
    color: var(--gy-text-strong, #2c2926);
    border: none;
    padding: 0;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.18);
}
.g-stack-nav .g-stack-btn:hover {
    background: var(--gy-primary);
    color: #fff;
    transform: scale(1.05);
}

/* Responsive */
@media (max-width: 991.98px) {
    .g-stack-wrap { height: 500px; }
    .g-stack-item { width: 160px; height: 250px; border-radius: 12px; }
    .g-stack-item:nth-of-type(3) { left: calc(50% + 40px); }
    .g-stack-item:nth-of-type(4) { left: calc(50% + 220px); }
    .g-stack-item:nth-of-type(5) { left: calc(50% + 400px); }
    .g-stack-item:nth-of-type(6) { left: calc(50% + 580px); opacity: 0; }
    .g-stack-content { left: 2rem; width: min(50vw, 380px); }
}
@media (max-width: 600px) {
    .g-stack-wrap { height: 420px; }
    .g-stack-item { width: 130px; height: 200px; border-radius: 10px; }
    .g-stack-item:nth-of-type(3) { left: calc(50% + 20px); }
    .g-stack-item:nth-of-type(4) { left: calc(50% + 160px); }
    .g-stack-item:nth-of-type(5) { left: calc(50% + 300px); }
    .g-stack-item:nth-of-type(6) { left: calc(50% + 440px); opacity: 0; }
    .g-stack-content {
        left: 1.5rem;
        width: min(70vw, 320px);
    }
    .g-stack-content .g-stack-title { font-size: 1.6rem; }
    .g-stack-content .g-stack-desc { font-size: 0.78rem; }
    .g-stack-content .g-stack-cta { font-size: 0.78rem; padding: 9px 20px; }
}

/* ───── Mosaic (LEGACY, kept for back-compat) ──────────────── */
.g-mosaic-wrap { max-width: 1200px; margin: 0 auto; padding: 16px 0 8px; }

.g-mosaic {
    display: grid;
    gap: 12px;
    grid-template-columns: 2fr 1fr 1fr;
    grid-auto-rows: 230px;
    max-width: 1200px;
    margin: 0 auto;
}
/* 5+ images = default bento (1 large left, 4 small right 2x2) */
.g-mosaic .g-mosaic-card { width: 100% !important; height: 100%; margin: 0; }
.g-mosaic .g-mosaic-card .g-card-inner { height: 100%; }
.g-mosaic .g-mosaic-card .g-img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    filter: grayscale(85%);
    transition: filter 0.55s ease, transform 0.55s ease, opacity 0.55s ease;
}
.g-mosaic .g-mosaic-card:nth-child(1) { grid-column: 1; grid-row: 1 / 3; }

/* Grayscale-focus effect: hovered card → color, siblings → fully grey + dim */
.g-mosaic:hover .g-mosaic-card .g-img { opacity: 0.55; filter: grayscale(100%); }
.g-mosaic:hover .g-mosaic-card:hover .g-img {
    opacity: 1;
    filter: grayscale(0%);
    transform: scale(1.04);
}
@media (hover: none) {
    /* Touch devices: keep originals colored to avoid stuck-grey state */
    .g-mosaic .g-mosaic-card .g-img { filter: none; }
    .g-mosaic:hover .g-mosaic-card .g-img { opacity: 1; filter: none; }
}

/* 1 image */
.g-mosaic[data-count="1"] { grid-template-columns: 1fr; grid-auto-rows: 460px; max-width: 900px; }
.g-mosaic[data-count="1"] .g-mosaic-card:nth-child(1) { grid-column: 1; grid-row: 1; }

/* 2 images */
.g-mosaic[data-count="2"] { grid-template-columns: 2fr 1fr; grid-auto-rows: 230px; }
.g-mosaic[data-count="2"] .g-mosaic-card:nth-child(1) { grid-column: 1; grid-row: 1 / 3; }
.g-mosaic[data-count="2"] .g-mosaic-card:nth-child(2) { grid-column: 2; grid-row: 1 / 3; }

/* 3 images */
.g-mosaic[data-count="3"] { grid-template-columns: 2fr 1fr; grid-auto-rows: 230px; }
.g-mosaic[data-count="3"] .g-mosaic-card:nth-child(1) { grid-column: 1; grid-row: 1 / 3; }
.g-mosaic[data-count="3"] .g-mosaic-card:nth-child(2) { grid-column: 2; grid-row: 1; }
.g-mosaic[data-count="3"] .g-mosaic-card:nth-child(3) { grid-column: 2; grid-row: 2; }

/* 4 images — wide-bottom variant: large left, 1 wide top-right, 2 split bottom-right */
.g-mosaic[data-count="4"] { grid-template-columns: 2fr 1fr 1fr; grid-auto-rows: 230px; }
.g-mosaic[data-count="4"] .g-mosaic-card:nth-child(1) { grid-column: 1; grid-row: 1 / 3; }
.g-mosaic[data-count="4"] .g-mosaic-card:nth-child(2) { grid-column: 2 / 4; grid-row: 1; }
.g-mosaic[data-count="4"] .g-mosaic-card:nth-child(3) { grid-column: 2; grid-row: 2; }
.g-mosaic[data-count="4"] .g-mosaic-card:nth-child(4) { grid-column: 3; grid-row: 2; }

/* Tablet — 2 cols, large always on top spanning full width */
@media (max-width: 991.98px) {
    .g-mosaic,
    .g-mosaic[data-count] { grid-template-columns: 1fr 1fr; grid-auto-rows: 200px; }
    .g-mosaic .g-mosaic-card,
    .g-mosaic[data-count] .g-mosaic-card { grid-column: auto !important; grid-row: auto !important; }
    .g-mosaic .g-mosaic-card:nth-child(1),
    .g-mosaic[data-count] .g-mosaic-card:nth-child(1) { grid-column: 1 / 3 !important; grid-row: 1 !important; }
}
@media (max-width: 575.98px) {
    .g-mosaic,
    .g-mosaic[data-count] { grid-template-columns: 1fr; grid-auto-rows: 240px; }
    .g-mosaic .g-mosaic-card,
    .g-mosaic[data-count] .g-mosaic-card { grid-column: 1 !important; grid-row: auto !important; }
}

/* CTA after mosaic */
.g-cta-wrap { text-align: center; margin: 28px 0 0; }
.g-cta-btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 12px 32px;
    background: var(--gy-primary);
    color: #fff !important;
    border-radius: 999px;
    font-size: 0.98rem;
    letter-spacing: 0.02em;
    text-decoration: none !important;
    box-shadow: 0 6px 16px rgba(201,169,110,0.25);
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.g-cta-btn:hover {
    background: var(--gy-primary-deep);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(201,169,110,0.35);
    color: #fff !important;
}
.g-cta-btn .mdi { transition: transform 0.25s ease; }
.g-cta-btn:hover .mdi { transform: translateX(4px); }

/* ───── Load more ─────────────────────────────────────────── */
.g-load-more-wrap { text-align: center; margin: 38px 0 0; }
.g-load-more {
    background: #fff;
    border: 1px solid var(--gy-primary);
    color: var(--gy-primary);
    padding: 10px 26px;
    font-size: 0.95rem;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.22s ease;
    display: inline-flex; align-items: center; gap: 8px;
}
.g-load-more:hover { background: var(--gy-primary); color: #fff; }
.g-load-more.is-loading { opacity: 0.6; cursor: wait; }
.g-load-status { font-size: 0.85rem; color: #999; margin-top: 10px; }

/* ───── Lightbox ──────────────────────────────────────────── */
.g-lb {
    position: fixed; inset: 0;
    background: rgba(20,20,20,0.95);
    z-index: 9999;
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}
.g-lb:not(.hidden) { opacity: 1; pointer-events: auto; }
.g-lb-figure { margin: 0; max-width: 92vw; max-height: 88vh; display: flex; flex-direction: column; align-items: center; }
.g-lb-img { max-width: 100%; max-height: 80vh; object-fit: contain; border-radius: 4px; box-shadow: 0 12px 40px rgba(0,0,0,0.5); }
.g-lb-caption { color: #f3f3f3; margin-top: 14px; font-size: 0.95rem; text-align: center; }

.g-lb-close, .g-lb-prev, .g-lb-next {
    position: absolute;
    background: rgba(255,255,255,0.12);
    color: #fff;
    border: none;
    cursor: pointer;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.2s ease;
}
.g-lb-close { top: 18px; right: 18px; width: 44px; height: 44px; font-size: 1.5rem; }
.g-lb-prev, .g-lb-next { top: 50%; transform: translateY(-50%); width: 52px; height: 52px; font-size: 2rem; }
.g-lb-prev { left: 18px; }
.g-lb-next { right: 18px; }
.g-lb-close:hover, .g-lb-prev:hover, .g-lb-next:hover { background: rgba(255,255,255,0.25); }

@media (max-width: 575.98px) {
    .g-lb-prev, .g-lb-next { width: 42px; height: 42px; font-size: 1.5rem; }
    .g-lb-close { width: 38px; height: 38px; font-size: 1.2rem; }
}

body.g-lb-open { overflow: hidden; }

/* ───── Services section (Home, line-art icons, split header) ─ */
.g-services-section {
    padding: 90px 0 110px;
    background: var(--gy-bg, #f7f2eb);
}

/* Header: 2-col split (title-block left, CTA right) */
.g-services-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 70px;
    flex-wrap: wrap;
}
.g-services-headings {
    position: relative;
    max-width: 760px;
}
.g-services-title {
    font-family: 'Lora', Georgia, serif;
    font-size: clamp(2rem, 4vw, 3.4rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: 0.04em;
    color: var(--gy-text-strong);
    margin: 0;
    text-transform: uppercase;
}
.g-services-tag {
    display: inline-block;
    font-family: 'Satisfy', cursive;
    font-size: clamp(1.7rem, 3.4vw, 2.8rem);
    font-weight: 400;
    color: var(--gy-primary);
    line-height: 1;
    margin-left: 30px;
    margin-top: -10px;
    transform: rotate(-3deg);
    white-space: nowrap;
}
.g-services-explore {
    display: inline-block;
    align-self: center;
    padding: 14px 36px;
    border: 1.5px solid var(--gy-text-strong);
    color: var(--gy-text-strong) !important;
    background: transparent;
    text-decoration: none !important;
    font-size: 0.92rem;
    letter-spacing: 0.06em;
    border-radius: 2px;
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.g-services-explore:hover {
    background: var(--gy-primary);
    color: #fff !important;
    border-color: var(--gy-primary);
}

@media (max-width: 767.98px) {
    .g-services-header { flex-direction: column; align-items: flex-start; gap: 20px; }
    .g-services-tag { margin-left: 0; }
    .g-services-explore { align-self: stretch; text-align: center; }
}

/* Grid: 5 columns, NO card boxes, just centered icon + name */
.g-services-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
    max-width: 1280px;
    margin: 0 auto;
}
@media (max-width: 1199.98px) { .g-services-grid { grid-template-columns: repeat(3, 1fr); gap: 36px 24px; } }
@media (max-width: 767.98px)  { .g-services-grid { grid-template-columns: repeat(2, 1fr); gap: 30px 18px; } }
@media (max-width: 479.98px)  { .g-services-grid { grid-template-columns: 1fr; } }

.g-service-card {
    text-align: center;
    padding: 0;
    background: transparent;
    border: none;
    transition: transform 0.4s ease;
}
.g-service-card:hover { transform: translateY(-4px); }

.g-service-icon {
    width: 100%;
    aspect-ratio: 1 / 1;
    max-width: 200px;
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.g-service-card:hover .g-service-icon {
    transform: scale(1.12);
}
.g-service-icon svg {
    width: 100%;
    height: 100%;
    display: block;
    overflow: visible;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.g-service-icon.is-drawing svg,
.g-service-icon.is-filled svg {
    opacity: 1;
}

/* Convert filled SVG paths → line-art with brand stroke (EXCLUDES <rect> which is the bounding-box frame) */
.g-service-icon svg path,
.g-service-icon svg circle,
.g-service-icon svg ellipse,
.g-service-icon svg polygon,
.g-service-icon svg polyline,
.g-service-icon svg line {
    fill: none !important;
    stroke: var(--gy-text-strong) !important;
    stroke-width: 1.1 !important;
    stroke-linejoin: round !important;
    stroke-linecap: round !important;
    vector-effect: non-scaling-stroke;
    transition: stroke 0.4s ease, fill 0.8s ease;
}
.g-service-icon svg rect { fill: none !important; stroke: none !important; }

.g-service-icon.is-filled svg path,
.g-service-icon.is-filled svg circle,
.g-service-icon.is-filled svg ellipse,
.g-service-icon.is-filled svg polygon,
.g-service-icon.is-filled svg polyline,
.g-service-icon.is-filled svg line {
    fill: var(--gy-text-strong) !important;
}

.g-service-card:hover .g-service-icon svg path,
.g-service-card:hover .g-service-icon svg circle,
.g-service-card:hover .g-service-icon svg ellipse,
.g-service-card:hover .g-service-icon svg polygon,
.g-service-card:hover .g-service-icon svg polyline,
.g-service-card:hover .g-service-icon svg line {
    stroke: var(--gy-primary) !important;
}
.g-service-card:hover .g-service-icon.is-filled svg path,
.g-service-card:hover .g-service-icon.is-filled svg circle,
.g-service-card:hover .g-service-icon.is-filled svg ellipse,
.g-service-card:hover .g-service-icon.is-filled svg polygon,
.g-service-card:hover .g-service-icon.is-filled svg polyline,
.g-service-card:hover .g-service-icon.is-filled svg line {
    fill: var(--gy-primary) !important;
}
.g-service-card:hover .g-service-name {
    color: var(--gy-primary);
    transform: scale(1.05);
}

/* Line-drawing init state (set by JS) */
.g-service-icon.is-drawing svg path,
.g-service-icon.is-drawing svg circle,
.g-service-icon.is-drawing svg ellipse,
.g-service-icon.is-drawing svg polygon,
.g-service-icon.is-drawing svg polyline,
.g-service-icon.is-drawing svg line {
    transition: stroke-dashoffset 4s cubic-bezier(0.65, 0, 0.35, 1);
}

.g-service-name {
    font-family: 'Lora', Georgia, serif;
    font-size: 1rem;
    font-weight: 500;
    color: var(--gy-text-strong);
    margin: 0;
    letter-spacing: 0.02em;
    display: inline-block;
    transition: color 0.4s ease, transform 0.4s ease;
}

/* ───── Portfolio preview (Home, "Munkáim" section) ──────── */
.g-portfolio-section {
    padding: 80px 0 90px;
    background: #ffffff;
    position: relative;
}
/* Wave dividers: section bg colour bleeds into the adjacent sections */
.g-portfolio-section::before,
.g-portfolio-section::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 60px;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    pointer-events: none;
    z-index: 1;
}
.g-portfolio-section::before {
    top: -59px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'><path d='M0,80 L0,40 C240,0 480,80 720,40 C960,0 1200,80 1440,40 L1440,80 Z' fill='%23ffffff'/></svg>");
}
.g-portfolio-section::after {
    bottom: -59px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'><path d='M0,0 L0,40 C240,80 480,0 720,40 C960,80 1200,0 1440,40 L1440,0 Z' fill='%23ffffff'/></svg>");
}
@media (max-width: 767.98px) {
    .g-portfolio-section::before,
    .g-portfolio-section::after { height: 40px; }
    .g-portfolio-section::before { top: -39px; }
    .g-portfolio-section::after { bottom: -39px; }
}

.g-portfolio-wrap { max-width: 1280px; margin: 0 auto; }

.g-portfolio-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    padding: 0 8px;
}
/* Flatten MW Posts wrapper */
.g-portfolio-grid > .module,
.g-portfolio-grid > .module-posts,
.g-portfolio-grid > .module.module-posts { display: contents; }

.g-portfolio-card {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 20px;
    aspect-ratio: 1 / 1;
    cursor: pointer;
    text-decoration: none !important;
    box-shadow: 0 4px 14px rgba(0,0,0,0.05);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.g-portfolio-card .g-portfolio-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.55s ease;
}
.g-portfolio-card:hover {
    box-shadow: 0 16px 32px rgba(0,0,0,0.15);
}
.g-portfolio-card:hover .g-portfolio-img {
    transform: scale(1.07);
}

/* Centered "PORTFOLIO" title overlapping rows 1+2 */
.g-portfolio-title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    padding: 16px 40px;
    background: #ffffff;
    color: var(--gy-text-strong);
    font-family: 'Lora', Georgia, serif;
    font-size: clamp(1.3rem, 2.4vw, 2rem);
    font-weight: 400;
    letter-spacing: 0.9rem;
    text-transform: uppercase;
    text-indent: 0.9rem; /* compensate trailing letter-spacing for visual centering */
    line-height: 1;
    z-index: 5;
    pointer-events: none; /* doesn't block image clicks in normal mode */
    white-space: nowrap;
    border-radius: 2px;
}
/* In Live Edit (admin), shift title to normal flow as a full-row grid item — easy to click & edit */
body.mw-admin-live-edit-page .g-portfolio-title {
    position: static;
    transform: none;
    grid-column: 1 / -1;
    margin: 24px auto;
    padding: 14px 30px;
    background: rgba(247, 242, 235, 0.7);
    border: 2px dashed var(--gy-primary);
    pointer-events: auto;
    cursor: text;
    text-align: center;
    width: fit-content;
    display: block;
    min-width: 280px;
}

/* CTA button */
.g-portfolio-cta {
    text-align: center;
    margin-top: 60px;
}
.g-portfolio-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 36px;
    background: var(--gy-primary);
    color: #ffffff !important;
    border-radius: 999px;
    font-size: 0.96rem;
    letter-spacing: 0.06em;
    text-decoration: none !important;
    box-shadow: 0 8px 20px rgba(201,169,110,0.28);
    transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.g-portfolio-btn:hover {
    background: var(--gy-primary-deep);
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(201,169,110,0.38);
}
.g-portfolio-btn .mdi { transition: transform 0.25s ease; }
.g-portfolio-btn:hover .mdi { transform: translateX(5px); }

/* Responsive */
@media (max-width: 991.98px) {
    .g-portfolio-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
    .g-portfolio-title { font-size: 1.2rem; letter-spacing: 0.6rem; padding: 12px 24px; }
}
@media (max-width: 575.98px) {
    .g-portfolio-section { padding: 50px 0 60px; }
    .g-portfolio-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .g-portfolio-card { border-radius: 14px; }
    .g-portfolio-title { font-size: 1rem; letter-spacing: 0.4rem; padding: 10px 18px; }
    .g-portfolio-btn { padding: 12px 28px; font-size: 0.88rem; }
}

/* ───── Testimonials carousel (vanilla, single-slide fade) ── */
.g-testimonials-wrap {
    max-width: 880px;
    margin: 0 auto;
    padding: 70px 16px 50px;
    position: relative;
    z-index: 0;
}

/* Decorative " " quote-marks in the background */
.g-testimonials-wrap::before,
.g-testimonials-wrap::after {
    position: absolute;
    font-family: 'Lora', Georgia, 'Times New Roman', serif;
    font-size: clamp(180px, 26vw, 360px);
    line-height: 0.7;
    color: var(--gy-primary);
    opacity: 0.08;
    pointer-events: none;
    user-select: none;
    z-index: -1;
    font-weight: 700;
}
.g-testimonials-wrap::before {
    content: "\201C"; /* opening curly quote */
    top: -30px;
    left: -40px;
}
.g-testimonials-wrap::after {
    content: "\201D"; /* closing curly quote */
    bottom: -150px;
    right: -40px;
}
@media (max-width: 575.98px) {
    .g-testimonials-wrap::before { left: -10px; top: -10px; }
    .g-testimonials-wrap::after { right: -10px; bottom: -80px; }
}

.g-testimonials-carousel,
.g-test-controls {
    position: relative;
    z-index: 1;
}

.g-testimonials-carousel {
    position: relative;
    /* min-height now lives on .g-test-card so every slide has the same base height */
}

.g-test-item {
    outline: none;
    position: absolute;
    inset: 0;
    width: 100%;
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
    transition: opacity 0.55s ease, transform 0.55s ease;
}
.g-test-item.is-active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    position: relative;
}

.g-test-card,
.g-test-card.element,
body.mw-admin-live-edit-page .g-test-card,
body.mw-admin-live-edit-page .g-test-card.element {
    background: #ffffff !important;
    color: #2b2b2b !important;
    border-radius: 18px !important;
    padding: 48px 50px 36px !important;
    box-shadow: 0 10px 36px rgba(0,0,0,0.08) !important;
    position: relative !important;
    text-align: center !important;
    width: 100% !important;
    min-height: 340px !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
}
.g-test-item,
.g-test-item.element,
body.mw-admin-live-edit-page .g-test-item,
body.mw-admin-live-edit-page .g-test-item.element {
    width: 100% !important;
    box-sizing: border-box !important;
}
.g-test-card .g-test-quote-text {
    flex-grow: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.g-test-quote-mark {
    position: absolute;
    top: 14px;
    left: 22px;
    width: auto;
    height: auto;
    background: transparent !important;
    color: var(--gy-primary) !important;
    border-radius: 0;
    box-shadow: none;
    font-size: 5rem;
    line-height: 1;
    opacity: 0.18;
    pointer-events: none;
    transform: none;
    display: block;
}

/* Section header (VÉLEMÉNYEK · Mit mondanak rólam?) */
.g-test-section-header {
    text-align: center;
    margin-bottom: 14px;
}
.g-test-section-eyebrow {
    display: block;
    font-family: 'Lora', Georgia, serif;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.36em;
    text-transform: uppercase;
    color: var(--gy-primary, #c9a96e);
    margin-bottom: 12px;
}
.g-test-section-heading {
    font-family: 'Lora', Georgia, serif;
    font-size: clamp(1.6rem, 2.8vw, 2.2rem);
    font-weight: 400;
    color: var(--gy-text-strong, #1f1d1b);
    line-height: 1.2;
    margin: 0;
}

.g-test-card .g-test-quote-text {
    color: #444 !important;
    font-style: italic;
    line-height: 1.7;
    font-size: 1.06rem;
    margin: 12px auto 28px;
    max-width: 620px;
}

.g-test-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    border-top: 1px solid #eee;
    padding-top: 22px;
}
.g-test-avatar {
    width: 52px; height: 52px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.g-test-avatar-mono {
    display: flex; align-items: center; justify-content: center;
    color: #fff !important;
    font-weight: 600;
    font-size: 1.05rem;
    letter-spacing: 0.02em;
    background: var(--gy-primary);
}
.g-test-meta { text-align: left; }
.g-test-card .g-test-name { font-weight: 600; color: #2b2b2b !important; font-size: 1.0rem; display: block; }
.g-test-card .g-test-role { color: #999 !important; font-size: 0.86rem; letter-spacing: 0.02em; display: block; margin-top: 2px; }

/* Carousel controls */
.g-test-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 28px;
}
.g-test-arrow {
    width: 42px; height: 42px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #eee;
    color: var(--gy-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.g-test-arrow:hover {
    background: var(--gy-primary);
    color: #fff;
    border-color: var(--gy-primary);
    transform: scale(1.06);
}
.g-test-controls .g-test-dots { display: inline-flex; gap: 10px; align-items: center; }
.g-test-controls .g-test-dot {
    width: 10px !important;
    height: 10px !important;
    min-width: 10px !important;
    min-height: 10px !important;
    max-width: 10px !important;
    max-height: 10px !important;
    border-radius: 50% !important;
    background: #e8d9b5 !important;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
    line-height: 0;
    font-size: 0;
    flex: 0 0 10px;
}
.g-test-controls .g-test-dot.is-active {
    background: var(--gy-primary) !important;
    transform: scale(1.3);
}

@media (max-width: 575.98px) {
    .g-test-card { padding: 38px 24px 28px; }
    .g-test-card .g-test-quote-text { font-size: 0.98rem; }
}

/* ───── Reveal (scroll-fade-in) ───────────────────────────── */
/* NB: .reveal on .g-card MUST NOT use `transform` — it collides with Isotope's positioning transform.
   For g-cards we fade opacity only; the translate is on .g-card-inner. */
.reveal { opacity: 0; transition: opacity 0.55s ease; }
.reveal.in-view { opacity: 1; }

.reveal:not(.g-card) { transform: translateY(18px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal:not(.g-card).in-view { transform: translateY(0); }

.g-card.reveal .g-card-inner { transform: translateY(12px); transition: transform 0.55s ease, box-shadow 0.3s ease; }
.g-card.reveal.in-view .g-card-inner { transform: translateY(0); }

/* Make sure on no-JS the cards remain visible */
.no-js .reveal { opacity: 1; transform: none; }
.no-js .g-card.reveal .g-card-inner { transform: none; }

/* ─── Rólam section (custom/rolam.php) ─────────────────────── */
.g-rolam-section {
    background: var(--gy-bg-soft, #f7f3ec);
    padding: 100px 0 110px;
    position: relative;
}
@media (max-width: 767.98px) {
    .g-rolam-section { padding: 70px 0 80px; }
}

.g-rolam-grid {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 70px;
    align-items: center;
}
@media (max-width: 991.98px) {
    .g-rolam-grid { grid-template-columns: 1fr; gap: 50px; }
}

/* TEXT column */
.g-rolam-textcol { padding-right: 10px; }
.g-rolam-cursive-wrap { margin-bottom: 18px; }
.g-rolam-cursive {
    display: inline-block;
    font-family: 'Satisfy', cursive;
    font-size: 62px;
    font-weight: 400;
    color: var(--gy-primary, #c9a96e);
    line-height: 1;
}
@media (max-width: 767.98px) {
    .g-rolam-cursive { font-size: 46px; }
}
.g-rolam-title {
    font-family: 'Lora', Georgia, serif;
    font-size: clamp(1.85rem, 3vw, 2.4rem);
    font-weight: 400;
    color: var(--gy-text-strong, #1f1d1b);
    line-height: 1.25;
    letter-spacing: -0.005em;
    margin: 0 0 30px;
}
.g-rolam-title-sep {
    color: var(--gy-primary, #c9a96e);
    font-weight: 300;
    margin: 0 4px;
}
.g-rolam-body { margin-bottom: 36px; }
.g-rolam-p {
    font-family: 'Lora', Georgia, serif;
    font-size: 1rem;
    line-height: 1.78;
    color: var(--gy-text-muted, #6e6859);
    margin: 0 0 18px;
}
.g-rolam-p:last-child { margin-bottom: 0; }

.g-rolam-lead {
    font-size: 1.08rem;
    color: var(--gy-text-strong, #1f1d1b);
    font-style: italic;
}

.g-rolam-quote {
    margin: 26px 0 24px;
    padding: 22px 26px 22px 30px;
    border-left: 3px solid var(--gy-primary, #c9a96e);
    background: rgba(201, 169, 110, 0.06);
}
.g-rolam-quote-intro {
    font-family: 'Lora', Georgia, serif;
    font-size: 0.92rem;
    color: var(--gy-text-muted, #6e6859);
    margin: 0 0 8px;
    line-height: 1.6;
}
.g-rolam-quote-text {
    font-family: 'Lora', Georgia, serif;
    font-size: 1.15rem;
    font-style: italic;
    color: var(--gy-text-strong, #1f1d1b);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    border: 0;
    quotes: none;
}

.g-rolam-signoff {
    font-family: 'Satisfy', cursive;
    font-size: 1.35rem;
    line-height: 1.55;
    color: var(--gy-primary, #c9a96e);
    margin: 30px 0 0;
    text-align: center;
}
.g-rolam-cta {
    display: inline-block;
    padding: 14px 32px;
    background: var(--gy-primary, #c9a96e);
    color: #fff !important;
    font-family: 'Lora', Georgia, serif;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-decoration: none !important;
    border-radius: 999px;
    transition: background 0.4s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.g-rolam-cta:hover {
    background: var(--gy-text-strong, #1f1d1b);
    color: #fff !important;
    transform: translateY(-2px) scale(1.03);
}

/* IMAGE column */
.g-rolam-imgcol { position: relative; }
.g-rolam-arch {
    position: relative;
    width: 100%;
    max-width: 480px;
    aspect-ratio: 3 / 4;
    margin: 0 auto;
    overflow: hidden;
    border-top-left-radius: 999px;
    border-top-right-radius: 999px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.08);
}
.g-rolam-arch-img {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center top;
    transition: transform 1.2s ease;
}
.g-rolam-imgcol:hover .g-rolam-arch-img { transform: scale(1.04); }

/* Arany kör-monogram bélyegző */
.g-rolam-monogram {
    position: absolute;
    bottom: -18px;
    right: -10px;
    width: 140px;
    height: 140px;
    z-index: 2;
    pointer-events: none;
}
@media (max-width: 767.98px) {
    .g-rolam-monogram {
        width: 100px;
        height: 100px;
        right: 4px;
        bottom: -6px;
    }
}
.g-rolam-monogram svg {
    width: 100%;
    height: 100%;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 6px 20px rgba(201, 169, 110, 0.25);
}
.g-rolam-monogram svg > text:first-of-type,
.g-rolam-monogram svg > .g-rolam-monogram-text {
    animation: g-rolam-monogram-spin 24s linear infinite;
    transform-origin: 100px 100px;
}
.g-rolam-monogram-ring {
    fill: none;
    stroke: var(--gy-primary, #c9a96e);
    stroke-width: 1.2;
    opacity: 0.55;
}
.g-rolam-monogram-ring-inner {
    fill: none;
    stroke: var(--gy-primary, #c9a96e);
    stroke-width: 0.6;
    opacity: 0.35;
}
.g-rolam-monogram-text {
    font-family: 'Lora', Georgia, serif;
    font-size: 14px;
    fill: var(--gy-primary, #c9a96e);
    letter-spacing: 4px;
    text-transform: uppercase;
}
.g-rolam-monogram-ga {
    font-family: 'Satisfy', cursive;
    font-size: 68px;
    fill: var(--gy-primary, #c9a96e);
}
@keyframes g-rolam-monogram-spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* STAT-strip */
.g-rolam-stats {
    margin-top: 90px;
    padding-top: 50px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}
@media (max-width: 767.98px) {
    .g-rolam-stats {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-top: 60px;
        padding-top: 40px;
    }
}
.g-rolam-stat {
    text-align: left;
    padding-left: 22px;
    border-left: 1px solid var(--gy-primary, #c9a96e);
}
.g-rolam-stat-num {
    display: block;
    font-family: 'Lora', Georgia, serif;
    font-size: clamp(2rem, 3vw, 2.6rem);
    font-weight: 400;
    color: var(--gy-text-strong, #1f1d1b);
    line-height: 1;
    letter-spacing: -0.01em;
}
.g-rolam-stat-num sup {
    font-size: 0.55em;
    color: var(--gy-primary, #c9a96e);
    top: -0.55em;
    margin-left: 2px;
    font-weight: 500;
}
.g-rolam-stat-label {
    display: block;
    font-family: 'Lora', Georgia, serif;
    font-size: 1rem;
    color: var(--gy-text-strong, #1f1d1b);
    margin: 8px 0 12px;
    letter-spacing: 0.02em;
}
.g-rolam-stat-desc {
    font-family: 'Lora', Georgia, serif;
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--gy-text-muted, #6e6859);
    margin: 0;
}

/* ─── Kapcsolat section (custom/kapcsolat.php) ─────────────── */
.g-kapcsolat-section {
    position: relative;
    background: #4d4239;
    color: #f4ecdf;
    padding: 90px 0 100px;
    overflow: hidden;
}
@media (max-width: 767.98px) {
    .g-kapcsolat-section { padding: 60px 0 70px; }
}

/* Parallax background image (CSS-fixed; mobile fallback below) */
.g-kapcsolat-parallax {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}
.g-kapcsolat-parallax-img {
    position: absolute;
    inset: -100px 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    will-change: transform;
}
.g-kapcsolat-section { overflow: hidden; }
@media (hover: none), (max-width: 768px) {
    /* Touch devices: skip JS-parallax for smoothness */
    .g-kapcsolat-parallax-img { inset: 0; transform: none !important; }
}

/* Dark overlay over the parallax (text contrast) */
.g-kapcsolat-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(45,38,33,0.92) 0%, rgba(60,50,42,0.86) 100%);
    z-index: 1;
    pointer-events: none;
}

.g-kapcsolat-section > .container { position: relative; z-index: 3; }

/* Decorative shapes — brushes pointing inward, full-section-height side panels.
   Slide-in/out controlled by IntersectionObserver (.is-visible toggle), not AOS,
   so the animation can run in BOTH scroll directions on a single AOS-init that uses once:true. */
.g-kapcsolat-shape {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 380px;
    z-index: 2;
    pointer-events: none;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.9s ease-out, transform 0.9s ease-out;
}
.g-kapcsolat-shape::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('../img/shape-brushes-left.png');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    -webkit-mask-repeat: no-repeat;
            mask-repeat: no-repeat;
    -webkit-mask-size: 100% 100%;
            mask-size: 100% 100%;
    mix-blend-mode: lighten;
}
.g-kapcsolat-shape-left {
    left: 0;
    transform: translateX(-60px);
}
.g-kapcsolat-shape-left::after {
    transform: scaleX(-1);
    /* scaleX(-1) mirrors the mask too; invert direction so the fade still points inward */
    -webkit-mask-image: linear-gradient(to left, black 35%, transparent 95%);
            mask-image: linear-gradient(to left, black 35%, transparent 95%);
}
.g-kapcsolat-shape-right {
    right: 0;
    transform: translateX(60px);
}
.g-kapcsolat-shape-right::after {
    -webkit-mask-image: linear-gradient(to left, black 35%, transparent 95%);
            mask-image: linear-gradient(to left, black 35%, transparent 95%);
}
.g-kapcsolat-shape.is-visible {
    opacity: 0.38;
    transform: translateX(0);
}
@media (max-width: 768px) {
    .g-kapcsolat-shape { width: 200px; }
    .g-kapcsolat-shape.is-visible { opacity: 0.22; }
}

.g-kapcsolat-header {
    text-align: center;
    margin-bottom: 60px;
}
.g-kapcsolat-eyebrow {
    display: block;
    font-family: 'Lora', Georgia, serif;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.36em;
    text-transform: uppercase;
    color: var(--gy-primary);
    margin-bottom: 14px;
}
.g-kapcsolat-heading {
    font-family: 'Lora', Georgia, serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400;
    color: #fff;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin: 0 0 16px;
}
.g-kapcsolat-subhead {
    font-family: 'Lora', Georgia, serif;
    font-size: 1rem;
    color: rgba(244, 236, 223, 0.78);
    margin: 0;
    line-height: 1.65;
}

.g-kapcsolat-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: stretch;
    margin-bottom: 0;
}
@media (max-width: 991.98px) {
    .g-kapcsolat-grid { grid-template-columns: 1fr; gap: 40px; }
}

.g-kapcsolat-infocol { padding-right: 10px; }
.g-kapcsolat-info {
    list-style: none;
    padding: 0;
    margin: 0 0 30px;
}
.g-kapcsolat-info-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid rgba(244, 236, 223, 0.12);
    font-family: 'Lora', Georgia, serif;
    font-size: 1rem;
}
.g-kapcsolat-info-item:last-child { border-bottom: 0; }
.g-kapcsolat-info-item i {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(201, 169, 110, 0.18);
    color: var(--gy-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}
.g-kapcsolat-info-link {
    color: #f4ecdf !important;
    text-decoration: none !important;
    transition: color 0.3s ease;
}
.g-kapcsolat-info-link:hover { color: var(--gy-primary) !important; }

.g-kapcsolat-social { margin-top: 10px; }
.g-kapcsolat-social .module-social-links a,
.g-kapcsolat-social .module-social-links .social-link,
.g-kapcsolat-social .module-social-links i {
    color: var(--gy-primary) !important;
    font-size: 1.2rem;
}

.g-kapcsolat-mapcol {
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(244, 236, 223, 0.18);
    background: rgba(244, 236, 223, 0.04);
    min-height: 460px;
    display: flex;
    flex-direction: column;
}
/* Stretch every nested MW wrapper inside the map column to 100% height */
.g-kapcsolat-mapcol > div,
.g-kapcsolat-mapcol .module-google-maps,
.g-kapcsolat-mapcol .module-google-maps > div,
.g-kapcsolat-mapcol .relative,
.g-kapcsolat-mapcol .mw-prevent-interaction {
    flex: 1 1 auto;
    width: 100% !important;
    height: 100% !important;
    min-height: 100%;
}
.g-kapcsolat-mapcol iframe {
    width: 100% !important;
    height: 100% !important;
    min-height: 460px;
    border: 0;
    display: block;
}
@media (max-width: 991.98px) {
    .g-kapcsolat-mapcol, .g-kapcsolat-mapcol iframe { min-height: 340px; }
}

/* ─── Footer (gyenes-makeup) ─────────────────────────────── */
.g-footer {
    background: var(--gy-bg-soft, #f7f3ec);
    padding: 70px 0 30px;
    color: var(--gy-text, #3d3a36);
    font-family: 'Lora', Georgia, serif;
}

.g-footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 60px;
    padding-bottom: 40px;
}
@media (max-width: 767.98px) {
    .g-footer-grid { grid-template-columns: 1fr; gap: 40px; }
}

.g-footer-coltitle {
    font-family: 'Lora', Georgia, serif;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.36em;
    text-transform: uppercase;
    color: var(--gy-text-strong, #2c2926);
    margin: 0 0 24px;
}

.g-footer-info {
    list-style: none;
    padding: 0;
    margin: 0 0 22px;
}
.g-footer-info-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 8px 0;
    font-size: 0.95rem;
    color: var(--gy-text);
}
.g-footer-info-item i {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(201, 169, 110, 0.14);
    color: var(--gy-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}
.g-footer-info-item a,
.g-footer-info-item span {
    color: var(--gy-text) !important;
    text-decoration: none !important;
    transition: color 0.3s ease;
}
.g-footer-info-item a:hover { color: var(--gy-primary) !important; }

.g-footer-social {
    display: flex;
    gap: 12px;
    margin-top: 6px;
}
.g-footer-social a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid var(--gy-border, #ede5d8);
    color: var(--gy-text) !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    text-decoration: none !important;
    transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.g-footer-social a:hover {
    background: var(--gy-primary);
    border-color: var(--gy-primary);
    color: #fff !important;
    transform: translateY(-2px) scale(1.06);
}

/* Footer menu — overrides Bootstrap nav defaults inside the footer column */
.g-footer-menu .footer-skin-default,
.g-footer-menu ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}
.g-footer-menu .nav-item,
.g-footer-menu li {
    display: block !important;
    padding: 6px 0 !important;
    width: auto !important;
}
.g-footer-menu .nav-link,
.g-footer-menu a {
    color: var(--gy-text) !important;
    text-decoration: none !important;
    font-size: 0.95rem;
    font-family: 'Lora', Georgia, serif;
    padding: 0 !important;
    display: inline-block !important;
    transition: color 0.3s ease, padding-left 0.3s ease;
}
.g-footer-menu .nav-link:hover,
.g-footer-menu a:hover {
    color: var(--gy-primary) !important;
    padding-left: 6px !important;
    background: transparent !important;
}

/* Footer logo (replaces the old "Alexandra" cursive wordmark) */
.g-footer-logo {
    text-align: center;
    margin: 30px 0 28px;
}
.g-footer-logo .module-logo,
.g-footer-logo > .module {
    display: inline-block;
    max-width: 100%;
}
.g-footer-logo img {
    max-width: 200px;
    height: auto;
    width: auto;
    display: inline-block;
    margin: 0 auto;
}

.g-footer-bottom {
    border-top: 1px solid var(--gy-border, #ede5d8);
    padding-top: 22px;
    text-align: center;
}
.g-footer-copyright {
    margin: 0;
    font-size: 0.8rem;
    color: var(--gy-text-muted, #8a847d);
    letter-spacing: 0.04em;
}

/* Scroll-to-top button (overrides MW default #to-top) */
#to-top.btn,
#to-top.btn-primary,
#to-top.btn-square {
    position: fixed !important;
    bottom: 28px;
    right: 28px;
    width: 48px;
    height: 48px;
    padding: 0 !important;
    background: var(--gy-primary) !important;
    border: 0 !important;
    border-radius: 50% !important;
    color: #fff !important;
    box-shadow: 0 6px 18px rgba(201, 169, 110, 0.35);
    z-index: 1000;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.3s ease;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
}
#to-top.is-visible {
    opacity: 1;
    visibility: visible;
}
#to-top:hover {
    background: var(--gy-primary-deep, #b79c69) !important;
    transform: scale(1.08);
}

/* ─── Header / top-nav: fixed overlay, transparent over Hero, opaque on scroll ─── */

/* Make the whole header float on top of the page (overlay, not block-flow) */
.mw-header-sticky-nav {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background: transparent !important;
    transition: background 0.4s ease !important;
}
.mw-header-sticky-nav,
.mw-header-sticky-nav .navigation-holder,
.mw-header-sticky-nav .mw-menu-skin-com {
    background: transparent !important;
}

/* Default state (top of page, over Hero) — fully transparent */
.header-background,
.mw-header-sticky-nav .header-background {
    background: transparent !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    box-shadow: none !important;
    border-bottom: 1px solid transparent !important;
    transition: background 0.4s ease, backdrop-filter 0.4s ease, box-shadow 0.4s ease, border-bottom-color 0.4s ease !important;
}

/* Hero section: full 100vh, no top/bottom padding (so it starts at viewport top under the fixed header) */
.mw-header-section-mh-100vh,
.mw-header-section-mh-100vh.py-4,
.mw-header-section-mh-100vh.py-5 {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    min-height: 100vh !important;
}

/* Nav link — WHITE on transparent header (good contrast over Hero image overlay) */
.navbar-nav .menu_element_link,
.navbar-nav .menu_element_link.nav-link,
.menu-header-skin-1 .navbar-nav .nav-link {
    color: #ffffff !important;
    font-family: 'Lora', Georgia, serif;
    font-size: 0.96rem;
    letter-spacing: 0.03em;
    background: transparent !important;
    transition: color 0.3s ease !important;
    position: relative;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
}

/* Hover — arany */
.navbar-nav .menu_element_link:hover,
.navbar-nav .menu_element_link:focus,
.navbar-nav .menu_element_link.nav-link:hover,
.navbar-nav .menu_element_link.nav-link:focus {
    color: var(--gy-primary, #c9a96e) !important;
    background: transparent !important;
}

/* Active — NO color change, NO underline. Csak a dot árulja el az aktív item-et */
.navbar-nav .menu_element_link.active,
.navbar-nav .menu_element_link.nav-link.active,
.navbar-light .navbar-nav .nav-link.active,
.menu-header-skin-1 .navbar-nav .nav-link.active {
    background: transparent !important;
    text-decoration: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
    /* color NEM van itt — örökli a default-szabályt (fehér / scrolled state-en sötét) */
}
.navbar-nav .menu_element_link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--gy-primary, #c9a96e);
}

/* Strip any underline / border from links in the nav (clean look) */
.navbar-nav .menu_element_link,
.navbar-nav .menu_element_link.nav-link,
.navbar-nav .menu_element_link:hover,
.navbar-nav .menu_element_link:focus,
.navbar-nav .menu_element_link.active span,
.navbar-nav .menu_element_link span {
    text-decoration: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
}

/* Bootstrap navbar-light bg-glow reset */
.navbar-light .navbar-nav .nav-link,
.navbar-light .navbar-nav .nav-link.active,
.navbar-light .navbar-nav .nav-link:focus,
.navbar-light .navbar-nav .nav-link:hover {
    background-color: transparent !important;
}

/* ── Scrolled state (past the Hero, into Rólam) — opaque cream ── */
body.is-scrolled .header-background,
body.is-scrolled .mw-header-sticky-nav .header-background {
    background: rgba(247, 243, 236, 0.95) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    backdrop-filter: blur(8px) !important;
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.05) !important;
    border-bottom-color: rgba(201, 169, 110, 0.12) !important;
}
body.is-scrolled .navbar-nav .menu_element_link,
body.is-scrolled .navbar-nav .menu_element_link.nav-link,
body.is-scrolled .menu-header-skin-1 .navbar-nav .nav-link {
    color: var(--gy-text-strong, #2c2926) !important;
    text-shadow: none;
}
body.is-scrolled .navbar-nav .menu_element_link:hover,
body.is-scrolled .navbar-nav .menu_element_link.nav-link:hover,
body.is-scrolled .navbar-nav .menu_element_link.active,
body.is-scrolled .navbar-nav .menu_element_link.nav-link.active {
    color: var(--gy-primary, #c9a96e) !important;
}

/* ── Subpage clearance (no Hero) — first section sits below fixed header ── */
body.page-galeria #galeria-section,
body.page-galeria .g-section:first-of-type {
    padding-top: 140px;
}
}

/* ───── DSP (Demján Sándor Program) — pályázati arculati compliance ───── */
.g-footer .dsp-compliance {
  padding: 0 0 40px;
  margin-bottom: 40px;
  border-bottom: 1px solid rgba(61,58,54,0.12);
  text-align: center;
}
.g-footer .dsp-statement {
  font-family: 'Lora', Georgia, serif;
  font-size: 14px;
  color: var(--gy-text, #3d3a36);
  margin-bottom: 24px;
  line-height: 1.5;
  text-align: center;
}
.g-footer .dsp-logos {
  display: flex;
  gap: 50px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  padding: 10px;
}
.g-footer .dsp-logo,
.g-footer .neum-logo {
  height: 141px !important;
  width: auto !important;
  max-width: 100%;
  display: block;
  transition: opacity 0.2s ease;
}
.g-footer .dsp-logos a:hover .dsp-logo { opacity: 0.85; }

@media (max-width: 1024px) {
  .g-footer .dsp-logo, .g-footer .neum-logo { height: 100px; }
}
@media (max-width: 767.98px) {
  .g-footer .dsp-compliance { padding-bottom: 28px; margin-bottom: 28px; }
  .g-footer .dsp-logos { gap: 24px; padding: 8px; }
  .g-footer .dsp-logo, .g-footer .neum-logo { height: 64px; }
  .g-footer .dsp-statement { font-size: 13px; margin-bottom: 18px; }
}
/* Footer legal links (impresszum + adatkezelesi PDF) — 2026-06-01 hot-fix */
.g-footer-legal { margin-top: 10px; font-size: 14px; opacity: 0.85; }
.g-footer-legal-link { color: inherit; text-decoration: underline; }
.g-footer-legal-link:hover { text-decoration: none; opacity: 1; }
.g-footer-legal-sep { opacity: 0.5; margin: 0 4px; }
/* ===== LEGAL-PAGES-DEFAULT-STYLES ===== */
/* Impresszum + Adatvédelmi page styling (add-default-legal-pages-v2 — rk-teto pattern). */
.impresszum-wrap, .adatvedelmi-wrap { max-width: 980px; margin: 0 auto; padding: 32px 20px 80px; line-height: 1.65; color: #4a4a4a; }

/* Intro box — left brand-border, soft gray bg. */
.impresszum-intro-box, .adatvedelmi-intro-box {
  background: #f5f5f5;
  border-left: 4px solid var(--primary, currentColor);
  padding: 24px 28px;
  border-radius: 8px;
  margin: 0 0 48px;
  line-height: 1.75;
}
.impresszum-intro-box p, .adatvedelmi-intro-box p { margin: 0; }

/* Section heading — UPPERCASE + MDI-icon + thin divider. */
.impresszum-section, .adatvedelmi-section { margin: 48px 0; }
.impresszum-h2, .adatvedelmi-h2 {
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid #eaeaea;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #1a1a1a;
}
.impresszum-h2 > i, .adatvedelmi-h2 > i { color: var(--primary, currentColor); font-size: 1.4em; line-height: 1; }

/* Card grid for identity data (Üzemeltető / Adatkezelő). */
.impresszum-grid, .adatvedelmi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.impresszum-card, .adatvedelmi-card {
  background: #fff;
  border: 1px solid #eaeaea;
  border-radius: 8px;
  padding: 18px 20px;
}
.impresszum-label, .adatvedelmi-label {
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: #888;
  font-weight: 600;
  margin-bottom: 8px;
}
.impresszum-value, .adatvedelmi-value { color: #1a1a1a; font-weight: 500; }
.adatvedelmi-value a { color: inherit; text-decoration: none; }
.adatvedelmi-value a:hover { text-decoration: underline; }

/* TODO placeholders — italic + brand color. */
.impresszum-todo, .adatvedelmi-todo {
  color: var(--primary, currentColor) !important;
  font-style: italic;
  font-weight: 500;
}

/* Pill-style contact links. */
.impresszum-contact-row, .adatvedelmi-contact-row { display: flex; flex-wrap: wrap; gap: 12px; }
.impresszum-pill, .adatvedelmi-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid #eaeaea;
  border-radius: 8px;
  padding: 14px 22px;
  color: #1a1a1a;
  text-decoration: none;
  font-weight: 500;
}
.impresszum-pill > i, .adatvedelmi-pill > i { color: var(--primary, currentColor); font-size: 1.15em; }
.impresszum-pill:hover, .adatvedelmi-pill:hover { background: #fafafa; }

/* Lists (Adatvédelmi célok + Érintetti jogok). */
.adatvedelmi-list { padding-left: 22px; margin: 0; }
.adatvedelmi-list li { margin: 6px 0; }

/* Body paragraphs in legal sections. */
.impresszum-section > p, .adatvedelmi-section > p { margin: 0; }

/* Footer legal-link visibility (B4) — visible on dark footers. */
.footer .footer-bottom-links, .footer-bottom-links {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11.5px; letter-spacing: .06em;
  color: var(--light, #ffffff);
}
.footer .footer-bottom-links a, .footer-bottom-links a,
.footer .footer-bottom-links .footer-legal-link, .footer-bottom-links .footer-legal-link {
  color: inherit; text-decoration: none;
}
.footer .footer-bottom-links .footer-legal-link:hover,
.footer-bottom-links .footer-legal-link:hover { text-decoration: underline; }
.footer-legal-sep { opacity: 0.5; margin: 0 4px; user-select: none; }

@media (max-width: 640px) {
  .impresszum-wrap, .adatvedelmi-wrap { padding: 24px 16px 60px; }
  .impresszum-grid, .adatvedelmi-grid { grid-template-columns: 1fr; }
  .impresszum-section, .adatvedelmi-section { margin: 36px 0; }
}
