/* =====================================================================
   J.P. Builders - ported from the original jpbuilder.in style.css
   Colours, fonts, sizes and spacing kept identical to the live site.
   ===================================================================== */

html, body {
    margin: 0;
    padding: 0;
}

body {
    background: #ffffff url(../images/bgnew.jpg) repeat-x;
}

/* Original site ran in "almost standards" mode, where an image alone in a
   table cell leaves no descender gap. This keeps the same look under HTML5. */
img {
    vertical-align: bottom;
    border: 0;
}

table {
    border-collapse: separate;
}

/* ---------- Page frame ---------- */
.page {
    width: 1000px;
    margin: 0 auto;
}

.top-bar {
    height: 90px;
    background-image: url('../images/top.jpg');
}

.top-bar .logo-cell {
    width: 104px;
    height: 90px;
}

/* ---------- Menu ---------- */
.menu-bar {
    width: 1000px;
}

.menu-bar td {
    padding: 20px 5px 15px 45px;
    background-image: url('../images/menu_bg.gif');
    background-repeat: no-repeat;
}

.menu-bar td.first {
    background-image: url('../images/menu_bg1.jpg');
}

.menu-bar td.wide-pad {
    padding-right: 20px;
}

/* ---------- Content bands ---------- */
.band-main {
    background-image: url('../images/mid_gradient.gif');
    background-color: #0564A2;
    background-repeat: no-repeat;
}

.band-left {
    background-image: url('../images/mid_sec_gradient.gif');
    background-color: #004775;
    background-repeat: no-repeat;
}

.band-right {
    background-image: url('../images/mid_right_gradient.gif');
    background-color: #00304E;
    background-repeat: no-repeat;
}

.band-footer {
    background-image: url('../images/mid_gradient.gif');
    height: 60px;
}

/* ---------- Original text classes ---------- */
.bullet {
    padding: 5px;
}

.heading {
    font-family: Arial;
    font-size: 23px;
    font-style: normal;
    color: #ffffff;
    font-weight: bold;
    text-align: justify;
    vertical-align: top;
    line-height: 30px;
    padding: 5px;
}

.heading1 {
    font-family: Arial;
    font-size: 15px;
    font-style: normal;
    color: #ffffff;
    font-weight: bold;
    text-align: justify;
    vertical-align: top;
    line-height: 30px;
    padding: 5px;
}

.innertext {
    font-family: Arial;
    font-size: 13px;
    font-style: normal;
    color: #ffffff;
    text-align: justify;
    vertical-align: top;
    text-indent: 40px;
    line-height: 30px;
    padding: 5px;
}

.listtext {
    font-family: Arial;
    font-size: 13px;
    font-style: normal;
    color: #ffffff;
    text-align: justify;
    vertical-align: top;
    line-height: 30px;
    padding: 5px;
}

.menutext,
.menutext:link,
.menutext:visited {
    font-family: Arial;
    font-size: 14px;
    font-style: normal;
    color: white;
    text-decoration: none;
    font-weight: normal;
    text-align: left;
    vertical-align: top;
}

.menutext:hover,
.menustay,
.menustay:link,
.menustay:visited {
    font-family: Arial;
    font-size: 14px;
    font-style: normal;
    color: #260b0a;
    text-decoration: none;
    font-weight: normal;
    text-align: left;
    vertical-align: top;
}

.footer,
.footer:link,
.footer:visited,
.footer:hover,
.fotertext {
    font-family: Arial;
    font-size: 13px;
    font-style: normal;
    color: #9db5d2;
    font-weight: normal;
    text-decoration: none;
}

.table1 {
    font-family: Arial;
    font-size: 13px;
    font-style: normal;
    color: white;
    text-align: justify;
    vertical-align: top;
    line-height: 25px;
    padding-right: 10px;
}

.contact {
    font-family: Arial;
    font-size: 13px;
    font-style: normal;
    color: #ffffff;
    text-align: justify;
    vertical-align: top;
    line-height: 18px;
}

/* ---------- Project Portfolio table ---------- */
.portfolio th {
    text-align: center;
    background-color: #002F4F;
}

.portfolio td {
    background-color: #004675;
}

.portfolio td.year {
    text-align: center;
}

