/*
Theme Name: Derma Atelier
Theme URI: https://dermaatelier.hu
Author: Derma Atelier
Description: Egyedi, szerkesztői dizájnú WordPress téma a Derma Atelier kozmetikai stúdiónak. ACF-alapú, mobile-first.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: derma-atelier
Tags: custom-menu, featured-images, translation-ready
*/
/* Shared styles for all pages - based on Kata Jakab reference design */
:root {
    --navy: #151942;
    --navy-light: #2a2a5e;
    --white: #ffffff;
    --cream: #EAE8E1;
    --olive: #B6A995;
    --olive-light: #d3cabc;
    --text: #333333;
    --text-light: #666666;
    --border: #e0ddd8;
    --header-height: 96px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text);
    background: var(--white);
}

h1, h2, h3, h4 {
    font-family: 'Archivo', sans-serif;
    font-weight: 600;
    color: var(--navy);
    line-height: 1.2;
}

img { max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; transition: color 0.3s; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 5%; }

/* HEADER */
.header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0.99rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    transition: all 0.4s;
    background: var(--cream);
}

.header.scrolled {
    background: rgba(234, 232, 225, 0.56);
    box-shadow: 0 1px 0 var(--border);
    backdrop-filter: blur(10px);
}

.logo {
    height: 120px;
    width: auto;
    display: flex;
    flex: 0 0 auto;
    align-items: center;
}
.logo img {
    height: 100%;
    width: auto;
    max-width: 200px;
    object-fit: contain;
}
.logo img { transition: filter 0.25s ease; }
.logo:hover img,
.logo:focus-visible img { filter: brightness(0) invert(1); }
.nav { display: flex; align-items: center; gap: 2.5rem; white-space: nowrap; }
.nav a,
.nav a:visited {
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--navy);
    position: relative;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--olive);
    transition: width 0.3s;
}

.nav a:hover::after { width: 100%; }

.header-right { display: flex; flex: 0 0 auto; align-items: center; gap: 2rem; }
.header-phone { flex: 0 0 auto; white-space: nowrap; font-size: 0.75rem; font-weight: 400; color: var(--navy); letter-spacing: 0.05em; }
.header-lang { flex: 0 0 auto; white-space: nowrap; font-size: 0.7rem; font-weight: 400; color: var(--navy); letter-spacing: 0.1em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 0.35em; }
.header-lang a { color: inherit; text-decoration: none; padding: 0.5rem 0.3rem; }
.header-lang a:hover,
.header-lang a:focus-visible { text-decoration: underline; }
.header-lang a[aria-current="page"] { font-weight: 600; text-decoration: none; }

.mobile-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.mobile-toggle span { width: 22px; height: 1px; background: white; transition: background 0.3s; }
.header.scrolled .mobile-toggle span { background: var(--navy); }

/* EDITORIAL HERO */
.editorial-hero {
    min-height: 100svh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--cream);
    position: relative;
    overflow: hidden;
}

.editorial-hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 8rem 8% 8rem 12%;
    position: relative;
    z-index: 2;
}

.editorial-hero-tag {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--olive);
    margin-bottom: 2rem;
}

.editorial-hero-title,
.editorial-title {
    font-family: 'Archivo', sans-serif;
    font-size: clamp(2.5rem, 4vw, 3.75rem);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.01em;
}

.editorial-hero-title {
    font-size: clamp(4.7rem, 8.2vw, 8.4rem);
    line-height: 0.9;
    letter-spacing: -0.055em;
}

.editorial-hero-title {
    color: var(--navy);
    margin-bottom: 2rem;
}

.editorial-hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    font-weight: 300;
    max-width: 440px;
    line-height: 1.8;
}

.editorial-hero-image { position: relative; height: 100svh; }
.editorial-hero-image img { width: 100%; height: 100%; object-fit: cover; }

.editorial-hero-scroll {
    position: absolute;
    bottom: 3rem;
    left: 12%;
    z-index: 3;
    color: var(--text-light);
    font-size: 0.6rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.editorial-hero-scroll-line {
    width: 1px;
    height: 50px;
    background: linear-gradient(to bottom, var(--olive), transparent);
}

/* EDITORIAL SECTION */
.editorial-section { padding: 8rem 5%; }
.editorial-section-cream { background: var(--cream); }
.editorial-section-navy { background: var(--navy); }

.editorial-tag {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--olive);
    margin-bottom: 1.5rem;
}

