/* ==========================================================================
   David H. Paul, Inc. - Static homepage recreation
   Recreated from the Ionic/Angular app (app.component + home.page)
   ========================================================================== */

:root {
  --ion-color-primary: #175792;
  --ion-color-primary-shade: #124a7d;
  --ion-color-primary-tint: #2f6ba4;
  --ion-color-secondary: #3dc2ff;
  --ion-color-tertiary: #5260ff;
  --ion-color-success: #2dd36f;
  --ion-color-success-shade: #28ba62;
  --ion-color-danger: #eb445a;
  --ion-color-danger-shade: #cf3c4f;
  --ion-color-dark: #222428;
  --ion-color-medium: #92949c;
  --ion-color-light: #f4f5f8;
  --dhp-blue: #4472c3;
  --font-main: Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: var(--font-main);
  color: #000;
  background: #ffffff;
  overflow: hidden;
}

/* Fixed background photograph (RO membrane skid) ------------------------- */
.background {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Application frame ------------------------------------------------------ */
.app {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
}

/* ==========================================================================
   Generic buttons (Ionic-like)
   ========================================================================== */
.btn {
  font-family: inherit;
  cursor: pointer;
  border: none;
  border-radius: 4px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transition: background-color 0.15s ease, color 0.15s ease, filter 0.15s ease;
}

.btn-clear {
  background: transparent;
  color: var(--ion-color-primary);
}

.btn-clear:hover {
  background: rgba(23, 87, 146, 0.08);
}

.btn-danger {
  background: var(--ion-color-danger);
  color: #fff;
}

.btn-danger:hover {
  background: var(--ion-color-danger-shade);
}

.btn-success {
  background: var(--ion-color-success);
  color: #fff;
}

.btn-success:hover {
  background: var(--ion-color-success-shade);
}

.btn-primary {
  background: var(--ion-color-primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--ion-color-primary-shade);
}

.btn-block {
  display: block;
  width: 100%;
  padding: 12px;
  margin-top: 12px;
  font-size: 14px;
}

.btn-outline {
  background: transparent;
  color: var(--ion-color-primary);
  border: 1px solid var(--ion-color-primary);
}

.btn-outline:hover {
  background: rgba(23, 87, 146, 0.08);
}

.btn[disabled],
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ==========================================================================
   Header
   ========================================================================== */
.header {
  display: flex;
  height: 100px;
  flex: 0 0 100px;
  position: relative;
  z-index: 20;
}

.header-left {
  flex: 0 0 110px;
  background-image: url("../assets/images/webpagegraphics/websitebackground_0002_LeftHeader_test.png");
  background-size: 100% 100%;
  background-repeat: no-repeat;
}

.header-right {
  flex: 1;
  min-width: 0;
  background-image: url("../assets/images/webpagegraphics/websitebackground_0004_rightHeader_test.png");
  background-size: 100% 100%;
  background-repeat: no-repeat;
}

/* Desktop header row */
.header-desktop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 12px 0 6px;
  gap: 12px;
}

.header-logo {
  flex: 0 0 90px;
  width: 90px;
  height: 70px;
  background-image: url("../assets/images/webpagegraphics/dhplogo.png");
  background-size: 90px 75px;
  background-repeat: no-repeat;
  background-position: center;
}

/* Sit a little higher so the logo is not so close to the bottom edge
   of the header bar. Desktop only; the mobile header keeps its own rules. */
.header-desktop .header-logo {
  margin-bottom: 12px;
}

.header-info {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
}

.header-topline {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 4px;
}

.updated {
  color: red;
  font-size: 10px;
}

.newsletter-btn {
  font-size: 11px;
  color: var(--ion-color-tertiary);
  padding: 5px 8px;
}

.cart-btn {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: var(--ion-color-primary);
  font-size: 13px;
  padding: 5px 8px;
}

.cart-btn svg {
  width: 20px;
  height: 20px;
}

/* Main navigation -------------------------------------------------------- */
.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 2px;
}

.nav-item {
  position: relative;
  display: inline-block;
}

.nav-link {
  display: inline-block;
  padding: 6px 10px;
  font-size: 11px;
  line-height: 1.2;
  color: var(--ion-color-primary);
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 4px;
  white-space: nowrap;
  transition: background-color 0.15s ease;
}

.nav-link:hover,
.nav-item.open > .nav-link {
  background: rgba(23, 87, 146, 0.08);
}

/* Drop-down menus -------------------------------------------------------- */
.submenu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 208px;
  padding: 4px;
  background: #808080;
  border-radius: 4px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  z-index: 100005;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
}

.nav-item.open > .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.submenu a {
  display: block;
  width: 100%;
  padding: 7px 9px;
  margin-bottom: 2px;
  background: var(--ion-color-primary);
  color: #fff;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.25;
  text-align: left;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  border-radius: 4px;
  transition: background-color 0.15s ease;
}

.submenu a:hover {
  background: var(--ion-color-primary-shade);
}

.submenu a:first-child {
  background: var(--ion-color-dark);
}

.submenu a:first-child:hover {
  background: #17181b;
}

