/* ------------------------------------------------------------------
   Nexforge Alloys - brand overrides on top of main.css (dark theme)
------------------------------------------------------------------ */

/* Typography & readability ---------------------------------------- */
:root {
  /* body copy: lighter than the template grey so it stays readable on navy */
  --text: #C6D0DC;
}
body {
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
@media (max-width: 575px) {
  body {
    font-size: 16px;
    line-height: 1.65;
  }
}
h3 {
  color: #6DB9DB;
}
.section-title span {
  color: var(--theme2);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 1.5px;
}
/* e-mail addresses must never be capitalised by heading / list styles */
a[href^="mailto:"] {
  text-transform: none;
}
.footer-bottom .footer-bottom-wrapper p {
  text-transform: none;
  font-size: 15px;
}
.testimonial-wrapper .testimonial-content h4 {
  text-transform: none;
  line-height: 1.6;
}
.post-content p + p,
.about-content p + p {
  margin-top: 16px;
}
/* main.css hides every <br> on phones; addresses and e-mail lists need them */
@media (max-width: 575px) {
  .footer-contact br,
  .contact-info-items br,
  .sidebar-contact br {
    display: inline;
  }
}

/* Contrast fixes -------------------------------------------------- */
/* "5+ Years" badge sits on the orange brand colour */
.about-wrapper .about-image .working-area .inner .icon-box h3,
.about-wrapper .about-image .working-area .inner .icon-box p {
  color: #fff;
}
/* highlighted / hovered feature card has a navy gradient, so text stays light */
.service-box-items:hover .content h3 a,
.service-box-items.active .content h3 a {
  color: #fff;
}
.service-box-items:hover .content p,
.service-box-items.active .content p {
  color: #E3EAF2;
}
.service-box-items:hover .content h3 a:hover,
.service-box-items.active .content h3 a:hover {
  color: var(--theme2);
}
.main-sidebar .single-sidebar-widget .wid-title h5::before {
  background: var(--theme);
}
/* image cards: the template only revealed the title on hover, which never
   happens on touch screens - keep the title and its dark scrim always visible */
.project-wrapper .project-image::before,
.service-wrapper .single-service-items .service-image::before {
  opacity: 1;
  visibility: visible;
}
.project-wrapper .project-image .project-content,
.project-wrapper .project-image:hover .project-content,
.project-wrapper .project-image.style-2.active .project-content,
.project-wrapper .swiper-slide.swiper-slide-active .project-image .project-content {
  left: 30px;
  right: 30px;
  bottom: 30px;
  opacity: 1;
  visibility: visible;
  text-align: left;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
}
.service-wrapper .single-service-items .service-image .service-content,
.service-wrapper .single-service-items:hover .service-image .service-content {
  left: 30px;
  right: 30px;
  bottom: 30px;
  transform: none;
  opacity: 1;
  visibility: visible;
  text-align: left;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
}
.service-wrapper .single-service-items .service-image .service-content h3 {
  font-size: 24px;
  line-height: 1.3;
}
.service-wrapper .single-service-items .service-image .service-content h3 a:hover,
.project-wrapper .project-image .project-content h4 a:hover {
  color: var(--theme2);
}
@media (max-width: 575px) {
  .project-wrapper .project-image .project-content,
  .project-wrapper .project-image:hover .project-content,
  .project-wrapper .project-image.style-2.active .project-content,
  .project-wrapper .swiper-slide.swiper-slide-active .project-image .project-content,
  .service-wrapper .single-service-items .service-image .service-content,
  .service-wrapper .single-service-items:hover .service-image .service-content {
    left: 20px;
    right: 20px;
    bottom: 22px;
  }
}
/* breathing room between the grade slider and the next section heading */
.project-section + .service-section-2 {
  padding-top: 80px !important;
}
@media (max-width: 767px) {
  .project-section + .service-section-2 {
    padding-top: 50px !important;
  }
}
/* hero pagination overlaps the headline until the viewport is very wide */
@media (max-width: 1699px) {
  .hero-section .swiper-dot {
    display: none;
  }
}
/* footer links: wrapped lines align with the text, not under the chevron */
.footer-widgets-wrapper .single-footer-widget .list-area li a {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.5;
}
.footer-widgets-wrapper .single-footer-widget .list-area li a i {
  margin-right: 0;
  margin-top: 5px;
  font-size: 13px;
}
/* outline-only headings rely on hover; show them solid where there is no hover */
@media (max-width: 767px), (hover: none) {
  .team-member-name {
    color: #fff;
    -webkit-text-stroke: 0;
  }
}
@media (max-width: 767px) {
  .team-member-name {
    font-size: 32px;
  }
}

/* Header ---------------------------------------------------------- */
.header-2 {
  background-color: #fff;
  border-bottom: 1px solid #e3e8ef;
  box-shadow: 0 2px 12px rgba(15, 39, 64, 0.08);
}
.header-2 .header-logo img {
  height: 85px;
  width: auto;
  padding: 4px 0;
}
@media (max-width: 575px) {
  .header-2 .header-logo img {
    height: 46px;
  }
}
.header-main .main-menu ul li a {
  font-size: 17px;
  color: var(--header);
}
.header-2 .mega-menu-wrapper .header-main .header-right .main-menu ul li a:hover,
.header-main .main-menu ul li:hover > a,
.header-main .main-menu ul li.active > a {
  color: var(--theme) !important;
}
.header-2 .header-button .theme-btn-2 {
  color: var(--header);
  border: 1px solid var(--header);
}
.header-2 .header-button .theme-btn-2:hover {
  color: var(--theme);
  border-color: var(--theme);
}
.header-2 .sidebar__toggle .bar-icon i {
  color: var(--header);
  font-size: 24px;
}
.header-main .main-menu ul li .submenu.products-submenu {
  width: 600px;
  min-width: 600px;
  padding: 10px 0;
  column-count: 2;
  column-gap: 0;
  /* centre the wide dropdown under the "Products" item so it never leaves the screen */
  inset-inline-start: 50%;
  transform: translate(-50%, 10px);
}
.header-main .main-menu ul li:hover > .submenu.products-submenu {
  transform: translate(-50%, 0);
}
@media (max-width: 1199px) {
  .header-main .main-menu ul li .submenu.products-submenu {
    inset-inline-start: auto;
    right: 0;
    transform: translateY(10px);
  }
  .header-main .main-menu ul li:hover > .submenu.products-submenu {
    transform: translateY(0);
  }
}
.header-main .main-menu ul li .submenu.products-submenu li {
  break-inside: avoid;
}
.header-main .main-menu ul li .submenu.products-submenu li a {
  font-size: 15px;
  padding: 10px 22px;
  border-bottom: 1px solid #e5e9ef;
}
@media (max-width: 1399px) {
  .header-2 .mega-menu-wrapper .header-main .header-right {
    gap: 30px;
  }
}
.sticky.header-2 {
  background: #fff;
}
.sticky.header-2 .mega-menu-wrapper .header-main .header-right .main-menu ul li a {
  color: var(--header);
}

/* Offcanvas / footer logo on dark backgrounds --------------------- */
.logo-box {
  display: inline-block;
  background: #fff;
  padding: 10px 14px;
  border-radius: 6px;
}
.offcanvas__logo .logo-box img {
  width: 170px;
}
.footer-logo img {
  width: 210px;
  max-width: 100%;
}
.offcanvas__contact-text a {
  word-break: break-word;
}

/* Footer ---------------------------------------------------------- */
.footer-section .footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 18px;
  line-height: 1.6;
  font-size: 16px;
}
.footer-section .footer-contact li:last-child {
  margin-bottom: 0;
}
.footer-section .footer-contact li i {
  flex: 0 0 22px;
  width: 22px;
  text-align: center;
  margin-top: 5px;
  font-size: 17px;
  color: var(--theme);
}
.footer-section .footer-contact li span {
  display: block;
  word-break: break-word;
}
.footer-section .footer-contact li a {
  color: inherit;
}
.footer-section .footer-contact li a:hover {
  color: var(--theme2);
}

