/* === main.css (Üzleti, modern, reszponzív, teljes) === */

/* --- 1. Alapok és Változók --- */
:root {
    --primary-color: #4F46E5;
    --primary-hover: #4338CA;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --border-color: #e5e7eb;
}
body {
    font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
    margin: 0;
    color: var(--text-dark);
    background: #fff;
    line-height: 1.6;
}
main { display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section-title { text-align: center; font-size: 2.5rem; margin-bottom: 50px; color: var(--text-dark); }

/* --- 2. Gombok --- */
.btn { display: inline-block; padding: 12px 28px; border-radius: 999px; text-decoration: none; font-weight: bold; cursor: pointer; transition: all 0.3s ease; border: 2px solid transparent; }
.btn-primary { background-color: var(--primary-color); border-color: var(--primary-color); color: white; }
.btn-primary:hover { background-color: var(--primary-hover); border-color: var(--primary-hover); transform: translateY(-2px); box-shadow: 0 6px 25px rgba(79,70,229,0.3); }
.btn-secondary { background-color: transparent; color: var(--primary-color); border-color: var(--primary-color); }
.btn-secondary:hover { background-color: var(--primary-color); color: white; }

/* --- 3. Fejléc és Navigáció --- */
.header-padding { height: 100px; }
.site-header-floating {
    background: rgba(255,255,255,0.93);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 999px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    position: fixed; top: 20px; left: 50%; transform: translateX(-50%);
    width: 95%; max-width: 1200px;
    display: flex; justify-content: space-between; align-items: center;
    padding: 10px 20px; z-index: 1000; transition: top 0.3s;
}
.site-logo a {
    font-size: 1.8rem; font-weight: 800; text-decoration: none;
    color: transparent;
    background: linear-gradient(45deg,#00A6F3,#2D72D9);
    -webkit-background-clip: text;
    background-clip: text;
}
.main-nav { flex-grow: 1; text-align: center; }
.main-nav ul { margin: 0; padding: 0; list-style: none; display: inline-flex; gap: 35px; }
.main-nav a { text-decoration: none; color: #333; font-weight: 500; }
.header-right-side { display: flex; align-items: center; gap: 20px; }
.datetime { text-align: right; font-size: .8rem; color: #666; line-height: 1.3; }
#live-clock { font-weight: 600; }

/* --- 4. Hero Slider --- */
.hero-slider { position: relative; width: 100%; height: 85vh; min-height: 550px; background: #1f2937; overflow: hidden; }
.slider-wrapper { position: relative; width: 100%; height: 100%; }
.slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1.2s; z-index: 1; }
.slide.active { opacity: 1; z-index: 2; }
.slide-background-container { position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; }
.slide-media { position: absolute; top: 50%; left: 50%; width: auto; height: auto; min-width: 100%; min-height: 100%; transform: translate(-50%,-50%) scale(1.05); transition: transform 8s; }
.slide.active .slide-media { transform: translate(-50%,-50%) scale(1); }
.slide-image { background-size: cover; background-position: center; }
.slide-video { object-fit: cover; }
.slide-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 3; }
.slide-caption { position: relative; z-index: 4; height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: center; color: #fff; text-align: center; padding: 2rem; }
.slide-caption h1,.slide-caption p,.slide-caption .btn { opacity: 0; transform: translateY(30px); transition: opacity 0.8s,transform 0.8s; }
.slide.active .slide-caption h1 { opacity: 1; transform: none; transition-delay: .3s; }
.slide.active .slide-caption p { opacity: 1; transform: none; transition-delay: .5s; }
.slide.active .slide-caption .btn { opacity: 1; transform: none; transition-delay: .7s; }
.slide-caption h1 { font-size: clamp(2.5rem,6vw,4.5rem); margin: 0 0 1rem 0; text-shadow: 0 2px 15px rgba(0,0,0,0.5);}
.slide-caption p { font-size: clamp(1.1rem,3vw,1.4rem); margin-bottom: 2rem; max-width: 750px; margin-left:auto; margin-right:auto; text-shadow: 0 1px 5px rgba(0,0,0,0.5);}
.slider-nav button { position: absolute; top: 50%; transform: translateY(-50%); z-index: 5; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); color: #fff; font-size: 1.5rem; width: 50px; height: 50px; border-radius: 50%; cursor: pointer; transition: all 0.3s; }
.slider-nav button:hover { background: rgba(255,255,255,0.2);}
.prev-btn { left: 30px; }
.next-btn { right: 30px; }
.slider-dots { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); display: flex; gap: 12px; z-index: 5;}
.slider-dots .dot { width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,0.5); cursor: pointer; border: 1px solid rgba(0,0,0,0.1); transition: all 0.3s; }
.slider-dots .dot.active { background: #fff; transform: scale(1.2);}
.slider-progress { position: absolute; bottom: 0; left: 0; width: 100%; height: 4px; background: rgba(255,255,255,0.25); z-index: 10;}
.slider-progress-bar { width: 100%; height: 100%; background: var(--primary-color); transform-origin: left; transform: scaleX(0);}
.slide.active ~ .slider-progress .slider-progress-bar { transform: scaleX(1); transition: transform 6s linear; }

/* --- 5. Kezdőlapi szekciók --- */
.features { padding: 80px 0; background: var(--bg-light); text-align: center; }
.features .container { display: grid; grid-template-columns: repeat(3,1fr); gap: 40px; }
.service-cards-section { padding: 80px 0; background: #f7f8fc; text-align: center; overflow-x: hidden; }
.service-cards-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(320px,1fr)); gap: 30px; margin-top: 40px;}
.card-item { background: #fff; border: 1px solid var(--border-color); border-radius: 16px; box-shadow: 0 4px 25px rgba(0,0,0,0.04); transition: transform 0.4s, box-shadow 0.4s; text-align: left; opacity: 0;}
.card-item:hover { border-color: var(--primary-color); box-shadow: 0 15px 35px rgba(79,70,229,0.1); transform: translateY(-10px);}
.card-item.is-visible { animation: fadeInUp 0.8s ease forwards;}
.card-item .card-content { padding: 35px; }
.card-item .card-icon, .card-item h3, .card-item p, .card-item .card-action { transition: transform 0.4s cubic-bezier(.23,1,.32,1), opacity 0.4s;}
.card-action { display: inline-block; margin-top: 20px; font-weight: 600; color: var(--primary-color); text-decoration: none; opacity: 0; transform: translateY(10px);}
.card-action i { margin-left: 5px; transition: transform 0.3s;}
.card-item:hover .card-icon { transform: translateY(-12px);}
.card-item:hover h3 { transform: translateY(-6px);}
.card-item:hover .card-action { opacity: 1; transform: none;}
.card-item:hover .card-action i { transform: translateX(4px);}
.card-item .card-icon { width: 60px; height: 60px; border-radius: 50%; background: #f0f2ff; display: grid; place-items: center; margin-bottom: 25px;}
.card-item .card-icon i { font-size: 28px; color: var(--primary-color);}
.card-item h3 { font-size: 20px; font-weight: 600; color: var(--text-dark);}
.card-item p { font-size: 16px; line-height: 1.7; color: var(--text-light);}
.stats-section { padding: 80px 0; text-align: center;}
.stats-section .container { display: grid; grid-template-columns: repeat(3,1fr); gap: 40px;}
.stat-number { font-size: 4rem; font-weight: bold; color: var(--primary-color);}
.about-teaser-section { padding: 80px 0;}
.latest-articles-section { padding: 80px 0; background: var(--bg-light);}
.cta-section { background: linear-gradient(90deg,#4F46E5 20%,#2D72D9 80%); color: #fff; border-radius: 24px; box-shadow: 0 16px 40px rgba(79,70,229,0.2); padding: 70px 40px; text-align: center; margin: 100px auto; max-width: 1200px;}
.cta-section h2 { font-size: 2.8rem; text-shadow: none; margin-top: 0; margin-bottom: 15px;}
.cta-section .btn-primary { background: #fff; color: var(--primary-color); font-weight: 700; font-size: 1.1rem; padding: 1rem 2.5rem; box-shadow: 0 5px 15px rgba(0,0,0,0.2);}
.cta-section .btn-primary:hover { background: var(--bg-light); color: var(--primary-hover); transform: translateY(-3px) scale(1.05); box-shadow: 0 8px 25px rgba(0,0,0,0.25);}

/* --- 6. Oldalsablon, főtartalom, "about" --- */
.page-hero { padding: 60px 0; background: var(--text-dark); color: #fff; text-align: center;}
.page-hero h1 { font-size: 3rem; }
.page-content { padding: 80px 0; }
.two-column-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.two-column-layout .image-content img { width: 100%; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); display: block;}
.two-column-layout .text-content h2 { font-size: 2.5rem; margin-top: 0; margin-bottom: 1.5rem;}
.founder-page-title { font-size: 1.2rem; color: var(--primary-color); font-weight: 500; margin-top: -1rem; margin-bottom: 2rem;}
.values-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 30px; text-align: center;}

/* --- 7. Blog oldal/kártyák --- */
.article-list { display: grid; grid-template-columns: repeat(3,1fr); gap: 30px;}
.article-card { background: #fff; border: 1px solid var(--border-color); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; transition: transform 0.3s, box-shadow 0.3s;}
.article-card:hover { border-color: var(--primary-color); box-shadow: 0 15px 35px rgba(79,70,229,0.1); transform: translateY(-5px);}
.article-image-link img { width: 100%; height: 200px; object-fit: cover; display: block;}
.article-card-content { padding: 25px; display: flex; flex-direction: column; flex-grow: 1;}
.article-meta { font-size: .9rem; color: var(--text-light);}
.article-title { font-size: 1.25rem; margin: 10px 0 15px 0; flex-grow: 1;}
.article-title a { text-decoration: none; color: var(--text-dark);}
.article-container { max-width: 800px; margin: auto; }
.pagination { margin-top: 60px; display: flex; justify-content: center;}
.pagination ul { list-style: none; padding: 0; margin: 0; display: flex; border-radius: 8px; overflow: hidden; border: 1px solid var(--border-color); box-shadow: 0 4px 15px rgba(0,0,0,0.05);}
.pagination li+li { border-left: 1px solid var(--border-color);}
.pagination .page-link { display: block; padding: 12px 20px; text-decoration: none; color: var(--text-light); background: #fff; font-weight: 500; transition: background-color 0.2s, color 0.2s;}
.pagination .page-link:hover { background: var(--bg-light); color: var(--text-dark);}
.pagination .page-link.active { background: var(--primary-color); color: #fff; font-weight: 700; cursor: default;}
.pagination .page-link.active:hover { background: var(--primary-color); color: #fff; }

/* --- 8. Lábléc --- */
/* --- Footer Szekció: letisztult, reszponzív --- */
.site-footer {
    background: #1f2937; /* sötét, elegáns háttér */
    color: #e5e7eb;
    padding: 60px 0 0 0;
    margin-top: 80px;
    font-size: 1rem;
    line-height: 1.7;
    box-shadow: 0 -4px 32px rgba(0,0,0,0.05);
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 36px;
    padding-bottom: 40px;
}
.footer-column {
    min-width: 0;
}
.footer-logo {
    font-size: 1.4rem;
    font-weight: 900;
    letter-spacing: 1.5px;
    color: #4F46E5;
    margin-bottom: 18px;
}
.footer-description {
    color: #e5e7eb;
    margin-bottom: 16px;
}
.footer-column h4 {
    font-size: 1.06rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 8px;
}
.footer-column h4::after {
    content: '';
    display: block;
    width: 32px;
    height: 2px;
    background: #4F46E5;
    position: absolute;
    left: 0;
    bottom: 0;
}
.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-column ul li {
    margin-bottom: 10px;
}
.footer-column a {
    color: #adb5bd;
    text-decoration: none;
    transition: color .2s;
    position: relative;
}
.footer-column a:hover,
.footer-column a:focus {
    color: #4F46E5;
}
.footer-address {
    display: block;
    margin-bottom: 6px;
    color: #e5e7eb;
}
.social-icons {
    display: flex;
    gap: 16px;
    margin-top: 4px;
}
.social-icons a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px; height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.07);
    color: #fff;
    font-size: 1.16rem;
    transition: background .2s, color .2s, transform .2s;
    box-shadow: 0 2px 8px rgba(79,70,229,0.08);
}
.social-icons a:hover {
    background: #4F46E5;
    color: #fff;
    transform: translateY(-2px) scale(1.12);
}
.footer-bottom {
    border-top: 1px solid #495057;
    padding: 22px 0;
    text-align: center;
    color: #adb5bd;
    font-size: 0.96rem;
    background: rgba(31,41,55,0.95);
}

/* Mobil reszponzivitás */
@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 25px;
    }
}
@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .site-footer { padding: 32px 0 0 0; }
}

/* --- 9. Animációk, dekoratív elemek --- */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
.mobile-nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 10px; z-index: 1001;}
.hamburger-icon, .hamburger-icon::before, .hamburger-icon::after { content: ''; display: block; background: #333; height: 3px; width: 25px; border-radius: 3px; position: relative; transition: all 0.3s;}
.hamburger-icon::before { top: -8px;}
.hamburger-icon::after { top: 5px;}
.mobile-nav-menu { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(255,255,255,0.98); backdrop-filter: blur(5px); z-index: 999;}
.mobile-nav-menu.is-active { display: block;}
.mobile-nav-toggle.is-active .hamburger-icon { background: transparent;}
.mobile-nav-toggle.is-active .hamburger-icon::before { transform: rotate(45deg) translate(5px,6px);}
.mobile-nav-toggle.is-active .hamburger-icon::after { transform: rotate(-45deg) translate(5px,-6px);}

/* Szekcióelválasztó */
.section-divider { line-height: 0; margin-top: -1px; background: #eff; }
.section-divider svg { display: block; width: 100%; height: 80px;}
.section-divider .shape-fill { fill: #f9fafb; }
.section-divider.divider-white .shape-fill { fill: #fff; }
.about-teaser-section { padding-top: 80px; }

/* --- 10. Mobil nézet, reszponzivitás --- */
@media (max-width: 992px) {
    .service-cards-grid,.article-list,.footer-grid,.values-grid { grid-template-columns: repeat(2,1fr);}
    .features .container { grid-template-columns: 1fr;}
}
@media (max-width: 768px) {
    .section-title, .two-column-layout .text-content h2, .page-hero h1 { font-size: 2rem;}
    .main-nav,.header-right-side { display: none;}
    .mobile-nav-toggle { display: block;}
    .hero-slider { height: 70vh; min-height: 450px;}
    .slider-nav { display: none;}
    .stats-section .container,.service-cards-grid,.article-list,.footer-grid,.values-grid { grid-template-columns: 1fr;}
    .two-column-layout { grid-template-columns: 1fr; gap: 30px;}
    #contact-form .form-row,.options-group { flex-direction: column; gap: 0;}
    .option-card { width: 100%;}
    .section-divider svg { height: 50px;}
    .about-teaser-section { padding-top: 50px;}
}

/* --- 11. Lazy Loading (kép és háttér animáció) --- */
img.lazy { opacity: 0; transition: opacity 0.4s;}
img.lazy.loaded { opacity: 1;}
.lazy-background { background-image: none !important;}

/* --- 12. Kapcsolati Űrlap --- */
.contact-form-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    padding: 40px;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 25px;}
.form-group { margin-bottom: 25px;}
.form-group label { display: block; font-weight: 600; margin-bottom: 8px; color: var(--text-dark);}
.form-group input[type="text"],.form-group input[type="email"],.form-group textarea {
    width: 100%; padding: 12px 15px; border: 1px solid var(--border-color); border-radius: 8px;
    font-size: 16px; font-family: inherit; transition: border-color 0.3s, box-shadow 0.3s;
}
.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group textarea:focus {
    outline: none; border-color: var(--primary-color); box-shadow: 0 0 0 3px rgba(79,70,229,0.15);
}
.form-submit-container { text-align: right; margin-top: 10px;}
.form-messages { padding: 15px; border-radius: 8px; margin-bottom: 25px; font-weight: 500;}
.form-messages.success { background: #d1fae5; color: #065f46; border: 1px solid #6ee7b7;}
.form-messages.error { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5;}
.btn-loader { display: flex; align-items: center; gap: 10px;}
.spinner { animation: rotate 2s linear infinite; width: 20px; height: 20px;}
.spinner .path { stroke: currentColor; stroke-linecap: round; animation: dash 1.5s ease-in-out infinite;}
@keyframes rotate { 100% { transform: rotate(360deg); } }
@keyframes dash { 0% { stroke-dasharray: 1,150; stroke-dashoffset: 0;} 50% { stroke-dasharray: 90,150; stroke-dashoffset: -35;} 100% { stroke-dasharray: 90,150; stroke-dashoffset: -124;} }
@media (max-width: 768px) {
    .contact-form-wrapper { padding: 25px;}
    .form-row { grid-template-columns: 1fr;}
    .form-submit-container { text-align: center;}
    .form-submit-container .btn { width: 100%;}
}
/* --- Honeypot rejtett mező --- */
.honeypot-field { position: absolute; left: -9999px; opacity: 0; pointer-events: none;}

/* --- GYIK --- */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { margin-bottom: 30px; border-bottom: 1px solid #eee; padding-bottom: 18px; }
.faq-question { font-size: 1.2rem; margin-bottom: 6px; color: var(--primary-color); }
.faq-answer { color: var(--text-dark); line-height: 1.7; }
/* --- Referenciák --- */

.reference-info h2 { margin: 0 0 8px 0; }
.reference-info p { color: var(--text-light); }
.reference-testimonial {
    display: block;
    font-style: italic;
    color: #4338ca;
    margin-top: 14px;
    font-size: 1.05em;
    padding: 8px 0 0 0;
    border-left: 3px solid #4F46E5;
    background: #f7f8fc;
    border-radius: 6px;
    padding-left: 14px;
}

.references-preview-section { background: #f7f8fc; padding: 80px 0; }
.references-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.reference-card { background: #fff; border-radius: 14px; box-shadow: 0 2px 18px rgba(0,0,0,0.06); padding: 32px; display: flex; flex-direction: column; align-items: center; }
.reference-logo img { width: 80px; height: 80px; object-fit: contain; margin-bottom: 18px; }
.reference-content h3 { margin: 0 0 12px 0; font-size: 1.2rem; }
.reference-content p { color: #6b7280; margin-bottom: 10px; }
.reference-client { font-size: .98em; color: #4338CA; font-weight: 600; }
@media (max-width: 600px) {
    .references-preview-section { padding: 50px 0 18px 0;}
    .references-grid { grid-template-columns: 1fr; }
    .reference-card { padding: 20px 10px; }

/* --- Cookie Banner Stílusok --- */
#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #1f2937; /* Sötét háttér */
    color: #f9fafb; /* Világos szöveg */
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
}

.cookie-banner-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
}

.cookie-banner-content p {
    margin: 0;
    padding-right: 20px;
}

.cookie-banner-content p a {
    color: #60a5fa;
    text-decoration: underline;
}

.cookie-banner-buttons {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}