@charset "utf-8";


/********************************************************************************
 * file:        style.css
 * written by:  KotaroW
 * date:        22nd June 2020
 * memo:        A simple styling
 ********************************************************************************/


body{
    margin: 0;
    font-family: "Roboto";
}

/*** header ***/
header {
    background: #000;
    margin: 0;
    border-bottom: solid 1px #232323;
    position: -webkit-sticky; /* Safari */
    position: sticky;
    top: 0;
    z-index: 50;
}

/*** company logo ***/
header img {
    width: 100px;
    position: absolute;
    left: 1em;
    z-index: 100;
    transition: width 500ms ease-in-out, opacity 750ms ease-in-out;
}

/* image toggle hide/show logo */
header img.hide {
    opacity: 0;
}

header p {
    margin: 0;
}

/*** navigation ***/
nav {
    background: #000;
    top: 0;
}

nav > span {
    color: #efc032;
    font-weight: bold;
    font-size: 2rem;
    display: block;
    text-align: center;
    transition: all 500ms ease-in-out;
    cursor: pointer;
}

/* navigation toggle #1 */
nav span.rotate {
    transform:rotate(225deg);
}

nav > div {
    background: #000;
    position: absolute;
    width: 100%;
    height: 0;
    overflow: hidden;
    transition: all 500ms ease-in-out;
} 

/* navigation toggle #2 */
body.open {
    height: 100%;
    overflow: hidden;
}

nav > div.open {
    height: 100vh;
    overflow: scroll;
}

nav ul {
    margin: 0;
    padding: 0.5em 0.2em;
    list-style: none;
    background: #000;
}

nav li {
    margin: 1em 0.1em;
    border-bottom: solid 1px #555;
}

nav a {
    color: #fff;
    text-decoration: none;
    display: block;
    padding: 0.25rem 0.75rem 0.5rem;
}

nav a > span {
    font-size: 3vw;
    display: block;
    max-width: 68rem;
    margin: 0 auto;
}

/*** common for main ***/
a {
    color: #69c;
    text-decoration: none;
    display: inline-block;
    padding-bottom: 2px;
    border-bottom: solid 1px #999;
    transition: border-bottom-color 500ms ease-in-out;
}

a:hover {
    border-bottom-color: #fff;
}

section {
    margin: 0;
}

section h1, section h2 {
    font-weight: normal;
    text-align: center;
}

ul {
    list-style: none;
    padding-left: 0;
}

/*** introduction ***/
#intro {
    background: url(../image/auckland.jpg) no-repeat bottom right;
    background-size: cover;
    min-height: 50vh; /* half the screen */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

#intro:before {
    content: "";
    background: #000;
    position: absolute;
    top:0;
    bottom:0;
    left:0;
    right:0;
    opacity: 0.8;
}

#intro h1 {
    color: #fff;
    font-family: 'Open Sans';
    font-size: 5vw;
    font-weight: normal;
    letter-spacing: 0.05em;
    padding: 0 0.25em;
    position: relative;
    z-index: 20;
}

#intro h1 span:first-of-type {
    border-bottom: double 5px #efc032;
    display: inline-block;
    height: 0;
    opacity: 0;
    animation: Monkey 4s ease-in-out 2s forwards;
}

#intro img {
    position:relative;
    z-index: 25;
    width: 75%;
    max-width: 30rem;
}

/* animation for company name */
@keyframes Monkey {
	0% {
    	opacity: 0;
    	height: 0;
    }
    50% {
    	opacity: 1;
        height: 0;
    }
    75% {
    	height: 0;
    }
    100% {
    	height: 1em;
        opacity: 1;
    }     
}
    
#intro h1 span:last-of-type {
    color: #555;
    font-size: 25%;
}

/* mission statement */
#mission-statement {
    color: #ccc;
    font-size: 2vw;
    text-align: center;
    background: #111;
    padding-top: 0.25em;
}

#mission-statement div {
    position: relative;
}

/* diagnal line */ 
#mission-statement > div:after {
    content: "";
    height: 20px;
    display:block;
    background: #121212;
    border-bottom: solid 1px yellow;
    position: absolute;
    width: 100%;
    top: 100%;
    left: 0;
    transform:rotate(-0.5deg);
    transform-origin: 0%;
}

#mission-statement > div > span {
    font-size: 1.125em;
    word-spacing: 0.25em;
    display: block;
    max-width: 40em;
    margin: 0 auto;
    padding: 0.75em 0.5em;
    position: relative;
}

