/* --- Artisteer Joomla 2.5 Hű Másolat CSS --- */

/* Betűtípusok betöltése a helyi szerverről */
@font-face {
    font-family: 'myfont';
    src: url('font/Oswald-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'myfont2';
    src: url('font/Courgette-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

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

body {
    font-family: Arial, Helvetica, sans-serif; /* Kenyérszöveg alapból Arial */
    background: #f1f1f1 url("images/bg1.jpg") no-repeat scroll center 0px;
    color: #333333;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    padding: 0;
}

/* Fő keret (Art-Sheet) - Átlátszó a fejléc miatt */
.page-wrapper {
    width: 1200px;
    background-color: transparent;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* --- Fejléc és navigáció egy sávban (Art-Header) --- */
.site-header {
    margin-top: 40px; /* Nem a tetején kezdődik, felül látszik a háttérkép égboltja! */
    height: 140px;
    background-color: rgba(51, 110, 168, 0.6); /* Eredeti kék áttetsző réteg */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    position: relative;
    z-index: 100;
}

.header-content {
    color: #ffffff;
    position: relative;
    padding-right: 40px;
}

.header-content::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    width: 1px;
    height: 70px; /* A vonal magassága */
    background-color: rgba(255, 255, 255, 0.3); /* Finom fehér függőleges vonal */
}

.header-title {
    font-size: 28px;
    font-weight: normal;
    font-family: myfont, Arial, Helvetica, sans-serif;
    margin-bottom: 2px;
}

.header-subtitle {
    font-size: 16px;
    font-weight: bold;
}

/* --- Navigációs Menü (Art-Menu) --- */
.main-nav {
    background: transparent;
}

.menu-toggle,
.nav-mobile-info {
    display: none;
}

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

.nav-item {
    position: relative;
}

.nav-item a {
    display: block;
    padding: 15px 20px;
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
    font-family: myfont, Arial, Helvetica, sans-serif;
    text-align: center;
    font-weight: normal;
    text-transform: uppercase;
    background: transparent !important; /* Nem gomb, nincs külön háttérszín! */
    transition: text-shadow 0.2s;
}

.nav-item a:hover, 
.nav-item.active > a {
    color: #ffffff;
    background: transparent !important;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.6); /* Enyhe izzás hover/aktív állapotban */
}

/* Legördülő menü (Dropdown) */
.nav-item.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    display: block;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #ffffff;
    min-width: 240px;
    list-style: none;
    border: 1px solid #cccccc;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    display: none;
    z-index: 150;
}

.dropdown-menu li a {
    color: #767676 !important;
    background-color: #ffffff !important;
    padding: 10px 15px;
    font-size: 14px;
    text-align: left;
    text-transform: uppercase;
    border-bottom: 1px solid #eeeeee;
    transition: background-color 0.2s, color 0.2s;
}

.dropdown-menu li:last-child a {
    border-bottom: none;
}

.dropdown-menu li a:hover {
    background-color: #3d74ac !important;
    color: #ffffff !important;
}

.dropdown-toggle i {
    font-size: 0.8rem;
    margin-left: 5px;
}

/* --- Képslider Stílusok --- */
.slider-section {
    position: relative;
    height: 400px;
    background-color: #000000;
    overflow: hidden;
    /* Egybefüggő lap árnyék */
    box-shadow: 5px 0 10px rgba(0, 0, 0, 0.15), -5px 0 10px rgba(0, 0, 0, 0.15);
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    z-index: 1;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Slider navigációs gombok (diszkrét nyilak) */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(0, 0, 0, 0.25);
    border: none;
    color: #ffffff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.25s ease, opacity 0.25s ease;
    opacity: 0.55;
}

.slider-btn:hover {
    background: rgba(0, 0, 0, 0.5);
    opacity: 1;
}

.slider-btn-prev {
    left: 15px;
}

.slider-btn-next {
    right: 15px;
}

/* --- 3 Kiemelt Csempe (Art-Block) --- */
.featured-services {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 20px;
    background-color: #ffffff;
    /* Egybefüggő lap árnyék */
    box-shadow: 5px 0 10px rgba(0, 0, 0, 0.15), -5px 0 10px rgba(0, 0, 0, 0.15);
}

.service-box {
    background-color: #f1f1f1;
    border: 1px solid #dddddd;
    border-radius: 0px; /* Teljesen szögletes Artisteer stílus */
    display: flex;
    flex-direction: column;
}

.box-top-line {
    height: 10px;
    background-color: #3d74ac;
}

.box-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.box-content h2 {
    font-family: myfont, Arial, Helvetica, sans-serif;
    font-size: 20px;
    font-weight: normal;
    color: #333333;
    margin-bottom: 15px;
}

.box-image-link {
    display: block;
    margin-bottom: 15px;
    text-align: center;
}

.box-image-link img {
    display: inline-block;
    max-width: 100%;
    height: auto;
    border: none;
}

.box-content p {
    font-size: 15px;
    line-height: 1.6;
    color: #333333;
}

.box-footer {
    padding: 0 20px 20px 20px;
    text-align: left;
}

/* Eredeti Artisteer szögletes gomb */
.art-button {
    display: inline-block;
    padding: 6px 15px;
    background-color: #3d74ac;
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    border-radius: 0px;
    transition: background-color 0.2s;
    border: none;
    cursor: pointer;
}

.art-button:hover {
    background-color: #29527a;
}

/* --- Fő tartalom rész (Art-Layout) --- */
.main-content {
    padding: 20px 40px 40px 40px;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    gap: 40px;
    /* Egybefüggő lap árnyék */
    box-shadow: 5px 0 10px rgba(0, 0, 0, 0.15), -5px 0 10px rgba(0, 0, 0, 0.15);
}

.post-article {
    width: 100%;
}

.article-title {
    font-family: myfont, Arial, Helvetica, sans-serif;
    font-size: 24px;
    color: #333333;
    font-weight: normal;
    margin-bottom: 10px;
}

/* Átmenetes kék elválasztó vonal */
.article-divider {
    height: 5px;
    background: #3D74AC;
    background-image: linear-gradient(to right, #ffffff, #3D74AC, #ffffff);
    margin-bottom: 20px;
}

.article-body h2 {
    font-family: myfont, Arial, Helvetica, sans-serif;
    font-size: 18px;
    color: #333333;
    margin-bottom: 15px;
    font-weight: bold;
}

.article-body p {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
    color: #333333;
}

/* Phoca Gallery Másolat (4 kép egy sorban) */
.gallery-wrapper {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin: 20px 0;
    width: 100%;
}

.gallery-item {
    position: relative;
    width: calc(25% - 12px); /* 4 kép pontosan egy sorban */
    border: 1px solid #ffffff;
    background: #ffffff;
    padding: 5px;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.15);
    border-radius: 0px;
    transition: all 0.2s;
}

.gallery-item:hover {
    border-color: #3d74ac;
}

.gallery-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
}

