/* Theme aligned with reference: dark brown nav, beige page, light grey footer */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --navbar-bg: #5d4037;
    --navbar-text: #ffffff;
    --page-bg: #f9f9f0;
    --footer-bg: #e0e0e0;
    --footer-text: #424242;
    --accent-lime: #7fff00;
    --text-color: #3e2723;
    --text-muted: #5d4037;
    --card-bg: #ffffff;
    --border-color: #d7ccc8;
    --link-color: #5d4037;
    --link-hover: #3e2723;
    --focus-ring: rgba(93, 64, 55, 0.25);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    color: var(--text-color);
    background-color: var(--page-bg);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(16px, 4vw, 48px);
}

/* Header / navbar */
.site-header {
    background-color: var(--navbar-bg);
    position: sticky;
    top: 0;
    z-index: 200;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.navbar {
    padding: 0.85rem 0;
}

.nav-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 1rem;
    position: relative;
}

.brand-link {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    color: var(--navbar-text);
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #fff;
    color: #3e2723;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: -0.02em;
    border: 2px solid rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
}

.brand-text {
    font-weight: 700;
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.nav-toggle-label {
    display: none;
    cursor: pointer;
    padding: 0.35rem;
    margin-left: auto;
    border-radius: 4px;
    color: var(--navbar-text);
}

.nav-toggle-label:focus-within,
.nav-toggle-label:hover {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

.nav-toggle-icon {
    display: block;
    width: 26px;
    height: 2px;
    background: currentColor;
    position: relative;
    box-shadow: 0 -8px 0 currentColor, 0 8px 0 currentColor;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: clamp(0.75rem, 2vw, 2.25rem);
    align-items: center;
}

.nav-links a {
    color: var(--navbar-text);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.35rem 0;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s ease, opacity 0.2s ease;
}

.nav-links a:hover {
    opacity: 0.92;
    border-bottom-color: rgba(255, 255, 255, 0.45);
}

.nav-links a.active {
    border-bottom-color: #fff;
}

/* Main */
.page-main {
    flex: 1;
    padding: clamp(1.5rem, 4vw, 2.5rem) 0 clamp(2rem, 5vw, 3rem);
    width: 100%;
}

.page-main--home {
    padding-top: clamp(1.25rem, 3vw, 2rem);
    padding-bottom: clamp(1.25rem, 3vw, 2rem);
}

/* Home: image slider + intro */
.home-wrap {
    max-width: min(1200px, 88vw);
    margin: 0 auto;
}

.home-slider {
    position: relative;
    margin: 0;
    background: var(--card-bg);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(62, 39, 35, 0.1);
}

.home-slider-frame {
    position: relative;
}

.home-slider-viewport {
    overflow: hidden;
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: min(70vh, 640px);
    background: #efebe9;
}

@media (max-width: 480px) {
    .home-slider-viewport {
        aspect-ratio: 4 / 3;
        max-height: none;
    }
}

.home-slider-track {
    display: flex;
    height: 100%;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.home-slider--reduce-motion .home-slider-track {
    transition: none;
}

.home-slide {
    margin: 0;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #efebe9;
}

.home-slide-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(62, 39, 35, 0.55);
    color: #fff;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.15s ease;
}

.home-slider-btn:hover:not(:disabled) {
    background: rgba(62, 39, 35, 0.85);
}

.home-slider-btn:focus-visible {
    outline: 3px solid var(--accent-lime);
    outline-offset: 2px;
}

.home-slider-btn:disabled {
    opacity: 0.35;
    cursor: default;
}

.home-slider-btn--prev {
    left: 10px;
}

.home-slider-btn--next {
    right: 10px;
}

.home-slider-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 0 1rem;
    background: var(--card-bg);
}

.home-slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid var(--navbar-bg);
    background: transparent;
    padding: 0;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.home-slider-dot:hover {
    transform: scale(1.1);
}

.home-slider-dot:focus-visible {
    outline: 2px solid var(--navbar-bg);
    outline-offset: 2px;
}

.home-slider-dot.is-active {
    background: var(--navbar-bg);
}

.home-content {
    margin-top: clamp(1.75rem, 4vw, 2.75rem);
    padding: clamp(1.5rem, 3vw, 2.25rem) clamp(1rem, 3vw, 2rem);
    background: var(--card-bg);
    border-radius: 6px;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 12px rgba(62, 39, 35, 0.06);
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.home-content h2 {
    font-size: clamp(1.35rem, 3.5vw, 1.75rem);
    color: var(--text-color);
    margin-bottom: 0.75rem;
    letter-spacing: 0.02em;
}

.home-content-lead {
    font-size: 1.05rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.55;
}

.home-content p {
    color: var(--text-muted);
    margin-bottom: 1rem;
    line-height: 1.7;
}

.home-content-highlights {
    margin: 1rem 0 1.25rem 1.25rem;
    color: var(--text-muted);
    line-height: 1.65;
}

.home-content-highlights li {
    margin-bottom: 0.35rem;
}

.home-content-cta-wrap {
    margin-bottom: 0 !important;
    margin-top: 1.25rem;
}

.home-content-cta {
    display: inline-block;
    background: var(--navbar-bg);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.65rem 1.25rem;
    border-radius: 4px;
    letter-spacing: 0.03em;
    transition: background 0.2s ease, transform 0.15s ease;
}

.home-content-cta:hover {
    background: #4e342e;
    color: #fff;
}

.home-content-cta:focus-visible {
    outline: 3px solid var(--accent-lime);
    outline-offset: 2px;
}

.home-content-cta:active {
    transform: scale(0.99);
}

.home-cta-bar {
    margin-top: 0;
    background: var(--accent-lime);
    color: #fff;
    text-align: center;
    padding: 0.85rem 1rem;
    font-weight: 700;
    font-size: clamp(0.85rem, 2vw, 1rem);
    letter-spacing: 0.02em;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.15);
}

/* Inner pages: title + form / legal */
.page-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-weight: 700;
}