/* Product detail pages -------------------------------------------- */
.post-content h4 {
  margin-bottom: 18px;
}
.table-container {
  overflow-x: auto;
  margin-bottom: 10px;
  -webkit-overflow-scrolling: touch;
}
.table-container table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.5;
  min-width: 600px;
  color: #dfe6ee;
}
.table-container th,
.table-container td {
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}
.table-container thead th {
  background-color: #1B4B7A;
  color: #fff;
  font-weight: 600;
  white-space: nowrap;
}
.table-container tbody tr:nth-child(even) {
  background-color: rgba(255, 255, 255, 0.04);
}
.table-container tbody tr:hover,
.table-container tbody tr:nth-child(even):hover {
  background-color: rgba(242, 106, 46, 0.18);
  color: #fff;
}
.table-container thead tr:hover {
  background-color: transparent;
}
.table-container tbody td:first-child {
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
}
.table-container tbody td a {
  color: var(--theme2);
  text-decoration: underline;
}
.table-container tbody td a:hover {
  color: #fff;
}
/* tables with many columns: let the header wrap instead of forcing a scroll */
.table-container table.wrap-head {
  min-width: 760px;
}
.table-container table.wrap-head thead th {
  white-space: normal;
  vertical-align: bottom;
}
/* main.css caps tables at 400px on phones, which hides the last rows inside a
   nested scroll area - show the whole table and only scroll sideways */