.submenu a:last-child {
  margin-bottom: 0;
}

/* Mobile header ---------------------------------------------------------- */
.header-mobile {
  display: none;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 10px;
}

.header-mobile .header-logo {
  flex: 0 0 70px;
  width: 70px;
  height: 56px;
  background-size: 66px 56px;
}

.mobile-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  padding: 4px;
  cursor: pointer;
  color: var(--ion-color-primary);
  position: relative;
}

.icon-btn svg {
  width: 26px;
  height: 26px;
}

.cart-badge {
  position: absolute;
  top: -1px;
  right: -4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: var(--ion-color-danger);
  color: #fff;
  font-size: 9px;
  line-height: 16px;
  text-align: center;
  font-weight: 700;
}

.cart-badge[hidden] {
  display: none;
}

/* ==========================================================================
   Main area
   ========================================================================== */
.main {
  flex: 1;
  display: flex;
  min-height: 0;
}

.left-col {
  flex: 0 0 110px;
  background-image: url("../assets/images/webpagegraphics/websitebackground_0003_Left-Side_test.png");
  background-size: 100% 100%;
  background-repeat: no-repeat;
}

.main-content {
  flex: 1;
  min-width: 0;
  overflow-y: auto;
  position: relative;
  -webkit-overflow-scrolling: touch;
}

/* ==========================================================================
   Home page
   ========================================================================== */
.home-page {
  text-align: center;
  font-family: var(--font-main);
  padding: 8px 12px 80px;
  line-height: 1.5;
}

.company-title {
  color: var(--ion-color-primary);
  font-size: 30px;
  font-weight: 900;
  font-style: italic;
  margin: 4px 0 10px;
}

.social-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 10px;
}

.social-row img {
  width: 25px;
  height: 25px;
  cursor: pointer;
}

.social-row img:hover {
  filter: brightness(1.15);
}

.top-vid {
  display: block;
  margin: 0 auto;
  width: 60%;
  max-width: 720px;
  height: auto;
  border: 5px solid #000;
  border-radius: 15px;
  background-color: #333;
  box-shadow: inset 0 2px 6px rgba(255, 255, 255, 0.3),
    inset 0 -2px 6px rgba(0, 0, 0, 0.7), 0 10px 20px rgba(0, 0, 0, 0.5);
}

.mission {
  color: var(--dhp-blue);
  font-style: italic;
  font-size: 24px;
  margin: 22px auto;
}

.home-page p {
  font-size: 17px;
  margin: 16px auto;
  max-width: 1100px;
}

.home-page a {
  color: var(--dhp-blue);
  text-decoration: underline;
  font-weight: bold;
}

.home-page a:hover {
  color: var(--ion-color-primary);
}

.text-danger {
  color: var(--ion-color-danger);
}

/* Products & Services card (hexagons) ------------------------------------ */
.box {
  margin: 24px auto 10px;
  min-width: 430px;
  width: 80%;
}

.card {
  background: rgba(255, 255, 255, 0.527);
  border-radius: 4px;
  box-shadow: 0 3px 1px -2px rgba(0, 0, 0, 0.2),
    0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12);
  overflow: hidden;
}

.card-header {
  background: rgba(189, 185, 185, 0.438);
  padding: 16px;
  text-align: center;
}

.card-header h2 {
  margin: 0;
  color: var(--dhp-blue);
  font-size: 20px;
  font-weight: bold;
}

.card-body {
  padding: 16px;
}

.hex-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.hex-cluster {
  position: relative;
  flex: 0 0 350px;
  width: 350px;
  height: 350px;
  margin: 0 auto;
}

.hex-btn {
  position: absolute;
  width: 120px;
  height: 120px;
  padding: 0;
  border: none;
  background-color: transparent;
  background-image: url("../assets/images/heximages/hexagon.png");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: filter 0.15s ease, transform 0.15s ease;
}

.home-page a.hex-btn {
  text-decoration: none;
  color: #fff;
}

.hex-btn:hover {
  filter: brightness(1.18);
  transform: scale(1.04);
}

.hex-btn.center {
  background-image: url("../assets/images/heximages/hexagonred.png");
  font-size: 16px;
}

.hex-btn.pos-tl {
  left: 56px;
  top: 14px;
}

.hex-btn.pos-tr {
  left: 166px;
  top: 14px;
}

.hex-btn.pos-ml {
  left: 0;
  top: 111px;
}

.hex-btn.pos-m {
  left: 110px;
  top: 111px;
}

.hex-btn.pos-mr {
  left: 220px;
  top: 111px;
}

.hex-btn.pos-bl {
  left: 56px;
  top: 209px;
}

.hex-btn.pos-br {
  left: 166px;
  top: 209px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  display: flex;
  height: 80px;
  flex: 0 0 80px;
}

.footer-left {
  flex: 0 0 110px;
  background-image: url("../assets/images/webpagegraphics/websitebackground_0000_LeftFooter_test.png");
  background-size: 100% 100%;
  background-repeat: no-repeat;
}

