/* 排列除錯make life easier */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html{
    min-width:100px;
    scroll-behavior: smooth;
}

body{
    /* max-width: 1024px; */
     /*height: 1000px; */
}

*{
     /*border: solid 0.1px red; */
}

/* Custom Properties, update these for your own design */

:root {
    --ff-primary: 'Poppins', sans-serif;
    --fw-reg: 200;
    --fw-med: 300;
    --fw-bold: 400;
    --fw-heavy: 600;
    
    --clr-light: #e5e5e5;
    --clr-dark: #111111;
    --clr-accent-b: #537099;

    --fs-h1: 40px;
    --fs-h2: 36px;
    --fs-h3: 22px;
    --fs-body: 16px;
    
    --square-size: 20px;
}

/* 中螢幕：1450以下 */
@media (max-width: 1450px) {
    :root {
        --fs-h1: 32px;
        --fs-h2: 28.8px;
        --fs-h3: 17.6px;
        --fs-body: 12.8px;
    }

}

/* 小螢幕：800以下 */
@media (max-width: 800px) {   
    :root {
        --fs-h1: 34px;
        --fs-h2: 32px;
        --fs-h3: 21px;
        --fs-body: 16px;
    }
}



/* General styles */

body { 
    background: var(--clr-dark);
    color: var(--clr-light);
    margin: 0;
    font-family: var(--ff-primary);
    font-size: var(--fs-h3);
}

h1,h2,h3 {
    line-height: 1.35;
    margin: 0;
}

a{
    color: var(--clr-accent-b);
}



/* ---------------------Content 01------------------------- */
.content{
    padding: 5% 10% 0% 30%;
    padding-bottom: 1%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    grid-template-areas: 
        "content_title content_content";
    grid-row-gap: 0.25%;
}

.content_title{
    grid-area: content_title;
}

.content_content{
    grid-area: content_content;
}


.content_title, .content_content{
    padding-top: 20%;
}

.content_title h1{
    font-size: calc(var(--fs-h1)*0.7);
    padding-right: 10%;
   	font-weight: 600;
   	/*color: var(--clr-light);*/
}

.content_content h3{
    font-weight: var(--fw-reg);
    font-family: var(--ff-secondary);
    font-size: calc(var(--fs-h3)*0.8);
    list-style-type: none;
    padding: 0px;
}

/*---FO_img---*/
.img{
    padding: 5% 15% 5% 40%;
}



.img_img{
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    grid-template-areas: 
    "img_01 img_01" 
    "img_02 img_02"
    "img_03 img_03"
    "img_04 img_05"
    "img_06 img_07";
    grid-row-gap: 0.35%;
    grid-column-gap: 0.35%;
    padding-bottom: 2%;
}

#img_01{
    grid-area: img_01;
    margin-bottom: 8%;
}

#img_02{
    grid-area: img_02;
    margin: 0% 20%;
}

#img_03{
    grid-area: img_03;
}


.box{
    position: relative;
}

.box img{
    width: 100%;
    height: 100%;
}

.img_FO_caption{
    background: var(--clr-accent-b);
    color: var(--clr-light);
    padding: 0% 6%;
    position: absolute;
    bottom: 0px;
    width: 100%;
    height: 100%;
    opacity: 0;
    font-family: var(--ff-secondary);
    font-weight: var(--fw-reg);
    overflow: auto;
    display: flex;
    flex-direction: column;
    justify-content: center; 
}

.img_FO_caption h3{
    font-weight: var(--fw-reg);
    font-size: calc(var(--fs-h3)*0.8);
}

.box:hover .img_FO_caption{
    opacity: 1;
    transition: all ease-in-out 0.35s;
    background-color: rgba(0,0,0,0.65);
}

/*---RWD---*/
@media(max-width:1000px){
    .content{
    grid-template-columns: 1fr; 
    grid-template-rows: auto;
    grid-template-areas: 
        "content_title"
        "content_content";
    padding: 0% 5%;
    padding-bottom: 5%;
    }

  .content_content{
        padding-top: 0%;
    }

    /*---FO img---*/
    .img{
    	padding: 0% 5% 5% 5%;
    	margin: 0%;
    }

    #img_02{
    margin: 0%;
    }

    .img_img{
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    grid-template-areas: 
        "img_01" 
        "img_02"
        "img_03" 
        "img_04"
        "img_05" 
        "img_06"
        "img_07";
    grid-row-gap: 0.35%;
    grid-column-gap: 0.8%;
    padding: 10% 0%;
    }
}


@media(max-width:700px){
    .content_title {
        margin-top: 20%;
    }
}




/* _________________header_________________ */