#mission-statement > div > span > span {
    color: #efc032;
    font-size: 1.25em;
    font-weight: bold;
    display: inline-block;
}

/*** sections in main  ***/
/*** change the classname to a relevant one ***/
h2 span:before {
    content: "- ";
}

h2 span:after {
    content: " -";
}

section.section-block {
    margin: 4em 0 1em;
    border: solid 1px #efc032;
    border-width: 3px 0 1px;
}

section.section-block > div {
    /*max-width: 58em;*/
    padding: 0 1em;
    margin: 0 auto;
}

section.section-block h2 {
    color: #555;
    font-size: 3vw;
}

section.section-block h2 span {
    color: #777;
    font-size: 0.5em;
    position: relative;
    margin-top: 0.75rem;
}

section.section-block span {
    display: block;
    font-size: 1.25rem;
    text-align: center;
}

section:nth-of-type(3) div:last-of-type {
    max-width: 1500px;
    margin: auto;
}

section:nth-of-type(3) ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}
    
section:nth-of-type(3) li {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0.5rem 2rem;
    width: 200px;
    height: 200px;
    border: solid 3px #efc032;
    border-radius: 50%;
    background: #fff;
}

section:nth-of-type(3) li > span {
    color: #222;
    text-align: center;
    font-size: 1.25em;
    border: solid 1px #efc032;
    padding: 0.5rem;
    display: block;
    min-width: 250px;
    background: #fff;
}

/* section 4: no contents but an informative image */
section:nth-of-type(4) {
    background: #333;
}

section:nth-of-type(4) div {
    width: 90%;
    background:#cca;
    margin: 0 auto;
    height: 50vh;
    background: url("../image/online.jpg") no-repeat center center;
    background-size: cover;
    background-attachment: fixed;
    position: relative;
}

section:nth-of-type(4) div:before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: #000;
    opacity: 0.5;
}

section:nth-of-type(4) div p {
    margin: 0;
    padding: 10em;
}

section:nth-of-type(5) > div {
    padding: 0;
}

section:nth-of-type(5) > div:last-of-type {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    background: #121212;
}

section:nth-of-type(5) > div > div {
    margin: 1px;
    flex: 1 1 500px;
    position: relative;
    max-width: 48rem;
}

section:nth-of-type(5) > div > div > span {
    font-size: 1.25em;
    padding: 1rem;
    background: #000;
    color: #efc032;
    position: absolute;
    top: 1rem;
    left: 0.25rem;
    opacity: 0.9;
    border: solid 1px #fff;
}

section:nth-of-type(5) img {
    display: block;
    width: 100%;
    height: 100%;
}

section:nth-of-type(6) ul {
    list-style: none;
    padding: 0;
}

section:nth-of-type(6) li > span {
    font-size: 3em;
    text-align: center;
    display: block;
}

section:nth-of-type(6) ul ul li {
    font-size: 1.25em;
    text-align: center;
    padding: 1.5rem 1rem;
    border: solid 1px #ccc;
    margin: 0 auto 0.5rem;
    max-width: 48rem;
}

section:nth-of-type(6) div > span {
    font-size: 5em;
    color: #777;
    display: block;
    text-align: center;
    animation: Breathe 5s ease-in-out infinite alternate;
}

@keyframes Breathe {
    0% {
        color: #777;
    }
    100% {
        color: #eee;
    }
}

section:nth-of-type(6) img {
    display: block;
    width: 100%;
}

section:nth-of-type(6) div > div:last-of-type {
    position: relative;
    margin-left: -1rem;
    margin-right: -1rem;
}

section:nth-of-type(6) div > div:last-of-type span {
    position: absolute;
    color: #fff;
    border: solid 1px #efc032;
    padding: 1rem;
    top: 50%;
    transform: translateY(-50%);
    left: 50%;
    transform: translateX(-50%);
}

section.section-block:nth-of-type(7) > div:last-of-type {
    padding: 0;
}

section:nth-of-type(7) > div > div {
    max-width: 52rem;
    margin: auto;
}

section:nth-of-type(7) p {
    font-size: 1.125em;
    line-height: 1.5;
}

section:nth-of-type(7) img {
    display: block;
    width: 100%;
}

section:nth-of-type(7) ul {
    max-width: 58rem;
    margin: auto;
}

section:nth-of-type(7) li {
    display: flex;
    background: #efc032;
    box-sizing: border-box;
}

section:nth-of-type(7) li:nth-of-type(even) {
    flex-direction: row-reverse;
}

