/*
Theme Name:     Phuong Nam Theme
Description:    Make theme Rouki
Author:         Rouki
Version:        1.0.0
*/

html {
    overflow-x: hidden;
}
body, html {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body *, html * {
    padding: 0;
    margin: 0;
    font-size: 16px;
    line-height: 1.5;
    box-sizing: border-box;
    color: #444;
}
/*Header*/
.header {
    display: flex;
    flex-direction: column;
}
/*.h-info{*/
/*    background: url("https://cuanhom-np.com/upload/photo/bgbanner_17090613112018.png");*/
/*    background-size: cover;*/
/*    background-repeat: no-repeat;*/
/*    padding: 30px 0;*/
/*}*/
.h-main{
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.h-logo a{
    display: flex;
    align-items: center;
}
.h-logo img{
    height: 50px;
    width: auto;
}
.h-menu{
    background-color: var(--main-background-opacity);
    display: flex;
    align-items: center;
}
.h-menu__main{
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.h-menu__icon{
    cursor: pointer;
    display: none;
}
.h-menu__icon span{
    width: 30px;
    height: 3px;
    background: #fff;
    margin: 6px 0;
    transition: 0.4s;
    display: block;
}
.h-nav > ul{
    display: flex;
    align-items: center;
    gap: 50px;
}
.h-nav li {
    list-style-type: none;
}
.h-nav li > a{
    font-size: 18px;
    font-weight: bold;
    color: #fff;
    text-decoration: none;
    transition: all .3s;
    display: block;
	padding: 20px 0;
}
.h-nav > li > a:hover {
    opacity: .7;
}
.header.is-menu-active{
    .h-menu__icon span:nth-child(1) {
        transform: translate(0, 9px) rotate(-45deg);
    }
    .h-menu__icon span:nth-child(2) {opacity: 0;}

    .h-menu__icon span:nth-child(3) {
        transform: translate(0, -9px) rotate(45deg);
    }
}
.has-children {
	position: relative;
}
.has-children > ul {
	position: absolute;
    background-color: var(--main-background-opacity);
	min-width: 150px;
	width: max-content;
    z-index: 11;
    height: auto;
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
	height: 0;
	transition: all .3s;
	overflow: hidden;
}
.has-children > ul > li {
	border-bottom: 1px solid #FAFAFA;
}
.has-children > ul > li a {
	font-weight: normal;
}
.has-children > ul > li:last-child {
	border-bottom: none;
}
.has-children > ul > li a {
	padding: 10px 20px;
}
.has-children:hover ul {
	height: auto;
}
.has-children ul li:hover {
	opacity: .7;
}
/*Footer*/
.footer {
    background-color: var(--main-background-opacity);
}
.f-logo{
    display: flex;
    justify-content: center;
    padding-top: 40px;
}
.f-logo img{
    max-width: 400px;
    width: 100%;
    height: auto;
}
.f-info{
    display: flex;
    gap: 30px;
    padding: 40px 0;
}
.f-info__item{
    width: calc((100% - 60px) /3);
    color:#ffffff;
    display: flex;
    align-items: center;
    gap: 20px;
}
.f-info__icon{
    width: 80px;
    height: 80px;
    border: 1px solid #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.f-info__icon i{
    font-size: 25px;
    color: #fff;
}
.f-info__text{
    flex:1;

}
.f-info__item strong{
    font-size: 16px;
    color: #fff;
}
.f-info__item p{
    font-size: 14px;
    color: #fff;
}
.f-copyright {
    padding: 15px 0;
    border-top: 1px solid #fff;
}
.f-copyright p, .f-copyright strong{
    font-size: 14px;
    color: #fff;
    text-align: center;
}

/*Home Hero*/
.home-hero {
	position: relative;
}
.hero-slider {
    height: 600px;
    width: 100%;
    overflow: hidden;
}
.hero-slider img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.hero-content {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 3;
	background-color: rgba(255,255,255,.5);
	display: flex;
	align-items: center;
	justify-content: center;
}
.hero-content .sec-ttl{
	font-size: 45px;
}
/*Home Customer*/
.home-aboutMe {
    background: #F5F5F8;
}

.aboutMe-list{
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}
.aboutMe-item{
    width: calc((100% - 30px) / 2);
    border: 3px solid var(--main-color);
    padding: 20px;
    border-radius: 20px;
}
.aboutMe-ttl{
    font-size: 18px;
    font-weight: bold;
    color: var(--main-color);
    text-align: center;
}
.aboutMe-des{
    margin-top: 5px;
    font-size: 14px;
}

/*Home Product*/
.product-list{
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 30px;
}
.product-item {
    width: calc((100% - 60px) / 3);
    text-decoration: none;
}
.product-img {
    border-radius: 12px;
    position: relative;
    padding-top: 75%;
    overflow: hidden;
}
.product-img img {
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    position: absolute;
    object-fit: cover;
}
.product-info {
    margin-top: 15px;
}
.product-name{
    font-size: 18px;
    text-align: center;
    color: var(--main-color);
}

/*Home Service*/
.service-list{
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 30px;
}
.service-item {
    width: calc((100% - 60px) / 3);
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
}
.service-img {
    position: relative;
    padding-top: 100%;
}
.service-img img {
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    position: absolute;
    object-fit: cover;
}
.service-name{
    position: absolute;
    width: 100%;
    bottom: 0;
    left:0;
    font-size: 18px;
    padding: 15px 0;
    text-align: center;
    background-color: var(--main-color-opacity);
    color: #fff;
}

/*Home Project*/
.home-project{
    background-color: var(--main-background-opacity);
}
.project-list{
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 30px;
}
.project-item {
    width: calc((100% - 60px) / 3);
    text-decoration: none;
}
.project-img {
    border-radius: 12px;
    position: relative;
    padding-top: 75%;
    overflow: hidden;
}
.project-img img {
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    position: absolute;
    object-fit: cover;
}
.project-info {
    margin-top: 15px;
}
.project-name{
    font-size: 18px;
    color: #fff;
    margin-top: 10px;
}
.project-des{
    font-size: 14px;
    color: #fff;
    margin-top: 5px;
}

/*Home Customer*/
.home-customer {
    background: #F5F5F8;
}
.customer-list{
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}
.customer-img{
    width: calc((100% - 90px) / 5);
    border: 3px solid var(--main-color);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
}
.customer-img img{
    width: 120px;
    height: auto;
}

/*Home News */
.news-list{
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}
.news-item {
    width: calc((100% - 40px) / 2);
    text-decoration: none;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 20px;
}
.news-img {
    width: 150px;
    height: 100px;
    display: block;
    overflow: hidden;
    position: relative;
}
.news-img img{
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    object-fit: cover;
    border-radius: 8px;
}
.news-info{
    flex: 1;
}
.news-name{
    font-size: 18px;
    font-weight: bold;
    color: var(--main-color);
}
.news-des{
    font-size: 14px;
    color: #000;
    margin-top: 5px;
}

/*Page About*/

.p-about--img {
    display: flex;
    justify-content: center;
}
.p-about--img img{
    width: 100%;
    max-width: 400px;
    height: auto;
}
.p-about--txt {
    margin-top: 40px;
}
.p-about--txt p{
    line-height: 2;
    font-size: 16px;
    display: flex;
    flex-direction: column;
    gap: 15px
}
.p-about--txt span{
    display: block;
}

/*Page Project*/
.p-project .project-name{
    color: #000;
}
.p-project .project-des{
    color: #000;
}


/*Page Contact*/
.p-contact__form {
    max-width: 600px;
    margin: 0 auto;
}
.c-formStyle {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    gap: 20px;
}
.c-formStyle__label {
    font-size: 16px;
    line-height: 16px;
    font-weight: 600;
    color: #999BA8;
    margin-bottom: 5px;
    display: block;
}
.c-formStyle__label span {
    color: #EC3C36;
    padding-left: 5px;
}
.c-formStyle input, .c-formStyle textarea {
    width: 100%;
    padding: 12px 16px;
    background: transparent;
    border-radius: 8px;
    font-size: 14px;
    border: 1px solid #71717A;
}
.c-formStyle input:focus-visible, .c-formStyle textarea:focus-visible {
    outline: none;
}
.c-formStyle textarea {
    height: 100px;
}
.c-formStyle__button {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    justify-content: center;
    gap: 16px;
    position: relative;
}
.c-formStyle__button input {
    font-size: 16px;
    color: #fff;
    font-weight: bold;
    width: 180px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #15a7e1;
    text-decoration: none;
    border-radius: 25px;
    border: none;
    cursor: pointer;
}
.c-formStyle__button input:hover {
    opacity: .7;
}

/* Page 404 */
.p-404 h2 {
    font-size: 24px;
    font-weight: 700;
    text-align: center;
}
.p-404 p {
    font-size: 16px;
    font-weight: 400;
    text-align: center;
    margin-top: 10px;
}
.p-404 .c-btn{
    margin-top: 20px;
}

/* Page Single */
.p-single__main{
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
}
.p-single__date{
    font-size: 14px;
    color: #71717A;
}

.p-single__ttl{
    font-size: 40px;
    color: var(--main-color);
    font-weight: bold;
	margin-bottom: 20px;
}
.p-single__content h1,
.p-single__content h2,
.p-single__content h3,
.p-single__content h4,
.p-single__content h5,
.p-single__content h6 {
    margin-bottom: 20px;
}
.p-single__content p{
    margin-bottom: 20px;
}
.p-single__content figure {
    margin-bottom: 20px;
}

/* Sec Map */
.sec-map {
    padding: 0;
    margin: 0;
    height: 400px;
    position: relative;
}
.sec-map iframe{
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

/* SNS */
.c-sns{
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: fixed;
    width: 50px;
    left: 30px;
    bottom: 30px;
	z-index: 10;
}
.c-sns__item{
    color: #fff!important;
    width: 100%;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    border-radius: 8px;
    background: var(--main-color);
    text-decoration: none;
}
.c-sns__item:hover {
    opacity: .7;
}
.c-sns__item i{
    color: #fff;
    font-size: 18px;
}



@media only screen and (max-width: 992px) {
    body{
        padding-top: 70px;
    }
    .header {
        position: fixed;
        top: 0;
        left:0;
        width: 100%;
        z-index: 10;
    }
    /*Menu*/
    .header.is-menu-active .h-nav{
        height: auto;
        opacity: 1;
        pointer-events: inherit;
    }
    .h-menu__icon {
        display: block;
    }
    .h-info{ display: none;}
	.h-menu {
		height: 70px;
	}
    .h-nav{
        opacity: 0;
        pointer-events: none;
        position: fixed;
        width: 100%;
        top: 69px;
        left:0;
        height: 0px;
        overflow: hidden;
        z-index: 10;
        background: var(--main-color);
        transition: all .3s ease-in-out;
    }
    .h-nav > ul{
        flex-wrap: wrap;
        gap: 0;
    }
    .h-nav li{
        width: 100%;
    }
    .h-nav li > a {
        text-align: center;
        padding: 15px 20px;
        border-top: 1px solid #eee;
    }
	.h-nav li.has-children ul{
		display: none;
	}

    /*Home Hero*/
    .hero-slider {
        height: 500px;
        width: 100%;
        overflow: hidden;
    }

    /*Home Product*/
    .product-item {
        width: calc((100% - 30px)/ 2);
    }

    /*Home Project*/
    .project-item {
        width: calc((100% - 30px)/ 2);
    }

    /*Home Service*/
    .service-item {
        width: calc((100% - 30px)/ 2);
    }

    /*Home News */
    .news-item {
        width: 100%;
    }

    /* Sec Map */
    .sec-map {
        height: 250px;
    }

    /*Footer*/
    .f-info{
        flex-wrap: wrap;
    }
    .f-info__item{
        width: 100%;
    }
	
	.p-single__main {
		width: 95%;
	}
}

@media only screen and (max-width: 767px) {
    body{
        padding-top: 70px;
    }
    .header {
        position: fixed;
        top: 0;
        left:0;
        width: 100%;
        z-index: 10;
    }
    /*Menu*/
    .header.is-menu-active .h-nav{
        height: auto;
        opacity: 1;
        pointer-events: inherit;
    }
    .h-info{ display: none;}
    .h-nav{
        opacity: 0;
        pointer-events: none;
        position: fixed;
        width: 100%;
        top: 69px;
        left:0;
        height: 0px;
        overflow: hidden;
        z-index: 10;
        background: var(--main-color);
        transition: all .3s ease-in-out;
    }
    .h-nav ul{
        flex-wrap: wrap;
        gap: 0;
    }
    .h-nav li{
        width: 100%;
    }
    .h-nav li > a {
        text-align: center;
        padding: 15px 20px;
        border-top: 1px solid #eee;
    }

    /*Home Hero*/
    .hero-slider {
        height: 400px;
        width: 100%;
        overflow: hidden;
    }
	.hero-content .sec-ttl {
		font-size: 26px;
	}
	
	.aboutMe-item {
		width: 100%;
	}

    /*Home Product*/
    .product-item {
        width: 100%;
    }

    /*Home Project*/
    .project-item {
        width: 100%;
    }

    /*Home Service*/
    .service-item {
        width: 100%;
    }

    /*Home Customer*/
    .customer-img{
        width: calc((100% - 20px) / 2);
    }

    /*Home News */
    .news-item {
        width: 100%;
    }

    /* Sec Map */
    .sec-map {
        height: 250px;
    }

    /*Footer*/
    .f-info{
        flex-wrap: wrap;
    }
    .f-info__item{
        width: 100%;
    }

    /*SNS*/
    .c-sns{
        left: 10px;
        bottom: 20px;
    }
}