/* ============================================
   Vertex Metalworks — Custom Styles
   Palette (Jay Goga Enterprises logo): Navy #102A44 | Slate #1A365D | Gold #C5A059
   Flame accent #E67E22 · Page ground #F5F5F5 · White #FFFFFF
   Font: Poppins (Google Fonts)
   ============================================ */

/* ----- CSS Variables ----- */
:root {
  --color-navy: #102A44;
  --color-industrial-blue: #1A365D;
  --color-gold: #C5A059;
  --color-accent: #e67e22;
  --color-accent-hover: #d35400;
  --color-light: #f5f5f5;
  --color-white: #ffffff;
  --color-navy-rgb: 16, 42, 68;
  --color-blue-rgb: 26, 54, 93;
  --color-accent-rgb: 230, 126, 34;
  --color-gold-rgb: 197, 160, 89;
  /* Photo sections: neutral darken (no blue wash), hero / services / footer */
  --photo-bg-fallback: #121316;
  --photo-overlay-gradient: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.45) 0%,
    rgba(0, 0, 0, 0.52) 52%,
    rgba(0, 0, 0, 0.6) 100%
  );
  --font-family: "Poppins", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --nav-height: 98px;
}

/* ----- Base & Smooth Scrolling ----- */
html {
  scroll-behavior: smooth;
}

section[id],
header[id] {
  scroll-margin-top: calc(var(--nav-height) + 0.75rem);
}

body {
  font-family: var(--font-body);
  color: var(--color-navy);
  padding-top: var(--nav-height);
}

h1,
h2,
h3,
h4,
h5,
h6,
.display-4,
.display-5,
.display-6,
.navbar-brand,
.btn,
.nav-link,
.section-title,
.stat-number {
  font-family: var(--font-family);
}








/* Vertical rhythm for major sections */
.py-lg-6 {
  padding-top: 4.5rem !important;
  padding-bottom: 4.5rem !important;
}

@media (min-width: 992px) {
  .py-lg-6 {
    padding-top: 5.5rem !important;
    padding-bottom: 5.5rem !important;
  }

  .mb-lg-6 {
    margin-bottom: 4rem !important;
  }
}

.section-light {
  background-color: var(--color-light);
}

.section-title {
  color: var(--color-navy);
  letter-spacing: -0.02em;
}

.text-accent {
  color: var(--color-gold) !important;
}

.letter-spacing {
  letter-spacing: 0.12em;
}

/* ----- Navbar ----- */
#mainNav {
  background: var(--color-white) !important;
  border-color: rgba(var(--color-navy-rgb), 0.08) !important;
  min-height: var(--nav-height);
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

#mainNav.nav-scrolled {
  background: var(--color-white) !important;
  box-shadow: 0 4px 24px rgba(var(--color-navy-rgb), 0.1) !important;
}

#mainNav .navbar-brand {
  font-size: 1.15rem;
  color: var(--color-navy);
  margin-right: 1rem;
}

/* ----- Site logo (shared asset) ----- */
.site-logo {
  display: block;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: left center;
}

.site-logo-nav {
  height: 68px;
  max-width: min(380px, 78vw);
}

@media (max-width: 1199.98px) {
  .site-logo-nav {
    height: 72px;
    max-width: min(340px, 52vw);
  }
}

@media (max-width: 991.98px) {
  #mainNav .navbar-brand {
    max-width: 68vw;
    margin-right: 0.75rem;
  }

  .site-logo-nav {
    height: 64px;
    max-width: 100%;
  }

  #mainNav .navbar-collapse {
    padding: 0.75rem 0 1rem;
  }

  #mainNav .nav-link {
    padding: 0.7rem 0 !important;
  }

  #mainNav .nav-link::after {
    left: 0;
    right: auto;
    width: 42px;
  }
}

@media (max-width: 575.98px) {
  #mainNav .navbar-brand {
    max-width: 62vw;
    margin-right: 0.5rem;
  }

  .site-logo-nav {
    height: 54px;
    max-width: 100%;
  }
}

