/* V35.3 public shell. Admin templates do not carry .dh353-public. */
.dh353-public {
  --dh353-navy: #142f40;
  --dh353-ivory: #f5f4ef;
  --dh353-gold: #c19d62;
  --dh353-muted: #61727a;
  --dh353-line: #dce2e3;
  --navy: #142f40;
  --navy2: #102736;
  --ink: #142f40;
  --gold: #c19d62;
  color: var(--dh353-navy);
  background: #fff;
  font-size: 16px;
  line-height: 1.65;
}
.dh353-public .dh353-shell {
  width: min(1200px, calc(100% - 64px));
  margin: 0 auto;
}
.dh353-public .button,
.dh353-public .dh20-btn { border-radius: 6px; box-shadow: none; }
.dh353-public :is(a, button, input, select, textarea):focus-visible {
  outline: 3px solid #967039;
  outline-offset: 3px;
}
.dh353-public .preview-ribbon {
  padding: 10px 24px;
  background: #f5e8cd;
  color: #4a3b22;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 500;
}

/* A restrained utility line keeps the main navigation focused. */
.dh353-public .dh353-utility { background: var(--dh353-ivory); color: #53656e; }
.dh353-public .dh353-utility-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 35px;
  font-size: 13px;
  line-height: 1.5;
}
.dh353-public .dh353-utility-inner > span,
.dh353-public .dh353-utility-inner > a { display: flex; align-items: center; gap: 8px; }
.dh353-public .dh353-utility-inner > a { margin-left: auto; }
.dh353-public .dh353-utility strong { color: var(--dh353-navy); font-weight: 650; }
.dh353-public .dh353-utility a:hover { color: #846637; }

.dh353-public .dh353-header {
  position: sticky;
  top: 0;
  z-index: 420;
  background: #fff;
  border-bottom: 1px solid var(--dh353-line);
}
.dh353-public .dh353-header-inner {
  display: flex;
  align-items: center;
  gap: 25px;
  min-height: 78px;
}
.dh353-public .dh353-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  flex: none;
  min-width: 0;
  color: var(--dh353-navy);
}
.dh353-public .dh353-brand img { display: block; width: 49px; height: 49px; object-fit: contain; flex: none; }
.dh353-public .dh353-brand > span { min-width: 0; }
.dh353-public .dh353-brand strong {
  display: block;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.015em;
  text-transform: uppercase;
  white-space: nowrap;
}
.dh353-public .dh353-brand small { display: block; margin-top: 5px; color: #826b46; font-size: 12px; font-weight: 500; line-height: 1.25; }
.dh353-public .dh353-primary-nav {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 21px;
  flex: 1;
  min-width: 0;
  min-height: 78px;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
}
.dh353-public .dh353-primary-nav a {
  position: relative;
  display: flex;
  align-items: center;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #3d5361;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 600;
  white-space: nowrap;
}
.dh353-public .dh353-primary-nav a:hover,
.dh353-public .dh353-primary-nav a[aria-current="page"] { color: var(--dh353-navy); background: transparent; }
.dh353-public .dh353-primary-nav a[aria-current="page"]::after {
  position: absolute;
  right: 0;
  bottom: 17px;
  left: 0;
  height: 2px;
  background: var(--dh353-gold);
  content: "";
}
.dh353-public .dh353-header-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; flex: none; }
.dh353-public .dh353-search,
.dh353-public .dh353-menu-toggle {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 6px;
  padding: 0;
  background: transparent;
  color: var(--dh353-navy);
}
.dh353-public .dh353-search:hover,
.dh353-public .dh353-menu-toggle:hover { background: var(--dh353-ivory); }
.dh353-public .dh353-header-quote,
.dh353-public .dh353-menu-contact a.dh353-menu-quote {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 11px 17px;
  border: 1px solid var(--dh353-navy);
  border-radius: 6px;
  background: var(--dh353-navy);
  color: #fff;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.4;
  white-space: nowrap;
}
.dh353-public .dh353-header-quote:hover,
.dh353-public .dh353-menu-contact a.dh353-menu-quote:hover { background: #234657; border-color: #234657; }
.dh353-public .dh353-menu-toggle { display: none; }
.dh353-public .dh353-menu-toggle span { display: grid; place-items: center; }
.dh353-public .dh353-menu-toggle .dh353-menu-close,
.dh353-public .dh353-menu-toggle[aria-expanded="true"] .dh353-menu-open { display: none; }
.dh353-public .dh353-menu-toggle[aria-expanded="true"] .dh353-menu-close { display: grid; }
.dh353-public .dh353-mobile-menu,
.dh353-public .dh353-mobile-menu[hidden] { display: none; }

/* The mobile panel remains wired to the existing menu and search handlers. */
.dh353-public .dh353-menu-inner { padding-top: 20px; padding-bottom: 24px; }
.dh353-public .dh353-mobile-menu a {
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--dh353-navy);
  font-size: 15px;
  line-height: 1.5;
  font-weight: 500;
}
.dh353-public .dh353-mobile-menu a:hover { color: #806235; }
.dh353-public .dh353-mobile-menu a.dh353-menu-search {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--dh353-line);
  border-radius: 6px;
  background: var(--dh353-ivory);
}
.dh353-public .dh353-menu-search > span { flex: 1; }
.dh353-public .dh353-menu-primary { margin-top: 12px; }
.dh353-public .dh353-menu-primary a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 49px; padding: 12px 0; border-bottom: 1px solid #e8edee; font-size: 16px; font-weight: 600; }
.dh353-public .dh353-menu-primary a[aria-current="page"] { color: #8b6b39; }
.dh353-public .dh353-menu-primary a > svg { color: #8a9aa1; }
.dh353-public .dh353-menu-secondary { padding-top: 22px; }
.dh353-public .dh353-menu-secondary h3 { margin: 0 0 8px; color: #6a7980; font-size: 14px; font-weight: 600; line-height: 1.5; letter-spacing: 0; }
.dh353-public .dh353-menu-secondary > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
.dh353-public .dh353-menu-secondary a { display: flex; align-items: center; min-height: 44px; padding: 8px 0; font-size: 14px; }
.dh353-public .dh353-menu-contact { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 15px; padding-top: 20px; margin-top: 15px; border-top: 1px solid var(--dh353-line); }
.dh353-public .dh353-menu-contact > a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 0; min-height: 44px; font-size: 15px; font-weight: 650; }

.dh353-public .dh353-footer { background: var(--dh353-navy); color: #d4dfe4; padding: 62px 0 26px; }
.dh353-public .dh353-footer-grid { display: grid; grid-template-columns: 1.25fr .85fr .95fr 1.15fr; grid-template-areas: "about materials company contact"; gap: 42px; }
.dh353-public .dh353-footer-about { grid-area: about; min-width: 0; }
.dh353-public .dh353-footer-materials { grid-area: materials; min-width: 0; }
.dh353-public .dh353-footer-company { grid-area: company; min-width: 0; }
.dh353-public .dh353-footer-contact { grid-area: contact; min-width: 0; }
.dh353-public .dh353-footer-brand { display: flex; align-items: center; gap: 12px; color: #fff; }
.dh353-public .dh353-footer-brand img { display: block; flex: none; width: 54px; height: 54px; padding: 3px; object-fit: contain; background: #fff; border-radius: 6px; }
.dh353-public .dh353-footer-brand strong { display: block; color: #fff; font-size: 18px; line-height: 1.25; font-weight: 750; text-transform: uppercase; letter-spacing: -.01em; }
.dh353-public .dh353-footer-brand small { display: block; margin-top: 5px; font-size: 13px; line-height: 1.45; color: #d8bf98; }
.dh353-public .dh353-footer-about > p { max-width: 330px; margin: 21px 0 18px; color: #c0cfd6; font-size: 14px; line-height: 1.8; }
.dh353-public .dh353-footer a { text-decoration-thickness: 1px; text-underline-offset: 4px; }
.dh353-public .dh353-footer a:hover { color: #fff; text-decoration: underline; }
.dh353-public .dh353-footer h3 { margin: 0 0 19px; font-size: 16px; color: #f3eee5; line-height: 1.4; font-weight: 650; letter-spacing: -.01em; text-wrap: initial; }
.dh353-public .dh353-footer-grid > nav > a { display: block; padding: 6px 0; color: #c9d6dc; font-size: 14px; line-height: 1.6; }
.dh353-public .dh353-footer a.dh353-footer-library { display: inline-flex; align-items: center; gap: 8px; color: #dec59e; font-size: 14px; line-height: 1.5; }
.dh353-public .dh353-contact-row { display: flex; align-items: flex-start; gap: 11px; margin: 0 0 15px; font-size: 14px; font-style: normal; line-height: 1.7; }
.dh353-public .dh353-contact-row > svg { margin-top: 3px; color: #d3b88a; }
.dh353-public .dh353-contact-row > span,
.dh353-public .dh353-contact-row > div,
.dh353-public .dh353-contact-row > a { min-width: 0; overflow-wrap: anywhere; }
.dh353-public .dh353-contact-row > div > a { display: block; color: #fff; font-size: 15px; font-weight: 600; line-height: 1.7; }
.dh353-public .dh353-map-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 2px; color: #dec59e; font-size: 14px; }
.dh353-public .dh353-footer-bottom { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding-top: 25px; margin-top: 39px; border-top: 1px solid #ffffff24; }
.dh353-public .dh353-footer-bottom p { margin: 0; font-size: 13px; line-height: 1.7; color: #bdccd3; }
.dh353-public .dh353-footer-bottom nav { display: flex; flex-wrap: wrap; gap: 11px 21px; }
.dh353-public .dh353-footer-bottom a { color: #bdccd3; font-size: 13px; line-height: 1.7; }
.dh353-public .dh353-footer-note { max-width: 890px; margin: 12px 0 0; font-size: 13px; line-height: 1.7; color: #aebfc8; }
.dh353-public .dh353-mobile-cta { display: none; }

@media (max-width: 1180px) {
  .dh353-public .dh353-primary-nav { gap: 15px; }
  .dh353-public .dh353-header-inner { gap: 17px; }
  .dh353-public .dh353-header-actions { gap: 8px; }
  .dh353-public .dh353-header-quote { padding-right: 13px; padding-left: 13px; }
  .dh353-public .dh353-footer-grid { gap: 28px; }
}
@media (max-width: 1080px) {
  .dh353-public .dh353-primary-nav { display: none; }
  .dh353-public .dh353-menu-toggle { display: inline-grid; }
  .dh353-public .dh353-mobile-menu:not([hidden]) {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: block;
    padding: 0;
    max-height: calc(100vh - 132px);
    max-height: calc(100dvh - 132px);
    overflow-y: auto;
    overscroll-behavior-y: contain;
    border: 0;
    border-top: 1px solid var(--dh353-line);
    background: #fff;
    box-shadow: 0 12px 18px rgba(20,47,64,.08);
  }
  .dh353-public .dh353-menu-inner { max-width: 700px; }
  .dh353-public .dh353-footer-grid { grid-template-columns: 1fr 1fr; grid-template-areas: "about contact" "materials company"; gap: 34px 60px; }
  .dh353-public .dh353-footer-about > p { max-width: 420px; }
  .dh353-public .dh353-footer-bottom { flex-direction: column; align-items: flex-start; gap: 14px; }
}
@media (min-width: 1081px) {
  .dh353-public .dh353-mobile-menu:not([hidden]) { display: none; }
}
@media (max-width: 720px) {
  .dh353-public { font-size: 16px; padding-bottom: calc(65px + env(safe-area-inset-bottom)); }
  .dh353-public .dh353-shell { width: calc(100% - 40px); }
  .dh353-public .dh353-utility { display: none; }
  .dh353-public .dh353-header-inner { min-height: 72px; gap: 12px; }
  .dh353-public .dh353-brand { gap: 9px; flex: 1; }
  .dh353-public .dh353-brand img { width: 43px; height: 43px; }
  .dh353-public .dh353-brand strong { font-size: 16px; line-height: 1.2; }
  .dh353-public .dh353-brand small { margin-top: 4px; font-size: 11px; line-height: 1.25; }
  .dh353-public .dh353-header-actions { gap: 3px; }
  .dh353-public .dh353-header-quote { display: none; }
  .dh353-public .dh353-search,
  .dh353-public .dh353-menu-toggle { width: 42px; height: 44px; }
  .dh353-public .dh353-mobile-menu:not([hidden]) { max-height: calc(100vh - 145px - env(safe-area-inset-bottom)); max-height: calc(100dvh - 145px - env(safe-area-inset-bottom)); }
  .dh353-public .dh353-menu-inner { padding-top: 16px; padding-bottom: 22px; }
  .dh353-public .dh353-menu-contact { gap: 12px; }
  .dh353-public .dh353-menu-contact > a { font-size: 14px; }
  .dh353-public .dh353-menu-contact a.dh353-menu-quote { font-size: 14px; padding: 11px 14px; }
  .dh353-public .dh353-footer { padding: 42px 0 23px; }
  .dh353-public .dh353-footer-grid { grid-template-columns: 1fr 1fr; grid-template-areas: "about about" "contact contact" "materials company"; gap: 29px 23px; }
  .dh353-public .dh353-footer-brand strong { font-size: 19px; }
  .dh353-public .dh353-footer-brand small { font-size: 13px; }
  .dh353-public .dh353-footer-about > p { max-width: none; margin-top: 18px; margin-bottom: 15px; font-size: 15px; line-height: 1.75; }
  .dh353-public .dh353-footer h3 { margin-bottom: 13px; font-size: 16px; }
  .dh353-public .dh353-footer-grid > nav > a { padding: 7px 0; font-size: 14px; line-height: 1.6; }
  .dh353-public .dh353-contact-row { font-size: 15px; margin-bottom: 14px; }
  .dh353-public .dh353-contact-row > div > a { font-size: 16px; }
  .dh353-public .dh353-footer-contact { padding: 23px 0 24px; border-top: 1px solid #ffffff24; border-bottom: 1px solid #ffffff24; }
  .dh353-public .dh353-footer-contact h3 { margin-bottom: 18px; }
  .dh353-public .dh353-footer-bottom { margin-top: 29px; padding-top: 22px; }
  .dh353-public .dh353-footer-bottom nav { gap: 12px 19px; }
  .dh353-public .dh353-footer-bottom p,
  .dh353-public .dh353-footer-bottom a,
  .dh353-public .dh353-footer-note { font-size: 13px; }
  .dh353-public .dh353-mobile-cta {
    position: fixed;
    z-index: 500;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 5px;
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 8px 13px calc(8px + env(safe-area-inset-bottom));
    border: 0;
    border-top: 1px solid var(--dh353-line);
    border-radius: 0;
    background: #fff;
    box-shadow: 0 -4px 14px rgba(20,47,64,.055);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .dh353-public .dh353-mobile-cta a { display: flex; align-items: center; justify-content: center; flex-direction: row; gap: 7px; min-width: 0; min-height: 47px; padding: 9px 3px; border: 0; border-radius: 6px; color: var(--dh353-navy); font-size: 14px; font-weight: 600; line-height: 1.3; text-align: center; }
  .dh353-public .dh353-mobile-cta a > svg { width: 18px; height: 18px; }
  .dh353-public .dh353-mobile-cta a.active { background: var(--dh353-navy); color: #fff; box-shadow: none; }
  .dh353-public .dh353-mobile-cta #quoteCountMobile:empty { display: none; }
}
@media (max-width: 360px) {
  .dh353-public .dh353-shell { width: calc(100% - 32px); }
  .dh353-public .dh353-header-inner { gap: 5px; }
  .dh353-public .dh353-brand { gap: 7px; }
  .dh353-public .dh353-brand img { width: 37px; height: 37px; }
  .dh353-public .dh353-brand strong { font-size: 14px; }
  .dh353-public .dh353-brand small { font-size: 10.5px; }
  .dh353-public .dh353-header-actions { gap: 0; }
  .dh353-public .dh353-search,
  .dh353-public .dh353-menu-toggle { width: 40px; }
  .dh353-public .dh353-footer-grid { gap: 27px 17px; }
  .dh353-public .dh353-mobile-cta { padding-right: 8px; padding-left: 8px; gap: 3px; }
  .dh353-public .dh353-mobile-cta a { font-size: 13px; gap: 4px; }
}
