body {
  font-family: 'Lato', sans-serif;
  overflow-y: scroll;
  background-color: #000;
}

body .bg-img {
  background-repeat: no-repeat;
  background-position: center;
  padding-bottom: 75px;
}

.navbar { position: relative; z-index: 10; }
.navbar .dropdown-menu { z-index: 10000; }

/* ===== Desktop hover fixes ===== */
@media (min-width: 768px) {
  .navbar { overflow: visible; }
  .navbar .dropdown { position: relative; }
  .navbar .dropdown-menu {
    display: block;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
    margin-top: 0;
    left: 0;
    right: auto;
    top: 100%;
  }
  .navbar .dropdown:hover > .dropdown-menu,
  .navbar .dropdown-menu:hover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  .navbar .dropdown::after {
    content: "";
    position: absolute;
    left: 0;
    top: 100%;
    width: 100%;
    height: 16px;
  }
  .navbar .dropdown-toggle::after { transition: transform .2s; }
  .navbar .dropdown:hover > .nav-link.dropdown-toggle::after {
    transform: rotate(180deg);
  }
}

/* ===== Mobile stays the same ===== */
@media (max-width: 767.98px) {
  .navbar-collapse {
    background: rgba(0,0,0,0.95);
    padding: 1rem;
  }
  .navbar .dropdown-menu {
    position: static !important;
    float: none;
    background: rgba(0,0,0,0.9);
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: none;
    margin-top: 0;
  }
}

/* === Ultimate overflow fix for dropdowns inside header === */
.parallax-header,
.header-hero,
.bg-img,
.container-fluid.pl-0.pr-0.bg-img,
.parallax-window2 {
  overflow: visible !important;
  position: relative;
  z-index: 1;
}

.navbar .dropdown-menu {
  position: absolute !important;
  top: 100%;
  left: 0;
  right: auto;
  z-index: 99999 !important;
}

@media (min-width: 768px) {
  .navbar .dropdown::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 25px;
    background: transparent;
  }
}
@media (min-width: 768px) {
  /* Ensure nav and dropdowns share the same stacking context */
  .navbar {
    position: relative;
    z-index: 2000;
    overflow: visible;
  }

  .navbar .dropdown {
    position: relative;
  }

  /* Dropdown menus are absolutely positioned under their parent links */
  .navbar .dropdown-menu {
    display: block;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 0;
    background: rgba(0,0,0,0.9);
    border: none;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    z-index: 3000; /* higher than hero overlay */
  }

  /* Keep dropdown visible when hovering the parent or the menu */
  .navbar .dropdown:hover > .dropdown-menu,
  .navbar .dropdown-menu:hover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  /* Add a hover “bridge” (invisible) so mouse movement stays active */
  .navbar .dropdown::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 30px; /* extended hover zone */
    background: transparent;
    z-index: 2500;
  }

  /* Dropdown arrow rotation remains */
  .navbar .dropdown-toggle::after {
    transition: transform 0.2s;
  }
  .navbar .dropdown:hover > .nav-link.dropdown-toggle::after {
    transform: rotate(180deg);
  }
  .navbar-dark .navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(255,255,255,0.9)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
  }
}
/* ===== Enhanced navbar text & subtle top gradient ===== */

/* Applies to both desktop & mobile */
.navbar {
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0.0));
  /* slightly darkens top, fades toward transparent bottom */
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  position: relative;
  z-index: 2000;
}

/* Brand logo area stays crisp */
.navbar-dark .navbar-brand img {
  max-width: 300px;
}