@media (min-width: 1200px) {
  .site-logo-nav {
    height: 86px;
    max-width: 480px;
  }
}

.site-logo-footer {
  height: 76px;
  max-width: min(340px, 85vw);
  filter: brightness(1.06) contrast(1.02);
}

.footer-dark .site-logo-footer {
  opacity: 0.98;
}

.brand-icon {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--color-gold-rgb), 0.18);
  border: 1px solid rgba(var(--color-gold-rgb), 0.45);
  border-radius: 8px;
  color: var(--color-gold);
  font-size: 1rem;
}

.brand-icon-sm {
  width: 32px;
  height: 32px;
  font-size: 0.85rem;
}

#mainNav .nav-link {
  color: var(--color-navy) !important;
  font-weight: 500;
  padding: 0.5rem 0.85rem !important;
  transition: color 0.2s ease;
}

#mainNav .nav-link:hover {
  color: var(--color-gold) !important;
}

#mainNav .nav-link.active {
  color: var(--color-gold) !important;
  font-weight: 600;
}

#mainNav .nav-link {
  position: relative;
}

#mainNav .nav-link::after {
  content: "";
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  bottom: 0.2rem;
  height: 2px;
  background: var(--color-gold);
  opacity: 0;
  transform: scaleX(0.6);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

#mainNav .nav-link:hover::after,
#mainNav .nav-link.active::after {
  opacity: 1;
  transform: scaleX(1);
}

#mainNav .navbar-toggler {
  border-color: rgba(var(--color-navy-rgb), 0.18);
}

#mainNav .navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(var(--color-accent-rgb), 0.2);
}

.btn-accent {
  background-color: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-white);
  font-weight: 600;
  border-radius: 8px;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-accent:hover {
  background-color: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  color: var(--color-white);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(var(--color-accent-rgb), 0.35);
}

/* ----- Hero ----- */
.hero-section {
  min-height: calc(100vh - var(--nav-height));
  min-height: calc(100dvh - var(--nav-height));
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-color: var(--photo-bg-fallback);
  background-image: url("images/bg_img_1.avif");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;

}

.hero-overlay,
.hero-section .hero-overlay,
#services > .hero-overlay,
.services-photo-section > .hero-overlay,
.footer-with-hero-bg > .hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: var(--photo-overlay-gradient);
}

.z-1 {
  z-index: 1;
}

/* Hero content stacks above tinted overlay */
.hero-section > .container {
  position: relative;
  z-index: 2;
}

/* Inner pages: shorter hero band, same bg + overlay treatment */
.hero-section.hero-section--page {
  min-height: 380px;
  min-height: min(46vh, 480px);
}

@media (max-width: 991.98px) {
  .hero-section.hero-section--page {
    min-height: 300px;
    min-height: min(40vh, 380px);
  }
}

/* Subtle hero fade-in */
.hero-content {
  animation: heroFadeIn 1s ease-out forwards;
  opacity: 0;
}

@keyframes heroFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-title {
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.35);
  line-height: 1.15;
}

.hero-subtitle {
  opacity: 0.95;
}

.hero-btn-outline {
  border-width: 2px;
  border-radius: 8px;
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.hero-btn-outline:hover {
  background: var(--color-white);
  color: var(--color-navy);
  border-color: var(--color-white);
}

/* ----- About ----- */
.about-img-wrap {
  max-height: 520px;
  aspect-ratio: 4 / 3;
}

.about-img-wrap img {
  width: 100%;
  height: 100%;
  min-height: 340px;
  object-fit: cover;
  object-position: center;
}

@media (max-width: 991.98px) {
  .about-img-wrap {
    max-height: 460px;
  }
}

@media (max-width: 575.98px) {
  .about-img-wrap {
    max-height: 320px;
  }
}

.stat-card {
  background: var(--color-white);
  border: 1px solid rgba(var(--color-blue-rgb), 0.1);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
  border-color: rgba(var(--color-gold-rgb), 0.45);
  box-shadow: 0 8px 28px rgba(var(--color-navy-rgb), 0.08);
}

.stat-number {
  color: var(--color-navy);
  line-height: 1;
  font-size: 2rem;
}

@media (min-width: 576px) {
  .stat-number {
    font-size: 2.25rem;
  }
}

/* ----- Services section (photo + overlay, matches hero/footer treatment) ----- */
.services-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-color: var(--photo-bg-fallback);
  background-image: url("images/bg_img_2.avif");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

#services > .container,
.services-photo-section > .container {
  position: relative;
  z-index: 2;
}

#services > .hero-overlay,
.services-photo-section > .hero-overlay {
  z-index: 1;
}

#services .section-title,
.services-photo-section .section-title {
  color: var(--color-white);
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.45);
}