.editorial-section-navy .editorial-tag { color: var(--olive); }

.editorial-title {
    color: var(--navy);
    margin-bottom: 1rem;
}

.editorial-section-navy .editorial-title { color: var(--white); }

.editorial-subtitle {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.6);
    font-weight: 300;
    font-style: italic;
    margin-bottom: 3rem;
}

.editorial-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: start;
    max-width: 1200px;
    margin: 0 auto;
}

.editorial-text { color: var(--text-light); line-height: 1.9; }
.editorial-section-navy .editorial-text { color: rgba(255,255,255,0.7); }

.editorial-text p { margin-bottom: 1.8rem; font-size: 0.95rem; }
.editorial-text p:last-child { margin-bottom: 0; }

.editorial-images { display: flex; flex-direction: column; gap: 2rem; }
.editorial-images-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }

.editorial-img {
    width: 100%;
    object-fit: cover;
    box-shadow: 0 4px 30px rgba(21,25,66,0.06);
}
.editorial-img-portrait { aspect-ratio: 3/4; }
.editorial-img-square { aspect-ratio: 1; }
.editorial-img-landscape { aspect-ratio: 4/3; }

.editorial-quote {
    border-left: 2px solid var(--olive);
    padding-left: 2rem;
    margin: 3rem 0 0;
}

.editorial-quote p {
    font-family: 'Archivo', sans-serif;
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--navy);
    line-height: 1.5;
    font-style: italic;
}

.editorial-section-navy .editorial-quote p { color: var(--white); }

