/* ============================================================
   Combined from original theme: main.css + black.css
   Image paths updated from ../images/ to /theme/
   Superfish dropdown replaced with CSS-only equivalent
   ============================================================ */

/* --- Reset & base --- */
*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  padding: 0;
  font-family: "Open Sans", "Segoe UI", Verdana, Arial, Helvetica, sans-serif;
  font-size: 13px;
  line-height: 1.4;
  color: #CCC;
  background-color: #000;
  background-image: url(/theme/black-gloss-bg.jpg);
  background-position: center -16px;
  background-repeat: no-repeat;
}

ul, ol, dl { padding: 0; margin: 0; }

h1, h2, h3, h4, h5, h6, p {
  margin-top: 0;
  padding-right: 15px;
  padding-left: 15px;
}
h1 { margin-bottom: 0; color: #FFF; }
h2 { margin-top: 20px; color: #CFD9F1; }
h3 { margin-top: 20px; color: #D2DDEE; }
h4 { margin-top: 20px; }

a img { border: none; }
ul { list-style: square; }

p.intro,
.project-content > p:first-child {
  font-size: 15px;
  color: #B0CDFD;
  font-weight: 600;
}

/* --- Layout container --- */
#container {
  width: 960px;
  margin: 0 auto;
}

/* --- Header --- */
#header { height: 134px; }

#mainlogo { margin: 12px; }

#contactinfo {
  float: right;
  margin-top: 20px;
}

/* --- Navigation menubar --- */
.region-menubar {
  background-image: url(/theme/menubarbg.png);
  background-repeat: repeat-x;
}

/* CSS-only nav replacing Superfish */
ul.sf-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  font-size: 16px;
}

ul.sf-menu a,
ul.sf-menu a:visited {
  display: block;
  text-decoration: none;
  color: #FFF;
  padding: 7px 12px;
  white-space: nowrap;
}

ul.sf-menu a:hover,
ul.sf-menu a:focus,
ul.sf-menu a:active {
  color: #0FF;
  text-decoration: none;
}

ul.sf-menu > li {
  position: relative;
}

ul.sf-menu > li > ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 100;
  list-style: none;
  padding: 0;
  margin: 0;
  min-width: 200px;
  background-color: #222;
}

ul.sf-menu > li > ul > li {
  background-image: url(/theme/menubarbg.png);
  background-repeat: repeat-x;
  background-color: #222;
}

ul.sf-menu > li:hover > ul,
ul.sf-menu > li:focus-within > ul {
  display: block;
}

ul.sf-menu > li > ul > li > a,
ul.sf-menu > li > ul > li > a:visited {
  font-size: 14px;
  color: #FFF;
  padding: 8px 14px;
}

ul.sf-menu > li > ul > li > a:hover {
  color: #0FF;
}

/* --- Header image (hero area) --- */
#headerimage { display: block; }

/* --- Homepage hero slideshow --- */
.hero-wrapper { width: 100%; }

.hero {
  position: relative;
  width: 100%;
  aspect-ratio: 960 / 340;
  overflow: hidden;
  background: #111;
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
}

.hero-slide.active { opacity: 1; }

.hero-arrow {
  appearance: none;
  -webkit-appearance: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  border: none;
  padding: 10px 15px;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s, background 0.2s;
  z-index: 10;
}

.hero:hover .hero-arrow { opacity: 1; }
.hero-arrow:hover { background: rgba(0, 0, 0, 0.75); }
.hero-prev { left: 0; }
.hero-next { right: 0; }

.hero-dots {
  background: #111;
  text-align: center;
  padding: 7px 0;
}

.hero-dot {
  appearance: none;
  -webkit-appearance: none;
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.5);
  background: transparent;
  margin: 0 4px;
  padding: 0;
  cursor: pointer;
}

.hero-dot.active {
  background: rgba(255, 255, 255, 0.9);
  border-color: #fff;
}

/* --- Main wrapper --- */
#main-wrapper { min-height: 300px; }
.clearfix::after { content: ''; display: table; clear: both; }

/* --- Sidebar --- */
#sidebar1 {
  float: left;
  width: 240px;
  padding-bottom: 10px;
  margin-top: 10px;
}

#sidebar1 ul { margin-left: 0; list-style: none; }
#sidebar1 ul ul { margin-left: 12px; }