.services-photo-section {
  position: relative;
  overflow: hidden;
}

/* ----- Services cards ----- */
.service-card {
  border-radius: 12px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(var(--color-navy-rgb), 0.12) !important;
}

.service-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, var(--color-industrial-blue), var(--color-navy));
  color: var(--color-gold);
  border-radius: 12px;
  font-size: 1.5rem;
  transition: transform 0.25s ease;
}

.service-card:hover .service-icon {
  transform: scale(1.05);
}

/* ----- Products ----- */
.product-card {
  border-radius: 12px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.product-card .card-img-top {
  height: 200px;
  transition: transform 0.4s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(var(--color-navy-rgb), 0.12) !important;
}

.product-card:hover .card-img-top {
  transform: scale(1.04);
}

/* ----- Why Choose Us (dark band) ----- */
.why-section {
  background: linear-gradient(
    160deg,
    var(--color-navy) 0%,
    #0c2036 45%,
    var(--color-industrial-blue) 100%
  );
}

.why-item {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 0.25s ease, border-color 0.25s ease;
}

.why-item:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(var(--color-gold-rgb), 0.4);
}

.why-icon {
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--color-gold-rgb), 0.2);
  color: var(--color-gold);
  border-radius: 10px;
  font-size: 1.35rem;
}

/* ----- Gallery ----- */
.gallery-item {
  aspect-ratio: 4 / 3;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.gallery-item:hover {
  box-shadow: 0 12px 32px rgba(var(--color-navy-rgb), 0.18) !important;
}

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

/* ----- Testimonials ----- */
.testimonial-card {
  border-radius: 12px;
  transition: box-shadow 0.25s ease;
}

.testimonial-card:hover {
  box-shadow: 0 14px 36px rgba(var(--color-navy-rgb), 0.1) !important;
}

.testimonial-avatar {
  width: 56px;
  height: 56px;
  object-fit: cover;
}

/* ----- Contact ----- */
.contact-info {
  background: linear-gradient(145deg, var(--color-industrial-blue), var(--color-navy));
}

.contact-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--color-gold-rgb), 0.22);
  color: var(--color-gold);
  border-radius: 10px;
}

.contact-list a:hover {
  color: var(--color-accent) !important;
}

.contact-form {
  border-color: rgba(var(--color-blue-rgb), 0.14) !important;
}

.contact-form.bg-light {
  background-color: var(--color-light) !important;
}

.contact-form .form-control {
  border-radius: 8px;
  border-color: rgba(var(--color-blue-rgb), 0.18);
}

.contact-form .form-control:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 0.2rem rgba(var(--color-accent-rgb), 0.22);
}

.contact-form .form-control.is-invalid {
  border-color: #dc3545;
}

.inquiry-field-feedback {
  min-height: 1.15rem;
  margin-top: 0.3rem;
  color: #dc3545;
  font-size: 0.82rem;
  line-height: 1.35;
}

