.brand {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: inherit;
  letter-spacing: normal;
}

.brand::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: -16px;
  top: 50%;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  transform: translateY(-50%);
  background: radial-gradient(circle, rgba(229, 203, 145, .34), rgba(229, 203, 145, 0) 68%);
  animation: danotHalo 4.5s ease-in-out infinite;
  pointer-events: none;
}

.brand-emblem {
  width: 68px;
  height: 68px;
  object-fit: contain;
  flex: 0 0 auto;
  filter: drop-shadow(0 5px 9px #0002) brightness(1.02);
  animation: danotEmblemLight 4.5s ease-in-out infinite;
}

header .header-brand::before { display: none; }

.header-brand-logo {
  width: clamp(210px, 19vw, 276px);
  height: 82px;
  object-fit: contain;
  object-position: left center;
  flex: 0 0 auto;
}

.brand .brand-copy {
  display: block;
  margin: 0;
  font-size: inherit;
  letter-spacing: normal;
}

.brand-copy strong {
  display: block;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: .09em;
}

.brand-copy small {
  display: block;
  margin-top: 7px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .22em;
  white-space: nowrap;
}

@keyframes danotHalo {
  0%, 100% { opacity: .42; transform: translateY(-50%) scale(.9); }
  50% { opacity: 1; transform: translateY(-50%) scale(1.08); }
}

@keyframes danotEmblemLight {
  0%, 100% { filter: drop-shadow(0 5px 9px #0002) brightness(1); }
  50% { filter: drop-shadow(0 8px 15px rgba(197, 155, 74, .34)) brightness(1.14); }
}

.hero-content { z-index: 2; }
footer .brand-emblem { width: 88px; height: 88px; }
footer .brand-copy strong { font-size: 36px; }

@media (max-width: 1050px) {
  .header-brand-logo { width: 205px; height: 72px; }
  .brand-emblem { width: 58px; height: 58px; }
  .brand-copy strong { font-size: 25px; }
  .brand-copy small { font-size: 7px; }
  header nav { gap: 20px; }
}

@media (max-width: 600px) {
  .header-brand-logo { width: 215px; height: 72px; }
  .brand { gap: 8px; }
  .brand-emblem { width: 54px; height: 54px; }
  .brand-copy strong { font-size: 22px; }
  .brand-copy small { margin-top: 5px; font-size: 6px; }
  footer .brand-emblem { width: 72px; height: 72px; }
  footer .brand-copy strong { font-size: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  .brand::before,
  .brand-emblem { animation: none; }
}

/* Header lockup: keep the complete logo inside the header at every zoom/viewport. */
header {
  display: grid;
  grid-template-columns: minmax(180px, 240px) minmax(0, 1fr) max-content;
  column-gap: clamp(18px, 2.4vw, 42px);
}

header .header-brand {
  display: block;
  width: 100%;
  min-width: 0;
  height: 72px;
  overflow: hidden;
  align-self: center;
}

header .header-brand-logo {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: 240px;
  max-height: 72px;
  object-fit: contain !important;
  object-position: left center;
}

header nav {
  min-width: 0;
  justify-content: center;
  align-items: center;
  flex-wrap: nowrap;
  gap: clamp(14px, 1.8vw, 32px);
  white-space: nowrap;
}

header .header-phone {
  white-space: nowrap;
}

@media (max-width: 1100px) {
  header {
    grid-template-columns: 200px minmax(0, 1fr) max-content;
    column-gap: 18px;
  }

  header .header-brand {
    height: 64px;
  }

  header .header-brand-logo {
    max-width: 200px;
    max-height: 64px;
  }

  header nav {
    gap: 14px;
    font-size: 13px;
  }
}

@media (max-width: 850px) {
  header {
    min-height: 90px;
    height: auto;
    grid-template-columns: 190px minmax(0, 1fr);
    padding: 10px 5%;
  }

  header .header-brand {
    height: 62px;
  }

  header .header-brand-logo {
    max-width: 190px;
    max-height: 62px;
  }

  header nav {
    justify-content: flex-end;
    gap: 16px;
    flex-wrap: wrap;
  }
}

@media (max-width: 650px) {
  /* Mobile browsers must not reserve a blank scrollbar gutter beside the page. */
  html {
    width: 100vw;
    overflow-x: clip;
    scrollbar-width: none;
  }

  body {
    width: 100vw;
    max-width: 100vw;
    overflow-x: clip;
  }

  html::-webkit-scrollbar {
    display: none;
  }

  header {
    display: flex;
    height: auto;
    min-height: 0;
    padding: 14px 6% 12px;
    gap: 8px;
    flex-direction: column;
    align-items: stretch;
  }

  header .header-brand {
    width: 190px;
    height: 62px;
    align-self: flex-start;
  }

  header .header-brand-logo {
    max-width: 190px;
    max-height: 62px;
  }

  header nav {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    width: 100%;
    justify-content: stretch;
    gap: 0;
    overflow: visible;
    padding-top: 2px;
  }

  header nav a,
  header nav a:first-child {
    display: block;
    grid-column: span 2;
    padding: 7px 3px 6px;
    text-align: center;
    white-space: nowrap;
  }

  header nav a:nth-child(n + 4) {
    grid-column: span 3;
  }
}