.editorial-lead {
    font-size: 1.15rem;
    color: var(--navy);
    font-weight: 500;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.editorial-section-navy .editorial-lead { color: var(--white); }

/* FOOTER */
.footer { background: #d8d4cb; padding: 4rem 5% 2rem; }
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 2rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}
.footer-about { font-size: 0.8rem; color: rgba(104,99,92,0.8); line-height: 1.8; }
.footer-title {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #68635c;
    margin-bottom: 1.25rem;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.8rem; }
.footer-links a { font-size: 0.8rem; color: rgba(104,99,92,0.8); transition: color 0.3s; }
.footer-hours { font-size: 0.8rem; color: rgba(104,99,92,0.8); }
.footer-links a:hover { color: #68635c; }
.footer-social { display: flex; align-items: center; gap: 1rem; margin-top: 1.5rem; }
.footer-social .fa-icon { width: 1.05rem; height: 1.05rem; fill: currentColor; display: inline-block; vertical-align: -0.125em; }
.footer-icon { height: 64px; width: auto; }
.footer-social a:not(.footer-icon-link) {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(104,99,92,0.3);
    color: #68635c;
    font-size: 1rem;
    transition: all 0.3s;
}
.footer-social a:not(.footer-icon-link):hover,
.footer-social a:not(.footer-icon-link):focus-visible {
    background: transparent;
    border-color: var(--navy);
    color: var(--navy);
}
.footer-bottom {
    border-top: 1px solid rgba(104,99,92,0.15);
    padding-top: 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}
.footer-copyright { font-size: 0.7rem; color: rgba(104,99,92,0.8); }
.footer-legal { display: flex; gap: 2rem; }
.footer-legal a { font-size: 0.7rem; color: rgba(104,99,92,0.8); transition: color 0.3s; }
.footer-legal a:hover { color: #68635c; }

/* SCROLL ANIMATIONS */
.fade-in { opacity: 1; transform: none; }
.reveal-ready .fade-in {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.75s ease-out, transform 0.75s ease-out;
}
.reveal-ready .fade-in.visible { opacity: 1; transform: translateY(0); }
.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }

/* SCROLLBAR */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: var(--navy); border-radius: 4px; }

/* RESPONSIVE */
@media (max-width: 1024px) {
    .editorial-hero-scroll { display: none; }
    .logo { height: 120px; }
    .logo img { height: 100%; width: auto; max-width: 200px; object-fit: contain; }
    .nav { display: none; }
    .mobile-toggle { display: flex; }
    .editorial-hero { grid-template-columns: 1fr; }
    .editorial-hero-content { padding: 4rem 8% 3rem; }
    .editorial-hero-image { height: 50vh; }
    .editorial-hero-scroll { left: 50%; transform: translateX(-50%); }
    .editorial-grid { grid-template-columns: 1fr; gap: 3rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
}

@media (max-width: 1199.98px) {
    .nav { display: none; }
    .mobile-toggle { display: flex; }
}

@media (min-width: 1200px) and (max-width: 1399px) {
    .header { padding-inline: 3%; }
    .logo { height: 105px; }
    .logo img { max-width: 175px; }
    .nav { gap: clamp(1.15rem, 1.65vw, 1.45rem); }
    .nav a { font-size: 0.69rem; letter-spacing: 0.075em; }
    .header-right { gap: 1rem; }
    .header-phone { font-size: 0.7rem; letter-spacing: 0.03em; }
    .header-lang { font-size: 0.67rem; letter-spacing: 0.08em; }
}

@media (max-width: 767px) {
    .header { min-height: 84px; padding-block: 0.2rem; }
    .logo { height: 96px; }
    .logo img { height: 100%; width: auto; max-width: 200px; object-fit: contain; }
    .editorial-hero { min-height: 85svh; grid-template-rows: auto 1fr; overflow: hidden; }
    .editorial-hero-content { padding-bottom: 2.5rem; }
    .editorial-hero-image { position: relative; height: 100%; min-height: 0; overflow: hidden; }
    .editorial-hero-image img { height: calc(100% + 60px); transform: translateY(-60px); object-position: center top; }
    .editorial-hero-content { padding: 1.25rem 5% 1.75rem; }
    .editorial-hero-tag { margin-bottom: 0.75rem; }
    .editorial-hero-tag { letter-spacing: 0.24em; }
    .editorial-hero-title { font-size: clamp(2.65rem, 11.8vw, 3.4rem); margin-bottom: 1.25rem; line-height: 0.9; letter-spacing: -0.055em; }
    .editorial-title { font-size: 1.85rem; }
    .editorial-hero-subtitle { font-size: 1rem; line-height: 1.7; }
    .editorial-hero-scroll { bottom: 1.25rem; }
    .editorial-hero-scroll-line { height: 36px; }
    .editorial-section { padding: 4rem 5%; }
    .editorial-title { font-size: 1.75rem; }
    .footer { padding: 3rem 5% 1.5rem; }
    .footer-grid { grid-template-columns: 1fr; gap: 2.5rem; margin-bottom: 1.5rem; }
    .footer-title { margin-bottom: 0.75rem; }
    .footer-bottom { flex-direction: column; align-items: flex-start; gap: 1.25rem; text-align: left; }
    .footer-legal { flex-wrap: wrap; justify-content: flex-start; gap: 0; }
    .footer-legal a + a::before { content: '·'; margin: 0 0.9rem; color: rgba(104, 99, 92, 0.8); }
    .header-phone { display: none; }
}


/* ACCESSIBLE MOBILE NAVIGATION */
body.menu-open { overflow: hidden; }

.mobile-toggle {
    width: 48px;
    height: 48px;
    padding: 0;
    border: 0;
    background: transparent;
    align-items: center;
    justify-content: center;
    position: relative;
}

.mobile-toggle span {
    position: absolute;
    left: 13px;
    width: 22px;
    height: 1px;
    background: var(--navy);
    transform-origin: center;
    transition: transform 0.3s ease, opacity 0.2s ease;
}
.mobile-toggle span:nth-child(1) { transform: translateY(-6px); }
.mobile-toggle span:nth-child(2) { transform: translateY(0); }
.mobile-toggle span:nth-child(3) { transform: translateY(6px); }
.mobile-toggle.is-active span:nth-child(1) { transform: rotate(45deg); }
.mobile-toggle.is-active span:nth-child(2) { opacity: 0; }
.mobile-toggle.is-active span:nth-child(3) { transform: rotate(-45deg); }

.mobile-menu {
    position: fixed;
    z-index: 990;
    inset: var(--header-height) 0 0;
    height: calc(100dvh - var(--header-height));
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--cream);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s linear 0.3s;
}

.mobile-menu.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
    transition-delay: 0s;
}

.mobile-menu-inner {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 3rem;
    padding: 2.5rem 5% 2rem;
    border-top: 1px solid rgba(21, 25, 66, 0.1);
}