.inquiry-status {
  display: none;
  align-items: flex-start;
  gap: 0.65rem;
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  font-size: 0.95rem;
  line-height: 1.45;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.inquiry-status.is-visible {
  display: flex;
  opacity: 1;
  transform: translateY(0);
  animation: inquiryFadeIn 0.25s ease both;
}

.inquiry-status--success {
  color: #0f5132;
  background: #d1e7dd;
  border: 1px solid #badbcc;
}

.inquiry-status--error {
  color: #842029;
  background: #f8d7da;
  border: 1px solid #f5c2c7;
}

.inquiry-status i {
  margin-top: 0.18rem;
}

@keyframes inquiryFadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.accordion-button:not(.collapsed) {
  color: var(--color-navy);
  background-color: rgba(var(--color-gold-rgb), 0.12);
}

/* ----- Footer ----- */
.footer-dark {
  background: var(--color-navy);
}

.footer-dark.footer-with-hero-bg {
  background: transparent;
}

.footer-with-hero-bg .hero-bg {
  background-attachment: fixed;
}

.footer-with-hero-bg > .container {
  position: relative;
  z-index: 2;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--color-gold);
}

/* ----- Scroll to top ----- */
.btn-scroll-top {
  position: fixed;
  right: 1.25rem;
  bottom: 5.5rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: var(--color-industrial-blue);
  color: var(--color-white);
  box-shadow: 0 4px 20px rgba(var(--color-navy-rgb), 0.35);
  z-index: 1040;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease, background 0.2s ease;
}

.btn-scroll-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.btn-scroll-top:hover {
  background: var(--color-accent);
  color: var(--color-white);
}

/* ----- WhatsApp float ----- */
.btn-whatsapp {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  z-index: 1040;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-whatsapp:hover {
  color: #fff;
  transform: scale(1.06);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.55);
}

/* ----- Headings (Bootstrap override for Poppins weight) ----- */
h1,
h2,
.display-4 {
  font-weight: 700;
}

h3,
.h5,
.h6 {
  font-weight: 600;
}

/* ----- Premium industrial: trust strip, cards, gallery, CTA ----- */
.trust-strip {
  background: var(--color-white);
  border-bottom: 1px solid rgba(var(--color-navy-rgb), 0.08);
}

.trust-stat {
  padding: 1.25rem 1rem;
  text-align: center;
  border-right: 1px solid rgba(var(--color-navy-rgb), 0.06);
}

.trust-stat:last-child {
  border-right: 0;
}

@media (max-width: 767.98px) {
  .trust-stat {
    border-right: 0;
    border-bottom: 1px solid rgba(var(--color-navy-rgb), 0.06);
  }

  .trust-stat:last-child {
    border-bottom: 0;
  }
}

.trust-stat .stat-number {
  color: var(--color-navy);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
}

.service-card-premium {
  border-radius: 14px;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.service-card-premium:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 48px rgba(var(--color-navy-rgb), 0.14) !important;
}

.service-card-media {
  height: 180px;
  overflow: hidden;
}

.service-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.service-card-premium:hover .service-card-media img {
  transform: scale(1.06);
}

.service-card-premium .service-icon {
  margin-top: -2.5rem;
  position: relative;
  z-index: 2;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* ----- Owners ----- */
.owners-section {
  border-top: 1px solid rgba(var(--color-navy-rgb), 0.08);
}

.owner-card {
  display: flex;
  gap: 1.25rem;
  padding: 1.5rem;
  background: var(--color-white);
  border: 1px solid rgba(var(--color-blue-rgb), 0.1);
  border-radius: 14px;
  box-shadow: 0 6px 24px rgba(var(--color-navy-rgb), 0.07);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.owner-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 44px rgba(var(--color-navy-rgb), 0.13);
  border-color: rgba(var(--color-gold-rgb), 0.4);
}

.owner-avatar {
  width: 76px;
  height: 76px;
  flex: 0 0 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, var(--color-industrial-blue), var(--color-navy));
  color: var(--color-gold);
  border-radius: 14px;
  font-size: 2rem;
  overflow: hidden;
}

.owner-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.owner-card-body {
  min-width: 0;
}

.owner-role {
  line-height: 1.2;
}

.owner-highlights li {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  margin-bottom: 0.6rem;
  color: rgba(var(--color-navy-rgb), 0.82);
  font-size: 0.92rem;
}

.owner-highlights li:last-child {
  margin-bottom: 0;
}