#sidebar1 li {
  list-style-type: none;
  list-style-image: none;
  border-bottom: 1px dotted #444;
  margin-right: 20px;
  padding-top: 6px;
  padding-bottom: 6px;
}

#sidebar1 li.last { border-bottom: none; }

#sidebar1 li a:link,
#sidebar1 li a:visited {
  text-decoration: none;
  color: #B4CDE7;
}

#sidebar1 li a:hover,
#sidebar1 li a:active {
  color: #0FF;
  border-bottom: 1px dotted;
}

#sidebar1 li a.active {
  font-weight: 700;
  color: #FFF;
}

#sidebar-image {
  margin-left: 0;
  margin-top: 20px;
}

/* --- Content areas --- */
#content {
  padding: 10px 0;
  width: 720px;
  float: left;
}

#content-nosidebar { padding: 10px 0; }

#content img,
#content-nosidebar img {
  max-width: 100%;
  height: auto;
}

#content a:link,
#content a:visited {
  text-decoration: none;
  color: #69F;
  border-bottom: 1px dotted;
}

#content a:hover,
#content a:active {
  color: #6CF;
  border-bottom: 1px solid;
  text-decoration: none;
}

#content ul,
#content ol {
  padding: 0 15px 15px 40px;
}

.intro {
  padding: 0 15px 15px 15px;
  margin-bottom: 0;
}

/* --- Page hero image (featured image at top of content pages) --- */
.page-hero {
  display: block;
  margin: 15px 0 15px 15px;
  max-width: calc(100% - 15px);
}

/* --- Image gallery --- */
.gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 40px 8px 16px 8px;
  margin-top: 32px;
  margin-left: 8px;
  background: #222;
  background-image: url(/theme/image-gallery-gloss.png);
  background-position: top left;
  background-repeat: no-repeat;
}

.gallery-item {
  display: block;
  width: 120px;
  height: 75px;
  overflow: hidden;
  border-bottom: none !important;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s ease;
}

.gallery-item:hover img { transform: scale(1.05); }

/* --- Project info box --- */
div.projectinfo {
  margin: 4px 14px;
  background-color: #335;
  padding: 8px;
  margin-bottom: 16px;
  font-weight: 400;
  font-size: 15px;
}

div.projectinfo .item {
  font-weight: 700;
  color: white;
}

/* --- Projects listing thumbnails --- */
#content ul.projectlist {
  padding: 8px;
  margin-top: 8px;
  margin-left: 0;
  list-style: none;
}

ul.projectlist li {
  display: block;
  margin: 15px 0;
}

ul.projectlist li a {
  border-bottom: none !important;
  display: block;
}

/* --- Home services box --- */
#home-services-list {
  background-color: #2b3a59;
  background-image: url(/theme/footer-gloss.png);
  background-position: top;
  background-repeat: no-repeat;
  padding: 12px;
  color: #FFF;
  display: inline-block;
  min-width: 420px;
}

#home-services-list ul {
  list-style-position: inside;
  padding: 0 0 0 8px;
}

/* --- Footer --- */
#footer-wrapper {
  background-color: #2b3a59;
  color: #ddd;
  font-size: 12px;
  text-shadow: #000 2px 2px 2px;
  background-image: url(/theme/footer-gloss.png);
  background-position: top;
  background-repeat: no-repeat;
  margin-top: 50px;
  padding: 35px 5px 8px;
}

#footer-wrapper h2 {
  font-size: 13px;
  font-weight: 600;
  color: #FFF;
  margin-top: 0;
}

#footer-wrapper a:link,
#footer-wrapper a:visited {
  color: #9CD0F8;
  text-decoration: none;
  border-bottom: 1px dotted;
}

#footer-wrapper a:hover,
#footer-wrapper a:active {
  color: #35CBFD;
  border-bottom: 1px solid;
}

#footer-columns {
  width: 960px;
  margin: 0 auto;
  overflow: hidden;
}

#footer-columns ul {
  padding-left: 30px;
  margin-bottom: 12px;
  list-style: square;
}

.footer-col {
  float: left;
  width: 220px;
  padding: 0 4px;
}

#footer {
  width: 940px;
  min-width: 920px;
  margin: 8px auto 20px;
  padding: 10px 0;
  border-top: 1px dotted #777;
  font-size: 11px;
  clear: both;
}

#footer a:link,
#footer a:visited { color: #99F; text-decoration: none; border-bottom: 1px dotted; }
#footer a:hover,
#footer a:active { color: #66F; }
