.logo {
    display: block;
    margin: auto;
    width: 500px;
    max-width: 100%;
    height: auto;
}

.fade-in {
    opacity: 1;
    animation-name: fadeInOpacity;
    animation-iteration-count: 1;
    animation-timing-function: ease-in;
    animation-duration: 1.5s;
}

@keyframes fadeInOpacity {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

body {
    /*De kleur van alle tekstvelden en kaders*/
    color: #004225;

    font-family: "Anek Telugu", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-size: large;
    font-variation-settings:
            "wdth" 100;
}

/* De contact knop rechtsboven aan de pagina */
.contact-button {
    position: fixed;
    top: 2px;
    right: 5px;
    padding: 0.5em 1em 0.15em;
    /* De kleur van de knop */
    background-color: #fff;
    /* De kleur van de tekst in de knop */
    color: #004225;
    border-width: 1px;
    border-color: #004225;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    transition: background-color 0.2s ease;
    z-index: 10;
    font-family: "Anek Telugu", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
    font-variation-settings:
            "wdth" 100;
}


.contact-button:hover {
    /* De kleur van de knop als je er met de muis overheen gaat */
    background-color: rgba(217, 217, 217, 1);
}

/* De groep hyperlinks bovenaan die voor extra informatie zorgen */
.services {
    display: flex;
    justify-content: center;
    gap: 2vw;
    margin-top: 1.5rem;
    padding: 0 1rem;
    list-style: none;
    width: 100%;
    box-sizing: border-box;
    font-size: 0.8em;
    /*flex-wrap: wrap;*/
}

@media (min-width:400px) {
    .services {
        font-size: 1.2em;
    }
}

/* Elk hyperlink item apart */
.service-item {
    cursor: pointer;
    font-weight: normal;
    padding: 0.25rem 0.5rem;
    transition: color 0.2s;
}

/* De kleur als een hyperlink uitgeklapt is */
.service-item.active {
    color: #09714c;
}

@keyframes popIn {
    from { opacity: 0; transform: scale(0.8); }
    to   { opacity: 1; transform: scale(1); }
}

/* De extra informatie die uitgeklapt wordt */
#service-info {
    max-height: 0;
    opacity: 0;
    /* De maximale breedte van de tekst */
    max-width: 600px;
    overflow: hidden;
    margin: 0 auto;
    padding: 0 1rem;
    border-radius: 4px;
    text-align: justify;
    transition:
            max-height 0.3s ease-out,
            opacity     0.3s ease-out,
            padding     0.3s ease-out,
            margin      0.3s ease-out;
    font-family: inherit;
}

#service-info.visible {
    /* De maximale hoogte van de tekst */
    max-height: 100%;
    opacity: 1;
    margin: 1rem auto;
    border-style: hidden;
    border-width: thin;
    padding: 0.4rem;
    border-radius: 0;
}

#service-info.pop-in {
    display: block;
    animation: popIn 0.3s ease-out forwards;
}

/* Het contact kaartje onderaan de pagina */
.contact-card {
    width: 100%;
    box-sizing: border-box;
    margin: 0;
    padding: 1.5rem 1rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: #e9e9e9;
    border: none;
    border-radius: 0;
    z-index: 900; /* keep below floating pills but above content */
    text-align: center;
}

/* Contact name under the image */
.contact-name {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    font-weight: 600;
    color: #004225;
}

/* Small role/title under the name */
.contact-title {
    font-size: clamp(0.85rem, 2vw, 1rem);
    font-weight: 400;
    color: #004225cc; /* slightly softer */
    margin-top: -0.8rem;
}

/* Larger, centered contact image */
.contact-photo {
    object-fit: cover;
    border-radius: 4px;
    width: min(60vw, 220px);
    height: auto;
}

.outer {
    width: max(90%, min(100%, 412px));
    margin: 0 auto;
}

.grid {
    margin: 0 auto;
    max-width: 100%;
}
.grid-item {
    float: left;
    width: min(100%, 400px);
    margin-top: 10px;
}

@media (min-width: 600px) {
    .grid-item {
        margin: 10px;
    }
}

.grid-item img {
    display: block;
    /* De breedte van elke foto */
    width: inherit;
    height: auto;
}
/* Bottom-right contact pill */
.contact-pill {
    position: fixed;
    right: 16px;
    bottom: 16px;
    display: flex;
    gap: 2px;
    padding: 4px 10px;
    background: #004225;
    border: 1px solid #004225;
    border-radius: 999px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.18);
    z-index: 1000;
}

.pill-btn {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    background: #004225;
    color: #ffffff;
    line-height: 1;
    transition: transform .1s ease, background-color .2s ease, color .2s ease;
}

.pill-btn:hover,
.pill-btn:focus {
    transform: translateY(-2px);
}


@media (max-width: 480px) {
    .pill-btn { width: 36px; height: 36px; font-size: 16px; }
    .contact-pill { right: 12px; bottom: 76px; } /* keep above the bottom bar */
}
