:root {
    --color-text: #ffffff;
    --color-accent: #4da6ff;
    --color-accent-hover: #3399ff;
    --color-dark: #1c1c1c;
    --color-field: #2a2a2a;
    --color-border: #444444;
    --shadow-soft: 0 15px 40px rgba(0, 0, 0, 0.08);
    --shadow-strong: 0 15px 30px rgba(0, 0, 0, 0.4);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    color: var(--color-text);
    font-family: "Poppins", sans-serif;
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
        url("images/puu.jpg");
    background-position: center;
    background-size: cover;
    background-attachment: fixed;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
}

.container {
    width: min(100%, 1100px);
    margin: 0 auto;
    padding: 0 20px;
}

.site-nav {
    position: fixed;
    top: 0;
    z-index: 1000;
    width: 100%;
    padding: 15px 0;
    background: rgba(0, 0, 0, 0.7);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(100%, 1200px);
    margin: 0 auto;
    padding: 0 40px;
}

.logo img {
    height: 60px;
}

.nav-links {
    display: flex;
    gap: 60px;
    list-style: none;
}

.nav-links a {
    position: relative;
    padding-bottom: 5px;
    color: var(--color-text);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-links a::after {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-accent);
    content: "";
    transition: width 0.3s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
    color: var(--color-accent);
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: var(--color-text);
    transition: 0.3s;
}

.hero {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    text-align: center;
}

.hero h1 {
    margin-bottom: 20px;
    font-size: 56px;
}

.hero p {
    max-width: 600px;
    font-size: 22px;
}

.button {
    display: inline-block;
    margin-top: 30px;
    padding: 15px 35px;
    border-radius: 30px;
    color: var(--color-text);
    background: var(--color-accent);
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.button:hover,
.button:focus-visible {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.content-box {
    max-width: 900px;
    margin: 120px auto;
    padding: 60px;
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.7);
    text-align: center;
}

.content-box h1,
.content-box h2,
.partners h2 {
    margin-bottom: 30px;
}

.content-box p + p {
    margin-top: 16px;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.card {
    overflow: hidden;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-strong);
}

.card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.card h3 {
    padding: 20px 20px 10px;
}

.card p {
    padding: 0 20px 20px;
}

.gallery-card {
    display: block;
    width: 100%;
    border: 0;
    color: var(--color-text);
    font: inherit;
    cursor: pointer;
}

.contact-section {
    padding: 60px 20px;
}

.contact-card {
    overflow: hidden;
    margin: 80px 0;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

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

.contact-content {
    display: flex;
    gap: 60px;
    padding: 50px;
}

.contact-form,
.contact-info {
    flex: 1;
}

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

.contact-form form {
    margin-top: 30px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    margin-bottom: 15px;
    padding: 12px;
    border: 1px solid #dddddd;
    border-radius: 8px;
    font: inherit;
}

.contact-form textarea {
    min-height: 140px;
    resize: vertical;
}

.contact-form button,
.cookie-banner button {
    border: 0;
    color: var(--color-text);
    background: var(--color-accent);
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

.contact-form button {
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 16px;
}

.contact-form button:hover,
.contact-form button:focus-visible,
.cookie-banner button:hover,
.cookie-banner button:focus-visible {
    background: var(--color-accent-hover);
}

.contact-form button:hover {
    transform: translateY(-3px);
}

.dark-card {
    border-radius: 12px;
    color: var(--color-text);
    background-color: var(--color-dark);
}

.dark-card input,
.dark-card textarea {
    border-color: var(--color-border);
    color: var(--color-text);
    background-color: var(--color-field);
}

.dark-card input::placeholder,
.dark-card textarea::placeholder {
    color: #aaaaaa;
}

.contact-info h3 {
    margin-top: 24px;
}

.contact-info a {
    color: var(--color-accent);
}

.facebook-link {
    display: block;
    width: fit-content;
    margin-top: 15px;
    margin-left: auto;
}

.facebook-link img {
    width: 30px;
    height: 30px;
    transition: transform 0.2s;
}

.facebook-link:hover img,
.facebook-link:focus-visible img {
    transform: scale(1.1);
}

.partners {
    padding: 20px 0 80px;
}

.partners h2 {
    text-align: center;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 15px;
    align-items: center;
    justify-items: center;
}

.partners-grid a:nth-child(1),
.partners-grid a:nth-child(2),
.partners-grid a:nth-child(3) {
    grid-column: span 4;
}

.partners-grid a:nth-child(4),
.partners-grid a:nth-child(5),
.partners-grid a:nth-child(6),
.partners-grid a:nth-child(7) {
    grid-column: span 3;
}

.partners-grid img {
    width: 100%;
    max-height: 90px;
    object-fit: contain;
}

footer {
    padding: 40px 0;
    text-align: center;
}

.gallery-modal,
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.86);
}

.gallery-modal[hidden],
.lightbox[hidden] {
    display: none;
}

.gallery-modal {
    overflow-y: auto;
    padding: 40px 20px;
}

.gallery-dialog {
    width: min(100%, 1100px);
    margin: 0 auto;
    padding: 28px;
    border-radius: 16px;
    background: var(--color-dark);
}

.gallery-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.gallery-close,
.lightbox-close {
    border: 0;
    color: var(--color-text);
    background: transparent;
    font-size: 36px;
    line-height: 1;
    cursor: pointer;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.gallery-item {
    overflow: hidden;
    display: flex;
    min-height: 280px;
    flex-direction: column;
    border: 0;
    border-radius: 12px;
    color: var(--color-text);
    background: #111111;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 230px;
    object-fit: cover;
    transition: transform 0.25s ease;
}

.gallery-item span {
    display: flex;
    min-height: 56px;
    align-items: center;
    padding: 12px 14px;
    font-size: 15px;
    font-weight: 600;
}

.gallery-item:hover img,
.gallery-item:focus-visible img {
    transform: scale(1.05);
}

.lightbox {
    display: grid;
    place-items: center;
    padding: 70px 20px 30px;
}

.lightbox-content {
    display: grid;
    justify-items: center;
    gap: 14px;
    margin: 0;
}

.lightbox img {
    max-width: min(100%, 1200px);
    max-height: 78vh;
    object-fit: contain;
}

.lightbox figcaption {
    max-width: min(100%, 900px);
    padding: 10px 16px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.55);
    font-size: 18px;
    font-weight: 600;
    text-align: center;
}

.lightbox-close {
    position: absolute;
    top: 22px;
    right: 28px;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    width: 52px;
    height: 72px;
    border: 0;
    border-radius: 8px;
    color: var(--color-text);
    background: rgba(0, 0, 0, 0.55);
    font-size: 52px;
    line-height: 1;
    cursor: pointer;
    transform: translateY(-50%);
}

.lightbox-nav:hover,
.lightbox-nav:focus-visible {
    background: rgba(77, 166, 255, 0.85);
}

.lightbox-prev {
    left: 24px;
}

.lightbox-next {
    right: 24px;
}

.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 15px;
    max-width: calc(100% - 40px);
    padding: 15px 20px;
    border-radius: 10px;
    color: var(--color-text);
    background: #222222;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    transform: translateX(-50%);
}