@media (max-width: 768px) {
  .table-container {
    max-height: none;
    overflow-y: visible;
    margin: 0 0 10px;
    border: 0;
  }
  .table-container table {
    min-width: 560px;
  }
}
.table-note {
  font-size: 13px;
  font-style: italic;
  line-height: 1.6;
  margin-top: 8px;
}
.post-content .hilight-text {
  color: var(--theme);
}
.post-content .hilight-text p {
  color: #fff;
  text-transform: none !important;
}
.post-content ul {
  padding-left: 20px;
  margin-bottom: 10px;
}
.post-content ul li {
  list-style: disc;
  margin-bottom: 8px;
}
.post-content ul.feature-list {
  padding-left: 0;
}
.post-content ul.feature-list li {
  list-style: none;
  padding-left: 30px;
  position: relative;
}
.post-content ul.feature-list li i {
  position: absolute;
  left: 0;
  top: 5px;
  color: var(--theme);
}
.product-nav {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  flex-wrap: wrap;
  border-top: 1px solid var(--border);
  padding-top: 30px;
}
.product-nav .theme-btn-2 {
  padding: 12px 20px;
  font-size: 14px;
  line-height: 1.4;
  max-width: 100%;
  white-space: normal;
}
.product-nav .theme-btn-2 i {
  margin: 0 6px;
}
.main-sidebar .widget-categories ul li.active a {
  color: var(--theme);
}
.sidebar-enquiry p {
  margin-bottom: 15px;
  font-size: 16px;
}
.sidebar-contact li {
  margin-bottom: 10px;
  font-size: 15px;
  word-break: break-word;
}
.sidebar-contact li i {
  color: var(--theme);
  margin-right: 6px;
}
.sidebar-contact li a {
  color: #fff;
}
.sidebar-contact li a:hover {
  color: var(--theme);
}
.theme-btn.w-100 {
  display: block;
}

/* Products overview grid ------------------------------------------ */
.project-wrapper .project-image.style-2 {
  min-height: 320px;
}
.project-wrapper .project-image .project-content h4 a {
  font-size: 20px;
}
.section-title p {
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

/* "What We Do" hover cards: every image fills the same frame ------- */
.in-team-wrapper .team-thumb {
  height: 100%;
  bottom: 0;
  overflow: hidden;
}
.in-team-wrapper .team-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
@media (max-width: 767px) {
  .in-team-wrapper .team-thumb {
    height: 260px;
    margin-top: 15px;
  }
}

/* Bar-type cards -------------------------------------------------- */
.service-items-2 .service-content p {
  margin-top: 10px;
  font-size: 15px;
}

/* CTA band -------------------------------------------------------- */
.cta-section {
  padding-bottom: 80px;
}
.cta-wrapper {
  position: relative;
  padding: 60px 50px;
  border-radius: 4px;
  overflow: hidden;
}
.cta-wrapper::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(20, 48, 78, 0.95) 0%, rgba(20, 48, 78, 0.75) 100%);
}
.cta-wrapper .row {
  position: relative;
  z-index: 2;
}
.cta-wrapper .section-title span {
  color: var(--theme2);
}
.cta-wrapper .section-title h2 {
  font-size: 30px;
  line-height: 1.35;
}
@media (max-width: 767px) {
  .cta-wrapper {
    padding: 40px 25px;
  }
  .cta-wrapper .section-title h2 {
    font-size: 24px;
  }
}

/* Contact page form ----------------------------------------------- */
.contact-form-box {
  background-color: var(--bg2);
  padding: 45px 40px;
  height: 100%;
}
@media (max-width: 575px) {
  .contact-form-box {
    padding: 30px 20px;
  }
}
.contact-form-box p {
  font-size: 16px;
}
.enquiry-form label {
  display: block;
  font-weight: 500;
  color: #fff;
  margin-bottom: 6px;
  font-size: 15px;
}
.enquiry-form input,
.enquiry-form textarea,
.enquiry-form .nice-select {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: var(--bg);
  color: #fff;
  padding: 12px 15px;
  outline: none;
  font-size: 15px;
  line-height: 1.5;
  height: auto;
  float: none;
}
.enquiry-form input::placeholder,
.enquiry-form textarea::placeholder {
  color: #7f8ea1;
}
.enquiry-form .nice-select {
  padding-right: 40px;
}
.enquiry-form .nice-select .list {
  width: 100%;
  max-height: 260px;
  overflow-y: auto;
  background: #fff;
}
.enquiry-form .nice-select .list li {
  color: #14304E;
}
.enquiry-form input:focus,
.enquiry-form textarea:focus {
  border-color: var(--theme);
}
.enquiry-form textarea {
  resize: vertical;
}
.contact-info-items ul li a {
  color: inherit;
  word-break: break-word;
}

/* About page ------------------------------------------------------ */
.about-wrapper-2 .about-image.style-2 .title-text {
  background: linear-gradient(0deg, var(--theme) 37.7%, rgba(242, 106, 46, 0) 100%);
}
.project-details-content ul.project-date li span {
  font-weight: 600;
  color: #fff;
}

/* Breadcrumb ------------------------------------------------------ */
.breadcrumb-wrapper .page-heading h1 {
  text-transform: none;
}

/* Hide the theme's custom cursor on touch devices ---------------- */
@media (hover: none) {
  .mouse-cursor {
    display: none;
  }
}