/* Zoom overlay */
.gallery-zoom-overlay {
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    background-color: rgba(61, 116, 172, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    color: #ffffff;
    font-size: 1.5rem;
    opacity: 0;
    transition: opacity 0.2s;
}

.gallery-item:hover .gallery-zoom-overlay {
    opacity: 1;
}

/* --- Lábléc (Art-Footer) - Fluid hátérrel --- */
.site-footer {
    background-color: #2e5b88; /* A screenshot kékje */
    width: 100%;
    padding: 40px 0;
    color: #ffffff;
    clear: both;
}

.footer-inner {
    width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    text-align: center;
}

.footer-nav {
    margin-bottom: 60px; /* Nagyobb üres tér az almenü és elérhetőségek között */
    font-size: 14px;
}

.footer-nav a {
    font-family: myfont, Arial, Helvetica, sans-serif;
    color: #ffffff;
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.2s;
}

.footer-nav a:hover {
    color: #e4e7eb;
    text-decoration: underline;
}

.footer-copyright {
    font-size: 14px;
    color: #ffffff;
    font-weight: normal;
}

/* --- Lightbox Overlay --- */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 1000;
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.lightbox-content {
    max-width: 85%;
    max-height: 80%;
    border: 4px solid #ffffff;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.6);
    animation: zoom 0.2s ease-out;
}

@keyframes zoom {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #ffffff;
    font-size: 3rem;
    font-weight: bold;
    cursor: pointer;
}

.lightbox-close:hover {
    color: #3d74ac;
}

#lightbox-caption {
    margin-top: 15px;
    color: #ffffff;
    font-size: 1.1rem;
}

