/* ==========================================================================
   D6 Labs - Consolidated Stylesheet
   Version: 1.0
   ========================================================================== */

/* ==========================================================================
   1. CSS Variables (Colors, Typography, Spacing)
   ========================================================================== */
:root {
    /* Colors */
    --d6-red: #E93725;
    --d6-red-hover: #c92d1d;
    --d6-red-light: #E93725;
    --d6-grey-dark: #454F50;
    --d6-grey-medium: #A2A7A7;
    --d6-grey-light: #E8EEEF;
    --d6-grey-border: #ECEDED;
    --d6-white: #FFFFFF;
    --d6-black: #000000;
    --d6-blue: #166ECF;
    /* Typography */
    --font-primary: 'Roboto', Arial, sans-serif;
    --font-fallback: Arial, sans-serif;
    /* Font Sizes */
    --text-xs: 13px;
    --text-sm: 16px;
    --text-base: 19px;
    --text-lg: 20px;
    --text-xl: 24px;
    --text-2xl: 28px;
    --text-3xl: 32px;
    --text-4xl: 48px;
    /* Spacing */
    --space-xs: 8px;
    --space-sm: 12px;
    --space-md: 24px;
    --space-lg: 32px;
    --space-xl: 48px;
    --space-2xl: 60px;
    --space-3xl: 80px;
    /* Layout */
    --max-width: 1200px;
    --header-height: 116px;
    --section-padding: 60px 0;
    /* Shadows */
    --shadow-header: 0px 6px 12px rgba(69, 79, 80, 0.3);
    --shadow-card: 0 4px 12px rgba(0, 0, 0, 0.1);
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 24px;
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
}

/* ==========================================================================
   2. Base/Reset Styles
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-size: 14px;
  position: relative;
  min-height: 100%;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--d6-white);
  color: var(--d6-grey-dark);
  font-family: var(--font-primary);
  font-weight: normal;
  font-size: var(--text-base);
  line-height: 1.5;
}

a {
  color: var(--d6-grey-dark);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--d6-red);
}

img {
  max-width: 100%;
  height: auto;
}

input:focus, textarea:focus, select:focus {
  outline: none;
}

/* ==========================================================================
   3. Typography (headings, body text, links)
   ========================================================================== */

/* Heading Styles */
h1, h2, h3, h4, h5, h6 {
  margin: 0;
  padding: 0;
  font-family: var(--font-primary);
  font-weight: 700;
  line-height: 1.2;
}

h1, .d6-heading-xl {
  font-size: var(--text-4xl);
  font-weight: 900;
}

h2, .d6-heading-lg {
  font-size: var(--text-3xl);
  font-weight: 800;
}

h3, .d6-heading-md {
  font-size: var(--text-xl);
  font-weight: 700;
}

h4, .d6-heading-sm {
  font-size: var(--text-lg);
  font-weight: 600;
  font-style: italic;
}

/* Typography Utilities */
.d6-text-lead {
  font-size: var(--text-lg);
  line-height: 1.6;
  font-weight: 500;
}

.d6-text-body {
  font-size: var(--text-base);
  line-height: 1.6;
}

.d6-text-small {
  font-size: var(--text-sm);
}

/* Color Utilities */
.d6-text-white { color: var(--d6-white); }
.d6-text-red { color: var(--d6-red); }
.d6-text-grey { color: var(--d6-grey-dark); }
.d6-text-muted { color: var(--d6-grey-medium); }

/* Legacy Typography Classes (for backward compatibility) */
.h1RobotoBold {
  font-family: var(--font-primary);
  font-weight: 900;
  font-size: var(--text-4xl);
  font-style: normal;
}

.h3RobotoRedBold {
  font-family: var(--font-primary);
  font-weight: 800;
  font-size: var(--text-3xl);
  font-style: normal;
  color: var(--d6-red);
}

.h3RobotoBold {
  font-family: var(--font-primary);
  font-weight: 800;
  font-size: var(--text-3xl);
  font-style: normal;
  color: var(--d6-black);
}

.h3RobotoMuted {
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: var(--text-2xl);
  font-style: normal;
  color: #818091;
}

.h3RobotoRed {
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: 30px;
  letter-spacing: 3px;
  font-style: normal;
  color: var(--d6-red);
}

.h3RobotoRedSmall {
  font-family: var(--font-primary);
  font-weight: 800;
  font-size: 26px;
  letter-spacing: 3px;
  font-style: normal;
  color: var(--d6-red);
}

/* Info Box Text */
.infoBox p {
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: var(--text-lg);
  line-height: 1.6;
  letter-spacing: 0.05rem;
  margin: 5px 0;
}

/* Preheader Lines */
.preheader.ph-100.ph-125::before {
  content: "";
  width: 200px;
  height: 5px;
  background-color: var(--d6-red);
  display: block;
  margin: 13px 0;
}

.preheader-wh.ph-100.ph-125::before {
  content: "";
  width: 100px;
  height: 5px;
  background-color: var(--d6-white);
  display: block;
  margin: 13px 0;
}

/* ==========================================================================
   4. Layout Components (containers, grids, sections)
   ========================================================================== */

/* Container */
.d6-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-sm);
}

/* Section Wrappers */
.d6-section {
  clear: both;
  position: relative;
  display: table;
  table-layout: fixed;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
}

.d6-section-white {
  background-color: var(--d6-white);
  color: var(--d6-grey-dark);
  padding: var(--space-lg) 0;
}

.d6-section-grey {
  background-color: var(--d6-grey-light);
  color: var(--d6-grey-dark);
  padding: var(--space-lg) 0;
}

.d6-section-dark {
  background-color: var(--d6-grey-dark);
  color: var(--d6-white);
  padding: var(--space-lg) 0;
}

.d6-section-red {
  background-color: var(--d6-red);
  color: var(--d6-white);
  padding: var(--space-lg) 0;
}

/* Flex Grid */
.d6-grid {
  display: flex;
  flex-wrap: wrap;
  margin: 0 auto;
  max-width: var(--max-width);
  padding: 0;
}

