/* =====================================================================
   EGYÜTT ANDRÁSÉRT (v2) – STYLES.CSS
   LIGHT MODE DEFAULT + DARK MODE THEME TOKENS
   ===================================================================== */
:root,
html[data-theme="light"] {
    --bg-page: #F5F3EE;
    --bg-dock: rgba(245, 243, 238, 0.95);
    --bg-card: rgba(255, 255, 255, 0.60);
    --bg-subtle: rgba(234, 230, 221, 0.60);
    --bg-pill: #F5F3EE;
    --bg-nav: rgba(255, 255, 255, 0.96);
    --bg-inverse: #141413;
    --text-inverse: #F5F3EE;
    --border-hairline: rgba(20, 20, 19, 0.09);
    --border-strong: #C5BEB0;
    --text-primary: #141413;
    --text-secondary: #524F49;
    --text-muted: #7D786F;
    --accent: #43885b;
    --accent-hover: #36704a;
    --accent-soft: rgba(67, 136, 91, 0.12);
    --card-shadow: 0 1px 2px rgba(24, 58, 37, 0.04), 0 12px 32px -8px rgba(24, 58, 37, 0.08);
}

html[data-theme="dark"] {
    --bg-page: #111110;
    --bg-dock: rgba(17, 17, 16, 0.95);
    --bg-card: rgba(26, 26, 24, 0.80);
    --bg-subtle: rgba(36, 36, 33, 0.80);
    --bg-pill: #242421;
    --bg-nav: rgba(26, 26, 24, 0.96);
    --bg-inverse: #F5F3EE;
    --text-inverse: #141413;
    --border-hairline: rgba(245, 243, 238, 0.08);
    --border-strong: #3E3E38;
    --text-primary: #F5F3EE;
    --text-secondary: #B8B4AA;
    --text-muted: #8A857C;
    --accent: #43885b;
    --accent-hover: #52a36e;
    --accent-soft: rgba(67, 136, 91, 0.20);
    --card-shadow: 0 1px 2px rgba(12, 32, 20, 0.3), 0 16px 36px -8px rgba(12, 32, 20, 0.5);
}

html {
    overflow-x: clip;
}

body {
    background-color: var(--bg-page);
    color: var(--text-primary);
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    overflow-x: clip;
    transition: background-color 0.25s ease, color 0.25s ease;
}

main, section, footer {
    max-width: 100%;
}

svg {
    display: inline-block;
    vertical-align: middle;
}

/* Bento Surfaces */
/* Full-bleed edge-to-edge mobile bottom action dock */
.mobile-bottom-dock {
    background-color: var(--bg-page);
    background-color: var(--bg-dock, var(--bg-page));
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-top: 1px solid var(--border-hairline);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05);
    padding-bottom: max(0.75rem, env(safe-area-inset-bottom, 0.75rem));
}

html[data-theme="dark"] .mobile-bottom-dock {
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.4);
}

.editorial-card {
    background-color: var(--bg-card);
    border: none;
    border-radius: 14px;
    box-shadow: var(--card-shadow);
    transition: background-color 0.25s ease, transform 0.25s ease;
}

.editorial-card-subtle {
    background-color: var(--bg-subtle);
    border: none;
    border-radius: 12px;
    transition: background-color 0.25s ease;
}

.editorial-pill-row {
    background-color: var(--bg-pill);
    border: none;
    border-radius: 9999px;
    transition: background-color 0.2s ease;
}

.editorial-pill-row > span:last-child {
    text-align: right;
}

.floating-nav {
    background-color: var(--bg-nav);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid var(--border-hairline);
    box-shadow: var(--card-shadow);
}

#site-header {
    will-change: transform;
}

#site-header.header-slide-down {
    transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

#mobile-nav-menu {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px) scale(0.98);
    transform-origin: top center;
    transition: opacity 0.25s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.25s cubic-bezier(0.22, 1, 0.36, 1),
                visibility 0.25s;
}

#mobile-nav-menu[data-open="true"] {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

/* Modal & Lightbox Transitions */
.modal-overlay {
    background-color: rgba(20, 20, 19, 0.58);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.25s;
}

