/* =========================
   Kecy Global Styles (Updated)
   ========================= */

/* --- Base typography & layout --- */
body {
  font-family: 'Open Sans', verdana, arial, sans-serif;
  background-color: #fff;
  color: #0d2243;
  font-size: 13px;
}

a { color: #336699; }
a:hover { color: #336699; }

p { margin: 0 0 15px; }
strong { font-weight: bold; }

.container { max-width: 1024px; }
.container-fluid { padding-right: 0; padding-left: 0; }

.no-gutter { padding-right: 0; padding-left: 0; }
.no-gutter-left { padding-left: 0; }
.no-gutter-right { padding-right: 0; }

.border { border: 1px solid #336699; border-collapse: collapse; }
.border-left { border-left: 1px solid #336699; }
.border-right { border-right: 1px solid #336699; }

h1, h2, h3, h4, h5, h6 {
  margin-top: 0;
  padding-top: 0;
  /* color set globally at bottom to win cascade */
  font-family: 'Open Sans', sans-serif;
  font-weight: 400;
}
.h4, .h5, .h6, h4, h5, h6 { margin-top: 0; margin-bottom: 0; }

h1 { font-size: 32px; }
h2 { font-size: 24px; }
h3 { font-size: 16px; margin-bottom: 0; }

dl { margin-left: 15px; }
dl dd { margin-left: 15px; margin-bottom: 8px; }

img.alignright { float: right; padding: 0 0 8px 8px; }
img.aligncenter {
  width: auto !important;
  height: auto;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

ul.two-col-list {
  list-style-type: disc;
  list-style-position: inside;
  padding: 0;
  margin: 0 0 20px 20px;
  -webkit-column-count: 2;
  -moz-column-count: 2;
  column-count: 2;
}

#header { width: 100%; }
#header .hdr-top { background-color: #f7f8f9; padding: 10px 0; }
#header .hdr-bot { background-color: #fff; }

#header .contact { text-align: right; }
#header .contact .phone {
  color: #336699;
  font-size: 18px;
  font-weight: 600;
  line-height: 20px;
}

.navbar { margin: 0; min-height: 0; }
.navbar-nav > li > a { color: #565554; font-size: 14px; }
.nav > li > a { padding: 10px 5px; }
.navbar-nav > li > a:after {
  content: "\00a0 \00a0 \00a0 \00a0 ::";
}
.navbar-nav > li:last-child > a:after { content: ""; }
.navbar-nav > li.active > a { color: #336699; }
.navbar-nav > li > a:hover { color: #336699; }
.navbar-nav > li.open > a { color: #336699; }

.dropdown-menu > .active > a,
.dropdown-menu > .active > a:focus,
.dropdown-menu > .active > a:hover {
  background-color: #ababab;
}

.navbar-nav li a:hover { background-color: transparent !important; }
.nav > li > a:focus,
.nav > li > a:hover { background-color: #fff; }
.nav .open > a,
.nav .open > a:focus,
.nav .open > a:hover {
  background-color: transparent;
  border-color: none;
}

.navbar-nav .sub-arrow,
.navbar-nav .collapsible .sub-arrow { display: none; }
.navbar-nav .dropdown-menu {
  border-left: 2px solid #336699;
  border-radius: 0;
}
.navbar-nav .dropdown-menu > li > a { font-size: 12px; }

.navbar-toggle {
  float: left;
  margin-left: 15px;
  border: 1px solid #565554;
}
.navbar-toggle .icon-bar { background-color: #336699; }

.dropdown-submenu { position: relative; }
.dropdown-submenu > .dropdown-menu {
  top: 0;
  left: 100%;
  margin-top: -6px;
  margin-left: -1px;
  border-radius: 0 6px 6px 6px;
}
.dropdown-submenu:hover > .dropdown-menu { display: block; }
.dropdown-submenu > a:after {
  display: block;
  content: " ";
  float: right;
  width: 0;
  height: 0;
  border-color: transparent;
  border-style: solid;
  border-width: 5px 0 5px 5px;
  border-left-color: #cccccc;
  margin-top: 5px;
  margin-right: -10px;
}
.dropdown-submenu:hover > a:after { border-left-color: #ffffff; }
.dropdown-submenu.pull-left { float: none; }
.dropdown-submenu.pull-left > .dropdown-menu {
  left: -100%;
  margin-left: 10px;
  border-radius: 6px 0 6px 6px;
}

.leftcol .dropdown-menu {
  font-size: 12px;
  border: none;
  box-shadow: none;
  background-color: #fcfcfc;
  border-left: 2px solid #336699;
  border-radius: 0;
}

.leftcol .dropdown-menu > .active > a,
.leftcol .dropdown-menu > .active > a:focus,
.leftcol .dropdown-menu > .active > a:hover {
  color: #336699;
  text-decoration: none;
  font-weight: bold;
  background-color: transparent;
}

#footer {
  background-color: rgba(242, 241, 240, 1);
  font-size: 11px;
  padding: 15px 0;
  width: 100%;
}
#footer a { color: #362f2d; }
#footer a:hover { color: #3866a7; text-decoration: none; }
#footer .social { padding: 0; }
#footer .social img { float: left; margin-right: 5px; }
#footer .family-links ul {
  list-style-type: none;
  column-count: 3;
  padding: 0;
  margin: 0;
}
#footer h5 {
  font-family: 'Open Sans Condensed', 'Open Sans', sans-serif;
  font-weight: 700;
}

#copyright { font-size: 11px; padding: 10px 0 20px 0; }

/* Page banners / main photos */
#about-main-photo { height: 474px; background: url(../images/mainphoto_about.jpg) center center; background-size: cover; }
#agw-main-photo { height: 474px; }
#solution-main-photo,
#services-main-photo,
#investors-main-photo {
  height: 474px;
  background-size: cover;
  margin-bottom: 20px;
}
#solution-main-photo { background-image: url(../images/agw-3dmt_pic.jpg); }
#services-main-photo { background-image: url(../images/agw-robot-arc-page.jpg); }
#investors-main-photo { background-image: url(../images/agw_robotarc2.jpg); }

#mainphoto_visitors {
  height: 474px;
  width: 100%;
  background: url(../images/visitors.jpg) right center;
  background-size: cover;
}

/* Hero headline */
.huge-hdr {
  font-family: 'heuristicaregular', serif;
  font-size: 28px;
  line-height: 28px;
  /* color set globally at bottom to win cascade */
}

/* Home rows */
.hm-row1 {
  padding: 20px 0;
  border-bottom: 1px solid #252525;
}
.hm-row1-1 {
  font-size: 14px;
  color: #0d2243;
  line-height: 24px;
  border-right: 1px solid #252525;
}
.hm-row1-2 .copy {
  font-size: 14px;
  color: #000;
  line-height: 24px;
}
.hm-row1-2 .copy h2 {
  text-transform: uppercase;
  letter-spacing: 2px;
}

.hm-row2 {
  padding: 20px 0;
  border-bottom: 1px solid #252525;
  margin-bottom: 10px;
  display: flex;
}
.hm-row2-1 {
  background: url(../images/hm_row2_photo.jpg) left center;
  background-size: cover;
}
.hm-row2-2 { font-size: 14px; color: #000; }

.hm-row1 a,
.hm-row2 a {
  color: #336699;
  font-weight: 800;
}

/* Main content */
#main { padding: 30px 0; }
#main img { width: 100%; height: auto; }
#main img.originalsize { width: auto; height: auto; }

#main .row { padding-bottom: 15px; }
#main .col3 {
  padding-top: 50px;
  font-size: 12px;
  color: #336699;
}

/* Link list */
ul.linklist {
  list-style-type: none;
  padding: 0;
  margin: 0 0 15px 0;
}
ul.linklist li { margin-bottom: 5px; }
ul.linklist li a:before { content: "\00BB\00a0\00a0"; }
ul.linklist li a {
  color: #9e0b0f;
  font-weight: 600;
}

/* Legacy video embeds */
.video-container {
  position: relative;
  padding-bottom: 56.25%;
  padding-top: 30px;
  height: 0;
  overflow: hidden;
  margin-bottom: 15px;
}
.video-container iframe,
.video-container object,
.video-container embed {
  position: absolute;
  top: 0;   /* <-- fixed */
  left: 0;
  width: 100%;
  height: 100%;
}

/* Homepage video hero */
.hero-video-wrapper {
  width: 100%;
  background-color: black;
  overflow: hidden;
  display: flex;
  justify-content: center;
}

.hero-video-container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
}

.hero-video-container video {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  position: relative;
}

/* Responsive tweaks */
@media screen and (max-width: 768px) {
  .hero-video-wrapper {
    margin-bottom: 20px !important;
  }

  #hm-content {
    padding-top: 20px !important;
    clear: both;
  }

  .box .col-lg-12.text-center {
    margin-bottom: 15px;
  }
}

/* =========================
   GLOBAL HEADING COLOR OVERRIDE
   Place at end so it wins by cascade.
   ========================= */
body h1, body h2, body h3, body h4, body h5, body h6,
.huge-hdr {
  color: #07381f; /* Kecy Green */
}
