/*
Theme Name: Divi Child
Theme URI: http://example.com
Description: Child theme for Divi
Author: Harrison Turner
Template: Divi
Version: 1.0
*/

/* =========================================================
   Henrich / Predision Child Theme CSS
   Cleaned structure:
   1. Imports + design tokens
   2. Base typography
   3. Reusable utilities
   4. Divi-safe button classes
   5. Header
   6. Home page sections
   7. Product showcase
   8. Product sidebar
   9. Video Modules
   10. Featured slider
   11. Footer
   12. Responsive adjustments
========================================================= */


/* =========================================================
   1. Imports + Design Tokens
========================================================= */

/* =========================================================
   Alibaba PuHuiTi Font Family
========================================================= */

@font-face {
  font-family: 'Alibaba PuHuiTi';
  src: url('/wp-content/themes/Divi/fonts/Alibaba_PuHuiTi_2.0_35_Thin_35_Thin.ttf') format('truetype');
  font-weight: 100;
  font-style: normal;
}

@font-face {
  font-family: 'Alibaba PuHuiTi';
  src: url('/wp-content/themes/Divi/fonts/Alibaba_PuHuiTi_2.0_45_Light_45_Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: 'Alibaba PuHuiTi';
  src: url('/wp-content/themes/Divi/fonts/Alibaba_PuHuiTi_2.0_55_Regular_55_Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Alibaba PuHuiTi';
  src: url('/wp-content/themes/Divi/fonts/Alibaba_PuHuiTi_2.0_65_Medium_65_Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: 'Alibaba PuHuiTi';
  src: url('/wp-content/themes/Divi/fonts/Alibaba_PuHuiTi_2.0_75_SemiBold_75_SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
}

@font-face {
  font-family: 'Alibaba PuHuiTi';
  src: url('/wp-content/themes/Divi/fonts/Alibaba_PuHuiTi_2.0_85_Bold_85_Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: 'Alibaba PuHuiTi';
  src: url('/wp-content/themes/Divi/fonts/Alibaba_PuHuiTi_2.0_95_ExtraBold_95_ExtraBold.ttf') format('truetype');
  font-weight: 800;
  font-style: normal;
}

@font-face {
  font-family: 'Alibaba PuHuiTi';
  src: url('/wp-content/themes/Divi/fonts/Alibaba_PuHuiTi_2.0_105_Heavy_105_Heavy.ttf') format('truetype');
  font-weight: 900;
  font-style: normal;
}

:root {
  --font-primary: 'Alibaba PuHuiTi', sans-serif;

  --he-blue-dark: #003D88;
  --he-blue: #155791;
  --he-orange: #FF642A;
  --he-orange-muted: #CB6430;
  --he-black: #000000;
  --he-white: #ffffff;
  --he-light: #F5F7FA;
  --he-border: #D9DDE3;

  --color-text-dark: #111111;
  --color-text-muted: #555555;
  --color-disabled: #8A8A8A;

  --h1-size: 56px;
  --h2-size: 40px;
  --h3-size: 32px;
  --h4-size: 24px;

  --body-large-size: 18px;
  --body-size: 16px;
  --body-small-size: 14px;
  --button-size: 15px;
  --label-size: 13px;

  --line-tight: 1.1;
  --line-heading: 1.2;
  --line-body: 1.5;
}


/* =========================================================
   2. Base Typography
========================================================= */

body,
input,
textarea,
select,
button,
.et_pb_module,
.et_pb_text,
.et_pb_button {
  font-family: var(--font-primary) !important;
}

body {
  font-size: var(--body-size);
  font-weight: 400;
  line-height: var(--line-body);
  color: var(--color-text-dark);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary) !important;
}

h1,
.henrich-h1 {
  font-size: var(--h1-size);
  font-weight: 700;
  line-height: var(--line-tight);
  color: var(--color-text-dark);
}

h2,
.henrich-h2 {
  font-size: var(--h2-size);
  font-weight: 600;
  line-height: var(--line-heading);
  color: var(--color-text-dark);
}

h3,
.henrich-h3 {
  font-size: var(--h3-size);
  font-weight: 600;
  line-height: var(--line-heading);
  color: var(--color-text-dark);
}

h4,
.henrich-h4 {
  font-size: var(--h4-size);
  font-weight: 500;
  line-height: var(--line-heading);
  color: var(--color-text-dark);
}

.body-large,
.henrich-body-large {
  font-size: var(--body-large-size);
  font-weight: 400;
  line-height: var(--line-body);
}

.body-regular,
.henrich-body {
  font-size: var(--body-size);
  font-weight: 400;
  line-height: var(--line-body);
}

.body-small,
.henrich-body-small {
  font-size: var(--body-small-size);
  font-weight: 400;
  line-height: 1.45;
}

.label,
.henrich-label,
.eyebrow {
  font-size: var(--label-size);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--he-orange);
}


/* =========================================================
   3. Reusable Utilities
========================================================= */

.home-section {
  padding: 60px 0;
}

.home-section-tight {
  padding: 35px 0;
}

.henrich-divider {
  border-top: 1px solid var(--he-orange);
  margin: 32px 0;
}

.custom-divider {
  margin: 0 !important;
  padding: 0 !important;
  height: 1px !important;
}

.custom-divider .et_pb_divider_internal {
  padding: 0 !important;
}

.custom-divider::before,
.custom-divider:before {
  margin: 0 !important;
}

.divider-heading,
.divider-heading.et_pb_module {
  margin-top: 0 !important;
  padding-top: 0 !important;
  margin-bottom: 0 !important;
}

.divider-heading h1,
.divider-heading h2,
.divider-heading h3,
.divider-heading p {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.breadcrumbs {
  font-size: 13px;
  color: #777777;
  margin-bottom: 10px;
}

.breadcrumbs a {
  color: #777777;
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--he-orange);
}


/* =========================================================
   4. Divi-Safe Button Classes
   These only apply when the class is added manually.
========================================================= */

.he-button-blue,
.he-button-blue.et_pb_button {
  display: inline-block !important;
  background-color: var(--he-blue-dark) !important;
  color: var(--he-white) !important;
  font-weight: 700 !important;
  font-size: 16px !important;
  padding: 14px 28px !important;
  border-radius: 3px !important;
  border: none !important;
  text-align: center !important;
  text-decoration: none !important;
  line-height: 1.2em !important;
  min-width: 160px !important;
  transition: background-color 0.25s ease, color 0.25s ease !important;
  transform: none !important;
}

.he-button-blue:hover,
.he-button-blue.et_pb_button:hover {
  background-color: var(--he-orange) !important;
  color: var(--he-white) !important;
  padding: 14px 28px !important;
  transform: none !important;
}

.he-button-footer,
.he-button-footer.et_pb_button,
.site-footer-custom .he-button-footer {
  display: inline-block !important;
  background: transparent !important;
  color: var(--he-white) !important;
  border: 2px solid var(--he-white) !important;
  border-radius: 5px !important;
  font-weight: 700 !important;
  font-size: 16px !important;
  padding: 12px 24px !important;
  min-width: 160px !important;
  text-align: center !important;
  text-decoration: none !important;
  line-height: 1.2em !important;
  transition: background-color 0.25s ease, border-color 0.25s ease !important;
  transform: none !important;
}

.he-button-footer:hover,
.he-button-footer.et_pb_button:hover,
.site-footer-custom .he-button-footer:hover {
  background: var(--he-orange) !important;
  border-color: var(--he-orange) !important;
  color: var(--he-white) !important;
  padding: 12px 24px !important;
  transform: none !important;
}

.he-button-blue:before,
.he-button-blue:after,
.he-button-footer:before,
.he-button-footer:after {
  display: none !important;
}

/* =========================================================
   5. Header - Fresh Build
========================================================= */

/* Overall header */
.henrich-header.et_pb_section {
  padding: 18px 2em 14px !important;
  height: auto !important;
  overflow: visible !important;
  z-index: 9999 !important;
}

/* Shared row width */
.henrich-header-top.et_pb_row,
.henrich-header-nav.et_pb_row {
  width: 100% !important;
  max-width: 1680px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding: 0 !important;
}

/* Top row */
.henrich-header-top.et_pb_row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 24px !important;
  width: 100% !important;
  max-width: 1680px !important;
  margin: 0 auto 8px !important;
}

.henrich-search-col {
  flex: 0 0 360px !important;
  width: 360px !important;
  max-width: 360px !important;
}

.henrich-utility-col {
  flex: 0 0 max-content !important;
  width: max-content !important;
  min-width: max-content !important;
}

.henrich-header-top.et_pb_row,
.henrich-header-nav.et_pb_row {
  max-width: 1680px !important;
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.henrich-header-top.et_pb_row {
  justify-content: space-between !important;
}

.henrich-header-top .henrich-utility-col:last-child {
  margin-left: 0 !important;
}

.henrich-utility-col {
  flex: 0 0 max-content !important;
  width: max-content !important;
  min-width: max-content !important;
}

.henrich-utility-col .et_pb_blurb_content {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 8px !important;
  width: max-content !important;
  max-width: none !important;
  white-space: nowrap !important;
}

.henrich-search-col {
  flex: 0 0 360px !important;
  width: 360px !important;
  max-width: 360px !important;
}

/* Logo */
.henrich-logo-col {
  flex: 0 0 300px !important;
  width: 300px !important;
}

.henrich-logo-col img {
  max-width: 285px !important;
  height: auto !important;
}

/* Search */
.henrich-search-col {
  flex: 0 1 360px !important;
  max-width: 360px !important;
}

.henrich-search-col .et_pb_search {
  margin-bottom: 0 !important;
}

/* Top utility items */
.henrich-utility-col {
  flex: 0 0 auto !important;
  width: auto !important;
}

.henrich-utility-col .et_pb_blurb,
.henrich-utility-col .et_pb_blurb_content {
  display: flex !important;
  align-items: center !important;
  width: auto !important;
  max-width: none !important;
  margin-bottom: 0 !important;
}

.henrich-utility-col .et_pb_main_blurb_image {
  margin: 0 8px 0 0 !important;
  width: auto !important;
}

.henrich-utility-col .et_pb_module_header {
  padding: 0 !important;
  white-space: nowrap !important;
  font-size: 18px !important;
}

/* Bottom row */
.henrich-header-nav.et_pb_row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 32px !important;
}

/* Main nav */
.henrich-main-menu {
  flex: 0 0 auto !important;
  width: auto !important;
}

.henrich-main-menu .et_pb_menu__wrap,
.henrich-main-menu .et-menu {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  overflow: visible !important;
}

.henrich-main-menu .et-menu > li {
  margin-right: 34px !important;
}

.henrich-main-menu .et-menu > li:last-child {
  margin-right: 0 !important;
}

.henrich-main-menu .et-menu > li > a {
  padding: 0 !important;
  font-size: 18px !important;
  line-height: 1.2em !important;
}

/* Phone + notifications */
.henrich-nav-phone,
.henrich-nav-notifications {
  flex: 0 0 auto !important;
  width: auto !important;
}

.henrich-nav-phone .et_pb_blurb,
.henrich-nav-notifications .et_pb_blurb,
.henrich-nav-phone .et_pb_blurb_content,
.henrich-nav-notifications .et_pb_blurb_content {
  display: flex !important;
  align-items: center !important;
  width: auto !important;
  max-width: none !important;
  margin-bottom: 0 !important;
}

.henrich-nav-phone .et_pb_main_blurb_image,
.henrich-nav-notifications .et_pb_main_blurb_image {
  margin: 0 8px 0 0 !important;
  width: auto !important;
}

.henrich-nav-phone .et_pb_module_header,
.henrich-nav-notifications .et_pb_module_header {
  padding: 0 !important;
  white-space: nowrap !important;
  font-size: 18px !important;
}

/* Dropdowns */
.henrich-header,
.henrich-header .et_pb_row,
.henrich-header .et_pb_column,
.henrich-main-menu,
.henrich-main-menu .et_pb_menu,
.henrich-main-menu .et_pb_menu_inner_container,
.henrich-main-menu .et_pb_menu__wrap,
.henrich-main-menu .et-menu-nav,
.henrich-main-menu .et-menu {
  overflow: visible !important;
}

.henrich-main-menu .sub-menu {
  z-index: 99999 !important;
}

/* Fix blurb icon + text stacking */
.henrich-utility-col,
.henrich-nav-phone,
.henrich-nav-notifications {
  min-width: max-content !important;
  width: auto !important;
  flex: 0 0 auto !important;
}

.henrich-utility-col .et_pb_blurb_content,
.henrich-nav-phone .et_pb_blurb_content,
.henrich-nav-notifications .et_pb_blurb_content {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 8px !important;
  width: max-content !important;
  max-width: none !important;
  white-space: nowrap !important;
}

.henrich-utility-col .et_pb_main_blurb_image,
.henrich-nav-phone .et_pb_main_blurb_image,
.henrich-nav-notifications .et_pb_main_blurb_image {
  display: inline-flex !important;
  margin: 0 !important;
  width: auto !important;
  min-width: 18px !important;
  flex: 0 0 auto !important;
}

.henrich-utility-col .et_pb_blurb_container,
.henrich-nav-phone .et_pb_blurb_container,
.henrich-nav-notifications .et_pb_blurb_container {
  display: inline-flex !important;
  width: auto !important;
  flex: 0 0 auto !important;
}

.henrich-utility-col .et_pb_module_header,
.henrich-nav-phone .et_pb_module_header,
.henrich-nav-notifications .et_pb_module_header {
  white-space: nowrap !important;
  line-height: 1.2em !important;
}

/* =========================================================
   6. Home Page Sections
========================================================= */

.home-hero {
  background: #f3f3f3;
  border-bottom: 4px solid var(--he-blue-dark);
}

.home-hero h1 {
  color: var(--he-black);
  font-weight: 800;
  line-height: 1.05;
  max-width: 520px;
}

.home-hero p {
  color: var(--he-black);
  max-width: 560px;
  font-size: 17px;
}

.home-category-nav {
  background: var(--he-white);
  border-bottom: 1px solid var(--he-border);
}

.home-category-nav a {
  color: var(--he-black);
  font-weight: 700;
  text-decoration: none;
}

.home-category-nav a:hover {
  color: var(--he-orange);
}

.home-category-nav .et_pb_column:not(:last-child) {
  border-right: 2px solid var(--he-orange);
}

.home-solution-card {
  background: var(--he-white);
  border: 1px solid var(--he-border);
  box-shadow: 0 8px 22px rgba(0,0,0,0.08);
  padding: 32px;
}

.home-solution-card h2,
.home-solution-card h3 {
  color: var(--he-blue-dark);
  font-weight: 800;
}

.home-solution-card ul {
  margin-bottom: 24px;
}

.home-solution-card li {
  margin-bottom: 4px;
}

.home-button,
.home-solution-card .et_pb_button {
  background: var(--he-black);
  color: var(--he-white) !important;
  border: none;
  padding: 10px 22px;
  font-weight: 700;
}

.home-button:hover,
.home-solution-card .et_pb_button:hover {
  background: var(--he-orange);
  color: var(--he-white) !important;
}

.home-orange-divider {
  border-left: 2px solid var(--he-orange);
  min-height: 100%;
}

.why-henrich-title {
  color: var(--he-blue-dark);
  border-bottom: 3px solid var(--he-orange);
  display: inline-block;
  padding-bottom: 4px;
  font-weight: 800;
}

.why-card {
  background: var(--he-white);
  border: 1px solid var(--he-border);
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
  padding: 22px 12px;
  text-align: center;
}

.why-card h3,
.why-card p {
  color: var(--he-blue-dark);
  font-weight: 700;
}

.home-intro {
  background: linear-gradient(#ffffff, #dce8f8);
  text-align: center;
}

.home-intro h2 {
  color: var(--he-black);
  font-weight: 800;
}

.home-intro p {
  color: var(--he-black);
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
}

.feature-card {
  background: var(--he-white);
  border: 1px solid var(--he-border);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
  overflow: hidden;
}

.feature-card h3 {
  color: var(--he-black);
  font-weight: 800;
  text-align: center;
  margin-top: 14px;
}

.feature-card p {
  color: var(--he-black);
  padding: 0 18px 18px;
  text-align: center;
}

.feature-card .et_pb_button {
  display: block;
  background: var(--he-black);
  color: var(--he-white) !important;
  border: none;
  text-align: center;
  width: 100%;
  border-radius: 0;
}

.feature-card .et_pb_button:hover {
  background: var(--he-orange);
}


/* =========================================================
   7. Product Showcase
========================================================= */

.product-showcase {
  width: 100%;
  background: var(--he-light);
  padding: 0 0 48px;
  overflow: hidden;
  min-height: 650px;
}

.product-showcase .product-tabs {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  background: var(--he-white) !important;
  padding: 12px 0 !important;
  width: 100%;
}

.product-showcase .product-tab {
  appearance: none !important;
  -webkit-appearance: none !important;
  background: transparent !important;
  border: none !important;
  border-right: 2px solid var(--he-orange) !important;
  padding: 10px 0 !important;
  font-weight: 600 !important;
  font-size: 20px !important;
  color: var(--he-black) !important;
  cursor: pointer !important;
  text-align: center !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  text-decoration: none !important;
}

.product-showcase .product-tab:last-child {
  border-right: none !important;
}

.product-showcase .product-tab:hover,
.product-showcase .product-tab.active {
  color: var(--he-blue-dark) !important;
  text-decoration: none !important;
}

.product-showcase .product-panel {
  display: none;
  grid-template-columns: minmax(0, 1fr) 2px minmax(0, 1fr);
  gap: 48px;
  max-width: 1120px;
  margin: 42px auto 0;
  align-items: stretch;
  min-height: 560px;
  opacity: 0;
  visibility: hidden;
  height: 0;
  overflow: hidden;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.6s ease;
}

.product-showcase .product-panel.active {
  display: grid;
  opacity: 1;
  visibility: visible;
  height: auto;
  overflow: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.product-info-card {
  background: var(--he-white);
  padding: 34px 38px;
  box-shadow: 0 8px 22px rgba(0,0,0,0.12);
  max-height: none;
  overflow-y: visible;
}

.product-info-card h2 {
  color: var(--he-black);
  font-size: 26px;
  line-height: 1.2;
  margin-bottom: 10px;
  border-bottom: 2px solid var(--he-orange);
  padding-bottom: 8px;
}

.product-info-card p {
  font-size: 18px;
  line-height: 1.45;
  margin-bottom: 20px;
}

.product-info-card h4 {
  color: var(--he-black);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.2;
  margin: 16px 0 2px;
}

.product-info-card ul {
  margin: 0 0 10px 18px;
  padding-left: 18px;
}

.product-info-card li {
  font-size: 18px;
  line-height: 1.3;
  margin-bottom: 2px;
}

.product-button {
  display: inline-block;
  margin-top: 18px;
  background: var(--he-black);
  color: var(--he-white) !important;
  padding: 10px 22px;
  font-weight: 700;
  text-decoration: none;
}

.product-button:hover {
  background: var(--he-orange);
}

.product-divider {
  background: var(--he-orange);
  width: 2px;
}

.product-image-card {
  height: 750px;
  overflow: hidden;
}

.product-image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}


/* =========================================================
   8. Product Sidebar
========================================================= */

.product-sidebar .et_pb_menu__menu,
.product-sidebar .et-menu-nav,
.product-sidebar .et-menu {
  display: block !important;
  width: 100% !important;
}

.product-sidebar .et-menu {
  flex-direction: column !important;
  align-items: flex-start !important;
}

.product-sidebar .et-menu > li {
  display: block !important;
  width: 100% !important;
  margin: 0 0 12px 0 !important;
  padding: 0 !important;
}

.product-sidebar .et-menu > li > a {
  display: block !important;
  width: 100% !important;
}

.product-sidebar .et-menu .sub-menu {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: relative !important;
  top: auto !important;
  left: auto !important;
  width: 100% !important;
  box-shadow: none !important;
  border-top: none !important;
  padding: 6px 0 0 14px !important;
  column-count: 1 !important;
}

.product-sidebar .sub-menu li {
  display: block !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 0 4px 0 !important;
}

.product-sidebar .sub-menu li a {
  display: block !important;
  width: 100% !important;
  font-size: 14px;
  padding: 0 !important;
  line-height: 1.3em;
}

.product-sidebar .menu-item-has-children > a {
  font-weight: 700 !important;
  color: var(--he-black) !important;
  margin-bottom: 6px;
}

.product-sidebar .et-menu a,
.product-sidebar a {
  color: #333333 !important;
  text-decoration: none !important;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.product-sidebar .et-menu a:hover,
.product-sidebar a:hover {
  color: var(--he-orange) !important;
  padding-left: 6px !important;
}

.product-sidebar .menu-item.active > a,
.product-sidebar .current-menu-item > a {
  color: var(--he-orange) !important;
  font-weight: 600 !important;
  border-left: 3px solid var(--he-orange) !important;
  padding-left: 8px !important;
}

/* =========================================================
   9. Video Modules
========================================================= */

.henrich-video-grid .et_pb_video,
.henrich-video-grid .et_pb_video_box {
  margin-bottom: 0 !important;
}

.henrich-video-grid .et_pb_module {
  margin-bottom: 0 !important;
}

.henrich-video-grid iframe,
.henrich-video-grid .et_pb_video iframe {
  display: block;
}

/* White content box under videos */
.henrich-box {
  background: #ffffff;
  padding: 1.5em;
  min-height: 180px;

  display: flex;
  flex-direction: column;
  justify-content: flex-start;

  margin-top: 0 !important;
}

/* Remove default bottom spacing inside box */
.henrich-box .et_pb_module:last-child {
  margin-bottom: 0 !important;
}

/* =========================================================
   Video Grid - Remove Gap Between Video and White Box
========================================================= */

.henrich-video-grid .et_pb_column {
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  gap: 0 !important;
  row-gap: 0 !important;
}

.henrich-video-grid .et_pb_module,
.henrich-video-grid .et_pb_video,
.henrich-video-grid .et_pb_video_box,
.henrich-video-grid .henrich-box {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

.henrich-video-grid .et_pb_video iframe {
  display: block !important;
}

.henrich-video-grid .henrich-box {
  background: #ffffff !important;
  padding: 1.5em !important;
  min-height: 180px !important;
}

/* =========================================================
   10. Featured Slider
========================================================= */

.featured-slider {
  position: relative;
  display: flex;
  align-items: center;
}

.slider-track {
  display: flex;
  gap: 20px;
  overflow: hidden;
  width: 100%;
}

.slide {
  flex: 0 0 25%;
}

.slide img {
  width: 100%;
  height: auto;
  display: block;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--he-white);
  border: none;
  font-size: 30px;
  cursor: pointer;
  z-index: 10;
  padding: 5px 10px;
}

.slider-btn.prev {
  left: -10px;
}

.slider-btn.next {
  right: -10px;
}

.slider-btn:hover {
  color: var(--he-orange);
}


/* =========================================================
   11. Footer
========================================================= */

.site-footer-custom {
  background: var(--he-blue-dark) !important;
  background-image: none !important;
  color: var(--he-white);
}

.site-footer-custom .et_pb_row,
.site-footer-custom .et_pb_column,
.site-footer-custom .et_pb_module,
.site-footer-custom .et_pb_text,
.site-footer-custom .et_pb_blurb,
.site-footer-custom .et_pb_code,
.site-footer-custom .et_pb_menu,
.site-footer-custom .et_pb_menu_inner_container,
.site-footer-custom .et_pb_menu__wrap,
.site-footer-custom .et_pb_button_module_wrapper,
.site-footer-custom .et_pb_newsletter,
.site-footer-custom .et_pb_newsletter_form,
.site-footer-custom .et_pb_newsletter_fields,
.footer-bottom-bar,
.footer-bottom-menu {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
}

.site-footer-custom .et_pb_module:empty,
.site-footer-custom .et_pb_text:empty,
.site-footer-custom .et_pb_code:empty {
  display: none !important;
}

.site-footer-custom h3,
.site-footer-custom h4 {
  color: var(--he-white) !important;
  font-size: 20px !important;
  font-weight: 800;
  border-bottom: 1px solid rgba(255,255,255,0.45);
  padding-bottom: 8px !important;
  margin-bottom: 16px !important;
}

.site-footer-custom a,
.site-footer-custom p,
.site-footer-custom li {
  color: var(--he-white);
}

.site-footer-custom a:hover {
  color: var(--he-orange);
}

.site-footer-custom .et_pb_menu li,
.site-footer-custom .et_pb_menu li a {
  background: transparent !important;
  color: var(--he-white) !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
  line-height: 1.5em !important;
}

.site-footer-custom .et_pb_menu .et-menu {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 6px !important;
}

.site-footer-custom input[type="email"],
.site-footer-custom .et_pb_newsletter_field input {
  background: transparent !important;
  color: var(--he-white) !important;
  border: 2px solid var(--he-white) !important;
  border-radius: 5px !important;
  padding: 14px 16px !important;
}

.site-footer-custom input[type="email"]::placeholder,
.site-footer-custom .et_pb_newsletter_field input::placeholder {
  color: var(--he-white) !important;
  opacity: 1 !important;
}

.site-footer-custom .et_pb_button:hover,
.site-footer-custom input[type="submit"]:hover,
.site-footer-custom button:hover,
.site-footer-custom .et_pb_newsletter_button:hover {
  background: var(--he-orange) !important;
  color: var(--he-white) !important;
  border-color: var(--he-orange) !important;
  transform: none !important;
}

.site-footer-custom .et_pb_button:before,
.site-footer-custom .et_pb_button:after,
.site-footer-custom .et_pb_newsletter_button:before,
.site-footer-custom .et_pb_newsletter_button:after {
  display: none !important;
}

.footer-bottom-bar {
  border-top: 1px solid rgba(255,255,255,0.25);
  margin-top: 24px !important;
  padding-top: 14px !important;
  padding-bottom: 8px !important;
}

.site-footer-custom .footer-bottom-menu.et_pb_menu,
.site-footer-custom .footer-bottom-menu .et_pb_menu_inner_container,
.site-footer-custom .footer-bottom-menu .et_pb_menu__wrap,
.site-footer-custom .footer-bottom-menu .et-menu-nav,
.site-footer-custom .footer-bottom-menu .et-menu {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  background: transparent !important;
}

.site-footer-custom .footer-bottom-menu .et-menu {
  flex-direction: row !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 18px !important;
}

.site-footer-custom .footer-bottom-menu .et-menu > li {
  display: inline-flex !important;
  margin: 0 !important;
}

.footer-bottom-menu .et-menu li a,
.footer-bottom-bar .et-menu a {
  font-size: 13px !important;
  color: var(--he-white) !important;
  opacity: 0.9;
}

/* =========================
   Footer Layout Stability
========================= */

.site-footer-custom .footer-column {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  gap: 16px !important;
}

.site-footer-custom .footer-column > .et_pb_module,
.site-footer-custom .footer-column > .et_pb_row {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

.site-footer-custom .footer-column h3,
.site-footer-custom .footer-column h4 {
  width: 100% !important;
  margin-bottom: 0 !important;
}

.site-footer-custom .footer-column p {
  margin-bottom: 0 !important;
}

/* =========================
   Footer Social Icons
========================= */

/* Nested social icon row */
.site-footer-custom .footer-social-icons.et_pb_row {
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.site-footer-custom .footer-social-icons .et_pb_column {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 16px !important;
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
}

.site-footer-custom .footer-social-icon {
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1 !important;
}

.site-footer-custom .footer-social-icon .et-pb-icon {
  font-size: 24px !important;
  line-height: 1 !important;
  transition: color 0.2s ease !important;
}

.site-footer-custom .footer-social-icon:hover .et-pb-icon {
  color: var(--he-orange) !important;
}

/* =========================
   Footer Row Spacing Cleanup
========================= */

.site-footer-custom.footer-main-row,
.site-footer-custom.footer-secondary-row {
  margin-bottom: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  min-height: auto !important;
}

/* Remove Divi default row spacing */
.site-footer-custom.et_pb_row {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* Tighten spacing between footer rows */
.footer-secondary-row {
  margin-top: 0 !important;
}

/* Remove hidden flex spacing */
.footer-main-row.et_pb_row,
.footer-secondary-row.et_pb_row {
  align-items: flex-start !important;
}

/* Remove extra spacing from modules */
.footer-main-row .et_pb_module,
.footer-secondary-row .et_pb_module {
  margin-bottom: 0 !important;
}

/* =========================
   Footer Section Spacing
========================= */

.et_pb_section_0_tb_footer.et_pb_section {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* Control spacing between footer rows directly */
.et_pb_section_0_tb_footer .footer-main-row {
  margin-bottom: 4px !important;
}

.et_pb_section_0_tb_footer .footer-secondary-row {
  margin-top: 0 !important;
}

/* Remove Divi default row padding inside footer */
.et_pb_section_0_tb_footer .et_pb_row {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.footer-main-row.et_pb_row {
  margin-bottom: 0 !important;
}

/* Footer newsletter field visibility */
.site-footer-custom .et_pb_newsletter_form,
.site-footer-custom .et_pb_newsletter_fields {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.site-footer-custom .et_pb_newsletter_field,
.site-footer-custom .et_pb_newsletter_field p {
  display: block !important;
  margin: 0 0 16px 0 !important;
  padding: 0 !important;
}

.site-footer-custom .et_pb_newsletter_field input,
.site-footer-custom input[type="email"] {
  display: block !important;
  width: 100% !important;
  max-width: 320px !important;
  height: auto !important;
  min-height: 48px !important;

  background: transparent !important;
  color: #ffffff !important;
  border: 2px solid #ffffff !important;
  border-radius: 5px !important;

  padding: 12px 16px !important;
  font-size: 16px !important;
  opacity: 1 !important;
  visibility: visible !important;
  box-shadow: none !important;
}

.site-footer-custom .et_pb_newsletter_field input::placeholder {
  color: #ffffff !important;
  opacity: 1 !important;
}

/* =========================================================
   12. Responsive Adjustments
========================================================= */

@media (max-width: 980px) {
  :root {
    --h1-size: 46px;
    --h2-size: 34px;
    --h3-size: 28px;
    --h4-size: 22px;
  }

  .home-section {
    padding: 42px 0;
  }

  .home-category-nav .et_pb_column {
    border-right: none !important;
    border-bottom: 1px solid var(--he-border);
    padding: 12px 0;
  }

  .home-orange-divider {
    border-left: none;
    border-top: 2px solid var(--he-orange);
    margin: 24px 0;
  }

  .home-solution-card {
    padding: 24px;
  }

  .product-showcase {
    min-height: auto;
  }

  .product-showcase .product-tabs {
    grid-template-columns: 1fr !important;
  }

  .product-showcase .product-tab {
    border-right: none !important;
    border-bottom: 1px solid rgba(0,0,0,0.12) !important;
  }

  .product-showcase .product-panel.active {
    grid-template-columns: 1fr;
    gap: 24px;
    margin: 28px 20px 0;
    min-height: auto;
  }

  .product-info-card {
    max-height: none;
    overflow-y: visible;
  }

  .product-divider {
    height: 2px;
    width: 100%;
  }

  .product-image-card {
    height: auto;
  }

  .product-image-card img {
    height: auto;
    object-fit: contain;
  }

  .slide {
    flex: 0 0 50%;
  }
}

@media (max-width: 767px) {
  :root {
    --h1-size: 45px;
    --h2-size: 32px;
    --h3-size: 26px;
    --h4-size: 20px;

    --body-large-size: 17px;
    --body-size: 16px;
    --body-small-size: 14px;
  }

  .slide {
    flex: 0 0 100%;
  }
}

@media (max-width: 768px) {
  .henrich-box {
    min-height: 180px;
  }
}
