@charset "UTF-8";
@import url("grid.css");

:root { 
    --base-color: #000;
    --link-color: #666;
    --linkhover-color: #999;
    --back-color: #f7f7f7;
    --border-color: #ccc;
    --white-color: #fff;
}

img {
	max-width:100%;
	height: auto;
}
a {
    display:block;
    color: var(--link-color);
    text-decoration-line: none;
}
a:hover { 
    color: var(--linkhover-color);
}

.mainimg {
    position: relative;
}

.mainimg img {
    display: block;
    width: 100%;
    height: auto;
}

.main-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    text-align: center;
    padding: 10px;
    /*border-radius: 10px;*/
}

h2, h3 {
    font-weight: bold;
}

header .logo {
    position: absolute;
    top: 10px;
    left: 10px;
    height: 50px;
    width: auto;
}

#aboutus {
    padding: 0;
}

#aboutus .row.align-items-stretch {
    display: flex;
    align-items: stretch;
}

#aboutus .col.span-7 {
    flex: 0 0 58.33%; /* 7 / 12 * 100% */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#aboutus .col.span-5 {
    flex: 0 0 41.67%; /* 5 / 12 * 100% */
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

#aboutus img.full-height-image {
    height: 100%;
    object-fit: cover;
}

#mission {
    position: relative;
    background-image: url('../img/mission.png');
    background-size: cover;
    background-position: center;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}
  
.mission-overlay {
    padding: 20px;
}
  
#mission h2 {
    font-size: 2em;
    margin-bottom: 10px;
}
  
#mission p {
    font-size: 1.2em;
}

#goal {
    padding: 0;
}

#goal .row.align-items-stretch {
    display: flex;
    align-items: stretch;
}

#goal .col.span-7 {
    flex: 0 0 58.33%; /* 7 / 12 * 100% */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#goal .col.span-5 {
    flex: 0 0 41.67%; /* 5 / 12 * 100% */
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

#goal img.full-height-image {
    height: 100%;
    object-fit: cover;
}

#goal .col.span-7.text-container {
    order: 2;
}

#goal .col.span-5.image-container {
    order: 1;
}

#basicinfo .row:nth-child(even) .col {
    display: flex;
    flex-direction: row-reverse;
}

#basicinfo .row {
    padding-top: 50px;
    padding-bottom: 50px;
}

.center-text {
    text-align: center;
}

.large-text {
    font-size: 1.2em;
    line-height: 1.5;
}

.highlight {
    font-size: 1.4em;
}

.center-content {
    display: flex;
    align-items: center;
}

#areas {
    padding: 3rem 0;
}

#areas .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

#areas .row {
    display: flex;
    width: 100%;
    justify-content: space-between;
}

#areas .col {
    flex: 15 15 20%;
    margin: 1%;
    text-align: center;
}

#areas img {
    max-width: 40%;
    border-radius: 10px;
}

#areas h3 {
    font-size: 1.5em;
    margin: 1rem 0 0.5rem;
}

#areas p {
    font-size: 1em;
    line-height: 1.5;
}

#whyus {
    padding: 3rem 0;
}

#whyus .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

#whyus .row {
    display: flex;
    width: 100%;
    justify-content: space-between;
    padding: 40px 0px;
}

#whyus .col {
    flex: 0 0 45%;
    margin: 1%;
    text-align: center;
}

#whyus img {
    max-width: 15%;
    border-radius: 10px;
}

#whyus h3 {
    font-size: 1.5em;
    margin: 1rem 0 0.5rem;
}

#whyus p {
    font-size: 1em;
    line-height: 1.5;
}

#vision {
    position: relative;
    background-image: url('../img/vision.png');
    background-size: cover;
    background-position: center;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}
  
.vision-overlay {
    padding: 20px;
}
  
#vision h2 {
    font-size: 2em;
    margin-bottom: 10px;
}
  
#vision p {
    font-size: 1.2em;
}

#message {
    padding: 0;
}

#message .row.align-items-stretch {
    display: flex;
    align-items: stretch;
}

#message .col.span-7 {
    flex: 0 0 58.33%; /* 7 / 12 * 100% */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#message .col.span-5 {
    flex: 0 0 41.67%; /* 5 / 12 * 100% */
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

