html {
    scrollbar-gutter: auto;
}

html, body {

    background-color: #3E1F5A;
    font-family: Manrope, sans-serif;

    min-height: 100vh;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.site-header {
    position:fixed;
    top:0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 100;

    box-sizing: border-box;
    background-color: #e1cee8;

    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;

    transition: box-shadow 0.3s ease;
}

.site-header.scrolled {
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.2);
}

.navbar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 40px;

    box-sizing: border-box;
    height: 100px;
    padding: 0px 20px;
    transition: height 0.3s ease;
}

.brand {
    position: static;
    transform: none;
    grid-column: 2;
    justify-self: center;
}

.logo {
    width: 100px;
    height: auto;
    display: block;

    transition: width 0.3s ease;
}

.site-header.scrolled .navbar{
    height: 80px;
}

.site-header.scrolled .logo {
    width: 70px;
}

.site-header.scrolled .navbar a {
    font-size: 20px;
}

.navbar > a:first-child {
    justify-self: end;
}

.navbar > a:last-child {
    justify-self: start;
}

.navbar a {
    position: relative;
    text-decoration: none;
    color: #3E1F5A;
    transition: color 0.3s ease, font-size 0.3s ease;
    font-family: "Manrope", sans-serif;
    font-weight: 600;
    text-decoration: none;
    font-size: 23px;   
}

.site-header .logo {
    transform: scale(1.3);
}

