:root {
    --primary-green: #1F3D2B;
    --primary-green-filter: brightness(0) saturate(100%) invert(18%) sepia(20%) saturate(899%) hue-rotate(101deg) brightness(94%) contrast(91%);
    --body-text: #1A1A1A;
    --background-callout: #DDE8E0;
    --page-title-heading-size: 3rem;
    --hero-heading-size: 4rem;
}

/* base */
body {
    font-family: "Open Sans", Arial, sans-serif;
    color: var(--body-text);
    background: white;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
}

.container {
    width: 95%;
    max-width: 1200px;
    margin: 0 auto;
}

/* header */
header {
    width: 100%;
}

header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 8px auto;
}

.header-logo {
    max-width: 270px;
    width: 100%;
}

.site-nav {
    margin-right: 32px;
}

.site-nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
    padding: 0;
    margin: 0;
}

.site-nav-link {
    font-weight: 600;
    text-decoration: none;
    color: var(--primary-green);
    padding-bottom: 4px;
}

.current-nav-link,
.site-nav-link:hover {
    border-bottom: 2px solid var(--primary-green);
}

.header-wave svg {
    /* transform: scaleY(0.25);
       transform-origin: top; */
    width: 100%;
    max-height: 70px;
    transform: scaleX(-1);
}

/* main */
main {
    flex: 1;
}

.page-title h1 {
    color: var(--primary-green);
    font-size: var(--page-title-heading-size);
    font-family: "Merriweather", Georgia, serif;
    margin: 0;
}

.page-title h1::after {
    content: "";
    display: block;
    width: 60px;
    height: 2px;
    margin-top: 8px;
    background: var(--primary-green);
}

/* hero */
.hero .container {
    display: flex;
    align-items: center;
    gap: 40px;
}

.hero-left {
    display: flex;
    flex-direction: column;
    gap: 24px;
    flex: 1 1 0;
}

.hero-left h1 {
    font-family: "Merriweather", Georgia, serif;
    font-size: var(--hero-heading-size);
    color: var(--primary-green);
    margin: 0;
}

.hero-left p {
    font-size: 1.3rem;
    text-align: justify;
}

.buttton-box {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.hero-right {
    flex: 1 1 0;
}

.hero-right img {
    display: block;
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 24px;
    margin-left: auto;
}

/* buttons */
.button {
    display: inline-block;
    min-width: 140px;
    padding: 18px 20px;
    border-radius: 16px;
    text-align: center;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.button-positive {
    background: var(--primary-green);
    border: 2px solid var(--primary-green);
    color: white;
}

.button-negative {
    background: white;
    border: 2px solid var(--primary-green);
    color: var(--primary-green);
}

/* content */
main .content {
    margin: 64px 0;
}

.about-content-layout {
    display: flex;
    align-items: stretch;
    gap: 32px;
}

main .content h2 {
    color: var(--primary-green);
}

main .content .container p {
    line-height: 1.6;
    margin-bottom: 24px;
}

.about-content-image {
    flex: 0 1 33.333%;
    max-width: 33.333%;
}

.about-content-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 70% center;
    transform: scaleX(-1);
    border-radius: 24px;
}

.about-content-text {
    flex: 1 1 0;
    min-width: 0;
}

/* contact */
.contact-container {
    display: flex;
    align-items: center;
    gap: 32px;
}

.contact-left {
    display: flex;
    flex-direction: column;
    flex: 0 1 32rem;
    max-width: 32rem;
    gap: 32px;
    min-width: 0;
}

.contact-right {
    flex: 1 1 0;
    min-width: 0;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 32px;
}

.contact-item-icon a {
    display: flex;
}

.contact-item-icon img {
    display: block;
    max-width: 40px;
    filter: var(--primary-green-filter);
}

.contact-item-details {
    display: flex;
    flex-direction: column;
    gap: 0px;
}

main .content .container .contact-item-label,
main .content .container .contact-item-property {
    margin: 0;
}

.contact-item-label {
    font-weight: bold;
    font-size: 1.2rem;
    color: var(--primary-green);
}

.contact-item-property a {
    color: inherit;
}

.contact-item-property {
    overflow-wrap: anywhere;
}

.contact-right img {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    object-position: center center;
    border-radius: 24px;
    display: block;
}

/* feature */
.feature .container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    background: var(--background-callout);
    border-radius: 32px;
    padding: 24px 0;
    box-sizing: border-box;
}

