/* ==================================================
   ABOUT PAGE
================================================== */


/* ==================================================
   ABOUT - MEET THE FAMILY
================================================== */

.about-family-content {
    max-width: 570px;
}

.about-family-content p {
    max-width: 540px;
}


/* ==================================================
   FAMILY VISUAL
================================================== */

.about-family-visual {
    position: relative;

    width: min(100%, 510px);
    min-height: 500px;

    margin-left: auto;
}


/* Offset outline */

.about-family-outline {
    position: absolute;
    left: 85px;
    bottom: -20px;
    width: 265px;
    height: 465px;
    border: 1px solid var(--primary);
    border-radius: var(--radius);
}


/* Solid green block */

.about-family-green {
    position: absolute;
    right: -40px;
    bottom: 45px;
    width: 340px;
    height: 455px;
    border-radius: var(--radius);
    background: var(--primary);
}


/* Transparent family image */

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

    width: 100%;
    max-width: 470px;

    margin-left: auto;
}


/* ==================================================
   TABLET
================================================== */

@media (max-width: 991px) {

    .about-family-row {
        row-gap: var(--space-2xl);
    }

    .about-family-content {
        max-width: 650px;
    }

    .about-family-visual {
        margin-left: auto;
        margin-right: auto;
    }
	
	.about-family-green {
		right: -20px;
    	width: 230px;
    	height: 355px;
	}
	
	.about-family-outline {
		left: 35px;
    	bottom: 10px;
    	width: 265px;
    	height: 365px;
	}

}


@media (max-width: 767px) {
	.about-family-green {
        width: 320px;
        height: 495px;
        bottom: 0;
    }
	
	.about-family-outline {
        bottom: -30px;
        height: 485px;
    }
}


/* ==================================================
   SMALL MOBILE
================================================== */

@media (max-width: 575px) {

    .about-family-visual {
        min-height: 390px;
    }

    .about-family-outline {
        left: 0px;
        width: 205px;
        height: 350px;
        bottom: -20px;
    }

    .about-family-green {
        right: -10px;
        width: 225px;
        height: 350px;
    }

    .about-family-image {
        max-width: 360px;
    }

}

/* ==================================================
   ABOUT - WHAT WE STAND FOR
================================================== */

.about-values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);

    gap: var(--space-md);

    margin-top: var(--space-2xl);
}


/* ==================================================
   VALUE CARD
================================================== */

.about-value-card {
    min-height: 145px;

    padding: var(--space-lg);

    border: 1px solid var(--border);
    border-radius: var(--radius);

    background: var(--white);

    box-shadow: 0 4px 4px 0 var(--primary);
}

.about-value-card h3 {
    font-family: var(--script-font);
    font-weight: 400;
}

.about-value-card h3 + p {
    margin-top: var(--space-md);
}


/* ==================================================
   TABLET
================================================== */

@media (max-width: 991px) {

    .about-values-grid {
        grid-template-columns: repeat(2, 1fr);

        gap: var(--space-lg);
    }

}


/* ==================================================
   SMALL MOBILE
================================================== */

@media (max-width: 575px) {

    .about-values-grid {
        grid-template-columns: 1fr;
    }

    .about-value-card {
        min-height: 0;
    }

}

/* ==================================================
   ABOUT - WHY THREE BRANCHES LANDSCAPES
================================================== */

.about-why-content {
    max-width: 610px;
}

.about-why-content > p {
    max-width: 560px;
}


/* ==================================================
   FEATURE LIST
================================================== */

.about-why-list {
    display: flex;
    flex-direction: column;

    gap: var(--space-lg);

    margin-top: var(--space-content-list);

    list-style: none;
}

.about-why-list li {
    display: flex;
    align-items: flex-start;

    gap: var(--space-sm);
}

.about-why-list .icon-list-icon {
    margin-top: 4px;
}

.about-why-list h3 {
    font-family: var(--script-font);
    font-weight: 400;
}

.about-why-list h3 + p {
    margin-top: var(--space-xs);
}


/* ==================================================
   IMAGE
================================================== */

.about-why-media {
    position: relative;

    width: min(503px, calc(100% - var(--space-md)));

    margin-left: auto;
    margin-right: var(--space-md);
}

.about-why-frame {
    position: absolute;

    top: var(--space-2xl);
    right: var(--space-lg);
    bottom: calc(var(--space-lg) * -1);
    left: calc(var(--space-lg) * -1);

    z-index: 1;

    border: 1px solid var(--border);
    border-radius: var(--radius);

    pointer-events: none;
}

.about-why-media > img {
    position: relative;
    z-index: 2;

    display: block;

    width: 100%;
    height: auto;

    aspect-ratio: 503 / 483;

    object-fit: cover;

    border-radius: var(--radius);
}


/* ==================================================
   TABLET
================================================== */

@media (max-width: 991px) {

    .about-why-row {
        row-gap: var(--space-2xl);
    }

    .about-why-content {
        max-width: 650px;

        margin-left: auto;
        margin-right: auto;
    }

    .about-why-media {
        width: min(503px, calc(100% - var(--space-xl)));

        margin-left: auto;
        margin-right: auto;
    }

}


/* ==================================================
   SMALL MOBILE
================================================== */

@media (max-width: 575px) {

    .about-why-media {
        width: calc(100% - var(--space-md));

        margin-left: var(--space-md);
        margin-right: 0;
    }

    .about-why-frame {
        top: var(--space-lg);
        right: var(--space-sm);
        bottom: calc(var(--space-sm) * -1);
        left: calc(var(--space-sm) * -1);
    }

}