:root {
    --primary: #8B4513;
    --primary-dark: #654321;
    --accent: #F5DEB3;
    --secondary: #8B4513;
    --bg: #FFF8DC;
    --text: #2F4F4F;
    --light: #ffffff;
    --shadow: rgba(0, 0, 0, 0.1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    scroll-behavior: smooth;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

header {
    background: var(--primary-dark);
    min-height: 70vh;
    position: relative;
    color: #fff;
    isolation: isolate;
}

header::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(0,0,0,0.7), rgba(0,0,0,0.4));
    backdrop-filter: blur(2px);
    z-index: -1;
}

.nav {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 5vw;
}

.logo {
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.nav-toggle {
    display: none;
}

.nav-overlay {
    display: none;
}

.nav-toggle-label {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.nav-toggle-label span {
    width: 25px;
    height: 3px;
    background-color: #fff;
    transition: 0.3s;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    font-size: 0.95rem;
}

.nav-links a {
    position: relative;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 0;
    height: 2px;
    background-color: #fff;
    transition: width 0.2s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* ── Nyelvválasztó ─────────────────────────── */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 3px;
}

.lang-btn {
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.4px;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    border: 1px solid transparent;
    transition: color 0.2s, border-color 0.2s;
    line-height: 1.6;
}

.lang-btn:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.5);
}

.lang-btn.lang-active {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.75);
}

.lang-btn::after { display: none !important; }

@media (max-width: 768px) {
    .lang-btn {
        padding: 2px 6px;
        font-size: 10px;
    }
}
/* ─────────────────────────────────────────── */

.hero {
    position: relative;
    z-index: 2;
    padding: 6rem 5vw 4rem;
    max-width: 900px;
}

.hero h1 {
    font-size: clamp(2.2rem, 3.2vw, 3rem);
    margin-bottom: 1rem;
}

.hero p {
    max-width: 600px;
    margin-bottom: 2rem;
    font-size: 1rem;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.6rem;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 0.85rem;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.2s ease;
}

.btn-primary {
    background-color: var(--primary);
    color: #fff;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}

.btn-sec {
    background-color: transparent;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.7);
}

.btn-sec:hover {
    background-color: rgba(255,255,255,0.1);
    transform: translateY(-1px);
}

.btn-outline {
    background-color: transparent;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.7);
}

.btn-outline:hover {
    background-color: rgba(255,255,255,0.1);
    transform: translateY(-1px);
}

main {
    padding: 3rem 5vw 4rem;
}

section {
    margin-bottom: 3.5rem;
    animation: fadeInUp 0.8s ease-out;
}

.section-title {
    font-size: 1.7rem;
    margin-bottom: 0.5rem;
    color: var(--primary-dark);
}

.section-subtitle {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 1.2rem;
}

#about {
    background: linear-gradient(160deg, rgba(245,222,179,0.22) 0%, rgba(255,255,255,0) 60%);
    border-radius: 1.5rem;
    padding: 2rem 2rem 2.5rem;
}

.about-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr);
    gap: 2.5rem;
    align-items: start;
}

.about-text > p:first-child {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--text);
    margin-bottom: 1rem;
}

.about-text > p:last-of-type {
    font-style: italic;
    font-size: 1.05rem;
    color: var(--primary-dark);
    border-left: 3px solid var(--primary);
    padding-left: 0.9rem;
    margin-bottom: 0;
}

.about-why-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-top: 1.8rem;
    margin-bottom: 0.9rem;
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.about-why-title::before {
    content: "";
    display: inline-block;
    width: 28px;
    height: 3px;
    background-color: var(--primary);
    border-radius: 2px;
    flex-shrink: 0;
}

.about-highlights {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
}

.highlight-card {
    background-color: var(--light);
    padding: 1rem 1.1rem;
    border-radius: 0.75rem;
    border-left: 3px solid var(--primary);
    box-shadow: 0 4px 14px var(--shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.highlight-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.13);
}

.highlight-title {
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--primary-dark);
    margin-bottom: 0.3rem;
    line-height: 1.4;
}

.highlight-text {
    font-size: 0.87rem;
    color: #666;
    line-height: 1.55;
}

.about-image {
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 14px 36px rgba(0,0,0,0.2);
    position: sticky;
    top: 1.5rem;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.project-card {
    background-color: var(--light);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 8px 22px var(--shadow);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px var(--shadow);
}

.project-image {
    position: relative;
    padding-top: 65%;
    overflow: hidden;
}

.project-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.06);
}

.project-content {
    padding: 1rem 1.1rem 1.1rem;
}