.lead {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.server-hint {
    margin-bottom: 1.25rem;
    padding: 0.85rem 1rem;
    border-radius: 4px;
    font-size: 0.875rem;
    line-height: 1.5;
}

.server-hint--warn {
    background: #fff3e0;
    border: 1px solid #ffb74d;
    color: #5d4037;
}

.server-hint[hidden] {
    display: none;
}

.form-section {
    display: flex;
    justify-content: center;
    padding: 0.5rem 0 1rem;
}

.form-card {
    background-color: var(--card-bg);
    border-radius: 6px;
    border: 1px solid var(--border-color);
    padding: clamp(1.5rem, 4vw, 2.5rem);
    max-width: 520px;
    width: 100%;
    box-shadow: 0 2px 12px rgba(62, 39, 35, 0.06);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.35rem;
}

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

.form-group label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.4rem;
}

.form-group input[type="text"],
.form-group input[type="tel"] {
    padding: 0.7rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
    color: var(--text-color);
    font-family: inherit;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input::placeholder {
    color: #8d6e63;
}

.form-group input:focus {
    outline: none;
    border-color: var(--navbar-bg);
    box-shadow: 0 0 0 3px var(--focus-ring);
}

.submit-btn {
    background-color: var(--navbar-bg);
    color: #fff;
    padding: 0.8rem 1.25rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.15s ease;
    width: 100%;
}

.submit-btn:hover {
    background-color: #4e342e;
}

.submit-btn:active {
    transform: scale(0.99);
}

.form-group.checkbox {
    flex-direction: row;
    gap: 0.65rem;
    align-items: flex-start;
}

.form-group.checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 3px;
    cursor: pointer;
    accent-color: var(--navbar-bg);
    flex-shrink: 0;
}

.form-group.checkbox label {
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1.5;
    cursor: pointer;
    margin-bottom: 0;
}

/* Legal / thank-you content */
.content-section {
    background-color: var(--card-bg);
    border-radius: 6px;
    padding: clamp(1.5rem, 4vw, 2.75rem);
    max-width: 800px;
    margin: 0 auto;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 12px rgba(62, 39, 35, 0.06);
}

.content-section h1 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    margin-bottom: 1.5rem;
    color: var(--text-color);
    border-bottom: 3px solid var(--navbar-bg);
    padding-bottom: 0.75rem;
}

.content-section h2 {
    font-size: 1.25rem;
    margin-top: 1.75rem;
    margin-bottom: 0.65rem;
    color: var(--text-color);
}

.content-section h3 {
    font-size: 1.05rem;
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.content-section p {
    color: var(--text-muted);
    margin-bottom: 0.85rem;
    line-height: 1.75;
}

.content-section a {
    color: var(--link-color);
    font-weight: 600;
}

.content-section a:hover {
    color: var(--link-hover);
    text-decoration: underline;
}

.content-section ul {
    margin-left: 1.35rem;
    margin-bottom: 1rem;
    color: var(--text-muted);
    line-height: 1.75;
}

.content-section ul li {
    margin-bottom: 0.35rem;
}

.content-section ul ul {
    margin-top: 0.35rem;
    margin-left: 1.25rem;
}

.form-status {
    margin-top: 0.25rem;
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
    min-height: 1.4em;
    color: var(--text-muted);
}

.contact-form .form-status:empty {
    display: none;
}

.submit-btn:disabled {
    opacity: 0.65;
    cursor: wait;
}

.form-status.success {
    color: #2e7d32;
}

.form-status.error {
    color: #c62828;
}

/* Footer */
.site-footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    padding: 1rem 0;
    margin-top: auto;
}