.d6-grid-2col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-sm);
}

.d6-grid-3col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-sm);
}

@media (max-width: 768px) {
  .d6-grid-2col,
  .d6-grid-3col {
    grid-template-columns: 1fr;
  }
}

/* Legacy Section Classes (for backward compatibility) */
.Cntnt_Box_White {
  text-decoration: none;
  color: var(--d6-grey-dark);
  background-color: transparent;
  padding: var(--space-lg) 0;
}

.Cntnt_Box_Off-Grey {
  text-decoration: none;
  background-color: var(--d6-grey-light);
  padding: var(--space-lg) 0;
}

.Cntnt_Box_Grey {
  text-decoration: none;
  color: var(--d6-white);
  background-color: var(--d6-grey-dark);
  padding: var(--space-lg) 0;
}

/* ==========================================================================
   5. Header & Navigation
   ========================================================================== */

/* Top Contact Bar */
#wb_LytGrd_Hdr_Contact {
  clear: both;
  position: relative;
  table-layout: fixed;
  display: table;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
}

#LytGrd_Hdr_Contact {
  box-sizing: border-box;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  padding: 0;
  margin: 0 auto;
  max-width: var(--max-width);
}

#LytGrd_Hdr_Contact > .col-1 {
  box-sizing: border-box;
  font-size: 0;
  min-height: 1px;
  padding: 0 var(--space-sm);
  position: relative;
  flex: 0 0 auto;
  flex-basis: 100%;
  max-width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  align-items: center;
  justify-content: flex-end;
  text-align: right;
}

#wb_ThmBtm_Hdr_Phone, #wb_ThmBtm_Hdr_Email {
  border-radius: 0;
  margin: 0;
  vertical-align: top;
}

#ThmBtm_Hdr_Phone, #ThmBtm_Hdr_Email {
  font-family: var(--font-fallback);
  font-weight: normal;
  font-size: var(--text-xs);
  display: inline-block;
  position: relative;
  vertical-align: middle;
  user-select: none;
  text-decoration: none;
  cursor: pointer;
  box-sizing: border-box;
  padding: 0 0 0 28px;
  color: #454545;
}

#ThmBtm_Hdr_Phone:hover, #ThmBtm_Hdr_Email:hover {
  color: var(--d6-grey-dark);
}

#wb_ThmBtm_Hdr_Phone .ui-button,
#wb_ThmBtm_Hdr_Email .ui-button {
  margin: 0;
  line-height: 30px;
  background-color: transparent;
  background-image: none;
  border: 0;
  color: var(--d6-black);
}

#wb_ThmBtm_Hdr_Phone .ui-primary,
#wb_ThmBtm_Hdr_Email .ui-primary {
  background-image: none !important;
  display: inline-block;
  font-family: FontAwesome;
  font-style: normal;
  font-weight: normal;
  line-height: 1;
  position: absolute;
  left: 10px;
  top: 50%;
  margin-top: -6.5px;
  width: 13px;
  height: 13px;
  color: var(--d6-black);
}

#wb_ThmBtm_Hdr_Phone .ui-primary:before {
  content: "\f098";
}

#wb_ThmBtm_Hdr_Email .ui-primary:before {
  content: "\f199";
}

/* Main Navigation Header */
.Hdr_Nav, #wb_LytGrd_Hdr_Nav {
  font-family: var(--font-fallback);
  font-weight: bold;
  font-size: 21px;
  text-decoration: none;
  color: var(--d6-grey-dark);
  background-color: var(--d6-white);
  box-shadow: var(--shadow-header);
  height: var(--header-height);
  max-height: var(--header-height);
  clear: both;
  position: relative;
  table-layout: fixed;
  display: table;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
}

#LytGrd_Hdr_Nav {
  box-sizing: border-box;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  padding: 0;
  margin: 0 auto;
  max-width: var(--max-width);
}

#LytGrd_Hdr_Nav > .col-1,
#LytGrd_Hdr_Nav > .col-2 {
  box-sizing: border-box;
  font-size: 0;
  min-height: 1px;
  padding: 0 var(--space-sm);
  position: relative;
  flex: 0 0 auto;
}

#LytGrd_Hdr_Nav > .col-1 {
  flex-basis: 25%;
  max-width: 25%;
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
}

#LytGrd_Hdr_Nav > .col-2 {
  flex-basis: 75%;
  max-width: 75%;
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  align-items: center;
  justify-content: flex-end;
  text-align: right;
}

/* Logo */
#wb_Img_Logo-D6-Labs {
  height: 100%;
  margin: 0;
  vertical-align: top;
}

#Img_Logo-D6-Labs {
  border: 0;
  border-radius: 0;
  padding: 0;
  display: inline-block;
  width: 100%;
  height: 100%;
  vertical-align: top;
  object-fit: scale-down;
}

/* Responsive Menu */
#wb_ResponsiveMenu1 {
  display: inline-block;
  font-size: var(--text-base);
  margin: 0;
  vertical-align: top;
  width: auto;
}

#ResponsiveMenu1 {
  display: block;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0;
}

#ResponsiveMenu1 li {
  cursor: pointer;
  margin: 0;
  position: relative;
  padding: 0;
  text-align: left;
  display: inline-block;
}

#ResponsiveMenu1 a {
  color: var(--d6-grey-dark);
  text-decoration: none;
  display: block;
  font-family: var(--font-fallback);
  font-size: var(--text-base);
  font-weight: bold;
  padding: 12px 20px;
  white-space: nowrap;
}

#ResponsiveMenu1 a:hover {
  color: var(--d6-red);
}

#ResponsiveMenu1 li ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--d6-white);
  box-shadow: var(--shadow-card);
  z-index: 1000;
  list-style: none;
  padding: 0;
  margin: 0;
  min-width: 180px;
}

#ResponsiveMenu1 li:hover > ul {
  display: block;
}

#ResponsiveMenu1 li ul li {
  display: block;
}

#ResponsiveMenu1 li ul a {
  padding: 10px 20px;
  font-weight: normal;
}