/* ---------- Our Sites gallery ---------- */
.site-gallery {
    width: 100%;
    float: left;
}

.site-gallery .item {
    width: 30%;
    padding-right: 2%;
    float: left;
    text-align: center;
}

.site-gallery .item p {
    margin: 16px 0;
}

/* ---------- Enquiry form ---------- */
.enquiry-form input[type=text],
.enquiry-form input[type=email],
.enquiry-form input[type=tel],
.enquiry-form textarea {
    width: 250px;
    font-family: Arial;
    font-size: 13px;
}

.enquiry-form textarea {
    height: 60px;
}

.enquiry-form .req {
    color: Red;
    font-family: Arial;
    font-size: 11pt;
    padding-left: 3px;
}

.enquiry-form .msg {
    font-family: Arial;
    font-size: 13px;
    line-height: 25px;
    color: #ffffff;
}

.enquiry-form .msg.error {
    color: #ffb3b3;
}

.field-validation-error {
    display: block;
    font-family: Arial;
    font-size: 12px;
    color: #ffb3b3;
}

/* =====================================================================
   Banner - HTML/CSS replacement for the original Flash banner
   (flash/top.swf, 1000x300, white stage, ~14s loop). Artwork extracted
   from the SWF itself.
   ===================================================================== */
.banner {
    position: relative;
    width: 1000px;
    height: 300px;
    overflow: hidden;
    background: #ffffff;
    line-height: normal;
}

.banner img {
    position: absolute;
    display: block;
}

.banner .glow {
    left: 260px;
    top: -60px;
    opacity: .9;
}

.banner .scene {
    position: absolute;
    inset: 0;
    opacity: 0;
    animation: banner-scene 14.3s infinite;
}

.banner .scene-2 {
    animation-delay: 7.15s;
}

.banner .kid {
    left: 10px;
    bottom: 0;
}

.banner .house {
    left: 40px;
    bottom: 20px;
}

.banner .engineer {
    right: 30px;
    bottom: 0;
}

.banner .scene .house,
.banner .scene .kid {
    animation: banner-rise 14.3s infinite;
}

.banner .scene-2 .house {
    animation-delay: 7.15s;
}

.banner .tagline {
    position: absolute;
    right: 50px;
    top: 70px;
    width: 300px;
    text-align: center;
    font-family: Arial;
}

.banner .tagline .small {
    font-size: 20px;
    font-weight: bold;
    color: #0564A2;
    margin-bottom: 6px;
}

.banner .tagline img {
    position: static;
    margin: 0 auto;
}

.banner .tagline .sub {
    margin-top: 10px;
    font-size: 14px;
    color: #555555;
}

.banner .cta {
    position: absolute;
    right: 155px;
    top: 200px;
    width: 90px;
    height: 32px;
    background: url('../images/banner/button.png') no-repeat;
    color: #ffffff;
    font-family: Arial;
    font-size: 13px;
    font-weight: bold;
    line-height: 32px;
    text-align: center;
    text-decoration: none;
}

.banner .cta:hover {
    color: #d8ecff;
}

.banner .scene-2 .tagline {
    right: auto;
    left: 520px;
    top: 40px;
    width: 220px;
}

.banner .scene-2 .cta {
    right: auto;
    left: 585px;
    top: 165px;
}

.banner .bird {
    top: 40px;
    left: -40px;
    animation: banner-bird 14.3s linear infinite;
}

.banner .bird.b2 {
    top: 70px;
    animation-delay: 1.2s;
    transform: scale(.7);
}

@keyframes banner-scene {
    0% { opacity: 0; }
    5% { opacity: 1; }
    45% { opacity: 1; }
    50% { opacity: 0; }
    100% { opacity: 0; }
}

@keyframes banner-rise {
    0% { transform: translateY(30px); }
    10% { transform: translateY(0); }
    100% { transform: translateY(0); }
}

@keyframes banner-bird {
    0% { left: -40px; top: 60px; }
    50% { left: 1040px; top: 20px; }
    100% { left: 1040px; top: 20px; }
}

@media (prefers-reduced-motion: reduce) {
    .banner .scene, .banner .scene img, .banner .bird {
        animation: none;
    }
    .banner .scene-1 {
        opacity: 1;
    }
    .banner .bird {
        display: none !important;
    }
}