.site-footer .container {
    position: relative;
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.75rem 1rem;
    min-height: 2.25rem;
}

.footer-copy {
    font-size: 0.8125rem;
    text-align: center;
    width: 100%;
    padding: 0 0.5rem;
}

.footer-address {
    font-style: normal;
    font-size: 0.8125rem;
    text-align: center;
    width: 100%;
}

.footer-address a {
    color: var(--footer-text);
    text-decoration: none;
}

.footer-address a:hover,
.footer-address a:focus-visible {
    color: var(--link-hover);
    text-decoration: underline;
}

.footer-lang {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8125rem;
}

@media (min-width: 769px) {
    .footer-copy {
        width: auto;
        padding: 0 9rem;
    }

    .footer-address {
        position: absolute;
        left: clamp(16px, 4vw, 48px);
        top: 50%;
        transform: translateY(-50%);
        width: auto;
        max-width: 14rem;
        text-align: left;
    }

    .footer-lang {
        position: absolute;
        right: clamp(16px, 4vw, 48px);
        top: 50%;
        transform: translateY(-50%);
    }
}

.footer-lang label {
    white-space: nowrap;
}

.footer-lang select {
    font-family: inherit;
    font-size: 0.8125rem;
    padding: 0.25rem 0.4rem;
    border: 1px solid #bdbdbd;
    border-radius: 3px;
    background: #fff;
    color: var(--footer-text);
}

/* Mobile nav */
@media (max-width: 768px) {
    .nav-toggle-label {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .nav-links {
        order: 3;
        flex-basis: 100%;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, padding 0.3s ease;
        padding: 0;
    }

    .nav-links li {
        border-top: 1px solid rgba(255, 255, 255, 0.12);
    }

    .nav-links a {
        display: block;
        padding: 0.75rem 0;
        text-align: center;
    }

    .nav-toggle:checked ~ .nav-links {
        max-height: 320px;
        padding: 0.25rem 0 0.5rem;
    }

    .footer-copy {
        padding: 0 0.5rem;
    }

    .footer-address {
        order: -1;
    }

    .footer-lang {
        position: static;
        transform: none;
        justify-content: center;
        width: 100%;
    }
}

/* Floating address button & popup */
.address-fab {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 300;
    width: 3.25rem;
    height: 3.25rem;
    border: none;
    border-radius: 50%;
    background-color: var(--navbar-bg);
    color: var(--navbar-text);
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.address-fab:hover,
.address-fab:focus-visible {
    background-color: var(--link-hover);
    transform: scale(1.05);
    outline: none;
}

.address-fab:focus-visible {
    box-shadow: 0 0 0 3px var(--focus-ring), 0 4px 14px rgba(0, 0, 0, 0.22);
}

.address-fab-icon {
    display: block;
}

.address-popup-overlay {
    position: fixed;
    inset: 0;
    z-index: 400;
    background: rgba(0, 0, 0, 0.45);
}

.address-popup {
    position: fixed;
    z-index: 401;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: min(22rem, calc(100vw - 2rem));
    padding: 1.5rem 1.75rem 1.25rem;
    background: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
}

.address-popup-title {
    font-size: 1.125rem;
    color: var(--text-color);
    margin-bottom: 0.75rem;
    padding-right: 1.5rem;
}

.address-popup-text {
    font-size: 0.9375rem;
    line-height: 1.5;
}

.address-popup-text a {
    color: var(--link-color);
    text-decoration: none;
}

.address-popup-text a:hover,
.address-popup-text a:focus-visible {
    color: var(--link-hover);
    text-decoration: underline;
}

.address-popup-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 2rem;
    height: 2rem;
    border: none;
    border-radius: 4px;
    background: transparent;
    color: var(--text-muted);
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
}

.address-popup-close:hover,
.address-popup-close:focus-visible {
    background: var(--page-bg);
    color: var(--text-color);
    outline: none;
}

body.address-popup-open {
    overflow: hidden;
}

@media (min-width: 769px) {
    .nav-toggle-label {
        display: none !important;
    }

    .nav-links {
        order: unset;
        flex-basis: auto;
        max-height: none !important;
        padding: 0 !important;
    }
}

@media (max-width: 480px) {
    .brand-text {
        max-width: 42vw;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}