/* Mobile Menu Toggle */
#ResponsiveMenu1-title {
  display: none;
  cursor: pointer;
  font-size: var(--text-base);
  font-weight: bold;
  padding: 12px 20px;
}

#ResponsiveMenu1-icon {
  display: inline-block;
  margin-left: 10px;
  vertical-align: middle;
}

#ResponsiveMenu1-icon span {
  display: block;
  width: 22px;
  height: 3px;
  background: var(--d6-grey-dark);
  margin: 4px 0;
  transition: var(--transition-fast);
}

#ResponsiveMenu1-submenu,
#ResponsiveMenu1 input[type="checkbox"] {
  display: none;
}

/* Arrow down for dropdowns */
.arrow-down {
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 6px;
  vertical-align: middle;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid currentColor;
}

/* Arrow right for nested submenus */
.arrow-right {
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 6px;
  vertical-align: middle;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 5px solid currentColor;
}

/* Third-level submenu (flyout right) */
#ResponsiveMenu1 li ul li.has-submenu > ul {
  display: none;
  position: absolute;
  left: 100%;
  top: 0;
  background: var(--d6-white);
  box-shadow: var(--shadow-card);
  z-index: 1001;
  list-style: none;
  padding: 0;
  margin: 0;
  min-width: 180px;
}

#ResponsiveMenu1 li ul li.has-submenu:hover > ul {
  display: block;
}

/* Hide mobile toggle labels on desktop */
#ResponsiveMenu1 .toggle {
  display: none;
}

/* Header Request Info Button */
.d6-nav-cta {
  display: inline-block;
  margin-left: var(--space-md);
}

#wb_ThmBtm_Nav_Request_Demo {
  border-radius: var(--radius-lg);
  margin: 0 0 0 6px;
  vertical-align: top;
}

#ThmBtm_Nav_Request_Demo {
  font-family: var(--font-fallback);
  font-weight: bold;
  font-size: var(--text-base);
  display: inline-block;
  position: relative;
  vertical-align: middle;
  user-select: none;
  text-decoration: none;
  cursor: pointer;
  box-sizing: border-box;
  padding: 0;
  text-align: center;
}

#wb_ThmBtm_Nav_Request_Demo .ui-button {
  margin: 0;
  line-height: 28px;
  background-color: var(--d6-red);
  background-image: none;
  border: 2px solid var(--d6-red);
  border-radius: var(--radius-lg);
  color: var(--d6-white);
  padding: 8px 24px;
}

#wb_ThmBtm_Nav_Request_Demo .ui-button:hover {
  background-color: var(--d6-grey-border);
  color: var(--d6-red);
}

/* ==========================================================================
   6. Hero Sections
   ========================================================================== */

.d6-hero {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--d6-white);
  padding: var(--space-3xl) 0;
  min-height: 500px;
  display: flex;
  align-items: center;
}

.d6-hero-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
  text-align: left;
}

.d6-hero h1 {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 900;
  margin-bottom: var(--space-md);
  max-width: 800px;
}

.d6-hero-subtitle {
  font-size: var(--text-lg);
  font-weight: 500;
  margin-bottom: var(--space-lg);
  max-width: 600px;
}

.d6-hero-features {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.d6-hero-feature {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-weight: 600;
}

.d6-hero-feature i {
  color: var(--d6-red-light);
}

/* Legacy Hero Classes */
.Cntnt_Hero_HmPg {
  color: var(--d6-white);
  background-color: var(--d6-grey-medium);
  background-image: url('../images/Bkgrd_HmPg_Products-n-Catalog_01.jpg');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  padding: 500px 0 var(--space-lg) 0;
}

.Cntnt_Hero_HmPg_WaterIoT {
  color: var(--d6-white);
  background-color: var(--d6-blue);
  background-image: url('../images/Bkgrds-for-Parallax_Water-IoT_02-1.jpg');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  padding: var(--space-lg) 0;
}

.Cntnt_Hero_IndPg {
  color: var(--d6-white);
  background-color: var(--d6-red);
  background-image: url('../images/Bkgrds-for-Parallax_IoT-World_RED.jpg');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  padding: 12px 0;
  min-height: 640px;
}

.Cntnt_Hero_IndPg_WaterIoT {
  color: var(--d6-white);
  background-color: var(--d6-red);
  background-image: url('../images/Bkgrds-for-Parallax_Water-IoT_01.jpg');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  padding: 12px 0;
  min-height: 640px;
}

.Cntnt_Hero_IndPg_WasteWaterIoT {
  color: var(--d6-white);
  background-color: var(--d6-red);
  background-image: url('../images/Bkgrds-for-Parallax_Waste-Water-IoT_01.jpg');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  padding: 12px 0;
  min-height: 640px;
}

.Cntnt_Hero_Company_Worker {
  color: var(--d6-white);
  background-color: var(--d6-red);
  background-image: url('../images/Bkgrds-for-Parallax_Company-Worker_01.jpg');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  padding: 12px 0;
  min-height: 640px;
}

.Cntnt_Hero_Company_Careers {
  color: var(--d6-white);
  background-color: var(--d6-red);
  background-image: url('../images/Bkgrds-for-Parallax_Company-Careers_01.jpg');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  padding: 12px 0;
  min-height: 640px;
}

.Cntnt_Hdr_Title_RED {
  color: var(--d6-white);
  background-color: var(--d6-red);
  background-image: url('../images/Bkgrds-for-Parallax_IoT-World_RED.jpg');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  padding: 112px 0;
}

.Cntnt_Hdr_Title_GREY {
  color: var(--d6-red);
  background-color: var(--d6-grey-light);
  background-image: url('../images/Bkgrds-for-Parallax_IoT-World_BRITE-GRAY.jpg');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  padding: 112px 0;
}

/* ==========================================================================
   7. Cards & Features
   ========================================================================== */

/* Industry Cards */
.d6-card {
  background: var(--d6-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.d6-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.d6-card-image {
  width: 100%;
  object-fit: cover;
}

.d6-card-content {
  padding: var(--space-md);
}

.d6-card-title {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--d6-red);
  margin-bottom: var(--space-sm);
}

.d6-card-text {
  font-size: var(--text-sm);
  color: var(--d6-grey-dark);
  margin-bottom: var(--space-md);
}

/* Feature Cards */
.d6-feature-card {
  text-align: center;
  padding: var(--space-lg);
}

.d6-feature-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-md);
  color: var(--d6-red);
  font-size: 48px;
}