header{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0% 5.5% 0% 7%;
    margin: 0px;
    position: fixed;
    width: 100%;
    z-index: 100;
    background: var(--clr-accent-b);
    
}

header a{
    text-decoration: none;
}



a.logo_link{
    padding: 0px;
    margin: 0px;
}

.logo{
    display: flex;
    align-items: center;
    list-style: none;
    min-width: 100px;
    /* padding: 0 0px 0px 0px; */
}

.logo h3{
    margin: 0px 0px 0px 15px;
    color: var(--clr-accent-light);
    font-size: calc(var(--fs-h3)*0.95);
    font-weight: var(--fw-reg);
}

.logo_pic{
    width: 24%;
    padding: 1.5% 0%;
}

nav{
    transform: translate(0px,0px);

}

nav li a{
    color: var(--clr-light);
    font-size: calc(var(--fs-h3)*0.95);
    font-weight: var(--fw-reg);
    text-decoration: none; 
    padding: 0px 15px;
}

/*.scroll_down{
    background: var(--clr-accent-b);
    color: var(--clr-accent-b);
    transition: all ease-in-out 0.5s;
    box-shadow: 0px 3px 7px rgb(8 12 115 / 0.45);
    color: var(--clr-light);
}*/

nav li{
    position: relative;
    /*height: 100%;*/
    padding: 8% 0 6% 0;
        
}

nav a::after{
    content: '';
    display: block;
    height: 3px;
    width: 0%;
    background: var(--clr-accent-p);
    position: absolute;
    bottom: 0px;
    transition: all ease-in-out 0.35s;
}

nav ul{
    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none;
    padding: 0px;
    margin: 0px;
    padding: 0% 0;
}

nav a:hover::after{
    width: 100%;
    position: absolute;
}

.nav-toggle {
    padding: .5em;
    background: transparent;
    border: 0;
    position: absolute;
    right: 7%;
    cursor: pointer;
}

.nav-open nav {
    display: flex;
    justify-content: center;
    background: var(--clr-accent-b);
    position: fixed;
    top: 0;
    bottom:0;
    left: 0;
    right: 0;
    z-index: -10;
    transform: translateY(0%); 
}

.nav-open nav ul{
    display: flex;
    flex-direction: column;
}

.nav-open nav ul li{
    padding: 6% 50%;
}




.dropdown ul{
    /*display: none;*/
    flex-direction: column;
    position: absolute;
    background: var(--clr-accent-b);
    top:100%;
    left:0;
    width: 100%;
    transform: translate(0px, -10px);
    opacity: 0;
    z-index: -500
}

.dropdown:hover ul{
    /*display: flex;*/
    transform: translate(0px, 0px);
    transition-duration: 0.35s;
    opacity: 1;
    z-index: -500
}

.dropdown ul li{
    display: flex;
    justify-content: center;
    width: 100%;
}

.dropdown ul li a{
    font-size: calc(var(--fs-h3)*0.7);
    padding: 0%;
    margin: 8% 0%
}

.dropdown ul li a:hover::after{
    width: 0%;
}


.hamburger {
    display: none;
    position: relative;
    right: 0px;
    z-index: 100;
}

.hamburger,
.hamburger::before,
.hamburger::after {
    background: var(--clr-light);
    width: 30px;
    height: 2px;
    border-radius: 1px;
    transition: transform 250ms ease-in-out;
}


.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
}

.hamburger::before { top: 10px; }
.hamburger::after { bottom: 10px; }


/*---RWD---*/

@media(max-width:1450px){
    

    .logo h3{
    font-size: calc(var(--fs-h3)*1.5);
    }

    nav li a{
    font-size: calc(var(--fs-h3)*1.5);
    }

    .dropdown ul li a{
    font-size: calc(var(--fs-h3)*1.25);
    }

}


/*---Hamburger here---*/

@media(max-width:700px){
    nav a::after{
    display: none;
    }
    
    nav{
        display: none;
    }
    

    .hamburger{
        display: block;
    }

    .hamburger::before { top: 7px; }
    .hamburger::after { bottom: 7px; }



    nav li a{
    font-size: calc(var(--fs-h3)*1.3);
    }

    .dropdown ul{
    transform: translate(0px, -22%);
    }

    .dropdown:hover ul{
    transform: translate(70%, -22%);
    background: var(--clr-light);
    transition-duration: 1s;
    z-index: -100  
    /*width: 50%;*/
    }


    .dropdown:hover ul li a{
    color: var(--clr-accent-b);
    font-size: calc(var(--fs-h3)*1.2);
    transition-duration: 0.2s;
    }
}