.modal-overlay[data-open="true"] {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.modal-panel {
    transform: translateY(12px) scale(0.97);
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.modal-overlay[data-open="true"] .modal-panel {
    transform: translateY(0) scale(1);
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--text-secondary);
    transition: color 0.2s ease;
}

.nav-link::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 9999px;
    background-color: var(--accent);
    opacity: 0;
    transform: scale(0.4);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-link:hover::before {
    opacity: 1;
    transform: scale(1);
}

.nav-link.active {
    color: var(--accent);
}

.nav-link.active::before {
    opacity: 1;
    transform: scale(1);
}

/* Clean Eyebrow Text (Plain text, no pill background, brand accent green) */
.eyebrow-badge {
    display: block;
    padding: 0;
    background-color: transparent;
    color: var(--accent);
    font-size: 0.75rem;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

html[data-theme="dark"] .eyebrow-badge {
    color: var(--accent);
}

/* Geometric Sans-Serif Display Scales (No Serif/Italic, Responsive Mobile Safeguards) */
.display-h1 {
    font-size: clamp(1.65rem, 6vw, 3.25rem);
    line-height: 1.14;
    letter-spacing: -0.035em;
    font-weight: 800;
    overflow-wrap: break-word;
    word-break: normal;
}

.display-h2 {
    font-size: clamp(1.5rem, 5vw, 3.1rem);
    line-height: 1.18;
    letter-spacing: -0.03em;
    font-weight: 800;
    overflow-wrap: break-word;
    word-break: normal;
}

.display-metric {
    font-size: clamp(2.35rem, 5vw, 4.4rem);
    line-height: 0.98;
    letter-spacing: -0.04em;
    font-weight: 800;
}

/* Theme Buttons */
.btn-primary {
    background-color: var(--accent);
    color: #FFFFFF;
    transition: background-color 0.2s ease, transform 0.15s ease;
}

.btn-primary:hover {
    background-color: var(--accent-hover);
}

.btn-ink {
    background-color: var(--bg-inverse);
    color: var(--text-inverse);
    transition: opacity 0.2s ease;
}

.btn-ink:hover {
    opacity: 0.88;
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--border-strong);
    color: var(--text-primary);
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.btn-outline:hover {
    background-color: var(--bg-subtle);
}

/* Soft Non-Link Utility Buttons & Filter Chips (Transparent inactive text, soft pill active) */
.btn-soft {
    background-color: transparent;
    border: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: background-color 0.25s cubic-bezier(0.16, 1, 0.3, 1),
                color 0.25s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.15s ease;
}

.btn-soft:hover {
    background-color: rgba(226, 221, 211, 0.30);
    color: var(--text-primary);
}

html[data-theme="dark"] .btn-soft:hover {
    background-color: rgba(48, 48, 44, 0.35);
}

.btn-soft-active {
    background-color: rgba(226, 221, 211, 0.65);
    border: none;
    color: var(--text-primary);
    font-weight: 600;
    transition: background-color 0.25s cubic-bezier(0.16, 1, 0.3, 1),
                color 0.25s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.15s ease;
}

.btn-soft-active:hover {
    background-color: rgba(226, 221, 211, 0.85);
}

html[data-theme="dark"] .btn-soft-active {
    background-color: rgba(48, 48, 44, 0.65);
}

html[data-theme="dark"] .btn-soft-active:hover {
    background-color: rgba(48, 48, 44, 0.85);
}

/* Proof Grid Cards Filter Animation */
.proof-item {
    transition: opacity 0.24s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.24s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

/* Desktop First-View Full-Height Hero (Centers content vertically across all desktop and vertical monitors) */
@media (min-width: 1024px) {
    .hero-firstview {
        min-height: calc(100vh - 68px);
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
}

/* First-View Scroll Down Cue (Desktop / Landscape Only - Uppercase Eyebrow + Minimalist Animated Mouse) */
.scroll-cue-link {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: color 0.2s ease;
}

.scroll-cue-link:hover {
    color: var(--text-primary);
}

/* Style 2: Animated Mouse Icon (Finalized: Matches typography color and stroke weight) */
.scroll-cue-mouse {
    width: 16px;
    height: 25px;
    border: 1.6px solid currentColor;
    border-radius: 9999px;
    position: relative;
    display: inline-flex;
    justify-content: center;
    padding-top: 3.5px;
    flex-shrink: 0;
    transition: border-color 0.2s ease;
}

.scroll-cue-mouse-wheel {
    width: 2px;
    height: 5px;
    background-color: currentColor;
    border-radius: 9999px;
    animation: mouse-wheel-drop 1.4s cubic-bezier(0.65, 0, 0.35, 1) infinite;
    will-change: transform, opacity;
}

@keyframes mouse-wheel-drop {
    0% {
        transform: translateY(0);
        opacity: 1;
    }
    60% {
        transform: translateY(8px);
        opacity: 0.15;
    }
    61% {
        transform: translateY(0);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Pill-Free Inline Action Buttons with Leading Icon (Copy & Share actions) */
.btn-inline-action {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    background: transparent;
    border: none;
    padding: 0.25rem 0;
    color: var(--text-secondary);
    font-weight: 600;
    transition: color 0.2s ease;
}

.btn-inline-action:hover {
    color: var(--accent);
}

.btn-inline-action-accent {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    background: transparent;
    border: none;
    padding: 0.25rem 0;
    color: var(--accent);
    font-weight: 700;
    transition: opacity 0.2s ease;
}

.btn-inline-action-accent:hover {
    opacity: 0.8;
}

/* Translucent 50% Glass Controls (Lightbox nav, image corner badges, icon toggles) */
.ctrl-glass {
    background-color: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.ctrl-glass:hover {
    background-color: rgba(255, 255, 255, 0.88);
    color: var(--text-primary);
}

html[data-theme="dark"] .ctrl-glass {
    background-color: rgba(26, 26, 24, 0.55);
}

html[data-theme="dark"] .ctrl-glass:hover {
    background-color: rgba(26, 26, 24, 0.88);
}

/* Lightbox Opaque Glass Bar (High contrast, instantly readable caption) */
.lightbox-glass-bar {
    background-color: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-hairline);
    color: var(--text-primary);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

html[data-theme="dark"] .lightbox-glass-bar {
    background-color: rgba(26, 26, 24, 0.92);
    color: var(--text-primary);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

/* Translucent Glass Pill Badge (Non-clickable metadata tags on cards) */
.badge-glass {
    background-color: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--border-hairline);
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 500;
    line-height: 1.3;
    padding: 4px 12px;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    pointer-events: none;
    user-select: none;
}

html[data-theme="dark"] .badge-glass {
    background-color: rgba(26, 26, 24, 0.55);
    color: var(--text-secondary);
}

/* FAQ Accordion Toggle Icon (Plain + / X icon, no circle) */
.faq-toggle-circle {
    background-color: transparent;
    color: var(--text-primary);
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: color 0.25s ease, transform 0.25s ease;
}

.faq-item[data-open="true"] .faq-toggle-circle {
    background-color: transparent;
    color: var(--accent);
    border: none;
}

.faq-item[data-open="true"] .faq-svg-icon {
    transform: rotate(45deg);
}

.faq-svg-icon {
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-content,
.faq-item button > span:first-child {
    max-width: 90%;
}

.text-primary-theme {
    color: var(--text-primary);
}

.text-secondary-theme {
    color: var(--text-secondary);
}

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

.text-accent-theme {
    color: var(--accent);
}

.border-theme {
    border-color: var(--border-hairline) !important;
}

.divide-y > :not([hidden]) ~ :not([hidden]),
.divide-theme > :not([hidden]) ~ :not([hidden]) {
    border-color: var(--border-hairline) !important;
}

::selection {
    background-color: var(--accent);
    color: #FFFFFF;
}

/* ==========================================================================
   AMBIENT ANIMATED MESH GRADIENT (MOGRT 05 / LIQUID GRADIENT)
   ========================================================================== */
@keyframes ambient-mesh-drift {
    0% {
        background-position: 0% 20%, 100% 80%, 40% 90%;
    }
    33% {
        background-position: 50% 60%, 40% 20%, 80% 50%;
    }
    66% {
        background-position: 80% 30%, 10% 70%, 20% 40%;
    }
    100% {
        background-position: 0% 20%, 100% 80%, 40% 90%;
    }
}

.ambient-mesh-bg {
    background-color: #0c1510;
    background-image:
        radial-gradient(ellipse 65% 55% at 20% 25%, rgba(67, 136, 91, 0.48) 0%, transparent 68%),
        radial-gradient(ellipse 70% 60% at 80% 75%, rgba(47, 185, 133, 0.38) 0%, transparent 68%),
        radial-gradient(ellipse 60% 50% at 50% 95%, rgba(30, 150, 103, 0.32) 0%, transparent 65%),
        linear-gradient(135deg, #122017 0%, #0c1510 100%);
    background-size: 160% 160%, 150% 150%, 140% 140%, 100% 100%;
    animation: ambient-mesh-drift 9s ease-in-out infinite;
    will-change: background-position;
}