.d6-feature-title {
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.d6-feature-text {
  font-size: var(--text-sm);
  color: var(--d6-grey-dark);
}

/* Technology Platform Cards */
.d6-tech-card {
  background: var(--d6-white);
  border: 2px solid var(--d6-grey-light);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  text-align: center;
  transition: border-color var(--transition-base);
}

.d6-tech-card:hover {
  border-color: var(--d6-red);
}

.d6-tech-logo {
  height: 60px;
  margin-bottom: var(--space-md);
  object-fit: contain;
}

.d6-tech-name {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--d6-red);
  margin-bottom: var(--space-xs);
}

.d6-tech-tagline {
  font-size: var(--text-sm);
  color: var(--d6-grey-medium);
  margin-bottom: var(--space-md);
}

.d6-tech-features {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
}

.d6-tech-features li {
  padding: var(--space-xs) 0;
  font-size: var(--text-sm);
  border-bottom: 1px solid var(--d6-grey-light);
}

.d6-tech-features li:last-child {
  border-bottom: none;
}

/* Rollover Image Effect */
#RO_Icon_WaterIoT, #RO_Icon_WasteWaterIoT {
  position: relative;
  display: inline-block;
}

#RO_Icon_WaterIoT img.hover,
#RO_Icon_WasteWaterIoT img.hover {
  transition: opacity var(--transition-base);
}

#RO_Icon_WaterIoT span,
#RO_Icon_WasteWaterIoT span {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity var(--transition-base);
}

#RO_Icon_WaterIoT:hover span,
#RO_Icon_WasteWaterIoT:hover span {
  opacity: 1;
}

/* ==========================================================================
   8. Buttons & CTAs
   ========================================================================== */

/* Primary Button */
.d6-btn-primary {
  display: inline-block;
  background-color: var(--d6-red);
  color: var(--d6-white);
  font-family: var(--font-primary);
  font-size: var(--text-base);
  font-weight: 700;
  padding: 14px 32px;
  border: 2px solid var(--d6-red);
  border-radius: var(--radius-lg);
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.d6-btn-primary:hover {
  background-color: var(--d6-white);
  color: var(--d6-red);
}

/* Secondary Button */
.d6-btn-secondary {
  display: inline-block;
  background-color: transparent;
  color: var(--d6-red);
  font-family: var(--font-primary);
  font-size: var(--text-base);
  font-weight: 700;
  padding: 14px 32px;
  border: 2px solid var(--d6-red);
  border-radius: var(--radius-lg);
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.d6-btn-secondary:hover {
  background-color: var(--d6-red);
  color: var(--d6-white);
}

/* White Button (for dark backgrounds) */
.d6-btn-white {
  display: inline-block;
  background-color: var(--d6-white);
  color: var(--d6-red);
  font-family: var(--font-primary);
  font-size: var(--text-base);
  font-weight: 700;
  padding: 14px 32px;
  border: 2px solid var(--d6-white);
  border-radius: var(--radius-lg);
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.d6-btn-white:hover {
  background-color: transparent;
  color: var(--d6-white);
}

/* Outline Button */
.d6-btn-outline {
  display: inline-block;
  background-color: transparent;
  color: var(--d6-white);
  font-family: var(--font-primary);
  font-size: var(--text-base);
  font-weight: 700;
  padding: 14px 32px;
  border: 2px solid var(--d6-white);
  border-radius: var(--radius-lg);
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.d6-btn-outline:hover {
  background-color: var(--d6-white);
  color: var(--d6-red);
}

/* Small Button Variant */
.d6-btn-sm {
  padding: 10px 20px;
  font-size: var(--text-sm);
}

/* Button Group */
.d6-btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

/* Legacy Link Classes */
a.Ftr_Links {
  color: var(--d6-white);
  text-decoration: none;
}

a.Ftr_Links:hover {
  color: var(--d6-red);
}

a.Ftr_Contact_Links {
  color: var(--d6-black);
  text-decoration: none;
}

a.Ftr_Contact_Links:hover {
  color: var(--d6-white);
  text-decoration: underline;
}

a.White_Txt_Links {
  color: var(--d6-white);
  font-weight: bold;
  text-decoration: none;
}

a.White_Txt_Links:hover {
  font-style: italic;
  text-decoration: underline;
}

/* ==========================================================================
   9. Forms & Modal
   ========================================================================== */

/* Contact Modal */
.d6-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  align-items: center;
  justify-content: center;
}

.d6-modal.active {
  display: flex;
}

.d6-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  cursor: pointer;
}

.d6-modal-content {
  position: relative;
  background: var(--d6-white);
  padding: var(--space-xl);
  max-width: 540px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.d6-modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 28px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--d6-grey-dark);
  padding: 0;
  line-height: 1;
}

.d6-modal-close:hover {
  color: var(--d6-red);
}

.d6-modal h2 {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-sm);
  color: var(--d6-grey-dark);
}

.d6-modal p {
  color: var(--d6-grey-medium);
  margin-bottom: var(--space-lg);
}

#d6-contact-form {
  min-height: auto;
}

/* Contact Form Fields */
.d6-form-row {
  display: flex;
  gap: var(--space-sm);
}

.d6-form-field {
  flex: 1;
  margin-bottom: var(--space-md);
}

.d6-form-field label {
  display: block;
  font-family: var(--font-primary);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--d6-grey-dark);
  margin-bottom: var(--space-xs);
}

.d6-required {
  color: var(--d6-red);
}

.d6-form-field input,
.d6-form-field select,
.d6-form-field textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: var(--font-primary);
  font-size: var(--text-sm);
  color: var(--d6-grey-dark);
  border: 1px solid var(--d6-grey-border);
  border-radius: var(--radius-sm);
  background: var(--d6-white);
  transition: border-color var(--transition-fast);
  box-sizing: border-box;
}

