/* HS Technologies official lockup + unified responsive footer artwork. */
:root {
  --brand-navy: #0b1d3d;
  --brand-rust: #bd5026;
  --brand-rust-dark: #9f3e1c;
  --brand-paper: #faf2ea;
  --brand-muted: #566176;
  --brand-line: rgba(151, 119, 92, 0.24);
}

/* Official generated logo in the floating header. */
.header .brand {
  display: flex !important;
  width: min(198px, 16.5vw) !important;
  min-width: 170px !important;
  height: 66px !important;
  align-items: center !important;
  justify-content: flex-start !important;
  padding: 0 !important;
  overflow: visible !important;
}

.header .brand-mark,
.header .brand-name {
  display: none !important;
}

.brand-logo-image {
  display: block;
  width: 100%;
  max-width: 198px;
  height: auto;
  object-fit: contain;
  object-position: left center;
}

@media (min-width: 761px) {
  .brand-logo-image {
    transform: translateY(5px);
  }
}

/* One continuous footer composition: the approved illustration fills the
   entire card rather than beginning as a separate lower band. */
.brand-footer {
  position: relative;
  padding: clamp(22px, 2.4vw, 34px) 0 clamp(24px, 2.8vw, 38px) !important;
  border-top: 1px solid rgba(165, 132, 103, 0.14) !important;
  background: #fbfaf7 !important;
  color: var(--brand-navy) !important;
}

.brand-footer-shell {
  position: relative;
  width: min(calc(100% - 48px), 1540px);
  min-height: clamp(500px, 31vw, 560px);
  margin-inline: auto;
  padding: clamp(36px, 3vw, 46px) clamp(30px, 3.5vw, 52px) 24px;
  overflow: hidden;
  border: 1px solid rgba(172, 137, 107, 0.27);
  border-radius: clamp(18px, 1.55vw, 25px);
  background: var(--brand-paper);
  box-shadow: 0 24px 62px rgba(62, 43, 30, 0.085), 0 4px 14px rgba(62, 43, 30, 0.04);
  isolation: isolate;
}

.brand-footer-shell::before,
.brand-footer-door {
  display: none !important;
}

.brand-footer-art {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center bottom;
  pointer-events: none;
  user-select: none;
}

.brand-footer-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns:
    minmax(250px, 1.38fr)
    minmax(190px, 1fr)
    minmax(110px, 0.66fr)
    minmax(165px, 0.88fr)
    minmax(200px, 1.05fr);
  align-items: start;
  gap: 0;
}

.brand-footer-cta {
  min-width: 0;
  padding-right: clamp(28px, 3vw, 46px);
}

.brand-footer-kicker,
.brand-footer-group > summary {
  margin: 0;
  color: #97411f;
  font-family: var(--mono, "SFMono-Regular", Consolas, "Liberation Mono", monospace);
  font-size: 10px;
  font-weight: 760;
  letter-spacing: 0.2em;
  line-height: 1.2;
  text-transform: uppercase;
}

.brand-footer-title {
  max-width: 380px;
  margin: 16px 0 0;
  color: #12213e;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  font-size: clamp(39px, 2.95vw, 51px);
  font-weight: 500;
  letter-spacing: -0.052em;
  line-height: 0.96;
}

.brand-footer-script {
  display: inline-block;
  margin-inline: 0.025em;
  color: var(--brand-rust);
  font-family: "Snell Roundhand", "Segoe Script", "Bradley Hand", "Brush Script MT", cursive;
  font-size: 1.11em;
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.72;
  transform: translateY(0.04em) rotate(-2.4deg);
  transform-origin: center;
}

.brand-footer-copy {
  max-width: 330px;
  margin: 18px 0 0;
  color: var(--brand-muted);
  font-size: 14px;
  line-height: 1.55;
}

