@font-face {
    font-family: "Berkshire Swash";
    src: url("../fonts/BerkshireSwash.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

:root {
    --brand-earth-900: #4f3422;
    --brand-earth-700: #6b4327;
    --brand-earth-500: #8a5a37;
    --brand-primary-700: #357f8a;
    --brand-primary-600: #4699a6;
    --brand-primary-100: #92e4f0;
    --surface-50: #f8f6f2;
    --surface-100: #d4bca0;
    --text-900: #1f2430;
    --text-600: #5f6574;
    --surface-card: #fffdf9;
    --border-soft: #d9c7b5;
    --shadow-card: 0 16px 38px var(--text-overlay-10);
    --brand-blue-deep: #1639a6;
    --neutral-white: #ffffff;
    --brown-overlay-08: #8a5a3714;
    --brown-overlay-12: #8a5a371f;
    --brown-overlay-14: #8a5a3724;
    --brown-overlay-16: #8a5a3729;
    --earth-dark-overlay-35: #4f342259;
    --primary-overlay-12: #4699a61f;
    --primary-overlay-14: #4699a624;
    --white-overlay-45: #ffffff73;
    --white-overlay-20: #ffffff33;
    --white-overlay-12: #ffffff1f;
    --white-overlay-10: #ffffff1a;
    --text-overlay-50: #1f243080;
    --text-overlay-16: #1f243029;
    --text-overlay-10: #1f24301a;
    --text-overlay-05: #1f24300d;
}

* {
    box-sizing: border-box;
}

p {
    text-align: justify;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Nunito", "Segoe UI", sans-serif;
    color: var(--text-900);
    line-height: 1.65;
    background:
        radial-gradient(circle at 10% -2%, var(--brown-overlay-16), transparent 35%),
        linear-gradient(180deg, var(--surface-50) 0%, var(--surface-100) 46%, var(--surface-50) 100%);
}

header {
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(8px);
    background: var(--surface-card);
    border-bottom: 1px solid var(--border-soft);
    height: 15vh;
    display: flex;
    align-items: center;
}
#hamburgerButton {
    display: none;
}
header .navbar {
    width: 100%;
    height: 100%;
}

header a,
header a:hover,
header a:visited {
    text-decoration: none;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    height: 100%;
}

.mainTitleContainer {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
    line-height: 1.1;
}

header .navbar-brand {
    height: 100%;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding-top: 0;
    padding-bottom: 0;
}

#logoImage {
    height: 130%;
    width: auto;
    display: block;
    padding-left: 0.5rem;
}

.mainTitle,
.mainTitle:hover,
.mainTitle:visited {
    font-family: "Berkshire Swash", "Nunito", sans-serif;
    color: var(--brand-primary-700);
    margin: 0;
    text-decoration: none;
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 0.6px;
}

.subtitle {
    font-family: "Berkshire Swash", "Nunito", sans-serif;
    margin: 0.2rem 0 0;
    color: var(--brand-primary-600);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.nav-toggle {
    /*border-color: var(--brand-earth-700);
    border: 2px solid var(--brand-earth-700); */
    background-color: transparent;
    padding: 0.5rem;
}

.nav-toggle .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%236b4327' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    background-size: 100%;
    width: 1.5rem;
    height: 1.5rem;
}

.navbar-nav {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    list-style: none;
    margin: 0;
    padding-left: 0;
}

.navbar-nav-desktop {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}


header .nav-link,
#mainNav .nav-link {
    color: var(--brand-earth-700);
    font-weight: 700;
    border-radius: 999px;
    padding: 0.45rem 0.9rem;
    transition: background-color 0.2s ease, color 0.2s ease;
    text-decoration: none;
}

header .nav-link:hover,
#mainNav .nav-link:hover {
    color: var(--brand-primary-700);
}

header .navbar-nav .nav-link.active,
#mainNav .navbar-nav .nav-link.active {
    color: var(--brand-primary-700);
}

