:root {
    /* Apple-szerű, világos paletta */
    --primary: #0071e3;          /* Apple blue */
    --primary-soft: #e5f1ff;
    --primary-dark: #003a8c;

    --bg: #ffffff;               /* fő háttér */
    --bg-alt: #f5f5f7;           /* szekciók, kártyák */
    --card: #ffffff;

    --text: #1d1d1f;             /* fő szöveg */
    --muted: #6e6e73;            /* halvány szöveg */

    --border: #d2d2d7;           /* vékony határ */
    --accent: #ffd95a;
    --error: #ff4b5c;

    --radius-lg: 18px;
    --radius-md: 12px;

    --shadow-soft: 0 10px 30px rgba(0,0,0,0.06);
    --shadow-card: 0 10px 24px rgba(0,0,0,0.08);

    --transition-fast: 0.18s ease-out;
    --transition-med: 0.3s ease;
    --max-width: 1100px;
}

/* ===== Alap ===== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
}


/* ===== Globális háttér színátmenet ===== */

body {
    background: linear-gradient(
        135deg,
        #eafaff 0%,     /* nagyon világos kék */
        #c7f4ff 25%,    /* puha türkiz */
        #b0f2e9 50%,    /* zöldes-türkiz */
        #ffd9c0 100%    /* halvány barack */
    );
    background-attachment: fixed;
}




/* ===== Loading ===== */

#loadingScreen {
    position: fixed;
    inset: 0;
    background: #ffffff;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity .4s ease;
}
#loadingScreen.hidden {
    opacity: 0;
    pointer-events: none;
}
.loader-tiles {
    display: grid;
    grid-template-columns: repeat(2, 18px);
    grid-gap: 6px;
}
.loader-tiles div {
    width: 18px;
    height: 18px;
    background: var(--primary);
    border-radius: 4px;
    animation: tilePulse 0.9s infinite alternate;
}
.loader-tiles div:nth-child(2) { animation-delay: .15s; }
.loader-tiles div:nth-child(3) { animation-delay: .3s; }
.loader-tiles div:nth-child(4) { animation-delay: .45s; }

@keyframes tilePulse {
    from { transform: translateY(0) scale(1); opacity: 0.5; }
    to   { transform: translateY(-6px) scale(1.06); opacity: 1; }
}

/* ===== Header / nav ===== */

header {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .7rem 1.25rem;
    background: rgba(255,255,255,0.9);
    backdrop-filter: saturate(180%) blur(18px);
    border-bottom: 1px solid var(--border);
}

.logo {
    display: inline-flex;
    flex-direction: column;
    gap: 2px;
    padding: 4px 8px;
}
.logo span {
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: .03em;
}
.logo small {
    font-size: .7rem;
    color: var(--muted);
}

nav {
    display: flex;
    gap: 1.25rem;
    align-items: center;
}
/* ===== NAV V1 – Apple Minimal ===== */

nav a {
    color: var(--muted);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    padding: 10px 6px;
    position: relative;
    transition: color .2s ease, opacity .2s ease;
}

nav a:hover {
    color: var(--text);
}

nav a.active {
    color: var(--text);
    font-weight: 600;
}

/* aláhúzás */
nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -6px;
    height: 3px;
    width: 0;
    margin: auto;
    background: var(--primary);
    border-radius: 999px;
    transition: width .25s ease;
}

nav a.active::after,
nav a:hover::after {
    width: 100%;
}


.lang-switch {
    display: flex;
    gap: .35rem;
    margin-left: 1rem;
}
.lang-switch button {
    border: 1px solid var(--border);
    background: var(--bg-alt);
    color: var(--muted);
    padding: 4px 10px;
    border-radius: 999px;
    font-size: .75rem;
    cursor: pointer;
    transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}
.lang-switch button:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.hamburger {
    display: none;
    background: transparent;
    border: none;
    color: var(--text);
    font-size: 1.6rem;
    cursor: pointer;
}



/* Scroll progress bar */

#scrollProgressBar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 100%;
    transform-origin: left center;
    transform: scaleX(0);
    background: linear-gradient(90deg, var(--primary), var(--accent));
    z-index: 60;
}

/* ===== Layout ===== */

main {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 1.7rem 1.25rem 4rem;
}

.section {
    margin-top: 2.6rem;
}

.section-title {
    font-size: 1.9rem;
    margin-bottom: 1.25rem;
}

/* ===== Hero + mosaic ===== */

.hero {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2.2fr);
    gap: 2.4rem;
    align-items: center;
    margin-top: 1.6rem;
}
.hero-content h1 {
    font-size: 2.4rem;
    line-height: 1.15;
    margin-bottom: .6rem;
}
.hero-content p {
    color: var(--muted);
    max-width: 36rem;
    font-size: 1rem;
    margin-bottom: 1.4rem;
}

.hero-visual {
    min-height: 210px;
}

/* ÚJ: Hero mozaik a képekhez */

.hero-mosaic {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 14px;
    border-radius: 18px;
    background: var(--bg-alt);
    box-shadow: var(--shadow-soft);
}

.hero-mosaic img {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    object-fit: cover;
    border: 1px solid var(--border);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.hero-mosaic img:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-card);
}

/* ===== Cards (szolgáltatások, kontakt) ===== */

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.4rem;
}
.service-card,
.contact-card {
    background: var(--bg-alt);
    border-radius: var(--radius-md);
    padding: 1.3rem 1.3rem 1.15rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border);
    transition: transform var(--transition-med), box-shadow var(--transition-med), background var(--transition-med);
}
.service-card:hover,
.contact-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-card);
}
.service-card h3 {
    margin: 0 0 .4rem;
    font-size: 1.1rem;
}
.service-card p {
    margin: 0;
    color: var(--muted);
    font-size: .9rem;
}