.project-title {
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.project-meta {
    font-size: 0.85rem;
    color: #777;
    margin-bottom: 0.5rem;
}

.project-desc {
    font-size: 0.92rem;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    gap: 2rem;
    align-items: flex-start;
}

.contact-form {
    background-color: var(--light);
    padding: 1.5rem 1.7rem;
    border-radius: 1rem;
    box-shadow: 0 8px 22px var(--shadow);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.9rem;
}

.form-group {
    margin-bottom: 0.9rem;
}

label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

input,
textarea {
    width: 100%;
    padding: 0.6rem 0.75rem;
    border-radius: 0.4rem;
    border: 1px solid #ccc;
    font: inherit;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(139, 90, 43, 0.18);
}

textarea {
    min-height: 140px;
    resize: vertical;
}

.contact-info {
    font-size: 0.95rem;
}

.fb-link {
    display: inline-block;
    margin-top: 0.75rem;
    transition: opacity 0.2s;
}

.fb-link:hover {
    opacity: 0.75;
}

.contact-info p {
    margin-bottom: 0.5rem;
}

.info-block {
    margin-top: 1rem;
}

.info-label {
    font-weight: 600;
}

/* Ajtó méretek szekció */
#door-params-wrap {
    margin-bottom: 1rem;
}

.door-section-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.door-entry {
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem 0.5rem;
    margin-bottom: 0.75rem;
}

.btn-door-add {
    background: none;
    border: 1px dashed #8B4513;
    color: #8B4513;
    padding: 0.4rem 0.9rem;
    border-radius: 0.4rem;
    cursor: pointer;
    font-size: 0.88rem;
    margin-top: 0.25rem;
}

.btn-door-add:hover {
    background: #f5ece5;
}

.btn-door-remove {
    background: none;
    border: none;
    color: #999;
    font-size: 0.8rem;
    cursor: pointer;
    padding: 0.1rem 0;
    margin-top: 0.25rem;
}

.btn-door-remove:hover {
    color: #c0392b;
}

/* Panel – ajtó méret táblázat */
.door-params-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.87rem;
    margin-top: 0.4rem;
}

.door-params-table th,
.door-params-table td {
    border: 1px solid #e0e0e0;
    padding: 0.4rem 0.6rem;
    text-align: left;
}

.door-params-table th {
    background: #f4f4f4;
    font-weight: 600;
}

footer {
    background-color: #1f130a;
    color: #eee;
    padding: 1.2rem 5vw;
    font-size: 0.85rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.5rem;
}

@media (max-width: 768px) {
    .nav-toggle-label {
        display: flex;
        position: relative;
        z-index: 30;
    }

    .nav-overlay {
        display: block;
        position: fixed;
        inset: 0;
        background-color: rgba(0,0,0,0.5);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        z-index: 5;
    }

    .nav-toggle:checked ~ .nav-overlay {
        opacity: 1;
        visibility: visible;
    }

    .nav-toggle:checked ~ .hero {
        opacity: 0;
        visibility: hidden;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: rgba(0,0,0,0.9);
        flex-direction: column;
        padding: 1rem 5vw;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 20;
    }

    .nav-toggle:checked ~ .nav-links {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-toggle:checked ~ .nav-toggle-label span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle:checked ~ .nav-toggle-label span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle:checked ~ .nav-toggle-label span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .about-grid,
    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    #about {
        padding: 1.2rem 1rem 1.5rem;
    }

    .about-image {
        position: static;
    }

    .about-highlights {
        grid-template-columns: 1fr;
    }

    header {
        min-height: 60vh;
    }

    .hero {
        padding-top: 4.5rem;
    }
}



/* Feature list stílusok */
.feature-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.feature-item {
    background-color: var(--light);
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 5px 18px var(--shadow);
}