.d6-form-field input:focus,
.d6-form-field select:focus,
.d6-form-field textarea:focus {
  outline: none;
  border-color: var(--d6-red);
  box-shadow: 0 0 0 2px rgba(233, 55, 37, 0.15);
}

.d6-form-field input::placeholder,
.d6-form-field textarea::placeholder {
  color: var(--d6-grey-medium);
}

.d6-form-field textarea {
  resize: vertical;
  min-height: 80px;
}

.d6-form-field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='8' viewBox='0 0 14 8'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23A2A7A7' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 14px;
  cursor: pointer;
  padding-right: 36px;
}

/* Validation error state */
.d6-form-field.has-error input,
.d6-form-field.has-error select,
.d6-form-field.has-error textarea {
  border-color: var(--d6-red);
}

.d6-field-error {
  display: none;
  font-size: var(--text-xs);
  color: var(--d6-red);
  margin-top: 4px;
}

.d6-form-field.has-error .d6-field-error {
  display: block;
}

/* Form actions */
.d6-form-actions {
  margin-top: var(--space-md);
}

.d6-form-actions .d6-btn-primary {
  width: 100%;
}

.d6-form-actions .d6-btn-primary:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.cf-btn-spinner {
  font-style: italic;
}

/* Form message (success/error) */
.d6-form-message {
  margin-top: var(--space-md);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  text-align: center;
}

.d6-form-message.success {
  background: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #a5d6a7;
}

.d6-form-message.error {
  background: #ffebee;
  color: #c62828;
  border: 1px solid #ef9a9a;
}

/* Specification Tables */
.Spec_Tbl {
  background-color: transparent;
  border: 2px solid var(--d6-grey-medium);
  margin: var(--space-md) var(--space-sm);
  width: 90% !important;
}

.Spec_Tbl_Hdr_RED {
  font-weight: bold;
  font-size: var(--text-sm);
  color: var(--d6-white);
  background-color: var(--d6-red);
  height: 24px !important;
}

.Spec_Tbl_Row_GRAY {
  font-weight: normal;
  font-size: var(--text-xs);
  color: var(--d6-grey-dark);
  background-color: var(--d6-grey-border);
  height: 12px !important;
}

.Spec_Tbl_Row_WHITE {
  font-weight: normal;
  font-size: var(--text-xs);
  color: var(--d6-grey-dark);
  background-color: transparent;
  height: 12px !important;
}

/* ==========================================================================
   10. Footer
   ========================================================================== */

#wb_LytGrd_MadeUSA {
  clear: both;
  position: relative;
  table-layout: fixed;
  display: table;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
}

#LytGrd_MadeUSA {
  box-sizing: border-box;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  padding: var(--space-lg) 0;
  margin: 0 auto;
  max-width: var(--max-width);
  align-items: center;
}

#LytGrd_MadeUSA > .col-1 {
  flex: 0 0 30%;
  max-width: 30%;
  padding: 0 var(--space-sm);
  text-align: center;
}

#LytGrd_MadeUSA > .col-2 {
  flex: 0 0 70%;
  max-width: 70%;
  padding: 0 var(--space-sm);
  text-align: left;
}

#Img_MadeUSA {
  max-width: 200px;
  height: auto;
}

#Hdng_MadeUSA {
  font-size: var(--text-xl);
  font-weight: 700;
  font-style: italic;
  margin-bottom: var(--space-md);
}

/* Footer Links Section */
#wb_LytGrd_Footer {
  clear: both;
  position: relative;
  table-layout: fixed;
  display: table;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
}

#LytGrd_Footer {
  box-sizing: border-box;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  padding: var(--space-lg) 0;
  margin: 0 auto;
  max-width: var(--max-width);
}

#LytGrd_Footer > .col-1 {
  flex: 0 0 100%;
  max-width: 100%;
  padding: 0 var(--space-sm);
}

#LytGrd_Footer_Links {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

#LytGrd_Footer_Links > .row {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  justify-content: space-between;
}

#LytGrd_Footer_Links .col-1,
#LytGrd_Footer_Links .col-2,
#LytGrd_Footer_Links .col-3 {
  flex: 1;
  min-width: 200px;
  padding: var(--space-sm);
  text-align: left;
}

#LytGrd_Footer_Links > .row {
  align-items: flex-start;
}

/* Footer Navigation */
#CssMenu_Ftr_Industries,
#CssMenu_Ftr_Company,
#CssMenu_Ftr_Resources {
  list-style: none;
  padding: 0;
  margin: var(--space-xs) 0;
}

#CssMenu_Ftr_Industries li,
#CssMenu_Ftr_Company li,
#CssMenu_Ftr_Resources li {
  margin: var(--space-xs) 0;
}

#CssMenu_Ftr_Industries a,
#CssMenu_Ftr_Company a,
#CssMenu_Ftr_Resources a {
  color: var(--d6-grey-dark);
  text-decoration: none;
  font-size: var(--text-sm);
}

#CssMenu_Ftr_Industries a:hover,
#CssMenu_Ftr_Company a:hover,
#CssMenu_Ftr_Resources a:hover {
  color: var(--d6-red);
}

/* Footer Social Icons */
#ROImg_Icon_LinkedIn,
#ROImg_Icon_Facbook {
  display: inline-block;
  margin-right: var(--space-sm);
  position: relative;
}

#ROImg_Icon_LinkedIn img,
#ROImg_Icon_Facbook img {
  width: 40px;
  height: 40px;
}

#ROImg_Icon_LinkedIn span,
#ROImg_Icon_Facbook span {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

#ROImg_Icon_LinkedIn:hover span,
#ROImg_Icon_Facbook:hover span {
  opacity: 1;
}

/* Footer Contact Info (col-3) */
#wb_Ftr_Txt_D6Phone,
#wb_Ftr_Txt_D6Email,
#wb_Ftr_Txt_D6Address {
  margin-bottom: var(--space-md);
}