.navbar > a:not(.brand)::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;

    width: 100%;
    height: 3px;
    background-color: #caa460;

    opacity: 0;
    transform: scaleX(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.navbar > a:not(.brand):hover::after {
    opacity: 1;
    transform: scaleX(1);
}

.navbar a:hover {
    color: #865aad;
}
.navbar a[aria-current="page"] {
    color: #caa460;
}

.pilt {
    padding: 10px;
}

.about {
    background-color: #e1cee8;
    padding: 30px 30px;
    text-align: center;
    margin: -75px auto 30px;
    border-radius: 10px;
    box-sizing: border-box;
}

.about h2 {
    font-family: "Playfair Display", serif;
    max-width: 900px;
    margin: 0 auto 20px;
    text-align: left;
    font-size: 40px;
    color: #3E1F5A;
}

.about p {
    max-width: 900px;
    margin: 20px auto;
    text-align: left;
    line-height: 1.2;
    font-weight: 500;
    font-size: 25px;
    color: #3E1F5A;
}

.contact-preview {
    background-color: #e1cee8;
    padding: 40px 30px;
    margin: 20px auto;
    border-radius: 10px;
    box-sizing: border-box;
}

.contact-preview h2 {
    font-family: "Playfair Display", serif;
    color: #3E1F5A;
    max-width: 900px;
    margin: 0 auto 25px;
    text-align: left;
    font-size: 30px;
}

.contact-item {
    max-width: 900px;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.contact-item .material-symbols-outlined {
    font-size: 25px;
    color: #3E1F5A;
    flex-shrink: 0;
    font-weight: 500;
}

.contact-item p {
    font-size: 20px;
    color: #3E1F5A;
    margin: 0;
    font-weight: 500;
}

.hero {
    background-image: url("images/saru2c.jpg");
    background-size: cover;
    background-position: center 40%;
    background-repeat: no-repeat;

    height: 100vh;
    min-height: 500px;

    display: block;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.social-links {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 13px;
    margin: 0;
}

.social-links img {
    width: 25px;
    height: 25px;
    display: block;

    transition: transform 0.3s ease, opacity 0.3s ease;
}

.social-footer {
    background-color: #e1cee8;
    border-top: 20px solid #3E1F5A;
    border-top-left-radius: 30px;
    border-top-right-radius: 30px;
    padding: 10px 20px;

    display: block;
}

.social-content {
    max-width: 900px;
    grid-column: 2;
    width: 100%;
    margin: 0 auto;
    text-align: left;
}

.social-content p {
    margin: 0 0 10px;
    color: #3E1F5A;
    font-size: 17px;
    font-weight: 500;
}

.social-links a:hover img {
    transform: scale(1.15);
    opacity: 0.7;
}

body {
    padding-top: 70px;
}

body.page-invite {
    background-color: #3E1F5A;
    padding-top: 210px;
    margin: 0;
}

.page-invite .invite-container {
    width: 100%;
    max-width: none;
    min-height: 0;

    margin: 0 0 60px;
    padding: 50px 20px;
    box-sizing: border-box;

    border-radius: 10px;
    background-color: #e1cee8;
}

.page-invite .invite-content {
    width: 100%;
    max-width: 750px;
    margin: 0 auto;
    padding: 10px 20px;
    box-sizing: border-box;

    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;

    text-align: center;
}

.page-invite .invite-content h2 {
    margin: 0 0 12px;
    color: #3E1F5A;
    font-family: "Playfair Display", serif;
    font-size: 40px;
}

.page-invite .invite-content > p {
    margin: 0;
    color: #3E1F5A;
    font-size: 20px;
    line-height: 1.2;
}

.page-invite .contact-item {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;

    width: 100%;
    margin-top: 25px;

    color: #3E1F5A;
    text-align: left;
}

.page-invite .contact-item p {
    margin: 0;
    overflow-wrap: anywhere;
}

@media (max-width: 768px) {

    body:not(.page-invite){
        display: flex;
        flex-direction: column;

        min-height: 100dvh;
        box-sizing: border-box;
        padding: 70px 0 0;
    }

    body:not(.page-invite) > main {
        flex: 1;
    }

    .navbar {
        height: 76px;
        padding: 0 10px;
        gap: 8px;
    }

    .logo {
        width: 60px;
    }

    .navbar > a:not(.brand) {
        font-size: 13px;
        text-align: center;
    }

    .site-header.scrolled .navbar {
        height: 64px;
    }

    .site-header.scrolled .logo {
        width: 52px;
    }

    .site-header.scrolled .navbar > a:not(.brand) {
        font-size: 12px;
    }

    .hero {
        width: 100%;
        height: auto;
        min-height: 0;
        aspect-ratio: 2 / 1;
        
        display: block;
        margin: 0;
        padding: 0;
    }

    .pilt {
        width: 100%;
        height: auto;
        display: block;
        margin: 0;
        padding: 0;
    }

    .about {
        position: relative;
        z-index: 2;

        margin-top: -10px;
        padding-top: 30px;
    }

    .about h2 {
        font-size: 30px;
    }

    .about p {
        font-size: 17px;
        line-height: 1.5;
    }

    .contact-preview {
        padding: 30px 20px;
    }

    .contact-preview h2 {
        font-size: 20px;
    }

    .contact-item {
        gap: 10px;
    }

    .contact-item p,
    .contact-item a {
        font-size: 12px;
        min-width: 0;
        overflow-wrap: anywhere;
    }

    .social-links img {
        width: 20px;
        height: 20px;
    }

    body.page-invite {
        padding-top: 160px;
        padding-bottom: 70px;
    }

    .page-invite .invite-container {
        padding: 35px 0;
    }

    .page-invite .invite-content {
        padding: 10px 20px;
        text-align: left;
    }

    .page-invite .invite-content h2 {
        font-size: 30px;
    }

    .page-invite .invite-content > p {
        font-size: 18px;
        line-height: 1.2;
    }

    .page-invite .contact-item {
        width: 100%;
        justify-content: flex-start;
    }

    .social-footer {
        background-color: #e1cee8;
        border-top: none;
        border-radius: 15px 15px 0 0;
        
        margin-top: 35px;
        margin-bottom: 0;
        padding: 20px;
    }

    .social-content {
        width: 100%;
        max-width: 750px;
        margin: 0 auto;
        text-align: left;
    }

    .social-content p {
        font-size: 15px;
        margin: 0 0 15px;
        text-align: left;
    }

    .social-links {
        display: flex;
        justify-content: flex-start;
        align-items: center;
        gap: 20px;
        margin: 0;
    }

    .social-links img {
        width: 20px;
        height: 20px;
    }

}