:root {
    --text-color: #1d4355
}

* {
    box-sizing: border-box;
}

html, body, main {
    margin: 0;
    padding: 0;
    width: 100%;
    background-color: #ffffff;

    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-color);
}

header {
    display: flex;
    align-items: center;
    gap: 4rem;

    padding: 1rem;
    font-size: 24px;
    min-width: 100%;

    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(20px);
}

h2 {
    text-align: center;
}

nav {
    display: flex;
    gap: 2em;
}

header > :last-child {
    margin-left: auto;
    margin-right: 4rem;
}

ul {
    list-style-type: '- ';
    list-style-position: inside;
    padding: 0;
}

a {
    color: dodgerblue;
}

.logo {
    padding: 0.75rem;
    display: grid;
    align-items: center;
}

.nav-btn {
    background-color: rgba(229, 229, 229, 0.2);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    border-radius: 0.75rem;
    border: transparent;

    padding: 0.75em 2em;
    margin: 0;
    font: inherit;
    font-size: 24px;
    color: inherit;

    cursor: pointer;
    height: fit-content;

    transition: background-color 300ms ease;
}

.nav-btn:hover {
    background-color: rgba(176, 191, 255, 0.4);
}

.nav-btn:active {
    background-color: rgba(176, 191, 255, 0.8);
}

section {
    margin-block: 2rem;
    padding: 2rem;

    font-size: 24px;
    text-align: center;

    align-content: center;
    justify-content: center;

    backdrop-filter: blur(20px);
}

section:nth-child(odd) {
    background-color: rgba(166, 186, 252, 0.1);
}

section:nth-child(even) {
    background-color: rgb(166, 229, 252, 0.1);
}

section > p {
    font-weight: 400;
    text-wrap: balance;
}

.procedure-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.screening-section {
    background-color: rgba(166, 186, 252, 0.25) !important;
}

.gallery-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.procedure-section button {
    grid-column: 1 / -1;
    justify-self: center;
}

.procedure-list ul {
    text-align: left;
}

.download-link {
    display: flex;
    gap: 0.5rem;
    text-decoration: none;
    align-items: center;
}

.service-list {
    display: flex;
    align-content: center;
    justify-content: center;
}

.service {
    padding: 0.75rem;
}

.service h3 {
    font-size: 24px;
    margin: 12px;
}

.service span {
    font-size: 42px;
    margin: 12px;
}

dialog {
    border: none;
    border-radius: 4rem;

    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-color);

    background-color: rgb(233, 247, 255);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);

    opacity: 0;
    transform: scale(0);
    transition: opacity 200ms ease,
    transform 150ms ease;
}

dialog::backdrop {
    opacity: 0;
    transition: opacity 200ms ease
}

dialog[data-show="true"] {
    opacity: 1;
    transform: scale(1);
}

dialog[data-show="true"]::backdrop {
    opacity: 1;
}

dialog::-webkit-scrollbar {
    width: 6px;
}

dialog::-webkit-scrollbar-track {
    background: transparent;
}

dialog::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 999px;
}

dialog {
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.3) transparent;
}

dialog::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.5);
}

#procedure-dialog > div {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

#procedure-dialog > div > :last-child {
    grid-column: 1 / -1;
    justify-self: center;
}

#video-dialog > div {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin: 2rem;
}
footer {
    background-color: rgba(166, 186, 252, 0.1);
    backdrop-filter: blur(20px);

    margin-top: 2rem;

    font-size: 20px;
    text-align: center;
    align-content: center;
    justify-content: center;
}

footer > hr {
    max-width: 80%;
}

.contact-list {
    margin: 2rem;
}

.gallery {
    height: 500px;

    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 1fr;
    gap: 8px;
    width: 100%;

    max-width: 100vw;
    overflow: hidden;
    transition: height 200ms ease;
}

.gallery[data-open="true"] {
    height: fit-content;
}

.gallery img {
    width: 100%;
    object-fit: contain;
    display: block;
}

#phone-desc {
    display: none;
}

@media (prefers-reduced-motion: reduce) {
    #procedure-dialog {
        transition: none;
        opacity: 1;
        transform: scale(1);
    }
}

@media (width < 900px) {
    header > p {
        display: none;
    }

    header {
        gap: 0;
    }

    header > :last-child {
        margin-right: 2rem;
    }

    header img {
        width: 90%;
    }

    #phone-desc {
        display: unset;
    }

    section {
        padding-inline: 10% !important;
        text-align: justify;
    }

    .info-section, .procedure-section, .screening-section, .gallery-section, footer {
        margin: 0;
        padding: 1rem;
    }

    .service-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        align-items: center;
    }

    .service {
        display: flex;
        align-content: center;
        justify-content: center;
        padding: 0;
    }

    .service h3 {
        font-size: 20px;
        margin-inline: 6px;
    }

    h1 {
        font-size: 1.5em;
    }
    h2 {
        font-size: 1em;
    }

    .info-section p {
        font-size: 18px;
    }

    .procedure-section, .screening-section {
        font-size: 18px
    }

    ul {
        text-align: left;
    }

    #video-dialog > div {
        margin: 0;
    }

    #video-player {
        width: 336px;
        height: 189px;
    }

    #procedure-dialog, #video-dialog {
        border-radius: 2rem;
    }

    #procedure-dialog > div {
        display: flex;
        flex-direction: column;
    }

    .gallery {
        display: flex;
        flex-direction: column;
    }

}

@media (width < 1225px){
    header > p {
        display: none;
    }

    #phone-desc {
        display: unset;
    }
}