.cookie-banner[hidden] {
    display: none;
}

.cookie-banner button {
    flex-shrink: 0;
    padding: 8px 15px;
    border-radius: 5px;
}

.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.show {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .nav-container {
        padding: 0 24px;
    }

    .nav-links {
        position: absolute;
        top: 80px;
        right: 0;
        width: 100%;
        flex-direction: column;
        align-items: center;
        gap: 30px;
        padding: 40px 0;
        background: rgba(0, 0, 0, 0.95);
        transform: translateY(-200%);
        transition: transform 0.4s ease;
    }

    .nav-links.active {
        transform: translateY(0);
    }

    .hamburger {
        display: flex;
    }

    .hero h1 {
        font-size: 42px;
    }

    .hero p {
        font-size: 18px;
    }

    .content-box {
        margin: 90px 20px;
        padding: 40px 24px;
    }

    .contact-content {
        flex-direction: column;
        gap: 35px;
        padding: 30px;
    }

    .map-wrapper iframe {
        height: 300px;
    }

    .partners-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .partners-grid a {
        grid-column: auto !important;
    }

    .cookie-banner {
        align-items: flex-start;
        flex-direction: column;
    }

    .gallery-dialog {
        padding: 20px;
    }

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

    .gallery-item img {
        height: 240px;
    }

    .lightbox-nav {
        top: auto;
        bottom: 24px;
        width: 48px;
        height: 56px;
        font-size: 42px;
        transform: none;
    }

    .lightbox-prev {
        left: 20px;
    }

    .lightbox-next {
        right: 20px;
    }

    .lightbox figcaption {
        margin-bottom: 70px;
        font-size: 16px;
    }
}
