@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@400;500;700&display=swap');

:root {
    --primary: #003366;        /* Prémium sötétkék */
    --accent: #ff4500;         /* Élénk narancssárga kiemelésekhez */
    --cta: #f97316;            /* Kattintásösztönző narancs gomb */
    --cta-hover: #ea580c;      /* Sötétebb narancs hover állapothoz */
    --bg-light: #f8f9fa;       /* Világos szürke hátterekhez, kártyákhoz */
    --text-dark: #1e293b;      /* Olvasható, sötét szövegszín */
    --text-muted: #64748b;     /* Másodlagos szövegszín */
}

body,
html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-size: 100%;
    font-family: 'Raleway', sans-serif;
    font-weight: 400;
    color: var(--text-dark);
    background-color: #ffffff;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Navigáció */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    border-bottom: 3px solid var(--accent); /* Narancssárga alsó elválasztó vonal */
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 33, 102, 0.05);
}

nav ul {
    list-style-type: none;
    display: flex;
    align-items: center;
}

nav a {
    text-decoration: none;
    color: var(--primary); /* Alapértelmezetten elegáns mélykék */
    font-weight: 700;
    font-size: 1.1rem;
    padding: 0.5rem 0;
    transition: color 0.2s ease, border-color 0.2s ease;
    border-bottom: 2px solid transparent;
}

/* Hover (rámutatási) állapot a menüpontokon */
nav a:hover {
    color: var(--accent); /* Finom átmenet narancssárgára */
    border-bottom: 2px solid var(--accent);
}

nav li:not(:last-child)>a {
    margin-right: 2.5rem;
}

nav #hamburger {
    display: none;
}

/* Hamburger ikon színe, ha SVG-t vagy szöveget használsz */
nav #hamburger a {
    color: var(--primary);
    border: none;
}
nav #hamburger a:hover {
    color: var(--accent);
}

nav #mobileMenu {
    display: none;
}
/* Főoldali Hero szekció */
#mainHome {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#mainHome>div {
    padding: 2.5rem;
    width: 100%;
    max-width: 750px;
    margin: 4rem auto 2rem auto;
    background-color: var(--bg-light);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
}

#mainHome h1 {
    font-size: 3.5rem;
    color: var(--primary);
    font-weight: 700;
}

#mainHome h2 {
    margin-top: 0.5rem;
    color: var(--accent);
    font-size: 1.8rem;
    font-weight: 500;
}

/* Fő tartalmi elemek */
main {
    min-height: calc(100vh - 56px - 83px);
    padding: 4rem 0;
}

main>div {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

main h1 {
    margin-bottom: 1.5rem;
    color: var(--primary);
}

main h2 {
    color: var(--primary);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

main h3 {
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

main h4 {
    margin-top: 2rem;
    margin-bottom: 0.7rem;
    color: var(--primary);
}

main ul {
    list-style: none;
    padding-left: 1.5rem;
}

main ul li {
    margin-bottom: 0.8rem;
    line-height: 1.7;
    position: relative;
}

main>div>p {
    margin-bottom: 1.2rem;
    line-height: 1.8;
}

/* Szolgáltatások / Kártyák */
#servicesMain section {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

#servicesWrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.servicesCard,
.servicesCard2 {
    display: flex;
    width: 240px;
    height: 240px;
    padding: 1.5rem;
    
    /* MEGOLDÁS 1: Erőteljes sötétkék háttér, ami azonnal elüt a fehér oldaltól */
    background: var(--primary); 
    border-radius: 12px;
    
    /* MEGOLDÁS 2: Nagyon markáns, mély, sötét árnyék */
    box-shadow: 0 12px 30px rgba(0, 15, 40, 0.4); 
    
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.3s ease, background-color 0.2s ease;
}

/* Interaktív állapot: ha az egérrel fölé viszik (Hover) */
.servicesCard:hover,
.servicesCard2:hover {
    transform: translateY(-8px); /* Látványos megemelkedés */
    
    /* Még sötétebb, drámaibb árnyék felemelkedéskor */
    box-shadow: 0 20px 40px rgba(0, 15, 40, 0.6); 
    
    /* Hoverkor finoman kivilágosodik a sötétkék, hogy reagáljon a mozdulatra */
    background-color: #004080; 
}

.servicesCard {
    flex-direction: column;
    justify-content: space-between;
}

.servicesCard2 {
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* Szövegek áthangolása fehérre a tökéletes olvashatóságért */
.servicesCard h3,
.servicesCard2 h3 {
    line-height: 1.4;
    color: #ffffff; /* Hófehér címek a sötét háttéren */
    font-size: 1.25rem;
    font-weight: 700;
}

/* Ha van bekezdés vagy leírás a kártyán belül, az is legyen tiszta, jól olvasható */
.servicesCard p,
.servicesCard2 p {
    color: #cbd5e1; /* Kellemes, világosszürke olvasható szöveg */
    padding: 0;
    margin: 0;
}

/* Átalakított CTA Gomb */
.servicesBtn {
    display: inline-block;
    padding: 12px 24px;
    font-weight: bold;
    letter-spacing: 0.5px;
    color: white;
    background: var(--cta);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: background 0.3s ease;
}

.servicesBtn:hover {
    background: var(--cta-hover);
}

#placesMain div div p {
    margin-bottom: 1rem;
}

/* Rólam szekció */
#rolamMain {
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 4rem 1.5rem 4rem 1.5rem;
}

#rolamMain div {
    margin: 0;
}

#rolamMain div:first-child {
    margin-right: 3rem;
    flex: 1;
    line-height: 1.8;
}