#wb_Ftr_Txt_D6Phone h3,
#wb_Ftr_Txt_D6Email h3,
#wb_Ftr_Txt_D6Address h3 {
  margin-bottom: 4px;
}

#wb_Ftr_Txt_D6Phone br,
#wb_Ftr_Txt_D6Email br,
#wb_Ftr_Txt_D6Address br {
  display: none;
}

/* Footer Section Headers */
#wb_Ftr_Txt_Solutions,
#wb_Ftr_Txt_Resources,
#wb_Ftr_Txt_Company,
#wb_Ftr_Txt_Socials {
  margin-bottom: var(--space-xs);
}

/* Footer Logo */
#wb_Img_LogoFtr-D6-Labs {
  margin-top: var(--space-md);
}

#Img_LogoFtr-D6-Labs {
  max-width: 200px;
  height: auto;
}

/* Legal Links */
#wb_Breadcrumb_Lgl-Links {
  width: 100%;
  text-align: center;
  margin-top: var(--space-lg);
  border-top: 1px solid var(--d6-grey-border);
  padding-top: var(--space-md);
}

#Breadcrumb_Lgl-Links {
  list-style: none;
  padding: 0;
  margin: 0 auto var(--space-sm);
  display: inline-flex;
  gap: var(--space-lg);
  justify-content: center;
}

#Breadcrumb_Lgl-Links a {
  color: var(--d6-grey-dark);
  font-size: var(--text-sm);
  text-decoration: none;
}

#Breadcrumb_Lgl-Links a:hover {
  color: var(--d6-red);
}

/* Copyright */
#Txt_D6_Legal_Statement {
  text-align: center;
  font-size: var(--text-sm);
  color: var(--d6-grey-medium);
  padding: var(--space-md) 0;
}

/* ==========================================================================
   11. Content Sections
   ========================================================================== */

/* Two Column Info Sections */
.d6-info-section {
  padding: var(--space-2xl) 0;
}

.d6-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
  align-items: center;
}

.d6-info-grid.reverse {
  direction: rtl;
}

.d6-info-grid.reverse > * {
  direction: ltr;
}

.d6-info-image img {
  width: 100%;
  border-radius: var(--radius-md);
}

.d6-info-content h3 {
  color: var(--d6-red);
  font-size: var(--text-xl);
  margin-bottom: var(--space-sm);
}

.d6-info-content h2 {
  font-size: var(--text-4xl);
  margin-bottom: var(--space-md);
}

.d6-info-content p {
  font-size: var(--text-lg);
  line-height: 1.7;
  margin-bottom: var(--space-md);
}

/* Section Headers */
.d6-section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto var(--space-xl);
  padding: 0 var(--space-md);
}

.d6-section-header h2 {
  font-size: var(--text-4xl);
  margin-bottom: var(--space-md);
}

.d6-section-header p {
  font-size: var(--text-lg);
  color: var(--d6-grey-dark);
}