.feature-logo {
    padding-left: 32px;
}

.feature-logo img {
    max-width: 64px;
}

.feature-text h2 {
    color: var(--primary-green);
}

.feature-text {
    flex: 1 1 0;
}

.feature-button {
    flex-shrink: 0;
    padding-right: 32px;
}

/* screenshots */
.screenshots {
    margin-bottom: 64px;
}

.screenshots .container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 32px;
}

.screenshots a {
    display: flex;
    justify-content: center;
    flex: 0 1 46%;
}

.screenshots img {
    display: block;
    width: 100%;
    max-width: 560px;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* footer */
footer {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 10vh;
    width: 100%;
    background: var(--primary-green);
    color: white;
    margin-top: 64px;
}

footer .container {
    display: flex;
    align-items: center;
    justify-content: center;
}

footer .container span {
    font-size: 0.7rem;
}

/* responsive */
@media (max-width: 960px) {
    :root {
        --hero-heading-size: 3.5rem;
    }

    header .container {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px 24px;
    }

    .site-nav {
        margin-right: 0;
    }

    .site-nav ul {
        gap: 30px;
    }

    .hero .container {
        gap: 24px;
    }

    .hero-left p {
        font-size: 1.15rem;
    }

    .feature .container {
        gap: 20px;
        padding: 24px;
    }

    .feature-logo,
    .feature-button {
        padding: 0;
    }
}

@media (max-width: 768px) {
    :root {
        --page-title-heading-size: 2.85rem;
        --hero-heading-size: 3.2rem;
    }

    .container {
        width: min(95%, 640px);
    }

    header .container {
        flex-direction: column;
    }

    .site-nav {
        width: 100%;
    }

    .site-nav ul {
        justify-content: center;
        flex-wrap: wrap;
        gap: 30px;
    }

    .hero .container {
        flex-direction: column-reverse;
        align-items: center;
    }

    .hero-left {
        align-items: center;
        max-width: 36rem;
        text-align: center;
    }

    .hero-left p {
        font-size: 1.1rem;
        width: 100%;
        text-align: justify;
    }

    .buttton-box {
        justify-content: center;
    }

    .hero-right {
        display: flex;
        justify-content: center;
        width: 100%;
    }

    .hero-right img {
        margin-left: 0;
        margin-right: 0;
    }

    .feature .container {
        flex-wrap: wrap;
        align-items: center;
        text-align: left;
        padding: 24px 20px;
    }

    .feature-logo {
        flex: 0 0 auto;
        width: auto;
        min-width: 0;
        padding-left: 0;
        padding-right: 0;
    }

    .feature-text {
        flex: 1 1 0;
        width: auto;
        min-width: 0;
        padding-right: 0;
    }

    .feature-button {
        display: flex;
        justify-content: center;
        flex: 0 0 100%;
        width: 100%;
        min-width: 0;
        padding-right: 0;
    }

    .feature-button:empty {
        display: none;
    }

    .about-content-layout {
        display: block;
    }

    .about-content-image {
        max-width: none;
        margin-bottom: 32px;
    }

    .about-content-image img {
        height: auto;
        aspect-ratio: 16 / 9;
        object-position: center center;
    }

    .screenshots a {
        flex-basis: 100%;
    }

    .contact-container {
        flex-direction: column-reverse;
        align-items: stretch;
        gap: 32px;
    }

    .contact-left {
        flex: 1 1 auto;
        max-width: none;
        gap: 24px;
        margin-left: 0;
    }

    .contact-right {
        width: 100%;
        flex: none;
    }

    .contact-right img {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
        object-position: center center;
    }
}

@media (max-width: 480px) {
    .header-logo {
        max-width: 220px;
    }

    .hero-left {
        gap: 20px;
    }

    :root {
        --page-title-heading-size: 2.35rem;
        --hero-heading-size: 2.7rem;
    }

    .button {
        width: 100%;
        box-sizing: border-box;
    }

    .feature .container {
        border-radius: 24px;
    }

    .contact-container {
        gap: 24px;
    }

    .contact-item {
        gap: 20px;
    }

    footer .container {
        padding: 0 16px;
        text-align: center;
    }
}
