/* ============================================
   NDS Custom Styles
   Overrides and additions to Industrious template
   ============================================ */

/* --- Utility Header Bar (above main header) --- */
.utility-bar {
  background: #111111;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.85rem;
  padding: 0.5rem 0;
  text-align: center;
}
.utility-bar .inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.utility-bar a {
  color: #ffffff;
  text-decoration: none;
  margin-left: 1.5rem;
}
.utility-bar a:hover {
  color: #ce1b28;
}
.utility-bar .util-left {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
}
.utility-bar .util-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
@media screen and (max-width: 736px) {
  .utility-bar .inner {
    flex-direction: column;
    gap: 0.25rem;
  }
  .utility-bar .util-left {
    display: none;
  }
}

/* --- Header Enhancements --- */
#header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
#header nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
#header nav a {
  color: #555555;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
#header nav a:hover {
  color: #ce1b28;
}
#header .header-cta {
  background-color: #ce1b28;
  color: #ffffff !important;
  padding: 0.5rem 1.25rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
}
#header .header-cta:hover {
  background-color: #b71824;
}

/* --- Banner CTA Button --- */
#banner .actions {
  margin-top: 2rem;
}

/* --- Service Page Layout --- */
.service-page {
  padding: 4rem 0;
}
.service-page .service-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.service-page .service-image {
  border-radius: 8px;
  overflow: hidden;
}
.service-page .service-image img {
  width: 100%;
  height: auto;
  display: block;
}
.service-page .service-content h2 {
  margin-bottom: 1rem;
}
.service-page .service-content p {
  line-height: 1.8;
}
.service-page .service-content ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 2rem;
}
.service-page .service-content ul li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

/* --- Brand Partners Grid --- */
.brand-partners {
  padding: 3rem 0;
  background: #ffffff;
}
.brand-partners h3 {
  text-align: center;
  margin-bottom: 2rem;
}
.brand-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2rem;
}
.brand-grid img {
  width: 120px;
  height: 40px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.6;
  transition: all 0.3s ease;
}
.brand-grid img:hover {
  filter: grayscale(0%);
  opacity: 1;
}

/* --- Service CTA Block --- */
.service-cta {
  background: #ce1b28;
  color: #ffffff;
  text-align: center;
  padding: 3rem 2rem;
  margin-top: 3rem;
  border-radius: 8px;
}
.service-cta h3 {
  color: #ffffff;
  margin-bottom: 1rem;
}
.service-cta p {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 1.5rem;
}
.service-cta .button {
  background: #ffffff;
  color: #ce1b28 !important;
  font-weight: 600;
}
.service-cta .button:hover {
  background: rgba(255, 255, 255, 0.9);
}

/* --- Credentials Bar --- */
.credentials {
  text-align: center;
  padding: 2rem 0;
  background: #f7f7f7;
}
.credentials .inner {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}
.credential-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: #555555;
}

/* --- Contact Form --- */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
}
.contact-form .field {
  margin-bottom: 1.5rem;
}
.contact-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

/* --- Footer Enhancements --- */
#footer .footer-nav {
  margin-bottom: 2rem;
}
#footer .footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
#footer .footer-nav a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  font-size: 0.85rem;
}
#footer .footer-nav a:hover {
  color: #ffffff;
}

/* --- Responsive: Service Page --- */
@media screen and (max-width: 980px) {
  .service-page .service-layout {
    grid-template-columns: 1fr;
  }
}

/* --- Highlights: clickable cards --- */
.highlights section {
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.highlights section:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

/* --- Smooth Scroll --- */
html {
  scroll-behavior: smooth;
}

/* --- Tel link styling --- */
a[href^="tel:"] {
  white-space: nowrap;
}

/* ============================================
   Mobile Fixes
   ============================================ */

/* Hide "Home" nav link on mobile — NDS logo does the same thing */
@media screen and (max-width: 736px) {
  #header nav a:first-child {
    display: none;
  }
}

/* Banner buttons: stack vertically, full-width, with gap on mobile */
@media screen and (max-width: 736px) {
  #banner .actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 0 1.5rem;
  }
  #banner .actions .button.large {
    font-size: 1rem;
    height: auto;
    line-height: 1.4;
    padding: 0.9rem 1.5rem;
    width: 100%;
    max-width: 320px;
    white-space: normal;
    box-sizing: border-box;
  }
}

/* Slightly tighter brand grid on mobile */
@media screen and (max-width: 736px) {
  .brand-grid {
    gap: 1.25rem;
  }
  .brand-grid img {
    width: 100px;
    height: 30px;
  }
}