/* Testimonial/Quote Section */
.d6-testimonial {
  background: var(--d6-grey-light);
  padding: var(--space-xl);
  border-radius: var(--radius-md);
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.d6-testimonial-quote {
  font-size: var(--text-xl);
  font-style: italic;
  margin-bottom: var(--space-md);
  line-height: 1.6;
}

.d6-testimonial-author {
  font-weight: 700;
  color: var(--d6-red);
}

.d6-testimonial-role {
  font-size: var(--text-sm);
  color: var(--d6-grey-medium);
}

/* CTA Banner */
.d6-cta-banner {
  background: linear-gradient(135deg, var(--d6-red) 0%, #c92d1d 100%);
  color: var(--d6-white);
  padding: var(--space-2xl) var(--space-md);
  text-align: center;
}

.d6-cta-banner h2 {
  font-size: var(--text-4xl);
  margin-bottom: var(--space-sm);
}

.d6-cta-banner p {
  font-size: var(--text-lg);
  margin-bottom: var(--space-lg);
  opacity: 0.9;
}

/* ==========================================================================
   11b. CSS-Only Carousel
   ========================================================================== */

.d6-carousel {
  position: relative;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.d6-carousel-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  gap: var(--space-md);
  padding-bottom: var(--space-md);
  scrollbar-width: none;
}

.d6-carousel-track::-webkit-scrollbar {
  display: none;
}

.d6-carousel-slide {
  flex: 0 0 100%;
  scroll-snap-align: center;
  border-radius: var(--radius-md);
  overflow: hidden;
  text-align: center;
  background: var(--d6-white);
}

.d6-carousel-slide img {
  width: 100%;
  max-height: 500px;
  object-fit: contain;
}

.d6-carousel-slide figcaption {
  padding: var(--space-sm) var(--space-md);
  font-size: var(--text-sm);
  color: var(--d6-grey-dark);
  font-weight: 600;
}

.d6-carousel-nav {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.d6-carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--d6-grey-medium);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background var(--transition-fast);
}

.d6-carousel-dot:hover,
.d6-carousel-dot.active {
  background: var(--d6-red);
}

@media (max-width: 768px) {
  .d6-carousel-slide img {
    max-height: 300px;
  }
}

/* ==========================================================================
   11c. WhyD6Labs Differentiator Graphics
   ========================================================================== */

.d6-graphic-container {
  position: relative;
  padding: 60px 40px;
  border-radius: var(--radius-md);
  overflow: hidden;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Security Shield Graphic */
.d6-graphic-security {
  background: linear-gradient(135deg, var(--d6-grey-light) 0%, #d0d8d9 100%);
}

.d6-graphic-security .d6-shield {
  position: relative;
  width: 140px;
  height: 160px;
  background: linear-gradient(180deg, var(--d6-red) 0%, #c92d1d 100%);
  clip-path: polygon(50% 0%, 100% 25%, 100% 65%, 50% 100%, 0% 65%, 0% 25%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.d6-graphic-security .d6-shield-inner {
  width: 110px;
  height: 126px;
  background: var(--d6-white);
  clip-path: polygon(50% 0%, 100% 25%, 100% 65%, 50% 100%, 0% 65%, 0% 25%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.d6-graphic-security .d6-shield-inner i {
  font-size: 48px;
  color: var(--d6-red);
}

.d6-graphic-security .d6-encrypt-layer {
  position: absolute;
  border: 2px dashed rgba(233, 55, 37, 0.3);
  border-radius: 50%;
}

.d6-graphic-security .d6-encrypt-layer:nth-child(1) {
  width: 200px;
  height: 200px;
  animation: d6-rotate 20s linear infinite;
}

.d6-graphic-security .d6-encrypt-layer:nth-child(2) {
  width: 260px;
  height: 260px;
  animation: d6-rotate 30s linear infinite reverse;
}

@keyframes d6-rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Hot-Swap Cloud Graphic */
.d6-graphic-hotswap {
  background: linear-gradient(135deg, var(--d6-white) 0%, var(--d6-grey-light) 100%);
}

.d6-graphic-hotswap .d6-cloud {
  position: relative;
  width: 180px;
  height: 100px;
  background: var(--d6-red);
  border-radius: 100px;
  opacity: 0.9;
}

.d6-graphic-hotswap .d6-cloud::before {
  content: '';
  position: absolute;
  width: 80px;
  height: 80px;
  background: var(--d6-red);
  border-radius: 50%;
  top: -40px;
  left: 30px;
}

.d6-graphic-hotswap .d6-cloud::after {
  content: '';
  position: absolute;
  width: 60px;
  height: 60px;
  background: var(--d6-red);
  border-radius: 50%;
  top: -25px;
  right: 30px;
}

.d6-graphic-hotswap .d6-swap-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
}

.d6-graphic-hotswap .d6-swap-icon i {
  font-size: 48px;
  color: var(--d6-white);
  animation: d6-spin 3s ease-in-out infinite;
}

@keyframes d6-spin {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(360deg); }
}

/* Lower Cost Chart Graphic */
.d6-graphic-cost {
  background: linear-gradient(135deg, var(--d6-grey-light) 0%, #d0d8d9 100%);
}

.d6-graphic-cost .d6-chart {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  height: 150px;
  padding: 0 20px;
}

.d6-graphic-cost .d6-bar {
  width: 40px;
  border-radius: 4px 4px 0 0;
}

.d6-graphic-cost .d6-bar-traditional {
  background: var(--d6-grey-medium);
}

.d6-graphic-cost .d6-bar-d6 {
  background: var(--d6-red);
}

.d6-graphic-cost .d6-chart-labels {
  display: flex;
  gap: 12px;
  margin-top: var(--space-sm);
  font-size: var(--text-xs);
  color: var(--d6-grey-dark);
  font-weight: 600;
}

.d6-graphic-cost .d6-chart-labels span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.d6-graphic-cost .d6-chart-labels .d6-legend-swatch {
  width: 12px;
  height: 12px;
  border-radius: 2px;
  display: inline-block;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .d6-graphic-security .d6-encrypt-layer,
  .d6-graphic-hotswap .d6-swap-icon i {
    animation: none;
  }
}

/* ==========================================================================
   11d. Hero Pattern Overlay (Case Studies)
   ========================================================================== */

.d6-hero-pattern {
  position: relative;
  overflow: hidden;
}

.d6-hero-pattern::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 80%, rgba(255,255,255,0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255,255,255,0.08) 0%, transparent 50%);
  pointer-events: none;
  z-index: 1;
}

.d6-hero-pattern .d6-hero-content {
  position: relative;
  z-index: 2;
}

.d6-hero-accent {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: linear-gradient(90deg, var(--d6-white) 0%, transparent 50%, var(--d6-white) 100%);
  opacity: 0.3;
}

/* ==========================================================================
   12. Utilities (spacing, colors, visibility)
   ========================================================================== */

/* Text Alignment */
.d6-text-center { text-align: center; }
.d6-text-left { text-align: left; }
.d6-text-right { text-align: right; }

/* Margin Utilities */
.d6-mt-0 { margin-top: 0; }
.d6-mt-1 { margin-top: var(--space-xs); }
.d6-mt-2 { margin-top: var(--space-sm); }
.d6-mt-3 { margin-top: var(--space-md); }
.d6-mt-4 { margin-top: var(--space-lg); }
.d6-mt-5 { margin-top: var(--space-xl); }

.d6-mb-0 { margin-bottom: 0; }
.d6-mb-1 { margin-bottom: var(--space-xs); }
.d6-mb-2 { margin-bottom: var(--space-sm); }
.d6-mb-3 { margin-bottom: var(--space-md); }
.d6-mb-4 { margin-bottom: var(--space-lg); }
.d6-mb-5 { margin-bottom: var(--space-xl); }

/* Padding Utilities */
.d6-p-0 { padding: 0; }
.d6-p-1 { padding: var(--space-xs); }
.d6-p-2 { padding: var(--space-sm); }
.d6-p-3 { padding: var(--space-md); }
.d6-p-4 { padding: var(--space-lg); }
.d6-p-5 { padding: var(--space-xl); }

/* Visibility */
.d6-hidden { display: none !important; }
.d6-visible { display: block !important; }

/* Color Classes */
.color-white { color: var(--d6-white); }
.color-red { color: var(--d6-red); }
.color-black { color: var(--d6-black); }
.color-black70 { color: #393939; }

/* Letter Spacing */
.ts-ext05 { letter-spacing: 0.05rem; }
.ts-ext1 { letter-spacing: 0.1rem; }
.ts-ext15 { letter-spacing: 0.15rem; }

/* ==========================================================================
   13. Responsive Breakpoints
   ========================================================================== */

/* Tablet */
@media (max-width: 960px) {
  .Cntnt_Hero_HmPg {
    padding: 356px 0 var(--space-lg) 0;
  }

  #LytGrd_MadeUSA > .col-1,
  #LytGrd_MadeUSA > .col-2 {
    flex: 0 0 100%;
    max-width: 100%;
    text-align: center;
    margin-bottom: var(--space-md);
  }

  .d6-info-grid {
    grid-template-columns: 1fr;
  }

  .d6-info-grid.reverse {
    direction: ltr;
  }
}

/* Mobile Landscape */
@media (max-width: 768px) {
  .Cntnt_Hdr_Title_RED,
  .Cntnt_Hdr_Title_GREY {
    padding: 80px 0;
  }

  #ResponsiveMenu1-title {
    display: block;
  }

  #ResponsiveMenu1 {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--d6-white);
    box-shadow: var(--shadow-card);
    width: 100%;
    max-width: 300px;
  }

  #ResponsiveMenu1-submenu:checked ~ #ResponsiveMenu1 {
    display: block;
  }

  #ResponsiveMenu1 li {
    display: block;
  }

  #ResponsiveMenu1 li ul {
    position: static;
    box-shadow: none;
    display: none;
    background: var(--d6-grey-light);
  }

  /* Third-level submenu on mobile */
  #ResponsiveMenu1 li ul li.has-submenu > ul {
    position: static;
    left: auto;
    box-shadow: none;
    background: #e8e8e8;
  }

  #ResponsiveMenu1 li ul li.has-submenu > ul a {
    padding-left: 40px;
  }

  #ResponsiveMenu1 input[type="checkbox"]:checked ~ ul {
    display: block;
  }

  .toggle {
    display: block;
  }

  /* Show arrow-down instead of arrow-right on mobile */
  .has-submenu .arrow-right {
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid currentColor;
    border-bottom: none;
  }

  #LytGrd_Hdr_Nav > .col-1 {
    flex-basis: 50%;
    max-width: 50%;
  }

  #LytGrd_Hdr_Nav > .col-2 {
    flex-basis: 50%;
    max-width: 50%;
  }

  .d6-hero h1 {
    font-size: 32px;
  }

  .d6-hero-features {
    flex-direction: column;
    gap: var(--space-sm);
  }
}

