/* Critical CSS - Inline this in HTML head for better FCP */
:root {
    --primary: #2f475d;
    --secondary: #5480a3;
    --light: #cfdce8;
    --white: #FFFFFF;
    --black: #000000;
    --dark-gray: #333333;
}

/* Optimized Reset with better performance */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    /* Prevent layout shift from scrollbar */
    scrollbar-gutter: stable;
}

body {
    background-color: var(--white);
    color: var(--dark-gray);
    overflow-x: hidden;
    font-size: 16px;
    line-height: 1.6;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    /* Better font rendering */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* A gyengén látók számára hozzáadott CSS */
body.font-size-lg { font-size: 115%; }
body.font-size-xl { font-size: 130%; }
body.contrast-mode { 
    background-color: var(--black) !important; 
    color: var(--white) !important; 
}
body.contrast-mode h1,
body.contrast-mode h2,
body.contrast-mode h3,
body.contrast-mode h4,
body.contrast-mode h5,
body.contrast-mode h6,
body.contrast-mode a,
body.contrast-mode p,
body.contrast-mode .service-content h3,
body.contrast-mode .testimonial-content,
body.contrast-mode .footer-contact-text h4,
body.contrast-mode .footer-contact-text p,
body.contrast-mode .footer-widget h3,
body.contrast-mode .footer-bottom p,
body.contrast-mode .hero-calculator h3,
body.contrast-mode .form-group label,
body.contrast-mode .calculator-note {
    color: var(--white) !important; 
}

body.monochrome-mode { 
    filter: grayscale(100%); 
}

/* Diszlexia font - betöltés */
@font-face {
  font-family: 'OpenDyslexic';
  src: url('https://fonts.gstatic.com/s/opendyslexic/v1/regular.woff2') format('woff2');
  font-display: swap;
}

body.dyslexia-font {
    font-family: 'OpenDyslexic', sans-serif;
}

/* Accessibility gomb stílusa - MÓDOSÍTVA */
#accessibility-toggle {
    position: fixed;
    bottom: 90px; /* Megemeltem a pozíciót */
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: var(--secondary);
    color: var(--white);
    border: none;
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(84, 128, 163, 0.4);
    font-size: 24px;
    cursor: pointer;
    z-index: 10000;
    transition: all 0.3s;
}

#accessibility-toggle:hover {
    background-color: var(--primary);
    transform: scale(1.1);
}

/* Accessibility Toolbar stílusa - MÓDOSÍTVA */
#accessibility-toolbar {
    position: fixed;
    top: 50%;
    right: 30px;
    transform: translateY(-50%) translateX(120%);
    width: 300px;
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    z-index: 10001;
    transition: transform 0.4s ease-in-out;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

#accessibility-toolbar[aria-hidden="false"] {
    transform: translateY(-50%) translateX(0);
}

.toolbar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--light);
}

.toolbar-header h4 {
    margin: 0;
    font-size: 18px;
    color: var(--primary);
}

#toolbar-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--primary);
}

.toolbar-body {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.toolbar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.toolbar-item button {
    width: 60px;
    height: 60px;
    background-color: var(--light);
    color: var(--primary);
    border: none;
    border-radius: 50%;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.toolbar-item button:hover {
    background-color: var(--secondary);
    color: var(--white);
}

.toolbar-item p {
    font-size: 12px;
    color: var(--dark-gray);
    margin-top: 5px;
}

/* Prevent CLS from font loading */
@font-face {
    font-family: 'Segoe UI';
    font-display: swap;
    src: local('Segoe UI');
}

/* Skip Navigation Link for Accessibility */
.skip-nav {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary);
    color: var(--white);
    padding: 8px;
    text-decoration: none;
    z-index: 100;
    border-radius: 0 0 4px 0;
}

.skip-nav:focus {
    top: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    /* Prevent horizontal overflow */
    width: 100%;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col {
    padding: 0 15px;
    flex: 1;
}

/* Typography - Optimized for CLS */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--primary);
    /* Prevent text layout shift */
    font-synthesis: none;
}