.main-content {
    min-height: calc(100vh - 160px);
    padding: 10px;
}
/* .site-footer and Bootstrap utility classes cover footer layout; global footer override disabled.
footer{
    height: 10%;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--brand-earth-700) !important;
}
*/
.footer-text {
    color: var(--brand-earth-700) !important;
}

/* Reusable content layout */
.page-hero {
    padding: 4.2rem 0 2.3rem;
}

.page-hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2rem;
    align-items: center;
}

.section-badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 999px;
    color: var(--brand-primary-700);
    text-transform: uppercase;
    font-size: 0.74rem;
    letter-spacing: 0.12em;
    font-weight: 800;
}

.page-hero h1 {
    margin: 0.75rem 0 1rem;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.15;
    color: var(--brand-earth-900);
    font-weight: 800;
    font-family: "Berkshire Swash", "Nunito", sans-serif;
}
h1, h2, h3 {
    font-family: "Berkshire Swash", "Nunito", sans-serif;
    color: var(--brand-earth-900);
}
.page-hero p {
    color: var(--text-600);
    max-width: 64ch;
}

.hero-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.4rem;
}

.btn,
.btn:hover,
.btn:visited {
    text-decoration: none;
    display: inline-block;
}

.btn-solid-professional {
    background: linear-gradient(135deg, var(--brand-primary-700), var(--brand-primary-600));
    border: none;
    color: var(--brand-primary-100);
    border-radius: 999px;
    padding: 0.7rem 1.2rem;
    font-weight: 700;
}

.btn-solid-professional:hover {
    color: var(--neutral-white);
    background: linear-gradient(135deg, var(--brand-primary-600), var(--brand-blue-deep));
}

.btn-outline-professional {
    border: 2px solid var(--brand-earth-500);
    color: var(--brand-earth-700);
    border-radius: 999px;
    padding: 0.65rem 1.15rem;
    font-weight: 700;
}

.btn-outline-professional:hover {
    background: var(--brand-earth-700);
    color: var(--neutral-white);
    border-color: var(--brand-earth-700);
}

.page-section {
    padding: 3.4rem 0;
}

.section-muted {
    background: var(--brown-overlay-08);
}

.section-heading {
    margin-top: 0.95rem;
    color: var(--brand-earth-900);
    font-size: clamp(1.55rem, 3vw, 2.15rem);
    font-weight: 800;
}

.page-grid-two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
    align-items: center;
}

.content-panel {
    background: var(--surface-card);
    border: 1px solid var(--border-soft);
    border-radius: 16px;
    box-shadow: var(--shadow-card);
    padding: 1.4rem;
}

.content-panel h2 {
    margin: 0.35rem 0 0.8rem;
    color: var(--brand-earth-900);
    font-size: clamp(1.45rem, 2.4vw, 1.95rem);
    font-weight: 800;
}

.content-panel p {
    color: var(--text-600);
}

.content-card-grid {
    display: grid;
    gap: 1rem;
}

.content-card-grid.two-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.content-card-grid.three-columns {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.content-card {
    background: var(--surface-card);
    border: 1px solid var(--border-soft);
    border-radius: 16px;
    box-shadow: var(--shadow-card);
    padding: 1.25rem;
}

.content-card h3 {
    margin: 0 0 0.6rem;
    color: var(--brand-earth-700);
    font-size: 1.1rem;
}

.content-card p {
    margin: 0;
    color: var(--text-600);
}

.styled-list {
    margin: 0.6rem 0 0;
    padding-left: 1.2rem;
}

.styled-list li {
    color: var(--text-600);
    margin-bottom: 0.45rem;
}

.universal-image-slot {
    width: 100%;
    min-height: 300px;
    border-radius: 16px;
    border: 2px dashed var(--earth-dark-overlay-35);
    display: grid;
    place-items: center;
    text-align: center;
    font-weight: 800;
    color: var(--brand-earth-700);
    padding: 1rem;
    background:
        repeating-linear-gradient(
            45deg,
            var(--white-overlay-45),
            var(--white-overlay-45) 14px,
            var(--white-overlay-20) 14px,
            var(--white-overlay-20) 28px
        );
}

.contact-list {
    display: grid;
    gap: 0.7rem;
}

.contact-row {
    border: 1px solid var(--border-soft);
    border-radius: 12px;
    background: var(--neutral-white);
    padding: 0.8rem 0.95rem;
}

.contact-row span {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--brand-primary-700);
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.contact-row p,
.contact-row a {
    margin: 0;
    color: var(--text-900);
    text-decoration: none;
    font-weight: 700;
}

.contact-row a:hover {
    color: var(--brand-primary-700);
}

.contact-address-detail {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-600);
}