.feature-item h3 {
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.feature-item p {
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Timeline stílusok */
.process-timeline {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.timeline-item {
    background-color: var(--light);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 5px 18px var(--shadow);
    text-align: center;
    transition: all 0.3s ease;
}

.timeline-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px var(--shadow);
}

.timeline-number {
    width: 3rem;
    height: 3rem;
    background-color: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    margin: 0 auto 1rem;
    box-shadow: 0 4px 12px rgba(139, 69, 19, 0.3);
}

.timeline-content h3 {
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.timeline-content p {
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Testimonial stílusok */
.testimonial-box {
    background-color: var(--light);
    padding: 2rem 2.5rem;
    border-radius: 1rem;
    box-shadow: 0 8px 25px var(--shadow);
    max-width: 900px;
    margin: 0 auto;
}

.testimonial-text {
    font-size: 1.05rem;
    line-height: 1.8;
    font-style: italic;
    color: var(--text);
    margin-bottom: 1rem;
}

.testimonial-author {
    text-align: right;
    font-weight: 600;
    color: var(--primary-dark);
}

/* CTA box stílusok */
.cta-box {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: white;
    padding: 3rem 2.5rem;
    border-radius: 1.5rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.cta-box h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.cta-box p {
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-box .hero-cta {
    justify-content: center;
    margin-top: 1rem;
}

/* Reszponzív módosítások */
@media (max-width: 768px) {
    .feature-list {
        grid-template-columns: 1fr;
    }

    .process-timeline {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .timeline-number {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1rem;
    }

    .timeline-content {
        padding: 1.5rem;
    }

    .testimonial-box {
        padding: 1.5rem;
    }

    .cta-box {
        padding: 2rem 1.5rem;
    }

    .cta-box h2 {
        font-size: 1.5rem;
    }

        .timeline-item {
        background-color: white;
    }
}

/* Referencia csempék */
.tile-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.tile-card {
    display: flex;
    flex-direction: column;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 8px 24px var(--shadow);
    background-color: var(--light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.tile-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 36px rgba(0,0,0,0.15);
}

.tile-img {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #e8d5b7;
}

.tile-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.tile-card:hover .tile-img img {
    transform: scale(1.06);
}

.tile-no-img {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--primary);
}

.tile-body {
    padding: 1rem 1.2rem 1.3rem;
}

.tile-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 0.4rem;
}

.tile-desc {
    font-size: 0.88rem;
    color: #666;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .tile-grid {
        grid-template-columns: 1fr;
    }
}

/* Modal */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.65);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    backdrop-filter: blur(4px);
}

.modal-overlay.active {
    display: flex;
}

.modal-box {
    background: var(--light);
    border-radius: 1.2rem;
    width: 100%;
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
    animation: modalIn 0.25s ease;
}

@keyframes modalIn {
    from { opacity: 0; transform: translateY(30px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-close {
    position: sticky;
    top: 0.8rem;
    float: right;
    margin: 0.8rem 0.8rem 0 0;
    background: rgba(0,0,0,0.55);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 2rem;
    height: 2rem;
    font-size: 1rem;
    cursor: pointer;
    z-index: 10;
    line-height: 1;
    transition: background 0.2s;
}

.modal-close:hover { background: rgba(0,0,0,0.8); }

.modal-hero {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    border-radius: 1.2rem 1.2rem 0 0;
}

.modal-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.modal-body {
    padding: 1.4rem 1.8rem 2rem;
}

.modal-title {
    font-size: 1.5rem;
    color: var(--primary-dark);
    margin-bottom: 0.4rem;
}

.modal-location {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 0.8rem;
}

.modal-materials {
    list-style: none;
    margin-bottom: 1rem;
    padding: 0;
}

.modal-materials li {
    padding: 0.3rem 0 0.3rem 1.2rem;
    position: relative;
    font-size: 0.92rem;
    color: var(--text);
    border-bottom: 1px solid #f0e8d8;
}

.modal-materials li::before {
    content: "▸";
    position: absolute;
    left: 0;
    color: var(--primary);
}

.modal-desc {
    font-size: 0.95rem;
    line-height: 1.75;
    color: var(--text);
    margin-bottom: 1.2rem;
}

.modal-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.6rem;
    margin-bottom: 1.4rem;
}

.modal-gallery img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 0.5rem;
}

.modal-btn {
    display: inline-block;
    margin-top: 0.5rem;
}

.modal-loading {
    padding: 3rem;
    text-align: center;
    color: #888;
}

/* Lightbox */
.lightbox-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.92);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.lightbox-overlay.active { display: flex; }

.lb-img-wrap {
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lb-img-wrap img {
    max-width: 90vw;
    max-height: 88vh;
    object-fit: contain;
    border-radius: 0.5rem;
    box-shadow: 0 0 60px rgba(0,0,0,0.6);
}

.lb-nav {
    background: none;
    border: none;
    color: #fff;
    font-size: 4rem;
    cursor: pointer;
    padding: 0 1rem;
    opacity: 0.7;
    transition: opacity 0.2s;
    user-select: none;
    line-height: 1;
}

.lb-nav:hover { opacity: 1; }

.lb-close {
    position: fixed;
    top: 1.2rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.lb-close:hover { opacity: 1; }

.lb-counter {
    position: fixed;
    bottom: 1.2rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    letter-spacing: 0.05em;
}

/* Kapcsolat form */
select {
    width: 100%;
    padding: 0.6rem 0.75rem;
    border-radius: 0.4rem;
    border: 1px solid #ccc;
    font: inherit;
    background: #fff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    cursor: pointer;
}

select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(139, 90, 43, 0.18);
}

.input-error {
    border-color: #c0392b !important;
    box-shadow: 0 0 0 2px rgba(192, 57, 43, 0.18) !important;
}

.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.9rem 1.8rem;
    border-radius: 2rem;
    font-size: 0.95rem;
    font-weight: 500;
    box-shadow: 0 8px 24px rgba(0,0,0,0.18);
    z-index: 3000;
    white-space: normal;
    max-width: calc(100vw - 2rem);
    text-align: center;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.toast-ok  { background: #155724; color: #fff; }
.toast-err { background: #721c24; color: #fff; }

.toast-hide {
    opacity: 0;
    transform: translateX(-50%) translateY(1rem);
}

