/* Houston reference header/footer geometry, retained from Denver Mold navigation baseline.
   Consumers provide property palette variables; no other property is enrolled automatically. */
.reference-header,
.reference-footer {
  --orange: var(--reference-accent, #f3b77a);
  --accent: var(--reference-accent, #f3b77a);
  --muted: #c0d0cc;
  --line: #ffffff26;
  --panel: var(--reference-panel, #163d36);
  --paper: #faf8f2;
  --ink: var(--reference-surface, #143f35);
  --max: 1320px;
  color: #faf8f2;
  background: var(--reference-surface, #143f35);
}
.reference-header {
  position: relative;
  z-index: 30;
}
.reference-header .wrap,
.reference-footer .wrap {
  width: min(calc(100% - 112px), 1320px);
  margin-inline: auto;
}
.reference-header .nav {
  height: 98px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.reference-header .property-brand {
  flex-shrink: 0;
}
.reference-header .property-brand img {
  width: 220px;
  height: auto;
}
.reference-header a,
.reference-footer a {
  color: inherit;
  text-decoration: none;
}
.reference-header .navlinks {
  display: flex;
  align-items: center;
}
.reference-header summary {
  list-style: none;
  cursor: pointer;
}
.reference-header summary::-webkit-details-marker {
  display: none;
}
.reference-header .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: var(--reference-cta, #b34c1e);
  color: #fff;
  border-radius: 7px;
  padding: 15px 18px;
  min-height: 48px;
  font-weight: 700;
}
.reference-header .nav-direct {
  font-size: 14px;
  font-weight: 600;
}
.reference-header .menu-toggle {
  color: inherit;
  background: transparent;
}
.reference-header .mega-panel {
  background: var(--reference-surface, #143f35);
}
.reference-header .mega-panel p {
  color: inherit;
}
.reference-header .mega-intro {
  color: #faf8f2;
}
.reference-header .eyebrow {
  color: var(--accent);
}
.reference-header .mega-title {
  font-weight: 750;
  line-height: 1.2;
}
.reference-header .mega-links ul,
.reference-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.reference-header .mega-group h2 {
  color: var(--accent);
  text-transform: uppercase;
}
.reference-header .nav-chevron,
.reference-header .phone-icon {
  display: block;
  max-width: none;
  height: auto;
}
.reference-header .nav-quote {
  margin: 0;
}
.reference-header .nav-quote-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.reference-header .nav-quote-copy small {
  color: #fff;
}
.reference-header .nav-estimate {
  margin-left: 10px;
}
.reference-footer {
  padding-block: 64px 30px;
}
.reference-footer .property-brand img {
  width: 220px;
  height: auto;
}
.reference-footer .footer-top p {
  color: #c0d0cc;
}
.reference-footer .textlink {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
}
.reference-footer .phone-icon {
  width: 20px;
  height: 20px;
}
.reference-footer .footer-grid {
  display: grid;
}
.reference-footer .footer-column {
  border: 0;
}
.reference-footer .footer-column summary {
  list-style: none;
}
.reference-footer .footer-column summary::-webkit-details-marker {
  display: none;
}
.reference-footer .footer-chevron {
  display: none;
}
.reference-footer .footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}
.reference-footer .footer-bottom nav {
  display: flex;
  gap: 20px;
}
.reference-footer .footer-learning {
  display: flex;
  gap: 24px;
  padding: 0 0 32px;
  font-size: 18px;
  font-weight: 750;
}
.reference-footer a:hover,
.reference-header a:hover {
  text-decoration: underline;
}
.reference-header :focus-visible,
.reference-footer :focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}
@media (max-width: 1180px) {
  .reference-header .wrap,
  .reference-footer .wrap {
    width: calc(100% - 48px);
  }
  .reference-header .property-brand img {
    width: 210px;
  }
  .reference-header .nav-estimate {
    margin-left: 0;
  }
  .reference-header .mega-intro {
    display: none;
  }
}
@media (max-width: 600px) {
  .reference-header .wrap,
  .reference-footer .wrap {
    width: calc(100% - 40px);
  }
  .reference-header .property-brand img {
    width: 190px;
  }
  .reference-footer .footer-top {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .reference-footer .footer-top .textlink {
    justify-self: start;
  }
  .reference-footer .footer-learning {
    font-size: 16px;
  }
}

/* Shared navigation: desktop mega panels, mobile disclosures, and full footer. */
.nav {
  gap: 16px;
}
.navlinks {
  position: static;
  height: 100%;
  gap: clamp(10px, 1.35vw, 22px);
}
.nav-dropdown {
  position: static;
  height: 100%;
  border: 0;
}
.nav-dropdown:not([open]) > .mega-panel {
  display: none;
}
.nav-dropdown > .nav-trigger {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 100%;
  padding: 0;
  color: var(--paper);
  font:
    600 14px/1.5 Manrope,
    Arial,
    sans-serif;
  white-space: nowrap;
}
.nav-dropdown > .nav-trigger::after {
  content: none;
}
.nav-trigger:hover,
.nav-dropdown[open] > .nav-trigger,
.nav-dropdown.is-current-section > .nav-trigger {
  color: var(--orange);
}
.nav-chevron {
  flex-shrink: 0;
  transition: transform 0.18s ease;
}
.nav-dropdown[open] .nav-chevron {
  transform: rotate(180deg);
}
.mega-panel {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  max-height: calc(100vh - 98px);
  max-height: calc(100dvh - 98px);
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #191c1d;
  border-top: 1px solid var(--line);
  border-bottom: 2px solid var(--orange);
  box-shadow: 0 24px 40px #0006;
}
.mega-inner {
  display: grid;
  grid-template-columns: minmax(210px, 0.78fr) minmax(0, 2.22fr);
  gap: 55px;
  width: min(calc(100% - 112px), var(--max));
  margin-inline: auto;
  padding-block: 32px;
}
.mega-intro {
  padding: 12px 28px 12px 0;
  border-right: 1px solid var(--line);
}
.mega-intro .eyebrow {
  margin-bottom: 17px;
}
.mega-intro .mega-title {
  color: var(--paper);
  font:
    600 clamp(1.6rem, 2.4vw, 2.2rem)/1.12 Archivo,
    Arial,
    sans-serif;
  letter-spacing: -0.035em;
  padding: 0;
  margin: 0 0 17px;
}
.mega-intro > p:not(.mega-title) {
  padding: 0;
  font-size: 14px;
  line-height: 1.7;
}
.navlinks .mega-intro .textlink {
  margin-top: 24px;
  padding: 0 0 7px;
  gap: 18px;
  font-size: 14px;
  line-height: 1.5;
}
.mega-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 24px;
  min-width: 0;
}
.mega-group {
  min-width: 0;
}
.mega-group h2 {
  margin: 0 0 7px;
  color: var(--orange);
  font:
    600 12px/1.5 Manrope,
    Arial,
    sans-serif;
  letter-spacing: 0.065em;
  text-transform: uppercase;
}
.mega-group ul {
  padding: 0;
  margin: 0;
  list-style: none;
}
.mega-group li {
  min-width: 0;
}
.navlinks .mega-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 84px;
  padding: 15px 14px;
  border: 1px solid transparent;
  transition:
    background 0.15s,
    border-color 0.15s;
}
.mega-link-copy {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.mega-link-name {
  font-size: 16px;
  font-weight: 650;
  line-height: 1.45;
}
.mega-caption {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--muted);
}
.mega-link-arrow {
  color: #9ca59f;
  font-size: 20px;
  font-weight: 400;
  flex-shrink: 0;
}
.navlinks .mega-links a:hover,
.navlinks .mega-links a:focus-visible,
.navlinks .mega-links a[aria-current='page'] {
  background: #242829;
  border-color: #414846;
  color: var(--orange);
}
.mega-bottom {
  width: min(calc(100% - 112px), var(--max));
  margin-inline: auto;
  border-top: 1px solid var(--line);
  padding-block: 19px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 14px;
}
.mega-bottom > span {
  color: var(--muted);
  font-weight: 400;
}
.navlinks .mega-bottom a {
  padding: 0;
  display: inline-flex;
  gap: 25px;
}
.nav-estimate {
  flex-shrink: 0;
}
.nav-estimate .button {
  gap: 12px;
}
.nav-quote {
  width: 196px;
  min-height: 60px;
  padding: 9px 14px;
  gap: 14px;
}
.nav-quote-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  line-height: 1.18;
  white-space: nowrap;
}
.nav-quote-copy > span {
  font-size: 13px;
}
.nav-quote-copy small {
  font:
    650 11px/1.25 Manrope,
    Arial,
    sans-serif;
}
.nav-quote .phone-icon {
  flex: 0 0 auto;
  width: 19px;
  height: 19px;
}
.nav .brand {
  flex-shrink: 0;
}
.mobile-nav-caption {
  display: none;
}
.menu-icon {
  width: 19px;
  height: 16px;
  position: relative;
  display: block;
}
.menu-icon i {
  position: absolute;
  left: 0;
  width: 19px;
  height: 2px;
  background: currentColor;
  transition:
    transform 0.18s,
    top 0.18s;
}
.menu-icon i:first-child {
  top: 4px;
}
.menu-icon i:last-child {
  top: 11px;
}
.menu-toggle[aria-expanded='true'] .menu-icon i:first-child {
  top: 8px;
  transform: rotate(45deg);
}
.menu-toggle[aria-expanded='true'] .menu-icon i:last-child {
  top: 8px;
  transform: rotate(-45deg);
}
.footer-top {
  display: grid;
  grid-template-columns: 1fr 1.65fr auto;
  align-items: center;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 40px;
}
.footer-top p {
  max-width: 460px;
  font-size: 15px;
}
.footer-top .textlink {
  justify-self: end;
}
.footer-grid.footer-directory {
  grid-template-columns: 1.2fr 1fr 1.15fr 1fr;
  gap: 42px;
}
.footer-column {
  min-width: 0;
}
.footer-column h2 {
  font:
    600 13px/1.6 Manrope,
    Arial,
    sans-serif;
  color: var(--orange);
  letter-spacing: 0.065em;
  text-transform: uppercase;
  margin: 0 0 18px;
}
.footer-column li {
  margin: 0;
}
.footer-column li a {
  display: inline-block;
  padding-block: 7px;
  font-size: 14px;
  line-height: 1.6;
}
.footer-column li:last-child a {
  margin-top: 3px;
}
.footer-bottom {
  margin-top: 40px;
}
@media (min-width: 1181px) {
  .menu-toggle {
    display: none;
  }
  .navlinks .nav-direct {
    white-space: nowrap;
  }
  .masthead {
    position: relative;
  }
}
@media (min-width: 1181px) and (max-width: 1199px) {
  .nav {
    height: 84px;
    gap: 10px;
  }
  .nav .brand {
    gap: 8px;
  }
  .nav .brand-mark {
    width: 30px;
    height: 34px;
  }
  .brand-copy {
    font-size: 20px;
  }
  .brand-copy small {
    font-size: 8px;
  }
  .navlinks {
    gap: 10px;
    font-size: 13px;
  }
  .nav-dropdown > .nav-trigger {
    gap: 5px;
    font-size: 13px;
  }
  .nav-quote {
    width: 142px;
    min-width: 142px;
    padding-inline: 10px;
    gap: 8px;
    font-size: 12px;
  }
  .nav-quote-copy > span {
    font-size: 12px;
  }
  .nav-quote-copy small {
    font-size: 10px;
  }
  .mega-inner,
  .mega-bottom {
    width: calc(100% - 64px);
  }
  .mega-inner {
    gap: 30px;
  }
  .mega-links {
    gap: 18px 12px;
  }
}
@media (min-width: 768px) and (max-width: 1100px) {
  .cta-inner {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 24px;
  }
  .cta-inner > div {
    min-width: 0;
  }
}

/* Mobile keeps the mega-menu hierarchy as calm, single-column accordions. */
@media (max-width: 1180px) {
  .masthead {
    backdrop-filter: none;
  }
  .nav {
    min-height: 80px;
    height: auto;
    flex-wrap: wrap;
    padding-block: 16px;
  }
  .menu-toggle {
    display: none;
  }
  .nav-ready .nav {
    height: 80px;
    flex-wrap: nowrap;
    padding-block: 0;
  }
  .nav-ready .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-width: 82px;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid #4d6676;
    border-radius: 8px;
    font-size: 14px;
  }
  .navlinks {
    position: static;
    display: flex;
    flex-direction: column;
    flex-basis: 100%;
    height: auto;
    padding: 8px 0;
    border: 0;
    align-items: stretch;
    gap: 0;
    background: var(--ink);
  }
  .nav-ready .navlinks {
    display: none;
  }
  .nav-ready .navlinks.is-open {
    display: flex;
    position: fixed;
    inset: 80px 0 0;
    width: 100%;
    height: auto;
    max-height: calc(100dvh - 80px);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding: 12px 24px calc(112px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
  }
  .navlinks > .nav-dropdown,
  .navlinks > .nav-direct {
    width: 100%;
    max-width: 680px;
    margin-inline: auto;
    flex-shrink: 0;
  }
  body.nav-open {
    overflow: hidden;
  }
  body.nav-open .mobile-cta {
    visibility: hidden;
  }
  .nav-dropdown {
    height: auto;
    border: 0;
    border-bottom: 1px solid var(--line);
  }
  .nav-dropdown > .nav-trigger {
    justify-content: space-between;
    width: 100%;
    height: auto;
    min-height: 58px;
    padding: 16px 0;
    font-size: 18px;
    font-weight: 650;
    white-space: normal;
  }
  .nav-chevron {
    width: 16px;
    height: 16px;
  }
  .nav-dropdown .mega-panel {
    position: static;
    max-height: none;
    overflow: visible;
    border: 0;
    box-shadow: none;
    background: transparent;
    padding: 0 0 14px;
  }
  .mega-inner {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 4px;
    padding: 0;
  }
  .mega-intro {
    display: block;
    border: 0;
    padding: 0;
  }
  .mega-intro .eyebrow,
  .mega-intro .mega-title,
  .mega-intro > p:not(.mega-title) {
    display: none;
  }
  .navlinks .mega-intro .textlink {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0;
    padding: 10px 12px !important;
    min-height: 44px;
    border: 0;
    color: var(--orange);
    font-size: 14px;
  }
  .mega-links {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  .mega-group h2 {
    padding: 10px 12px 1px;
    margin: 0;
    font-size: 11px;
  }
  .mega-group ul {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
  .navlinks .mega-group a {
    min-height: 48px;
    padding: 11px 12px !important;
    border: 0 !important;
    border-radius: 7px;
    background: transparent !important;
    gap: 12px;
  }
  .navlinks .mega-group a:hover,
  .navlinks .mega-group a:focus-visible,
  .navlinks .mega-group a[aria-current='page'] {
    background: #193544 !important;
    color: #fff;
  }
  .mega-link-name {
    font-size: 15px;
    font-weight: 500;
    line-height: 1.45;
  }
  .mega-caption {
    display: none;
  }
  .mega-link-arrow {
    font-size: 17px;
    opacity: 0.6;
  }
  .mega-bottom {
    display: none;
  }
  .navlinks > .nav-direct {
    padding: 16px 0 !important;
    min-height: 58px;
    border-bottom: 1px solid var(--line);
    font-size: 18px;
    line-height: 1.45;
    font-weight: 650;
  }
  .nav-estimate {
    margin-top: 20px;
    padding-block: 12px;
  }
  .nav-ready .navlinks.is-open .nav-estimate {
    position: fixed;
    inset: auto 0 0;
    z-index: 2;
    margin: 0;
    padding: 16px 24px calc(16px + env(safe-area-inset-bottom));
    border-top: 1px solid #46607080;
    background: #091925f5;
    backdrop-filter: blur(14px);
  }
  .nav-estimate .button {
    display: flex;
    min-height: 52px;
    width: 100%;
    max-width: 680px;
    margin-inline: auto;
    padding: 14px 20px !important;
    justify-content: space-between;
  }
  .mobile-nav-caption {
    display: none;
  }
  .footer-top {
    grid-template-columns: 1fr 1.5fr;
    gap: 25px 35px;
  }
  .footer-top .textlink {
    justify-self: start;
  }
  .footer-grid.footer-directory {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px 40px;
  }
}
.footer-column {
  border: 0;
}
.footer-column > summary {
  display: block;
  list-style: none;
  padding: 0;
  border: 0;
  cursor: default;
}
.footer-column > summary::after {
  content: none;
}
.footer-column > summary::-webkit-details-marker {
  display: none;
}
.footer-chevron {
  display: none;
}
.footer-column h2 {
  margin-bottom: 18px;
}
.footer-bottom > nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
}
.footer-bottom > nav a {
  text-decoration: underline;
  text-underline-offset: 4px;
}
@media (max-width: 600px) {
  .footer-top {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding-bottom: 28px;
    margin-bottom: 12px;
  }
  .footer-top p {
    font-size: 14px;
  }
  .footer-grid.footer-directory {
    display: block;
  }
  .footer-column {
    border-bottom: 1px solid var(--line);
  }
  .footer-column > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 60px;
    padding: 16px 0;
    cursor: pointer;
  }
  .footer-column h2 {
    margin: 0;
    font-size: 14px;
    letter-spacing: 0.025em;
  }
  .footer-chevron {
    display: block;
    color: var(--muted);
    font:
      400 22px/1 Arial,
      sans-serif;
  }
  .footer-column[open] .footer-chevron {
    transform: rotate(45deg);
  }
  .footer-column ul {
    padding: 0 0 20px;
  }
  .footer-column li a {
    display: block;
    min-height: 44px;
    padding: 10px 0;
    font-size: 14px;
    line-height: 1.6;
  }
  .footer-bottom {
    margin-top: 28px;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .footer-bottom > nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
}
@media (max-width: 560px) {
  .nav-ready .nav {
    height: 76px;
    min-height: 76px;
  }
  .nav-ready .navlinks.is-open {
    top: 76px;
    max-height: calc(100dvh - 76px);
    padding-inline: 20px;
  }
  .nav-ready .navlinks.is-open .nav-estimate {
    padding-inline: 20px;
  }
}
/* Keep the quote action fixed across the full mobile-navigation layout. */
@media (max-width: 767px) {
  .mobile-cta {
    display: flex;
    position: fixed;
    inset: auto 0 0;
    z-index: 19;
    padding: 10px max(20px, env(safe-area-inset-right))
      calc(10px + env(safe-area-inset-bottom))
      max(20px, env(safe-area-inset-left));
    background: #091925f5;
    border-top: 1px solid var(--line);
  }
  .mobile-cta .button {
    width: 100%;
    max-width: 720px;
    margin-inline: auto;
    min-height: 48px;
    padding-block: 11px;
  }
  .footer {
    padding-bottom: calc(112px + env(safe-area-inset-bottom));
  }
  html {
    scroll-padding-bottom: calc(96px + env(safe-area-inset-bottom));
  }
}
@media (max-width: 380px) {
  .nav {
    gap: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .nav-chevron,
  .menu-icon i,
  .navlinks .mega-links a {
    transition: none;
  }
}
@media print {
  .mega-panel,
  .navlinks,
  .footer-directory {
    display: none !important;
  }
}

.nav-dropdown > .nav-trigger {
  gap: 7px;
}
.visual-nav-label {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.visual-nav-label small {
  font:
    400 10px/1.4 Manrope,
    sans-serif;
  color: var(--muted);
  letter-spacing: 0.01em;
}
.mega-inner {
  gap: 30px;
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 2.2fr);
}
.mega-intro {
  padding-right: 25px;
}
.nav-visual {
  width: 100%;
  height: 135px;
  object-fit: cover;
  border-radius: 9px;
  display: block;
  margin-bottom: 20px;
}
.mega-intro .mega-title {
  font-size: clamp(1.5rem, 2.2vw, 2rem);
}
.mega-intro .button {
  display: inline-flex;
  margin-top: 18px;
  padding: 12px 15px;
  font-size: 13px;
}
.navlinks .mega-links a {
  border: 1px solid var(--line);
  border-radius: 9px;
  margin: 9px 0;
  gap: 13px;
  padding: 13px;
  min-height: 94px;
  background: var(--panel);
}
.navlinks .mega-links a:hover,
.navlinks .mega-links a:focus-visible {
  background: #193342;
  border-color: var(--orange);
}
.nav-thumb {
  width: 62px;
  height: 67px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}
.nav-tile {
  width: 48px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: #203c4b;
  color: #ff9da5;
  font:
    600 21px/1 Archivo,
    sans-serif;
  flex-shrink: 0;
}
.mega-link-copy {
  flex: 1;
}
.mega-link-name {
  font-size: 15px;
  line-height: 1.35;
}
.mega-caption {
  font-size: 12px;
  line-height: 1.5;
}
.mega-group h2 {
  font-size: 11px;
  letter-spacing: 0.1em;
  margin-bottom: 13px;
}
.visual-call-note {
  margin-top: 13px !important;
  color: var(--muted);
  font-size: 12px !important;
}
.nav-ready .navlinks .nav-estimate {
  min-width: 170px;
}
.menu-benefit {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}
.menu-benefit b {
  color: var(--paper);
}
@media (max-width: 1180px) {
  .visual-nav-label small {
    font-size: 11px;
  }
  .nav-visual {
    height: 125px;
  }
  .mega-inner {
    grid-template-columns: 1fr;
  }
  .mega-intro {
    display: none;
  }
  .mega-links {
    gap: 14px;
  }
  .navlinks .mega-links a {
    min-height: 85px;
  }
  .mega-link-name {
    font-size: 15px;
  }
}
@media (max-width: 560px) {
  .nav-thumb {
    width: 50px;
    height: 60px;
  }
  .navlinks .mega-links a {
    padding: 12px;
    gap: 10px;
  }
  .nav-tile {
    width: 40px;
    height: 45px;
  }
  .mega-link-name {
    font-size: 14px;
  }
  .mega-caption {
    font-size: 12px;
  }
  .visual-nav-label small {
    font-size: 11px;
  }
  .mega-link-arrow {
    font-size: 17px;
  }
}

#resources-panel .mega-links {
  display: block;
}
#resources-panel .mega-group ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 20px;
}
#resources-panel .learning-view-all {
  display: inline-flex;
  margin-top: 15px;
  padding: 8px 0;
  font-size: 14px;
}
@media (max-width: 560px) {
  #resources-panel .mega-group ul {
    grid-template-columns: 1fr;
  }
}
#resources-panel .mega-links a {
  padding: 16px;
  gap: 18px;
  min-height: 128px;
}
.learning-thumb {
  width: 94px;
  height: 76px;
  object-fit: contain;
  border-radius: 8px;
  flex-shrink: 0;
}
#resources-panel .mega-link-name {
  font-size: 17px;
}
#resources-panel .mega-caption {
  font-size: 13px;
}
@media (max-width: 650px) {
  .learning-thumb {
    width: 70px;
    height: 60px;
  }
  #resources-panel .mega-links a {
    padding: 13px;
    gap: 13px;
    min-height: 100px;
  }
  #resources-panel .mega-link-name {
    font-size: 15px;
  }
}
#resources-panel .mega-links a.featured-cost-guide {
  border-color: var(--orange);
  border-left: 4px solid var(--orange);
  background: linear-gradient(115deg, #40222f, var(--panel));
  box-shadow: 0 0 0 1px #fa5a6320;
}
#resources-panel .featured-cost-guide .mega-link-name {
  color: #ffa0a8;
  font-weight: 750;
}
#resources-panel .featured-cost-guide .mega-link-arrow {
  color: var(--orange);
}
#resources-panel .featured-cost-guide:hover,
#resources-panel .featured-cost-guide:focus-visible {
  background: #442530;
  border-color: #ff9da5;
}
/* Preserve a single-line desktop label and a comfortable mobile disclosure. */
.visual-nav-label {
  white-space: nowrap;
}
.navlinks > .nav-direct {
  white-space: nowrap;
}
@media (max-width: 1180px) {
  .nav-dropdown > .nav-trigger {
    min-height: 52px;
  }
  .visual-nav-label {
    white-space: normal;
  }
  .mega-inner {
    width: 100%;
  }
}

/* Property palette overrides for reference tiles. */
.reference-header .navlinks .mega-links a {
  background: var(--reference-tile, #19483d);
}
.reference-header .navlinks .mega-links a:hover {
  background: var(--reference-hover, #245c4c);
}
.reference-header #resources-panel .featured-cost-guide {
  background: var(--reference-tile, #19483d);
}
/* Preserve the selected logo and legible labels at the reference tablet breakpoint. */
.reference-header .mega-intro .mega-title {
  font-family: Manrope, Arial, sans-serif;
}
@media (min-width: 1181px) and (max-width: 1199px) {
  .reference-header .property-brand img {
    width: 175px;
  }
  .reference-header .nav-estimate {
    min-width: 142px;
    margin-left: 0;
  }
}
/* The menu owns its quote action while open; suppress the page-level mobile CTA. */
body.nav-open .sticky-call {
  display: none;
}