/* Make nav text bright & semi-bold */
.navbar-dark .navbar-nav .nav-link {
  font-family: 'Lato', sans-serif;   /* same as rest of site */
  font-size: 16px;                   /* consistent with other pages */
  font-weight: 700;                  /* match boldness of internal pages */
  color: #ffffff !important;         /* pure white */
  text-transform: uppercase;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link:focus {
  color: #ffffff;                    /* full white */
 text-shadow: 0 0 5px rgba(255,255,255,0.5);}

/* Dropdown menus retain solid dark background */
.navbar .dropdown-menu .dropdown-item {
  font-family: 'Lato', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #ffffff !important;         /* bright white */
  background: transparent;
  transition: background 0.3s ease, color 0.3s ease;
}
/* On hover, lighten text slightly and add faint background */
.navbar .dropdown-menu .dropdown-item:hover,
.navbar .dropdown-menu .dropdown-item:focus {
  color: #fff !important;
  background: rgba(255,255,255,0.15);
}

/* Ensure dropdown background stays solid dark */
.navbar .dropdown-menu {
  background: rgba(0, 0, 0, 0.9);
  border: none;
  border-radius: 0;
}

/* Mobile collapsible menu inherits same font & color */
@media (max-width: 767.98px) {
  .navbar-collapse {
    background: linear-gradient(to bottom, rgba(0,0,0,0.95), rgba(0,0,0,0.8));
  }

  .navbar-dark .navbar-nav .nav-link {
    font-size: 16px;
    font-weight: 700;
    color: #fff !important;
  }

  .navbar .dropdown-menu .dropdown-item {
    color: #fff !important;
  }
}
/* Mobile collapsible menu inherits gradient background */
@media (max-width: 767.98px) {
  .navbar-collapse {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0.4));
  }
  .navbar-dark .navbar-nav .nav-link {
    color: #fff !important;
    font-weight: 600;
  }
}

/* Banner */
.fh5co-banner-text-box {
  position: relative;
  display: inline-block;
  margin-top: 214px;
  transform: translateY(1em);
}

.fh5co-banner-text-box .quote-box {
  max-width: 455px;
  padding: 20px 0;
}

.fh5co-banner-text-box .quote-box h2 {
  font-weight: 700;
  color: #fff;
  font-size: 40px;
}

.fh5co-banner-text-box .quote-box h2 span {
  color: #fff;
  font-size: 34px;
}

/* Network / About Sections */
.fh5co-network, .fh5co-about-us {
  background: url("../images/about-bg.jpg") center center / 100% 100% no-repeat;
  padding: 50px 0 30px;
}
/* Network / About Sections */
.fh5co-network3, .fh5co-about-us3 {
  background: url("../images/about-bg2.jpg") center center / 100% 100% no-repeat;
  color: #000;
  padding: 50px 0 30px;
}

.fh5co-network h2, .fh5co-about-us h2 {
  color: #fff;
  font-weight: 700;
  font-size: 40px;
}

.fh5co-network p, .fh5co-about-us p {
  color: #fff;
}

/* Content boxes and gallery */
.fh5co-content-box {
	background: #dbdbdb;
	padding-bottom: 20px;
}

.fh5co-content-box img {
	width: 100%;
	margin-bottom: 0px;
}

.fh5co-content-box  {
  color: #fff;
  text-align: center;
  top: 13%;
}

.card-img-overlay {
  position: absolute;
  left: 0;
  right: 0;
  color: #fff;
  text-align: center;
  padding: 1rem;
  z-index: 3; /* ensures text is above image */
}

/* Higher overlays (3D Printing & Custom) */
.overlay-high {
  top: 40%;
  bottom: auto;
}

/* Normal/bottom overlay (Machining) */
.overlay-normal {
  top: auto;
  bottom: 10%;        /* raises the text slightly */
  padding-bottom: 0;
  z-index: 3;
  background: rgba(0, 0, 0, 0.25); /* subtle contrast */
}



.card-img-overlay3 {
  color: #fff;
  text-align: center;
  top: 33%;
}
.card-img-overlay4 {
  color: #fff;
  text-align: center;
  top: 33%;
}

.gallery .card {
	/* [disabled]margin-bottom: 25px; */
	border: none;
	background-color: #2B2B2B;
	margin-top: 0px;
}

/* Footer */
footer {
  background: #101011;
  color: #fff;
}

footer .footer1 p {
  margin-top: 30px;
}

footer .footer2 .form-box {
  background: #fff;
  padding: 20px 5px;
  margin-top: -15px;
}

footer .footer3 {
  padding-top: 50px;
}

