/* Shared Header and Footer Styles */

:root {
    --bg: #f4efe9;
    --text: #1d1d1b;
    --muted: #4f5852;
    --line: rgba(29, 29, 27, 0.08);
    --green: #0f6e49;
    --green-dark: #095538;
    --green-soft: #e8f6ee;
}

html,
body {
    min-height: 100vh;
}

body {
    display: flex;
    flex-direction: column;
    margin: 0;
}

/* ===== HEADER / TOPBAR ===== */
.topbar {
    position: sticky;
    top: 0;
    background: rgba(244, 239, 233, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
    z-index: 50;
    position: relative;
}

.nav {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 16px;
}

.brand {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.06em;
    color: var(--text);
}

.brand span {
    color: var(--green);
}

.brand-group {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
    padding: 0;
    margin: 0;
    color: var(--muted);
    font-size: 0.97rem;
}

.nav-links a:hover {
    color: var(--green-dark);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text);
    padding: 8px;
    margin-left: auto;
}

.menu-toggle:hover {
    opacity: 0.7;
}

.mobile-menu {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background: #1e2b27;
    color: #ebf5ef;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 20px 16px 24px;
    flex-direction: column;
    gap: 16px;
    z-index: 49;
    width: 100%;
    box-shadow: 0 18px 28px rgba(12, 19, 17, 0.18);
}

.mobile-menu.active {
    display: flex;
}

.mobile-menu .nav-links {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
    width: 100%;
    color: #ebf5ef;
}

.mobile-menu .nav-links a {
    color: #ebf5ef;
    opacity: 0.9;
}

.mobile-menu .nav-links a:hover {
    color: #71d5a0;
}

.mobile-menu .nav-actions {
    flex-direction: column;
    width: 100%;
    gap: 12px;
    align-items: stretch;
}

.mobile-menu .btn {
    width: 100%;
}

.mobile-menu .btn-secondary {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.22);
    color: #ebf5ef;
}

.mobile-menu .btn-primary {
    background: var(--green);
    color: white;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0.9rem 1.5rem;
    font-weight: 700;
    transition: 0.2s ease;
    border: 1px solid transparent;
    cursor: pointer;
    min-width: fit-content;
}

.btn-primary {
    background: var(--green);
    color: white;
    box-shadow: 0 10px 22px rgba(15, 110, 73, 0.22);
}

.btn-primary:hover {
    background: var(--green-dark);
}

.btn-secondary {
    background: transparent;
    border-color: rgba(29, 29, 27, 0.18);
    color: var(--text);
}

.btn-secondary:hover {
    background: rgba(29, 29, 27, 0.04);
}

/* ===== FOOTER ===== */
footer {
    background: #1e2b27;
    color: #ebf5ef;
    padding: 48px 0 28px;
    margin-top: 60px;
    width: 100%;
}

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1fr;
    gap: 22px;
    padding-bottom: 24px;
}

.footer-brand {
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: -0.06em;
    margin-bottom: 12px;
}

.footer-brand span {
    color: #71d5a0;
}

footer p, footer li, footer a {
    color: rgba(235, 245, 239, 0.78);
}

footer h2 {
    margin: 0 0 16px;
    font-size: 0.92rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(235, 245, 239, 0.9);
}

footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 10px;
}

.footer-city-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 28px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 18px;
    color: rgba(235, 245, 239, 0.72);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-bottom-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.footer-legal-links {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Language Switcher */
.language-switcher-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.language-toggle {
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 3px;
    padding: 5px 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    transition: all 0.2s ease;
    min-width: 42px;
    white-space: nowrap;
    line-height: 1;
}

.language-toggle:hover {
    background: #f9fafb;
    border-color: #0f6e49;
}

.language-toggle .flag-icon {
    width: 18px;
    height: 12px;
}

.flag-icon {
    position: relative;
    display: inline-block;
    flex: 0 0 auto;
    overflow: hidden;
    border-radius: 1px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12);
}

.flag-uk {
    background:
        linear-gradient(90deg, transparent 42%, #fff 42%, #fff 58%, transparent 58%),
        linear-gradient(0deg, transparent 35%, #fff 35%, #fff 65%, transparent 65%),
        linear-gradient(90deg, transparent 46%, #cf142b 46%, #cf142b 54%, transparent 54%),
        linear-gradient(0deg, transparent 42%, #cf142b 42%, #cf142b 58%, transparent 58%),
        #012169;
}

.flag-nl {
    background: linear-gradient(to bottom, #ae1c28 0 33.33%, #fff 33.33% 66.66%, #21468b 66.66% 100%);
}

.dropdown-arrow {
    font-size: 10px;
    line-height: 1;
    margin-left: 1px;
}

.language-dropdown-menu {
    display: none;
    visibility: hidden;
    opacity: 0;
    position: absolute;
    top: calc(100% + 2px);
    left: 0;
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 3px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    min-width: 130px;
    z-index: 2000;
    flex-direction: column;
    transition: visibility 0.15s, opacity 0.15s;
}

.language-dropdown-menu.show {
    visibility: visible;
    opacity: 1;
    display: flex;
}

.footer-bottom-right .language-dropdown-menu {
    top: auto;
    bottom: calc(100% + 2px);
}

.dropdown-item {
    background: transparent;
    border: none;
    padding: 9px 12px;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #333;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
    width: 100%;
    white-space: nowrap;
    line-height: 1.2;
}

.dropdown-item .flag-icon {
    width: 20px;
    height: 14px;
}

.dropdown-item:hover {
    background: #f5f5f5;
    color: #0f6e49;
}

.dropdown-item.active {
    background: #e8f6ee;
    color: #0f6e49;
    font-weight: 600;
}

.dropdown-item:first-child {
    border-radius: 2px 2px 0 0;
}

.dropdown-item:last-child {
    border-radius: 0 0 2px 2px;
}

footer .dropdown-item {
    background: transparent;
    border: none;
    padding: 9px 12px;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #333;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
    width: 100%;
    white-space: nowrap;
}

footer .dropdown-item:hover {
    background: #f5f5f5;
    color: #0f6e49;
}

footer .dropdown-item.active {
    background: #e8f6ee;
    color: #0f6e49;
    font-weight: 600;
}

.lang-text {
    flex: 1;
}

@media (max-width: 768px) {
    .footer-city-links {
        grid-template-columns: 1fr;
    }
}
    background: #e8f6ee;
    color: #0f6e49;
    font-weight: 600;
}

footer .dropdown-item:first-child {
    border-radius: 3px 3px 0 0;
}

footer .dropdown-item:last-child {
    border-radius: 0 0 3px 3px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 980px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav .nav-links {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .nav .nav-actions {
        display: none;
    }

    .nav {
        height: 72px;
        flex-wrap: nowrap;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        justify-content: center;
        text-align: center;
        flex-direction: column;
    }
    
    .footer-bottom-right {
        flex-direction: column;
        gap: 12px;
    }

    .footer-legal-links {
        flex-direction: column;
        gap: 10px;
