/* ========================================= */
/* Globális Alapbeállítások                  */
/* ========================================= */
html {
    box-sizing: border-box;
    scroll-behavior: smooth;
}
*, *:before, *:after {
    box-sizing: inherit;
}

/* ========================================= */
/* Body                                    */
/* ========================================= */
body {
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    font-style: normal;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #cf9c9c; /* Megtartva a te színed */
    color: #444;               /* Megtartva a te színed */
    font-synthesis: none;
    overflow-x: hidden;         /* Fontos a 100vw-s elemekhez */
}

/* ========================================= */
/* Konténer                                */
/* ========================================= */
.container {
    max-width: 960px;
    margin: 20px auto;
    padding: 25px;
    background-color: #ffffffad; /* Megtartva a te áttetsző színed */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border-radius: 5px;
}

/* ========================================= */
/* Navigáció                               */
/* ========================================= */
nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    background-color: black;
    text-align: center;
}

nav ul li {
    display: inline;
}

nav ul li a {
    display: inline-block;
    padding: 15px 25px;
    color: white;
    text-decoration: none;
    font-weight: 700;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease; /* Box-shadow transition is hozzáadva */
}

/* Navigáció Hover és Aktív állapot */
nav ul li a:hover,
nav ul li a.active {
    background-color: #9c3d20; /* Megtartva a te hover/aktív színed */
    color: white;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transform: translateY(-2px);
}

/* ========================================= */
/* Címsorok és Linkek                       */
/* ========================================= */
/* Wrapper az H1 középre igazításához (HTML-ben kell használni!) */
.h1-wrapper {
    text-align: center;
    margin-top: 1.5em;   /* H1 fölötti térköz */
    margin-bottom: 1.2em;/* H1 alatti térköz */
}

/* Általános címsor stílusok */
h1, h2, h3 {
    font-weight: 700;
    color: #1a1a1a; /* Alap sötét szín a címsoroknak */
    margin-top: 1.2em;
    margin-bottom: 0.6em;
}

/* Specifikus H1 stílus a kiemelt háttérrel */
h1 {
    font-size: 2.2em;
    display: inline-block; /* Csak a tartalom + padding szélességét veszi fel */
    background-color: #1a1a1a; /* Sötétszürke/fekete háttér */
    color: white;          /* Fehér szöveg */
    padding: 12px 30px;
    border-radius: 50px;   /* Erős lekerekítés (kapszula forma) */
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    margin-top: 0;    /* Margókat a .h1-wrapper kezeli */
    margin-bottom: 0; /* Margókat a .h1-wrapper kezeli */
}

h1:hover {
    background-color: #333;
    transform: scale(1.02);
    box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}

/* Alcímek (h2) stílusa */
h2 {
    font-size: 1.6em;
    color: #DC143C; /* Piros H2 címsorok */
    border-bottom: 2px solid #DC143C; /* Piros vonal */
    padding-bottom: 8px;
    margin-bottom: 25px;
    display: inline-block; /* Hogy a border-bottom csak a szövegig érjen */
}

/* Linkek */
a {
    color: #DC143C;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #a00f2c; /* Sötétebb piros */
    text-decoration: underline;
}

/* ========================================= */
/* Új Főoldal - Hero Szekció                 */
/* ========================================= */
.hero-section {
    height: 90vh;
    background-image: url('../images/homepage.jpg');
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 20px;
    max-width: 800px;
    opacity: 0;
    transform: translateY(40px);
    animation: fadeInSlideUp 1s ease-out 0.5s forwards;
}

.motivational-quote {
    font-size: 2.2em;
    font-weight: 300; /* Light vastagság */
    line-height: 1.4;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
    border: none;
    padding: 0;
}

.motivational-quote p {
    margin-bottom: 0.5em;
}

.motivational-quote footer {
    font-size: 0.7em;
    font-style: normal;
    display: block;
    margin-top: 10px;
    opacity: 0.9;
}

.intro-summary {
    padding: 40px 0;
    text-align: center;
    background-color: #fff;
}
.intro-summary .container h2 {
    color: #DC143C;
    border-bottom: none; /* Itt nem kell a vonal */
    display: block; /* Hogy a text-align: center működjön a szülőben */
}

