
/*HOME PAGE*/

/*--------------------------------*/

/*Buttons*/

.btn a, .btn div {display: table; text-align: center; text-decoration: none !important; background-color: var(--color1); -webkit-transition: 0.25s; white-space: nowrap; padding: 13px 17px 12px 17px; font-weight: 400; line-height: 1.4; color: #FFF !important; border: 1px solid #FFF  !important;}
.btn a:hover, .btn div:hover {background-color: var(--color2);}

/*--------------------------------*/

/*Big Pic*/

/*.homecap {border: 1px solid red} .homecap h1 {border: 1px solid green} .homecap div {border: 1px solid magenta} .homecap aside {border: 1px solid yellow}*/

#homepic {position: relative; overflow: hidden; z-index: 0; background-color: #141D29;}
#homepic img {width: 500px; height: 300px; width: 100%; height: 80vw; max-height: 700px; object-fit: cover; object-position: 50% 50%; display: block;}

.homecap {position: absolute; left: 5%; right: 5%; text-align: center; top: 50%; -webkit-transform: translateY(-50%); -ms-transform: translateY(-50%); transform: translateY(-50%); z-index: 1; margin: 0 auto; color: #FF2929; max-width: 2000px;}
.homecap div {font-size: 38px; line-height: 1.3; font-weight: 500;}
.homecap div:nth-child(3) {font-size: 1.7em; text-transform: uppercase; letter-spacing: .8px; word-spacing: 2px;}
.homecap h1 {font-family: 'NotoSerif', "Times New Roman", Times, serif; font-weight: 400; font-size: 75px; line-height: 1.15; letter-spacing: 0; text-align: center; color: #FFF; padding-top: 4px; padding-bottom: 8px;}
.homecap .btn {justify-items: center; text-align: center; margin: 40px auto 0 auto;}
.homecap .btn a {margin: 0 auto; font-size: 22px;}

@media (max-width: 1100px) {.homecap h1 {font-size: 75px;}}
@media (min-width: 981px) {.homecap h1 span {display: block;}}
@media (max-width: 965px) and (min-width: 531px) {
#homepic img {height: 80vw;}
.homecap h1 {font-size: 8vw;} .homecap div:first-child {font-size: 4vw;} .homecap div:nth-child(3) {font-size: 3.2vw;}
}
@media (max-width: 530px) {
#homepic img {height: 100vw; max-height: 460px;}
.homecap h1 {font-size: 9vw;} .homecap div:first-child {font-size: 4.8vw;} .homecap div:nth-child(3) {font-size: 5vw;}
}
@media (max-width: 460px) {.homecap .btn a {padding: 10px 15px 8px 15px; font-size: 19px;}}
@media (min-width: 501px) {#homepic img {filter: brightness(55%);}}

/*-----------------------------------------------*/

/*Blocks Under Big Pic*/

/*#svcs {border: 3px solid red} #svcs div {border: 1px solid magenta}
#svcs a {border: 1px solid cyan} #svcs img {border: 1px solid blue} #svcs h1 {border: 1px solid black}*/

#svcs {margin: 0 auto; text-align: center;} #svcs div {text-align: center; vertical-align: top; text-align: center;}
#svcs a {display: block; color: #FFF !important; text-decoration: none;}
#svcs h1 {line-height: 1.3; font-weight: 400 !important; margin: 8px auto 0 auto !important;}
#svcs span {display: block; margin: auto;} /*for old Safari*/

@media (min-width: 856px) {#svcs a {padding: 15px 0;} #svcs span {padding: 16px 4vw;}}
@media (max-width: 855px) and (min-width: 761px) {#svcs a {padding: 15px 0;} #svcs span {padding: 16px 3vw;}}

@media (min-width: 761px) {#svcs img {width: 130px; height: 130px;} #svcs h1 {font-size: 20px;}}
@media (max-width: 760px) {#svcs a {padding: 15px 0;} #svcs img {width: 115px; height: 115px;} #svcs span {padding: 16px 2.5vw;} #svcs h1 {font-size: 17px;}}

@media (max-width: 650px) {#svcs img {width: 80px; height: 80px;} #svcs span {padding: 16px 4.5vw;}}
@media (min-width: 591px) {#svcs h1 {text-transform: uppercase;}}
@media (max-width: 590px) {#svcs span {padding: 16px 3.5vw;}}
@media (min-width: 531px) {#svcs {display: table;} #svcs div {display: table-cell;}}
@media (max-width: 530px) {#svcs {max-width: 420px;} #svcs div {display: inline-block; width: 47%;} #svcs img {width: 90px; height: 90px;}}
@media (max-width: 530px) and (min-width: 346px) {#svcs h1 {text-transform: uppercase;}}
@media (min-width: 501px) {#svcs div {transition: .15s;}}
@media (max-width: 310px) {#svcs img {width: 95px; height: 95px;} #svcs h1 {font-size: 16px;}}
@media (max-width: 300px) {#svcs {max-width: 350px;} #svcs div {width: 45%;} #svcs img {width: 70px; height: 70px;}}

#svcsback {background-color: var(--color1);} #svcs div:hover {background-color: var(--color1dark);}

/*--------------------------------*/

/*Top Area*/

#toparea .bodyarea {-webkit-display: grid; display: grid;}

.tahead1, .tahead2 {font-family: 'NotoSerif', "Times New Roman", Times, serif;}
.tahead1 {font-size: 2.7em; line-height: 1.1; letter-spacing: 0; color: var(--color1);}
.tahead2 {letter-spacing: 0; color: var(--color2); margin: 20px 0; font-size: 2.2em; line-height: 1.25;}
#toparea section {align-content: center; align-items: center; align-self: center;}
#toparea span {display: block; font-size: 1.15em; font-weight: bold; line-height: 1.4; color: #00F;}
#toparea p {margin-bottom: 0;} #toparea .btn {margin: 25px 0 0 0;}

/*If padding above and below, do this to make image not so tall: for section:last-child {height: 90%; align-self: center;}*/

.tapics {display: grid; gap: 10px; grid-gap: 10px; overflow: hidden /*for old Safari*/;}
.tapics picture {display: block; width: 100%; height: 100%;}
.tapics picture img {width: 500px; height: 300px; width: 100%; height: 100%; object-fit: cover; display: block;}

@media (min-width: 1771px) {.tapics {grid-template-rows: 400px 230px;}}
@media (max-width: 1770px) and (min-width: 1301px) {.tapics {grid-template-rows: calc(680px - 16vw) calc(540px - 16vw);}}
@media (min-width: 1301px) {
#toparea .bodyarea {padding: 10px 0; grid-template-columns: 60% 40%; grid-auto-rows: 1fr;}
#toparea section:first-child {margin-right: 20px; padding: 50px 0;} #toparea section:last-child {margin-left: 20px;}
.tapics {grid-template-columns: 1fr 1fr;}
.tapics picture:nth-child(1) {grid-column: 1 / span 2; /* spans both columns */ grid-row: 1; object-position: 50% 0%;}
.tapics picture:nth-child(2) {grid-column: 1; grid-row: 2; object-position: 50% 50%;}
.tapics picture:nth-child(3) {grid-column: 2; grid-row: 2; object-position: 25% 50%;}
}

@media (max-width: 1300px) {
#toparea .bodyarea {padding: 10px 0 30px 0;}
#toparea section:first-child {padding: 50px 0 0 0;} #toparea section:last-child {margin: 30px 0 50px 0;}
#toparea .btn {display: none;}
}
@media (max-width: 1300px) and (min-width: 801px) {
.tapics {grid-auto-rows: 220px; grid-template-columns: 55% 45%; /*grid-template-columns: 50% 50%; grid-auto-rows: 220px;*/}
.tapics picture:nth-child(1) {grid-column: 1 / 2; grid-row: 1 / 3; object-position: 50% 0%;}
.tapics picture:nth-child(2) {grid-column: 2 / 2; grid-row: 1 / 1; object-position: 50% 35%}
.tapics picture:nth-child(3) {grid-column: 2 / 2; grid-row: 2 / 2;}
}
@media (max-width: 800px) and (min-width: 551px) {
.tapics {grid-auto-rows: 320px; grid-template-columns: 50% 50%; grid-template-rows: 330px 230px;}
.tapics picture:nth-child(1) {grid-column: 1 / 3; grid-row: 1 / 1; object-position: 50% 0%;}
.tapics picture:nth-child(2) {grid-column: 1 / 1; grid-row: 2 / 2; object-position: 50% 35%}
.tapics picture:nth-child(3) {grid-column: 2 / 2; grid-row: 2 / 2;}
}
@media (max-width: 550px) {
#toparea .bodyarea {padding: 10px 0;} .tapics {grid-auto-rows: 300px; grid-template-columns: 1fr;}
.tapics picture:nth-child(1) {object-position: 50% 0%;} .tapics picture:nth-child(2) {object-position: 50% 35%}
}

/*--------------------------------*/

/*About Us*/

#aboutus {background-color: #FFF} #aboutus .bodyarea {padding: 50px 0;}
.aboutus1, .aboutus2 {font-family: 'NotoSerif', "Times New Roman", Times, serif; letter-spacing: 0;}
.aboutus1 {font-size: 2.2em; line-height: 1.1; color: var(--color2);}
.aboutus2 {color: var(--color1); margin: 20px 0; font-size: 1.8em; line-height: 1.25;}
@media (max-width: 340px) {.aboutus1 {font-size: 2.8em;}}

/*--------------------------------*/

/*Service boxes*/

#boxback {background-color: var(--color2);} #boxes {margin: 0;}
.bbhead {margin: auto; padding: 20px 0 30px 0; text-align: center; font-family: 'NotoSerif', "Times New Roman", Times, serif; font-size: 2.2em; line-height: 1.1; color: #FFF;}
#boxes a {color: inherit; text-decoration: none; display: block;}
#boxes .box {background-color: #FFF; position: relative; background-color: var(--color2);}
.box .blkhead {text-align: center; -webkit-transition: 0.15s;}
#boxes img {width: 383px; height: 223px; width: 100%; height: calc(10vw + 150px); max-height: 300px; display: block; object-fit: cover; -webkit-transition: 0.2s;}
#boxes h2 {font-family: 'NotoSerif', "Times New Roman", Times, serif; font-size: 32px; line-height: 1.2; font-weight: 400 !important; color: #FF0;}

.box .blkbody {text-align: center; font-size: 17px; line-height: 1.55; color: #FFF;}
.box .btn div {margin: auto; -webkit-transition: 0.15s; padding: 11px 15px 10px 15px; font-size: 18px;}

.box a:hover .btn div {background-color: #F00;}
.box a:hover img {filter: brightness(120%);}

@media (max-width: 2200px) and (min-width: 1135px) {#boxes h2 span {display: block;}}
@media (min-width: 1701px) {#boxes {padding: 0 0 20px 0;} #boxes .box {width: 21%; margin: 0 12px;}}
@media (max-width: 1700px) {
#boxes {width: 100%; padding: 0 !important; margin: 0 !important;} #boxes .box {margin: 0 !important; box-sizing: border-box; border: 1px solid #000;}
#boxes .box:first-child {border-left: 0;} #boxes .box:last-child {border-right: 0;}
}
@media (min-width: 1136px) and (max-width: 1700px) {#boxes .box {display: table-cell; border-top: 2px solid #000; border-bottom: 2px solid #000;}}
@media (min-width: 1136px) {
#boxes {display: flex; align-self: center; flex-wrap: nowrap; justify-content: center;}
#boxes .box {display: table-cell; width: 25%;}
.box .blkbody {margin-bottom: 60px; padding: 20px 20px 35px 20px;}
.box .blkhead {margin: 40px auto 10px auto;}
.box .btn {position: absolute; margin: auto; bottom: 22px; left: 0; right: 0;}
}
@media (max-width: 1135px) {
#boxes {display: flex; flex-wrap: wrap; text-align: center;}
#boxes .box {width: 50%; padding-bottom: 20px;}
#boxes .box:nth-child(odd) {border-left: 0;} #boxes .box:nth-child(even) {border-right: 0;}
.box .blkbody {padding: 20px 20px 25px 20px;}
#boxes img {height: calc(12vw + 160px); object-position: 50% 20%;}
.box .blkhead {margin: 25px auto 0px auto; padding: 0 25px;}
.box .btn {margin: 0 auto;}
}
@media (max-width: 1135px) and (min-width: 601px) {#boxes .box:nth-child(1), #boxes .box:nth-child(2) {border-top: 2px solid #000;} #boxes .box:nth-child(3), #boxes .box:nth-child(4) {border-bottom: 2px solid #000;}}
@media (max-width: 770px) and (min-width: 601px) {#boxes h2 span {display: block;}}
@media (max-width: 600px) {
#boxes {display: block;} #boxes .box {width: auto; border-left: 0; border-right: 0;} #boxes .box:first-child {border-top: 2px solid #000;} #boxes .box:last-child {border-bottom: 2px solid #000;}
}

/*-----------------------------------------------*/

/*Bottom Pic*/

#btmpic {position: relative; overflow: hidden; z-index: 0; background-color: #101312;}
#btmpic img {width: 500px; height: 300px; width: 100%; max-height: 400px; object-fit: cover; object-position: 50% 50%; display: block;}

#btmpic div {position: absolute; display: table-cell; left: 50px; right: 50px; margin: auto; text-align: center; top: 48%; -webkit-transform: translateY(-48%); -ms-transform: translateY(-48%); transform: translateY(-48%); z-index: 1; font-family: 'NotoSerif', "Times New Roman", Times, serif; font-weight: 400; line-height: 1.3; color: #FFF; text-shadow: 1px 1px 2px #000; max-width: 850px; margin: auto;}

@media (min-width: 986px) {#btmpic img {height: 400px;} #btmpic div {font-size: 42px;}}
@media (max-width: 985px) {#btmpic img {height: 35vw;} #btmpic div {font-size: 4vw;}}
@media (max-width: 615px) {#btmpic div {left: 30px; right: 30px;}}
@media (max-width: 570px) {#btmpic img {height: 52vw;} #btmpic div {font-size: 5vw;}}
@media (max-width: 450px) {#btmpic img {height: 70vw;} #btmpic div {font-size: 6vw;}}
@media (max-width: 350px) {#btmpic img {height: 90vw;} #btmpic div {font-size: 6.5vw;}}

/*-----------------*/