/* latin-ext */
@font-face {
    font-family: 'Lexend';
    font-style: normal;
    font-weight: 200;
    font-display: swap;
    src: url('webfonts/lexend-latin-ext-200-normal.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
    font-family: 'Lexend';
    font-style: normal;
    font-weight: 200;
    font-display: swap;
    src: url('webfonts/lexend-latin-200-normal.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
    font-family: 'Lexend';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('webfonts/lexend-latin-ext-400-normal.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
    font-family: 'Lexend';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('webfonts/lexend-latin-400-normal.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
    font-family: 'Lexend';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('webfonts/lexend-latin-ext-500-normal.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
    font-family: 'Lexend';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('webfonts/lexend-latin-500-normal.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

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

html {
    scroll-padding-top: 4.5rem;
    overflow-anchor: none;
    font-size: 18px;
}

body {
    padding: 0;
    margin: 0;
    overflow-x: hidden;
    font-family: 'Lexend', sans-serif;
    font-size: 1rem;
    line-height: 1.7;
    color: #1a1a1a;
    background-color: var(--background-color);
}

header {
    position: sticky;
    top: 0;
    background: white;
    z-index: 100;
}

.logo-header {
    display: flex;
    align-items: center;
    height: 3.125rem;
    transition: height 0.3s ease;
}

.logo {
    padding: 0 1.25rem;
    display: flex;
    align-items: center;
    margin-right: auto;
}

.cta-button {
    display: flex;
    align-items: flex-start;
    gap: 0.4em;
    padding: 0 1rem;
    color: var(--main-color);
    text-decoration: none;
    font-family: 'Lexend', sans-serif;
    font-size: 0.75rem;
}

.cta-button i {
    flex-shrink: 0;
    margin-top: 0.2em;
}

.cta-button:hover {
    color: var(--main-color);
    opacity: 0.75;
}

.logo a {
    display: flex;  /* prevents inline gap below the image */
    align-items: center;
}

.logo img {
    width: auto;
    display: block;
    transition: height 0.3s ease;
}

.logo-header .logo img {
    height: 2.1875rem;
}

.burger-menu-button {
    background: none;
    border: none;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.burger-menu {
    width: 1.875rem;
    height: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.burger-menu span {
    display: block;
    width: 100%;
    height: 3px;
    background: black;
    border-radius: 2px;
}

nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    margin: 0;
    padding: 0;
    z-index: 1000;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

nav li {
    padding: 0;
    border-bottom: 1px solid #e0e0e0;
}

nav li a {
    display: block;
    padding: 1.125rem 1rem;
    color: inherit;
    text-decoration: none;
    position: relative;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    transition: color 0.2s ease;
}

nav li a:hover,
nav li a.active {
    color: var(--main-color);
}

nav li a.active {
    box-shadow: inset 2px 0 0 var(--main-color);
}

nav li:last-child {
    border-bottom: none;
}

nav.nav-open {
    display: block;
}

/* Dropdown — mobile */
.dropdown {
    display: block;
    border-top: 1px solid #e0e0e0;
}

.dropdown li {
    border-bottom: none;
}

.dropdown li a {
    padding-left: 2rem;
    font-size: 0.8125rem;
    color: #555;
}

/* Language switcher — fixed floating button */
.lang-switch {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 500;
    display: flex;
    background: white;
    border-radius: 3px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.lang-switch a {
    display: block;
    padding: 0.2em 0.55em;
    font-family: 'Lexend', sans-serif;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: var(--main-color);
    text-decoration: none;
    border: 1.5px solid var(--main-color);
    line-height: 1.5;
    transition: background 0.15s ease, color 0.15s ease;
    box-shadow: none;
}

.lang-switch a:first-child {
    border-right-width: 0;
    border-radius: 3px 0 0 3px;
}

.lang-switch a:last-child {
    border-radius: 0 3px 3px 0;
}

.lang-switch a.active {
    background: var(--main-color);
    color: white;
    box-shadow: none;
}

.lang-switch a:not(.active):hover {
    background: color-mix(in srgb, var(--main-color) 10%, transparent);
}


main {
    display: flex;
    flex-direction: column;
    overflow-wrap: break-word;
}

.content {
    width: min(48rem, 100%);
    margin: 0 auto;
    padding: 4rem 1.5rem;
}

.content h3 {
    font-size: 1.25rem;
    font-weight: 500;
    margin: 0 0 1rem;
}

.content h2, .content h3, .content h4, .content h5 {
    color: var(--accent-dark);
}

.content p {
    margin: 0 0 1.5rem;
    font-weight: 200;
}

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

.block-text-image {
    display: flow-root;
    margin: 0 0 1.5rem;
}

.block-text-image__image img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    margin-bottom: 1rem;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.map-container {
    width: 100%;
    aspect-ratio: 16 / 9;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.map-container small {
    display: block;
    margin-top: 0.35rem;
}

.hero {
    position: relative;
    max-width: 48rem;
    margin: 0 auto;
    border-radius: 8px;
    overflow: hidden;
}

.hero img {
    display: block;
    width: 100%;
    height: auto;
}

.hero h1 {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0;
    padding: 3.75rem 2.5rem 2rem;
    background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, transparent 100%);
    color: white;
}

footer {
    background: var(--main-color);
    font-family: 'Lexend', sans-serif;
    font-size: 0.875rem;
}

.footer-inner {
    padding: 2rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 900px) {
    .footer-inner {
        grid-template-columns: 1fr 1fr 1fr;
        align-items: start;
        gap: 2rem;
    }

    .footer-inner > * {
        justify-self: center;
    }

    .footer-legal {
        align-self: end;
    }
}

footer address {
    font-style: normal;
    color: white;
}

footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

footer a {
    color: white;
    text-decoration: none;
}

footer a:hover {
    color: var(--accent-contrast);
    text-decoration: underline;
}

/* Desktop (≥ 900px) */
@media (min-width: 900px) {
    .burger-menu-button {
        display: none;
    }

    .burger-menu {
        display: none;
    }

    .cta-button {
        background: var(--main-color);
        color: white;
        border-radius: 3px;
        padding: 0.35em 0.7em;
        font-size: 0.75rem;
        font-weight: 500;
        letter-spacing: 0.04em;
        margin-right: 0.75rem;
        white-space: nowrap;
        opacity: 1;
        transition: opacity 0.15s ease;
    }

    .cta-button:hover {
        color: white;
        opacity: 0.85;
    }

    nav {
        display: flex;
        position: static;
        width: auto;
        z-index: auto;
        padding: 0 1em;
    }

    nav ul {
        display: flex;
        gap: 0.25rem;
    }

    nav li {
        border-bottom: none;
    }

    nav li a {
        padding: 0 0.4rem;
        font-size: 0.8rem;
    }

    nav li a::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 2px;
        background: currentColor;
        transform: scaleX(0);
        transition: transform 0.2s ease;
    }

    nav li a.active {
        box-shadow: none;
    }

    nav li a:hover::after,
    nav li a.active::after {
        transform: scaleX(1);
    }

    /* Dropdown */
    .has-dropdown {
        position: relative;
    }


    .dropdown {
        position: absolute;
        top: calc(100% - 2px);
        left: 0;
        background: white;
        min-width: 12rem;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        border-top: 2px solid var(--main-color);
        display: none;
        flex-direction: column;
    }

    .has-dropdown:hover > .dropdown,
    .has-dropdown.dropdown-open > .dropdown {
        display: flex;
    }

    .dropdown li {
        border-bottom: 1px solid #f0f0f0;
    }

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

    .dropdown li a {
        padding: 0.75rem 1rem;
        font-size: 0.8125rem;
        color: #555;
        white-space: nowrap;
    }

    .dropdown li a::after {
        content: none;
    }

    .dropdown li a:hover {
        color: var(--main-color);
        background: #f8f8f8;
    }

    .block-text-image__image {
        width: 16rem;
        margin-bottom: 0;
    }

    .block-text-image--right .block-text-image__image {
        float: right;
        margin-left: 2rem;
    }

    .block-text-image--left .block-text-image__image {
        float: left;
        margin-right: 2rem;
    }

    .block-text-image__image img {
        width: 100%;
        margin-bottom: 0;
    }

    .form-wrap {
        max-width: 26.75rem;
    }
}

/* Large desktop (≥ 1100px) */
@media (min-width: 1100px) {
    .logo-header {
        height: 5rem;
    }

    .logo-header .logo img {
        height: 3.75rem;
    }

    .logo-header.scrolled {
        height: 3.125rem;
    }

    .logo-header.scrolled .logo img {
        height: 2.1875rem;
    }


    nav ul {
        gap: 0.5rem;
    }

    nav li a {
        padding: 0 0.75rem;
        font-size: 0.9rem;
    }

    .cta-button {
        padding: 0.45em 1em;
        font-size: 0.8rem;
        margin-right: 1.25rem;
    }
}

/* Accordion */
.accordion-item {
    border-top: 1px solid color-mix(in srgb, var(--main-color) 20%, #e0e0e0);
}

.accordion-item + .accordion-item {
    border-top: none;
}

details[open].accordion-item {
    border-bottom: 1px solid color-mix(in srgb, var(--main-color) 20%, #e0e0e0);
}

.accordion-item:last-of-type {
    border-bottom: 1px solid color-mix(in srgb, var(--main-color) 20%, #e0e0e0);
    margin-bottom: 2rem;
}

.accordion-summary {
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.85rem 0.5rem 0.85rem 0;
    cursor: pointer;
    font-weight: 500;
    color: var(--accent-dark);
    gap: 1rem;
    border-radius: 4px;
}

.accordion-summary:hover {
    background: color-mix(in srgb, var(--main-color) 6%, transparent);
}

.accordion-summary::-webkit-details-marker { display: none; }

.accordion-summary::after {
    content: '›';
    flex-shrink: 0;
    font-size: 1.2rem;
    line-height: 1;
    transform: rotate(90deg);
    transition: transform 0.25s ease;
    color: var(--main-color);
}

details[open] .accordion-summary::after {
    transform: rotate(270deg);
}

.accordion-body {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.25s ease;
}

details[open] .accordion-body {
    grid-template-rows: 1fr;
}

.accordion-body__inner {
    overflow: hidden;
    padding-bottom: 1rem;
}

/* Contact form success banner */
.form-success {
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    background: color-mix(in srgb, var(--main-color) 12%, transparent);
    border: 1.5px solid var(--main-color);
    border-radius: 8px;
    color: var(--main-color);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Contact form */
.form-wrap {
  width: 100%;
  margin: 1.5rem auto;
  background: #fff;
  border: 1px solid color-mix(in srgb, var(--main-color) 20%, #e0e0e0);
  border-radius: 12px;
  padding: 2rem;
}

label {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  color: #6b7280;
  margin-bottom: 0.35rem;
  letter-spacing: 0.02em;
}

input[type="text"],
input[type="tel"],
input[type="email"],
textarea {
  width: 100%;
  padding: 0.55rem 0.65rem;
  font-size: 0.8rem;
  border: 1px solid color-mix(in srgb, var(--main-color) 20%, #d0d0d0);
  border-radius: 8px;
  background: var(--background-color);
  color: inherit;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

input:focus,
textarea:focus {
  border-color: var(--main-color);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--main-color) 15%, transparent);
}

textarea {
  resize: vertical;
  min-height: 6rem;
  line-height: 1.6;
}

.field {
  margin-bottom: 1.25rem;
}

button[type="submit"] {
  width: 100%;
  padding: 0.6rem 0;
  font-size: 0.8rem;
  font-weight: 500;
  background: var(--main-color);
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.1s;
}

button[type="submit"]:hover  { opacity: 0.85; }
button[type="submit"]:active { transform: scale(0.99); }