h1 { font-size: clamp(24px, 5vw, 38px); }
h2 { font-size: clamp(20px, 4vw, 32px); }
h3 { font-size: clamp(18px, 3vw, 24px); }

p {
    margin-bottom: 20px;
    color: var(--dark-gray);
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: color 0.3s;
}

a:hover {
    color: var(--secondary);
}

a:focus {
    outline: 2px solid var(--secondary);
    outline-offset: 2px;
}

ul {
    list-style: none;
}

/* Buttons - Optimized with min-height to prevent CLS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    text-transform: uppercase;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    gap: 10px;
    min-height: 50px;
    /* Prevent layout shift */
    min-width: 120px;
    contain: layout style;
}

.btn:focus {
    outline: 3px solid var(--secondary);
    outline-offset: 2px;
}

.btn-primary {
    background-color: var(--secondary);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(47, 71, 93, 0.3);
}

.btn-secondary {
    background-color: var(--primary);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: var(--secondary);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(84, 128, 163, 0.3);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-large {
    padding: 16px 32px;
    font-size: 18px;
    min-height: 60px;
}

.btn-small {
    padding: 8px 16px;
    font-size: 14px;
    min-height: 40px;
}

/* Top Bar - Mobile hidden */
.top-bar {
    background-color: var(--primary);
    color: var(--white);
    padding: 8px 0;
    font-size: 14px;
    /* Prevent CLS */
    min-height: 40px;
}

@media (max-width: 768px) {
    .top-bar {
        display: none;
    }
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.top-bar-info a {
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-bar-info a:hover {
    color: var(--light);
}

.top-bar-info i {
    font-size: 14px;
}

.top-bar-social {
    display: flex;
    gap: 15px;
}

.top-bar-social a {
    color: var(--white);
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.top-bar-social a:hover {
    color: var(--light);
}

/* Header - Optimized for CLS */
.header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(47, 71, 93, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: padding 0.3s;
    /* Prevent CLS */
    min-height: 80px;
    contain: layout style;
}

.header.sticky {
    padding: 10px 0;
    min-height: 60px;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
}

.logo a:hover {
    opacity: 0.8;
    transform: none;
}

.logo img {
    height: 50px;
    width: auto;
    transition: opacity 0.3s;
    /* Prevent CLS */
    aspect-ratio: 3/1;
    object-fit: contain;
}

.logo h1 {
    font-size: 24px;
    margin-bottom: 0;
    color: var(--primary);
}

/* Navigation */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-menu > li {
    position: relative;
}

.nav-menu li a {
    color: var(--primary);
    font-weight: 500;
    padding: 10px 0;
    position: relative;
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-menu > li > a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    background-color: var(--secondary);
    bottom: 0;
    left: 0;
    transition: width 0.3s;
}

.nav-menu li a:hover {
    color: var(--secondary);
}

.nav-menu > li > a:hover::after {
    width: 100%;
}

.nav-menu li a i {
    font-size: 10px;
    transition: transform 0.3s;
}

.nav-menu li:hover > a i {
    transform: rotate(180deg);
}

.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    min-width: 220px;
    box-shadow: 0 5px 15px rgba(47, 71, 93, 0.1);
    border-radius: 0 0 4px 4px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s;
    z-index: 999;
    padding: 10px 0;
    border: 1px solid var(--light);
}

.nav-menu li:hover > .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.submenu li {
    padding: 0 20px;
}

.submenu li a {
    padding: 8px 0;
    display: block;
    border-bottom: 1px solid var(--light);
    font-weight: 400;
    font-size: 14px;
}

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

.mobile-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--primary);
    background: none;
    border: none;
    padding: 8px;
}

.mobile-toggle:focus {
    outline: 2px solid var(--secondary);
    outline-offset: 2px;
}

/* Hero Section - Optimized */
.hero {
    position: relative;
    padding: 0;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    min-height: 600px;
    display: flex;
    align-items: center;
    /* Prevent CLS */
    contain: layout style;
}

/* Video Background - Desktop only with performance optimization */
.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: 1;
    opacity: 0.4;
    filter: brightness(0.9);
    object-fit: cover;
    /* Performance optimization */
    will-change: transform;
    pointer-events: none;
}