.owner-highlights i {
  color: var(--color-gold);
  margin-top: 0.2rem;
}

@media (max-width: 575.98px) {
  .owner-card {
    display: block;
  }

  .owner-avatar {
    margin-bottom: 1rem;
  }
}

.machinery-card,
.industry-card {
  border-radius: 14px;
  overflow: hidden;
  background: var(--color-white);
  border: 1px solid rgba(var(--color-blue-rgb), 0.1);
  box-shadow: 0 4px 20px rgba(var(--color-navy-rgb), 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.machinery-card:hover,
.industry-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(var(--color-navy-rgb), 0.12);
  border-color: rgba(var(--color-gold-rgb), 0.35);
}

.machinery-card-media {
  height: 200px;
  overflow: hidden;
}

.machinery-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.machinery-card:hover .machinery-card-media img {
  transform: scale(1.05);
}

.industry-card .industry-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, var(--color-industrial-blue), var(--color-navy));
  color: var(--color-gold);
  border-radius: 12px;
  font-size: 1.35rem;
}

.work-card {
  border-radius: 14px;
  overflow: hidden;
  border: 0;
  box-shadow: 0 6px 24px rgba(var(--color-navy-rgb), 0.08);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
  cursor: pointer;
}

.work-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 44px rgba(var(--color-navy-rgb), 0.14);
}

.work-card .work-card-img {
  height: 240px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

@media (min-width: 992px) {
  .work-card .work-card-img {
    height: 280px;
  }
}

.work-card:hover .work-card-img {
  transform: scale(1.05);
}

.work-card .work-caption {
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-gold);
}

/* Home: Our Work — distinct cool band (navy-tinted, still minimal) */
.section-work-gallery {
  background: linear-gradient(
    180deg,
    rgba(var(--color-navy-rgb), 0.06) 0%,
    rgba(var(--color-blue-rgb), 0.045) 45%,
    #eef1f6 100%
  );
  border-top: 1px solid rgba(var(--color-navy-rgb), 0.08);
}

.cta-industrial {
  background: linear-gradient(135deg, var(--color-navy) 0%, #0c2036 50%, var(--color-industrial-blue) 100%);
  position: relative;
  overflow: hidden;
}

.cta-industrial::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(var(--color-gold-rgb), 0.12), transparent 55%);
  pointer-events: none;
}

.section-reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.section-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 768px) {
  .section-reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}

.hero-title.display-industrial {
  font-size: clamp(1.85rem, 4.2vw, 3.25rem);
  letter-spacing: -0.03em;
}

.text-max {
  max-width: 38rem;
}

#galleryModal .modal-content {
  background: #0f1419;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

#galleryModal .modal-body img {
  max-height: min(78vh, 720px);
  width: auto;
  max-width: 100%;
  margin: 0 auto;
  display: block;
  object-fit: contain;
}

/* ----- Our Products page ----- */
.products-page {
  width: 100%;
  overflow-x: hidden;
  overflow-x: clip;
}

.products-page img,
.products-page video,
.products-page canvas {
  max-width: 100%;
}

.products-page main,
.products-page section,
.products-page footer {
  max-width: 100%;
}

.products-page .row > * {
  min-width: 0;
}

.products-page .hero-content {
  width: 100%;
}

.products-page .hero-content .btn {
  max-width: 100%;
  white-space: normal;
}

.product-hero-copy {
  max-width: 760px;
}

.products-intro-media {
  aspect-ratio: 18 / 13;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 18px 46px rgba(var(--color-navy-rgb), 0.14);
  border: 1px solid rgba(var(--color-blue-rgb), 0.12);
}

.products-intro-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.products-mini-stat {
  height: 100%;
  padding: 1rem;
  background: var(--color-white);
  border: 1px solid rgba(var(--color-blue-rgb), 0.1);
  border-radius: 10px;
}

.products-mini-stat strong,
.products-mini-stat span {
  display: block;
}

.products-mini-stat strong {
  color: var(--color-navy);
  font-family: var(--font-family);
}

