﻿/* ==========================================================================
   Back1 Movement - Stylesheet
   ========================================================================== */

/* 1. Alapbeállítások & Reszponzivitás */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
    color: #1a1a1a;
    line-height: 1.6;
    background-color: #f4f6f8;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    color: #1a3b27;
    margin-top: 0;
    line-height: 1.25;
}

p {
    margin-top: 0;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 2. Háttérkép és overlay réteg */
.bg-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background-image: url('hegy.jpg');
    background-size: cover;
    background-position: center bottom;
    background-repeat: no-repeat;
    filter: grayscale(100%);
    pointer-events: none;
}

.bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: rgba(244, 246, 248, 0.88);
    pointer-events: none;
}

/* 3. Fejléc & Navigáció */
header {
    background-color: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
    padding: 16px 20px;
}

.logo {
    font-size: 20px;
    font-weight: 800;
    color: #1a3b27;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-icon {
    width: 28px;
    height: 28px;
    vertical-align: middle;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-links a {
    text-decoration: none;
    color: #333333;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
    transition: color 0.25s ease;
    padding: 6px 0;
}

.nav-links a:hover,
.nav-links a:focus-visible {
    color: #1a3b27;
}

/* Mobil menü gomb */
.menu-btn {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    flex-direction: column;
    gap: 5px;
    border-radius: 6px;
}

.menu-btn:focus-visible {
    outline: 2px solid #1a3b27;
}

.menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: #1a3b27;
    transition: transform 0.3s ease, opacity 0.3s ease;
    border-radius: 2px;
}

.menu-btn.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.menu-btn.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* 4. Gombok */
.btn {
    display: inline-block;
    background-color: #ffea66;
    color: #000000;
    padding: 15px 32px;
    text-decoration: none;
    font-weight: 800;
    font-size: 14px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.25s ease;
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn:hover {
    background-color: #ffe033;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 224, 51, 0.4);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid #1a3b27;
    color: #1a3b27;
}

.btn-outline:hover {
    background-color: #1a3b27;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(26, 59, 39, 0.2);
}

/* 5. Szekciók elrendezése */
.section {
    padding: 90px 0 50px 0;
}

.content-box {
    background-color: #ffffff;
    padding: 50px;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
    margin-bottom: 30px;
}

/* 6. Hero szekció */
.hero {
    text-align: center;
    margin-top: 60px;
    padding: 90px 20px 60px;
}

.hero-subtitle {
    font-size: 13px;
    letter-spacing: 3px;
    color: #555555;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.hero h1 {
    font-size: 46px;
    letter-spacing: -1px;
    margin-bottom: 20px;
    font-weight: 800;
    max-width: 850px;
    margin-left: auto;
    margin-right: auto;
}

.hero p {
    font-size: 20px;
    color: #444444;
    max-width: 700px;
    margin: 0 auto 35px auto;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* 7. Képek általános stílusa */
.cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 8. Folyamat (3 lépés) */
.process-grid {
    display: flex;
    gap: 24px;
    margin-top: 40px;
}

.step-box {
    flex: 1;
    background-color: #ffffff;
    padding: 40px 28px;
    text-align: center;
    border-radius: 14px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.03);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.step-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.step-number {
    background-color: #ffea66;
    color: #000000;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    border-radius: 50%;
    margin: 0 auto 20px auto;
    font-size: 18px;
}

.step-box h3 {
    margin-bottom: 12px;
    font-size: 20px;
}

.step-box p {
    color: #555555;
    font-size: 15px;
    margin-bottom: 0;
}

/* 9. Szolgáltatások (Board & Body) */
.service-row {
    display: flex;
    background-color: #ffffff;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
    margin-bottom: 40px;
    border-radius: 16px;
    overflow: hidden;
    border-top: 4px solid #1a3b27;
    align-items: stretch;
}

.service-row.reverse {
    flex-direction: row-reverse;
}

.service-text {
    flex: 1;
    padding: 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.service-text h2 {
    font-size: 28px;
    margin-bottom: 14px;
}

.service-images {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    background-color: #ffffff;
    min-height: 380px;
}

.service-images .cover-img {
    border: none;
    min-height: 100%;
}

.check-list {
    list-style: none;
    padding: 0;
    margin: 20px 0 35px 0;
}

.check-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 14px;
    color: #444444;
    font-size: 15px;
}

.check-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #1a3b27;
    font-weight: 800;
    font-size: 17px;
}

/* Oktatás képek sávja */
.teaching-banner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 40px;
    border-radius: 16px;
    overflow: hidden;
}

.teaching-banner .cover-img {
    height: 340px;
    border-radius: 12px;
}

/* 10. Referenciák & Videók */
.reference-grid {
    display: flex;
    gap: 30px;
}