/* Desktop only class */
.desktop-only {
    display: block;
}

@media (max-width: 1024px) {
    .desktop-only {
        display: none !important;
    }
}

/* Overlay for better contrast */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
            rgba(47, 71, 93, 0.5) 0%,
            rgba(84, 128, 163, 0.5) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    padding: 100px 0;
    color: var(--white);
    width: 100%;
}

.hero-split {
    display: flex;
    align-items: center;
    gap: 50px;
}

.hero-text {
    flex: 1;
}

.hero-calculator {
    flex: 1;
    background-color: var(--white);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    color: var(--primary);
    /* Prevent CLS */
    min-height: 500px;
}

.hero h1 {
    font-size: 40px;
    margin-bottom: 20px;
    color: var(--white);
}

.hero p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
    color: var(--white);
}

.hero-badges {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.hero-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 10px 15px;
    border-radius: 5px;
    backdrop-filter: blur(10px);
}

.hero-badge i {
    color: var(--light);
    font-size: 20px;
}

.hero-cta {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

/* Hero specific outline button */
.hero .btn-outline {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.hero .btn-outline:hover {
    background-color: var(--white);
    color: var(--primary);
}

.calculator-title {
    text-align: center;
    margin-bottom: 20px;
    color: var(--primary);
}

.calculator-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

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

.form-group label {
    font-weight: 500;
    font-size: 14px;
    color: var(--primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 15px;
    border: 1px solid var(--light);
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.3s;
    width: 100%;
    font-family: inherit;
    background-color: var(--white);
    /* Prevent CLS */
    min-height: 44px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 2px rgba(84, 128, 163, 0.1);
    outline: none;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.hero-calculator .btn {
    margin-top: 15px;
}

.calculator-note {
    text-align: center;
    font-size: 12px;
    margin-top: 15px;
    color: var(--dark-gray);
}

/* Voice Search Optimized Section */
.voice-search-answers {
    padding: 40px 0;
    background: #f8f8f8;
}

.voice-search-answers h2 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--primary);
}

.voice-search-answers > div > div {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.voice-search-answers > div > div > div {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.voice-search-answers h3 {
    color: var(--primary);
    margin-bottom: 10px;
    font-size: 18px;
}

.voice-search-answers p {
    color: var(--dark-gray);
    line-height: 1.6;
}

.voice-search-answers strong {
    color: var(--secondary);
}

/* FAQ Section */
.faq-section {
    padding: 80px 0;
    background-color: var(--light);
}

.faq-section .section-header h2,
.faq-section .section-header p {
    color: var(--primary);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.faq-item {
    background-color: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.faq-item h3 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 20px;
}

.faq-item p {
    color: var(--dark-gray);
    line-height: 1.6;
}

.faq-item strong {
    color: var(--secondary);
}

/* GDPR Cookie Notice */
.cookie-notice {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--primary);
    color: var(--white);
    padding: 20px 0;
    z-index: 9999;
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.2);
    display: none;
}

.cookie-notice.show {
    display: block;
}

.cookie-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.cookie-content p {
    margin: 0;
    color: var(--white);
    flex: 1;
}

.cookie-content a {
    color: var(--light);
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 15px;
}

/* Trust Badges - Optimized for CLS */
.trust-badges {
    padding: 30px 0;
    background-color: var(--white);
    border-bottom: 1px solid var(--light);
    /* Prevent CLS */
    min-height: 110px;
}

.trust-badges .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
    min-width: 200px;
}

.trust-badge-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--light);
    border-radius: 50%;
    color: var(--secondary);
    font-size: 24px;
    /* Prevent CLS */
    flex-shrink: 0;
}

.trust-badge-text h4 {
    font-size: 16px;
    margin-bottom: 0;
    color: var(--primary);
}