.brand-footer-cta-button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 22px;
  padding: 12px 20px;
  border: 1px solid rgba(133, 55, 25, 0.14);
  border-radius: 7px;
  background: linear-gradient(135deg, #ca5b2b, #aa421f);
  color: #fffdf8;
  box-shadow: 0 10px 22px rgba(146, 58, 25, 0.15);
  cursor: pointer;
  font-size: 14px;
  font-weight: 720;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.brand-footer-cta-button:hover,
.brand-footer-cta-button:focus-visible {
  background: linear-gradient(135deg, #d36834, #b64a24);
  box-shadow: 0 13px 26px rgba(146, 58, 25, 0.21);
  transform: translateY(-1px);
}

.brand-footer-group {
  min-width: 0;
  margin: 0;
  padding: 4px clamp(18px, 1.8vw, 28px) 0;
  border-left: 1px solid var(--brand-line);
}

.brand-footer-group > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
  color: #26324a;
  cursor: default;
}

.brand-footer-group > summary::-webkit-details-marker {
  display: none;
}

.brand-footer-toggle {
  display: none;
  color: var(--brand-rust);
  font-family: ui-sans-serif, sans-serif;
  font-size: 18px;
  font-weight: 450;
  letter-spacing: 0;
  transition: transform 160ms ease;
}

.brand-footer-group-content {
  display: flex;
  margin-top: 20px;
  align-items: flex-start;
  flex-direction: column;
  gap: 12px;
  color: #536078;
  font-size: 13px;
  line-height: 1.5;
}

.brand-footer-group-content p {
  max-width: 215px;
  margin: 0;
}

.brand-footer-links button,
.brand-footer-contact button {
  width: fit-content;
  padding: 0;
  border: 0;
  background: transparent;
  color: #39445a;
  cursor: pointer;
  font-size: inherit;
  line-height: inherit;
  text-align: left;
  transition: color 150ms ease;
}

.brand-footer-links button:hover,
.brand-footer-links button:focus-visible,
.brand-footer-contact button:hover,
.brand-footer-contact button:focus-visible {
  color: var(--brand-rust);
}

.brand-footer-list span {
  color: #4e5a70;
}

.brand-footer-contact a {
  color: #344158;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.brand-footer-contact button {
  color: var(--brand-rust);
  font-weight: 670;
}

.brand-footer-brand-group > summary {
  display: none;
}

.brand-footer-lockup {
  display: block;
  width: min(100%, 250px);
  margin: -3px 0 2px;
  padding: 0;
}

.brand-footer-logo-image {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: left center;
}

.brand-footer-monogram,
.brand-footer-wordmark,
.brand-footer-squiggle {
  display: none !important;
}

.brand-footer-bottom {
  position: absolute;
  right: clamp(30px, 3.5vw, 52px);
  bottom: 18px;
  left: clamp(30px, 3.5vw, 52px);
  z-index: 3;
  display: flex;
  padding-top: 0;
  align-items: center;
  justify-content: space-between;
  border-top: 0;
  color: #637086;
  font-family: var(--mono, "SFMono-Regular", Consolas, monospace);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.brand-footer-bottom em {
  margin-left: 0.18em;
  color: var(--brand-rust);
  font-family: "Snell Roundhand", "Segoe Script", "Bradley Hand", "Brush Script MT", cursive;
  font-size: 2.2em;
  font-style: normal;
  letter-spacing: -0.04em;
  line-height: 0;
}

.brand-footer-signoff {
  display: none !important;
}

@media (min-width: 761px) {
  .brand-footer-group > summary {
    pointer-events: none;
  }

  .brand-footer-group > .brand-footer-group-content {
    display: flex !important;
  }
}

/* Landscape tablets and smaller laptops keep the approved one-row hierarchy. */
@media (max-width: 1180px) and (min-width: 901px) {
  .header .brand {
    width: 180px !important;
    min-width: 154px !important;
  }

  .brand-footer-shell {
    min-height: 500px;
    padding: 34px 30px 22px;
  }

  .brand-footer-grid {
    grid-template-columns: 1.25fr 0.95fr 0.62fr 0.86fr 1fr;
    row-gap: 0;
  }

  .brand-footer-cta {
    grid-column: auto;
    padding: 0 24px 0 0;
    border-bottom: 0;
  }

  .brand-footer-title {
    max-width: 250px;
    font-size: 35px;
  }

  .brand-footer-copy {
    max-width: 245px;
    font-size: 13px;
  }

  .brand-footer-group,
  .brand-footer-group:nth-of-type(even) {
    padding: 4px 16px 0;
    border-left: 1px solid var(--brand-line);
  }

  .brand-footer-group-content {
    margin-top: 18px;
    gap: 11px;
    font-size: 12px;
  }

  .brand-footer-lockup {
    width: 180px;
  }

  .brand-footer-art {
    inset: 0;
    width: 100%;
    height: 100%;
    transform: none;
    object-fit: cover;
    object-position: center bottom;
  }

  .brand-footer-bottom {
    right: 30px;
    bottom: 16px;
    left: 30px;
  }
}

/* Portrait tablets use two compact rows instead of the old 940px stack. */
@media (max-width: 900px) and (min-width: 761px) {
  .header .brand {
    width: 170px !important;
    min-width: 146px !important;
  }

  .brand-footer-shell {
    min-height: 620px;
    padding: 34px 32px 22px;
  }

  .brand-footer-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    row-gap: 28px;
  }

  .brand-footer-cta {
    grid-column: 1 / 4;
    padding: 0 28px 0 0;
    border-bottom: 0;
  }

  .brand-footer-brand-group {
    grid-column: 4 / 7;
  }

  .brand-footer-group:nth-of-type(2) {
    grid-column: 1 / 3;
    padding-left: 0;
    border-left: 0;
  }

  .brand-footer-group:nth-of-type(3) {
    grid-column: 3 / 5;
  }

  .brand-footer-group:nth-of-type(4) {
    grid-column: 5 / 7;
  }

  .brand-footer-title {
    font-size: 38px;
  }

  .brand-footer-lockup {
    width: 220px;
  }

  .brand-footer-art {
    inset: 0 auto 0 50%;
    width: auto;
    height: 100%;
    transform: translateX(-62%);
    object-fit: contain;
    object-position: center bottom;
  }

  .brand-footer-bottom {
    right: 32px;
    bottom: 17px;
    left: 32px;
  }
}

/* Mobile keeps the existing accordion behavior, while the illustration and
   shell now share the same paper tone so no false section boundary appears. */
@media (max-width: 760px) {
  .header .brand {
    width: 164px !important;
    min-width: 0 !important;
    height: 58px !important;
  }

  .brand-logo-image {
    max-width: 164px;
  }

  .brand-footer {
    padding: 18px 12px 24px !important;
  }

  .brand-footer-shell {
    width: 100%;
    min-height: 0;
    padding: 27px 18px 17px;
    border-radius: 17px;
    background: var(--brand-paper);
  }

  .brand-footer-art {
    inset: auto auto 0 50%;
    width: auto;
    height: 285px;
    max-width: none;
    transform: translateX(-65%);
    object-fit: contain;
    object-position: center bottom;
  }

  .brand-footer-grid {
    grid-template-columns: 1fr;
  }

  .brand-footer-cta {
    padding: 0 2px 26px;
    border-bottom: 1px solid var(--brand-line);
  }

  .brand-footer-title {
    max-width: 420px;
    font-size: clamp(39px, 11.5vw, 49px);
  }

  .brand-footer-copy {
    margin-top: 16px;
    font-size: 14px;
  }

  .brand-footer-cta-button {
    margin-top: 20px;
  }

  .brand-footer-group {
    padding: 0;
    border-left: 0;
    border-bottom: 1px solid var(--brand-line);
  }

  .brand-footer-group > summary,
  .brand-footer-brand-group > summary {
    display: flex;
    min-height: 50px;
    align-items: center;
    cursor: pointer;
    color: #27334a;
  }

  .brand-footer-toggle {
    display: inline-block;
  }

  .brand-footer-group[open] .brand-footer-toggle {
    transform: rotate(45deg);
  }

  .brand-footer-group-content {
    margin-top: 0;
    padding: 4px 0 18px;
    gap: 12px;
  }

  .brand-footer-lockup {
    width: min(100%, 245px);
    margin-top: 4px;
  }

  .brand-footer-bottom {
    position: relative;
    right: auto;
    bottom: auto;
    left: auto;
    margin-top: 220px;
    padding-top: 0;
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    border-top: 0;
    font-size: 9px;
  }

  .brand-footer-bottom em {
    font-size: 2em;
  }
}

@media (max-width: 430px) {
  .header .brand {
    width: 148px !important;
  }

  .brand-logo-image {
    max-width: 148px;
  }

  .brand-footer-shell {
    padding-inline: 16px;
  }

  .brand-footer-title {
    font-size: 39px;
  }

  .brand-footer-art {
    height: 265px;
    transform: translateX(-66%);
  }

  .brand-footer-bottom {
    margin-top: 204px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .brand-footer-script {
    transform: none !important;
  }
}