@keyframes fadeInSlideUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ========================================= */
/* Szolgáltatások Oldal - Videó Fejléc     */
/* ========================================= */
.video-header-section {
    width: 100%;
    max-width: 800px; /* Korlátozzuk asztali nézetben, hogy ne legyen "hatalmas" */
    margin: 0 auto 30px auto; /* Középre igazítás és alsó margó */
    line-height: 0;
    border-radius: 4px;
    overflow: hidden; /* Biztosítja, hogy a belső videó kövesse a border-radius-t */
}

.video-header-section video {
    width: 100%;
    height: auto;
    display: block;
}

/* ========================================= */
/* Média Konténer (Szolgáltatások oldalon)  */
/* ========================================= */
.media-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    align-items: center;
    margin-top: 30px;
    padding: 20px;
    border: 1px solid #eee;
    background-color: #fdfdfd;
    border-radius: 4px;
}

.media-container > div {
    flex: 1;
    min-width: 280px;
}

.media-container img {
    max-width: 100%;
    height: auto;
    display: block;
    margin-left: auto;
    margin-right: auto;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.media-container img:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.media-container video { /* Ez a KISEBB videó a Szolgáltatások oldalon */
    max-width: 100%;
    height: auto;
    display: block;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* ========================================= */
/* Listák                                  */
/* ========================================= */
ul:not(nav ul), ol {
    margin-left: 0;
    padding-left: 20px;
}

ul:not(nav ul) li {
    margin-bottom: 10px;
}

.contact-list {
    list-style: none;
    padding-left: 0;
    margin-top: 25px;
}
.contact-list li {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    font-size: 1.1em;
}
.contact-list .icon {
    font-size: 1.4em;
    margin-right: 15px;
    width: 30px;
    text-align: center;
    color: #DC143C;
    transition: transform 0.2s ease, color 0.2s ease;
}
.contact-list li:hover .icon {
    transform: scale(1.2);
}

.features-list {
    list-style: none;
    padding-left: 0;
    margin-top: 20px;
}
.features-list li {
    position: relative;
    padding-left: 35px;
    margin-bottom: 15px;
    font-size: 1.05em;
    line-height: 1.4;
}
.features-list li::before {
    content: "✅";
    position: absolute;
    left: 0;
    top: -2px; /* Ezt finomhangolhatod a betűtípushoz */
    font-size: 1.2em;
}

/* ========================================= */
/* Gombok                                  */
/* ========================================= */
button, input[type="submit"], .cta-button {
     margin-top: 20px;
     padding: 10px 20px;
     background-color: #DC143C;
     color: white;
     border: none;
     border-radius: 4px;
     cursor: pointer;
     font-size: 1em;
     font-weight: bold;
     text-decoration: none;
     display: inline-block;
     transition: background-color 0.3s ease, transform 0.2s ease;
 }

 button:hover, input[type="submit"]:hover, .cta-button:hover {
     background-color: #a00f2c; /* Sötétebb piros */
     transform: scale(1.05);
 }

/* ========================================= */
/* Reszponzív Beállítások                   */
/* ========================================= */

@media (max-width: 768px) {
    /* Általános reszponzív beállítások */
    h1 { font-size: 1.8em; padding: 10px 20px; }
    .h1-wrapper { margin-top: 1.2em; margin-bottom: 1em; } /* H1 wrapper margók mobilon */
    h2 { font-size: 1.4em; }
    .container { padding: 15px; margin: 10px auto; }
    nav ul li a { padding: 12px 15px; }

    /* Hero szekció mobilon */
    .hero-section { height: 80vh; }
    .motivational-quote { font-size: 1.8em; }
    .intro-summary .container h2 { font-size: 1.5em; }
    .cta-button { padding: 12px 25px; font-size: 1.1em; }

     /* Szolgáltatások oldal videó fejléc mobilon teljes szélességű (negatív margóval) */
     .video-header-section {
        /* A .container paddingja ebben a nézetben 15px (ellenőrizd a CSS-edben!) */
        margin-left: -15px;  /* Pontosan annyi, mint a .container bal oldali paddingja */
        margin-right: -15px; /* Pontosan annyi, mint a .container jobb oldali paddingja */
        /* A szélesség 100% lesz a .container-hez képest, plusz a két oldali padding */
        width: calc(100% + 30px); /* 100% + (2 * 15px) */

        /* Korábbi 100vw-s pozícionáló és transzformációs szabályok törlése/felülírása */
        position: static; /* Vagy az alapértelmezett, ha nem volt más */
        left: auto;
        transform: none;
        max-width: none;      /* Felülírja az asztali max-width-et */
        border-radius: 0;     /* Mobilon ne legyen lekerekítés */
        /* box-sizing: border-box; már örökli a globális szabályból */
        /* overflow: visible; erre itt most nincs szükség */
    }

    .video-header-section video {
         border-radius: 0;
         width: 100%; /* Biztosítja, hogy a videó kitöltse a most már szélesebb .video-header-section-t */
         height: auto;
         display: block;
    }

    /* Média Konténer (Szolgáltatások oldalon) mobilon */
    .media-container {
        flex-direction: column;
        align-items: stretch;
        padding: 10px 0;
        border: none;
        background-color: transparent;
    }
     .media-container > div {
        min-width: 100%; /* Teljes szélesség a flex itemeknek */
        width: 100%;
        margin-bottom: 20px;
        flex-basis: auto;
     }
     .media-container > div:last-child {
         margin-bottom: 0;
     }
     .media-container img {
         margin-left: auto;
         margin-right: auto;
     }
     .media-container video {
         width: 100%;
     }
}

@media (max-width: 480px) {
    body {
        font-size: 15px;
    }
    h1 { font-size: 1.6em; padding: 8px 15px; }
    .h1-wrapper { margin-top: 1em; margin-bottom: 0.8em; }
    h2 { font-size: 1.3em; }

    nav ul li {
        display: block;
        text-align: center;
    }
    nav ul li a {
        display: block;
        width: 100%;
        box-sizing: border-box; /* Hogy a padding ne adjon hozzá a szélességhez */
        border-bottom: 1px solid #444;
    }
    nav ul li:last-child a {
        border-bottom: none;
    }

    .container {
        padding: 10px;
    }
    .motivational-quote { font-size: 1.5em; } /* Hero idézet még kisebb */
}

/* ========================================= */
/* Görgetési Effekt                          */
/* ========================================= */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, transform;
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================= */
/* "Rólam" Oldal Specifikus Stílusok       */
/* ========================================= */
.container section {
    margin-bottom: 45px;
    padding-top: 25px;
    border-top: 1px solid #eee;
}
.container section:first-of-type {
    border-top: none;
    padding-top: 0;
}
/* Specifikus H2 a Rólam oldalon (a .container section h2 pontosabb, mint a sima h2 itt) */
.container section h2 {
    color: #DC143C;
    border-bottom: 2px solid #DC143C;
    display: inline-block;
    padding-bottom: 6px;
    margin-bottom: 25px;
}
.container section p {
    margin-bottom: 1.2em;
}
.container section blockquote {
    border-left: 5px solid #DC143C;
    padding: 15px 20px;
    margin: 25px 0 25px 10px;
    background-color: #f9f9f9;
    font-style: italic;
    color: #333;
    border-radius: 4px;
}
.instagram-link {
    margin-top: 30px;
    padding: 15px;
    background-color: #f1f1f1;
    border: 1px solid #e0e0e0;
    text-align: center;
    border-radius: 4px;
}
.instagram-link strong {
    display: block;
    margin-bottom: 5px;
    color: #1a1a1a;
}

/* ========================================= */
/* Lábléc (Footer) Stílusok                 */
/* ========================================= */
footer {
    background-color: #222222;
    color: #cccccc;
    text-align: center;
    padding: 30px 15px;
    margin-top: 50px;
    font-size: 0.9em;
    border-top: 3px solid #DC143C;
    width: 100%; /* Biztosítjuk, hogy teljes szélességű legyen */
}

footer p {
    margin: 0;
}