/* Mobile Portrait */
@media (max-width: 640px) {
  .Cntnt_Hero_HmPg {
    padding: 248px 0 var(--space-lg) 0;
  }

  .Cntnt_Hero_IndPg_WaterIoT,
  .Cntnt_Hero_IndPg_WasteWaterIoT,
  .Cntnt_Hero_Company_Worker,
  .Cntnt_Hero_Company_Careers {
    background-position: bottom center;
  }

  .Spec_Tbl {
    border: 1px solid var(--d6-grey-medium);
    margin: var(--space-md) var(--space-xs);
    width: 95% !important;
  }

  #LytGrd_Hdr_Contact > .col-1,
  #LytGrd_Hdr_Nav > .col-1,
  #LytGrd_Hdr_Nav > .col-2 {
    flex-basis: 100% !important;
    max-width: 100% !important;
  }

  #LytGrd_Footer_Links .col-1,
  #LytGrd_Footer_Links .col-2,
  #LytGrd_Footer_Links .col-3 {
    flex: 0 0 100%;
    text-align: center;
  }

  .d6-modal-content {
    padding: var(--space-lg);
  }

  .d6-form-row {
    flex-direction: column;
    gap: 0;
  }

  .d6-btn-group {
    flex-direction: column;
    width: 100%;
  }

  .d6-btn-primary,
  .d6-btn-secondary,
  .d6-btn-white,
  .d6-btn-outline {
    width: 100%;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .Cntnt_Hero_HmPg {
    padding: 200px 0 var(--space-lg) 0;
  }

  .Cntnt_Hdr_Title_RED,
  .Cntnt_Hdr_Title_GREY {
    padding: 40px 0;
  }

  .h1RobotoBold {
    font-size: 32px;
  }

  .d6-section-header h2 {
    font-size: var(--text-3xl);
  }
}

/* ==========================================================================
   14. Legacy Layout Grid Styles (Page-specific layouts)
   ========================================================================== */

/* Generic Section Layout */
section[id^="LytGrd_"] {
  box-sizing: border-box;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  padding: 0;
  margin: 0 auto;
  max-width: var(--max-width);
}

section[id^="LytGrd_"] > .col-1,
section[id^="LytGrd_"] > .col-2 {
  box-sizing: border-box;
  min-height: 1px;
  padding: 0 var(--space-sm);
  position: relative;
  flex: 1 1 50%;
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  align-items: center;
}

@media (max-width: 768px) {
  section[id^="LytGrd_"] > .col-1,
  section[id^="LytGrd_"] > .col-2 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

/* Video Containers */
#wb_MdaPlyr_Who-We-Are_DESKTOP {
  display: block;
}

#wb_MdaPlyr_Who-We-Are_MOBILE {
  display: none;
}

#MdaPlyr_Who-We-Are_DESKTOP,
#MdaPlyr_Who-We-Are_MOBILE {
  width: 100%;
  height: auto;
}

@media (max-width: 768px) {
  #wb_MdaPlyr_Who-We-Are_DESKTOP {
    display: none;
  }

  #wb_MdaPlyr_Who-We-Are_MOBILE {
    display: block;
  }
}

/* Image wrapper styles */
div[id^="wb_Img_"] {
  width: 100%;
  text-align: center;
}

div[id^="wb_Img_"] img {
  max-width: 100%;
  height: auto;
}

/* Heading wrappers */
div[id^="wb_Hdng_"] {
  width: 100%;
  margin-bottom: var(--space-md);
}

/* Industries Grid */
#LytGrd_Ind_WaterIoT {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
  width: 100%;
  padding: var(--space-md);
}

#LytGrd_Ind_WaterIoT > .col-1 {
  text-align: center;
}

#LytGrd_Ind_WaterIoT img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  transition: transform var(--transition-base);
}

#LytGrd_Ind_WaterIoT img:hover {
  transform: scale(1.02);
}

/* ==========================================================================
   15. Print Styles
   ========================================================================== */

@media print {
  .d6-modal,
  #wb_LytGrd_Hdr_Contact,
  #ResponsiveMenu1-title,
  .d6-btn-primary,
  .d6-btn-secondary {
    display: none !important;
  }

  body {
    font-size: 12pt;
    color: #000;
  }

  a {
    text-decoration: underline;
  }
}
