/* Base: carried over unchanged from the approved Beltéri ajtók draft */

        
            :root {
                --brand: #0088cc;
                --brand-dark: #004d73;
                --brand-darkest: #00111a;
                --white: #ffffff;
                --text-dark: #333333;
                --gray-200: #dee2e6;
                --transition-normal: 0.3s ease-in-out;
                --transition-slow: 0.6s ease;
                --z-fixed: 1050;
                --radius-global: 16px;
                --primaryLight: #e6f4fa;
                --lightBg: #fbfbfb;
                --shadow-sm: 0 4px 6px rgba(0, 136, 204, 0.05);
                --shadow-md: 0 8px 15px rgba(0, 136, 204, 0.08);
                --shadow-lg: 0 12px 25px rgba(0, 136, 204, 0.1);
                --shadow-xl: 0 20px 40px rgba(0, 136, 204, 0.15);
            }

            body { 
                font-size: 16px; line-height: 24px; font-family: 'Inter', sans-serif; 
                background-color: #fbfbfb; color: #333333; overflow-x: hidden; -webkit-font-smoothing: antialiased; 
            }
            h1 { font-size: 57px; line-height: 64px; font-weight: 900; font-family: 'Montserrat', sans-serif; color: var(--text-dark);}
            h2 { font-size: 32px; line-height: 40px; font-weight: 900; font-family: 'Montserrat', sans-serif; color: var(--text-dark); margin-bottom: 24px;}
            h3 { font-size: 24px; line-height: 32px; font-weight: 800; font-family: 'Montserrat', sans-serif; color: var(--text-dark); margin-bottom: 16px;}
            h4 { font-size: 18px; line-height: 24px; font-weight: 800; font-family: 'Montserrat', sans-serif; color: var(--text-dark); margin-bottom: 8px;}
            p { margin-bottom: 16px; color: #555555; }

            @media (max-width: 768px) {
                h1 { font-size: 40px; line-height: 48px; }
                h2 { font-size: 28px; line-height: 36px; }
            }
        
        
        .m3-label { font-size: 14px; line-height: 20px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; }
        .m3-nav { font-size: 14px; line-height: 20px; font-weight: 600; }
        .glass-nav { background: rgba(251, 251, 251, 0.95); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(0,136,204,0.1); }
        .bg-pattern { background-image: radial-gradient(#0088cc 1px, transparent 1px); background-size: 30px 30px; opacity: 0.15; }
        
        .title-line { width: 80px; height: 5px; background: #0088cc; border-radius: 10px; margin-top: 15px; }
        .title-line-center { margin-left: auto; margin-right: auto; }
        .glass-dark { background: rgba(0, 17, 26, 0.8); backdrop-filter: blur(16px); border: 1px solid rgba(255,255,255,0.1); }

        ::-webkit-scrollbar { width: 10px; }
        ::-webkit-scrollbar-track { background: #fbfbfb; }
        ::-webkit-scrollbar-thumb { background: #0088cc; border-radius: 5px; }
        ::-webkit-scrollbar-thumb:hover { background: #006b9e; }
        [x-cloak] { display: none !important; }

        .btn-primary { 
            display: inline-flex; align-items: center; justify-content: center; gap: 12px; 
            padding: 16px 32px; border-radius: var(--radius-global); font-weight: 800; font-size: 1rem; 
            cursor: pointer; transition: all var(--transition-normal); border: 2px solid transparent; 
            font-family: 'Montserrat', sans-serif; background-color: var(--brand); color: var(--white); 
            box-shadow: 0 10px 25px rgba(0, 136, 204, 0.3); text-transform: uppercase; letter-spacing: 0.05em;
        }
        .btn-primary:hover { background-color: var(--brand-dark); transform: translateY(-2px); box-shadow: 0 15px 35px rgba(0, 136, 204, 0.4); color: var(--white); }

        /* =========================================
           Service Section Gallery & Grid Logika 
           ========================================= */
        .service-detail { padding: 96px 0; background: var(--white); border-bottom: 1px solid var(--gray-200); overflow-x: hidden; }
        .service-detail.bg-alternate { background: var(--lightBg); }
        
        .service-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: stretch; }
        .content-side { display: flex; flex-direction: column; gap: 40px; justify-content: center;}
        
        .mobile-title { display: none; margin-bottom: 30px;}
        .desktop-title { display: block; }
        .no-break-headline { white-space: nowrap; }

        .feature-cards { display: grid; grid-template-columns: 1fr; gap: 25px; }
        .feature-card {
            background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-global);
            box-shadow: var(--shadow-lg); padding: 35px; display: flex; gap: 25px; align-items: flex-start;
            position: relative; z-index: 1; overflow: hidden; transition: transform var(--transition-normal), box-shadow var(--transition-normal);
        }
        .feature-card::before {
            content: ''; position: absolute; right: -50px; top: -50px; width: 100px; height: 100px; border-radius: 50%;
            background: var(--primaryLight); transform: scale(0); transition: transform var(--transition-normal); transform-origin: center; z-index: -1;
        }
        .feature-card:hover { transform: scale(1.03); box-shadow: var(--shadow-xl); }
        .feature-card:hover::before { transform: scale(8); }
        .feature-card i { font-size: 2.5rem; color: var(--brand); background: var(--white); padding: 15px; border-radius: var(--radius-global); flex-shrink: 0; box-shadow: var(--shadow-sm); border: 1px solid var(--gray-200);}
        .feature-card h4 { font-size: 1.4rem; margin-bottom: 10px; color: var(--brand-darkest); }
        .feature-card p { margin: 0; font-size: 1.05rem; }

        .service-gallery { position: relative; width: 100%; height: 100%; min-height: 450px;}
        .slider-btn { display: none; }
        .gallery-track-wrapper { width: 100%; height: 100%; }
        .gallery-track {
            display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: 1fr 140px; 
            gap: 15px; width: 100%; height: 100%;
        }
        .gallery-item {
            position: relative; border-radius: var(--radius-global); overflow: hidden;
            box-shadow: var(--shadow-sm); background: var(--white); height: 100%; border: 1px solid var(--gray-200);
        }
        .gallery-item img {
            width: 100%; height: 100%; object-fit: cover; display: block;
            transition: transform var(--transition-slow);
        }
        .gallery-item:hover img { transform: scale(1.05); }
        .item-main { grid-column: span 3; box-shadow: var(--shadow-md); }
        
        .expand-btn {
            position: absolute; top: 15px; right: 15px; background: rgba(0, 17, 26, 0.65); color: var(--white);
            width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
            font-size: 1.3rem; cursor: pointer; backdrop-filter: blur(4px); opacity: 0; pointer-events: none;
            transition: opacity 0.3s, background 0.3s, transform 0.3s; z-index: 5;
        }
        .expand-btn:hover { background: var(--brand); transform: scale(1.1); }
        .gallery-item:hover .expand-btn { opacity: 1; pointer-events: auto; }

        @media (max-width: 992px) {
            .service-grid { grid-template-columns: 1fr; gap: 30px; align-items: start; }
            .mobile-title { display: block; }
            .desktop-title { display: none; }
            .gallery-track-wrapper { overflow: hidden; position: relative; width: 100%; padding: 10px 0; }
            .gallery-track { display: flex; gap: 15px; height: auto; transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1); }
            .gallery-item { flex: 0 0 calc(50% - 7.5px); height: 280px; }
            .item-main { height: 280px; }
            .expand-btn { opacity: 1; pointer-events: auto; }
            .slider-btn {
                display: flex; position: absolute; top: 50%; transform: translateY(-50%); width: 45px; height: 45px; border-radius: 50%; background: var(--white); color: var(--brand-dark); box-shadow: 0 5px 15px rgba(0,0,0,0.2); align-items: center; justify-content: center; font-size: 1.5rem; border: none; cursor: pointer; z-index: 10; transition: all 0.2s;
            }
            .slider-btn:hover { color: var(--brand); background: var(--primaryLight); transform: translateY(-50%) scale(1.1); }
            .prev-btn { left: -10px; }
            .next-btn { right: -10px; }
        }
        @media (max-width: 576px) {
            .feature-card { flex-direction: column; align-items: center; text-align: center; padding: 25px; }
            .gallery-item, .item-main { height: 220px; }
        }

        /* =========================================
           Lightbox 
           ========================================= */
        .lightbox { display: flex; position: fixed; inset: 0; background: rgba(0, 0, 0, 0.9); backdrop-filter: blur(10px); z-index: 9999; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
        .lightbox.active { opacity: 1; pointer-events: all; }
        .lightbox-content { position: relative; max-width: 90vw; max-height: 90vh; display: flex; align-items: center; justify-content: center; }
        .lightbox-img { max-width: 100%; max-height: 85vh; border-radius: var(--radius-global); box-shadow: 0 10px 40px rgba(0,0,0,0.5); background: white;}
        .lb-close { position: absolute; top: 25px; right: 35px; font-size: 2.5rem; color: var(--white); cursor: pointer; z-index: 10000; transition: 0.3s; }
        .lb-close:hover { color: var(--brand); transform: scale(1.1) rotate(90deg); }
        .lb-nav { position: absolute; top: 50%; transform: translateY(-50%); font-size: 3rem; color: var(--white); cursor: pointer; z-index: 10000; background: rgba(0,0,0,0.3); border-radius: 50%; width: 60px; height: 60px; display: flex; align-items: center; justify-content: center; transition: 0.3s; }
        .lb-nav:hover { background: var(--brand); transform: translateY(-50%) scale(1.1); }
        .lb-prev { left: 20px; }
        .lb-next { right: 20px; }
        @media (max-width: 576px) { .lb-nav { font-size: 2rem; width: 40px; height: 40px;} .lb-close { top: 15px; right: 15px; font-size: 2rem; } }

        /* FLOATING WIDGETS */
        .widget-phone { position: fixed; bottom: 110px; right: 30px; height: 60px; width: 60px; background: var(--brand-dark); color: var(--white); border-radius: 30px; display: flex; align-items: center; box-shadow: 0 10px 25px rgba(0,0,0,0.3); z-index: var(--z-fixed); overflow: hidden; transition: width 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), background var(--transition-normal); cursor: pointer; border: 2px solid rgba(255,255,255,0.1); text-decoration: none;}
        .widget-phone .icon-wrapper { min-width: 56px; height: 56px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; color: var(--brand); }
        .widget-phone .text-wrapper { white-space: nowrap; font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 1.1rem; padding-right: 20px; opacity: 0; transition: opacity 0.3s; color: var(--white); }
        .widget-phone:hover { width: 220px; background: var(--brand-darkest); border-color: var(--brand); }
        .widget-phone:hover .text-wrapper { opacity: 1; transition-delay: 0.15s; }

        .widget-chat { position: fixed; bottom: 30px; right: 30px; height: 60px; width: 60px; background: var(--brand); color: var(--white); border-radius: 30px; box-shadow: 0 10px 25px rgba(0,136,204,0.3); z-index: var(--z-fixed); overflow: hidden; transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
        .widget-chat .icon-wrapper { position: absolute; bottom: 0; right: 0; min-width: 60px; height: 60px; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; cursor: pointer; z-index: 2; }
        .chat-window { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: var(--white); color: var(--text-dark); display: flex; flex-direction: column; opacity: 0; pointer-events: none; transition: opacity 0.2s; border-radius: 12px; overflow: hidden; }
        .chat-header { background: var(--brand-dark); color: var(--white); padding: 35px; font-family: 'Montserrat', sans-serif; border-bottom: 4px solid var(--brand); }
        .chat-header h3 { color: var(--white); margin-bottom: 8px; }
        .chat-header p { color: rgba(255,255,255,0.8); margin: 0; }
        .chat-body { padding: 35px; flex-grow: 1; display: flex; flex-direction: column; gap: 20px; }
        .chat-body label { margin-bottom: 4px; display: block; font-weight: 600; color: var(--brand-dark); font-family: 'Montserrat', sans-serif;}
        .chat-body input, .chat-body textarea { padding: 16px !important; border-radius: 8px !important; background: var(--white); border: 2px solid #cbd5e1; width: 100%; font-family: 'Inter', sans-serif; box-sizing: border-box; transition: 0.3s;}
        .chat-body input:focus, .chat-body textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(0,136,204,0.15); }
        .chat-body textarea { height: 140px; resize: none; }
        .chat-body button { font-size: 16px !important; padding: 18px !important; border-radius: 8px !important; width: 100%; margin-top: auto; border: none; font-family: 'Montserrat', sans-serif; font-weight: 700; cursor: pointer; color: var(--white); background: var(--brand); transition: background 0.3s; }
        .chat-body button:hover { background: #006b9e; }
        .widget-chat:hover { width: 450px; height: 600px; box-shadow: 0 20px 40px rgba(0,0,0,0.2); background: var(--white); border-radius: 12px; }
        .widget-chat:hover .icon-wrapper { display: none; }
        .widget-chat:hover .chat-window { opacity: 1; pointer-events: all; transition-delay: 0.15s; }

        @media (max-width: 576px) {
            .widget-chat:hover { width: calc(100vw - 40px); height: calc(100vh - 40px); right: 20px; bottom: 20px; }
            .chat-window { width: 100%; }
        }

        /* FOOTER */
        .footer { background: var(--brand-darkest); color: var(--white); padding: 96px 0 30px 0; position: relative; overflow: hidden; }
        .footer::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 4px; background: linear-gradient(90deg, #0088cc 0%, #004d73 100%); }
        .footer p { color: rgba(255,255,255,0.6); }
        .footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 60px; margin-bottom: 60px; }
        .footer-col h4 { margin-bottom: 25px; color: var(--white); position: relative; padding-bottom: 15px; }
        .footer-col h4::after { content: ''; position: absolute; left: 0; bottom: 0; width: 40px; height: 3px; background: var(--brand); border-radius: 2px; }
        .footer-links { display: flex; flex-direction: column; gap: 15px; }
        .footer-links a { color: rgba(255,255,255,0.6); display: flex; align-items: center; gap: 12px; text-decoration: none; transition: transform 0.3s, color 0.3s;}
        .footer-links a:hover { color: var(--brand); transform: translateX(5px); }
        .footer-links i { color: var(--brand); }
        .footer-bottom { text-align: center; padding-top: 30px; border-top: 1px solid rgba(255,255,255,0.1); color: rgba(255,255,255,0.5); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
        @media (max-width: 992px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
        @media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr; } }
    
/* Carried over: quote form (Bejárati ajtók draft), masonry/timeline (GYIK draft) */
.form-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-global); box-shadow: var(--shadow-xl); padding: 40px; z-index: 10; border-top: 5px solid var(--brand); }
.form-step { display: none; animation: fadeIn 0.4s ease-in-out; }
.form-step.active { display: block; }
.input-group { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.input-group label { font-size: 0.95rem; font-weight: 700; color: var(--brand-darkest); font-family: 'Montserrat', sans-serif; }
.input-group input, .input-group textarea { background: var(--lightBg); border: 1px solid var(--gray-200); border-radius: 8px; padding: 14px 18px; font-family: 'Inter', sans-serif; font-size: 1rem; width: 100%; transition: 0.3s; }
.input-group input:focus, .input-group textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(0,136,204,0.15); background: var(--white);}
.service-select-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 25px; }
.service-select-card { border: 1px solid var(--gray-200); border-radius: 8px; padding: 15px 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; cursor: pointer; transition: all 0.2s; background: var(--white); user-select: none; }
.service-select-card i { font-size: 2.2rem; color: var(--brand-dark); margin-bottom: 8px; transition: all 0.2s; }
.service-select-card span { font-size: 0.9rem; font-weight: 700; color: var(--brand-darkest); }
.service-select-card:hover { border-color: var(--brand); transform: translateY(-2px); box-shadow: 0 4px 10px rgba(0,0,0,0.05); }
.service-select-card.selected { border-color: var(--brand); background: var(--primaryLight); box-shadow: inset 0 0 0 2px var(--brand); }
.service-select-card.selected i { color: var(--brand); }
.glass-card { background: rgba(255, 255, 255, 0.8); backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,0.5); }
.masonry-grid { column-count: 1; column-gap: 1.5rem; }
@media (min-width: 768px) { .masonry-grid { column-count: 2; } }
@media (min-width: 1024px) { .masonry-grid { column-count: 3; } }
.masonry-item { break-inside: avoid; margin-bottom: 1.5rem; }
.timeline-dot { position: relative; }
.timeline-dot::before { content: ''; position: absolute; inset: -6px; border-radius: 50%; background: var(--brand); opacity: 0.3; z-index: -1; }
@media (max-width: 576px) { .service-select-grid { grid-template-columns: 1fr; } .form-card { padding: 25px; } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