#rolamMain div:last-child {
    width: 280px;
    flex-shrink: 0;
}

.bold {
    font-weight: bold;
    color: var(--primary);
}

#felveteliMain ul {
    list-style-type: disc;
    margin-left: 2rem;
}

/* Eredmények kiemelés */
.results {
    text-align: center;
    padding: 1rem;
    max-width: 24rem;
    background: var(--primary);
    color: white;
    border-radius: 8px;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(0, 33, 102, 0.2);
}

.results-remark {
    padding-left: 1rem;
    font-size: 90%;
    font-style: italic;
    color: var(--text-muted);
}

/* Lebegő Hmmm Widget */
#hmmm {
    position: fixed;
    bottom: 5vh;
    right: 5vw;
    text-align: center;
    z-index: 99;
}

/* Lábléc */
footer {
    padding: 2.5rem;
    text-align: center;
    letter-spacing: 1px;
    color: #94a3b8;
    background: var(--primary);
    font-size: 0.95rem;
}

/* Reszponzív töréspontok */
@media screen and (max-width: 800px) {
    nav {
        padding: 0;
        flex-direction: column;
        border-bottom: 3px solid var(--accent);
    }

    nav>div:first-child {
        display: none;
    }

    nav>div:nth-child(2) {
        display: none;
    }

    /* A menü megnyitásáért felelős gikszer sáv mobilon */
    nav #hamburger {
        padding: 1rem 1.5rem;
        display: flex;
        justify-content: flex-end;
        width: 100%;
        background-color: #ffffff;
    }

    /* Mobil legördülő menü stílusa */
    #mobileMenu {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        background: var(--primary); /* Harmonizáló mélykék háttér */
        color: #ffffff;
        z-index: 999;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
    }

    /* Bezárás gomb a mobilmenüben */
    #mobileMenu>div {
        padding: 1rem 1.5rem;
        display: flex;
        justify-content: flex-end;
    }
    
    #mobileMenu>div>a {
        color: #ffffff;
        text-decoration: none;
        font-weight: bold;
        font-size: 1.2rem;
    }
    
    #mobileMenu>div>a:hover {
        color: var(--accent);
    }

    #mobileMenu>ul {
        display: flex;
        flex-direction: column;
        list-style: none;
        padding: 0;
    }

    /* Mobil linkek */
    #mobileMenu a {
        display: block;
        padding: 1.2rem 2rem;
        color: #ffffff; /* Kontrasztos fehér szöveg a mélykék háttéren */
        font-weight: 500;
        font-size: 1.1rem;
        text-decoration: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1); /* Finom elválasztó sávok */
        transition: background 0.2s ease, color 0.2s ease;
    }

    /* Aktív vagy megérintett állapot mobilon */
    #mobileMenu a:hover, 
    #mobileMenu a:active {
        background: rgba(255, 255, 255, 0.05);
        color: var(--accent); /* Narancssárga kiemelés kijelöléskor */
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    #mobileMenu>ul>li:last-child>a {
        border-bottom: none;
    }

    #mobileMenu li:not(:last-child)>a {
        margin-right: 0rem;
    }

    #rolamMain {
        flex-direction: column;
        width: 95%;
        padding-top: 1rem;
    }

    #rolamMain div:first-child {
        margin-right: 0;
        margin-bottom: 2rem;
    }

    #rolamMain div:last-child {
        width: 100%;
        text-align: center;
    }

    #hmmm {
        bottom: 5vh;
    }

    #hmmm img {
        width: 50px;
    }

    #hmmm p {
        font-size: 75%;
    }
}