:root {
    --black: #080808;
    --white: #f5f5f5;
    --gold: #b28c3b;
    --gold-accent: #e0b04c;
    --grey-dark: #1a1a1a;
}

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

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--black);
    line-height: 1.8;
    background-color: var(--white);
    overflow-x: hidden;
}

/* Responsive heading sizing and safe wrapping for long translations */
.heading-xl { 
    font-size: clamp(1.75rem, 6vw + 0.5rem, 3.5rem);
    font-weight: 700; 
    line-height: 1.05; 
    letter-spacing: 1.5px; 
    text-transform: uppercase; 
    margin: 0 auto;
    max-width: 100%;
    word-break: break-word;
    overflow-wrap: break-word;
    white-space: normal;
}
.heading-lg { 
    font-size: clamp(1.2rem, 3vw + 0.4rem, 2.2rem);
    font-weight: 600; 
    position: relative; 
    display: inline-block;
    padding-bottom: 10px;
}
.heading-lg.center-heading { 
    width: 100%; 
    display: block; 
    text-align: center;
}
.heading-lg::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 80px;
    height: 4px;
    background-color: var(--gold-accent);
    transition: transform 0.6s ease;
}
.section.active .heading-lg::after {
    transform: scaleX(1);
}
.heading-lg.center-heading::after {
    left: 50%;
    transform: translateX(-50%);
}

.subtitle { 
    font-size: clamp(0.95rem, 2.2vw + 0.1rem, 1.25rem); 
    font-weight: 300; 
    max-width: 900px; 
    margin: 20px auto 0; 
    padding: 0 10px;
    word-break: break-word;
    overflow-wrap: break-word;
}

.gold-text { color: var(--gold); }
.white-text { color: var(--white); }
.montserrat { font-family: 'Montserrat', sans-serif; }
.open-sans { font-family: 'Open Sans', sans-serif; }

.section {
    padding: 120px 6%; 
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

.dark-bg { background-color: var(--black); color: var(--white); }
.light-bg { background-color: var(--white); color: var(--black); }

/* Navbar: allow wrap and better mobile layout */
.navbar {
    background-color: var(--black);
    padding: 0 6%;
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.7);
    gap: 12px;
    flex-wrap: wrap; /* allow button to drop under if needed */
}
.nav-logo { 
    height: 56px;
    transition: transform 0.3s;
}

/* main nav (desktop) */
.navbar a {
    color: var(--white);
    text-decoration: none;
    margin-left: 30px;
    font-weight: 400;
    transition: color 0.4s;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: inline-block;
    white-space: nowrap;
}
.navbar a:hover { color: var(--gold-accent); }

.lang-switcher {
    background: none;
    color: var(--white); 
    border: 1px solid var(--grey-dark); 
    padding: 8px 14px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9em;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.lang-switcher::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--gold-accent);
    transform: scaleX(0); 
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94); 
}

.lang-switcher:hover {
    color: var(--gold-accent); 
    border-color: var(--gold); 
}

.lang-switcher:hover::after {
    transform: scaleX(1); 
}

.cta-button {
    display: inline-block;
    background-color: var(--gold-accent);
    color: var(--black) !important;
    padding: 16px 34px;
    margin-top: 30px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: none;
}
.cta-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gold);
    z-index: -1;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.5s ease-out;
}
.cta-button:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}
.cta-button:hover { color: var(--black); }

.secondary-button {
    display: inline-block;
    background: none;
    border: 1px solid var(--gold);
    color: var(--black) !important;
    padding: 12px 26px;
    transition: all 0.3s;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.secondary-button:hover {
    background-color: var(--gold);
    color: var(--black) !important;
}

/* Hero */
.hero-section {
    text-align: center;
    padding-top: calc(80px + 140px);
    min-height: 70vh;
}

/* keep hero content constrained so long translations wrap nicely */
.hero-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 12px;
}

/* service matrix adjustments */
.service-matrix {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 80px;
    padding: 20px 0;
    border-top: 1px solid #333;
    border-bottom: 1px solid #333;
    flex-wrap: wrap;
}
.matrix-item {
    font-size: 1.05em;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: transform 0.3s, color 0.3s;
}
.matrix-item i {
    font-size: 2.2em;
    display: block;
    margin-bottom: 10px;
    transition: color 0.3s;
}
.matrix-item:hover { transform: translateY(-10px); }
.matrix-item:hover i { color: var(--gold-accent); }

.about-section { padding: 0; }
.about-container { display: flex; min-height: 100vh; gap: 0; }
.about-image-side {
    width: 55%;
    background-color: var(--grey-dark);
    clip-path: polygon(0 0, 100% 0, 85% 100%, 0% 100%);
    filter: brightness(0.8);
    transition: filter 0.5s;
    background-size: cover;
    background-position: center;
    background-image: url('my-photo.jpg');
}
.about-image-side:hover {
    filter: brightness(1);
}
.about-text-side {
    width: 45%;
    padding: 80px 5%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.about-text-side p { margin-bottom: 30px; }
.about-text-side h3 { margin-top: 40px; margin-bottom: 20px; font-size: 1.2em; font-weight: 600; }
.clean-list { list-style: none; padding-left: 0; }
.clean-list li { margin-bottom: 15px; font-weight: 300; }
.clean-list span { font-weight: 600; margin-right: 5px; }

.services-section { text-align: center; }
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 40px;
    margin-top: 60px;
}
.service-card {
    background-color: var(--grey-dark);
    padding: 28px;
    border-radius: 2px;
    text-align: left;
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-left 0.4s ease;
    border-left: 5px solid var(--gold); 
    position: relative;
    overflow: hidden;
}
.card-icon {
    font-size: 2.6em;
    margin-bottom: 18px;
    color: var(--gold-accent);
    transition: transform 0.4s;
}
.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    border-left: 5px solid var(--gold-accent);
}
.service-card:hover .card-icon { transform: rotateY(360deg); }