.products-mini-stat span {
  color: rgba(var(--color-navy-rgb), 0.62);
  font-size: 0.9rem;
  margin-top: 0.25rem;
}

.product-filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 0.55rem;
  min-width: 0;
}

@media (min-width: 992px) {
  .product-filter-bar {
    justify-content: flex-end;
  }
}

.product-filter {
  min-height: 42px;
  padding: 0.55rem 0.95rem;
  border: 1px solid rgba(var(--color-blue-rgb), 0.16);
  border-radius: 999px;
  background: var(--color-white);
  color: var(--color-navy);
  font-family: var(--font-family);
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.product-filter:hover,
.product-filter.active {
  color: var(--color-white);
  background: var(--color-industrial-blue);
  border-color: var(--color-industrial-blue);
  box-shadow: 0 8px 22px rgba(var(--color-navy-rgb), 0.14);
  transform: translateY(-1px);
}

.products-grid {
  align-items: stretch;
  --bs-gutter-x: 1.5rem;
  --bs-gutter-y: 1.5rem;
  max-width: 100%;
  overflow-x: clip;
}

.product-category-stack {
  display: grid;
  gap: clamp(2.25rem, 5vw, 4rem);
}

.product-category-section {
  padding-top: 1.25rem;
  border-top: 1px solid rgba(var(--color-navy-rgb), 0.08);
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.product-category-section:first-child {
  padding-top: 0;
  border-top: 0;
}

.product-category-section.is-hidden {
  display: none;
}

.product-category-head {
  max-width: 760px;
  margin-bottom: 1.35rem;
}

.product-category-head h3 {
  margin-bottom: 0.45rem;
  color: var(--color-navy);
  font-size: clamp(1.35rem, 2vw, 1.85rem);
  line-height: 1.25;
}

.product-category-head p:last-child {
  margin-bottom: 0;
  color: rgba(var(--color-navy-rgb), 0.68);
}

.product-item {
  display: flex;
  min-width: 0;
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.product-item.is-hidden {
  display: none;
}

.product-showcase-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  min-width: 0;
  overflow: hidden;
  border-radius: 14px;
  background: linear-gradient(160deg, #101923 0%, var(--color-navy) 52%, #0c2036 100%);
  color: var(--color-white);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 34px rgba(var(--color-navy-rgb), 0.18);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.product-showcase-card:hover {
  transform: translateY(-6px);
  border-color: rgba(var(--color-gold-rgb), 0.36);
  box-shadow: 0 22px 52px rgba(var(--color-navy-rgb), 0.28);
}

.product-card-media {
  aspect-ratio: 4 / 3;
  flex: 0 0 auto;
  overflow: hidden;
  background: #0f1419;
  min-height: 260px;
}

.product-card-media img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.5s ease;
}

.product-showcase-card:hover .product-card-media img {
  transform: scale(1.06);
}

.product-card-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  padding: 1.25rem;
  min-width: 0;
}

.product-card-body span {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  max-width: 100%;
  min-height: 26px;
  padding: 0.25rem 0.65rem;
  margin-bottom: 0.85rem;
  border-radius: 999px;
  background: rgba(var(--color-gold-rgb), 0.16);
  color: var(--color-gold);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  overflow-wrap: anywhere;
  white-space: normal;
  line-height: 1.25;
}

.product-card-body h3 {
  margin-bottom: 0.55rem;
  color: var(--color-white);
  font-size: 1.05rem;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.product-card-body p {
  margin-bottom: 1.2rem;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.92rem;
  overflow-wrap: anywhere;
}

.product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: auto;
}

.product-actions .btn {
  min-height: 38px;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: normal;
}

.product-industry-card {
  padding: 1.4rem;
}

.product-industry-card i {
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  border-radius: 12px;
  background: linear-gradient(145deg, var(--color-industrial-blue), var(--color-navy));
  color: var(--color-gold);
  font-size: 1.35rem;
}

.product-industry-card h3 {
  font-size: 1rem;
  margin-bottom: 0.45rem;
}

.product-industry-card p {
  margin-bottom: 0;
  color: rgba(var(--color-navy-rgb), 0.66);
  font-size: 0.92rem;
}

.product-cta {
  padding: clamp(1.25rem, 4vw, 3rem);
  border-radius: 14px;
  background: linear-gradient(145deg, var(--color-navy) 0%, #0c2036 48%, var(--color-industrial-blue) 100%);
  box-shadow: 0 18px 52px rgba(var(--color-navy-rgb), 0.18);
}

.product-cta-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin-bottom: 0.7rem;
  color: rgba(255, 255, 255, 0.72);
  min-width: 0;
}

.product-cta-list li:last-child {
  margin-bottom: 0;
}

.product-cta-list i {
  width: 1.2rem;
  color: var(--color-gold);
}

.product-cta-list a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  overflow-wrap: anywhere;
}

.product-cta-list a:hover {
  color: var(--color-gold);
}

.product-inquiry-form {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

@media (min-width: 1400px) {
  .products-grid {
    --bs-gutter-x: 1.75rem;
    --bs-gutter-y: 1.75rem;
  }

  .product-card-body {
    padding: 1.35rem;
  }
}

@media (max-width: 1199.98px) {
  .product-category-stack {
    gap: 3rem;
  }

  .product-filter-bar {
    justify-content: flex-start;
  }

  .product-filter {
    padding-inline: 0.8rem;
  }
}

@media (max-width: 991.98px) {
  .products-page .hero-section.hero-section--page {
    min-height: 320px;
  }

  .products-intro-media img {
    aspect-ratio: auto;
  }

  .products-intro-media {
    aspect-ratio: 16 / 10;
  }

  .product-card-media {
    aspect-ratio: auto;
  }

  .product-cta > .row {
    --bs-gutter-y: 2rem;
  }
}

@media (max-width: 767.98px) {
  .products-page .hero-section.hero-section--page {
    min-height: auto;
    padding-block: 3rem;
  }

  .products-page .section-title,
  .products-page .hero-title {
    overflow-wrap: anywhere;
  }

  .products-page .row {
    --bs-gutter-x: 1rem;
  }

  .products-page .footer-dark .col-6 {
    width: 100%;
  }

  .products-intro-media img {
    min-height: 220px;
  }

  .products-intro-media {
    aspect-ratio: 4 / 3;
  }

  .product-filter-bar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .product-card-media {
    aspect-ratio: auto;
  }

  .product-filter {
    width: 100%;
    min-width: 0;
    padding-inline: 0.65rem;
  }

  .product-card-body p {
    min-height: 0;
  }

  .product-cta .btn,
  .product-actions .btn {
    width: 100%;
  }

  .product-inquiry-form {
    padding: 1rem !important;
  }
}

@media (max-width: 575.98px) {
  .products-page .container {
    padding-inline: 1rem;
  }

  .products-page .hero-content .d-flex,
  .product-cta .d-flex {
    gap: 0.65rem !important;
  }

  .products-page .hero-content .btn {
    width: 100%;
  }

  .products-grid {
    --bs-gutter-y: 1.25rem;
  }

  .product-category-stack {
    gap: 2.35rem;
  }

  .product-showcase-card:hover {
    transform: none;
  }

  .product-card-body {
    padding: 1rem;
  }

  .product-card-body span {
    font-size: 0.68rem;
    letter-spacing: 0.06em;
  }
}

@media (max-width: 379.98px) {
  .product-filter-bar {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-content,
  .section-reveal {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .service-card,
  .service-card-premium,
  .product-card,
  .work-card,
  .machinery-card,
  .industry-card,
  .owner-card,
  .why-item {
    transition: none !important;
  }

  .service-card:hover,
  .service-card-premium:hover,
  .product-card:hover,
  .work-card:hover,
  .machinery-card:hover,
  .industry-card:hover {
    transform: none !important;
  }

  .owner-card:hover {
    transform: none !important;
  }

  .product-filter,
  .product-showcase-card,
  .product-card-media img,
  .product-item,
  .product-category-section {
    transition: none !important;
  }
}