footer h5 {
  color: #ffffff;
}
/* --- TOP TWO FEATURE BUTTONS --- */
.process-buttons {
  display: flex;
  gap: 20px;
  margin: 30px 0;
}

.process-buttons .process-btn {
  flex: 1;
  background: #e5e5e5;
  padding: 40px 20px;
  text-align: center;
  border-radius: 6px;
  transition: background .3s;
  min-height: 220px; /* makes both same height */
}

.process-buttons .process-btn:hover {
  background: #d0d0d0;
}

.process-buttons a {
  color: #000;
  text-decoration: none;
  font-size: 26px;
  font-weight: 700;
}

/* Mobile: stack top buttons */
@media (max-width: 767px) {
  .process-buttons {
    flex-direction: column;
  }
}
/* --- STANDARDIZE ALL WHAT WE OFFER CARDS --- */
.gallery .card {
  background: #e5e5e5 !important;
  border-radius: 6px;
  padding: 20px;
  min-height: 260px; /* forces equal size */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin-bottom: 20px;
}

.gallery .card-body {
  padding: 0 !important;
}

.gallery .card-title a {
  color: #000;
  font-weight: 700;
  text-decoration: none;
  font-size: 22px;
}

.gallery .card-text {
  color: #ffffff;
  font-size: 15px;
  margin-top: 10px;
}

/* Add spacing between columns (desktop) */
.gallery .col-md-4 {
}
/* Add equal spacing around every card */
.gallery .col-md-4 {
  padding: 15px; /* space OUTSIDE card */
}

.gallery .card {
  height: 100%;
}
.gallery .col-md-4 {
  padding-top: 30px;
  padding-bottom: 0px;
  padding-left: 15px;
  padding-right: 15px;
}

/* Create consistent card shape/spacing */
.gallery .card {
  background: #555555 !important;
  border-radius: 6px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 80px;   /* ensures matching height across all cards */
  justify-content: space-between;
	  color: #ffffff;

}

/* Make the row align card heights evenly */
.gallery .row {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;  /* ensures equal height */
}

/* Clean up body spacing inside cards */
.gallery .card-body {
  padding: 0 !important;
  margin-bottom: 10px;
	
	
}

.gallery .card-title a {
  color: #fff;
  font-weight: 700;
  font-size: 22px;
  text-decoration: none;
	margin-top: 10px;
}

.gallery .card-text {
  color: #fff;
  font-size: 15px;
  margin-top: 10px;
}
.top-process-card {
  position: relative;
  margin: 0;
  padding: 0;
	 border-radius: 6px;
    overflow: hidden; /* ensures the image also clips to the rounded corners */
	
}

.top-process-card img {
  width: 100%;
  height: auto;
  display: block;
    border-radius: 6px;
}

/* Remove margin differences between left and right columns */
.top-process-col {
  padding: 0 !important;
  margin: 0 !important;
}
.card-img-overlay,
.drape-overlay {
  top: 0;
  left: 0;
  right: 0;
  padding: 60px 20px 20px;  /* <-- Increase first value to move text down */
  text-align: center;
  position: absolute;
  z-index: 3;
}
.top-process-col {
  padding-left: 12px !important;
  padding-right: 12px !important;
}
@media (max-width: 767px) {
  /* Reduce title size for top two cards */
    .top-overlay {
    padding-top: 10px !important;   /* ↓ LOWER NUMBER = HIGHER TEXT */
  }
	.top-overlay h4.card-title a {
    font-size: 20px !important;    /* same as gallery titles */
  }

  /* Reduce paragraph text for top two cards */
  .top-overlay p {
    font-size: 15px !important;    /* match gallery card text */
    line-height: 1.3;
  }
}
.quote-box {
  background: radial-gradient(
    circle at center,
    rgba(0,0,0,0.75) 0%,     /* darker center */
    rgba(0,0,0,0.65) 40%,    /* extended mid-shadow */
    rgba(0,0,0,0.00) 100%    /* smooth fade-out */
  );
  padding: 35px 45px;
  border-radius: 16px;
  display: inline-block;
  backdrop-filter: blur(5px);
}