/* --- Egyedi Lista stílusok (Joomla bekezdések csinosítása) --- */
.article-body ul {
    list-style: none;
    margin-left: 5px;
    margin-bottom: 20px;
}

.article-body li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    font-size: 15px;
    line-height: 1.6;
    color: #333333;
}

.article-body li::before {
    content: "\f00c"; /* FontAwesome check (pipa) */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 2px;
    color: #3d74ac; /* Kék szín */
    font-size: 14px;
}

/* --- Elérhetőségek és Modern Űrlap Stílusok --- */
.contact-container {
    display: flex;
    gap: 40px;
    margin: 20px 0;
}

.contact-info-block {
    flex: 1;
    min-width: 300px;
}

.contact-form-block {
    flex: 1.5;
    min-width: 350px;
}

.contact-info-block h2,
.contact-form-block h2 {
    font-family: myfont, Arial, Helvetica, sans-serif;
    font-size: 22px;
    font-weight: normal;
    color: #333333;
    margin-bottom: 20px;
    border-bottom: 2px solid #3d74ac;
    padding-bottom: 8px;
}

/* Info Kártya */
.info-card {
    background-color: #f9f9f9;
    border: 1px solid #dddddd;
    padding: 30px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.05);
}

.info-card h3 {
    font-family: myfont, Arial, Helvetica, sans-serif;
    font-size: 18px;
    font-weight: normal;
    color: #3d74ac;
    margin-bottom: 20px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 15px;
    line-height: 1.6;
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-item i {
    color: #3d74ac;
    font-size: 18px;
    margin-top: 3px;
    width: 20px;
    text-align: center;
}

.info-item a {
    color: #333333;
    text-decoration: none;
    transition: color 0.2s;
}

.info-item a:hover {
    color: #3d74ac;
}

/* Modern Form */
.modern-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 15px;
    font-weight: bold;
    color: #333333;
}

.form-group label .required {
    color: #e53e3e;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper i {
    position: absolute;
    left: 15px;
    color: #a0aec0;
    font-size: 16px;
    transition: color 0.3s;
}

.input-wrapper input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: 1px solid #cccccc;
    font-size: 15px;
    font-family: Arial, Helvetica, sans-serif;
    color: #333333;
    background-color: #ffffff;
    transition: all 0.3s;
}

.input-wrapper textarea {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: 1px solid #cccccc;
    font-size: 15px;
    font-family: Arial, Helvetica, sans-serif;
    color: #333333;
    background-color: #ffffff;
    resize: vertical;
    transition: all 0.3s;
}

.textarea-wrapper i {
    top: 15px;
}

/* Focus állapotok */
.input-wrapper input:focus,
.input-wrapper textarea:focus {
    border-color: #3d74ac;
    outline: none;
    box-shadow: 0 0 5px rgba(61, 116, 172, 0.2);
}

.input-wrapper input:focus + i,
.input-wrapper input:focus ~ i,
.input-wrapper textarea:focus ~ i {
    color: #3d74ac;
}

/* Checkbox csoport */
.checkbox-group {
    flex-direction: row;
    align-items: center;
    gap: 10px;
    margin-top: 5px;
}