.trust-badge-text p {
    font-size: 14px;
    margin-bottom: 0;
    color: var(--dark-gray);
}

/* Client Logos */
.client-logos {
    padding: 40px 0;
    background-color: var(--light);
}

.client-logos-title {
    text-align: center;
    margin-bottom: 30px;
}

.client-logos-title h3 {
    font-size: 20px;
    color: var(--primary);
}

.logo-carousel {
    display: flex;
    gap: 40px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.client-logo {
    max-width: 120px;
    height: auto;
    opacity: 0.8;
    transition: opacity 0.3s;
    /* Prevent CLS */
    aspect-ratio: 2/1;
    object-fit: contain;
}

.client-logo:hover {
    opacity: 1;
}

/* Services Section - FIXED */
.services {
    padding: 80px 0;
    background-color: var(--white);
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--secondary);
}

.section-header p {
    max-width: 700px;
    margin: 0 auto;
    font-size: 18px;
    color: var(--dark-gray);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(47, 71, 93, 0.1);
    transition: all 0.3s;
    border: 1px solid var(--light);
    /* Fixed height without aspect-ratio conflict */
    min-height: 450px;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(47, 71, 93, 0.2);
}

.service-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.service-image img,
.service-image picture {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.service-card:hover .service-image img {
    transform: scale(1.1);
}

.service-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.service-content h3 {
    font-size: 22px;
    margin-bottom: 15px;
}

.service-content p {
    margin-bottom: 20px;
    color: var(--dark-gray);
}

.service-features {
    margin-bottom: 20px;
    flex: 1;
}

.service-features li {
    padding: 5px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--dark-gray);
}

.service-features li i {
    color: var(--secondary);
}

.service-cta {
    text-align: center;
    margin-top: auto;
}

/* Projects Section - FIXED */
.projects {
    padding: 80px 0;
    background-color: var(--light);
}

.projects .section-header h2,
.projects .section-header p {
    color: var(--primary);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.project-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    height: 300px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1), rgba(47, 71, 93, 0.9));
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 25px;
    opacity: 0;
    transition: opacity 0.3s;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-card:hover .project-image {
    transform: scale(1.1);
}

.project-overlay h3 {
    color: var(--white);
    margin-bottom: 10px;
}

.project-overlay p {
    color: var(--white);
    opacity: 0.8;
    margin-bottom: 15px;
}