.mobile-nav { display: flex; flex-direction: column; }
.mobile-nav a,
.mobile-nav a:visited {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    min-height: 52px;
    padding: 0.7rem 0;
    border-bottom: 1px solid rgba(21, 25, 66, 0.12);
    color: var(--navy);
    font-family: 'Inter', sans-serif;
    font-size: clamp(0.82rem, 3.6vw, 0.95rem);
    font-weight: 400;
    line-height: 1.4;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.mobile-nav a[aria-current="page"] { color: var(--olive); }
.mobile-nav a:focus { outline: none; -webkit-tap-highlight-color: transparent; }
.mobile-nav a span { font-size: 0.9rem; }
.mobile-nav a .shop-arrow { display: inline-flex; align-items: center; }
.mobile-nav a .shop-arrow svg { width: 11px; height: 11px; display: block; }

.mobile-nav a:focus-visible {
    outline: none;
    text-decoration: underline;
    text-underline-offset: 0.25em;
    text-decoration-color: var(--olive);
}

.nav a[aria-current="page"] { color: var(--olive); }

.nav a.nav-shop,
.nav a.nav-shop:visited,
.mobile-nav a.nav-shop,
.mobile-nav a.nav-shop:visited {
    color: var(--navy);
}

.mobile-menu-meta {
    display: grid;
    gap: 0.45rem;
    padding-top: 1.25rem;
    color: var(--text-light);
    font-size: 0.82rem;
    line-height: 1.55;
}
.mobile-menu-meta a { width: fit-content; color: var(--navy); text-decoration: none; }
.mobile-menu-meta a:hover,
.mobile-menu-meta a:focus-visible { text-decoration: underline; }
.mobile-menu-meta p { margin: 0; }
.mobile-menu-language {
    margin-top: 0.75rem !important;
    color: var(--navy);
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.16em;
    display: inline-flex;
    align-items: center;
    gap: 0.35em;
}
.mobile-menu-language a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    color: inherit;
    text-decoration: none;
    text-transform: uppercase;
}
.mobile-menu-language a:hover,
.mobile-menu-language a:focus-visible { text-decoration: underline; }
.mobile-menu-language a[aria-current="page"] { font-weight: 600; text-decoration: none; }

.mobile-toggle:focus-visible,
.mobile-menu-meta a:focus-visible,
.nav a:focus-visible,
.header-phone:focus-visible {
    outline: 2px solid var(--navy);
    outline-offset: 4px;
}

.mobile-scroll-control { display: none; }

@media (max-width: 1024px) {
    .header { min-height: 88px; padding-block: 0.5rem; }
    .logo { height: 120px; }
    .logo img { height: 100%; width: auto; max-width: 200px; object-fit: contain; }
    .mobile-toggle { display: flex; }
}