.checkbox-group input {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.checkbox-group label {
    font-size: 14px;
    font-weight: normal;
    cursor: pointer;
}

/* Captcha csoport */
.captcha-group {
    margin: 10px 0;
}

/* Submit gomb */
.submit-btn {
    align-self: flex-start;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* --- Iframe Modal (Szabályzat popup elrendezés) --- */
body.in-iframe {
    background: #ffffff !important;
}

body.in-iframe .site-header,
body.in-iframe .site-footer {
    display: none !important;
}

body.in-iframe .page-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    box-shadow: none !important;
    margin: 0 !important;
    padding: 10px !important;
    background: #ffffff !important;
}

body.in-iframe .main-content {
    box-shadow: none !important;
    padding: 10px !important;
}

/* --- Mobil Reszponzivitás --- */
@media (max-width: 1200px) {
    .page-wrapper, .footer-inner {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .contact-container {
        flex-direction: column;
        gap: 30px;
    }
    
    .submit-btn {
        width: 100%;
        justify-content: center;
    }

    .site-header {
        height: auto;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 15px 20px;
        margin-top: 0;
        position: relative;
    }
    
    .header-content::after {
        display: none !important; /* Elválasztó vonal eltüntetése mobilon */
    }

    /* Hamburger gomb megvalósítása */
    .menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 20px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 1001;
    }

    .hamburger-bar {
        width: 100%;
        height: 3px;
        background-color: #ffffff;
        transition: all 0.3s ease;
        transform-origin: left center;
    }

    /* Hamburger animáció X formára */
    .menu-toggle.active {
        position: fixed;
        top: 25px;
        right: 20px;
        z-index: 1002;
    }

    .menu-toggle.active .hamburger-bar:nth-child(1) {
        transform: rotate(45deg);
        position: relative;
        top: -1px;
        left: 2px;
    }

    .menu-toggle.active .hamburger-bar:nth-child(2) {
        width: 0%;
        opacity: 0;
    }

    .menu-toggle.active .hamburger-bar:nth-child(3) {
        transform: rotate(-45deg);
        position: relative;
        top: 1px;
        left: 2px;
    }

    /* Jobbról beúszó navigáció (Side Drawer - oldal kétharmadáig) */
    .nav-list {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: -70vw;
        width: 70vw;
        height: 100vh;
        background-color: #3d74ac; /* Sötétkék háttér mobilon */
        z-index: 1000;
        padding: 70px 0 20px 0;
        box-shadow: -5px 0 25px rgba(0,0,0,0.25);
        transition: right 0.3s ease;
        overflow-y: auto;
    }

    .nav-list.active {
        right: 0;
    }

    .nav-item {
        width: 100%;
        margin: 0;
    }

    .nav-item a {
        display: block;
        padding: 14px 25px;
        color: #ffffff;
        font-size: 15px;
        border-bottom: 1px solid rgba(255,255,255,0.05);
        width: 100%;
        text-align: left;
    }
    
    .nav-item:last-child a {
        border-bottom: none;
    }

    /* Dropdown menü mobilon (alapból rejtve, sötétkékes árnyalattal) */
    .nav-item.dropdown:hover .dropdown-menu {
        display: none;
    }

    .dropdown-menu {
        position: static;
        display: none !important;
        width: 100%;
        opacity: 1;
        visibility: visible;
        box-shadow: none !important;
        background-color: transparent !important; /* Teljesen átlátszó, megegyezik a menü kékjével */
        padding-left: 20px;
        border-radius: 0;
        border: none !important; /* Eltávolítjuk a fehér/szürke keretet */
    }
    
    .dropdown-menu.active {
        display: block !important;
    }
    
    .dropdown-menu li a,
    .dropdown-menu a {
        padding: 10px 25px !important;
        font-size: 14px !important;
        color: rgba(255,255,255,0.85) !important;
        border: none !important; /* Minden szegély eltávolítása */
        border-bottom: none !important;
        background-color: transparent !important;
    }
    
    .dropdown-menu li a:hover,
    .dropdown-menu a:hover {
        color: #ffffff !important;
        background-color: rgba(255,255,255,0.08) !important;
    }
    
    .dropdown-toggle i {
        display: inline-block; /* Visszaállítjuk a kis lefelé nyilat */
        margin-left: 5px;
    }

    /* Mobil elérhetőségi blokk a drawer alján */
    .nav-mobile-info {
        display: flex !important;
        flex-direction: column;
        padding: 20px 25px !important;
        margin-top: auto !important; /* Legalulra tolja a beúszó oldalsávban */
        border-top: 1px solid rgba(255,255,255,0.1) !important;
        background-color: rgba(0, 0, 0, 0.05) !important;
    }

    .nav-mobile-info a {
        display: flex !important;
        align-items: center;
        gap: 10px;
        padding: 8px 0 !important;
        font-size: 14px !important;
        color: rgba(255,255,255,0.8) !important;
        border-bottom: none !important;
        text-transform: none !important;
        background-color: transparent !important;
    }

    .nav-mobile-info a i {
        color: #ffffff;
        font-size: 14px;
        width: 16px;
        text-align: center;
    }

    .nav-mobile-info a:hover {
        color: #ffffff !important;
        background-color: transparent !important;
    }
    
    .slider-section {
        height: 250px;
    }
    
    .featured-services {
        grid-template-columns: 1fr;
    }
    
    .gallery-wrapper {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .gallery-item {
        width: 100%;
        max-width: 287px;
    }
    
    .footer-nav {
        display: none;
    }
}