.project-overlay a {
    color: var(--white);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.project-overlay a:hover {
    color: var(--light);
}

.projects-cta {
    text-align: center;
    margin-top: 50px;
}

/* Why Choose Us */
.why-choose {
    padding: 80px 0;
    background-color: var(--white);
}

.why-choose-wrapper {
    display: flex;
    gap: 50px;
    align-items: center;
}

.why-choose-content {
    flex: 1;
}

.why-choose-image {
    flex: 1;
    position: relative;
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(47, 71, 93, 0.2);
}

.why-choose-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.experience-badge {
    position: absolute;
    bottom: 30px;
    right: 30px;
    width: 120px;
    height: 120px;
    background-color: var(--secondary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(84, 128, 163, 0.3);
}

.experience-badge span:first-child {
    font-size: 36px;
    font-weight: 700;
    line-height: 1;
}

.experience-badge span:last-child {
    font-size: 14px;
    text-transform: uppercase;
}

.why-choose-list {
    margin-top: 30px;
}

.why-choose-item {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.why-choose-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    background-color: var(--light);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
    font-size: 20px;
}

.why-choose-text h4 {
    margin-bottom: 10px;
    font-size: 18px;
}

.why-choose-text p {
    color: var(--dark-gray);
    margin-bottom: 0;
}

/* Blog Posts - FIXED */
.blog-section {
    padding: 80px 0;
    background-color: var(--light);
}

.blog-section .section-header h2,
.blog-section .section-header p {
    color: var(--primary);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.blog-card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    /* Fixed height without aspect-ratio conflict */
    min-height: 420px;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.blog-image {
    height: 200px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.blog-card:hover .blog-image img {
    transform: scale(1.1);
}

.blog-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 14px;
    color: var(--dark-gray);
}

.blog-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.blog-content h3 {
    font-size: 20px;
    margin-bottom: 15px;
}

.blog-content p {
    margin-bottom: 20px;
    color: var(--dark-gray);
    flex: 1;
}

.blog-cta {
    text-align: center;
    margin-top: 50px;
}

/* Testimonials */
.testimonials {
    padding: 80px 0;
    background-color: var(--secondary);
    color: var(--white);
}

.testimonials .section-header h2 {
    color: var(--white);
}

.testimonials .section-header p {
    opacity: 0.9;
    color: var(--white);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.testimonial-card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 30px;
    position: relative;
    backdrop-filter: blur(10px);
    /* Prevent CLS */
    min-height: 250px;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 15px;
    left: 15px;
    font-size: 60px;
    font-family: Georgia, serif;
    color: rgba(255, 255, 255, 0.2);
    line-height: 1;
}

.testimonial-content {
    margin-bottom: 20px;
    font-style: italic;
    line-height: 1.7;
    color: var(--white);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.testimonial-author-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    /* Prevent CLS */
    flex-shrink: 0;
}

.testimonial-author-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-author-info h4 {
    color: var(--white);
    margin-bottom: 5px;
    font-size: 16px;
}

.testimonial-author-info p {
    margin-bottom: 0;
    opacity: 0.7;
    font-size: 14px;
    color: var(--white);
}

/* Call to Action */
.cta-section {
    padding: 80px 0;
    background-color: var(--white);
    text-align: center;
    border-top: 1px solid var(--light);
    border-bottom: 1px solid var(--light);
}

.cta-title {
    font-size: 36px;
    margin-bottom: 20px;
    color: var(--primary);
}

.cta-description {
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto 30px;
    color: var(--dark-gray);
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
}

/* Quick Quote */
.quick-quote {
    padding: 80px 0;
    background-color: var(--light);
}

.quick-quote-form {
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(47, 71, 93, 0.1);
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-col {
    flex: 1;
}

.quick-quote-form .btn {
    width: 100%;
    margin-top: 20px;
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 20px;
}

.form-checkbox input {
    margin-top: 5px;
}

.form-checkbox label {
    font-size: 14px;
    color: var(--dark-gray);
}

.discount-note {
    background-color: var(--light);
    border: 1px solid var(--secondary);
    border-radius: 4px;
    padding: 15px;
    margin-top: 20px;
    font-size: 14px;
}

.discount-note h4 {
    color: var(--secondary);
    font-size: 16px;
    margin-bottom: 10px;
}

.discount-note p {
    margin-bottom: 5px;
    color: var(--primary);
}

/* Footer */
.footer {
    background-color: var(--primary);
    color: var(--white);
    padding-top: 70px;
}

.footer-top {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-widget h3 {
    color: var(--white);
    font-size: 20px;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-widget h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--secondary);
}

.about-widget p {
    margin-bottom: 20px;
    opacity: 0.7;
    color: var(--white);
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--white);
    transition: all 0.3s;
}

.footer-social a:hover {
    background-color: var(--secondary);
    color: var(--white);
    transform: translateY(-3px);
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links li a {
    color: var(--white);
    opacity: 0.7;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-links li a:hover {
    opacity: 1;
    color: var(--white);
    padding-left: 5px;
}

.footer-links li a i {
    font-size: 10px;
}

.footer-contact-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.footer-contact-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: var(--light);
    flex-shrink: 0;
}

.footer-contact-text {
    flex: 1;
}

.footer-contact-text h4 {
    color: var(--white);
    margin-bottom: 5px;
    font-size: 16px;
}

.footer-contact-text p,
.footer-contact-text a {
    color: var(--white);
    opacity: 0.7;
    margin-bottom: 0;
}

.footer-contact-text a:hover {
    opacity: 1;
    color: var(--light);
}

.footer-bottom {
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 14px;
    opacity: 0.7;
}

.footer-bottom p {
    color: var(--white);
}

.footer-bottom a {
    color: var(--light);
    opacity: 1;
    text-decoration: none;
    transition: all 0.3s;
}

.footer-bottom a:hover {
    color: var(--secondary);
    opacity: 1;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary);
    z-index: 9999;
    padding: 20px;
    display: none;
    flex-direction: column;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
}

.mobile-menu.active {
    display: flex;
    transform: translateX(0);
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.mobile-menu-close {
    font-size: 24px;
    color: var(--white);
    cursor: pointer;
    background: none;
    border: none;
    padding: 8px;
}

.mobile-menu ul {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mobile-menu > ul > li {
    position: relative;
}

.mobile-menu ul li a {
    color: var(--white);
    font-size: 18px;
    display: block;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Mobile submenu */
.mobile-menu .has-submenu > a::after {
    content: '+';
    float: right;
    color: var(--light);
    font-size: 20px;
    transition: transform 0.3s;
}

.mobile-menu .has-submenu.active > a::after {
    transform: rotate(45deg);
}

.mobile-menu .mobile-submenu {
    display: none;
    padding-left: 20px;
    margin-top: 10px;
}

.mobile-menu .mobile-submenu.active {
    display: block;
}

.mobile-menu .mobile-submenu li a {
    font-size: 16px;
    padding: 8px 0;
    opacity: 0.8;
}

.mobile-menu-cta {
    margin-top: 30px;
}

.mobile-menu-cta .btn {
    width: 100%;
    background-color: var(--secondary);
    color: var(--white);
}

.mobile-menu-contact {
    margin-top: 30px;
    color: var(--white);
}

.mobile-menu-contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.mobile-menu-contact-item i {
    color: var(--light);
}

.mobile-menu-contact-item a {
    color: var(--white);
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--secondary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 99;
    box-shadow: 0 5px 15px rgba(84, 128, 163, 0.3);
    border: none;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(47, 71, 93, 0.4);
}

.back-to-top:focus {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
}

/* Sticky Call Button (Mobile) */
.sticky-call {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--secondary);
    color: var(--white);
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 99;
    box-shadow: 0 5px 15px rgba(84, 128, 163, 0.3);
    animation: pulse 2s infinite;
}

/* Exit Intent Popup */
.exit-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.exit-popup.active {
    display: flex;
}

.exit-popup-content {
    background-color: var(--white);
    max-width: 500px;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.exit-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 20px;
    cursor: pointer;
    color: var(--primary);
    z-index: 1;
    background: none;
    border: none;
    padding: 8px;
}

.exit-popup-header {
    background-color: var(--secondary);
    padding: 20px;
    text-align: center;
    color: var(--white);
}

.exit-popup-header h3 {
    color: var(--white);
    margin-bottom: 10px;
}

.exit-popup-body {
    padding: 30px;
}

.exit-popup-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.exit-popup-form .btn {
    margin-top: 10px;
}

/* JAVÍTOTT ANIMÁCIÓK */
/* Animation Keyframes */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(84, 128, 163, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(84, 128, 163, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(84, 128, 163, 0);
    }
}

/* Kezdő állapotok - EZEK KELLENEK AZ ELEMEKRE ALAPBÓL */
.hero h1,
.hero p,
.hero-badges,
.hero-cta,
.hero-calculator {
    opacity: 0;
    transform: translateY(30px);
}

.service-card,
.project-card,
.blog-card,
.testimonial-card,
.faq-item,
.why-choose-item,
.trust-badge {
    opacity: 0;
    transform: translateY(30px);
}

.section-header {
    opacity: 0;
    transform: translateY(20px);
}

/* Animációs osztályok - ezeket adja hozzá a JS amikor láthatóvá válnak */
.animate-in {
    animation: fadeInUp 0.8s ease forwards;
}

.animate-in-left {
    animation: fadeInLeft 0.8s ease forwards;
}

.animate-in-right {
    animation: fadeInRight 0.8s ease forwards;
}

.animate-in-scale {
    animation: scaleIn 0.8s ease forwards;
}

/* Hero animációk speciális késleltetéssel */
.hero-animate {
    animation: fadeInUp 0.8s ease forwards;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .hero-split {
        flex-direction: column;
        gap: 30px;
    }

    .hero-text {
        text-align: center;
    }
    
    .hero h1 {
        font-size: 32px;
        line-height: 1.2;
    }
    
    .hero p {
        font-size: 16px;
    }

    .hero-badges {
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .hero-badge {
        flex: 1;
        min-width: 140px;
        justify-content: center;
    }

    .hero-cta {
        justify-content: center;
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    
    .hero-cta .btn {
        width: 100%;
        max-width: 300px;
    }

    .why-choose-wrapper {
        flex-direction: column;
    }

    .why-choose-image {
        width: 100%;
    }

    .submenu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background-color: rgba(255, 255, 255, 0.05);
        min-width: auto;
        padding: 0;
        margin: 10px 0;
        display: none;
    }

    .submenu.active {
        display: block;
    }

    .nav-menu li a i {
        margin-left: auto;
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    /* IMPROVED MOBILE READABILITY */
    body {
        font-size: 16px !important;
        line-height: 1.6 !important;
    }
    
    p {
        font-size: 16px !important;
        line-height: 1.6 !important;
    }

    h1 {
        font-size: 28px;
        line-height: 1.3;
        margin-bottom: 15px;
    }

    h2 {
        font-size: 24px;
        line-height: 1.3;
        margin-bottom: 15px;
    }

    h3 {
        font-size: 20px;
        line-height: 1.3;
        margin-bottom: 12px;
    }

    h4 {
        font-size: 18px;
        line-height: 1.3;
        margin-bottom: 10px;
    }
    
    .mobile-toggle {
        display: block;
    }

    .sticky-call {
        display: flex;
    }

    .nav-menu {
        display: none;
    }
    
    .container {
        padding: 0 15px;
    }

    .services {
        padding: 50px 0;
    }

    .projects {
        padding: 50px 0;
    }

    .why-choose {
        padding: 50px 0;
    }

    .blog-section {
        padding: 50px 0;
    }

    .testimonials {
        padding: 50px 0;
    }

    .cta-section {
        padding: 50px 0;
    }

    .quick-quote {
        padding: 50px 0;
    }

    .quick-quote-form {
        padding: 25px;
    }
    
    .faq-section {
        padding: 50px 0;
    }
    
    .faq-item {
        padding: 20px;
    }
}

/*
@media (prefers-reduced-motion: reduce) {
    *,\n    *::before,\n    *::after {
        animation-duration: 0.01ms !important;
        animation-delay: -1ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        transition-delay: -1ms !important;
    }
}
*/

/* --- VÉGLEGES ÉS HIBAMENTES KÓD A "People Also Ask" szekcióhoz --- */
.people-also-ask details {
    margin-bottom: 20px;
    border: 1px solid var(--light);
    border-radius: 8px;
    background: var(--white);
    transition: box-shadow 0.3s ease-in-out;
}

.people-also-ask details:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.people-also-ask summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--primary);
    font-size: 18px;
    list-style: none;
    position: relative;
    padding: 20px 40px 20px 20px;
}

.people-also-ask summary::before {
    content: '+';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    color: var(--secondary);
    transition: transform 0.3s ease-in-out, content 0.3s ease-in-out;
}

.people-also-ask details[open] summary::before {
    content: '-';
    transform: translateY(-50%) rotate(180deg);
}

.people-also-ask .faq-content {
    opacity: 0;
    height: 0;
    overflow: hidden;
    /* ITT A KULCS: Hozzáadtuk a padding-et az átmenethez */
    transition: height 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.5s ease-out, padding 0.5s ease-out;
    padding: 0 20px;
}

.people-also-ask details[open] .faq-content {
    opacity: 1;
    /* A height beállítását a JavaScript végzi */
    padding: 20px;
    padding-top: 0;
}

.people-also-ask .faq-content p {
    margin: 0;
    padding: 0;
    color: var(--dark-gray);
}