@media (max-width: 767px) {
    .header { min-height: 88px; padding-block: 0.25rem; }
    .logo { height: 90px; }
    .logo img { height: 100%; width: auto; max-width: 200px; object-fit: contain; }
    .header-lang { display: none; }
    .mobile-menu-inner { padding-top: 1.5rem; }

    .mobile-scroll-control {
        position: fixed;
        right: max(1rem, env(safe-area-inset-right));
        bottom: calc(1rem + env(safe-area-inset-bottom));
        z-index: 880;
        width: 48px;
        height: 48px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        border: 1px solid rgba(21, 25, 66, 0.2);
        border-radius: 50%;
        background: rgba(234, 232, 225, 0.94);
        box-shadow: 0 10px 28px rgba(21, 25, 66, 0.14);
        color: var(--navy);
        cursor: pointer;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(10px);
        backdrop-filter: blur(12px);
        transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s linear 0.25s, background 0.2s ease;
    }

    .mobile-scroll-control.is-visible {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
        transition-delay: 0s;
    }

    .mobile-scroll-control--label {
        width: auto;
        min-width: 116px;
        gap: 0.65rem;
        padding: 0 1rem;
        border-radius: 999px;
        font-family: 'Inter', sans-serif;
        font-size: 0.65rem;
        font-weight: 500;
        letter-spacing: 0.13em;
        text-transform: uppercase;
    }

    .mobile-scroll-control--above-action {
        bottom: calc(80px + env(safe-area-inset-bottom));
    }

    .mobile-scroll-control svg {
        width: 19px;
        height: 19px;
        flex: 0 0 19px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.5;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    .mobile-scroll-control:hover,
    .mobile-scroll-control:focus-visible {
        border-color: var(--navy);
        background: var(--white);
    }

    .mobile-scroll-control:focus-visible {
        outline: 2px solid var(--navy);
        outline-offset: 3px;
    }

    .mobile-scroll-control:active { transform: translateY(2px); }

    .mobile-scroll-control.is-footer-adjacent,
    body.menu-open .mobile-scroll-control {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(8px);
    }
}

@media (min-width: 1200px) {
    .mobile-menu { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .mobile-menu,
    .mobile-toggle span,
    .mobile-scroll-control,
    .reveal-ready .fade-in { transition: none; }
    .reveal-ready .fade-in { opacity: 1; transform: none; }
}
/* WP admin-bar kompenzáció (bejelentkezett állapotban). */
body.admin-bar .header { top: 32px; }
@media screen and (max-width: 782px) {
    body.admin-bar .header { top: 46px; }
}
/* Egységes SVG nyíl (↗) — a karakter fallback/emoji helyett mindenütt azonos megjelenés. */
.arrow-up-right { display: inline-flex; align-items: center; vertical-align: -0.12em; }
.arrow-up-right svg { width: 11px; height: 11px; display: block; }
/* ===== Ajándékutalvány szekció (főoldal + kapcsolat) ===== */
.gift-voucher { padding: 7rem 5%; background: var(--cream); }
.gift-voucher-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(2.5rem, 6vw, 6rem);
    align-items: center;
}
.gift-voucher-media { min-width: 0; overflow: hidden; }
.gift-voucher-media img { width: 100%; height: 100%; display: block; object-fit: cover; }
.gift-voucher-copy { min-width: 0; max-width: 560px; }
.gift-voucher-eyebrow {
    margin-bottom: 1.25rem;
    color: var(--olive);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.34em;
    text-transform: uppercase;
}
.gift-voucher-title {
    color: var(--navy);
    font-family: 'Archivo', sans-serif;
    font-size: clamp(2rem, 3.5vw, 3.25rem);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.02em;
}
.gift-voucher-action { margin-top: 2.25rem; }
.gift-voucher-button {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 1.75rem;
    border: 1px solid var(--navy);
    background: var(--navy);
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    line-height: 1.3;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.gift-voucher-button:hover,
.gift-voucher-button:focus-visible { background: transparent; color: var(--navy); }
.gift-voucher-button:focus-visible { outline: 2px solid var(--navy); outline-offset: 4px; }

@media (max-width: 900px) {
    .gift-voucher { padding: 5rem 5%; }
    .gift-voucher-inner { grid-template-columns: 1fr; gap: 2rem; }
    .gift-voucher-copy { max-width: none; }
}
@media (max-width: 699px) {
    .gift-voucher { padding: 2.5rem 5%; }
}
/* ===== Keresés (header) ===== */
.search-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid rgba(21, 25, 66, 0.22);
    border-radius: 50%;
    background: transparent;
    color: var(--navy);
    cursor: pointer;
    transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.search-toggle:hover,
.search-toggle:focus-visible,
.search-toggle[aria-expanded="true"] { background: var(--navy); color: var(--white); border-color: var(--navy); }
.search-toggle:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }
.search-toggle svg { width: 15px; height: 15px; display: block; }

.search-panel {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: rgba(234, 232, 225, 0.97);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 var(--border), 0 24px 40px rgba(21, 25, 66, 0.10);
    border-top: 1px solid var(--border);
    padding: 2.75rem 5% 3rem;
}
.search-panel[hidden] { display: none; }
.search-inner { max-width: 860px; margin: 0 auto; }
.search-eyebrow {
    margin-bottom: 1.5rem;
    color: var(--olive);
    font-size: 0.66rem;
    font-weight: 500;
    letter-spacing: 0.34em;
    text-transform: uppercase;
}
.search-form { position: relative; display: flex; align-items: center; gap: 1rem; }
.search-input {
    flex: 1;
    min-width: 0;
    padding: 0.2rem 0 0.75rem;
    border: 0;
    border-bottom: 1px solid var(--navy);
    background: transparent;
    color: var(--navy);
    font-family: 'Inter', sans-serif;
    font-size: 1.05rem;
    font-weight: 400;
    letter-spacing: 0.01em;
    outline: none;
}
.search-input::placeholder { color: rgba(21, 25, 66, 0.4); }
.search-submit {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border: 1px solid var(--navy);
    border-radius: 50%;
    background: var(--navy);
    color: var(--white);
    cursor: pointer;
    transition: background 0.25s, color 0.25s;
}
.search-submit:hover, .search-submit:focus-visible { background: transparent; color: var(--navy); }
.search-submit svg { width: 16px; height: 16px; }
.search-hint { margin-top: 1.1rem; color: var(--text-light); font-size: 0.8rem; letter-spacing: 0.02em; }
.search-hint kbd {
    font-family: inherit;
    font-size: 0.72rem;
    color: var(--navy);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 0.1rem 0.4rem;
    background: var(--white);
}

/* Kereső a mobil menüben */
.mobile-search { padding: 1.25rem 0 0.25rem; }
.mobile-search .search-input {
    font-size: 0.95rem;
    padding-bottom: 0.55rem;
    border-bottom-color: rgba(21, 25, 66, 0.35);
}

@media (max-width: 767px) {
    .search-toggle { width: 34px; height: 34px; }
    .search-panel { padding: 1.75rem 5% 2rem; }
    .search-submit { width: 40px; height: 40px; }
}
/* ===== Keresési találatok ===== */
.derma-search-results { max-width: 860px; margin: 0 auto; display: grid; gap: 0; }
.derma-search-result {
    display: block;
    padding: 1.75rem 0;
    border-top: 1px solid var(--border);
    color: inherit;
    text-decoration: none;
    transition: opacity 0.25s;
}
.derma-search-result:last-child { border-bottom: 1px solid var(--border); }
.derma-search-result:hover, .derma-search-result:focus-visible { opacity: 0.72; }
.derma-search-result:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }
.derma-search-result-type {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--olive);
    font-size: 0.6rem;
    font-weight: 500;
    letter-spacing: 0.28em;
    text-transform: uppercase;
}
.derma-search-result-title {
    color: var(--navy);
    font-family: 'Archivo', sans-serif;
    font-size: 1.3rem;
    font-weight: 400;
    line-height: 1.25;
}
.derma-search-result-excerpt { margin-top: 0.6rem; color: var(--text-light); font-size: 0.9rem; line-height: 1.75; }
.derma-search-result-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    color: var(--navy);
    font-size: 0.62rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