.footer-right {
  flex: 1;
  background-image: url("../assets/images/webpagegraphics/websitebackground_0001_RightFooter_test.png");
  background-size: 100% 100%;
  background-repeat: no-repeat;
}

/* ==========================================================================
   Floating special buttons bar (desktop)
   ========================================================================== */
.special-buttons {
  position: fixed;
  bottom: 5px;
  left: 0;
  width: 100%;
  z-index: 500;
  pointer-events: none;
}

.special-background {
  pointer-events: auto;
  max-width: 640px;
  margin: 0 auto;
  padding: 2px 4px;
  border: 1px solid #000;
  background-color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.top-nav-btn {
  height: 30px;
  min-width: 120px;
  margin: 2px;
  padding: 2px 8px;
  font-size: 10px;
  line-height: 1.1;
  width: auto;
}

.bbb-btn {
  background-color: #fff;
  background-image: url("../assets/images/bbb.png");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  border-radius: 0;
}

.neptune-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
}

.neptune-btn img {
  width: 20px;
  height: 20px;
}

/* ==========================================================================
   Mobile slide-out menu
   ========================================================================== */
.menu-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s;
  z-index: 900;
}

.menu-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.side-menu {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: 320px;
  max-width: 88vw;
  background: #fff;
  z-index: 901;
  transform: translateX(100%);
  transition: transform 0.25s ease;
  overflow-y: auto;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.35);
}

.side-menu.open {
  transform: translateX(0);
}

.side-menu .close-row {
  display: flex;
  justify-content: flex-end;
  padding: 4px 12px;
  background: #fff;
  border-bottom: 1px solid #e4e4e4;
}

.side-menu .close-row button {
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 34px;
  line-height: 1;
  color: #444;
}

.menu-body {
  background-color: rgb(24, 74, 116);
  min-height: calc(100% - 45px);
  padding: 4px 0 50px;
}

.menu-item {
  display: block;
  width: 100%;
  padding: 14px 16px;
  border: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  background: var(--ion-color-light);
  color: #111;
  font-family: inherit;
  font-size: 13px;
  text-align: left;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  position: relative;
}

.menu-item:hover {
  background: #e9eaee;
}

.menu-item .chevron {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 11px;
  transition: transform 0.2s ease;
}

.menu-item.expanded .chevron {
  transform: translateY(-50%) rotate(180deg);
}

.submenu-item {
  display: block;
  width: 100%;
  padding: 12px 16px 12px 28px;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--ion-color-medium);
  color: #fff;
  font-family: inherit;
  font-size: 12px;
  text-align: left;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
}

.submenu-item:hover {
  background: #83858c;
}

.menu-group {
  display: none;
}

.menu-group.open {
  display: block;
}

/* ==========================================================================
   Shopping cart panel
   ========================================================================== */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 950;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s;
  padding: 40px 12px;
}

.cart-overlay.open {
  opacity: 1;
  visibility: visible;
}

.shopping-cart {
  width: 100%;
  max-width: 640px;
  max-height: 85vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.cart-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: var(--ion-color-light);
  border-bottom: 1px solid #ddd;
  font-weight: 600;
  font-size: 15px;
}

.cart-toolbar button {
  background: transparent;
  border: none;
  color: var(--ion-color-primary);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  cursor: pointer;
}

.cart-body {
  padding: 12px 16px 24px;
}

.promo-input {
  display: block;
  width: 100%;
  border: 1px solid #000;
  background-color: rgb(202, 202, 202);
  padding: 10px;
  font-family: inherit;
  font-size: 14px;
}

.cart-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  font-size: 14px;
  border-bottom: 1px solid #eee;
}

.cart-checkout {
  margin-top: 16px;
}

/* ==========================================================================
   Toast
   ========================================================================== */
.toast {
  position: fixed;
  left: 50%;
  bottom: 76px;
  transform: translate(-50%, 20px);
  background: var(--ion-color-dark);
  color: #fff;
  padding: 10px 18px;
  border-radius: 6px;
  font-size: 13px;
  line-height: 1.4;
  max-width: 90vw;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  z-index: 1000;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.toast.show {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

/* ==========================================================================
   Responsive behavior (matches screen.windowSize breakpoints)
   ========================================================================== */
@media (max-width: 935px) {
  .header-left,
  .left-col,
  .footer-left {
    display: none;
  }

  .header {
    height: 70px;
    flex: 0 0 70px;
  }

  .header-desktop {
    display: none;
  }

  .header-mobile {
    display: flex;
  }

  .special-buttons {
    display: none;
  }

  .footer {
    height: 55px;
    flex: 0 0 55px;
  }

  .home-page {
    padding-bottom: 24px;
  }

  .home-page p {
    font-size: 16px;
  }

  .mission {
    font-size: 20px;
  }

  .company-title {
    font-size: 24px;
  }

  .toast {
    bottom: 16px;
  }
}

@media (min-width: 936px) {
  .header-mobile {
    display: none;
  }
}

@media (max-width: 723px) {
  .box {
    display: none;
  }

  .top-vid {
    width: 92%;
  }
}