section:nth-of-type(7) li > span,
section:nth-of-type(7) li img {
    width: 50%;
    flex: 1 1 50%;
    box-sizing: border-box;
}

section:nth-of-type(7) li img {
    height: 100%;
}

section:nth-of-type(7) li > span {
    display: flex;
    align-items: center;
    padding: 0.5rem;
}

section:nth-of-type(7) li > span span {
    color: #fff;
    background: #000;
    display: inline-block;
    max-width: 20rem;
    margin: auto;
    padding: 1rem;
    font-size: 1.25em;
}

section:nth-of-type(7) li:nth-child(n+6) {
    display: block;
    background: #000;
}

section:nth-of-type(7) li:nth-child(n+6) > span {
    color: #fff;
    font-size: 1.5em;
    line-height: 1.5;
    display: block;
    width: 100%;
    max-width: 39rem;
    margin: 0 auto;
    padding: 1rem 0.5rem;
    background: #111;
    border: solid 1px #000;
}

section:nth-of-type(8) p {
    font-size: 1.125em;
    padding: 1rem 0.5rem;
    text-align: center;
}

section:nth-of-type(8) ul {
	list-style: none;
    padding: 0;
    max-width: 58rem;
    margin: 0 auto;
}

section:nth-of-type(8) li {
	font-size: 1.25em;
    text-align: center;
    padding: 1.5rem 0.5rem;
    margin: 1rem 0;
}

section:nth-of-type(8) li:nth-of-type(odd) {
	border: solid 2px #efc032;
}

section:nth-of-type(8) li:nth-of-type(even) {
	border: solid 2px #000;
    background: #efc032;
}

section:nth-of-type(9) div:last-of-type {
    border: solid 1px #888;
    max-width: 32rem;
    margin: 1.5rem auto;
    padding: 2.5rem 4rem;
/*    box-shadow: 3px 3px #000; */
    position: relative;
}

section:nth-of-type(9) div > span {
    display: block;
    font-size: 1.125rem;
    text-align: left;
    margin-top: 0.75rem;
}

section:nth-of-type(9) div span[data-contact-item="name"] {
    font-size: 2em;
}

section:nth-of-type(9) div span[data-contact-item="title"] {
    margin-bottom: 1.5rem;
}

section:nth-of-type(9) img {
    position: absolute;
    display: block;
    max-width: 100px;
    top: 0.5rem;
    right: 0.5rem;
}


div span[data-contact-item="mobile"],
div span[data-contact-item="landline"],
div span[data-contact-item="email"],
div span[data-contact-item="postal"] {
    font-size: 1.25em;
}


/***************
    media query
****************/
@media screen and (min-width: 1499px) {
    section:nth-of-type(5) > div > div {
        flex: 1 1 640px;
    }   
}


@media screen and (min-width:1200px) {
    #intro h1 {
        font-size: 60px;
    }

    #mission-statement {
        font-size: 24px;
    }
}

@media screen and (max-width: 1200px) {
    section.section-block h2 {
        font-size: 36px;
    }
    section:nth-of-type(5) > div > div {
        flex: 1 1 420px;
    }
}

@media screen and (max-width:800px) {
    #mission-statement {
        font-size: 16px;
    }

    section:nth-of-type(6) ul ul li,
    section:nth-of-type(6) div > div:last-of-type span {
        font-size: 1.125em;   
    }
}

@media screen and (max-width:600px) {
    #intro h1 {
        font-size: 30px;
    }
}

@media screen and (max-width: 640px) {
    /* for logo */
    header img.small-logo {
        width: 90px;
    }
    section:nth-of-type(4) div {
        height: 25vh;
        background-size: contain;
        background-attachment: scroll;
    }
    section:nth-of-type(5) > div:last-of-type,
    section:nth-of-type(7) li {
        display: block;

    }
    section:nth-of-type(5) > div > div > span {
        position: static;
        display: block;
        border: none;
        border-bottom: solid 1px #333;
    }
    section:nth-of-type(6) div > ul > li > span {
        font-size: 2em;
    }
    section:nth-of-type(7) li > span,
    section:nth-of-type(7) li img {
        width: 100%;
    }
    section:nth-of-type(9) div:last-of-type {
        margin-left: 0.5rem;
        margin-right: 0.5rem;
    }
    
    section:nth-of-type(9) div > span {
        font-size: 1em;
    }

}


/* for navigation */
@media screen and (min-width:1400px) {
    nav a > span {
        font-size: 42px;
    }
}

@media screen and (max-width:600px) {
    nav a > span {
        font-size: 18px;
    }
}