.derma-search-result-more svg { width: 10px; height: 10px; }
.derma-search-empty { max-width: 860px; margin: 0 auto; text-align: center; }
.derma-search-empty p { margin-bottom: 1.75rem; color: var(--text-light); font-size: 0.95rem; line-height: 1.8; }
.derma-search-empty-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0.9rem 1.75rem;
    border: 1px solid var(--navy);
    background: var(--navy);
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background 0.3s, color 0.3s;
}
.derma-search-empty-button:hover, .derma-search-empty-button:focus-visible { background: transparent; color: var(--navy); }
/* Keresési találatok — reszponzív finomítás */
.derma-search-results { width: 100%; }
.derma-search-result-title { overflow-wrap: anywhere; }
.derma-search-result-excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
/* WP lapozás a keresési oldalon */
.derma-search-results + .pagination,
.legal-wrap .pagination,
.legal-wrap .navigation.pagination { max-width: 860px; margin: 3rem auto 0; }
.legal-wrap .pagination .nav-links,
.legal-wrap .navigation.pagination .nav-links { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.legal-wrap .page-numbers,
.legal-wrap .page-numbers.dots {
    min-width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.75rem;
    border: 1px solid var(--border);
    color: var(--navy);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-decoration: none;
    transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.legal-wrap .page-numbers.current { background: var(--navy); border-color: var(--navy); color: var(--white); }
.legal-wrap a.page-numbers:hover,
.legal-wrap a.page-numbers:focus-visible { border-color: var(--navy); }

@media (max-width: 600px) {
    .legal-wrap { padding: 2.75rem 6% 3.5rem; }
    .legal-hero { padding: 2rem 6% 2.5rem; }
    .legal-hero h1 { max-width: 100%; font-size: clamp(1.9rem, 8vw, 2.6rem); }
    .derma-search-result { padding: 1.4rem 0; }
    .derma-search-result-title { font-size: 1.12rem; }
    .derma-search-result-excerpt { font-size: 0.86rem; line-height: 1.7; }
    .legal-wrap .page-numbers { min-width: 38px; height: 38px; font-size: 0.72rem; }
}
/* Kapcsolat oldal hero cím — kicsit visszafogottabb desktopon (~20%-kal kisebb) */
@media (min-width: 768px) {
    .contact-hero .editorial-hero-title { font-size: clamp(3.76rem, 6.56vw, 6.72rem); }
}
/* Az .editorial-text-en belüli címkék (Időpontfoglalás / Üzenetküldés) mérete
   egyezzen a többi editorial-tag-gal (mint a hero "KAPCSOLAT"), ne örököljék a 0.95rem-t. */
.editorial-text .editorial-tag { font-size: 0.7rem; letter-spacing: 0.4em; line-height: 1.5; }