.service-card h3 {
    font-size: 1.3em;
    margin-bottom: 10px;
    font-weight: 600;
    letter-spacing: 1px;
}
.service-card p {
    color: #c0c0c0;
    font-weight: 300;
}

.references-section { text-align: center; }
.reference-quotes {
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 40px; 
    margin-top: 60px;
}
.quote-box {
    width: 100%; 
    max-width: none;
    padding: 28px;
    background-color: var(--white);
    border: 1px solid #ccc;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-top: 4px solid var(--gold-accent);
    transition: all 0.3s;
}
.quote-box:hover {
    transform: scale(1.01);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}
.quote-box i { font-size: 1.6em; margin-bottom: 15px; display: block; }
.quote-box p { font-size: 1.0em; line-height: 1.6; font-style: italic; }
.quote-box cite {
    display: block;
    font-style: normal;
    font-weight: 600;
    color: var(--gold);
    margin-top: 15px;
    border-top: 1px dashed #ddd;
    padding-top: 10px;
}

.contact-section { text-align: center; }
.contact-grid {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 40px;
    text-align: left;
    flex-wrap: wrap;
}
.contact-info-block { width: 40%; padding: 20px; min-width: 260px; }
.contact-details { margin-top: 20px; }
.contact-details p { 
    margin-bottom: 12px; 
    font-size: 1.05em; 
    display: flex; 
    align-items: center; 
}
.contact-details i { margin-right: 12px; font-size: 1.1em; }
.contact-info-block h3 { font-size: 1.6em; margin-bottom: 12px; font-weight: 700; }

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
    width: 40%;
    min-width: 260px;
}
.contact-form input,
.contact-form textarea {
    padding: 14px 16px;
    border: 1px solid #444;
    background-color: #1a1a1a;
    color: var(--white);
    border-radius: 0;
    transition: border-color 0.3s;
    font-family: 'Open Sans', sans-serif;
    font-weight: 300;
}
.contact-form input:focus,
.contact-form textarea:focus { border-color: var(--gold-accent); outline: none; }
.contact-form textarea { min-height: 140px; }

.contact-form .cta-button { 
    width: 100%;
    margin-top: 6px;
}

.footer {
    padding: 20px 6%;
    text-align: center;
    font-size: 0.9em;
    color: #bbb;
    background-color: var(--black);
    border-top: 1px solid #222;
}

.animate-fade-in { opacity: 0; transform: translateY(20px); transition: opacity 1s ease-out, transform 1s ease-out; }
.animate-fade-in.active { opacity: 1; transform: translateY(0); }
.animate-slide-up { opacity: 0; transform: translateY(50px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.animate-slide-up.active { opacity: 1; transform: translateY(0); }
.animate-slide-left { opacity: 0; transform: translateX(-50px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.animate-slide-left.active { opacity: 1; transform: translateX(0); }
.animate-slide-right { opacity: 0; transform: translateX(50px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.animate-slide-right.active { opacity: 1; transform: translateX(0); }

.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }
.delay-3 { transition-delay: 0.6s; }
.delay-4 { transition-delay: 0.8s; }
.delay-5 { transition-delay: 1.0s; }
.delay-6 { transition-delay: 1.2s; }

/* Medium screens */
@media (max-width: 1200px) {
    .section { padding: 90px 5%; }
    .about-container { flex-direction: column; min-height: auto; }
    .about-image-side { 
        width: 100%; 
        min-height: 320px;
        clip-path: polygon(0 0, 100% 0, 100% 95%, 0% 100%);
    }
    .about-text-side { width: 100%; padding: 60px 5%; }
}

/* Small tablets / large phones */
@media (max-width: 900px) {
    .main-nav { display: none; } /* keep existing behavior: hide menu on smaller screens */
    .hero-section { padding-top: 140px; }
    .nav-logo { height: 52px; }
    .heading-xl { letter-spacing: 1px; }
    .subtitle { font-size: 1rem; }
    .service-matrix { gap: 30px; margin-top: 60px; }
    .reference-quotes { grid-template-columns: 1fr; gap: 20px; }
    .quote-box { padding: 20px; }
    .contact-grid { gap: 30px; }
    .contact-info-block, .contact-form { width: 100%; min-width: auto; }
    .section { padding: 70px 5%; }
}

/* Phones */
@media (max-width: 600px) {
    .navbar { padding: 5pxpx 4%; height: auto; align-items: center; gap: 8px; }
    .nav-logo { height: 46px; margin-right: 6px; }
    .lang-switcher { padding: 8px 10px; font-size: 0.85rem; }
    
    /* A JAVÍTÁS */
    .hero-section { padding-top: 200px; } 
    
    .heading-xl { font-size: clamp(1.3rem, 8vw + 0.2rem, 2.2rem); letter-spacing: 0.5px; padding: 0 6px; }
    .subtitle { font-size: 0.95rem; padding: 0 8px; }
    .cta-button { padding: 12px 20px; margin-top: 24px; }
    .service-matrix { gap: 18px; margin-top: 40px; }
    .matrix-item i { font-size: 1.8em; }
    .about-text-side { padding: 36px 5%; }
    .section { padding: 60px 4%; }
    .contact-form input, .contact-form textarea { padding: 12px 14px; }
    .quote-box { padding: 16px; }
}