/* tilt effekthez alap */

.tilt-card {
    will-change: transform;
    transform-style: preserve-3d;
    transition: transform .18s ease-out, box-shadow .18s ease-out;
}

/* scroll reveal */

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .5s ease, transform .5s ease;
}
.reveal-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Highlight bar ===== */

.highlight-bar {
    margin-top: 2.2rem;
}
.highlight-bar p {
    margin: 0;
    font-size: .9rem;
    padding: .85rem 1.2rem;
    border-radius: 999px;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    color: var(--muted);
}

/* ===== CTA ===== */

.cta {
    margin-top: 3rem;
}
.cta-inner {
    background: var(--bg-alt);
    border-radius: var(--radius-lg);
    padding: 1.8rem 1.7rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border);
}
.cta-inner h2 {
    margin: 0 0 .5rem;
}
.cta-inner p {
    margin: 0 0 1.1rem;
    color: var(--muted);
    max-width: 34rem;
}

/* ===== Buttons ===== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    padding: .6rem 1.4rem;
    border-radius: 999px;
    font-size: .95rem;
    border: none;
    cursor: pointer;
    font-weight: 500;
}
.btn.primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 10px 25px rgba(0,113,227,0.25);
}
.btn.primary:hover {
    background: #005bbf;
}
.btn.secondary {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
}
.btn.secondary:hover {
    background: rgba(0,113,227,0.05);
}

/* ===== Galéria ===== */

.gallery-section .section-title {
    margin-bottom: .6rem;
}
.gallery-section .gallery-intro {
    color: var(--muted);
    font-size: .9rem;
    max-width: 40rem;
    margin-bottom: 1.4rem;
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}
.gallery-item {
    overflow: hidden;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: var(--bg-alt);
    cursor: zoom-in;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform .4s ease, filter .4s ease;
}
.gallery-item:hover img {
    transform: scale(1.06);
}

/* Lightbox */

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 80;
}
.lightbox.show {
    display: flex;
}
.lightbox-inner {
    max-width: 85vw;
    max-height: 75vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.lightbox-inner img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-card);
}
.lightbox-close {
    position: absolute;
    top: -32px;
    right: -4px;
    background: transparent;
    border: none;
    color: var(--text);
    font-size: 2rem;
    cursor: pointer;
}

/* ===== Kapcsolat ===== */

.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
    gap: 1.5rem;
    align-items: flex-start;
}
.map-card {
    grid-column: 1 / -1;
}
.contact-card h2 {
    margin-top: 0;
}
.contact-card p {
    font-size: .9rem;
    color: var(--muted);
}
.contact-card strong {
    color: var(--text);
}

form label {
    display: block;
    font-size: .8rem;
    margin-bottom: 4px;
}
form input,
form textarea {
    width: 100%;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: #ffffff;
    color: var(--text);
    padding: .45rem .6rem;
    margin-bottom: .8rem;
    font-size: .9rem;
}
form input:focus,
form textarea:focus {
    outline: none;
    border-color: var(--primary);
}
#formMessage {
    margin-top: .5rem;
    font-size: .8rem;
}
#formMessage.success { color: #4caf50; }
#formMessage.error { color: var(--error); }

.map-card iframe {
    width: 100%;
    height: 230px;
    border: 0;
    border-radius: var(--radius-md);
    margin-bottom: .6rem;
}
.map-card p {
    color: var(--muted);
    font-size: .85rem;
}

/* ===== Scroll to top ===== */

#scrollToTop {
    position: fixed;
    right: 18px;
    bottom: 18px;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: none;
    background: rgba(0,113,227,0.9);
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
    box-shadow: 0 12px 25px rgba(0,0,0,0.25);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease, transform .25s ease;
}
#scrollToTop.visible {
    opacity: 1;
    pointer-events: auto;
}

/* ===== Footer ===== */

footer {
    border-top: 1px solid var(--border);
    padding: 1rem 1.25rem 1.4rem;
    font-size: .85rem;
    color: var(--muted);
    text-align: center;
}

/* ===== Responsive ===== */

@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
        gap: 1.8rem;
    }
    .hero-visual {
        order: -1;
    }
}

/* hero-mosaic mobilon 2 oszlop */
@media (max-width: 700px) {
    .hero-mosaic {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 780px) {
    nav {
        position: absolute;
        left: 0;
        right: 0;
        top: 56px;
        flex-direction: column;
        background: rgba(255,255,255,0.97);
        padding: .75rem 1.25rem 1rem;
        gap: .6rem;
        transform-origin: top;
        transform: scaleY(0);
        opacity: 0;
        pointer-events: none;
        transition: transform .2s ease-out, opacity .2s ease-out;
    }
    nav.open {
        transform: scaleY(1);
        opacity: 1;
        pointer-events: auto;
    }
    .lang-switch {
        margin-left: 0;
    }
    .hamburger {
        display: block;
    }
    .contact-layout {
        grid-template-columns: 1fr;
    }
}


.hero-big-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;   
    object-fit: cover;    
    border: none;         
    box-shadow: none;      
}





.logo {
    display: inline-flex;
    align-items: center;
    flex-direction: row;   /* fontos! vízszintes sor */
    gap: 10px;
    padding: 4px 8px;
}

/* logó kép */
.logo-img {
    width: 72px;
    height: 72px;
    object-fit: contain;
}

/* szöveg a logó mellett */
.logo-text span {
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: .03em;
    display: block;
}

.logo-text small {
    font-size: 0.9rem;
    color: var(--muted);
    display: block;
    margin-top: -2px;
}


/* Csak a felső menü betűtípusának módosítása */
header nav a {
    font-family: 'Poppins', sans-serif !important;
    font-weight: 500;
    letter-spacing: 0.3px;
}