@media(max-width:400px){
    nav a::after{
    bottom: -13px;
    }
    
    header{
    padding: 0.45% 0% 0.35% 3%;
    }

    .logo_pic{
    width: 20%;
    padding: 1.5% 0%;
    }
    
    .logo h3{
    font-size: calc(var(--fs-h3)*0.9);

    }

    .nav-toggle {
    right: 3%;
    }
    
    .hamburger,
    .hamburger::before,
    .hamburger::after {
    height: 1.8px;
    }
    
    .hamburger::before { top: 8px; }
    .hamburger::after { bottom: 8px; }
}



.home_intro img{
    position: absolute;
    top: 0px;
    width: 100%;
    z-index: -10;
}



/* _________________header_________________ */

header{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0% 5% 0% 5%;
    margin: 0px;
    position: fixed;
    width: 100%;
    z-index: 100;
    top:0;
    background: transparent; 
    
}

header a{
    text-decoration: none;
}

.scroll_down{
    background: var(--clr-dark);
    transition: all ease-in-out 0.5s;
}

a.logo_link{
    padding: 0px;
    margin: 0px;
}

.logo{
    display: flex;
    align-items: center;
    list-style: none;
    min-width: 100px;
}

.logo h3{
    margin: 0px 0px 0px 18px;
    color: var(--clr-light);
    font-size: 18px;
    letter-spacing: 0.5px;
    font-family: "acumin-pro", sans-serif;
    font-weight: 300;
    font-style: normal;
}

.logo_pic{
    width: 24.5%;
    padding: 2% 0%;
}

nav{
    transform: translate(0px,0px);
}

nav li a{
    color: var(--clr-light);
    font-size: 17.4px;
    letter-spacing: 5px;
    font-weight: var(--fw-reg);
    text-decoration: none; 
    padding: 0px 15px;
}

nav li{
    position: relative;
    padding: 7.5% 0 5% 0;     
}

nav a::after{
    content: '';
    display: block;
    height: 2.5px;
    width: 0%;
    background: var(--clr-accent-b);
    position: absolute;
    bottom: 0px;
    transition: all ease-in-out 0.35s;
}

nav ul{
    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none;
    padding: 0px;
    margin: 0px;
    padding: 0% 0;
}

nav a:hover::after{
    width: 100%;
    position: absolute;
}

.nav-toggle {
    padding: .5em;
    background: transparent;
    border: 0;
    position: absolute;
    right: 7%;
    cursor: pointer;
}

.nav-open nav {
    display: flex;
    justify-content: center;
    background: var(--clr-accent-b);
    position: fixed;
    top: 0;
    bottom:0;
    left: 0;
    right: 0;
    z-index: -10;
    transform: translateY(0%);
}

.nav-open nav ul{
    display: flex;
    flex-direction: column;
}

.nav-open nav ul li{
    padding: 6% 50%;
}


.hamburger {
    display: none;
    position: relative;
    right: 0px;
    z-index: 100;
}

.hamburger,
.hamburger::before,
.hamburger::after {
    background: var(--clr-light);
    width: 30px;
    height: 2px;
    border-radius: 1px;
    transition: transform 250ms ease-in-out;
}


.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
}

.hamburger::before { top: 10px; }
.hamburger::after { bottom: 10px; }



/*---RWD---*/
@media(max-width:1450px){
    
    .dropdown ul li a{
    display: none;
    }

}


@media(max-width:800px){
    nav a::after{
    display: none;
    }
    
    nav{
        display: none;
    }
    

    .hamburger{
        display: block;
    }

    .hamburger::before { top: 7px; }
    .hamburger::after { bottom: 7px; }



    nav li a{
    font-size: calc(var(--fs-h3)*1);
    }
    
}



/* _________________footer_________________ */

.footer_block{
    z-index: 100;
    background: var(--clr-light);
    height: 2%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0px 0% 0px 0%;
    position: relative;
}

a .footer__logo{
    width: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.social-list {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
}

a.social-list__link, a.footer_email{
    color: var(--clr-light);
    font-size: 14px;
    font-weight: var(--fw-med);
    color: var(--clr-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.18% 0%;
    text-decoration: none;
}


a.footer_email:hover{
    color: var(--clr-accent-b);
    transition: all ease-in-out 0.35s;
}

a.social-list__link:hover{
    color: var(--clr-accent-b);
    transition: all ease-in-out 0.35s;
}



/* -----RWD----- */
@media(max-width:700px){
    
    .hamburger{
        display: block;
    }

    .social-list__item{
    padding: 0%;
    }

    a.social-list__link, a.footer_email{
    color: var(--clr-light);
    }


    a.footer_email:hover{
    color: var(--clr-light);
    }

    a.social-list__link:hover{
    color: var(--clr-light);
    }


}