.video-box {
    background-color: #111814;
    aspect-ratio: 16/9;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    margin-bottom: 20px;
    border-radius: 12px;
    overflow: hidden;
    border: 2px dashed rgba(255, 234, 102, 0.4);
    position: relative;
    transition: border-color 0.3s ease;
}

.video-box:hover {
    border-color: #ffea66;
}

.video-box span {
    font-size: 42px;
    margin-bottom: 10px;
    color: #ffea66;
}

.quote {
    font-style: italic;
    color: #555555;
    border-left: 3px solid #ffea66;
    padding-left: 16px;
    margin-bottom: 10px;
    font-size: 15px;
}

.quote-author {
    font-weight: 700;
    font-size: 13px;
    color: #1a3b27;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* 11. Gyakori kérdések (FAQ) */
.faq-layout {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
    align-items: start;
}

.faq-left h2 {
    font-size: 32px;
    margin-bottom: 18px;
}

.faq-left p {
    color: #555555;
    margin-bottom: 28px;
    font-size: 16px;
}

details {
    background-color: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    margin-bottom: 14px;
    transition: all 0.25s ease;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

details[open] {
    border-color: #1a3b27;
    box-shadow: 0 4px 16px rgba(26, 59, 39, 0.08);
}

summary {
    padding: 20px;
    font-weight: 700;
    font-size: 16px;
    color: #1a3b27;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

summary::-webkit-details-marker {
    display: none;
}

summary::after {
    content: '+';
    font-size: 20px;
    color: #1a3b27;
    background-color: #ffea66;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: bold;
    flex-shrink: 0;
    transition: transform 0.25s ease;
}

details[open] summary::after {
    content: '−';
    transform: rotate(180deg);
}

.faq-content {
    padding: 0 20px 20px 20px;
    color: #555555;
    line-height: 1.6;
}

/* 12. Kapcsolat szekció */
.contact-section {
    padding: 80px 0 100px;
    text-align: center;
}

.contact-wrapper {
    max-width: 620px;
    margin: 0 auto;
}

.contact-wrapper h2 {
    font-size: 36px;
    margin-bottom: 18px;
}

.contact-wrapper p {
    font-size: 18px;
    color: #444444;
    margin-bottom: 35px;
}

.contact-phone {
    margin-top: 35px;
    font-size: 16px;
    color: #555555;
}

.contact-phone a {
    display: inline-block;
    margin-top: 8px;
    font-size: 24px;
    font-weight: 800;
    color: #1a3b27;
    text-decoration: none;
    transition: color 0.25s ease;
}

.contact-phone a:hover {
    color: #0b1a11;
    text-decoration: underline;
}

/* 13. Lábléc */
footer {
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    padding: 60px 0 24px 0;
    font-size: 13px;
    background-color: rgba(255, 255, 255, 0.5);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 45px;
}

.footer-col h4 {
    font-size: 14px;
    color: #1a1a1a;
    margin-bottom: 18px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: #555555;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-col ul li a:hover {
    color: #1a3b27;
    font-weight: 600;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    padding-top: 24px;
    color: #666666;
}

.social-icons {
    display: flex;
    gap: 12px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    color: #1a1a1a;
    transition: all 0.25s ease;
}

.social-icons a:hover {
    background-color: #1a3b27;
    color: #ffffff;
    border-color: #1a3b27;
    transform: translateY(-2px);
}

.social-icons svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* 14. Mobil és Tablet optimalizálás */
@media (max-width: 992px) {
    .hero h1 { font-size: 38px; }
    .content-box { padding: 36px; }
    .faq-layout { grid-template-columns: 1fr; gap: 30px; }
}

@media (max-width: 768px) {
    .menu-btn {
        display: flex;
    }

    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: center;
        gap: 16px;
        padding: 16px 0 8px;
        border-top: 1px solid rgba(0, 0, 0, 0.06);
        margin-top: 12px;
    }

    .nav-links.active {
        display: flex;
    }

    .navbar {
        flex-wrap: wrap;
    }

    .process-grid, 
    .service-row, 
    .service-row.reverse, 
    .reference-grid, 
    .teaching-banner {
        flex-direction: column;
        display: flex;
        gap: 25px;
    }

    .service-images {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .service-images .cover-img {
        min-height: 240px;
    }

    .teaching-banner .cover-img {
        height: 240px;
    }

    .hero {
        margin-top: 40px;
        padding: 60px 15px 40px;
    }

    .hero h1 {
        font-size: 30px;
    }

    .hero p {
        font-size: 17px;
    }

    .content-box,
    .service-text {
        padding: 28px 20px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 25px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .contact-wrapper h2 {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .btn {
        width: 100%;
    }

    .hero-buttons {
        flex-direction: column;
    }
}
