/* Reset & base */
* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #1f2937;
    /* slate-800 */
    background: #f8fafc;
    /* slate-50 */
    display: flex;
    flex-direction: column;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    margin-top: 0;
    border-radius: 0.75rem;

}

/* Layout helpers */
.site-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
}

.site-header h1 {
    margin: 0;
    padding: 1.25rem 1rem 0.5rem;
    font-size: clamp(1.5rem, 2.5vw, 2.25rem);
}

.site-nav {
    padding: 0.5rem 1rem 1rem;
}

.site-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.site-nav a {
    color: #1f2937;
    text-decoration: none;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
}

.site-nav a:hover {
    background: #eef2ff;
    color: #1d4ed8;
}

#activePage,
.site-nav a[aria-current="page"] {
    text-decoration: underline;
    text-underline-offset: 3px;
    color: #1d4ed8;
}

main {
    width: min(1100px, 92%);
    margin: 1.25rem auto 2.5rem;
    flex: 1 0 auto;
}

.intro {
    margin-block: 1rem 1.5rem;
}

.intro p {
    max-width: 75ch;
}

.grid {
    display: grid;
    gap: 1rem;
}

.two-col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 1rem 1.25rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
    border-top: 2px solid red;
}

.card ul {
    padding-left: 1.25rem;
}

.card li {
    margin: 0.25rem 0;
}

.highlight {
    background: #f0f9ff;
    border-color: #bae6fd;
}

.story {
    margin-block: 1rem;
}

.cta {
    display: flex;
    justify-content: center;
    margin-top: 1.25rem;
}

.button {
    display: inline-block;
    background: #1d4ed8;
    color: #fff;
    padding: 0.65rem 1rem;
    border-radius: 0.5rem;
    text-decoration: none;
}

.button:hover {
    background: #1e40af;
}

footer {
    text-align: center;
    padding: 0.75rem 1rem;
    border-top: 1px solid #e5e7eb;
    background: #ffffff;
    margin-top: auto;
}

#textFooter {
    margin: 0;
}

/* Cookie banner */
#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #111827;
    /* gray-900 */
    color: #f9fafb;
    /* gray-50 */
    border-top: 1px solid #374151;
    /* gray-700 */
    transform: translateY(0);
    transition: transform .2s ease-in-out, opacity .2s ease-in-out;
}

#cookie-banner.hide {
    opacity: 0;
    transform: translateY(8px);
}

#cookie-banner .cookie-content {
    width: min(1100px, 92%);
    margin: 0 auto;
    display: flex;
    gap: .75rem;
    align-items: center;
    justify-content: space-between;
    padding: .85rem 1rem;
}

#cookie-banner p {
    margin: 0;
}

#cookie-banner .cookie-actions {
    display: flex;
    gap: .5rem;
}

#cookie-banner .btn {
    background: #e5e7eb;
    color: #111827;
    border: 0;
    border-radius: .5rem;
    padding: .5rem .75rem;
    cursor: pointer;
}

#cookie-banner .btn.accept {
    background: #10b981;
    color: #062;
}

#cookie-banner .btn.accept:hover {
    background: #059669;
    color: #fff;
}

#cookie-banner .btn.decline:hover {
    background: #d1d5db;
}

/* add bottom padding while banner is visible */
body.has-cookie-banner {
    padding-bottom: 64px;
}

.hero-image-wrapper {
    position: relative;
    height: 380px;
    width: 100%;
    margin-top: 0;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-bottom: 2px solid red;
    border-radius: 0.75rem;
}

.hero-image-wrapper::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, .25) 55%, rgba(0, 0, 0, 0) 85%);
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* language switcher */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
}

.lang-switch {
    display: flex;
    gap: .25rem;
}

.lang-switch button {
    background: #e5e7eb;
    border: 0;
    padding: .4rem .65rem;
    border-radius: .5rem;
    cursor: pointer;
    font-size: .8rem;
    letter-spacing: .5px;
}

.lang-switch button.active {
    background: #1d4ed8;
    color: #fff;
}

.lang-switch button:hover {
    background: #cbd5e1;
}

@media (max-width: 640px) {
    #cookie-banner .cookie-content {
        flex-direction: column;
        align-items: stretch;
    }

    #cookie-banner .cookie-actions {
        justify-content: flex-end;
    }

    .site-footer .footer-columns {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 800px) {
    .two-col {
        grid-template-columns: 1fr;
    }

    .site-header h1 {
        padding-bottom: 0.75rem;
    }

    .hero-image-wrapper {
        height: 240px;
    }

    .site-footer .footer-columns {
        grid-template-columns: 1fr 1fr;
    }
}

/* --- Footer (site-footer) --- */
.site-footer {
    background: #f3f3f3;
    border-top: 6px solid #d52b1e;
    margin-top: 2rem;
    text-align: left;
}

.site-footer .footer-inner {
    width: min(1100px, 92%);
    margin: 0 auto;
    padding: 2rem 1rem;
}

.site-footer .footer-columns {
    display: grid;
    grid-template-columns: 2fr 2fr 1.5fr;
    gap: 1.25rem;
    align-items: start;
}

.site-footer h2,
.site-footer h3 {
    margin: 0 0 .5rem;
}

.site-footer .contact-list,
.site-footer .link-list {
    list-style: none;
    padding: 0;
    margin: .5rem 0 1rem;
}

.site-footer .contact-list li,
.site-footer .link-list li {
    margin: .4rem 0;
}

.site-footer a {
    color: #0b4a8b;
    text-decoration: underline;
}

.site-footer .footer-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 1rem;
    margin: 0 0 .75rem;
}

.site-footer .status {
    margin: .25rem 0;
}

.site-footer .button {
    display: inline-block;
    background: #d52b1e;
    color: #fff;
    padding: .8rem 1rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
}

.site-footer .button:hover {
    filter: brightness(.95);
}

.site-footer .footer-bottom {
    margin-top: 1.5rem;
    border-top: 1px solid #e0e0e0;
    padding-top: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: .75rem;
    flex-wrap: wrap;
}

/* Center the © line exactly */
.site-footer .footer-bottom p {
    width: 100%;
    text-align: center;
    margin: 0;
}

.site-footer .socials {
    display: flex;
    gap: .6rem;
}

.site-footer .socials a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e74b3b;
    color: #fff;
    display: grid;
    place-items: center;
    text-decoration: none;
    font-weight: 700;
}

#textFooter {
    margin: 0;
}