/* XS (ALL SIZES) */

.hero {
    background-color: #C82418;
    color: #FFFFFF;
    padding: 22px;
    background-image: url(../media/backgrounds/hero-background@1.jpg);
    background-image: image-set(
        url(../media/backgrounds/hero-background@1.jpg) 1x,
        url(../media/backgrounds/hero-background@2.jpg) 2x,
        url(../media/backgrounds/hero-background@3.jpg) 3x
        );
    background-blend-mode: multiply;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: center;
}

.hero-section {
    display: flex;
    justify-content: center;
    align-items: end;

    width: 100%;
    height: 60vh;

    font-family: "Aleo", serif;
    font-size: 8.6rem;
}

.intro > .row:not(:first-child) {
    margin-top: 26px;
}

.projects > .row:not(:first-child) {
    margin-top: 32px;
}

.contacts > .row:not(:first-child) {
    margin-top: 32px;
}

.cta-secondary {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 8px;

    font-size: 1.8rem;
    line-height: 1em;
    font-weight: 700;
    color: #C82418;
    padding: 8px 12px;
}

.project-card-container {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.project-card {
    overflow: hidden;
    position: relative;

    display: flex;
    flex-direction: row;

    background-color: #FFFFFF;
    box-shadow: 0px 0px 6px 0px rgba(0, 0, 0, 0.25), 0px 0px 16px 0px rgba(0, 0, 0, 0.15);
    
    width: 100%;
    border-radius: 8px;
    padding-right: 24px;
    align-items: center;
    gap: 24px;

    transition: transform 500ms ease-out, box-shadow 500ms ease-out;
}

.project-card:hover, .project-card:focus {
    transform: scale(1.03);
    box-shadow: 0px 0px 6px 0px rgba(0, 0, 0, 0.25), 0px 0px 48px 0px rgba(0, 0, 0, 0.05);
}

.project-card > img {
    align-self: stretch;
    object-fit: cover;
    max-width: 250px;
}

.project-card-content {
    width: 100%;

    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 32px 0;
    gap: 16px;
}

p:first-of-type {
    margin-top: 0;
}

.project-tag-container {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    align-self: stretch;
    flex-wrap: wrap;
    gap: 12px;
}

.project-tag {
    background: #EAEAEA;
    padding: 6px 10px;
    border-radius: 8px;

    align-self: stretch;
    display: flex;
    align-items: center;
    
    color: #343434;
    font-size: 12px;
    font-weight: 700;
    line-height: 1em;
    text-transform: uppercase;
}

.card-clickable-area {
	position: absolute;
	top: 0;
	left: 0;
	height: 100%;
	width: 100%;
	z-index: 1;
	opacity: 0;
    text-decoration: none;
}

.project-card-content a {
    position: relative;
    z-index: 10;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    transition: text-decoration-color 300ms ease-out;
}

.project-card-content a:hover {
    text-decoration-color: #C82418;
}

.project-card-content > .cta-secondary {
    align-self: flex-end;
}

.contacts-card {
    overflow: hidden;
    position: relative;

    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: center;

    background-color: #FFFFFF;
    box-shadow: 0px 0px 6px 0px rgba(0, 0, 0, 0.25), 0px 0px 16px 0px rgba(0, 0, 0, 0.15);
    border-radius: 8px;

    transition: transform 500ms ease-out, box-shadow 500ms ease-out;;
}

.contacts-card:hover {
    transform: scale(1.05);
    box-shadow: 0px 0px 6px 0px rgba(0, 0, 0, 0.25), 0px 0px 48px 0px rgba(0, 0, 0, 0.05);
}

.card-clickable-area:focus {
    /* outline: solid 2px #0000FF;*/
    outline: medium auto currentColor;
    outline: medium auto invert;
    outline: 5px auto -webkit-focus-ring-color;
    outline-offset: -4px;
    opacity: 1;
}

.contacts-img {
    aspect-ratio: 1 / 1;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    align-self: stretch;
    
    background-color: #343434;
}

.contacts-content {
    padding: 4px 12px;
}

.credits-subh {
    margin-top: 2.4rem;
}



/* LG MAX WIDTH: 1200PX*/
@media (max-width: 1200px) {

.contacts-row {
    padding-right: 10%;
    padding-left: 10%;
}

}



/* MD MAX WIDTH: 992PX */
@media (max-width: 992px) {

.contacts-row {
    padding-right: 0;
    padding-left: 0;
}

}



/* SM MAX WIDTH: 768PX */
@media (max-width: 768px) {

.project-card {
    flex-direction: column;

    padding-right: 0;
    align-items: center;
    
    gap: 24px;
}

.project-card > img {
    max-width: initial;
    width: 100%;
    max-height: 280px;
}

.project-card-content {
    width: 100%;

    display: flex;
    flex-direction: column;
    justify-content: initial;
    align-items: center;
    padding: 0px 16px 24px 16px;
    gap: 16px;
}

.project-card-content > * {
    width: 100%;
}

.project-card-content > .cta-secondary {
    align-self: flex-end;
}

}



/* XS MAX WIDTH: 576PX */
@media (max-width: 576px) {

.hero-section {
    font-size: 4.8rem;
}

.cta-secondary {
    font-size: 1.6rem;
    padding: 6px 10px;
}

.project-card-container {
    gap: 24px;
}

.projects > .row:not(:first-child) {
    margin-top: 24px;
}

.contacts .contacts-card-container + .contacts-card-container {
    margin-top: 24px;
}

.contacts-card-container {
    padding-right: 20%;
    padding-left: 20%;
}

}



/* CUSTOM BREAKPOINTS */

/* MAX WIDTH: 486PX */
@media (max-width: 486px) {

.contacts-card-container {
    padding-right: 10%;
    padding-left: 10%;
}

}

/* MAX WIDTH: 320PX */
@media (max-width: 320px) {

.project-card > img {
    max-height: 200px;
}

.contacts-card-container {
    padding-right: 0;
    padding-left: 0;
}

}