#message img.full-height-image {
    height: 100%;
    object-fit: cover;
}

.contact-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--base-color);
    color: var(--white-color);
    text-align: center;
    text-decoration: none;
    border-radius: 25px;
    font-size: 1em;
    margin: 20px 0;
    transition: background-color 0.3s;
}

.contact-btn:hover {
    background-color: var(--linkhover-color);
}

.publicinspection-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--base-color);
    color: var(--white-color);
    text-align: center;
    text-decoration: none;
    border-radius: 25px;
    font-size: 1em;
    margin: 20px 0;
    transition: background-color 0.3s;
}

.publicinspection-btn:hover {
    background-color: var(--linkhover-color);
}

/*header
-------------------------------------*/
.header {
	display: flex;
    flex-direction: row;
    padding: 2rem 0 0 0;
}
.header-box {
	margin-left: auto;
	margin-top: 8px;
}
.contact-button {
	padding: 1rem;
	border: 2px solid var(--base-color);
}
nav ul {
	display: flex;
    flex-direction: row;
    justify-content: space-around;
    list-style: none;
	margin: 1rem 0 0 0;
}
nav li {
    background-color: var(--back-color);  
	flex: 1 0 auto;
    margin: 0px 10px 10px;
}
nav li a {
    text-decoration: none;
    text-align: center;
    width: 100%;
}
nav a:hover {
    background-color: var(--back-color);   
}
nav a {
    padding: 0.5rem;
}

@media screen and (min-width: 768px){
/* MENU button is hidden when on PC */
#open,#close {
    display: none !important;
}

#navi {
    display: block !important;
}
}

@media screen and (max-width: 768px){
.header {
	flex-direction: column;
    margin-bottom: 10px;
}
.header #open,#close  {
    position: absolute;
    top: 20px;
    right: 12px;
}
nav ul {
	flex-direction: column;
}
.header li {
	padding-top: 0;
}
/* MENU button is displayed when on a mobile phone */
#open {
    display: block;
    background: url(../img/button.png);
    background-repeat: no-repeat;
    background-size: contain;
    width: 50px;
    height: 50px;
    border: none;
    position: absolute;
    top: 20px;
    right: 12px;
}
#close  {
    display: block;
    background: url(../img/button2.png);
    background-repeat: no-repeat;
    background-size: contain;
    width: 50px;
    height: 50px;
    border: none;
    position: absolute;
    top: 20px;
    right: 12px;
}
/* Hide the menu when on a mobile phone */
#navi {
    display: none;
}
}
    
/*Main Image
-------------------------------------*/
.mainimg img {
    width: 100vw;
}

/*main content
-------------------------------------*/
main {
    margin: 5rem 0 0 0;
}
section {
	margin: 7rem 0;
	padding: 5rem 0;
}
.gray-back {
	background-color: var(--back-color);
}

/*catchphrase
-------------------------------------*/
.catch {
    text-align: center;
}
.catch h2 {
    padding-bottom: 1rem;
}
.under {
    border-bottom: 0.4rem solid var(--base-color);
    padding:0 1rem 1rem 1rem;
}
.center {
	text-align: center;
	margin-bottom: 4rem;
}
.catch h2 .under {
    border-bottom: none;
}
.mainimg .under {
    border-bottom: none;
}

/*footer
-------------------------------------*/
footer {
    background-color: var(--back-color); 
    padding: 5rem 0;
}
footer h4 {
    border-bottom: 3px solid var(--border-color);
}

/*copyright
-------------------------------------*/
.copyright {
    text-align: center;
    padding: 1rem 0;
    background-color: var(--base-color);
}
.copyright a {
    color: var(--white-color);
    text-decoration: none;
	display: inline;
}

/*Back to top button
-------------------------------------*/
#pagetop {
    position: fixed;
    bottom: 15px;
    right: 15px;
}
#pagetop a {
    display: block;
    background-color: var(--base-color);
    color: var(--white-color);
    width: 50px;
    padding: 10px 5px;
    text-align: center;
}
#pagetop a:hover {
    background-color: var(--link-color);
}

/* less than 768px
-------------------------------------*/
@media screen and (max-width: 768px){
	
/*header
-------------------------------------*/
.header-box {
	display: none;
}	
}