/* Services page */
.services-hero {
    padding: 4.5rem 0 2.5rem;
}

.services-hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2rem;
    align-items: center;
}

.services-kicker {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 999px;
    color: var(--brand-primary-700);
    text-transform: uppercase;
    font-size: 0.74rem;
    letter-spacing: 0.12em;
    font-weight: 800;
}

.services-hero h1 {
    margin: 0.75rem 0 1rem;
    font-size: clamp(2rem, 4.2vw, 3.2rem);
    line-height: 1.15;
    color: var(--brand-earth-900);
    font-weight: 800;
}

.services-hero p {
    color: var(--brand-earth-700);
    max-width: 62ch;
    margin: 0;
}

.services-content-section {
    padding: 1rem 0 4rem;
}

.provider-block {
    margin-top: 2rem;
}

.provider-header {
    margin-bottom: 1rem;
}

.provider-header h2 {
    margin: 0;
    color: var(--brand-earth-900);
    font-weight: 800;
    font-size: clamp(1.5rem, 2.8vw, 2rem);
}

.provider-header p {
    margin: 0.4rem 0 0;
    color: var(--text-600);
}

.provider-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.provider-grid-two {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-item {
    background: var(--surface-card);
    border: 1px solid var(--border-soft);
    border-radius: 16px;
    box-shadow: var(--shadow-card);
    padding: 1.2rem;
    min-height: 180px;
}

.service-item-trigger {
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.service-item-trigger:hover,
.service-item-trigger:focus-visible {
    transform: translateY(-4px);
    border-color: var(--brand-primary-600);
    box-shadow: 0 18px 40px var(--text-overlay-16);
    outline: none;
}

.service-item-trigger::after {
    /* content: "Kattints a részletekért"; */
    display: inline-block;
    margin-top: 0.9rem;
    padding: 0.28rem 0.68rem;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: var(--brand-primary-700);
    background: var(--primary-overlay-12);
}

.service-item h3 {
    margin: 0 0 0.5rem;
    font-size: 1.05rem;
    color: var(--brand-primary-700);
}

.service-item p {
    margin: 0;
    color: var(--text-600);
}

.service-modal-content {
    border: 1px solid var(--border-soft);
    border-radius: 18px;
    background: var(--surface-card);
    overflow: hidden;
}

.service-modal-content .modal-header {
    border-bottom: 1px solid var(--brown-overlay-16);
    background: linear-gradient(110deg, var(--primary-overlay-12), var(--brown-overlay-12));
}

.service-modal-content .modal-title {
    color: var(--brand-earth-900);
    font-weight: 800;
}

.service-modal-content .modal-body {
    color: var(--text-600);
}

.service-modal-content .modal-body p {
    margin-bottom: 0.9rem;
}

.service-modal-content .modal-body p:last-child {
    margin-bottom: 0;
}

.modal-backdrop.show {
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    background-color: var(--text-overlay-50);
}

.modal-open #servicesPageContent {
    filter: blur(14px);
    -webkit-filter: blur(14px);
    transition: filter 0.2s ease;
    pointer-events: none;
    user-select: none;
}

.modal-open #galleryPageContent {
    filter: blur(14px);
    -webkit-filter: blur(14px);
    transition: filter 0.2s ease;
    pointer-events: none;
    user-select: none;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.gallery-card {
    background: var(--surface-card);
    border: 1px solid var(--border-soft);
    border-radius: 16px;
    box-shadow: var(--shadow-card);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.gallery-card:hover,
.gallery-card:focus-visible {
    transform: translateY(-5px);
    border-color: var(--brand-primary-600);
    box-shadow: 0 18px 40px var(--text-overlay-16);
    outline: none;
}

.gallery-thumb {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
}

.gallery-card-body {
    padding: 0.9rem 1rem 1rem;
}

.gallery-card-category {
    margin: 0;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 800;
    color: var(--brand-primary-700);
}

.gallery-card h3 {
    margin: 0.35rem 0 0;
    color: var(--brand-earth-900);
    font-size: 1.08rem;
}

.gallery-modal-content {
    border: 1px solid var(--border-soft);
    border-radius: 18px;
    overflow: hidden;
}

.gallery-modal-content .modal-header {
    border-bottom: 1px solid var(--brown-overlay-16);
    background: linear-gradient(110deg, var(--primary-overlay-14), var(--brown-overlay-14));
    padding-top: 1rem;
    padding-bottom: 1.25rem;
    align-items: flex-start;
}

.gallery-modal-kicker {
    margin: 0;
    color: var(--brand-primary-700);
    font-size: 0.72rem;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    font-weight: 800;
}

#galleryModal .modal-dialog,
#plakatModal .modal-dialog {
    width: fit-content;
    max-width: min(95vw, 1400px);
}

.gallery-modal-image {
    width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 12px;
    background: var(--text-overlay-05);
}

.gallery-modal-description {
    margin: 0.9rem 0 0;
    color: var(--text-600);
}

/* Hírek */
.plakat-modal-content {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    border: none;
    padding: 0;
    background: transparent;
    box-shadow: none;
}

.plakat-modal-image {
    display: block;
    width: auto;
    height: auto;
    max-height: 110vh;
    object-fit: contain;
    border-radius: 18px;
}

.plakat-modal-close {
    position: absolute;
    top: 0.6rem;
    right: 0.6rem;
    z-index: 10;
    background-color: rgba(255,255,255,0.85);
    border-radius: 50%;
    padding: 0.4rem;
    filter: none;
}

.hirek-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.hirek-card {
    background: var(--surface-card);
    border: 1px solid var(--border-soft);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
}

.hirek-card-img {
    display: block;
    width: 100%;
    height: 280px;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.18s ease;
}

.hirek-card:hover .hirek-card-img {
    transform: scale(1.02);
}

.hirek-card-text {
    padding: 1rem 1.1rem;
    margin: 0;
    color: var(--text-600);
    font-size: 0.95rem;
}

/* Services */
.services-image-slot {
    width: 100%;
    min-height: 280px;
    border-radius: 16px;
    border: 2px dashed var(--earth-dark-overlay-35);
    display: grid;
    place-items: center;
    text-align: center;
    font-weight: 800;
    color: var(--brand-earth-700);
    padding: 1rem;
    background:
        repeating-linear-gradient(
            45deg,
            var(--white-overlay-45),
            var(--white-overlay-45) 14px,
            var(--white-overlay-20) 14px,
            var(--white-overlay-20) 28px
        );
}

.services-image-small {
    min-height: 200px;
}

.map-wrapper {
    position: relative;
    width: 100%;
    padding-top: 40%;
}

.map-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.site-footer {
    background: var(--surface-card);
    border-top: 1px solid var(--white-overlay-12);
    color: var(--brand-earth-700);
}

.footer-content {
    --footer-main-size: 1rem;
    --footer-sub-size: 0.95rem;
    --footer-line-gap: 0.2rem;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-logo {
    height: 7em;
    width: auto;
    object-fit: contain;
}

.footer-lines {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--footer-line-gap);
}

.footer-line-main,
.footer-line-sub {
    margin: 0;
}

.footer-line-main {
    font-size: var(--footer-main-size);
    line-height: 1.2;
    font-weight: 700;
    font-family: "Berkshire Swash", "Nunito", sans-serif;
}

.footer-line-sub {
    font-size: var(--footer-sub-size);
    line-height: 1.2;
}

.image-decoration {
    width: 100%;
    height: auto;
    border-radius: 16px;
    object-fit: cover;
    border: 2px solid var(--earth-dark-overlay-35);
}

@media (max-width: 991.98px) {
    header {
        z-index: 999;
    }

    .site-footer,
    .site-footer .text-white-50,
    .site-footer strong,
    .site-footer span,
    .site-footer div {
        color: var(--brand-earth-700) !important;
    }

    .navbar-nav-desktop {
        display: none;
    }
    
    #mainNav {
        position: fixed;
        top: 15vh;
        left: 0;
        right: 0;
        bottom: 0;
        min-height: calc(100vh - 15vh);
        background-color: var(--surface-card);
        backdrop-filter: blur(4px);
        display: none !important;
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 0;
        overflow-y: auto;
        z-index: 998;
    }
    
    #mainNav.show {
        display: flex !important;
    }
    
    .navbar-nav {
        flex-direction: column;
        gap: 0;
        padding: 0;
        width: 100%;
    }
    
    #mainNav .nav-item {
        width: 100%;
    }
    
    #mainNav .nav-link {
        display: block;
        color: var(--brand-earth-700);
        padding: 1.2rem 2rem;
        border-radius: 0 !important;
        text-align: left;
        border-bottom: 1px solid var(--white-overlay-10);
    }
    
    #mainNav .nav-link:hover {
        background-color: var(--white-overlay-10);
        color: var(--brand-primary-700);
    }

    #mainNav .navbar-nav .nav-link.active {
        background-color: var(--white-overlay-10);
        color: var(--brand-primary-700);
    }

    #hamburgerButton {
        display: block;
    }

    .mainTitle {
        font-size: 1.05rem;
    }

    .subtitle {
        font-size: 0.72rem;
    }
    .page-hero-grid,
    .page-grid-two {
        grid-template-columns: 1fr;
    }

    .content-card-grid.two-columns,
    .content-card-grid.three-columns {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .services-hero-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .provider-grid,
    .provider-grid-two {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .map-wrapper {
        padding-top: 100%;
    }

    .mainTitle {
        font-size: 0.95rem;
    }

    .subtitle {
        font-size: 0.65rem;
    }

    .page-hero {
        padding: 3rem 0 1.8rem;
    }

    .page-section {
        padding: 2.7rem 0;
    }

    .content-card-grid.two-columns,
    .content-card-grid.three-columns {
        grid-template-columns: 1fr;
    }

    .universal-image-slot {
        min-height: 230px;
    }

    .services-hero {
        padding: 3rem 0 1.8rem;
    }

    .services-content-section {
        padding-bottom: 3rem;
    }

    .provider-grid,
    .provider-grid-two {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-thumb {
        height: 220px;
    }

    .services-image-slot {
        min-height: 230px;
    }
}

/* Impresszum */
.impresszum-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.impresszum-table th,
.impresszum-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-soft);
    text-align: left;
    vertical-align: top;
}

.impresszum-table th {
    width: 140px;
    color: var(--brand-primary-700);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 700;
    white-space: nowrap;
}

.impresszum-table td a {
    color: var(--brand-primary-700);
    text-decoration: none;
}

.impresszum-table td a:hover {
    text-decoration: underline;
}

/* Footer link */
.footer-link {
    color: inherit;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.footer-link:hover {
    opacity: 1;
    text-decoration: underline;
}
