/* Compact white header matching the Smart Outfitters brand reference. */
.header {
  top: 6px;
  width: calc(100% - 16px);
  max-width: 1440px;
}

.header .header-container,
.header.scrolled .header-container {
  box-sizing: border-box;
  min-height: 58px;
  padding: 6px 22px;
  background: #fff;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 1px solid #ededed;
  border-bottom: 2px solid #d00012;
  border-radius: 12px;
  box-shadow: 0 2px 9px #0003;
}

.header .logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-symbol {
  display: block;
  position: relative;
  overflow: hidden;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
}

.brand-symbol-image {
  position: absolute;
  width: 252px;
  max-width: none;
  height: auto;
  left: -12px;
  top: -8px;
}

.brand-name {
  position: relative;
  font-family: var(--font-main, "Outfit", sans-serif);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.4px;
  line-height: 32px;
  padding-left: 12px;
  border-left: 1px solid #a66b6e;
  white-space: nowrap;
  color: #171717;
}

.brand-name::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 0;
  bottom: -3px;
  height: 9px;
  border-top: 3px solid #d00012;
  border-radius: 50%;
  transform: rotate(-1deg);
  pointer-events: none;
}

.header .desktop-nav {
  display: flex;
  gap: clamp(20px, 2.5vw, 36px);
}

.header .nav-link,
.header.scrolled .nav-link {
  color: #222;
  font-size: clamp(10px, 0.85vw, 12px);
  font-weight: 700;
  letter-spacing: 0;
  white-space: nowrap;
  padding: 8px 0;
}

.header .nav-link.active,
.header .nav-link:hover,
.header.scrolled .nav-link.active {
  color: #d00012;
}

.header .nav-link::after {
  background: #d00012;
  bottom: 2px;
}

.header .nav-link.quote-btn {
  padding: 9px 23px;
  background: #d00012;
  border-color: #d00012;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 15px;
}

.header .nav-link.quote-btn:hover {
  background: #b50010;
  border-color: #b50010;
  color: #fff;
}

.header .nav-link:focus-visible,
.header .mobile-menu-toggle:focus-visible {
  outline: 2px solid #d00012;
  outline-offset: 4px;
}

.header .mobile-menu-toggle { display: none; }

@media (max-width: 899px) {
  .header .desktop-nav { display: none; }
  .header .mobile-menu-toggle { display: block; }
}

@media (max-width: 480px) {
  .header .header-container,
  .header.scrolled .header-container { padding: 6px 12px; }
  .header .logo { gap: 8px; }
  .brand-name { font-size: 18px; padding-left: 8px; }
  .brand-name::after { left: 8px; }
}

/* Give the replacement gallery image the same card dimensions as its neighbors. */
.gallery-page .uniform-grid > .uniform-item.gallery-warehouse-item:nth-child(5) {
  box-sizing: border-box;
  justify-self: start;
  align-self: start;
  width: 290px;
  max-width: 100%;
  height: 400px;
  max-height: 440px;
  min-height: 0;
  aspect-ratio: auto;
  overflow: visible;
  filter: drop-shadow(8px 8px 4px rgba(0, 0, 0, 0.28));
}

.gallery-page .uniform-grid > .uniform-item.gallery-warehouse-item:nth-child(5) img {
  display: block;
  width: 96%;
  height: 80%;
  object-fit: cover;
  border-radius: 8px;
  top: 33px;
  position: relative;
}

.gallery-page .uniform-grid > .uniform-item.gallery-industrial-item:nth-child(7) {
  box-sizing: border-box;
  justify-self: start;
  align-self: start;
  width: 290px;
  max-width: 100%;
  height: 400px;
  max-height: 440px;
  min-height: 0;
  aspect-ratio: auto;
  overflow: visible;
  filter: drop-shadow(8px 8px 4px rgba(0, 0, 0, 0.28));
}

.gallery-page .uniform-grid > .uniform-item.gallery-industrial-item:nth-child(7) img {
  display: block;
  width: 96%;
  height: 80%;
  object-fit: cover;
  border-radius: 8px;
  top: 33px;
  position: relative;
}

/* Keep the Security Companies banner heading clear of the uniform models. */
.security-companies-page .security-hero-text {
  left: 5%;
  top: 50%;
  transform: translateY(-50%);
  text-align: left;
  width: 36%;
}
.security-companies-page .security-hero-overlay {
  top: 0;
  height: 100%;
  background: linear-gradient(90deg, #00152b99, transparent 75%);
}

@media (max-width: 600px) {
  .security-companies-page .security-hero-image { object-position: 65% center; }
  .security-companies-page .security-hero-text {
    left: 5%;
    top: auto;
    bottom: 6%;
    transform: none;
    width: 90%;
  }
  .security-companies-page .security-hero-title { font-size: 2rem; }
  .security-companies-page .security-hero-overlay {
    background: linear-gradient(0deg, #00152bcc, transparent 80%);
  }
}

/* Security uniform detail: full model left, fabric and description right. */
.security-companies-page .uniforms-info-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: auto auto auto;
  align-items: stretch;
  gap: 1.5rem;
  padding: 0;
}
.security-companies-page .uniforms-info-images {
  display: contents;
}
.security-companies-page .info-image-large {
  grid-column: 1;
  grid-row: 1 / 3;
  min-height: 720px;
  background-size: contain !important;
  background-position: center !important;
  background-color: transparent;
}
.security-companies-page .info-image-small {
  grid-column: 2;
  grid-row: 1;
  min-height: 200px;
}
.security-companies-page .uniforms-info-content {
  grid-column: 2;
  grid-row: 2;
  padding: clamp(1.5rem, 3vw, 3rem);
}
.security-companies-page .uniforms-info-title {
  font-size: clamp(1.7rem, 2.5vw, 2.5rem);
}
.security-companies-page .uniforms-info-description {
  max-width: 100%;
  margin: 0;
  text-align: left;
}
.security-companies-page .uniforms-info-section > .color-swatches {
  grid-column: 1 / -1;
  grid-row: 3;
  margin-top: 0;
  justify-content: center;
}
@media (max-width: 767px) {
  .security-companies-page .uniforms-info-section {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto;
  }
  .security-companies-page .info-image-large {
    grid-column: 1;
    grid-row: 1;
    min-height: 0;
    height: clamp(420px, 120vw, 680px);
  }
  .security-companies-page .info-image-small {
    grid-column: 1;
    grid-row: 2;
    min-height: 160px;
  }
  .security-companies-page .uniforms-info-content {
    grid-column: 1;
    grid-row: 3;
  }
  .security-companies-page .uniforms-info-section > .color-swatches {
    grid-row: 4;
  }
}
/* Show both security range portraits completely at their original proportions. */
.security-companies-page .explore-section.security-companies .explore-card-image {
  height: auto;
  min-height: 0;
  aspect-ratio: 3 / 4;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  background-color: transparent;
}

/* Place the delivery message below the footer phone. */
.footer .footer-phone {
  flex-direction: column;
  align-items: flex-start;
  gap: 1.1rem;
}
.footer-delivery-note {
  white-space: nowrap;
}

@media (max-width: 960px) {
  .footer .footer-phone { align-items: center; }
}

/* Match the footer email icon with a red outlined phone handset. */
.footer .footer-phone > a {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.footer .footer-phone > a::before {
  content: "";
  display: block;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23ff0000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72c.12.96.35 1.9.69 2.79a2 2 0 0 1-.45 2.11L8.09 9.89a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45c.89.34 1.83.57 2.79.69A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E") center / contain no-repeat;
}